@veloceapps/sdk 10.0.0-20 → 10.0.0-22
Sign up to get free protection for your applications and to get access to all the features.
- package/cms/vendor-map.d.ts +3 -2
- package/core/modules/flow-configuration/services/flow-configuration.service.d.ts +4 -1
- package/esm2020/cms/components/element-tools-panel/element-tools-panel.component.mjs +3 -3
- package/esm2020/cms/vendor-map.mjs +5 -4
- package/esm2020/core/modules/flow-configuration/services/flow-configuration.service.mjs +16 -5
- package/fesm2015/veloceapps-sdk-cms.mjs +4 -3
- package/fesm2015/veloceapps-sdk-cms.mjs.map +1 -1
- package/fesm2015/veloceapps-sdk-core.mjs +14 -4
- package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk-cms.mjs +4 -3
- package/fesm2020/veloceapps-sdk-cms.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk-core.mjs +13 -4
- package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
- package/package.json +1 -1
@@ -1658,17 +1658,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
1658
1658
|
}], ctorParameters: function () { return [{ type: QuoteDraftService }, { type: ConfigurationRuntimeService }, { type: ContextService }, { type: i1.ConfigurationApiService }, { type: i5.MessageService }, { type: i6$1.DialogService }, { type: RuntimeSettingsService }]; } });
|
1659
1659
|
|
1660
1660
|
class FlowConfigurationService {
|
1661
|
-
constructor(proceduresApiService, contextService, quoteDraftService, updateService, configurationService) {
|
1661
|
+
constructor(proceduresApiService, contextService, quoteDraftService, updateService, configurationService, flowInfoService) {
|
1662
1662
|
this.proceduresApiService = proceduresApiService;
|
1663
1663
|
this.contextService = contextService;
|
1664
1664
|
this.quoteDraftService = quoteDraftService;
|
1665
1665
|
this.updateService = updateService;
|
1666
1666
|
this.configurationService = configurationService;
|
1667
|
+
this.flowInfoService = flowInfoService;
|
1667
1668
|
this.updatedSubj$ = new Subject();
|
1668
1669
|
this.updated$ = this.updatedSubj$.asObservable();
|
1669
1670
|
}
|
1670
1671
|
calculate$(quoteDraft) {
|
1671
|
-
return this.
|
1672
|
+
return this.extendedApply$(quoteDraft).pipe(tap$1(result => {
|
1672
1673
|
// sort the result current state based on the quote draft initial state
|
1673
1674
|
const initialStateIds = quoteDraft.initialState.map(lineItem => lineItem.integrationId);
|
1674
1675
|
result.currentState = result.currentState
|
@@ -1793,12 +1794,21 @@ class FlowConfigurationService {
|
|
1793
1794
|
}));
|
1794
1795
|
};
|
1795
1796
|
}
|
1797
|
+
extendedApply$(quoteDraft) {
|
1798
|
+
var _a;
|
1799
|
+
const request = Object.assign({}, quoteDraft);
|
1800
|
+
const procedureName = (_a = this.flowInfoService.flow) === null || _a === void 0 ? void 0 : _a.properties.procedureName;
|
1801
|
+
if (procedureName) {
|
1802
|
+
request.procedureName = procedureName;
|
1803
|
+
}
|
1804
|
+
return this.proceduresApiService.apply$(request);
|
1805
|
+
}
|
1796
1806
|
}
|
1797
|
-
FlowConfigurationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowConfigurationService, deps: [{ token: i1.ProceduresApiService }, { token: ContextService }, { token: QuoteDraftService }, { token: FlowUpdateService }, { token: ConfigurationService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1807
|
+
FlowConfigurationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowConfigurationService, deps: [{ token: i1.ProceduresApiService }, { token: ContextService }, { token: QuoteDraftService }, { token: FlowUpdateService }, { token: ConfigurationService }, { token: FlowInfoService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1798
1808
|
FlowConfigurationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowConfigurationService });
|
1799
1809
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowConfigurationService, decorators: [{
|
1800
1810
|
type: Injectable
|
1801
|
-
}], ctorParameters: function () { return [{ type: i1.ProceduresApiService }, { type: ContextService }, { type: QuoteDraftService }, { type: FlowUpdateService }, { type: ConfigurationService }]; } });
|
1811
|
+
}], ctorParameters: function () { return [{ type: i1.ProceduresApiService }, { type: ContextService }, { type: QuoteDraftService }, { type: FlowUpdateService }, { type: ConfigurationService }, { type: FlowInfoService }]; } });
|
1802
1812
|
|
1803
1813
|
class FlowConfigurationModule {
|
1804
1814
|
}
|