@spiffcommerce/core 12.5.1 → 12.6.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 +46 -20
- package/dist/module.js +76 -50
- package/dist/types.d.ts +15 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -1045,6 +1045,14 @@ type ProductCollection = {
|
|
|
1045
1045
|
name: string;
|
|
1046
1046
|
products: Product[];
|
|
1047
1047
|
};
|
|
1048
|
+
type GlobalPropertyState = {
|
|
1049
|
+
id: string;
|
|
1050
|
+
aspects: GlobalPropertyStateAspect[];
|
|
1051
|
+
};
|
|
1052
|
+
type GlobalPropertyStateAspect = {
|
|
1053
|
+
name: string;
|
|
1054
|
+
value: string;
|
|
1055
|
+
};
|
|
1048
1056
|
interface StorageService {
|
|
1049
1057
|
/**
|
|
1050
1058
|
* Get a value.
|
|
@@ -1913,6 +1921,9 @@ declare abstract class GlobalPropertyHandle {
|
|
|
1913
1921
|
*/
|
|
1914
1922
|
protected getSharedSteps(): import("stepHandles").StepHandle<import("@spiffcommerce/papyrus").AnyStepData>[];
|
|
1915
1923
|
}
|
|
1924
|
+
interface GlobalPropertyStateManager {
|
|
1925
|
+
getGlobalPropertyState(): GlobalPropertyState | undefined;
|
|
1926
|
+
}
|
|
1916
1927
|
/**
|
|
1917
1928
|
* A bundle serves as a container for a set of workflow experience.
|
|
1918
1929
|
*/
|
|
@@ -1954,6 +1965,10 @@ interface _Bundle1 {
|
|
|
1954
1965
|
* via this method will make selections on all bundles that share the property.
|
|
1955
1966
|
*/
|
|
1956
1967
|
getGlobalProperties(): Promise<GlobalPropertyHandle[]>;
|
|
1968
|
+
/**
|
|
1969
|
+
* Get the low level state manager for this bundle. Don't use this unless you know what you're doing.
|
|
1970
|
+
*/
|
|
1971
|
+
getGlobalPropertyStateManager(): GlobalPropertyStateManager;
|
|
1957
1972
|
/**
|
|
1958
1973
|
* Return the total in subunits for this bundle. This is the sum of the total for all individual transactions.
|
|
1959
1974
|
*/
|