Hierarchy

Constructors

Properties

DEFAULT_OPTIONS: Partial<MetadataApiDeployOptions> = ...

Accessors

Methods

  • Cancel the deploy operation.

    Deploys are asynchronously canceled. Once the cancel request is made to the org, check the status of the cancellation with checkStatus.

    Returns Promise<void>

  • Deploy recently validated components without running Apex tests. Requires the operation to have been created with the { checkOnly: true } API option.

    Ensure that the following requirements are met before deploying a recent validation:

    • The components have been validated successfully for the target environment within the last 10 days.
    • As part of the validation, Apex tests in the target org have passed.
    • Code coverage requirements are met.
    • If all tests in the org or all local tests are run, overall code coverage is at least 75%, and Apex triggers have some coverage.
    • If specific tests are run with the RunSpecifiedTests test level, each class and trigger that was deployed is covered by at least 75% individually.

    See deployRecentValidation()

    Parameters

    • rest: boolean = false

      Set to true to use the REST API, otherwise defaults to using SOAP

    Returns Promise<string>

    The ID of the quick deployment

  • Parameters

    • subscriber: ((result: Error) => void)
        • (result): void
        • Parameters

          • result: Error

          Returns void

    Returns void

  • Poll for the status of the metadata transfer request. Default frequency is 100 ms. Default timeout is 60 minutes.

    Parameters

    • Optionaloptions: Partial<Options>

      Polling options; frequency, timeout, polling function.

    Returns Promise<DeployResult>

    The result of the deploy or retrieve.

  • Poll for the status of the metadata transfer request. Default frequency is based on the number of SourceComponents, n, in the transfer, it ranges from 100ms -> n Default timeout is 60 minutes.

    Parameters

    • Optionalfrequency: number

      Polling frequency in milliseconds.

    • Optionaltimeout: number

      Polling timeout in seconds.

    Returns Promise<DeployResult>

    The result of the deploy or retrieve.