PrivatecancelledPrivatecheckDeflate compression level of the Salesforce deployment package (zip file)
PrivateconnectionPrivatedeploymentPrivatelastPrivatelastPrivate ReadonlyloggerInterval in milliseconds in which data is reported back on the progress event
PrivatenextPrivatepollPrivate ReadonlysalesforcePrivate ReadonlysfGet package containing the metadata that is being deployed as part of this deployment;
Determine if the deployment has errprs
ID of the deployment; set after the deployment is queued on the server.
Returns true if the deployment has been cancelled or is currently cancelling.
Determine if the deployment has completed, either successfully or with errors or warnings.
Returns false if the deployment has not yet started.
Returns true if the deployment is completed.
Determine if the deployment has completed successfully.
Returns true if the deployment has been cancelled from the server side (Salesforce UI)
Get the deployment status data as it was last retrieved; only set after the deployment has started.
Get setup page URL with the deployment details
Determine if the deployment has completed successfully.
Cancel ongoing deployment.
PrivatecheckPrivatecheckSupport for clearing the event listeners
Emit an event and await the event completion
event type that is emptied
parameters matching the event type
Optionaloptions: EventEmitOptionsOptionaltoken: CancellationTokenPrivateisRegister an event listener to trigger on an event.
Listener to register
ProtectedonHandles the error that occurs when emitting a callback event.
The error that occurred.
The name of the event.
The failed callback event receiver.
Register an event listener to trigger once on event.
Listener to register
PrivateprocessPrivateprocessRemoves all listeners, or those of the specified event.
It is bad practice to remove listeners added elsewhere in the code, particularly when the EventEmitter instance was created by some other component or module (e.g. sockets or file streams).
Returns a reference to the EventEmitter, so that calls can be chained.
Optionalevent: Kevent type to remove listeners for if not specified all listeners are removed
Removes the specified listener from the listener array for the event named event.
removeListener() will remove, at most, one instance of a listener from the listener array.
If any single listener has been added multiple times to the listener array for the specified eventName,
then removeListener() must be called multiple times to remove each instance.
event type to remove listener from
listener to remove
Deploy the specified SalesforcePackage into the target org
Optionaloptions: DeployOptionsOptions
StaticfromCreate a new SalesforceDeployment instance from an existing deployment ID
ID of the deployment to create the instance for
SalesforceDeployment instance
An event emitter that has better support async methods giving the emitter the option to execute event handlers async in sequence instead of in parallel.
All handlers can be removed using
If async event handlers throw an error when
hideExceptionsis set tofalsethe emitter will receive the error.Example