@veloceapps/api 6.0.0-9 → 6.0.0-90
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 +347 -93
- package/bundles/veloceapps-api.umd.js.map +1 -1
- package/esm2015/index.js +4 -1
- package/esm2015/lib/api.module.js +14 -5
- package/esm2015/lib/services/account-api.service.js +3 -3
- package/esm2015/lib/services/catalog-admin-api.service.js +5 -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/guided-sellings-admin-api.service.js +66 -0
- package/esm2015/lib/services/guided-sellings-api.service.js +27 -0
- 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 +266 -88
- package/fesm2015/veloceapps-api.js.map +1 -1
- package/index.d.ts +3 -0
- package/lib/services/configuration-settings-api.service.d.ts +4 -2
- package/lib/services/guided-sellings-admin-api.service.d.ts +19 -0
- package/lib/services/guided-sellings-api.service.d.ts +12 -0
- 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
|
|
@@ -223,16 +224,16 @@
|
|
223
224
|
var catalogId = _a.catalogId, categoryId = _a.categoryId, data = _a.data;
|
224
225
|
return _this.baseHttpService.api({
|
225
226
|
method: 'delete',
|
226
|
-
url: _this.serviceUrl + "/" + catalogId + "/categories/" + categoryId + "/products/" + data.id
|
227
|
+
url: _this.serviceUrl + "/" + catalogId + "/categories/" + categoryId + "/products/" + data.id,
|
227
228
|
});
|
228
229
|
};
|
229
230
|
}
|
230
231
|
return CatalogAdminApiService;
|
231
232
|
}());
|
232
233
|
CatalogAdminApiService.MAX_RESULTS = 60;
|
233
|
-
CatalogAdminApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
234
|
-
CatalogAdminApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
235
|
-
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: [{
|
236
237
|
type: i0.Injectable
|
237
238
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
238
239
|
|
@@ -317,13 +318,13 @@
|
|
317
318
|
};
|
318
319
|
return CatalogApiService;
|
319
320
|
}());
|
320
|
-
CatalogApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
321
|
-
CatalogApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
322
|
-
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: [{
|
323
324
|
type: i0.Injectable
|
324
325
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
325
326
|
|
326
|
-
|
327
|
+
/******************************************************************************
|
327
328
|
Copyright (c) Microsoft Corporation.
|
328
329
|
|
329
330
|
Permission to use, copy, modify, and/or distribute this software for any
|
@@ -390,6 +391,64 @@
|
|
390
391
|
function __param(paramIndex, decorator) {
|
391
392
|
return function (target, key) { decorator(target, key, paramIndex); };
|
392
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
|
+
;
|
393
452
|
function __metadata(metadataKey, metadataValue) {
|
394
453
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
395
454
|
return Reflect.metadata(metadataKey, metadataValue);
|
@@ -421,7 +480,7 @@
|
|
421
480
|
function step(op) {
|
422
481
|
if (f)
|
423
482
|
throw new TypeError("Generator is already executing.");
|
424
|
-
while (_)
|
483
|
+
while (g && (g = 0, op[0] && (_ = 0)), _)
|
425
484
|
try {
|
426
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)
|
427
486
|
return t;
|
@@ -485,7 +544,11 @@
|
|
485
544
|
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
486
545
|
if (k2 === undefined)
|
487
546
|
k2 = k;
|
488
|
-
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);
|
489
552
|
}) : (function (o, m, k, k2) {
|
490
553
|
if (k2 === undefined)
|
491
554
|
k2 = k;
|
@@ -585,7 +648,7 @@
|
|
585
648
|
function __asyncDelegator(o) {
|
586
649
|
var i, p;
|
587
650
|
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
588
|
-
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; }
|
589
652
|
}
|
590
653
|
function __asyncValues(o) {
|
591
654
|
if (!Symbol.asyncIterator)
|
@@ -640,6 +703,11 @@
|
|
640
703
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
641
704
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
642
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
|
+
}
|
643
711
|
|
644
712
|
var ConfigurationApiService = /** @class */ (function () {
|
645
713
|
function ConfigurationApiService(httpService) {
|
@@ -716,9 +784,9 @@
|
|
716
784
|
};
|
717
785
|
return ConfigurationApiService;
|
718
786
|
}());
|
719
|
-
ConfigurationApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
720
|
-
ConfigurationApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
721
|
-
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: [{
|
722
790
|
type: i0.Injectable
|
723
791
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
724
792
|
|
@@ -746,8 +814,9 @@
|
|
746
814
|
}());
|
747
815
|
|
748
816
|
var ConfigurationSettingsApiService = /** @class */ (function () {
|
749
|
-
function ConfigurationSettingsApiService(httpService) {
|
817
|
+
function ConfigurationSettingsApiService(httpService, messageService) {
|
750
818
|
this.httpService = httpService;
|
819
|
+
this.messageService = messageService;
|
751
820
|
this.SERVICE_URL = '/configuration-settings';
|
752
821
|
}
|
753
822
|
ConfigurationSettingsApiService.prototype.fetchSettings = function (options) {
|
@@ -756,10 +825,18 @@
|
|
756
825
|
.pipe(operators.map(function (settings) { return settings.map(function (setting) { return ConfigurationSettingsDTO.fromDTO(setting); }); }));
|
757
826
|
};
|
758
827
|
ConfigurationSettingsApiService.prototype.fetchSetting = function (settingsKey, options) {
|
828
|
+
var _this = this;
|
759
829
|
return this.httpService
|
760
|
-
.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 }))
|
761
831
|
.pipe(operators.map(function (setting) { return ConfigurationSettingsDTO.fromDTO(setting, settingsKey); }), operators.catchError(function (err) {
|
762
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
|
+
}
|
763
840
|
return rxjs.of(null);
|
764
841
|
}
|
765
842
|
throw err;
|
@@ -785,11 +862,11 @@
|
|
785
862
|
};
|
786
863
|
return ConfigurationSettingsApiService;
|
787
864
|
}());
|
788
|
-
ConfigurationSettingsApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
789
|
-
ConfigurationSettingsApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
790
|
-
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: [{
|
791
868
|
type: i0.Injectable
|
792
|
-
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
869
|
+
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }, { type: i2__namespace.MessageService }]; } });
|
793
870
|
|
794
871
|
var ContextApiService = /** @class */ (function () {
|
795
872
|
function ContextApiService(httpService) {
|
@@ -808,9 +885,9 @@
|
|
808
885
|
};
|
809
886
|
return ContextApiService;
|
810
887
|
}());
|
811
|
-
ContextApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
812
|
-
ContextApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
813
|
-
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: [{
|
814
891
|
type: i0.Injectable
|
815
892
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
816
893
|
|
@@ -829,9 +906,9 @@
|
|
829
906
|
};
|
830
907
|
return DeltaApiService;
|
831
908
|
}());
|
832
|
-
DeltaApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
833
|
-
DeltaApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
834
|
-
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: [{
|
835
912
|
type: i0.Injectable
|
836
913
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
837
914
|
|
@@ -893,9 +970,9 @@
|
|
893
970
|
};
|
894
971
|
return DocumentAttachmentApiService;
|
895
972
|
}());
|
896
|
-
DocumentAttachmentApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
897
|
-
DocumentAttachmentApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
898
|
-
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: [{
|
899
976
|
type: i0.Injectable
|
900
977
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }, { type: i1__namespace.FileDownloadService }]; } });
|
901
978
|
|
@@ -914,6 +991,9 @@
|
|
914
991
|
}
|
915
992
|
return this.httpService.api(Object.assign({ url: this.SERVICE_URL + "/query", params: params }, options));
|
916
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
|
+
};
|
917
997
|
SalesforceApiService.prototype.describe = function (objectName, fieldName, options) {
|
918
998
|
var methodUrl = this.SERVICE_URL + "/describe/" + objectName + "/fields" + (fieldName ? "/" + fieldName : '');
|
919
999
|
return this.httpService.api(Object.assign({ url: methodUrl }, options));
|
@@ -930,9 +1010,9 @@
|
|
930
1010
|
};
|
931
1011
|
return SalesforceApiService;
|
932
1012
|
}());
|
933
|
-
SalesforceApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
934
|
-
SalesforceApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
935
|
-
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: [{
|
936
1016
|
type: i0.Injectable
|
937
1017
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
938
1018
|
|
@@ -1233,9 +1313,9 @@
|
|
1233
1313
|
};
|
1234
1314
|
return DocumentTemplatesApiService;
|
1235
1315
|
}());
|
1236
|
-
DocumentTemplatesApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1237
|
-
DocumentTemplatesApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1238
|
-
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: [{
|
1239
1319
|
type: i0.Injectable
|
1240
1320
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }, { type: SalesforceApiService }, { type: i1__namespace.FileDownloadService }, { type: DocumentAttachmentApiService }, { type: i4__namespace.HttpClient }]; } });
|
1241
1321
|
|
@@ -1309,9 +1389,9 @@
|
|
1309
1389
|
};
|
1310
1390
|
return EndpointsApiService;
|
1311
1391
|
}());
|
1312
|
-
EndpointsApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1313
|
-
EndpointsApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1314
|
-
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: [{
|
1315
1395
|
type: i0.Injectable
|
1316
1396
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
1317
1397
|
|
@@ -1330,12 +1410,170 @@
|
|
1330
1410
|
};
|
1331
1411
|
return FlowsApiService;
|
1332
1412
|
}());
|
1333
|
-
FlowsApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1334
|
-
FlowsApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1335
|
-
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: [{
|
1336
1416
|
type: i0.Injectable
|
1337
1417
|
}], ctorParameters: function () { return [{ type: ConfigurationSettingsApiService }]; } });
|
1338
1418
|
|
1419
|
+
var GuidedSellingsAdminApiService = /** @class */ (function () {
|
1420
|
+
function GuidedSellingsAdminApiService(baseHttpService) {
|
1421
|
+
var _this = this;
|
1422
|
+
this.baseHttpService = baseHttpService;
|
1423
|
+
this.serviceUrl = '/guided-sellings';
|
1424
|
+
this.fetchGuidedSellings$ = function (searchParams) {
|
1425
|
+
var params = new i4.HttpParams({ fromObject: Object.assign({}, searchParams) });
|
1426
|
+
return rxjs.of([{ id: '1', name: 'test', description: 'test' }]);
|
1427
|
+
// return this.baseHttpService.api({ url: `${this.serviceUrl}`, params });
|
1428
|
+
};
|
1429
|
+
this.searchGuidedSellings$ = function (searchParams, expression) {
|
1430
|
+
return rxjs.of([{ id: '1', name: 'test', description: 'test' }]);
|
1431
|
+
var params = new i4.HttpParams({ fromObject: Object.assign({}, searchParams) });
|
1432
|
+
return _this.baseHttpService.api({
|
1433
|
+
method: 'post',
|
1434
|
+
url: _this.serviceUrl + "/search",
|
1435
|
+
params: params,
|
1436
|
+
body: expression || {},
|
1437
|
+
});
|
1438
|
+
};
|
1439
|
+
this.createNewGuidedSelling$ = function (guidedSelling) {
|
1440
|
+
return _this.baseHttpService.api({
|
1441
|
+
url: "" + _this.serviceUrl,
|
1442
|
+
method: 'post',
|
1443
|
+
body: guidedSelling,
|
1444
|
+
});
|
1445
|
+
};
|
1446
|
+
this.duplicateGuidedSelling$ = function (cloneRequest) {
|
1447
|
+
return _this.baseHttpService.api({
|
1448
|
+
url: _this.serviceUrl + "/" + cloneRequest.id + "/clone",
|
1449
|
+
method: 'post',
|
1450
|
+
body: cloneRequest,
|
1451
|
+
});
|
1452
|
+
};
|
1453
|
+
this.updateGuidedSelling$ = function (data) {
|
1454
|
+
return _this.baseHttpService.api({
|
1455
|
+
url: _this.serviceUrl + "/" + data.id,
|
1456
|
+
method: 'put',
|
1457
|
+
body: data,
|
1458
|
+
});
|
1459
|
+
};
|
1460
|
+
this.removeGuidedSelling$ = function (id) {
|
1461
|
+
return _this.baseHttpService.api({
|
1462
|
+
url: _this.serviceUrl + "/" + id,
|
1463
|
+
method: 'delete',
|
1464
|
+
});
|
1465
|
+
};
|
1466
|
+
this.restoreGuidedSelling$ = function (id) {
|
1467
|
+
return _this.baseHttpService.api({
|
1468
|
+
url: _this.serviceUrl + "/" + id + "/restore",
|
1469
|
+
method: 'patch',
|
1470
|
+
});
|
1471
|
+
};
|
1472
|
+
}
|
1473
|
+
return GuidedSellingsAdminApiService;
|
1474
|
+
}());
|
1475
|
+
GuidedSellingsAdminApiService.MAX_RESULTS = 60;
|
1476
|
+
GuidedSellingsAdminApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GuidedSellingsAdminApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
1477
|
+
GuidedSellingsAdminApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GuidedSellingsAdminApiService });
|
1478
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GuidedSellingsAdminApiService, decorators: [{
|
1479
|
+
type: i0.Injectable
|
1480
|
+
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
1481
|
+
|
1482
|
+
var GuidedSellingApiService = /** @class */ (function () {
|
1483
|
+
function GuidedSellingApiService(http) {
|
1484
|
+
this.http = http;
|
1485
|
+
this.serviceUrl = '/guided-selling';
|
1486
|
+
}
|
1487
|
+
GuidedSellingApiService.prototype.searchByName$ = function (name, searchParams) {
|
1488
|
+
var params = new i4.HttpParams({ fromObject: Object.assign({}, searchParams) });
|
1489
|
+
var expression = new i1.Expression(undefined, [{ key: 'name', operator: i1.Operator.EQ, value: name }]);
|
1490
|
+
return this.http.api({
|
1491
|
+
method: 'post',
|
1492
|
+
url: this.serviceUrl + "/search",
|
1493
|
+
params: params,
|
1494
|
+
body: expression || {},
|
1495
|
+
});
|
1496
|
+
};
|
1497
|
+
return GuidedSellingApiService;
|
1498
|
+
}());
|
1499
|
+
GuidedSellingApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GuidedSellingApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
1500
|
+
GuidedSellingApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GuidedSellingApiService });
|
1501
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GuidedSellingApiService, decorators: [{
|
1502
|
+
type: i0.Injectable
|
1503
|
+
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
1504
|
+
|
1505
|
+
var OffersApiService = /** @class */ (function () {
|
1506
|
+
function OffersApiService(baseHttpService) {
|
1507
|
+
this.baseHttpService = baseHttpService;
|
1508
|
+
this.serviceUrl = '/admin/offers';
|
1509
|
+
}
|
1510
|
+
OffersApiService.prototype.createOffer$ = function (body) {
|
1511
|
+
return this.baseHttpService.api({
|
1512
|
+
url: "" + this.serviceUrl,
|
1513
|
+
method: 'post',
|
1514
|
+
body: body,
|
1515
|
+
});
|
1516
|
+
};
|
1517
|
+
OffersApiService.prototype.fetchOffers$ = function () {
|
1518
|
+
return this.baseHttpService.api({
|
1519
|
+
url: "" + this.serviceUrl,
|
1520
|
+
});
|
1521
|
+
};
|
1522
|
+
OffersApiService.prototype.fetchOffer$ = function (id) {
|
1523
|
+
return this.baseHttpService.api({
|
1524
|
+
url: this.serviceUrl + "/" + id,
|
1525
|
+
});
|
1526
|
+
};
|
1527
|
+
OffersApiService.prototype.updateOffer$ = function (offer) {
|
1528
|
+
return this.baseHttpService.api({
|
1529
|
+
url: this.serviceUrl + "/" + offer.id,
|
1530
|
+
method: 'put',
|
1531
|
+
body: offer,
|
1532
|
+
});
|
1533
|
+
};
|
1534
|
+
OffersApiService.prototype.removeOffer$ = function (id) {
|
1535
|
+
return this.baseHttpService.api({
|
1536
|
+
url: this.serviceUrl + "/" + id,
|
1537
|
+
method: 'delete',
|
1538
|
+
});
|
1539
|
+
};
|
1540
|
+
OffersApiService.prototype.searchOffers$ = function (expression, skip, count) {
|
1541
|
+
var params = new i4.HttpParams();
|
1542
|
+
params = params.set('skip', '' + skip);
|
1543
|
+
params = params.set('count', '' + count);
|
1544
|
+
return this.baseHttpService.api({
|
1545
|
+
method: 'post',
|
1546
|
+
url: this.serviceUrl + "/search",
|
1547
|
+
params: params,
|
1548
|
+
body: expression,
|
1549
|
+
});
|
1550
|
+
};
|
1551
|
+
OffersApiService.prototype.fetchOfferProducts$ = function (id) {
|
1552
|
+
return this.baseHttpService
|
1553
|
+
.api({
|
1554
|
+
url: this.serviceUrl + "/" + id + "/products",
|
1555
|
+
})
|
1556
|
+
.pipe(rxjs.map(function (response) { return response.products; }));
|
1557
|
+
};
|
1558
|
+
OffersApiService.prototype.upsertOfferProducts$ = function (id, products) {
|
1559
|
+
var request = { products: products };
|
1560
|
+
return this.baseHttpService
|
1561
|
+
.api({
|
1562
|
+
url: this.serviceUrl + "/" + id + "/products",
|
1563
|
+
method: 'put',
|
1564
|
+
body: request,
|
1565
|
+
})
|
1566
|
+
.pipe(rxjs.map(function (response) { return response.products; }));
|
1567
|
+
};
|
1568
|
+
return OffersApiService;
|
1569
|
+
}());
|
1570
|
+
OffersApiService.MAX_RESULTS = 60;
|
1571
|
+
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 });
|
1572
|
+
OffersApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: OffersApiService });
|
1573
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: OffersApiService, decorators: [{
|
1574
|
+
type: i0.Injectable
|
1575
|
+
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
1576
|
+
|
1339
1577
|
var OrgInfoApiService = /** @class */ (function () {
|
1340
1578
|
function OrgInfoApiService(http) {
|
1341
1579
|
var _a;
|
@@ -1348,9 +1586,9 @@
|
|
1348
1586
|
};
|
1349
1587
|
return OrgInfoApiService;
|
1350
1588
|
}());
|
1351
|
-
OrgInfoApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1352
|
-
OrgInfoApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1353
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
1589
|
+
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 });
|
1590
|
+
OrgInfoApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: OrgInfoApiService });
|
1591
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: OrgInfoApiService, decorators: [{
|
1354
1592
|
type: i0.Injectable
|
1355
1593
|
}], ctorParameters: function () { return [{ type: i4__namespace.HttpClient }]; } });
|
1356
1594
|
|
@@ -1385,9 +1623,9 @@
|
|
1385
1623
|
}
|
1386
1624
|
return PicklistsApiService;
|
1387
1625
|
}());
|
1388
|
-
PicklistsApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1389
|
-
PicklistsApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1390
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
1626
|
+
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 });
|
1627
|
+
PicklistsApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PicklistsApiService });
|
1628
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PicklistsApiService, decorators: [{
|
1391
1629
|
type: i0.Injectable
|
1392
1630
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
1393
1631
|
|
@@ -1446,9 +1684,9 @@
|
|
1446
1684
|
};
|
1447
1685
|
return PriceApiService;
|
1448
1686
|
}());
|
1449
|
-
PriceApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1450
|
-
PriceApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1451
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
1687
|
+
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 });
|
1688
|
+
PriceApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PriceApiService });
|
1689
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PriceApiService, decorators: [{
|
1452
1690
|
type: i0.Injectable
|
1453
1691
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
1454
1692
|
|
@@ -1535,9 +1773,9 @@
|
|
1535
1773
|
};
|
1536
1774
|
return ProceduresApiService;
|
1537
1775
|
}());
|
1538
|
-
ProceduresApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1539
|
-
ProceduresApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1540
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
1776
|
+
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 });
|
1777
|
+
ProceduresApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ProceduresApiService });
|
1778
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ProceduresApiService, decorators: [{
|
1541
1779
|
type: i0.Injectable
|
1542
1780
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
1543
1781
|
|
@@ -1685,9 +1923,9 @@
|
|
1685
1923
|
};
|
1686
1924
|
return ProductApiService;
|
1687
1925
|
}());
|
1688
|
-
ProductApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1689
|
-
ProductApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1690
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
1926
|
+
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 });
|
1927
|
+
ProductApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ProductApiService });
|
1928
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ProductApiService, decorators: [{
|
1691
1929
|
type: i0.Injectable
|
1692
1930
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
1693
1931
|
|
@@ -1915,9 +2153,9 @@
|
|
1915
2153
|
return ProductModelApiService;
|
1916
2154
|
}());
|
1917
2155
|
ProductModelApiService.MAX_RESULTS = 200;
|
1918
|
-
ProductModelApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1919
|
-
ProductModelApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1920
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
2156
|
+
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 });
|
2157
|
+
ProductModelApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ProductModelApiService });
|
2158
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ProductModelApiService, decorators: [{
|
1921
2159
|
type: i0.Injectable
|
1922
2160
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
1923
2161
|
|
@@ -1961,9 +2199,9 @@
|
|
1961
2199
|
};
|
1962
2200
|
return QuoteApiService;
|
1963
2201
|
}());
|
1964
|
-
QuoteApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1965
|
-
QuoteApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1966
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
2202
|
+
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 });
|
2203
|
+
QuoteApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuoteApiService });
|
2204
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuoteApiService, decorators: [{
|
1967
2205
|
type: i0.Injectable
|
1968
2206
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
1969
2207
|
|
@@ -1980,9 +2218,9 @@
|
|
1980
2218
|
};
|
1981
2219
|
return RampApiService;
|
1982
2220
|
}());
|
1983
|
-
RampApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1984
|
-
RampApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1985
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
2221
|
+
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 });
|
2222
|
+
RampApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: RampApiService });
|
2223
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: RampApiService, decorators: [{
|
1986
2224
|
type: i0.Injectable
|
1987
2225
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
1988
2226
|
|
@@ -2038,9 +2276,9 @@
|
|
2038
2276
|
}
|
2039
2277
|
return RuleGroupsApiService;
|
2040
2278
|
}());
|
2041
|
-
RuleGroupsApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2042
|
-
RuleGroupsApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
2043
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
2279
|
+
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 });
|
2280
|
+
RuleGroupsApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: RuleGroupsApiService });
|
2281
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: RuleGroupsApiService, decorators: [{
|
2044
2282
|
type: i0.Injectable
|
2045
2283
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
2046
2284
|
|
@@ -2107,17 +2345,18 @@
|
|
2107
2345
|
});
|
2108
2346
|
};
|
2109
2347
|
RulesApiService.prototype.execute$ = function (body) {
|
2348
|
+
var url = body.rule.ruleGroupType === i1.RuleGroupTypes.eligibility ? '/rules/eligibility/execute' : '/rules/execute';
|
2110
2349
|
return this.baseHttpService.api({
|
2111
|
-
url:
|
2350
|
+
url: url,
|
2112
2351
|
method: 'post',
|
2113
2352
|
body: body,
|
2114
2353
|
});
|
2115
2354
|
};
|
2116
2355
|
return RulesApiService;
|
2117
2356
|
}());
|
2118
|
-
RulesApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2119
|
-
RulesApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
2120
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
2357
|
+
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 });
|
2358
|
+
RulesApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: RulesApiService });
|
2359
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: RulesApiService, decorators: [{
|
2121
2360
|
type: i0.Injectable
|
2122
2361
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
2123
2362
|
|
@@ -2189,9 +2428,9 @@
|
|
2189
2428
|
}
|
2190
2429
|
return ScriptsApiService;
|
2191
2430
|
}());
|
2192
|
-
ScriptsApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2193
|
-
ScriptsApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
2194
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
2431
|
+
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 });
|
2432
|
+
ScriptsApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ScriptsApiService });
|
2433
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ScriptsApiService, decorators: [{
|
2195
2434
|
type: i0.Injectable
|
2196
2435
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
2197
2436
|
|
@@ -2201,16 +2440,22 @@
|
|
2201
2440
|
this.shoppingCartSettingsKey = 'shopping-cart';
|
2202
2441
|
}
|
2203
2442
|
ShoppingCartSettingsApiService.prototype.getSetting = function (id) {
|
2204
|
-
return this.fetchSettings().pipe(operators.map(function (
|
2443
|
+
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; }); }));
|
2205
2444
|
};
|
2206
2445
|
ShoppingCartSettingsApiService.prototype.fetchSettings = function () {
|
2207
2446
|
return this.configurationSettingsApiService.fetchSetting(this.shoppingCartSettingsKey, { skipErrorHandler: true });
|
2208
2447
|
};
|
2448
|
+
ShoppingCartSettingsApiService.prototype.getSettingsMap = function () {
|
2449
|
+
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) {
|
2450
|
+
var _a;
|
2451
|
+
return Object.assign(Object.assign({}, acc), (_a = {}, _a[setting.id] = setting.properties, _a));
|
2452
|
+
}, {}); }));
|
2453
|
+
};
|
2209
2454
|
return ShoppingCartSettingsApiService;
|
2210
2455
|
}());
|
2211
|
-
ShoppingCartSettingsApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2212
|
-
ShoppingCartSettingsApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
2213
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
2456
|
+
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 });
|
2457
|
+
ShoppingCartSettingsApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ShoppingCartSettingsApiService });
|
2458
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ShoppingCartSettingsApiService, decorators: [{
|
2214
2459
|
type: i0.Injectable
|
2215
2460
|
}], ctorParameters: function () { return [{ type: ConfigurationSettingsApiService }]; } });
|
2216
2461
|
|
@@ -2504,9 +2749,9 @@
|
|
2504
2749
|
};
|
2505
2750
|
return UITemplatesApiService;
|
2506
2751
|
}());
|
2507
|
-
UITemplatesApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2508
|
-
UITemplatesApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
2509
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
2752
|
+
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 });
|
2753
|
+
UITemplatesApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: UITemplatesApiService });
|
2754
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: UITemplatesApiService, decorators: [{
|
2510
2755
|
type: i0.Injectable
|
2511
2756
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
2512
2757
|
|
@@ -2515,9 +2760,9 @@
|
|
2515
2760
|
}
|
2516
2761
|
return ApiModule;
|
2517
2762
|
}());
|
2518
|
-
ApiModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2519
|
-
ApiModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
2520
|
-
ApiModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
2763
|
+
ApiModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ApiModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
2764
|
+
ApiModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ApiModule, imports: [i4.HttpClientModule] });
|
2765
|
+
ApiModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ApiModule, providers: [
|
2521
2766
|
i1.BaseHttpService,
|
2522
2767
|
i1.XrayService,
|
2523
2768
|
ConfigurationApiService,
|
@@ -2536,17 +2781,20 @@
|
|
2536
2781
|
RulesApiService,
|
2537
2782
|
RuleGroupsApiService,
|
2538
2783
|
FlowsApiService,
|
2784
|
+
GuidedSellingsAdminApiService,
|
2539
2785
|
ShoppingCartSettingsApiService,
|
2540
2786
|
ProductApiService,
|
2541
2787
|
CatalogAdminApiService,
|
2788
|
+
GuidedSellingApiService,
|
2542
2789
|
CatalogApiService,
|
2543
2790
|
DeltaApiService,
|
2544
2791
|
AccountApiService,
|
2545
2792
|
PicklistsApiService,
|
2546
2793
|
EndpointsApiService,
|
2547
2794
|
OrgInfoApiService,
|
2795
|
+
OffersApiService,
|
2548
2796
|
], imports: [[i4.HttpClientModule]] });
|
2549
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
2797
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ApiModule, decorators: [{
|
2550
2798
|
type: i0.NgModule,
|
2551
2799
|
args: [{
|
2552
2800
|
imports: [i4.HttpClientModule],
|
@@ -2569,15 +2817,18 @@
|
|
2569
2817
|
RulesApiService,
|
2570
2818
|
RuleGroupsApiService,
|
2571
2819
|
FlowsApiService,
|
2820
|
+
GuidedSellingsAdminApiService,
|
2572
2821
|
ShoppingCartSettingsApiService,
|
2573
2822
|
ProductApiService,
|
2574
2823
|
CatalogAdminApiService,
|
2824
|
+
GuidedSellingApiService,
|
2575
2825
|
CatalogApiService,
|
2576
2826
|
DeltaApiService,
|
2577
2827
|
AccountApiService,
|
2578
2828
|
PicklistsApiService,
|
2579
2829
|
EndpointsApiService,
|
2580
2830
|
OrgInfoApiService,
|
2831
|
+
OffersApiService,
|
2581
2832
|
],
|
2582
2833
|
}]
|
2583
2834
|
}] });
|
@@ -2598,6 +2849,9 @@
|
|
2598
2849
|
exports.DocumentTemplatesApiService = DocumentTemplatesApiService;
|
2599
2850
|
exports.EndpointsApiService = EndpointsApiService;
|
2600
2851
|
exports.FlowsApiService = FlowsApiService;
|
2852
|
+
exports.GuidedSellingApiService = GuidedSellingApiService;
|
2853
|
+
exports.GuidedSellingsAdminApiService = GuidedSellingsAdminApiService;
|
2854
|
+
exports.OffersApiService = OffersApiService;
|
2601
2855
|
exports.OrgInfoApiService = OrgInfoApiService;
|
2602
2856
|
exports.PicklistsApiService = PicklistsApiService;
|
2603
2857
|
exports.PriceApiService = PriceApiService;
|