@veloceapps/sdk 8.0.0-141 → 8.0.0-143
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/core/modules/configuration/services/configuration-state.service.d.ts +3 -2
- package/core/services/flow-state.service.d.ts +3 -1
- package/esm2020/core/modules/configuration/services/configuration-state.service.mjs +7 -3
- package/esm2020/core/services/flow-state.service.mjs +8 -2
- package/fesm2015/veloceapps-sdk-core.mjs +13 -3
- package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk-core.mjs +13 -3
- package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -821,10 +821,11 @@ class FlowStateService {
|
|
|
821
821
|
this.customizationService = customizationService;
|
|
822
822
|
this.NOT_INITIALIZED = Symbol();
|
|
823
823
|
this.executedFunctions = {};
|
|
824
|
-
this._hasStatefulUnsavedChanges = false;
|
|
825
824
|
this.stateId$ = new BehaviorSubject(null);
|
|
825
|
+
this._hasStatefulUnsavedChanges = false;
|
|
826
826
|
this.processors = {};
|
|
827
827
|
this.subscriptions = {};
|
|
828
|
+
this.flowStore = {};
|
|
828
829
|
this.cleanup$ = new Subject();
|
|
829
830
|
/*
|
|
830
831
|
In stateless mode watch QuoteDraft changes and call executeRequest so that
|
|
@@ -885,6 +886,7 @@ class FlowStateService {
|
|
|
885
886
|
this.stateId$.next(null);
|
|
886
887
|
}
|
|
887
888
|
this.processors = {};
|
|
889
|
+
this.flowStore = {};
|
|
888
890
|
this.cleanup$.next();
|
|
889
891
|
}
|
|
890
892
|
get hasUnsavedChanges() {
|
|
@@ -986,6 +988,9 @@ class FlowStateService {
|
|
|
986
988
|
}
|
|
987
989
|
return of({ quoteId: '' });
|
|
988
990
|
}
|
|
991
|
+
getFlowStore() {
|
|
992
|
+
return this.flowStore;
|
|
993
|
+
}
|
|
989
994
|
getOwnerIdByScope(scope) {
|
|
990
995
|
const ownerId = this.flowInfoService.templates[scope]?.id;
|
|
991
996
|
if (!ownerId) {
|
|
@@ -1212,6 +1217,7 @@ class FlowStateService {
|
|
|
1212
1217
|
return functionToExecute({
|
|
1213
1218
|
request,
|
|
1214
1219
|
inputData,
|
|
1220
|
+
flowStore: this.flowStore,
|
|
1215
1221
|
});
|
|
1216
1222
|
}
|
|
1217
1223
|
generateRequestId(scope, selectorName, inputData) {
|
|
@@ -2192,13 +2198,14 @@ class ConfigurationStateService {
|
|
|
2192
2198
|
this.flowConfigurationService = flowConfigurationService;
|
|
2193
2199
|
this.flowStateApiService = flowStateApiService;
|
|
2194
2200
|
this.quoteApiService = quoteApiService;
|
|
2201
|
+
this.isInitialized$ = new BehaviorSubject(false);
|
|
2202
|
+
this.canceledConfiguration$ = new Subject();
|
|
2195
2203
|
this.NOT_INITIALIZED = Symbol();
|
|
2196
2204
|
this.executedFunctions = {};
|
|
2197
2205
|
this.stateId = null;
|
|
2198
2206
|
this.ownerId = '';
|
|
2199
2207
|
this.subscriptions = {};
|
|
2200
|
-
this.
|
|
2201
|
-
this.canceledConfiguration$ = new Subject();
|
|
2208
|
+
this.configurationStore = {};
|
|
2202
2209
|
}
|
|
2203
2210
|
init$() {
|
|
2204
2211
|
let request$;
|
|
@@ -2215,6 +2222,7 @@ class ConfigurationStateService {
|
|
|
2215
2222
|
}
|
|
2216
2223
|
cleanup() {
|
|
2217
2224
|
this.stateId = null;
|
|
2225
|
+
this.configurationStore = {};
|
|
2218
2226
|
this.configurationService.reset();
|
|
2219
2227
|
}
|
|
2220
2228
|
execute$(req, forceSubscriptions) {
|
|
@@ -2446,6 +2454,8 @@ class ConfigurationStateService {
|
|
|
2446
2454
|
return functionToExecute({
|
|
2447
2455
|
request,
|
|
2448
2456
|
inputData,
|
|
2457
|
+
flowStore: this.flowStateService.getFlowStore(),
|
|
2458
|
+
configurationStore: this.configurationStore,
|
|
2449
2459
|
});
|
|
2450
2460
|
}
|
|
2451
2461
|
}
|