@spiffcommerce/core 22.12.0 → 22.13.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/index.d.ts +36 -0
- package/dist/index.js +775 -729
- package/dist/index.umd.cjs +61 -38
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1941,6 +1941,27 @@ declare class SpiffCommerceClient {
|
|
|
1941
1941
|
* @returns A bundle to be used for grouping and operating on large amounts of workflow experiences.
|
|
1942
1942
|
*/
|
|
1943
1943
|
duplicateBundle(bundleId: string, template?: boolean, duplicateTransactions?: boolean, options?: GetBundleOptions): Promise<Bundle$1>;
|
|
1944
|
+
/**
|
|
1945
|
+
* Fetches information about the currently authenticated customer's bundles.
|
|
1946
|
+
* NOTE: This does not initialize a bundle for active use.
|
|
1947
|
+
* You must call either `getExistingBundle` or `duplicateBundle` to actually interact with a bundle.
|
|
1948
|
+
* @param options Options to configure the request.
|
|
1949
|
+
* @returns A promise that resolves with an object containing:
|
|
1950
|
+
* `items` - The bundles that matched the request.
|
|
1951
|
+
* `total` - The total number of bundles on the server that match this query.
|
|
1952
|
+
*/
|
|
1953
|
+
getBundlesForCustomer(options: {
|
|
1954
|
+
/** Whether to include each bundle's metadata in the response. */
|
|
1955
|
+
includeMetadata?: boolean;
|
|
1956
|
+
/** The maximum amount of bundles to return in the response. */
|
|
1957
|
+
limit: number;
|
|
1958
|
+
/** The amount of items to skip over in the server query. */
|
|
1959
|
+
offset: number;
|
|
1960
|
+
/** Undefined: Any bundle, template or not. True: The bundle must be a template. False: The bundle must not be a template */
|
|
1961
|
+
template?: boolean;
|
|
1962
|
+
/** The status of the bundle template; "Active" or "Draft". */
|
|
1963
|
+
templateStatus?: BundleTemplateStatus;
|
|
1964
|
+
}): Promise<BundlesFeed>;
|
|
1944
1965
|
/**
|
|
1945
1966
|
* Retrieves all existing bundle stakeholders from the API, for the currently authenticated customer.
|
|
1946
1967
|
* @returns An array of bundle stakeholders.
|
|
@@ -2782,6 +2803,19 @@ interface Stakeholder {
|
|
|
2782
2803
|
transaction?: Transaction;
|
|
2783
2804
|
customer?: Customer;
|
|
2784
2805
|
}
|
|
2806
|
+
/**
|
|
2807
|
+
* A wrapper for a list of bundles returned from the server.
|
|
2808
|
+
*/
|
|
2809
|
+
interface BundlesFeed {
|
|
2810
|
+
/** The items. The size of this array will typically be limited by the request. */
|
|
2811
|
+
items: Bundle[];
|
|
2812
|
+
/** The total number of items available on the server that matched the initial request. */
|
|
2813
|
+
total: number;
|
|
2814
|
+
}
|
|
2815
|
+
declare enum BundleTemplateStatus {
|
|
2816
|
+
Draft = "Draft",
|
|
2817
|
+
Active = "Active"
|
|
2818
|
+
}
|
|
2785
2819
|
interface Bundle {
|
|
2786
2820
|
id?: string;
|
|
2787
2821
|
bundleOwnerId?: string;
|
|
@@ -2795,6 +2829,8 @@ interface Bundle {
|
|
|
2795
2829
|
partner?: Partner;
|
|
2796
2830
|
productCollection?: ProductCollectionResource;
|
|
2797
2831
|
transactions?: Transaction[];
|
|
2832
|
+
template?: boolean;
|
|
2833
|
+
templateStatus?: BundleTemplateStatus;
|
|
2798
2834
|
}
|
|
2799
2835
|
interface BundleStakeholder {
|
|
2800
2836
|
id: string;
|