index/classes/BundleSubmission.md
A submitted launchpad bundle that can be confirmed through socket or REST.
Constructors
Constructor
new BundleSubmission(
options):BundleSubmission
Construct a submission; transports normally create this for callers.
Parameters
| Parameter | Type |
|---|---|
options | { bundleId: string; method: string; uniqueKey: string; wait: (options?) => Promise<BundleResult>; } |
options.bundleId | string |
options.method | string |
options.uniqueKey | string |
options.wait | (options?) => Promise<BundleResult> |
Returns
BundleSubmission
bundle submission id unique key result
Properties
bundle id unique key
Methods
wait()
wait(
options?):Promise<BundleResult>
Wait for PROCESSED or FAILED confirmation.
Parameters
| Parameter | Type |
|---|---|
options? | BundleWaitOptions |
Returns
Promise<BundleResult>
Example
const result = await submission.wait({ timeoutMs: 30_000 });
console.log(result.status);
bundle result wait options