@veloceapps/api 6.0.0-8 → 6.0.0-81
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/veloceapps-api.umd.js +254 -93
- package/bundles/veloceapps-api.umd.js.map +1 -1
- package/esm2015/index.js +2 -1
- package/esm2015/lib/api.module.js +8 -5
- package/esm2015/lib/services/account-api.service.js +3 -3
- package/esm2015/lib/services/catalog-admin-api.service.js +4 -5
- package/esm2015/lib/services/catalog-api.service.js +3 -3
- package/esm2015/lib/services/configuration-api.service.js +3 -3
- package/esm2015/lib/services/configuration-settings-api.service.js +16 -7
- package/esm2015/lib/services/context-api.service.js +3 -3
- package/esm2015/lib/services/delta-api.service.js +3 -3
- package/esm2015/lib/services/document-attachment-api.service.js +3 -3
- package/esm2015/lib/services/document-templates-api.service.js +3 -3
- package/esm2015/lib/services/endpoints-api.service.js +3 -3
- package/esm2015/lib/services/flows-api.service.js +3 -3
- package/esm2015/lib/services/offers-api.service.js +76 -0
- package/esm2015/lib/services/org-info-api.service.js +3 -3
- package/esm2015/lib/services/picklists-api.service.js +3 -3
- package/esm2015/lib/services/price-api.service.js +3 -3
- package/esm2015/lib/services/procedures-api.service.js +3 -3
- package/esm2015/lib/services/product-api.service.js +3 -3
- package/esm2015/lib/services/product-model-api.service.js +3 -3
- package/esm2015/lib/services/quote-api.service.js +3 -3
- package/esm2015/lib/services/ramp-api.service.js +3 -3
- package/esm2015/lib/services/rule-groups-api.service.js +3 -3
- package/esm2015/lib/services/rules-api.service.js +7 -6
- package/esm2015/lib/services/salesforce-api.service.js +7 -4
- package/esm2015/lib/services/scripts-api.service.js +3 -3
- package/esm2015/lib/services/shopping-cart-settings-api.service.js +11 -5
- package/esm2015/lib/services/ui-templates-api.service.js +3 -3
- package/esm2015/lib/types/dto/offers-dto.types.js +2 -0
- package/esm2015/lib/types/index.js +1 -1
- package/fesm2015/veloceapps-api.js +178 -88
- package/fesm2015/veloceapps-api.js.map +1 -1
- package/index.d.ts +1 -0
- package/lib/services/configuration-settings-api.service.d.ts +4 -2
- package/lib/services/offers-api.service.d.ts +19 -0
- package/lib/services/salesforce-api.service.d.ts +5 -0
- package/lib/services/shopping-cart-settings-api.service.d.ts +2 -1
- package/lib/types/dto/offers-dto.types.d.ts +9 -0
- package/lib/types/index.d.ts +1 -0
- package/package.json +1 -1
@@ -1,8 +1,8 @@
|
|
1
1
|
(function (global, factory) {
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common/http'), require('@angular/core'), require('@veloceapps/core'), require('rxjs'), require('rxjs/operators'), require('@angular/common'), require('lodash'), require('moment')) :
|
3
|
-
typeof define === 'function' && define.amd ? define('@veloceapps/api', ['exports', '@angular/common/http', '@angular/core', '@veloceapps/core', 'rxjs', 'rxjs/operators', '@angular/common', 'lodash', 'moment'], factory) :
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.veloceapps = global.veloceapps || {}, global.veloceapps.api = {}), global.ng.common.http, global.ng.core, global["@veloceapps/core"], global.rxjs, global.rxjs.operators, global.ng.common, global.lodash, global.moment));
|
5
|
-
})(this, (function (exports, i4, i0, i1, rxjs, operators, common, _, moment_) { 'use strict';
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common/http'), require('@angular/core'), require('@veloceapps/core'), require('rxjs'), require('rxjs/operators'), require('primeng/api'), require('@angular/common'), require('lodash'), require('moment')) :
|
3
|
+
typeof define === 'function' && define.amd ? define('@veloceapps/api', ['exports', '@angular/common/http', '@angular/core', '@veloceapps/core', 'rxjs', 'rxjs/operators', 'primeng/api', '@angular/common', 'lodash', 'moment'], factory) :
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.veloceapps = global.veloceapps || {}, global.veloceapps.api = {}), global.ng.common.http, global.ng.core, global["@veloceapps/core"], global.rxjs, global.rxjs.operators, global.i2, global.ng.common, global.lodash, global.moment));
|
5
|
+
})(this, (function (exports, i4, i0, i1, rxjs, operators, i2, common, _, moment_) { 'use strict';
|
6
6
|
|
7
7
|
function _interopNamespace(e) {
|
8
8
|
if (e && e.__esModule) return e;
|
@@ -25,6 +25,7 @@
|
|
25
25
|
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
26
26
|
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
27
27
|
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
28
|
+
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
28
29
|
var ___namespace = /*#__PURE__*/_interopNamespace(_);
|
29
30
|
var moment___namespace = /*#__PURE__*/_interopNamespace(moment_);
|
30
31
|
|
@@ -69,9 +70,9 @@
|
|
69
70
|
};
|
70
71
|
return AccountApiService;
|
71
72
|
}());
|
72
|
-
AccountApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
73
|
-
AccountApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
74
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
73
|
+
AccountApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AccountApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
74
|
+
AccountApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AccountApiService });
|
75
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AccountApiService, decorators: [{
|
75
76
|
type: i0.Injectable
|
76
77
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
77
78
|
|
@@ -224,16 +225,15 @@
|
|
224
225
|
return _this.baseHttpService.api({
|
225
226
|
method: 'delete',
|
226
227
|
url: _this.serviceUrl + "/" + catalogId + "/categories/" + categoryId + "/products/" + data.id,
|
227
|
-
body: data,
|
228
228
|
});
|
229
229
|
};
|
230
230
|
}
|
231
231
|
return CatalogAdminApiService;
|
232
232
|
}());
|
233
233
|
CatalogAdminApiService.MAX_RESULTS = 60;
|
234
|
-
CatalogAdminApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
235
|
-
CatalogAdminApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
236
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
234
|
+
CatalogAdminApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CatalogAdminApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
235
|
+
CatalogAdminApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CatalogAdminApiService });
|
236
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CatalogAdminApiService, decorators: [{
|
237
237
|
type: i0.Injectable
|
238
238
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
239
239
|
|
@@ -318,13 +318,13 @@
|
|
318
318
|
};
|
319
319
|
return CatalogApiService;
|
320
320
|
}());
|
321
|
-
CatalogApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
322
|
-
CatalogApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
323
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
321
|
+
CatalogApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CatalogApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
322
|
+
CatalogApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CatalogApiService });
|
323
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CatalogApiService, decorators: [{
|
324
324
|
type: i0.Injectable
|
325
325
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
326
326
|
|
327
|
-
|
327
|
+
/******************************************************************************
|
328
328
|
Copyright (c) Microsoft Corporation.
|
329
329
|
|
330
330
|
Permission to use, copy, modify, and/or distribute this software for any
|
@@ -391,6 +391,64 @@
|
|
391
391
|
function __param(paramIndex, decorator) {
|
392
392
|
return function (target, key) { decorator(target, key, paramIndex); };
|
393
393
|
}
|
394
|
+
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
395
|
+
function accept(f) { if (f !== void 0 && typeof f !== "function")
|
396
|
+
throw new TypeError("Function expected"); return f; }
|
397
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
398
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
399
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
400
|
+
var _, done = false;
|
401
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
402
|
+
var context = {};
|
403
|
+
for (var p in contextIn)
|
404
|
+
context[p] = p === "access" ? {} : contextIn[p];
|
405
|
+
for (var p in contextIn.access)
|
406
|
+
context.access[p] = contextIn.access[p];
|
407
|
+
context.addInitializer = function (f) { if (done)
|
408
|
+
throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
409
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
410
|
+
if (kind === "accessor") {
|
411
|
+
if (result === void 0)
|
412
|
+
continue;
|
413
|
+
if (result === null || typeof result !== "object")
|
414
|
+
throw new TypeError("Object expected");
|
415
|
+
if (_ = accept(result.get))
|
416
|
+
descriptor.get = _;
|
417
|
+
if (_ = accept(result.set))
|
418
|
+
descriptor.set = _;
|
419
|
+
if (_ = accept(result.init))
|
420
|
+
initializers.push(_);
|
421
|
+
}
|
422
|
+
else if (_ = accept(result)) {
|
423
|
+
if (kind === "field")
|
424
|
+
initializers.push(_);
|
425
|
+
else
|
426
|
+
descriptor[key] = _;
|
427
|
+
}
|
428
|
+
}
|
429
|
+
if (target)
|
430
|
+
Object.defineProperty(target, contextIn.name, descriptor);
|
431
|
+
done = true;
|
432
|
+
}
|
433
|
+
;
|
434
|
+
function __runInitializers(thisArg, initializers, value) {
|
435
|
+
var useValue = arguments.length > 2;
|
436
|
+
for (var i = 0; i < initializers.length; i++) {
|
437
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
438
|
+
}
|
439
|
+
return useValue ? value : void 0;
|
440
|
+
}
|
441
|
+
;
|
442
|
+
function __propKey(x) {
|
443
|
+
return typeof x === "symbol" ? x : "".concat(x);
|
444
|
+
}
|
445
|
+
;
|
446
|
+
function __setFunctionName(f, name, prefix) {
|
447
|
+
if (typeof name === "symbol")
|
448
|
+
name = name.description ? "[".concat(name.description, "]") : "";
|
449
|
+
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
450
|
+
}
|
451
|
+
;
|
394
452
|
function __metadata(metadataKey, metadataValue) {
|
395
453
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
396
454
|
return Reflect.metadata(metadataKey, metadataValue);
|
@@ -422,7 +480,7 @@
|
|
422
480
|
function step(op) {
|
423
481
|
if (f)
|
424
482
|
throw new TypeError("Generator is already executing.");
|
425
|
-
while (_)
|
483
|
+
while (g && (g = 0, op[0] && (_ = 0)), _)
|
426
484
|
try {
|
427
485
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
428
486
|
return t;
|
@@ -486,7 +544,11 @@
|
|
486
544
|
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
487
545
|
if (k2 === undefined)
|
488
546
|
k2 = k;
|
489
|
-
Object.
|
547
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
548
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
549
|
+
desc = { enumerable: true, get: function () { return m[k]; } };
|
550
|
+
}
|
551
|
+
Object.defineProperty(o, k2, desc);
|
490
552
|
}) : (function (o, m, k, k2) {
|
491
553
|
if (k2 === undefined)
|
492
554
|
k2 = k;
|
@@ -586,7 +648,7 @@
|
|
586
648
|
function __asyncDelegator(o) {
|
587
649
|
var i, p;
|
588
650
|
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
589
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done:
|
651
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
|
590
652
|
}
|
591
653
|
function __asyncValues(o) {
|
592
654
|
if (!Symbol.asyncIterator)
|
@@ -641,6 +703,11 @@
|
|
641
703
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
642
704
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
643
705
|
}
|
706
|
+
function __classPrivateFieldIn(state, receiver) {
|
707
|
+
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
|
708
|
+
throw new TypeError("Cannot use 'in' operator on non-object");
|
709
|
+
return typeof state === "function" ? receiver === state : state.has(receiver);
|
710
|
+
}
|
644
711
|
|
645
712
|
var ConfigurationApiService = /** @class */ (function () {
|
646
713
|
function ConfigurationApiService(httpService) {
|
@@ -717,9 +784,9 @@
|
|
717
784
|
};
|
718
785
|
return ConfigurationApiService;
|
719
786
|
}());
|
720
|
-
ConfigurationApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
721
|
-
ConfigurationApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
722
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
787
|
+
ConfigurationApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ConfigurationApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
788
|
+
ConfigurationApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ConfigurationApiService });
|
789
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ConfigurationApiService, decorators: [{
|
723
790
|
type: i0.Injectable
|
724
791
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
725
792
|
|
@@ -747,8 +814,9 @@
|
|
747
814
|
}());
|
748
815
|
|
749
816
|
var ConfigurationSettingsApiService = /** @class */ (function () {
|
750
|
-
function ConfigurationSettingsApiService(httpService) {
|
817
|
+
function ConfigurationSettingsApiService(httpService, messageService) {
|
751
818
|
this.httpService = httpService;
|
819
|
+
this.messageService = messageService;
|
752
820
|
this.SERVICE_URL = '/configuration-settings';
|
753
821
|
}
|
754
822
|
ConfigurationSettingsApiService.prototype.fetchSettings = function (options) {
|
@@ -757,10 +825,18 @@
|
|
757
825
|
.pipe(operators.map(function (settings) { return settings.map(function (setting) { return ConfigurationSettingsDTO.fromDTO(setting); }); }));
|
758
826
|
};
|
759
827
|
ConfigurationSettingsApiService.prototype.fetchSetting = function (settingsKey, options) {
|
828
|
+
var _this = this;
|
760
829
|
return this.httpService
|
761
|
-
.api(Object.assign({ url: this.SERVICE_URL + "/byKey/" + settingsKey, method: 'get' }, options))
|
830
|
+
.api(Object.assign(Object.assign({ url: this.SERVICE_URL + "/byKey/" + settingsKey, method: 'get' }, options), { skipErrorHandler: true }))
|
762
831
|
.pipe(operators.map(function (setting) { return ConfigurationSettingsDTO.fromDTO(setting, settingsKey); }), operators.catchError(function (err) {
|
763
832
|
if (err instanceof i4.HttpErrorResponse && err.status === 404) {
|
833
|
+
if (!(options === null || options === void 0 ? void 0 : options.skipErrorHandler)) {
|
834
|
+
_this.messageService.add({
|
835
|
+
severity: 'error',
|
836
|
+
summary: "Configuration Setting \"" + settingsKey + "\" is not found",
|
837
|
+
sticky: true,
|
838
|
+
});
|
839
|
+
}
|
764
840
|
return rxjs.of(null);
|
765
841
|
}
|
766
842
|
throw err;
|
@@ -786,11 +862,11 @@
|
|
786
862
|
};
|
787
863
|
return ConfigurationSettingsApiService;
|
788
864
|
}());
|
789
|
-
ConfigurationSettingsApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
790
|
-
ConfigurationSettingsApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
791
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
865
|
+
ConfigurationSettingsApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ConfigurationSettingsApiService, deps: [{ token: i1__namespace.BaseHttpService }, { token: i2__namespace.MessageService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
866
|
+
ConfigurationSettingsApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ConfigurationSettingsApiService });
|
867
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ConfigurationSettingsApiService, decorators: [{
|
792
868
|
type: i0.Injectable
|
793
|
-
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
869
|
+
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }, { type: i2__namespace.MessageService }]; } });
|
794
870
|
|
795
871
|
var ContextApiService = /** @class */ (function () {
|
796
872
|
function ContextApiService(httpService) {
|
@@ -809,9 +885,9 @@
|
|
809
885
|
};
|
810
886
|
return ContextApiService;
|
811
887
|
}());
|
812
|
-
ContextApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
813
|
-
ContextApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
814
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
888
|
+
ContextApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ContextApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
889
|
+
ContextApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ContextApiService });
|
890
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ContextApiService, decorators: [{
|
815
891
|
type: i0.Injectable
|
816
892
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
817
893
|
|
@@ -830,9 +906,9 @@
|
|
830
906
|
};
|
831
907
|
return DeltaApiService;
|
832
908
|
}());
|
833
|
-
DeltaApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
834
|
-
DeltaApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
835
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
909
|
+
DeltaApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DeltaApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
910
|
+
DeltaApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DeltaApiService });
|
911
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DeltaApiService, decorators: [{
|
836
912
|
type: i0.Injectable
|
837
913
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
838
914
|
|
@@ -894,9 +970,9 @@
|
|
894
970
|
};
|
895
971
|
return DocumentAttachmentApiService;
|
896
972
|
}());
|
897
|
-
DocumentAttachmentApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
898
|
-
DocumentAttachmentApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
899
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
973
|
+
DocumentAttachmentApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DocumentAttachmentApiService, deps: [{ token: i1__namespace.BaseHttpService }, { token: i1__namespace.FileDownloadService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
974
|
+
DocumentAttachmentApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DocumentAttachmentApiService });
|
975
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DocumentAttachmentApiService, decorators: [{
|
900
976
|
type: i0.Injectable
|
901
977
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }, { type: i1__namespace.FileDownloadService }]; } });
|
902
978
|
|
@@ -915,6 +991,9 @@
|
|
915
991
|
}
|
916
992
|
return this.httpService.api(Object.assign({ url: this.SERVICE_URL + "/query", params: params }, options));
|
917
993
|
};
|
994
|
+
SalesforceApiService.prototype.search = function (req, options) {
|
995
|
+
return this.httpService.api(Object.assign({ url: this.SERVICE_URL + "/rest/search", params: { q: req.searchString } }, options));
|
996
|
+
};
|
918
997
|
SalesforceApiService.prototype.describe = function (objectName, fieldName, options) {
|
919
998
|
var methodUrl = this.SERVICE_URL + "/describe/" + objectName + "/fields" + (fieldName ? "/" + fieldName : '');
|
920
999
|
return this.httpService.api(Object.assign({ url: methodUrl }, options));
|
@@ -931,9 +1010,9 @@
|
|
931
1010
|
};
|
932
1011
|
return SalesforceApiService;
|
933
1012
|
}());
|
934
|
-
SalesforceApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
935
|
-
SalesforceApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
936
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
1013
|
+
SalesforceApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SalesforceApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
1014
|
+
SalesforceApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SalesforceApiService });
|
1015
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SalesforceApiService, decorators: [{
|
937
1016
|
type: i0.Injectable
|
938
1017
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
939
1018
|
|
@@ -1234,9 +1313,9 @@
|
|
1234
1313
|
};
|
1235
1314
|
return DocumentTemplatesApiService;
|
1236
1315
|
}());
|
1237
|
-
DocumentTemplatesApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1238
|
-
DocumentTemplatesApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1239
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
1316
|
+
DocumentTemplatesApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DocumentTemplatesApiService, deps: [{ token: i1__namespace.BaseHttpService }, { token: SalesforceApiService }, { token: i1__namespace.FileDownloadService }, { token: DocumentAttachmentApiService }, { token: i4__namespace.HttpClient }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
1317
|
+
DocumentTemplatesApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DocumentTemplatesApiService });
|
1318
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DocumentTemplatesApiService, decorators: [{
|
1240
1319
|
type: i0.Injectable
|
1241
1320
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }, { type: SalesforceApiService }, { type: i1__namespace.FileDownloadService }, { type: DocumentAttachmentApiService }, { type: i4__namespace.HttpClient }]; } });
|
1242
1321
|
|
@@ -1310,9 +1389,9 @@
|
|
1310
1389
|
};
|
1311
1390
|
return EndpointsApiService;
|
1312
1391
|
}());
|
1313
|
-
EndpointsApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1314
|
-
EndpointsApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1315
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
1392
|
+
EndpointsApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: EndpointsApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
1393
|
+
EndpointsApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: EndpointsApiService });
|
1394
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: EndpointsApiService, decorators: [{
|
1316
1395
|
type: i0.Injectable
|
1317
1396
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
1318
1397
|
|
@@ -1331,12 +1410,84 @@
|
|
1331
1410
|
};
|
1332
1411
|
return FlowsApiService;
|
1333
1412
|
}());
|
1334
|
-
FlowsApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1335
|
-
FlowsApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1336
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
1413
|
+
FlowsApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FlowsApiService, deps: [{ token: ConfigurationSettingsApiService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
1414
|
+
FlowsApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FlowsApiService });
|
1415
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FlowsApiService, decorators: [{
|
1337
1416
|
type: i0.Injectable
|
1338
1417
|
}], ctorParameters: function () { return [{ type: ConfigurationSettingsApiService }]; } });
|
1339
1418
|
|
1419
|
+
var OffersApiService = /** @class */ (function () {
|
1420
|
+
function OffersApiService(baseHttpService) {
|
1421
|
+
this.baseHttpService = baseHttpService;
|
1422
|
+
this.serviceUrl = '/admin/offers';
|
1423
|
+
}
|
1424
|
+
OffersApiService.prototype.createOffer$ = function (body) {
|
1425
|
+
return this.baseHttpService.api({
|
1426
|
+
url: "" + this.serviceUrl,
|
1427
|
+
method: 'post',
|
1428
|
+
body: body,
|
1429
|
+
});
|
1430
|
+
};
|
1431
|
+
OffersApiService.prototype.fetchOffers$ = function () {
|
1432
|
+
return this.baseHttpService.api({
|
1433
|
+
url: "" + this.serviceUrl,
|
1434
|
+
});
|
1435
|
+
};
|
1436
|
+
OffersApiService.prototype.fetchOffer$ = function (id) {
|
1437
|
+
return this.baseHttpService.api({
|
1438
|
+
url: this.serviceUrl + "/" + id,
|
1439
|
+
});
|
1440
|
+
};
|
1441
|
+
OffersApiService.prototype.updateOffer$ = function (offer) {
|
1442
|
+
return this.baseHttpService.api({
|
1443
|
+
url: this.serviceUrl + "/" + offer.id,
|
1444
|
+
method: 'put',
|
1445
|
+
body: offer,
|
1446
|
+
});
|
1447
|
+
};
|
1448
|
+
OffersApiService.prototype.removeOffer$ = function (id) {
|
1449
|
+
return this.baseHttpService.api({
|
1450
|
+
url: this.serviceUrl + "/" + id,
|
1451
|
+
method: 'delete',
|
1452
|
+
});
|
1453
|
+
};
|
1454
|
+
OffersApiService.prototype.searchOffers$ = function (expression, skip, count) {
|
1455
|
+
var params = new i4.HttpParams();
|
1456
|
+
params = params.set('skip', '' + skip);
|
1457
|
+
params = params.set('count', '' + count);
|
1458
|
+
return this.baseHttpService.api({
|
1459
|
+
method: 'post',
|
1460
|
+
url: this.serviceUrl + "/search",
|
1461
|
+
params: params,
|
1462
|
+
body: expression,
|
1463
|
+
});
|
1464
|
+
};
|
1465
|
+
OffersApiService.prototype.fetchOfferProducts$ = function (id) {
|
1466
|
+
return this.baseHttpService
|
1467
|
+
.api({
|
1468
|
+
url: this.serviceUrl + "/" + id + "/products",
|
1469
|
+
})
|
1470
|
+
.pipe(rxjs.map(function (response) { return response.products; }));
|
1471
|
+
};
|
1472
|
+
OffersApiService.prototype.upsertOfferProducts$ = function (id, products) {
|
1473
|
+
var request = { products: products };
|
1474
|
+
return this.baseHttpService
|
1475
|
+
.api({
|
1476
|
+
url: this.serviceUrl + "/" + id + "/products",
|
1477
|
+
method: 'put',
|
1478
|
+
body: request,
|
1479
|
+
})
|
1480
|
+
.pipe(rxjs.map(function (response) { return response.products; }));
|
1481
|
+
};
|
1482
|
+
return OffersApiService;
|
1483
|
+
}());
|
1484
|
+
OffersApiService.MAX_RESULTS = 60;
|
1485
|
+
OffersApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: OffersApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
1486
|
+
OffersApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: OffersApiService });
|
1487
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: OffersApiService, decorators: [{
|
1488
|
+
type: i0.Injectable
|
1489
|
+
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
1490
|
+
|
1340
1491
|
var OrgInfoApiService = /** @class */ (function () {
|
1341
1492
|
function OrgInfoApiService(http) {
|
1342
1493
|
var _a;
|
@@ -1349,9 +1500,9 @@
|
|
1349
1500
|
};
|
1350
1501
|
return OrgInfoApiService;
|
1351
1502
|
}());
|
1352
|
-
OrgInfoApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1353
|
-
OrgInfoApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1354
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
1503
|
+
OrgInfoApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: OrgInfoApiService, deps: [{ token: i4__namespace.HttpClient }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
1504
|
+
OrgInfoApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: OrgInfoApiService });
|
1505
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: OrgInfoApiService, decorators: [{
|
1355
1506
|
type: i0.Injectable
|
1356
1507
|
}], ctorParameters: function () { return [{ type: i4__namespace.HttpClient }]; } });
|
1357
1508
|
|
@@ -1386,9 +1537,9 @@
|
|
1386
1537
|
}
|
1387
1538
|
return PicklistsApiService;
|
1388
1539
|
}());
|
1389
|
-
PicklistsApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1390
|
-
PicklistsApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1391
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
1540
|
+
PicklistsApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PicklistsApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
1541
|
+
PicklistsApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PicklistsApiService });
|
1542
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PicklistsApiService, decorators: [{
|
1392
1543
|
type: i0.Injectable
|
1393
1544
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
1394
1545
|
|
@@ -1447,9 +1598,9 @@
|
|
1447
1598
|
};
|
1448
1599
|
return PriceApiService;
|
1449
1600
|
}());
|
1450
|
-
PriceApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1451
|
-
PriceApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1452
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
1601
|
+
PriceApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PriceApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
1602
|
+
PriceApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PriceApiService });
|
1603
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PriceApiService, decorators: [{
|
1453
1604
|
type: i0.Injectable
|
1454
1605
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
1455
1606
|
|
@@ -1536,9 +1687,9 @@
|
|
1536
1687
|
};
|
1537
1688
|
return ProceduresApiService;
|
1538
1689
|
}());
|
1539
|
-
ProceduresApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1540
|
-
ProceduresApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1541
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
1690
|
+
ProceduresApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ProceduresApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
1691
|
+
ProceduresApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ProceduresApiService });
|
1692
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ProceduresApiService, decorators: [{
|
1542
1693
|
type: i0.Injectable
|
1543
1694
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
1544
1695
|
|
@@ -1686,9 +1837,9 @@
|
|
1686
1837
|
};
|
1687
1838
|
return ProductApiService;
|
1688
1839
|
}());
|
1689
|
-
ProductApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1690
|
-
ProductApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1691
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
1840
|
+
ProductApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ProductApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
1841
|
+
ProductApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ProductApiService });
|
1842
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ProductApiService, decorators: [{
|
1692
1843
|
type: i0.Injectable
|
1693
1844
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
1694
1845
|
|
@@ -1916,9 +2067,9 @@
|
|
1916
2067
|
return ProductModelApiService;
|
1917
2068
|
}());
|
1918
2069
|
ProductModelApiService.MAX_RESULTS = 200;
|
1919
|
-
ProductModelApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1920
|
-
ProductModelApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1921
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
2070
|
+
ProductModelApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ProductModelApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
2071
|
+
ProductModelApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ProductModelApiService });
|
2072
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ProductModelApiService, decorators: [{
|
1922
2073
|
type: i0.Injectable
|
1923
2074
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
1924
2075
|
|
@@ -1962,9 +2113,9 @@
|
|
1962
2113
|
};
|
1963
2114
|
return QuoteApiService;
|
1964
2115
|
}());
|
1965
|
-
QuoteApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1966
|
-
QuoteApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1967
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
2116
|
+
QuoteApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuoteApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
2117
|
+
QuoteApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuoteApiService });
|
2118
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuoteApiService, decorators: [{
|
1968
2119
|
type: i0.Injectable
|
1969
2120
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
1970
2121
|
|
@@ -1981,9 +2132,9 @@
|
|
1981
2132
|
};
|
1982
2133
|
return RampApiService;
|
1983
2134
|
}());
|
1984
|
-
RampApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1985
|
-
RampApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1986
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
2135
|
+
RampApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: RampApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
2136
|
+
RampApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: RampApiService });
|
2137
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: RampApiService, decorators: [{
|
1987
2138
|
type: i0.Injectable
|
1988
2139
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
1989
2140
|
|
@@ -2039,9 +2190,9 @@
|
|
2039
2190
|
}
|
2040
2191
|
return RuleGroupsApiService;
|
2041
2192
|
}());
|
2042
|
-
RuleGroupsApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2043
|
-
RuleGroupsApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
2044
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
2193
|
+
RuleGroupsApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: RuleGroupsApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
2194
|
+
RuleGroupsApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: RuleGroupsApiService });
|
2195
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: RuleGroupsApiService, decorators: [{
|
2045
2196
|
type: i0.Injectable
|
2046
2197
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
2047
2198
|
|
@@ -2108,17 +2259,18 @@
|
|
2108
2259
|
});
|
2109
2260
|
};
|
2110
2261
|
RulesApiService.prototype.execute$ = function (body) {
|
2262
|
+
var url = body.rule.ruleGroupType === i1.RuleGroupTypes.eligibility ? '/rules/eligibility/execute' : '/rules/execute';
|
2111
2263
|
return this.baseHttpService.api({
|
2112
|
-
url:
|
2264
|
+
url: url,
|
2113
2265
|
method: 'post',
|
2114
2266
|
body: body,
|
2115
2267
|
});
|
2116
2268
|
};
|
2117
2269
|
return RulesApiService;
|
2118
2270
|
}());
|
2119
|
-
RulesApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2120
|
-
RulesApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
2121
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
2271
|
+
RulesApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: RulesApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
2272
|
+
RulesApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: RulesApiService });
|
2273
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: RulesApiService, decorators: [{
|
2122
2274
|
type: i0.Injectable
|
2123
2275
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
2124
2276
|
|
@@ -2190,9 +2342,9 @@
|
|
2190
2342
|
}
|
2191
2343
|
return ScriptsApiService;
|
2192
2344
|
}());
|
2193
|
-
ScriptsApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2194
|
-
ScriptsApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
2195
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
2345
|
+
ScriptsApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ScriptsApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
2346
|
+
ScriptsApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ScriptsApiService });
|
2347
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ScriptsApiService, decorators: [{
|
2196
2348
|
type: i0.Injectable
|
2197
2349
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
2198
2350
|
|
@@ -2202,16 +2354,22 @@
|
|
2202
2354
|
this.shoppingCartSettingsKey = 'shopping-cart';
|
2203
2355
|
}
|
2204
2356
|
ShoppingCartSettingsApiService.prototype.getSetting = function (id) {
|
2205
|
-
return this.fetchSettings().pipe(operators.map(function (
|
2357
|
+
return this.fetchSettings().pipe(operators.map(function (settings) { return i1.parseJsonSafely(settings === null || settings === void 0 ? void 0 : settings.value, []); }), operators.map(function (settings) { return settings.find(function (setting) { return setting.id == id; }); }));
|
2206
2358
|
};
|
2207
2359
|
ShoppingCartSettingsApiService.prototype.fetchSettings = function () {
|
2208
2360
|
return this.configurationSettingsApiService.fetchSetting(this.shoppingCartSettingsKey, { skipErrorHandler: true });
|
2209
2361
|
};
|
2362
|
+
ShoppingCartSettingsApiService.prototype.getSettingsMap = function () {
|
2363
|
+
return this.fetchSettings().pipe(operators.map(function (settings) { return i1.parseJsonSafely(settings === null || settings === void 0 ? void 0 : settings.value, []); }), operators.map(function (settings) { return settings.reduce(function (acc, setting) {
|
2364
|
+
var _a;
|
2365
|
+
return Object.assign(Object.assign({}, acc), (_a = {}, _a[setting.id] = setting.properties, _a));
|
2366
|
+
}, {}); }));
|
2367
|
+
};
|
2210
2368
|
return ShoppingCartSettingsApiService;
|
2211
2369
|
}());
|
2212
|
-
ShoppingCartSettingsApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2213
|
-
ShoppingCartSettingsApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
2214
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
2370
|
+
ShoppingCartSettingsApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ShoppingCartSettingsApiService, deps: [{ token: ConfigurationSettingsApiService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
2371
|
+
ShoppingCartSettingsApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ShoppingCartSettingsApiService });
|
2372
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ShoppingCartSettingsApiService, decorators: [{
|
2215
2373
|
type: i0.Injectable
|
2216
2374
|
}], ctorParameters: function () { return [{ type: ConfigurationSettingsApiService }]; } });
|
2217
2375
|
|
@@ -2505,9 +2663,9 @@
|
|
2505
2663
|
};
|
2506
2664
|
return UITemplatesApiService;
|
2507
2665
|
}());
|
2508
|
-
UITemplatesApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2509
|
-
UITemplatesApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
2510
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
2666
|
+
UITemplatesApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: UITemplatesApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
2667
|
+
UITemplatesApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: UITemplatesApiService });
|
2668
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: UITemplatesApiService, decorators: [{
|
2511
2669
|
type: i0.Injectable
|
2512
2670
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
2513
2671
|
|
@@ -2516,9 +2674,9 @@
|
|
2516
2674
|
}
|
2517
2675
|
return ApiModule;
|
2518
2676
|
}());
|
2519
|
-
ApiModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2520
|
-
ApiModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
2521
|
-
ApiModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
2677
|
+
ApiModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ApiModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
2678
|
+
ApiModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ApiModule, imports: [i4.HttpClientModule] });
|
2679
|
+
ApiModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ApiModule, providers: [
|
2522
2680
|
i1.BaseHttpService,
|
2523
2681
|
i1.XrayService,
|
2524
2682
|
ConfigurationApiService,
|
@@ -2546,8 +2704,9 @@
|
|
2546
2704
|
PicklistsApiService,
|
2547
2705
|
EndpointsApiService,
|
2548
2706
|
OrgInfoApiService,
|
2707
|
+
OffersApiService,
|
2549
2708
|
], imports: [[i4.HttpClientModule]] });
|
2550
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
2709
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ApiModule, decorators: [{
|
2551
2710
|
type: i0.NgModule,
|
2552
2711
|
args: [{
|
2553
2712
|
imports: [i4.HttpClientModule],
|
@@ -2579,6 +2738,7 @@
|
|
2579
2738
|
PicklistsApiService,
|
2580
2739
|
EndpointsApiService,
|
2581
2740
|
OrgInfoApiService,
|
2741
|
+
OffersApiService,
|
2582
2742
|
],
|
2583
2743
|
}]
|
2584
2744
|
}] });
|
@@ -2599,6 +2759,7 @@
|
|
2599
2759
|
exports.DocumentTemplatesApiService = DocumentTemplatesApiService;
|
2600
2760
|
exports.EndpointsApiService = EndpointsApiService;
|
2601
2761
|
exports.FlowsApiService = FlowsApiService;
|
2762
|
+
exports.OffersApiService = OffersApiService;
|
2602
2763
|
exports.OrgInfoApiService = OrgInfoApiService;
|
2603
2764
|
exports.PicklistsApiService = PicklistsApiService;
|
2604
2765
|
exports.PriceApiService = PriceApiService;
|