@veloceapps/api 3.0.8 → 3.0.9
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/bundles/veloce-api.umd.js +27 -0
- package/bundles/veloce-api.umd.js.map +1 -1
- package/esm2015/index.js +6 -5
- package/esm2015/lib/api.module.js +4 -1
- package/esm2015/lib/services/flows-api.service.js +24 -0
- package/fesm2015/veloce-api.js +23 -1
- package/fesm2015/veloce-api.js.map +1 -1
- package/index.d.ts +5 -4
- package/lib/services/flows-api.service.d.ts +13 -0
- package/package.json +1 -1
@@ -1343,6 +1343,30 @@
|
|
1343
1343
|
type: i0.Injectable
|
1344
1344
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }, { type: SalesforceApiService }, { type: i1__namespace.FileDownloadService }, { type: DocumentAttachmentApiService }, { type: QuoteApiService }, { type: i5__namespace.HttpClient }]; } });
|
1345
1345
|
|
1346
|
+
var FlowsApiService = /** @class */ (function () {
|
1347
|
+
function FlowsApiService(configurationSettingsApiService) {
|
1348
|
+
this.configurationSettingsApiService = configurationSettingsApiService;
|
1349
|
+
this.flowsKey = 'flows';
|
1350
|
+
}
|
1351
|
+
FlowsApiService.prototype.getFlow = function (id) {
|
1352
|
+
return this.fetchFlows().pipe(operators.map(function (flows) { return flows.find(function (flow) { return flow.id == id; }); }));
|
1353
|
+
};
|
1354
|
+
FlowsApiService.prototype.fetchFlows = function () {
|
1355
|
+
return this.configurationSettingsApiService
|
1356
|
+
.fetchSetting(this.flowsKey)
|
1357
|
+
.pipe(operators.map(function (_a) {
|
1358
|
+
var value = _a.value;
|
1359
|
+
return (value ? JSON.parse(value) : []);
|
1360
|
+
}));
|
1361
|
+
};
|
1362
|
+
return FlowsApiService;
|
1363
|
+
}());
|
1364
|
+
FlowsApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FlowsApiService, deps: [{ token: ConfigurationSettingsApiService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
1365
|
+
FlowsApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FlowsApiService });
|
1366
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FlowsApiService, decorators: [{
|
1367
|
+
type: i0.Injectable
|
1368
|
+
}], ctorParameters: function () { return [{ type: ConfigurationSettingsApiService }]; } });
|
1369
|
+
|
1346
1370
|
var PriceApiService = /** @class */ (function () {
|
1347
1371
|
function PriceApiService(httpService) {
|
1348
1372
|
this.httpService = httpService;
|
@@ -2298,6 +2322,7 @@
|
|
2298
2322
|
ScriptsApiService,
|
2299
2323
|
RulesApiService,
|
2300
2324
|
RuleGroupsApiService,
|
2325
|
+
FlowsApiService,
|
2301
2326
|
], imports: [[i5.HttpClientModule]] });
|
2302
2327
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ApiModule, decorators: [{
|
2303
2328
|
type: i0.NgModule,
|
@@ -2321,6 +2346,7 @@
|
|
2321
2346
|
ScriptsApiService,
|
2322
2347
|
RulesApiService,
|
2323
2348
|
RuleGroupsApiService,
|
2349
|
+
FlowsApiService,
|
2324
2350
|
],
|
2325
2351
|
}]
|
2326
2352
|
}] });
|
@@ -2335,6 +2361,7 @@
|
|
2335
2361
|
exports.ContextApiService = ContextApiService;
|
2336
2362
|
exports.DocumentAttachmentApiService = DocumentAttachmentApiService;
|
2337
2363
|
exports.DocumentTemplatesApiService = DocumentTemplatesApiService;
|
2364
|
+
exports.FlowsApiService = FlowsApiService;
|
2338
2365
|
exports.PriceApiService = PriceApiService;
|
2339
2366
|
exports.ProceduresApiService = ProceduresApiService;
|
2340
2367
|
exports.ProductModelApiService = ProductModelApiService;
|