@veloceapps/api 3.0.8 → 3.0.10
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 +32 -4
- package/bundles/veloce-api.umd.js.map +1 -1
- package/esm2015/index.js +7 -5
- package/esm2015/lib/api.module.js +4 -1
- package/esm2015/lib/services/configuration-api.service.js +2 -2
- package/esm2015/lib/services/configuration-settings-api.service.js +4 -5
- package/esm2015/lib/services/flows-api.service.js +24 -0
- package/esm2015/lib/services/ramp-api.service.js +1 -1
- package/esm2015/lib/services/ui-templates-api.service.js +1 -1
- package/esm2015/lib/types/dto/attribute-dto.types.js +21 -0
- package/esm2015/lib/types/dto/charge-group-item-dto.types.js +45 -0
- package/esm2015/lib/types/dto/charge-item-dto.types.js +74 -0
- package/esm2015/lib/types/dto/configuration-dto.types.js +17 -0
- package/esm2015/lib/types/dto/configuration-settings-dto.types.js +22 -0
- package/esm2015/lib/types/dto/domain-type-dto.types.js +27 -0
- package/esm2015/lib/types/dto/line-item-dto.types.js +95 -0
- package/esm2015/lib/types/dto/port-domain-dto.types.js +22 -0
- package/esm2015/lib/types/dto/price-adjustment-dto.types.js +15 -0
- package/esm2015/lib/types/dto/price-dto.types.js +25 -0
- package/esm2015/lib/types/dto/recommended-price-dto.types.js +23 -0
- package/esm2015/lib/types/dto/ui-template-dto.types.js +2 -0
- package/esm2015/lib/types/index.js +3 -0
- package/esm2015/lib/types/ramp-request.types.js +2 -0
- package/esm2015/lib/utils/ui-template.utils.js +1 -1
- package/fesm2015/veloce-api.js +28 -5
- package/fesm2015/veloce-api.js.map +1 -1
- package/index.d.ts +6 -5
- package/lib/services/flows-api.service.d.ts +13 -0
- package/lib/services/ramp-api.service.d.ts +2 -1
- package/lib/types/{attribute-dto.types.d.ts → dto/attribute-dto.types.d.ts} +0 -0
- package/lib/types/{charge-group-item-dto.types.d.ts → dto/charge-group-item-dto.types.d.ts} +0 -0
- package/lib/types/{charge-item-dto.types.d.ts → dto/charge-item-dto.types.d.ts} +0 -0
- package/lib/types/{configuration-dto.types.d.ts → dto/configuration-dto.types.d.ts} +0 -0
- package/lib/types/{configuration-settings-dto.types.d.ts → dto/configuration-settings-dto.types.d.ts} +0 -0
- package/lib/types/{domain-type-dto.types.d.ts → dto/domain-type-dto.types.d.ts} +0 -0
- package/lib/types/{line-item-dto.types.d.ts → dto/line-item-dto.types.d.ts} +2 -1
- package/lib/types/{port-domain-dto.types.d.ts → dto/port-domain-dto.types.d.ts} +0 -0
- package/lib/types/{price-adjustment-dto.types.d.ts → dto/price-adjustment-dto.types.d.ts} +0 -0
- package/lib/types/{price-dto.types.d.ts → dto/price-dto.types.d.ts} +0 -0
- package/lib/types/{recommended-price-dto.types.d.ts → dto/recommended-price-dto.types.d.ts} +0 -0
- package/lib/types/{ui-template-dto.types.d.ts → dto/ui-template-dto.types.d.ts} +0 -0
- package/lib/types/index.d.ts +2 -0
- package/lib/types/ramp-request.types.d.ts +7 -0
- package/lib/utils/ui-template.utils.d.ts +1 -1
- package/package.json +1 -1
- package/esm2015/lib/types/attribute-dto.types.js +0 -21
- package/esm2015/lib/types/charge-group-item-dto.types.js +0 -45
- package/esm2015/lib/types/charge-item-dto.types.js +0 -74
- package/esm2015/lib/types/configuration-dto.types.js +0 -17
- package/esm2015/lib/types/configuration-settings-dto.types.js +0 -22
- package/esm2015/lib/types/domain-type-dto.types.js +0 -27
- package/esm2015/lib/types/line-item-dto.types.js +0 -93
- package/esm2015/lib/types/port-domain-dto.types.js +0 -22
- package/esm2015/lib/types/price-adjustment-dto.types.js +0 -15
- package/esm2015/lib/types/price-dto.types.js +0 -25
- package/esm2015/lib/types/recommended-price-dto.types.js +0 -23
- package/esm2015/lib/types/ui-template-dto.types.js +0 -2
@@ -603,7 +603,7 @@
|
|
603
603
|
}());
|
604
604
|
|
605
605
|
var LineItemDTO = /** @class */ (function () {
|
606
|
-
function LineItemDTO(id, activated, attributes, attributeDomains, cfgStatus, chargeGroupItems, chargeItems, domainComputations, lineItems, messages, name, optionalCharges, pending, portDomains, properties, qty, totalPrices, type, productId, port, parentId, assetId, openOrderLineItemId, productName, rootId, actionCode, serviceStartDate, effectiveDate, startDate, endDate, planId, sellingFrequencyUnit, sellingFrequencyDuration, offeringId, offeringItemId, offeringInstanceId, rampInstanceId, enableRamp, configurable) {
|
606
|
+
function LineItemDTO(id, activated, attributes, attributeDomains, cfgStatus, chargeGroupItems, chargeItems, domainComputations, lineItems, messages, name, optionalCharges, pending, portDomains, properties, qty, totalPrices, type, productId, port, parentId, assetId, openOrderLineItemId, productName, rootId, actionCode, serviceStartDate, effectiveDate, effectiveStartDate, startDate, endDate, planId, sellingFrequencyUnit, sellingFrequencyDuration, offeringId, offeringItemId, offeringInstanceId, rampInstanceId, enableRamp, configurable) {
|
607
607
|
this.id = id;
|
608
608
|
this.activated = activated;
|
609
609
|
this.attributes = attributes;
|
@@ -632,6 +632,7 @@
|
|
632
632
|
this.actionCode = actionCode;
|
633
633
|
this.serviceStartDate = serviceStartDate;
|
634
634
|
this.effectiveDate = effectiveDate;
|
635
|
+
this.effectiveStartDate = effectiveStartDate;
|
635
636
|
this.startDate = startDate;
|
636
637
|
this.endDate = endDate;
|
637
638
|
this.planId = planId;
|
@@ -674,6 +675,7 @@
|
|
674
675
|
actionCode: dto.actionCode,
|
675
676
|
serviceStartDate: dto.serviceStartDate,
|
676
677
|
effectiveDate: dto.effectiveDate,
|
678
|
+
effectiveStartDate: dto.effectiveStartDate,
|
677
679
|
startDate: dto.startDate,
|
678
680
|
endDate: dto.endDate,
|
679
681
|
planId: dto.planId,
|
@@ -862,10 +864,9 @@
|
|
862
864
|
});
|
863
865
|
};
|
864
866
|
ConfigurationSettingsApiService.prototype.clear = function (name) {
|
865
|
-
return this.httpService
|
866
|
-
.api({
|
867
|
+
return this.httpService.api({
|
867
868
|
method: 'get',
|
868
|
-
url: '/cache/evict/' + name
|
869
|
+
url: '/cache/evict/' + name,
|
869
870
|
});
|
870
871
|
};
|
871
872
|
return ConfigurationSettingsApiService;
|
@@ -1343,6 +1344,30 @@
|
|
1343
1344
|
type: i0.Injectable
|
1344
1345
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }, { type: SalesforceApiService }, { type: i1__namespace.FileDownloadService }, { type: DocumentAttachmentApiService }, { type: QuoteApiService }, { type: i5__namespace.HttpClient }]; } });
|
1345
1346
|
|
1347
|
+
var FlowsApiService = /** @class */ (function () {
|
1348
|
+
function FlowsApiService(configurationSettingsApiService) {
|
1349
|
+
this.configurationSettingsApiService = configurationSettingsApiService;
|
1350
|
+
this.flowsKey = 'flows';
|
1351
|
+
}
|
1352
|
+
FlowsApiService.prototype.getFlow = function (id) {
|
1353
|
+
return this.fetchFlows().pipe(operators.map(function (flows) { return flows.find(function (flow) { return flow.id == id; }); }));
|
1354
|
+
};
|
1355
|
+
FlowsApiService.prototype.fetchFlows = function () {
|
1356
|
+
return this.configurationSettingsApiService
|
1357
|
+
.fetchSetting(this.flowsKey)
|
1358
|
+
.pipe(operators.map(function (_a) {
|
1359
|
+
var value = _a.value;
|
1360
|
+
return (value ? JSON.parse(value) : []);
|
1361
|
+
}));
|
1362
|
+
};
|
1363
|
+
return FlowsApiService;
|
1364
|
+
}());
|
1365
|
+
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 });
|
1366
|
+
FlowsApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FlowsApiService });
|
1367
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FlowsApiService, decorators: [{
|
1368
|
+
type: i0.Injectable
|
1369
|
+
}], ctorParameters: function () { return [{ type: ConfigurationSettingsApiService }]; } });
|
1370
|
+
|
1346
1371
|
var PriceApiService = /** @class */ (function () {
|
1347
1372
|
function PriceApiService(httpService) {
|
1348
1373
|
this.httpService = httpService;
|
@@ -2298,6 +2323,7 @@
|
|
2298
2323
|
ScriptsApiService,
|
2299
2324
|
RulesApiService,
|
2300
2325
|
RuleGroupsApiService,
|
2326
|
+
FlowsApiService,
|
2301
2327
|
], imports: [[i5.HttpClientModule]] });
|
2302
2328
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ApiModule, decorators: [{
|
2303
2329
|
type: i0.NgModule,
|
@@ -2321,6 +2347,7 @@
|
|
2321
2347
|
ScriptsApiService,
|
2322
2348
|
RulesApiService,
|
2323
2349
|
RuleGroupsApiService,
|
2350
|
+
FlowsApiService,
|
2324
2351
|
],
|
2325
2352
|
}]
|
2326
2353
|
}] });
|
@@ -2335,6 +2362,7 @@
|
|
2335
2362
|
exports.ContextApiService = ContextApiService;
|
2336
2363
|
exports.DocumentAttachmentApiService = DocumentAttachmentApiService;
|
2337
2364
|
exports.DocumentTemplatesApiService = DocumentTemplatesApiService;
|
2365
|
+
exports.FlowsApiService = FlowsApiService;
|
2338
2366
|
exports.PriceApiService = PriceApiService;
|
2339
2367
|
exports.ProceduresApiService = ProceduresApiService;
|
2340
2368
|
exports.ProductModelApiService = ProductModelApiService;
|