@veloceapps/sdk 10.0.0-20 → 10.0.0-21
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/flow-configuration/services/flow-configuration.service.d.ts +4 -1
- package/esm2020/core/modules/flow-configuration/services/flow-configuration.service.mjs +16 -5
- package/fesm2015/veloceapps-sdk-core.mjs +14 -4
- package/fesm2015/veloceapps-sdk-core.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
|
@@ -1682,17 +1682,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
1682
1682
|
}] });
|
|
1683
1683
|
|
|
1684
1684
|
class FlowConfigurationService {
|
|
1685
|
-
constructor(proceduresApiService, contextService, quoteDraftService, updateService, configurationService) {
|
|
1685
|
+
constructor(proceduresApiService, contextService, quoteDraftService, updateService, configurationService, flowInfoService) {
|
|
1686
1686
|
this.proceduresApiService = proceduresApiService;
|
|
1687
1687
|
this.contextService = contextService;
|
|
1688
1688
|
this.quoteDraftService = quoteDraftService;
|
|
1689
1689
|
this.updateService = updateService;
|
|
1690
1690
|
this.configurationService = configurationService;
|
|
1691
|
+
this.flowInfoService = flowInfoService;
|
|
1691
1692
|
this.updatedSubj$ = new Subject();
|
|
1692
1693
|
this.updated$ = this.updatedSubj$.asObservable();
|
|
1693
1694
|
}
|
|
1694
1695
|
calculate$(quoteDraft) {
|
|
1695
|
-
return this.
|
|
1696
|
+
return this.extendedApply$(quoteDraft).pipe(tap$1(result => {
|
|
1696
1697
|
// sort the result current state based on the quote draft initial state
|
|
1697
1698
|
const initialStateIds = quoteDraft.initialState.map(lineItem => lineItem.integrationId);
|
|
1698
1699
|
result.currentState = result.currentState
|
|
@@ -1812,12 +1813,20 @@ class FlowConfigurationService {
|
|
|
1812
1813
|
}));
|
|
1813
1814
|
};
|
|
1814
1815
|
}
|
|
1816
|
+
extendedApply$(quoteDraft) {
|
|
1817
|
+
const request = { ...quoteDraft };
|
|
1818
|
+
const procedureName = this.flowInfoService.flow?.properties.procedureName;
|
|
1819
|
+
if (procedureName) {
|
|
1820
|
+
request.procedureName = procedureName;
|
|
1821
|
+
}
|
|
1822
|
+
return this.proceduresApiService.apply$(request);
|
|
1823
|
+
}
|
|
1815
1824
|
}
|
|
1816
|
-
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 });
|
|
1825
|
+
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 });
|
|
1817
1826
|
FlowConfigurationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowConfigurationService });
|
|
1818
1827
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowConfigurationService, decorators: [{
|
|
1819
1828
|
type: Injectable
|
|
1820
|
-
}], ctorParameters: function () { return [{ type: i1.ProceduresApiService }, { type: ContextService }, { type: QuoteDraftService }, { type: FlowUpdateService }, { type: ConfigurationService }]; } });
|
|
1829
|
+
}], ctorParameters: function () { return [{ type: i1.ProceduresApiService }, { type: ContextService }, { type: QuoteDraftService }, { type: FlowUpdateService }, { type: ConfigurationService }, { type: FlowInfoService }]; } });
|
|
1821
1830
|
|
|
1822
1831
|
class FlowConfigurationModule {
|
|
1823
1832
|
}
|