@spiffcommerce/core 12.1.3 → 12.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +54 -35
- package/dist/module.js +36 -17
- package/dist/types.d.ts +31 -5
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -583,24 +583,25 @@ interface ExportedData {
|
|
|
583
583
|
}
|
|
584
584
|
export interface DesignCreationMessage {
|
|
585
585
|
baseCost?: number;
|
|
586
|
-
weight?: number;
|
|
587
586
|
designProductId?: string;
|
|
588
587
|
designProductVariantId?: string;
|
|
589
|
-
externalCartProductId?: string;
|
|
590
|
-
externalCartProductVariantId?: string;
|
|
591
588
|
event: string;
|
|
592
589
|
exportedData: ExportedData;
|
|
590
|
+
externalCartProductId?: string;
|
|
591
|
+
externalCartProductVariantId?: string;
|
|
593
592
|
lineItemImageUrl: string;
|
|
594
|
-
transactionId: string;
|
|
595
593
|
metadata?: {
|
|
596
594
|
[stepName: string]: string;
|
|
597
595
|
};
|
|
598
596
|
optionsCost: number;
|
|
597
|
+
processExecutionId?: string;
|
|
599
598
|
selectedVariants?: SelectedVariants;
|
|
600
599
|
sku?: string;
|
|
600
|
+
transactionId: string;
|
|
601
|
+
transactionOwnerId?: string;
|
|
602
|
+
weight?: number;
|
|
601
603
|
workflowViewerLink: string;
|
|
602
604
|
workflowViewerReadOnlyLink: string;
|
|
603
|
-
transactionOwnerId?: string;
|
|
604
605
|
}
|
|
605
606
|
/**
|
|
606
607
|
* Represents a transaction.
|
|
@@ -1012,6 +1013,11 @@ interface Bundle {
|
|
|
1012
1013
|
id?: string;
|
|
1013
1014
|
bundleOwnerId?: string;
|
|
1014
1015
|
bundleStakeholders?: BundleStakeholder[];
|
|
1016
|
+
metadata?: {
|
|
1017
|
+
key: string;
|
|
1018
|
+
value: string;
|
|
1019
|
+
}[];
|
|
1020
|
+
name?: string;
|
|
1015
1021
|
partner?: Partner;
|
|
1016
1022
|
transactions?: Transaction[];
|
|
1017
1023
|
}
|
|
@@ -1854,6 +1860,26 @@ interface _Bundle1 {
|
|
|
1854
1860
|
* @returns The id of the bundle entity in the Spiff Commerce system.
|
|
1855
1861
|
*/
|
|
1856
1862
|
getId(): string;
|
|
1863
|
+
/**
|
|
1864
|
+
* @returns The name of the bundle.
|
|
1865
|
+
*/
|
|
1866
|
+
getName(): string;
|
|
1867
|
+
/**
|
|
1868
|
+
* Set the name of the bundle.
|
|
1869
|
+
* @param name The new name for the bundle.
|
|
1870
|
+
* @returns A promise that resolves when the name has been updated in the Spiff Commerce system.
|
|
1871
|
+
*/
|
|
1872
|
+
setName(name: string): Promise<void>;
|
|
1873
|
+
/**
|
|
1874
|
+
* @returns Custom metadata associated with this bundle.
|
|
1875
|
+
*/
|
|
1876
|
+
getMetadata(): Map<string, string>;
|
|
1877
|
+
/**
|
|
1878
|
+
* Set custom metadata associated with this bundle.
|
|
1879
|
+
* @param metadata The new metadata to set.
|
|
1880
|
+
* @returns A promise that resolves when the metadata has been updated in the Spiff Commerce system.
|
|
1881
|
+
*/
|
|
1882
|
+
setMetadata(metadata: Map<string, string>): Promise<void>;
|
|
1857
1883
|
/**
|
|
1858
1884
|
* Returns true when the bundle contains transactions with shared properties.
|
|
1859
1885
|
*/
|