Return CSP trusted sites for the SubscriberPackageVersion.
The CSP trusted sites.
Get the SubscriberPackageVersion SObject data for this SubscriberPackageVersion.
SObject data.
Return dependencies for the SubscriberPackageVersion.
The dependencies.
Returns an array of RSS and CSP external sites for the package.
an array of RSS and CSP site URLs, or undefined if the package doesn't have any.
Return a field value from the SubscriberPackageVersion SObject using the field name.
Get the package version ID for this SubscriberPackageVersion.
The SubscriberPackageVersion Id (04t).
Get the installation validation status for the SubscriberPackageVersion.
The installation validation status.
Get the package type for this SubscriberPackageVersion.
The package type ("Managed" or "Unlocked") for this SubscriberPackageVersion.
Get the password passed in the constructor
the password
Return remote site settings for the SubscriberPackageVersion.
The remote site settings.
Get the subscriber package Id (033) for this SubscriberPackageVersion.
The subscriber package Id (033).
Get a VersionNumber instance for this SubscriberPackageVersion.
The version number.
Installs a package version in a subscriber org.
Package Version install emits the following events:
Is the SubscriberPackageVersion deprecated?
True if the SubscriberPackageVersion is deprecated.
Is the package a managed package?
Is the SubscriberPackageVersion org dependent?
True if the SubscriberPackageVersion is org dependent.
Is the SubscriberPackageVersion password protected?
True if the SubscriberPackageVersion is password protected.
Uninstalls a package version from a subscriber org.
Wait for the subscriber package version to be replicated across instances and available to be queried against
OptionalinstallationKey?: stringthe installation key for the package version
how often to check for the package version to be published
how long to wait for the package version to be published
StaticgetRetrieves the package version create request.
Staticinstalledlist the packages installed in the org
StaticinstallFetches the status of a package version install request and will wait for the install to complete, if requested Package Version install emits the following events:
OptionalinstallationKey: Nullable<string>Optionaloptions: PackageInstallOptionsStaticresolveResolve fields from a packageDirectories entry to a SubscriberPackageVersionId (04t).
Specifically uses the versionNumber and packageId fields, as well as an optional
branch field.
A connection object to the org
Fields from a packageDirectories entry in sfdx-project.json.
The versionNumber and packageId fields are required. Optionally, the branch and
package fields can be passed.
the SubscriberPackageVersionId (04t)
StaticuninstallReports on the progress of a package version uninstall.
the 06y package version uninstall request id
Provides the ability to get, list, install, and uninstall 2nd generation subscriber package versions.
Examples
List all 2GP installed packages in the org:
const installedPkgs = await SubscriberPackageVersion.installedList(connection);Install a 2GP subscriber package version:
const installStatus = await new SubscriberPackageVersion(options).install(request, options);