@veloceapps/api 8.0.0-16 → 8.0.0-161
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/esm2020/index.mjs +10 -4
- package/esm2020/lib/api.module.mjs +26 -8
- package/esm2020/lib/services/account-api.service.mjs +3 -3
- package/esm2020/lib/services/auth.service.mjs +22 -0
- package/esm2020/lib/services/catalog-admin-api.service.mjs +3 -3
- package/esm2020/lib/services/catalog-api.service.mjs +3 -3
- package/esm2020/lib/services/configuration-api.service.mjs +48 -15
- package/esm2020/lib/services/configuration-processors-api.service.mjs +38 -0
- package/esm2020/lib/services/configuration-settings-api.service.mjs +3 -3
- package/esm2020/lib/services/context-api.service.mjs +3 -3
- package/esm2020/lib/services/contracted-price-api.service.mjs +45 -0
- package/esm2020/lib/services/delta-api.service.mjs +3 -3
- package/esm2020/lib/services/document-attachment-api.service.mjs +3 -3
- package/esm2020/lib/services/document-templates-api.service.mjs +6 -6
- package/esm2020/lib/services/endpoints-api.service.mjs +3 -3
- package/esm2020/lib/services/flow-state-api.mjs +142 -0
- package/esm2020/lib/services/flows-api.service.mjs +12 -8
- package/esm2020/lib/services/guided-sellings-admin-api.service.mjs +3 -3
- package/esm2020/lib/services/guided-sellings-api.service.mjs +3 -3
- package/esm2020/lib/services/offers-api.service.mjs +3 -3
- package/esm2020/lib/services/org-info-api.service.mjs +3 -3
- package/esm2020/lib/services/picklists-api.service.mjs +3 -3
- package/esm2020/lib/services/portals-api.service.mjs +76 -0
- package/esm2020/lib/services/price-api.service.mjs +3 -3
- package/esm2020/lib/services/procedures-api.service.mjs +3 -3
- package/esm2020/lib/services/product-api.service.mjs +3 -3
- package/esm2020/lib/services/product-model-api.service.mjs +3 -3
- package/esm2020/lib/services/promotions-api.service.mjs +3 -3
- package/esm2020/lib/services/quote-api.service.mjs +3 -3
- package/esm2020/lib/services/ramp-api.service.mjs +3 -3
- package/esm2020/lib/services/rebate-program-api.service.mjs +4 -4
- package/esm2020/lib/services/rebate-type-api.service.mjs +3 -3
- package/esm2020/lib/services/rule-groups-api.service.mjs +3 -3
- package/esm2020/lib/services/rules-api.service.mjs +14 -5
- package/esm2020/lib/services/salesforce-api.service.mjs +7 -5
- package/esm2020/lib/services/sandbox-manager-api.service.mjs +27 -0
- package/esm2020/lib/services/scripts-api.service.mjs +4 -4
- package/esm2020/lib/services/shopping-cart-settings-api.service.mjs +3 -3
- package/esm2020/lib/services/stateful-configuration-api.mjs +4 -4
- package/esm2020/lib/services/ui-definitions-api.service.mjs +3 -3
- package/esm2020/lib/services/ui-templates-api.service.mjs +9 -4
- package/esm2020/lib/services/veloce-objects-api.service.mjs +14 -4
- package/esm2020/lib/types/auth.types.mjs +2 -0
- package/esm2020/lib/types/index.mjs +2 -1
- package/esm2020/lib/types/stateful-configuration.types.mjs +1 -1
- package/fesm2015/veloceapps-api.mjs +722 -330
- package/fesm2015/veloceapps-api.mjs.map +1 -1
- package/fesm2020/veloceapps-api.mjs +726 -325
- package/fesm2020/veloceapps-api.mjs.map +1 -1
- package/index.d.ts +9 -3
- package/lib/services/auth.service.d.ts +11 -0
- package/lib/services/configuration-api.service.d.ts +5 -0
- package/lib/services/configuration-processors-api.service.d.ts +14 -0
- package/lib/services/contracted-price-api.service.d.ts +16 -0
- package/lib/services/flow-state-api.d.ts +84 -0
- package/lib/services/flows-api.service.d.ts +1 -1
- package/lib/services/portals-api.service.d.ts +20 -0
- package/lib/services/rebate-program-api.service.d.ts +1 -1
- package/lib/services/rules-api.service.d.ts +1 -0
- package/lib/services/salesforce-api.service.d.ts +1 -1
- package/lib/services/sandbox-manager-api.service.d.ts +13 -0
- package/lib/services/scripts-api.service.d.ts +1 -1
- package/lib/services/stateful-configuration-api.d.ts +2 -2
- package/lib/services/ui-templates-api.service.d.ts +1 -0
- package/lib/services/veloce-objects-api.service.d.ts +2 -1
- package/lib/types/auth.types.d.ts +4 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/stateful-configuration.types.d.ts +1 -1
- package/package.json +1 -1
@@ -1,9 +1,9 @@
|
|
1
|
-
import * as
|
2
|
-
import { HttpParams, HttpErrorResponse, HttpClientModule } from '@angular/common/http';
|
1
|
+
import * as i1$1 from '@angular/common/http';
|
2
|
+
import { HttpParams, HttpHeaders, HttpErrorResponse, HttpClientModule } from '@angular/common/http';
|
3
3
|
import * as i0 from '@angular/core';
|
4
4
|
import { Injectable, NgModule } from '@angular/core';
|
5
5
|
import * as i1 from '@veloceapps/core';
|
6
|
-
import { uiDefinitionFromDTO,
|
6
|
+
import { uiDefinitionFromDTO, ConfigurationContextMode, isLegacyDocumentTemplate, DocxTemplater, QuoteDraft, StringUtils, Expression, toLatestFlow, isDefined, Operator, ModelTranslatorUtils, ProductModelsContainer, ModelUtils, EntityUtil, RuleGroupTypes, parseJsonSafely, uiDefinitionToDTO, BaseHttpService, XrayService } from '@veloceapps/core';
|
7
7
|
import { noop, throwError, of, zip, forkJoin, map as map$1, catchError as catchError$1, switchMap as switchMap$1 } from 'rxjs';
|
8
8
|
import { map, catchError, tap, switchMap, defaultIfEmpty } from 'rxjs/operators';
|
9
9
|
import * as i2 from 'primeng/api';
|
@@ -53,12 +53,30 @@ class AccountApiService {
|
|
53
53
|
return this.httpService.api(Object.assign({ url: `${this.SERVICE_URL}/${accountId}/orders/${orderId}/to-asset`, method: 'post', body: { id: orderId } }, options));
|
54
54
|
}
|
55
55
|
}
|
56
|
-
AccountApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
57
|
-
AccountApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
58
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
56
|
+
AccountApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccountApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
57
|
+
AccountApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccountApiService });
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccountApiService, decorators: [{
|
59
59
|
type: Injectable
|
60
60
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
61
61
|
|
62
|
+
class VeloceAuthService {
|
63
|
+
constructor(http) {
|
64
|
+
this.http = http;
|
65
|
+
}
|
66
|
+
auth$(instanceUrl, accessToken) {
|
67
|
+
const headers = new HttpHeaders({
|
68
|
+
'Content-Type': 'application/json',
|
69
|
+
Authorization: `Bearer ${accessToken}`,
|
70
|
+
});
|
71
|
+
return this.http.get(`${instanceUrl}/services/apexrest/VELOCPQ/veloce-auth`, { headers });
|
72
|
+
}
|
73
|
+
}
|
74
|
+
VeloceAuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceAuthService, deps: [{ token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
75
|
+
VeloceAuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceAuthService });
|
76
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceAuthService, decorators: [{
|
77
|
+
type: Injectable
|
78
|
+
}], ctorParameters: function () { return [{ type: i1$1.HttpClient }]; } });
|
79
|
+
|
62
80
|
class CatalogAdminApiService {
|
63
81
|
constructor(baseHttpService) {
|
64
82
|
this.baseHttpService = baseHttpService;
|
@@ -240,9 +258,9 @@ class CatalogAdminApiService {
|
|
240
258
|
}
|
241
259
|
}
|
242
260
|
CatalogAdminApiService.MAX_RESULTS = 60;
|
243
|
-
CatalogAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
244
|
-
CatalogAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
245
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
261
|
+
CatalogAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
262
|
+
CatalogAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogAdminApiService });
|
263
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogAdminApiService, decorators: [{
|
246
264
|
type: Injectable
|
247
265
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
248
266
|
|
@@ -326,9 +344,9 @@ class CatalogApiService {
|
|
326
344
|
});
|
327
345
|
}
|
328
346
|
}
|
329
|
-
CatalogApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
330
|
-
CatalogApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
331
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
347
|
+
CatalogApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
348
|
+
CatalogApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogApiService });
|
349
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogApiService, decorators: [{
|
332
350
|
type: Injectable
|
333
351
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
334
352
|
|
@@ -354,6 +372,23 @@ class ConfigurationApiService {
|
|
354
372
|
}
|
355
373
|
}));
|
356
374
|
}
|
375
|
+
customConfigurePrice({ url, configurationRequest, runtimeModel, }) {
|
376
|
+
return this.httpService
|
377
|
+
.api({
|
378
|
+
method: 'post',
|
379
|
+
url,
|
380
|
+
body: configurationRequest,
|
381
|
+
errorHandler: e => throwError(e),
|
382
|
+
})
|
383
|
+
.pipe(map(configurePrice => {
|
384
|
+
if (runtimeModel) {
|
385
|
+
return Object.assign(Object.assign({}, configurePrice), { lineItem: this.updatePortDomains(configurePrice.lineItem, runtimeModel) });
|
386
|
+
}
|
387
|
+
else {
|
388
|
+
return configurePrice;
|
389
|
+
}
|
390
|
+
}));
|
391
|
+
}
|
357
392
|
getRuntimeDataByProductId(productId, offeringId) {
|
358
393
|
return this.httpService
|
359
394
|
.api({
|
@@ -361,13 +396,7 @@ class ConfigurationApiService {
|
|
361
396
|
url: `${this.SERVICE_URL}/${productId}/model` + ((offeringId && `/${offeringId}`) || ''),
|
362
397
|
})
|
363
398
|
.pipe(map(runtimeData => {
|
364
|
-
return Object.assign(Object.assign({}, runtimeData), { uiDefinitions: runtimeData.uiDefinitions.map(dto =>
|
365
|
-
const uiDefinitionContainer = uiDefinitionFromDTO(dto);
|
366
|
-
if (isLegacyUIDefinition(uiDefinitionContainer.source)) {
|
367
|
-
ModelTranslatorUtils.toLocalUIDefinition(uiDefinitionContainer.source);
|
368
|
-
}
|
369
|
-
return uiDefinitionContainer;
|
370
|
-
}) });
|
399
|
+
return Object.assign(Object.assign({}, runtimeData), { uiDefinitions: runtimeData.uiDefinitions.map(dto => uiDefinitionFromDTO(dto)) });
|
371
400
|
}));
|
372
401
|
}
|
373
402
|
getRuntimeDataByModelId(modelId) {
|
@@ -380,18 +409,69 @@ class ConfigurationApiService {
|
|
380
409
|
var _a, _b, _c;
|
381
410
|
const type = runtimeModel.components.get(lineItem.type);
|
382
411
|
const portDomains = Object.assign({}, lineItem.portDomains);
|
412
|
+
// loop through ports to look for 'None' type domain computations
|
383
413
|
for (const port of (_a = type === null || type === void 0 ? void 0 : type.ports) !== null && _a !== void 0 ? _a : []) {
|
384
|
-
const
|
385
|
-
|
386
|
-
|
414
|
+
const { name: portName, type: typeName, min, max, domainTypes, properties } = port;
|
415
|
+
const portDomain = portDomains[portName];
|
416
|
+
if (portDomain) {
|
417
|
+
// there's a 'None' type domain computation
|
418
|
+
if (((_b = portDomain.properties) === null || _b === void 0 ? void 0 : _b['domainComputation']) === ('None')) {
|
419
|
+
portDomain.domainTypes = domainTypes;
|
420
|
+
}
|
421
|
+
}
|
422
|
+
else {
|
423
|
+
// there's no port domain so consider that as 'None' type domain computation
|
424
|
+
portDomains[portName] = {
|
425
|
+
name: portName,
|
426
|
+
type: typeName,
|
427
|
+
minCard: Number(min),
|
428
|
+
maxCard: Number(max),
|
429
|
+
domainTypes: domainTypes,
|
430
|
+
properties: Object.assign(Object.assign({}, properties), { domainComputation: 'None' }),
|
431
|
+
};
|
387
432
|
}
|
388
433
|
}
|
389
434
|
return Object.assign(Object.assign({}, lineItem), { lineItems: (_c = lineItem.lineItems) === null || _c === void 0 ? void 0 : _c.map(i => this.updatePortDomains(i, runtimeModel)), portDomains });
|
390
435
|
}
|
391
436
|
}
|
392
|
-
ConfigurationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
393
|
-
ConfigurationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
394
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
437
|
+
ConfigurationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
438
|
+
ConfigurationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationApiService });
|
439
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationApiService, decorators: [{
|
440
|
+
type: Injectable
|
441
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
442
|
+
|
443
|
+
class ConfigurationProcessorsApiService {
|
444
|
+
constructor(baseHttpService) {
|
445
|
+
this.baseHttpService = baseHttpService;
|
446
|
+
this.serviceUrl = '/configuration/processors/owners';
|
447
|
+
this.fetchConfigurationProcessors$ = (ownerId) => {
|
448
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}/${ownerId}` });
|
449
|
+
};
|
450
|
+
this.createConfigurationProcessors$ = (configurationProcessor) => {
|
451
|
+
return this.baseHttpService.api({
|
452
|
+
method: 'post',
|
453
|
+
url: `${this.serviceUrl}/${configurationProcessor.ownerId}`,
|
454
|
+
body: configurationProcessor,
|
455
|
+
});
|
456
|
+
};
|
457
|
+
this.updateConfigurationProcessors$ = (configurationProcessor) => {
|
458
|
+
return this.baseHttpService.api({
|
459
|
+
method: 'put',
|
460
|
+
url: `${this.serviceUrl}/${configurationProcessor.ownerId}/${configurationProcessor.id}`,
|
461
|
+
body: configurationProcessor,
|
462
|
+
});
|
463
|
+
};
|
464
|
+
this.deleteConfigurationProcessors$ = (configurationProcessor) => {
|
465
|
+
return this.baseHttpService.api({
|
466
|
+
method: 'delete',
|
467
|
+
url: `${this.serviceUrl}/${configurationProcessor.ownerId}/${configurationProcessor.id}`,
|
468
|
+
});
|
469
|
+
};
|
470
|
+
}
|
471
|
+
}
|
472
|
+
ConfigurationProcessorsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationProcessorsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
473
|
+
ConfigurationProcessorsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationProcessorsApiService });
|
474
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationProcessorsApiService, decorators: [{
|
395
475
|
type: Injectable
|
396
476
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
397
477
|
|
@@ -464,9 +544,9 @@ class ConfigurationSettingsApiService {
|
|
464
544
|
return this.httpService.api(Object.assign({ method: 'get', url: '/cache/evict/' + name }, options));
|
465
545
|
}
|
466
546
|
}
|
467
|
-
ConfigurationSettingsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
468
|
-
ConfigurationSettingsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
469
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
547
|
+
ConfigurationSettingsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationSettingsApiService, deps: [{ token: i1.BaseHttpService }, { token: i2.MessageService }], target: i0.ɵɵFactoryTarget.Injectable });
|
548
|
+
ConfigurationSettingsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationSettingsApiService });
|
549
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationSettingsApiService, decorators: [{
|
470
550
|
type: Injectable
|
471
551
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: i2.MessageService }]; } });
|
472
552
|
|
@@ -486,9 +566,50 @@ class ContextApiService {
|
|
486
566
|
});
|
487
567
|
}
|
488
568
|
}
|
489
|
-
ContextApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
490
|
-
ContextApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
491
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
569
|
+
ContextApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContextApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
570
|
+
ContextApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContextApiService });
|
571
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContextApiService, decorators: [{
|
572
|
+
type: Injectable
|
573
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
574
|
+
|
575
|
+
class ContractedPriceApiService {
|
576
|
+
constructor(baseHttpService) {
|
577
|
+
this.baseHttpService = baseHttpService;
|
578
|
+
this.serviceUrl = '/admin/contracted-price';
|
579
|
+
this.fetchContractedPrices$ = () => {
|
580
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}` });
|
581
|
+
};
|
582
|
+
this.fetchContractedPrice$ = (id) => {
|
583
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
|
584
|
+
};
|
585
|
+
this.createContractedPrice$ = (data) => {
|
586
|
+
return this.baseHttpService.api({
|
587
|
+
url: `${this.serviceUrl}`,
|
588
|
+
method: 'put',
|
589
|
+
body: data,
|
590
|
+
});
|
591
|
+
};
|
592
|
+
this.updateContractedPrice$ = (data) => {
|
593
|
+
return this.baseHttpService.api({
|
594
|
+
url: `${this.serviceUrl}/${data.id}`,
|
595
|
+
method: 'put',
|
596
|
+
body: data,
|
597
|
+
});
|
598
|
+
};
|
599
|
+
this.searchContractedPrices$ = (searchParams, expression) => {
|
600
|
+
const params = new HttpParams({ fromObject: Object.assign({}, searchParams) });
|
601
|
+
return this.baseHttpService.api({
|
602
|
+
method: 'post',
|
603
|
+
url: `${this.serviceUrl}/search`,
|
604
|
+
params,
|
605
|
+
body: expression || {},
|
606
|
+
});
|
607
|
+
};
|
608
|
+
}
|
609
|
+
}
|
610
|
+
ContractedPriceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContractedPriceApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
611
|
+
ContractedPriceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContractedPriceApiService });
|
612
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContractedPriceApiService, decorators: [{
|
492
613
|
type: Injectable
|
493
614
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
494
615
|
|
@@ -506,9 +627,9 @@ class DeltaApiService {
|
|
506
627
|
});
|
507
628
|
}
|
508
629
|
}
|
509
|
-
DeltaApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
510
|
-
DeltaApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
511
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
630
|
+
DeltaApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DeltaApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
631
|
+
DeltaApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DeltaApiService });
|
632
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DeltaApiService, decorators: [{
|
512
633
|
type: Injectable
|
513
634
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
514
635
|
|
@@ -568,9 +689,9 @@ class DocumentAttachmentApiService {
|
|
568
689
|
});
|
569
690
|
}
|
570
691
|
}
|
571
|
-
DocumentAttachmentApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
572
|
-
DocumentAttachmentApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
573
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
692
|
+
DocumentAttachmentApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentAttachmentApiService, deps: [{ token: i1.BaseHttpService }, { token: i1.FileDownloadService }], target: i0.ɵɵFactoryTarget.Injectable });
|
693
|
+
DocumentAttachmentApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentAttachmentApiService });
|
694
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentAttachmentApiService, decorators: [{
|
574
695
|
type: Injectable
|
575
696
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: i1.FileDownloadService }]; } });
|
576
697
|
|
@@ -612,7 +733,9 @@ class SalesforceApiService {
|
|
612
733
|
return this.httpService.api(Object.assign({ method: 'post', url: methodUrl, body: fields }, options));
|
613
734
|
}
|
614
735
|
apexGetRequest(path, params, options) {
|
615
|
-
|
736
|
+
// this line is needed because HttpParams instance from Integration behaves wrong in studio instance of Angular
|
737
|
+
const httpParams = new HttpParams({ fromString: params.toString() });
|
738
|
+
return this.httpService.api(Object.assign({ url: `${this.SERVICE_URL}/apex${path}`, params: httpParams }, options));
|
616
739
|
}
|
617
740
|
apexPostRequest(path, body, options) {
|
618
741
|
return this.httpService.api(Object.assign({ method: 'post', body, url: `${this.SERVICE_URL}/apex${path}` }, options));
|
@@ -630,9 +753,9 @@ class SalesforceApiService {
|
|
630
753
|
});
|
631
754
|
}
|
632
755
|
}
|
633
|
-
SalesforceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
634
|
-
SalesforceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
635
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
756
|
+
SalesforceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesforceApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
757
|
+
SalesforceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesforceApiService });
|
758
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesforceApiService, decorators: [{
|
636
759
|
type: Injectable
|
637
760
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
638
761
|
|
@@ -645,7 +768,7 @@ class DocumentTemplatesApiService {
|
|
645
768
|
this.http = http;
|
646
769
|
this.DOCGEN_TAG = 'docgen';
|
647
770
|
this.SERVICE_URL = '/templates';
|
648
|
-
this.DOC_GEN_URL_FALLBACK =
|
771
|
+
this.DOC_GEN_URL_FALLBACK = `${window.VELO_API}/docgen`;
|
649
772
|
this.mapSfQueryResult = (limit) => map((records) => {
|
650
773
|
if (!records.length) {
|
651
774
|
return { _result: 'No Records Found' };
|
@@ -884,11 +1007,11 @@ class DocumentTemplatesApiService {
|
|
884
1007
|
return forkJoin(attachmentIds.map(id => this.documentAttachmentService.getAttachmentFile(id, true)));
|
885
1008
|
}
|
886
1009
|
queryObject({ objectName, resultObjectName, fields, statement }, { properties }) {
|
887
|
-
var _a;
|
1010
|
+
var _a, _b;
|
888
1011
|
const patternLimit = /(\s*limit\s\d*)/i;
|
889
1012
|
let limit = 1;
|
890
1013
|
if (statement && patternLimit.test(statement)) {
|
891
|
-
const limitStr = (_a = statement === null || statement === void 0 ? void 0 : statement.match(patternLimit)) === null || _a === void 0 ? void 0 : _a[1].trim().substring(5).trim();
|
1014
|
+
const limitStr = (_b = (_a = statement === null || statement === void 0 ? void 0 : statement.match(patternLimit)) === null || _a === void 0 ? void 0 : _a[1]) === null || _b === void 0 ? void 0 : _b.trim().substring(5).trim();
|
892
1015
|
if (limitStr) {
|
893
1016
|
limit = Number.parseInt(limitStr, 10);
|
894
1017
|
}
|
@@ -901,11 +1024,11 @@ class DocumentTemplatesApiService {
|
|
901
1024
|
return this.salesforceApiService.query(searchRequest, objectName).pipe(this.mapSfQueryResult(limit), map(value => ({ [resultObjectName]: value })));
|
902
1025
|
}
|
903
1026
|
}
|
904
|
-
DocumentTemplatesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
905
|
-
DocumentTemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
906
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
1027
|
+
DocumentTemplatesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentTemplatesApiService, deps: [{ token: i1.BaseHttpService }, { token: SalesforceApiService }, { token: i1.FileDownloadService }, { token: DocumentAttachmentApiService }, { token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
1028
|
+
DocumentTemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentTemplatesApiService });
|
1029
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentTemplatesApiService, decorators: [{
|
907
1030
|
type: Injectable
|
908
|
-
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: SalesforceApiService }, { type: i1.FileDownloadService }, { type: DocumentAttachmentApiService }, { type:
|
1031
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: SalesforceApiService }, { type: i1.FileDownloadService }, { type: DocumentAttachmentApiService }, { type: i1$1.HttpClient }]; } });
|
909
1032
|
|
910
1033
|
class EndpointsApiService {
|
911
1034
|
constructor(baseHttpService) {
|
@@ -976,9 +1099,148 @@ class EndpointsApiService {
|
|
976
1099
|
});
|
977
1100
|
}
|
978
1101
|
}
|
979
|
-
EndpointsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
980
|
-
EndpointsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
981
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
1102
|
+
EndpointsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EndpointsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1103
|
+
EndpointsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EndpointsApiService });
|
1104
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EndpointsApiService, decorators: [{
|
1105
|
+
type: Injectable
|
1106
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1107
|
+
|
1108
|
+
class FlowStateApiService {
|
1109
|
+
constructor(httpService) {
|
1110
|
+
this.httpService = httpService;
|
1111
|
+
this.SERVICE_URL = '/configuration/states';
|
1112
|
+
}
|
1113
|
+
/**
|
1114
|
+
* Initialize flow state
|
1115
|
+
* @param request Request
|
1116
|
+
* @returns Flow initialization response, which contains session ID and result of selectors
|
1117
|
+
*/
|
1118
|
+
init(request) {
|
1119
|
+
return this.httpService.api({
|
1120
|
+
method: 'post',
|
1121
|
+
url: `${this.SERVICE_URL}/quote/start`,
|
1122
|
+
body: request,
|
1123
|
+
});
|
1124
|
+
}
|
1125
|
+
/**
|
1126
|
+
* Get existing state by ID
|
1127
|
+
* @param id ID
|
1128
|
+
* @returns Flow State
|
1129
|
+
*/
|
1130
|
+
get(id) {
|
1131
|
+
return this.httpService.api({
|
1132
|
+
url: `${this.SERVICE_URL}/${id}`,
|
1133
|
+
});
|
1134
|
+
}
|
1135
|
+
/**
|
1136
|
+
* Execute actions/selectors
|
1137
|
+
* @param id State ID
|
1138
|
+
* @param request Request
|
1139
|
+
* @returns Execute result
|
1140
|
+
*/
|
1141
|
+
execute(id, request) {
|
1142
|
+
return this.httpService.api({
|
1143
|
+
method: 'post',
|
1144
|
+
url: `${this.SERVICE_URL}/quote/${id}/execute`,
|
1145
|
+
body: request,
|
1146
|
+
});
|
1147
|
+
}
|
1148
|
+
/**
|
1149
|
+
* Save Quote in the state
|
1150
|
+
* @param id State ID
|
1151
|
+
*/
|
1152
|
+
save(id) {
|
1153
|
+
return this.httpService.api({
|
1154
|
+
method: 'post',
|
1155
|
+
url: `${this.SERVICE_URL}/quote/${id}/save`,
|
1156
|
+
});
|
1157
|
+
}
|
1158
|
+
/**
|
1159
|
+
* Submit Quote in the state
|
1160
|
+
* @param id State ID
|
1161
|
+
*/
|
1162
|
+
submit(id) {
|
1163
|
+
return this.httpService.api({
|
1164
|
+
method: 'post',
|
1165
|
+
url: `${this.SERVICE_URL}/quote/${id}/submit`,
|
1166
|
+
});
|
1167
|
+
}
|
1168
|
+
/**
|
1169
|
+
* Close Flow state
|
1170
|
+
* @param id State ID
|
1171
|
+
*/
|
1172
|
+
cancel(id) {
|
1173
|
+
return this.httpService.api({
|
1174
|
+
method: 'post',
|
1175
|
+
url: `${this.SERVICE_URL}/quote/${id}/cancel`,
|
1176
|
+
});
|
1177
|
+
}
|
1178
|
+
/**
|
1179
|
+
* Initialize stateful configuration
|
1180
|
+
* @param stateId string
|
1181
|
+
* @param request Request
|
1182
|
+
* @returns Flow initialization response, which contains session ID and result of selectors
|
1183
|
+
*/
|
1184
|
+
newConfiguration(stateId, request) {
|
1185
|
+
return this.httpService.api({
|
1186
|
+
method: 'post',
|
1187
|
+
url: `${this.SERVICE_URL}/quote/${stateId}/configuration/new`,
|
1188
|
+
body: request,
|
1189
|
+
});
|
1190
|
+
}
|
1191
|
+
/**
|
1192
|
+
* Start stateful configuration
|
1193
|
+
* @param stateId string
|
1194
|
+
* @param request Request
|
1195
|
+
* @returns Flow initialization response, which contains session ID and result of selectors
|
1196
|
+
*/
|
1197
|
+
startConfiguration(stateId, request) {
|
1198
|
+
return this.httpService.api({
|
1199
|
+
method: 'post',
|
1200
|
+
url: `${this.SERVICE_URL}/quote/${stateId}/configuration/start`,
|
1201
|
+
body: request,
|
1202
|
+
});
|
1203
|
+
}
|
1204
|
+
/**
|
1205
|
+
* Execute stateful configuration
|
1206
|
+
* @param stateId string
|
1207
|
+
* @param configurationId string
|
1208
|
+
* @param request Request
|
1209
|
+
* @returns Flow initialization response, which contains session ID and result of selectors
|
1210
|
+
*/
|
1211
|
+
executeConfiguration(stateId, configurationId, request) {
|
1212
|
+
return this.httpService.api({
|
1213
|
+
method: 'post',
|
1214
|
+
url: `${this.SERVICE_URL}/quote/${stateId}/configuration/${configurationId}/execute`,
|
1215
|
+
body: request,
|
1216
|
+
});
|
1217
|
+
}
|
1218
|
+
/**
|
1219
|
+
* Save stateful configuration
|
1220
|
+
* @param stateId string
|
1221
|
+
* @param configurationId string
|
1222
|
+
*/
|
1223
|
+
saveConfiguration(stateId, configurationId) {
|
1224
|
+
return this.httpService.api({
|
1225
|
+
method: 'post',
|
1226
|
+
url: `${this.SERVICE_URL}/quote/${stateId}/configuration/${configurationId}/save`,
|
1227
|
+
});
|
1228
|
+
}
|
1229
|
+
/**
|
1230
|
+
* Cancel stateful configuration
|
1231
|
+
* @param stateId string
|
1232
|
+
* @param configurationId string
|
1233
|
+
*/
|
1234
|
+
cancelConfiguration(stateId, configurationId) {
|
1235
|
+
return this.httpService.api({
|
1236
|
+
method: 'post',
|
1237
|
+
url: `${this.SERVICE_URL}/quote/${stateId}/configuration/${configurationId}/cancel`,
|
1238
|
+
});
|
1239
|
+
}
|
1240
|
+
}
|
1241
|
+
FlowStateApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowStateApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1242
|
+
FlowStateApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowStateApiService });
|
1243
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowStateApiService, decorators: [{
|
982
1244
|
type: Injectable
|
983
1245
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
984
1246
|
|
@@ -988,17 +1250,20 @@ class FlowsApiService {
|
|
988
1250
|
this.flowsKey = 'flows';
|
989
1251
|
}
|
990
1252
|
getFlow(id) {
|
991
|
-
return this.fetchFlows().pipe(map(flows => flows.find(flow => flow.id == id))
|
1253
|
+
return this.fetchFlows().pipe(map(flows => flows.find(flow => flow.id == id)), map(flow => {
|
1254
|
+
if (!flow) {
|
1255
|
+
throw new Error(`Flow with flowId=${id} is not defined`);
|
1256
|
+
}
|
1257
|
+
return flow;
|
1258
|
+
}));
|
992
1259
|
}
|
993
1260
|
fetchFlows() {
|
994
|
-
return this.configurationSettingsApiService
|
995
|
-
.fetchSetting(this.flowsKey)
|
996
|
-
.pipe(map((flow) => ((flow === null || flow === void 0 ? void 0 : flow.value) ? JSON.parse(flow.value) : [])));
|
1261
|
+
return this.configurationSettingsApiService.fetchSetting(this.flowsKey).pipe(map((setting) => ((setting === null || setting === void 0 ? void 0 : setting.value) ? JSON.parse(setting.value) : [])), map(anyFlows => anyFlows.map(toLatestFlow).filter(isDefined)));
|
997
1262
|
}
|
998
1263
|
}
|
999
|
-
FlowsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1000
|
-
FlowsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1001
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
1264
|
+
FlowsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowsApiService, deps: [{ token: ConfigurationSettingsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1265
|
+
FlowsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowsApiService });
|
1266
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowsApiService, decorators: [{
|
1002
1267
|
type: Injectable
|
1003
1268
|
}], ctorParameters: function () { return [{ type: ConfigurationSettingsApiService }]; } });
|
1004
1269
|
|
@@ -1057,9 +1322,9 @@ class GuidedSellingsAdminApiService {
|
|
1057
1322
|
}
|
1058
1323
|
}
|
1059
1324
|
GuidedSellingsAdminApiService.MAX_RESULTS = 60;
|
1060
|
-
GuidedSellingsAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1061
|
-
GuidedSellingsAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1062
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
1325
|
+
GuidedSellingsAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingsAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1326
|
+
GuidedSellingsAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingsAdminApiService });
|
1327
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingsAdminApiService, decorators: [{
|
1063
1328
|
type: Injectable
|
1064
1329
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1065
1330
|
|
@@ -1089,9 +1354,9 @@ class GuidedSellingApiService {
|
|
1089
1354
|
});
|
1090
1355
|
}
|
1091
1356
|
}
|
1092
|
-
GuidedSellingApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1093
|
-
GuidedSellingApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1094
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
1357
|
+
GuidedSellingApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1358
|
+
GuidedSellingApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingApiService });
|
1359
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingApiService, decorators: [{
|
1095
1360
|
type: Injectable
|
1096
1361
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1097
1362
|
|
@@ -1160,9 +1425,9 @@ class OffersApiService {
|
|
1160
1425
|
}
|
1161
1426
|
}
|
1162
1427
|
OffersApiService.MAX_RESULTS = 60;
|
1163
|
-
OffersApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1164
|
-
OffersApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1165
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
1428
|
+
OffersApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OffersApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1429
|
+
OffersApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OffersApiService });
|
1430
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OffersApiService, decorators: [{
|
1166
1431
|
type: Injectable
|
1167
1432
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1168
1433
|
|
@@ -1177,11 +1442,11 @@ class OrgInfoApiService {
|
|
1177
1442
|
return this.http.get(`${this.hostUrl}/org-info/${organizationId}`);
|
1178
1443
|
}
|
1179
1444
|
}
|
1180
|
-
OrgInfoApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1181
|
-
OrgInfoApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1182
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
1445
|
+
OrgInfoApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrgInfoApiService, deps: [{ token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
1446
|
+
OrgInfoApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrgInfoApiService });
|
1447
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrgInfoApiService, decorators: [{
|
1183
1448
|
type: Injectable
|
1184
|
-
}], ctorParameters: function () { return [{ type:
|
1449
|
+
}], ctorParameters: function () { return [{ type: i1$1.HttpClient }]; } });
|
1185
1450
|
|
1186
1451
|
class PicklistsApiService {
|
1187
1452
|
constructor(baseHttpService) {
|
@@ -1212,9 +1477,78 @@ class PicklistsApiService {
|
|
1212
1477
|
};
|
1213
1478
|
}
|
1214
1479
|
}
|
1215
|
-
PicklistsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1216
|
-
PicklistsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1217
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
1480
|
+
PicklistsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PicklistsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1481
|
+
PicklistsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PicklistsApiService });
|
1482
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PicklistsApiService, decorators: [{
|
1483
|
+
type: Injectable
|
1484
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1485
|
+
|
1486
|
+
class PortalsApiService {
|
1487
|
+
constructor(baseHttpService) {
|
1488
|
+
this.baseHttpService = baseHttpService;
|
1489
|
+
this.serviceUrl = '/admin/portal';
|
1490
|
+
this.getPortals$ = (skip = 1, name = '') => {
|
1491
|
+
let params = new HttpParams();
|
1492
|
+
params = params.append('count', (PortalsApiService.MAX_RESULTS * skip).toString());
|
1493
|
+
params = params.append('skip', '0');
|
1494
|
+
params = params.append('name', name);
|
1495
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}`, params });
|
1496
|
+
};
|
1497
|
+
this.searchPortals$ = (skip = 0, expression) => {
|
1498
|
+
let params = new HttpParams();
|
1499
|
+
params = params.set('skip', '' + skip);
|
1500
|
+
params = params.set('count', '' + PortalsApiService.MAX_RESULTS);
|
1501
|
+
return this.baseHttpService.api({
|
1502
|
+
method: 'post',
|
1503
|
+
url: `${this.serviceUrl}/search`,
|
1504
|
+
params,
|
1505
|
+
body: expression || {},
|
1506
|
+
});
|
1507
|
+
};
|
1508
|
+
this.removePortal$ = (id) => {
|
1509
|
+
return this.baseHttpService.api({
|
1510
|
+
url: `${this.serviceUrl}/${id}`,
|
1511
|
+
method: 'delete',
|
1512
|
+
});
|
1513
|
+
};
|
1514
|
+
this.restore$ = (id) => {
|
1515
|
+
return this.baseHttpService.api({
|
1516
|
+
method: 'patch',
|
1517
|
+
url: `${this.serviceUrl}/${id}/restore`,
|
1518
|
+
});
|
1519
|
+
};
|
1520
|
+
this.duplicatePortal$ = (cloneRequest) => {
|
1521
|
+
return this.baseHttpService.api({
|
1522
|
+
url: `${this.serviceUrl}/${cloneRequest.id}/clone`,
|
1523
|
+
method: 'post',
|
1524
|
+
body: cloneRequest,
|
1525
|
+
});
|
1526
|
+
};
|
1527
|
+
this.getPortal$ = (id) => {
|
1528
|
+
return this.baseHttpService.api({
|
1529
|
+
url: `${this.serviceUrl}/${id}`,
|
1530
|
+
});
|
1531
|
+
};
|
1532
|
+
}
|
1533
|
+
createNewPortal$(body) {
|
1534
|
+
return this.baseHttpService.api({
|
1535
|
+
url: `${this.serviceUrl}`,
|
1536
|
+
method: 'post',
|
1537
|
+
body,
|
1538
|
+
});
|
1539
|
+
}
|
1540
|
+
updatePortal$(portal, settings) {
|
1541
|
+
return this.baseHttpService.api({
|
1542
|
+
url: `${this.serviceUrl}/${portal.id}`,
|
1543
|
+
method: 'put',
|
1544
|
+
body: Object.assign(Object.assign({}, portal), { settings: JSON.stringify(settings) }),
|
1545
|
+
});
|
1546
|
+
}
|
1547
|
+
}
|
1548
|
+
PortalsApiService.MAX_RESULTS = 60;
|
1549
|
+
PortalsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PortalsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1550
|
+
PortalsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PortalsApiService });
|
1551
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PortalsApiService, decorators: [{
|
1218
1552
|
type: Injectable
|
1219
1553
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1220
1554
|
|
@@ -1272,9 +1606,9 @@ class PriceApiService {
|
|
1272
1606
|
});
|
1273
1607
|
}
|
1274
1608
|
}
|
1275
|
-
PriceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1276
|
-
PriceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1277
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
1609
|
+
PriceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PriceApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1610
|
+
PriceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PriceApiService });
|
1611
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PriceApiService, decorators: [{
|
1278
1612
|
type: Injectable
|
1279
1613
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1280
1614
|
|
@@ -1366,9 +1700,9 @@ class ProceduresApiService {
|
|
1366
1700
|
});
|
1367
1701
|
}
|
1368
1702
|
}
|
1369
|
-
ProceduresApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1370
|
-
ProceduresApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1371
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
1703
|
+
ProceduresApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProceduresApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1704
|
+
ProceduresApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProceduresApiService });
|
1705
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProceduresApiService, decorators: [{
|
1372
1706
|
type: Injectable
|
1373
1707
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1374
1708
|
|
@@ -1514,9 +1848,9 @@ class ProductApiService {
|
|
1514
1848
|
return `${this.serviceUrl}/${productId}/image`;
|
1515
1849
|
}
|
1516
1850
|
}
|
1517
|
-
ProductApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1518
|
-
ProductApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1519
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
1851
|
+
ProductApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1852
|
+
ProductApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductApiService });
|
1853
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductApiService, decorators: [{
|
1520
1854
|
type: Injectable
|
1521
1855
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1522
1856
|
|
@@ -1745,47 +2079,110 @@ class ProductModelApiService {
|
|
1745
2079
|
}
|
1746
2080
|
}
|
1747
2081
|
ProductModelApiService.MAX_RESULTS = 200;
|
1748
|
-
ProductModelApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1749
|
-
ProductModelApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1750
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2082
|
+
ProductModelApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductModelApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2083
|
+
ProductModelApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductModelApiService });
|
2084
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductModelApiService, decorators: [{
|
1751
2085
|
type: Injectable
|
1752
2086
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1753
2087
|
|
1754
|
-
class
|
1755
|
-
constructor(
|
1756
|
-
this.
|
1757
|
-
this.
|
1758
|
-
|
1759
|
-
|
1760
|
-
|
1761
|
-
|
1762
|
-
|
1763
|
-
|
1764
|
-
|
1765
|
-
|
1766
|
-
|
1767
|
-
|
1768
|
-
|
1769
|
-
|
1770
|
-
|
1771
|
-
|
1772
|
-
|
1773
|
-
|
1774
|
-
|
1775
|
-
|
1776
|
-
|
1777
|
-
|
1778
|
-
|
1779
|
-
|
1780
|
-
|
1781
|
-
|
2088
|
+
class PromotionsApiService {
|
2089
|
+
constructor(baseHttpService) {
|
2090
|
+
this.baseHttpService = baseHttpService;
|
2091
|
+
this.serviceUrl = '/admin/promotion';
|
2092
|
+
this.fetchAll$ = () => {
|
2093
|
+
return this.baseHttpService.api({ url: this.serviceUrl });
|
2094
|
+
};
|
2095
|
+
this.fetchOne$ = (id) => {
|
2096
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
|
2097
|
+
};
|
2098
|
+
this.remove$ = (id) => {
|
2099
|
+
return this.baseHttpService.api({
|
2100
|
+
url: `${this.serviceUrl}/${id}`,
|
2101
|
+
method: 'delete',
|
2102
|
+
});
|
2103
|
+
};
|
2104
|
+
this.restore$ = (id) => {
|
2105
|
+
return this.baseHttpService.api({
|
2106
|
+
method: 'patch',
|
2107
|
+
url: `${this.serviceUrl}/${id}/restore`,
|
2108
|
+
});
|
2109
|
+
};
|
2110
|
+
this.duplicate$ = (body) => {
|
2111
|
+
return this.baseHttpService
|
2112
|
+
.api({
|
2113
|
+
url: `${this.serviceUrl}/${body.id}/clone`,
|
2114
|
+
method: 'post',
|
2115
|
+
body,
|
2116
|
+
})
|
2117
|
+
.pipe(map$1(response => response.clonedRecordId));
|
2118
|
+
};
|
2119
|
+
}
|
2120
|
+
search$(expression, skip, count) {
|
2121
|
+
let params = new HttpParams();
|
2122
|
+
if (typeof skip === 'number') {
|
2123
|
+
params = params.set('skip', '' + skip);
|
2124
|
+
}
|
2125
|
+
if (typeof count === 'number') {
|
2126
|
+
params = params.set('count', '' + count);
|
2127
|
+
}
|
2128
|
+
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
2129
|
+
}
|
2130
|
+
create$(body) {
|
2131
|
+
return this.baseHttpService.api({
|
2132
|
+
url: `${this.serviceUrl}`,
|
2133
|
+
method: 'post',
|
2134
|
+
body,
|
2135
|
+
});
|
2136
|
+
}
|
2137
|
+
update$(body) {
|
2138
|
+
return this.baseHttpService.api({
|
2139
|
+
url: `${this.serviceUrl}/${body.id}`,
|
2140
|
+
method: 'put',
|
2141
|
+
body,
|
2142
|
+
});
|
2143
|
+
}
|
2144
|
+
}
|
2145
|
+
PromotionsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PromotionsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2146
|
+
PromotionsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PromotionsApiService });
|
2147
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PromotionsApiService, decorators: [{
|
2148
|
+
type: Injectable
|
2149
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2150
|
+
|
2151
|
+
class QuoteApiService {
|
2152
|
+
constructor(httpService) {
|
2153
|
+
this.httpService = httpService;
|
2154
|
+
this.SERVICE_URL = '/quotes';
|
2155
|
+
}
|
2156
|
+
// request quoteId | accountId | opportunityId | orderId
|
2157
|
+
getQuoteDraft(objectId, params, errorHandler) {
|
2158
|
+
return this.httpService.api({
|
2159
|
+
method: 'get',
|
2160
|
+
url: `${this.SERVICE_URL}/${objectId}`,
|
2161
|
+
params,
|
2162
|
+
errorHandler,
|
2163
|
+
});
|
2164
|
+
}
|
2165
|
+
upsertQuote(request, options) {
|
2166
|
+
return this.httpService.api(Object.assign({ method: 'post', url: `${this.SERVICE_URL}`, body: request }, options));
|
2167
|
+
}
|
2168
|
+
submitQuote(request, options) {
|
2169
|
+
return this.httpService.api(Object.assign({ method: 'post', url: `${this.SERVICE_URL}/submit`, body: request }, options));
|
2170
|
+
}
|
2171
|
+
attachDocument(id, documentName, data) {
|
2172
|
+
const formData = new FormData();
|
2173
|
+
const blob = new Blob([data]);
|
2174
|
+
formData.append('file', blob, documentName);
|
2175
|
+
return this.httpService.upload({
|
2176
|
+
url: `${this.SERVICE_URL}/${id}/attach-document`,
|
2177
|
+
responseType: 'arraybuffer',
|
2178
|
+
method: 'post',
|
1782
2179
|
body: formData,
|
1783
2180
|
});
|
1784
2181
|
}
|
1785
2182
|
}
|
1786
|
-
QuoteApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1787
|
-
QuoteApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1788
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2183
|
+
QuoteApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: QuoteApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2184
|
+
QuoteApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: QuoteApiService });
|
2185
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: QuoteApiService, decorators: [{
|
1789
2186
|
type: Injectable
|
1790
2187
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1791
2188
|
|
@@ -1801,9 +2198,135 @@ class RampApiService {
|
|
1801
2198
|
return this.httpService.api(Object.assign({ method: 'post', url: `${this.SERVICE_URL}/renew`, body: request }, options));
|
1802
2199
|
}
|
1803
2200
|
}
|
1804
|
-
RampApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1805
|
-
RampApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1806
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2201
|
+
RampApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RampApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2202
|
+
RampApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RampApiService });
|
2203
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RampApiService, decorators: [{
|
2204
|
+
type: Injectable
|
2205
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2206
|
+
|
2207
|
+
class RebateProgramApiService {
|
2208
|
+
constructor(baseHttpService) {
|
2209
|
+
this.baseHttpService = baseHttpService;
|
2210
|
+
this.serviceUrl = '/admin/rebate-program';
|
2211
|
+
this.fetchAll$ = () => {
|
2212
|
+
return this.baseHttpService.api({ url: this.serviceUrl });
|
2213
|
+
};
|
2214
|
+
this.fetchOne$ = (id) => {
|
2215
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
|
2216
|
+
};
|
2217
|
+
this.remove$ = (id) => {
|
2218
|
+
return this.baseHttpService.api({
|
2219
|
+
url: `${this.serviceUrl}/${id}`,
|
2220
|
+
method: 'delete',
|
2221
|
+
});
|
2222
|
+
};
|
2223
|
+
this.restore$ = (id) => {
|
2224
|
+
return this.baseHttpService.api({
|
2225
|
+
method: 'patch',
|
2226
|
+
url: `${this.serviceUrl}/${id}/restore`,
|
2227
|
+
});
|
2228
|
+
};
|
2229
|
+
this.duplicate$ = (body) => {
|
2230
|
+
return this.baseHttpService
|
2231
|
+
.api({
|
2232
|
+
url: `${this.serviceUrl}/${body.id}/clone`,
|
2233
|
+
method: 'post',
|
2234
|
+
body,
|
2235
|
+
})
|
2236
|
+
.pipe(map$1(response => response.clonedRecordId));
|
2237
|
+
};
|
2238
|
+
}
|
2239
|
+
search$(expression, skip, count) {
|
2240
|
+
let params = new HttpParams();
|
2241
|
+
if (typeof skip === 'number') {
|
2242
|
+
params = params.set('skip', '' + skip);
|
2243
|
+
}
|
2244
|
+
if (typeof count === 'number') {
|
2245
|
+
params = params.set('count', '' + count);
|
2246
|
+
}
|
2247
|
+
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
2248
|
+
}
|
2249
|
+
create$(body) {
|
2250
|
+
return this.baseHttpService.api({
|
2251
|
+
url: `${this.serviceUrl}`,
|
2252
|
+
method: 'post',
|
2253
|
+
body,
|
2254
|
+
});
|
2255
|
+
}
|
2256
|
+
update$(body) {
|
2257
|
+
return this.baseHttpService.api({
|
2258
|
+
url: `${this.serviceUrl}/${body.id}`,
|
2259
|
+
method: 'put',
|
2260
|
+
body,
|
2261
|
+
});
|
2262
|
+
}
|
2263
|
+
}
|
2264
|
+
RebateProgramApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateProgramApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2265
|
+
RebateProgramApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateProgramApiService });
|
2266
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateProgramApiService, decorators: [{
|
2267
|
+
type: Injectable
|
2268
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2269
|
+
|
2270
|
+
class RebateTypeApiService {
|
2271
|
+
constructor(baseHttpService) {
|
2272
|
+
this.baseHttpService = baseHttpService;
|
2273
|
+
this.serviceUrl = '/admin/rebate-type';
|
2274
|
+
this.fetchAll$ = () => {
|
2275
|
+
return this.baseHttpService.api({ url: this.serviceUrl });
|
2276
|
+
};
|
2277
|
+
this.fetchOne$ = (id) => {
|
2278
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
|
2279
|
+
};
|
2280
|
+
this.remove$ = (id) => {
|
2281
|
+
return this.baseHttpService.api({
|
2282
|
+
url: `${this.serviceUrl}/${id}`,
|
2283
|
+
method: 'delete',
|
2284
|
+
});
|
2285
|
+
};
|
2286
|
+
this.restore$ = (id) => {
|
2287
|
+
return this.baseHttpService.api({
|
2288
|
+
method: 'patch',
|
2289
|
+
url: `${this.serviceUrl}/${id}/restore`,
|
2290
|
+
});
|
2291
|
+
};
|
2292
|
+
this.duplicate$ = (body) => {
|
2293
|
+
return this.baseHttpService
|
2294
|
+
.api({
|
2295
|
+
url: `${this.serviceUrl}/${body.id}/clone`,
|
2296
|
+
method: 'post',
|
2297
|
+
body,
|
2298
|
+
})
|
2299
|
+
.pipe(map$1(response => response.clonedRecordId));
|
2300
|
+
};
|
2301
|
+
}
|
2302
|
+
search$(expression, skip, count) {
|
2303
|
+
let params = new HttpParams();
|
2304
|
+
if (typeof skip === 'number') {
|
2305
|
+
params = params.set('skip', '' + skip);
|
2306
|
+
}
|
2307
|
+
if (typeof count === 'number') {
|
2308
|
+
params = params.set('count', '' + count);
|
2309
|
+
}
|
2310
|
+
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
2311
|
+
}
|
2312
|
+
create$(body) {
|
2313
|
+
return this.baseHttpService.api({
|
2314
|
+
url: `${this.serviceUrl}`,
|
2315
|
+
method: 'post',
|
2316
|
+
body,
|
2317
|
+
});
|
2318
|
+
}
|
2319
|
+
update$(body) {
|
2320
|
+
return this.baseHttpService.api({
|
2321
|
+
url: `${this.serviceUrl}/${body.id}`,
|
2322
|
+
method: 'put',
|
2323
|
+
body,
|
2324
|
+
});
|
2325
|
+
}
|
2326
|
+
}
|
2327
|
+
RebateTypeApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateTypeApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2328
|
+
RebateTypeApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateTypeApiService });
|
2329
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateTypeApiService, decorators: [{
|
1807
2330
|
type: Injectable
|
1808
2331
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1809
2332
|
|
@@ -1857,9 +2380,9 @@ class RuleGroupsApiService {
|
|
1857
2380
|
};
|
1858
2381
|
}
|
1859
2382
|
}
|
1860
|
-
RuleGroupsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1861
|
-
RuleGroupsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1862
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2383
|
+
RuleGroupsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RuleGroupsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2384
|
+
RuleGroupsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RuleGroupsApiService });
|
2385
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RuleGroupsApiService, decorators: [{
|
1863
2386
|
type: Injectable
|
1864
2387
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1865
2388
|
|
@@ -1929,17 +2452,26 @@ class RulesApiService {
|
|
1929
2452
|
});
|
1930
2453
|
}
|
1931
2454
|
execute$(body) {
|
1932
|
-
const url = body.rule.ruleGroupType
|
2455
|
+
const url = this.getExecuteRuleUrl(body.rule.ruleGroupType);
|
1933
2456
|
return this.baseHttpService.api({
|
1934
2457
|
url,
|
1935
2458
|
method: 'post',
|
1936
2459
|
body,
|
1937
2460
|
});
|
1938
2461
|
}
|
2462
|
+
getExecuteRuleUrl(ruleGroupType) {
|
2463
|
+
if (ruleGroupType === RuleGroupTypes.eligibility) {
|
2464
|
+
return '/rules/eligibility/execute';
|
2465
|
+
}
|
2466
|
+
if (ruleGroupType === RuleGroupTypes.catalog) {
|
2467
|
+
return '/rules/catalog/execute';
|
2468
|
+
}
|
2469
|
+
return '/rules/execute';
|
2470
|
+
}
|
1939
2471
|
}
|
1940
|
-
RulesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1941
|
-
RulesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1942
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2472
|
+
RulesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RulesApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2473
|
+
RulesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RulesApiService });
|
2474
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RulesApiService, decorators: [{
|
1943
2475
|
type: Injectable
|
1944
2476
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1945
2477
|
|
@@ -2013,9 +2545,9 @@ class ScriptsApiService {
|
|
2013
2545
|
};
|
2014
2546
|
}
|
2015
2547
|
}
|
2016
|
-
ScriptsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
2017
|
-
ScriptsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
2018
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2548
|
+
ScriptsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ScriptsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2549
|
+
ScriptsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ScriptsApiService });
|
2550
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ScriptsApiService, decorators: [{
|
2019
2551
|
type: Injectable
|
2020
2552
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2021
2553
|
|
@@ -2036,9 +2568,9 @@ class ShoppingCartSettingsApiService {
|
|
2036
2568
|
}, {})));
|
2037
2569
|
}
|
2038
2570
|
}
|
2039
|
-
ShoppingCartSettingsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
2040
|
-
ShoppingCartSettingsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
2041
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2571
|
+
ShoppingCartSettingsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShoppingCartSettingsApiService, deps: [{ token: ConfigurationSettingsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2572
|
+
ShoppingCartSettingsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShoppingCartSettingsApiService });
|
2573
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShoppingCartSettingsApiService, decorators: [{
|
2042
2574
|
type: Injectable
|
2043
2575
|
}], ctorParameters: function () { return [{ type: ConfigurationSettingsApiService }]; } });
|
2044
2576
|
|
@@ -2084,9 +2616,9 @@ class StatefulConfigurationApiService {
|
|
2084
2616
|
});
|
2085
2617
|
}
|
2086
2618
|
}
|
2087
|
-
StatefulConfigurationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
2088
|
-
StatefulConfigurationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
2089
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2619
|
+
StatefulConfigurationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StatefulConfigurationApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2620
|
+
StatefulConfigurationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StatefulConfigurationApiService });
|
2621
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StatefulConfigurationApiService, decorators: [{
|
2090
2622
|
type: Injectable
|
2091
2623
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2092
2624
|
|
@@ -2150,9 +2682,9 @@ class UIDefinitionsApiService {
|
|
2150
2682
|
return `/models/${modelId}/uidefinitions`;
|
2151
2683
|
}
|
2152
2684
|
}
|
2153
|
-
UIDefinitionsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
2154
|
-
UIDefinitionsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
2155
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2685
|
+
UIDefinitionsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UIDefinitionsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2686
|
+
UIDefinitionsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UIDefinitionsApiService });
|
2687
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UIDefinitionsApiService, decorators: [{
|
2156
2688
|
type: Injectable
|
2157
2689
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2158
2690
|
|
@@ -2388,6 +2920,11 @@ class UITemplatesApiService {
|
|
2388
2920
|
this.fetchComponentAttachmentFile$(templateId, component.id, 'json'),
|
2389
2921
|
]).pipe(map$1(([html, js, css, json]) => ({ html, js, css, json })));
|
2390
2922
|
};
|
2923
|
+
this.fetchComponentsAttachments$ = (templateId) => {
|
2924
|
+
return this.fetchComponents$(templateId).pipe(switchMap$1(components => {
|
2925
|
+
return forkJoin(components.map(component => this.fetchComponentAttachments$(templateId, component)));
|
2926
|
+
}));
|
2927
|
+
};
|
2391
2928
|
this.fetchComponentAttachmentFile$ = (templateId, componentId, attachmentType) => {
|
2392
2929
|
return this.baseHttpService
|
2393
2930
|
.api({
|
@@ -2438,9 +2975,9 @@ class UITemplatesApiService {
|
|
2438
2975
|
});
|
2439
2976
|
}
|
2440
2977
|
}
|
2441
|
-
UITemplatesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
2442
|
-
UITemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
2443
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2978
|
+
UITemplatesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UITemplatesApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2979
|
+
UITemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UITemplatesApiService });
|
2980
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UITemplatesApiService, decorators: [{
|
2444
2981
|
type: Injectable
|
2445
2982
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2446
2983
|
|
@@ -2476,6 +3013,15 @@ class VeloceObjectsApiService {
|
|
2476
3013
|
url: `${this.serviceUrl}/${id}`,
|
2477
3014
|
});
|
2478
3015
|
};
|
3016
|
+
this.duplicateObject$ = (body) => {
|
3017
|
+
return this.baseHttpService
|
3018
|
+
.api({
|
3019
|
+
method: 'post',
|
3020
|
+
url: `${this.serviceUrl}/${body.id}/clone`,
|
3021
|
+
body,
|
3022
|
+
})
|
3023
|
+
.pipe(map(response => response.clonedRecordId));
|
3024
|
+
};
|
2479
3025
|
this.restoreObject$ = (id) => {
|
2480
3026
|
return this.baseHttpService.api({
|
2481
3027
|
method: 'patch',
|
@@ -2514,206 +3060,40 @@ class VeloceObjectsApiService {
|
|
2514
3060
|
});
|
2515
3061
|
}
|
2516
3062
|
}
|
2517
|
-
VeloceObjectsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
2518
|
-
VeloceObjectsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
2519
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2520
|
-
type: Injectable
|
2521
|
-
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2522
|
-
|
2523
|
-
class RebateProgramApiService {
|
2524
|
-
constructor(baseHttpService) {
|
2525
|
-
this.baseHttpService = baseHttpService;
|
2526
|
-
this.serviceUrl = '/admin/rebate-program';
|
2527
|
-
this.fetchAll$ = () => {
|
2528
|
-
return this.baseHttpService.api({ url: this.serviceUrl });
|
2529
|
-
};
|
2530
|
-
this.fetchOne$ = (id) => {
|
2531
|
-
return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
|
2532
|
-
};
|
2533
|
-
this.remove$ = (id) => {
|
2534
|
-
return this.baseHttpService.api({
|
2535
|
-
url: `${this.serviceUrl}/${id}`,
|
2536
|
-
method: 'delete',
|
2537
|
-
});
|
2538
|
-
};
|
2539
|
-
this.restore$ = (id) => {
|
2540
|
-
return this.baseHttpService.api({
|
2541
|
-
method: 'patch',
|
2542
|
-
url: `${this.serviceUrl}/${id}/restore`,
|
2543
|
-
});
|
2544
|
-
};
|
2545
|
-
this.duplicate$ = (body) => {
|
2546
|
-
return this.baseHttpService
|
2547
|
-
.api({
|
2548
|
-
url: `${this.serviceUrl}/${body.id}/clone`,
|
2549
|
-
method: 'post',
|
2550
|
-
body,
|
2551
|
-
})
|
2552
|
-
.pipe(map$1(response => response.clonedRecordId));
|
2553
|
-
};
|
2554
|
-
}
|
2555
|
-
search$(expression, skip, count) {
|
2556
|
-
let params = new HttpParams();
|
2557
|
-
if (typeof skip === 'number') {
|
2558
|
-
params = params.set('skip', '' + skip);
|
2559
|
-
}
|
2560
|
-
if (typeof count === 'number') {
|
2561
|
-
params = params.set('count', '' + count);
|
2562
|
-
}
|
2563
|
-
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
2564
|
-
}
|
2565
|
-
create$(body) {
|
2566
|
-
return this.baseHttpService.api({
|
2567
|
-
url: `${this.serviceUrl}`,
|
2568
|
-
method: 'post',
|
2569
|
-
body,
|
2570
|
-
});
|
2571
|
-
}
|
2572
|
-
update$(body) {
|
2573
|
-
return this.baseHttpService.api({
|
2574
|
-
url: `${this.serviceUrl}/${body.id}`,
|
2575
|
-
method: 'put',
|
2576
|
-
body,
|
2577
|
-
});
|
2578
|
-
}
|
2579
|
-
}
|
2580
|
-
RebateProgramApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: RebateProgramApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2581
|
-
RebateProgramApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: RebateProgramApiService });
|
2582
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: RebateProgramApiService, decorators: [{
|
2583
|
-
type: Injectable
|
2584
|
-
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2585
|
-
|
2586
|
-
class RebateTypeApiService {
|
2587
|
-
constructor(baseHttpService) {
|
2588
|
-
this.baseHttpService = baseHttpService;
|
2589
|
-
this.serviceUrl = '/admin/rebate-type';
|
2590
|
-
this.fetchAll$ = () => {
|
2591
|
-
return this.baseHttpService.api({ url: this.serviceUrl });
|
2592
|
-
};
|
2593
|
-
this.fetchOne$ = (id) => {
|
2594
|
-
return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
|
2595
|
-
};
|
2596
|
-
this.remove$ = (id) => {
|
2597
|
-
return this.baseHttpService.api({
|
2598
|
-
url: `${this.serviceUrl}/${id}`,
|
2599
|
-
method: 'delete',
|
2600
|
-
});
|
2601
|
-
};
|
2602
|
-
this.restore$ = (id) => {
|
2603
|
-
return this.baseHttpService.api({
|
2604
|
-
method: 'patch',
|
2605
|
-
url: `${this.serviceUrl}/${id}/restore`,
|
2606
|
-
});
|
2607
|
-
};
|
2608
|
-
this.duplicate$ = (body) => {
|
2609
|
-
return this.baseHttpService
|
2610
|
-
.api({
|
2611
|
-
url: `${this.serviceUrl}/${body.id}/clone`,
|
2612
|
-
method: 'post',
|
2613
|
-
body,
|
2614
|
-
})
|
2615
|
-
.pipe(map$1(response => response.clonedRecordId));
|
2616
|
-
};
|
2617
|
-
}
|
2618
|
-
search$(expression, skip, count) {
|
2619
|
-
let params = new HttpParams();
|
2620
|
-
if (typeof skip === 'number') {
|
2621
|
-
params = params.set('skip', '' + skip);
|
2622
|
-
}
|
2623
|
-
if (typeof count === 'number') {
|
2624
|
-
params = params.set('count', '' + count);
|
2625
|
-
}
|
2626
|
-
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
2627
|
-
}
|
2628
|
-
create$(body) {
|
2629
|
-
return this.baseHttpService.api({
|
2630
|
-
url: `${this.serviceUrl}`,
|
2631
|
-
method: 'post',
|
2632
|
-
body,
|
2633
|
-
});
|
2634
|
-
}
|
2635
|
-
update$(body) {
|
2636
|
-
return this.baseHttpService.api({
|
2637
|
-
url: `${this.serviceUrl}/${body.id}`,
|
2638
|
-
method: 'put',
|
2639
|
-
body,
|
2640
|
-
});
|
2641
|
-
}
|
2642
|
-
}
|
2643
|
-
RebateTypeApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: RebateTypeApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2644
|
-
RebateTypeApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: RebateTypeApiService });
|
2645
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: RebateTypeApiService, decorators: [{
|
3063
|
+
VeloceObjectsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceObjectsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
3064
|
+
VeloceObjectsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceObjectsApiService });
|
3065
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceObjectsApiService, decorators: [{
|
2646
3066
|
type: Injectable
|
2647
3067
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2648
3068
|
|
2649
|
-
class
|
3069
|
+
class SandboxManagerApiService {
|
2650
3070
|
constructor(baseHttpService) {
|
2651
3071
|
this.baseHttpService = baseHttpService;
|
2652
|
-
this.serviceUrl = '/admin/
|
2653
|
-
this.fetchAll$ = () => {
|
2654
|
-
return this.baseHttpService.api({ url: this.serviceUrl });
|
2655
|
-
};
|
2656
|
-
this.fetchOne$ = (id) => {
|
2657
|
-
return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
|
2658
|
-
};
|
2659
|
-
this.remove$ = (id) => {
|
2660
|
-
return this.baseHttpService.api({
|
2661
|
-
url: `${this.serviceUrl}/${id}`,
|
2662
|
-
method: 'delete',
|
2663
|
-
});
|
2664
|
-
};
|
2665
|
-
this.restore$ = (id) => {
|
2666
|
-
return this.baseHttpService.api({
|
2667
|
-
method: 'patch',
|
2668
|
-
url: `${this.serviceUrl}/${id}/restore`,
|
2669
|
-
});
|
2670
|
-
};
|
2671
|
-
this.duplicate$ = (body) => {
|
2672
|
-
return this.baseHttpService
|
2673
|
-
.api({
|
2674
|
-
url: `${this.serviceUrl}/${body.id}/clone`,
|
2675
|
-
method: 'post',
|
2676
|
-
body,
|
2677
|
-
})
|
2678
|
-
.pipe(map$1(response => response.clonedRecordId));
|
2679
|
-
};
|
2680
|
-
}
|
2681
|
-
search$(expression, skip, count) {
|
2682
|
-
let params = new HttpParams();
|
2683
|
-
if (typeof skip === 'number') {
|
2684
|
-
params = params.set('skip', '' + skip);
|
2685
|
-
}
|
2686
|
-
if (typeof count === 'number') {
|
2687
|
-
params = params.set('count', '' + count);
|
2688
|
-
}
|
2689
|
-
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
3072
|
+
this.serviceUrl = '/admin/portal';
|
2690
3073
|
}
|
2691
|
-
|
2692
|
-
return
|
2693
|
-
|
2694
|
-
|
2695
|
-
|
2696
|
-
|
3074
|
+
getSalesforceOrganizations$(skip = 1, name = '') {
|
3075
|
+
return of([
|
3076
|
+
{ id: '1', name: 'Organization 1', active: true },
|
3077
|
+
{ id: '2', name: 'Organization 2', active: false },
|
3078
|
+
{ id: '3', name: 'Organization 3', active: true },
|
3079
|
+
]);
|
2697
3080
|
}
|
2698
|
-
|
2699
|
-
return
|
2700
|
-
url: `${this.serviceUrl}/${body.id}`,
|
2701
|
-
method: 'put',
|
2702
|
-
body,
|
2703
|
-
});
|
3081
|
+
getAvailableSalesforceOrganizations$() {
|
3082
|
+
return of(2);
|
2704
3083
|
}
|
2705
3084
|
}
|
2706
|
-
|
2707
|
-
|
2708
|
-
i0.ɵɵ
|
3085
|
+
SandboxManagerApiService.MAX_RESULTS = 60;
|
3086
|
+
SandboxManagerApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SandboxManagerApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
3087
|
+
SandboxManagerApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SandboxManagerApiService });
|
3088
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SandboxManagerApiService, decorators: [{
|
2709
3089
|
type: Injectable
|
2710
3090
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2711
3091
|
|
2712
3092
|
class ApiModule {
|
2713
3093
|
}
|
2714
|
-
ApiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
2715
|
-
ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.
|
2716
|
-
ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.
|
3094
|
+
ApiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
3095
|
+
ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, imports: [HttpClientModule] });
|
3096
|
+
ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, providers: [
|
2717
3097
|
BaseHttpService,
|
2718
3098
|
XrayService,
|
2719
3099
|
ConfigurationApiService,
|
@@ -2750,8 +3130,14 @@ ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.
|
|
2750
3130
|
RebateProgramApiService,
|
2751
3131
|
RebateTypeApiService,
|
2752
3132
|
PromotionsApiService,
|
3133
|
+
VeloceAuthService,
|
3134
|
+
ContractedPriceApiService,
|
3135
|
+
PortalsApiService,
|
3136
|
+
ConfigurationProcessorsApiService,
|
3137
|
+
FlowStateApiService,
|
3138
|
+
SandboxManagerApiService,
|
2753
3139
|
], imports: [HttpClientModule] });
|
2754
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
3140
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, decorators: [{
|
2755
3141
|
type: NgModule,
|
2756
3142
|
args: [{
|
2757
3143
|
imports: [HttpClientModule],
|
@@ -2792,6 +3178,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
|
|
2792
3178
|
RebateProgramApiService,
|
2793
3179
|
RebateTypeApiService,
|
2794
3180
|
PromotionsApiService,
|
3181
|
+
VeloceAuthService,
|
3182
|
+
ContractedPriceApiService,
|
3183
|
+
PortalsApiService,
|
3184
|
+
ConfigurationProcessorsApiService,
|
3185
|
+
FlowStateApiService,
|
3186
|
+
SandboxManagerApiService,
|
2795
3187
|
],
|
2796
3188
|
}]
|
2797
3189
|
}] });
|
@@ -2800,5 +3192,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
|
|
2800
3192
|
* Generated bundle index. Do not edit.
|
2801
3193
|
*/
|
2802
3194
|
|
2803
|
-
export { AccountApiService, ApiModule, CatalogAdminApiService, CatalogApiService, ConfigurationApiService, ConfigurationSettingsApiService, ContextApiService, DeltaApiService, DocumentAttachmentApiService, DocumentTemplatesApiService, EndpointsApiService, FlowsApiService, GuidedSellingApiService, GuidedSellingsAdminApiService, OffersApiService, OrgInfoApiService, PicklistsApiService, PriceApiService, ProceduresApiService, ProductApiService, ProductModelApiService, PromotionsApiService, QuoteApiService, RampApiService, RebateProgramApiService, RebateTypeApiService, RuleGroupsApiService, RulesApiService, SalesforceApiService, ScriptsApiService, ShoppingCartSettingsApiService, StatefulConfigurationApiService, UIDefinitionsApiService, UITemplatesApiService, VeloceObjectsApiService };
|
3195
|
+
export { AccountApiService, ApiModule, CatalogAdminApiService, CatalogApiService, ConfigurationApiService, ConfigurationProcessorsApiService, ConfigurationSettingsApiService, ContextApiService, ContractedPriceApiService, DeltaApiService, DocumentAttachmentApiService, DocumentTemplatesApiService, EndpointsApiService, FlowStateApiService, FlowsApiService, GuidedSellingApiService, GuidedSellingsAdminApiService, OffersApiService, OrgInfoApiService, PicklistsApiService, PortalsApiService, PriceApiService, ProceduresApiService, ProductApiService, ProductModelApiService, PromotionsApiService, QuoteApiService, RampApiService, RebateProgramApiService, RebateTypeApiService, RuleGroupsApiService, RulesApiService, SalesforceApiService, SandboxManagerApiService, ScriptsApiService, ShoppingCartSettingsApiService, StatefulConfigurationApiService, UIDefinitionsApiService, UITemplatesApiService, VeloceAuthService, VeloceObjectsApiService };
|
2804
3196
|
//# sourceMappingURL=veloceapps-api.mjs.map
|