@spiffcommerce/core 22.7.5 → 22.9.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 +25 -0
- package/dist/index.js +1345 -1240
- package/dist/index.umd.cjs +223 -174
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1157,6 +1157,7 @@ declare class ColorOptionGlobalPropertyHandle extends OptionGlobalPropertyHandle
|
|
|
1157
1157
|
interface GlobalPropertyStateManager {
|
|
1158
1158
|
getInitializationPromise(): Promise<void>;
|
|
1159
1159
|
getGlobalPropertyState(): GlobalPropertyState | undefined;
|
|
1160
|
+
setGlobalPropertyState(state: GlobalPropertyState): Promise<void>;
|
|
1160
1161
|
getAspect(name: string): string | undefined;
|
|
1161
1162
|
getAspectStorage<S extends GlobalPropertyStateAspectStorage>(name: string): S | undefined;
|
|
1162
1163
|
/**
|
|
@@ -1904,6 +1905,7 @@ declare class SpiffCommerceClient {
|
|
|
1904
1905
|
* @returns True if the verification was successful, false otherwise.
|
|
1905
1906
|
*/
|
|
1906
1907
|
verifyCode(emailAddress: string, verificationCode: string): Promise<boolean>;
|
|
1908
|
+
getCustomerMetafields(): Promise<Metafield[]>;
|
|
1907
1909
|
/**
|
|
1908
1910
|
* @param collectionId Optional: The id of the product collection that the bundle can use.
|
|
1909
1911
|
* @returns A bundle to be used for grouping and operating on large amounts of workflow experiences.
|
|
@@ -1923,6 +1925,13 @@ declare class SpiffCommerceClient {
|
|
|
1923
1925
|
* @deprecated use GetBundleOptions instead. This attribute will be removed in the future.
|
|
1924
1926
|
*/
|
|
1925
1927
|
graphqlOptions?: GetBundleGraphqlOptions, options?: GetBundleOptions): Promise<Bundle$1>;
|
|
1928
|
+
/**
|
|
1929
|
+
* @param bundleId The id of the bundle to copy. The current context must have write access to the this bundle in order to duplicate it.
|
|
1930
|
+
* @param template Optional: Whether to mark the new bundle as a template. Default is false.
|
|
1931
|
+
* @param duplicateTransactions Optional: Whether to also duplicate the original bundle's transactions. Default is true.
|
|
1932
|
+
* @returns A bundle to be used for grouping and operating on large amounts of workflow experiences.
|
|
1933
|
+
*/
|
|
1934
|
+
duplicateBundle(bundleId: string, template?: boolean, duplicateTransactions?: boolean, options?: GetBundleOptions): Promise<Bundle$1>;
|
|
1926
1935
|
/**
|
|
1927
1936
|
* Retrieves all existing bundle stakeholders from the API, for the currently authenticated customer.
|
|
1928
1937
|
* @returns An array of bundle stakeholders.
|
|
@@ -2847,6 +2856,22 @@ interface TransformCollectionTransform {
|
|
|
2847
2856
|
type Extendable<T> = T & {
|
|
2848
2857
|
[key: string]: any;
|
|
2849
2858
|
};
|
|
2859
|
+
interface Metafield {
|
|
2860
|
+
id: string;
|
|
2861
|
+
createdAt: string;
|
|
2862
|
+
updatedAt: string;
|
|
2863
|
+
entityId: string;
|
|
2864
|
+
value: string;
|
|
2865
|
+
metafieldConfiguration: MetafieldConfiguration;
|
|
2866
|
+
}
|
|
2867
|
+
interface MetafieldConfiguration {
|
|
2868
|
+
id: string;
|
|
2869
|
+
createdAt: string;
|
|
2870
|
+
updatedAt: string;
|
|
2871
|
+
entityType: string;
|
|
2872
|
+
metafieldType: string;
|
|
2873
|
+
name: string;
|
|
2874
|
+
}
|
|
2850
2875
|
|
|
2851
2876
|
interface StorageService {
|
|
2852
2877
|
/**
|