@spiffcommerce/core 12.5.1 → 12.7.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 +16 -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,10 @@ 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
|
+
setAspect(name: string, value: string): Promise<void>;
|
|
1927
|
+
}
|
|
1916
1928
|
/**
|
|
1917
1929
|
* A bundle serves as a container for a set of workflow experience.
|
|
1918
1930
|
*/
|
|
@@ -1954,6 +1966,10 @@ interface _Bundle1 {
|
|
|
1954
1966
|
* via this method will make selections on all bundles that share the property.
|
|
1955
1967
|
*/
|
|
1956
1968
|
getGlobalProperties(): Promise<GlobalPropertyHandle[]>;
|
|
1969
|
+
/**
|
|
1970
|
+
* Get the low level state manager for this bundle. Don't use this unless you know what you're doing.
|
|
1971
|
+
*/
|
|
1972
|
+
getGlobalPropertyStateManager(): GlobalPropertyStateManager;
|
|
1957
1973
|
/**
|
|
1958
1974
|
* Return the total in subunits for this bundle. This is the sum of the total for all individual transactions.
|
|
1959
1975
|
*/
|