UNPKG

@salesforce/packaging

Version:

Packaging library for the Salesforce packaging platform

27 lines (26 loc) 1.5 kB
import { Connection } from '@salesforce/core'; import { SfProject } from '@salesforce/core'; import { Duration } from '@salesforce/kit'; import { BundleVersionCreateOptions, BundleSObjects, PackagingSObjects } from '../interfaces'; export declare class PackageBundleVersion { static create(options: BundleVersionCreateOptions): Promise<BundleSObjects.PackageBundleVersionCreateRequestResult>; static pollCreateStatus(createPackageVersionRequestId: string, connection: Connection, project: SfProject, polling: { frequency: Duration; timeout: Duration; }): Promise<BundleSObjects.PackageBundleVersionCreateRequestResult>; static report(connection: Connection, id: string): Promise<BundleSObjects.BundleVersion | null>; static list(connection: Connection): Promise<BundleSObjects.BundleVersion[]>; static getComponentPackages(connection: Connection, id: string): Promise<PackagingSObjects.SubscriberPackageVersion[]>; private static mapRecordToBundleVersion; private static mapPackageBundle; private static mapAncestor; private static mapAncestorPackageBundle; /** * Add a bundle version alias to the sfdx-project.json file after successful bundle version creation. * Creates an alias in the format: <BundleName>@<MajorVersion>.<MinorVersion> * * @param project The SfProject instance * @param result The bundle version create result containing bundle information */ private static addBundleVersionAlias; }