@veloceapps/api 11.0.0-11 → 11.0.0-13
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 +2 -45
- package/esm2020/src/index.mjs +34 -0
- package/esm2020/src/lib/api.module.mjs +114 -0
- package/esm2020/src/lib/services/account-api.service.mjs +87 -0
- package/esm2020/src/lib/services/auth.service.mjs +22 -0
- package/esm2020/src/lib/services/catalog-admin-api.service.mjs +192 -0
- package/esm2020/src/lib/services/catalog-api.service.mjs +90 -0
- package/esm2020/src/lib/services/configuration-api.service.mjs +122 -0
- package/esm2020/src/lib/services/configuration-settings-api.service.mjs +96 -0
- package/esm2020/src/lib/services/contracted-price-api.service.mjs +45 -0
- package/esm2020/src/lib/services/delta-api.service.mjs +23 -0
- package/esm2020/src/lib/services/document-attachment-api.service.mjs +66 -0
- package/esm2020/src/lib/services/endpoints-api.service.mjs +80 -0
- package/esm2020/src/lib/services/flow-state-api.mjs +142 -0
- package/esm2020/src/lib/services/flows-api.service.mjs +29 -0
- package/esm2020/src/lib/services/guided-sellings-admin-api.service.mjs +65 -0
- package/esm2020/src/lib/services/guided-sellings-api.service.mjs +37 -0
- package/esm2020/src/lib/services/offers-api.service.mjs +76 -0
- package/esm2020/src/lib/services/org-info-api.service.mjs +54 -0
- package/esm2020/src/lib/services/picklists-api.service.mjs +41 -0
- package/esm2020/src/lib/services/portals-api.service.mjs +76 -0
- package/esm2020/src/lib/services/price-api.service.mjs +63 -0
- package/esm2020/src/lib/services/product-api.service.mjs +153 -0
- package/esm2020/src/lib/services/product-model-api.service.mjs +223 -0
- package/esm2020/src/lib/services/promotions-api.service.mjs +68 -0
- package/esm2020/src/lib/services/ramp-api.service.mjs +31 -0
- package/esm2020/src/lib/services/rebate-program-api.service.mjs +68 -0
- package/esm2020/src/lib/services/rebate-type-api.service.mjs +68 -0
- package/esm2020/src/lib/services/salesforce-api.service.mjs +79 -0
- package/esm2020/src/lib/services/sandbox-manager-api.service.mjs +94 -0
- package/esm2020/src/lib/services/shopping-cart-settings-api.service.mjs +28 -0
- package/esm2020/src/lib/services/stateful-configuration-api.mjs +51 -0
- package/esm2020/src/lib/services/veloce-objects-api.service.mjs +90 -0
- package/esm2020/src/lib/types/attachment.types.mjs +2 -0
- package/esm2020/src/lib/types/auth.types.mjs +2 -0
- package/esm2020/src/lib/types/clone-request.types.mjs +2 -0
- package/esm2020/src/lib/types/delta-request.types.mjs +2 -0
- package/esm2020/src/lib/types/dto/configuration-settings-dto.types.mjs +22 -0
- package/esm2020/src/lib/types/dto/offers-dto.types.mjs +2 -0
- package/esm2020/src/lib/types/index.mjs +8 -0
- package/esm2020/src/lib/types/org-info.types.mjs +2 -0
- package/esm2020/src/lib/types/price.types.mjs +2 -0
- package/esm2020/src/lib/types/quote.types.mjs +2 -0
- package/esm2020/src/lib/types/ramp-request.types.mjs +2 -0
- package/esm2020/src/lib/types/search-request.types.mjs +2 -0
- package/esm2020/src/lib/types/stateful-configuration.types.mjs +2 -0
- package/esm2020/src/lib/utils/canvas.utils.mjs +33 -0
- package/esm2020/src/lib/utils/index.mjs +2 -0
- package/esm2020/v2/api-v2.module.mjs +48 -0
- package/esm2020/v2/index.mjs +4 -0
- package/esm2020/v2/services/configuration-processors-api.service.mjs +38 -0
- package/esm2020/v2/services/context-definition-api.service.mjs +62 -0
- package/esm2020/v2/services/index.mjs +13 -0
- package/esm2020/v2/services/procedures-admin-api.service.mjs +82 -0
- package/esm2020/v2/services/procedures-api.service.mjs +44 -0
- package/esm2020/v2/services/rule-groups-admin-api.service.mjs +62 -0
- package/esm2020/v2/services/rules-admin-api.service.mjs +98 -0
- package/esm2020/v2/services/rules-api.service.mjs +36 -0
- package/esm2020/v2/services/sales-transactions-api.service.mjs +68 -0
- package/esm2020/v2/services/scripts-admin-api.service.mjs +75 -0
- package/esm2020/v2/services/scripts-api.service.mjs +23 -0
- package/esm2020/v2/services/ui-definitions-api.service.mjs +132 -0
- package/esm2020/{lib → v2}/services/ui-templates-api.service.mjs +2 -2
- package/esm2020/v2/types/clone-request.types.mjs +2 -0
- package/esm2020/v2/types/dto/ui-template-dto.types.mjs +2 -0
- package/esm2020/v2/types/index.mjs +4 -0
- package/esm2020/v2/types/procedure.types.mjs +2 -0
- package/esm2020/v2/types/sales-transaction.types.mjs +2 -0
- package/esm2020/v2/utils/ui-template.utils.mjs +13 -0
- package/esm2020/v2/veloceapps-api-v2.mjs +5 -0
- package/esm2020/veloceapps-api.mjs +1 -1
- package/fesm2015/veloceapps-api-v2.mjs +1005 -0
- package/fesm2015/veloceapps-api-v2.mjs.map +1 -0
- package/fesm2015/veloceapps-api.mjs +8 -939
- package/fesm2015/veloceapps-api.mjs.map +1 -1
- package/fesm2020/veloceapps-api-v2.mjs +1019 -0
- package/fesm2020/veloceapps-api-v2.mjs.map +1 -0
- package/fesm2020/veloceapps-api.mjs +78 -1033
- package/fesm2020/veloceapps-api.mjs.map +1 -1
- package/index.d.ts +1 -44
- package/package.json +9 -1
- package/src/index.d.ts +33 -0
- package/{lib → src/lib}/api.module.d.ts +2 -1
- package/src/lib/utils/index.d.ts +1 -0
- package/v2/api-v2.module.d.ts +7 -0
- package/v2/index.d.ts +3 -0
- package/{lib/services/rlm-api.service.d.ts → v2/services/context-definition-api.service.d.ts} +3 -3
- package/v2/services/index.d.ts +12 -0
- package/{lib/services/procedures-api.service.d.ts → v2/services/procedures-admin-api.service.d.ts} +6 -13
- package/v2/services/procedures-api.service.d.ts +15 -0
- package/{lib/services/rule-groups-api.service.d.ts → v2/services/rule-groups-admin-api.service.d.ts} +3 -3
- package/{lib/services/rules-api.service.d.ts → v2/services/rules-admin-api.service.d.ts} +4 -4
- package/v2/services/rules-api.service.d.ts +11 -0
- package/v2/services/sales-transactions-api.service.d.ts +20 -0
- package/{lib/services/scripts-api.service.d.ts → v2/services/scripts-admin-api.service.d.ts} +4 -5
- package/v2/services/scripts-api.service.d.ts +11 -0
- package/{lib → v2}/services/ui-definitions-api.service.d.ts +5 -2
- package/v2/types/clone-request.types.d.ts +5 -0
- package/v2/types/index.d.ts +3 -0
- package/v2/types/procedure.types.d.ts +10 -0
- package/v2/types/sales-transaction.types.d.ts +10 -0
- package/esm2020/lib/api.module.mjs +0 -146
- package/esm2020/lib/services/account-api.service.mjs +0 -87
- package/esm2020/lib/services/auth.service.mjs +0 -22
- package/esm2020/lib/services/catalog-admin-api.service.mjs +0 -192
- package/esm2020/lib/services/catalog-api.service.mjs +0 -90
- package/esm2020/lib/services/configuration-api.service.mjs +0 -122
- package/esm2020/lib/services/configuration-processors-api.service.mjs +0 -38
- package/esm2020/lib/services/configuration-settings-api.service.mjs +0 -96
- package/esm2020/lib/services/context-api.service.mjs +0 -26
- package/esm2020/lib/services/contracted-price-api.service.mjs +0 -45
- package/esm2020/lib/services/delta-api.service.mjs +0 -23
- package/esm2020/lib/services/document-attachment-api.service.mjs +0 -66
- package/esm2020/lib/services/endpoints-api.service.mjs +0 -80
- package/esm2020/lib/services/flow-state-api.mjs +0 -142
- package/esm2020/lib/services/flows-api.service.mjs +0 -29
- package/esm2020/lib/services/guided-sellings-admin-api.service.mjs +0 -65
- package/esm2020/lib/services/guided-sellings-api.service.mjs +0 -37
- package/esm2020/lib/services/offers-api.service.mjs +0 -76
- package/esm2020/lib/services/org-info-api.service.mjs +0 -54
- package/esm2020/lib/services/picklists-api.service.mjs +0 -41
- package/esm2020/lib/services/portals-api.service.mjs +0 -76
- package/esm2020/lib/services/price-api.service.mjs +0 -63
- package/esm2020/lib/services/procedures-api.service.mjs +0 -113
- package/esm2020/lib/services/product-api.service.mjs +0 -153
- package/esm2020/lib/services/product-model-api.service.mjs +0 -223
- package/esm2020/lib/services/promotions-api.service.mjs +0 -68
- package/esm2020/lib/services/quote-api.service.mjs +0 -56
- package/esm2020/lib/services/ramp-api.service.mjs +0 -31
- package/esm2020/lib/services/rebate-program-api.service.mjs +0 -68
- package/esm2020/lib/services/rebate-type-api.service.mjs +0 -68
- package/esm2020/lib/services/rlm-api.service.mjs +0 -64
- package/esm2020/lib/services/rlm-quote-api.service.mjs +0 -27
- package/esm2020/lib/services/rule-groups-api.service.mjs +0 -62
- package/esm2020/lib/services/rules-api.service.mjs +0 -98
- package/esm2020/lib/services/salesforce-api.service.mjs +0 -79
- package/esm2020/lib/services/sandbox-manager-api.service.mjs +0 -94
- package/esm2020/lib/services/scripts-api.service.mjs +0 -83
- package/esm2020/lib/services/shopping-cart-settings-api.service.mjs +0 -28
- package/esm2020/lib/services/stateful-configuration-api.mjs +0 -51
- package/esm2020/lib/services/ui-definitions-api.service.mjs +0 -122
- package/esm2020/lib/services/veloce-objects-api.service.mjs +0 -90
- package/esm2020/lib/types/attachment.types.mjs +0 -2
- package/esm2020/lib/types/auth.types.mjs +0 -2
- package/esm2020/lib/types/clone-request.types.mjs +0 -2
- package/esm2020/lib/types/delta-request.types.mjs +0 -2
- package/esm2020/lib/types/dto/configuration-settings-dto.types.mjs +0 -22
- package/esm2020/lib/types/dto/offers-dto.types.mjs +0 -2
- package/esm2020/lib/types/dto/ui-template-dto.types.mjs +0 -2
- package/esm2020/lib/types/index.mjs +0 -8
- package/esm2020/lib/types/org-info.types.mjs +0 -2
- package/esm2020/lib/types/price.types.mjs +0 -2
- package/esm2020/lib/types/quote.types.mjs +0 -2
- package/esm2020/lib/types/ramp-request.types.mjs +0 -2
- package/esm2020/lib/types/search-request.types.mjs +0 -2
- package/esm2020/lib/types/stateful-configuration.types.mjs +0 -2
- package/esm2020/lib/utils/canvas.utils.mjs +0 -33
- package/esm2020/lib/utils/index.mjs +0 -3
- package/esm2020/lib/utils/ui-template.utils.mjs +0 -13
- package/lib/services/context-api.service.d.ts +0 -11
- package/lib/services/quote-api.service.d.ts +0 -22
- package/lib/services/rlm-quote-api.service.d.ts +0 -11
- package/lib/utils/index.d.ts +0 -2
- /package/{lib → src/lib}/services/account-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/auth.service.d.ts +0 -0
- /package/{lib → src/lib}/services/catalog-admin-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/catalog-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/configuration-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/configuration-settings-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/contracted-price-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/delta-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/document-attachment-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/endpoints-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/flow-state-api.d.ts +0 -0
- /package/{lib → src/lib}/services/flows-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/guided-sellings-admin-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/guided-sellings-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/offers-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/org-info-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/picklists-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/portals-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/price-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/product-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/product-model-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/promotions-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/ramp-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/rebate-program-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/rebate-type-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/salesforce-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/sandbox-manager-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/shopping-cart-settings-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/stateful-configuration-api.d.ts +0 -0
- /package/{lib → src/lib}/services/veloce-objects-api.service.d.ts +0 -0
- /package/{lib → src/lib}/types/attachment.types.d.ts +0 -0
- /package/{lib → src/lib}/types/auth.types.d.ts +0 -0
- /package/{lib → src/lib}/types/clone-request.types.d.ts +0 -0
- /package/{lib → src/lib}/types/delta-request.types.d.ts +0 -0
- /package/{lib → src/lib}/types/dto/configuration-settings-dto.types.d.ts +0 -0
- /package/{lib → src/lib}/types/dto/offers-dto.types.d.ts +0 -0
- /package/{lib → src/lib}/types/index.d.ts +0 -0
- /package/{lib → src/lib}/types/org-info.types.d.ts +0 -0
- /package/{lib → src/lib}/types/price.types.d.ts +0 -0
- /package/{lib → src/lib}/types/quote.types.d.ts +0 -0
- /package/{lib → src/lib}/types/ramp-request.types.d.ts +0 -0
- /package/{lib → src/lib}/types/search-request.types.d.ts +0 -0
- /package/{lib → src/lib}/types/stateful-configuration.types.d.ts +0 -0
- /package/{lib → src/lib}/utils/canvas.utils.d.ts +0 -0
- /package/{lib → v2}/services/configuration-processors-api.service.d.ts +0 -0
- /package/{lib → v2}/services/ui-templates-api.service.d.ts +0 -0
- /package/{lib → v2}/types/dto/ui-template-dto.types.d.ts +0 -0
- /package/{lib → v2}/utils/ui-template.utils.d.ts +0 -0
@@ -2,13 +2,13 @@ import * as i1$1 from '@angular/common/http';
|
|
2
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
|
+
import { ApiV2Module } from '@veloceapps/api/v2';
|
5
6
|
import * as i1 from '@veloceapps/core';
|
6
|
-
import { uiDefinitionFromDTO, DomainComputation,
|
7
|
-
import { noop, throwError, switchMap, of, map as map$1, from, catchError as catchError$1
|
7
|
+
import { uiDefinitionFromDTO, DomainComputation, Expression, Operator, isApexError, isCanvasError, ModelTranslatorUtils, EntityUtil, parseJsonSafely, BaseHttpService, XrayService } from '@veloceapps/core';
|
8
|
+
import { noop, throwError, switchMap, of, map as map$1, from, catchError as catchError$1 } from 'rxjs';
|
8
9
|
import { map, catchError, tap } from 'rxjs/operators';
|
9
10
|
import * as i1$2 from 'primeng/api';
|
10
|
-
import { isArray
|
11
|
-
import { __rest } from 'tslib';
|
11
|
+
import { isArray } from 'lodash';
|
12
12
|
|
13
13
|
class AccountApiService {
|
14
14
|
constructor(httpService) {
|
@@ -454,41 +454,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
454
454
|
type: Injectable
|
455
455
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
456
456
|
|
457
|
-
class ConfigurationProcessorsApiService {
|
458
|
-
constructor(baseHttpService) {
|
459
|
-
this.baseHttpService = baseHttpService;
|
460
|
-
this.serviceUrl = '/configuration/processors/owners';
|
461
|
-
this.fetchConfigurationProcessors$ = (ownerId) => {
|
462
|
-
return this.baseHttpService.api({ url: `${this.serviceUrl}/${ownerId}` });
|
463
|
-
};
|
464
|
-
this.createConfigurationProcessors$ = (configurationProcessor) => {
|
465
|
-
return this.baseHttpService.api({
|
466
|
-
method: 'post',
|
467
|
-
url: `${this.serviceUrl}/${configurationProcessor.ownerId}`,
|
468
|
-
body: configurationProcessor,
|
469
|
-
});
|
470
|
-
};
|
471
|
-
this.updateConfigurationProcessors$ = (configurationProcessor) => {
|
472
|
-
return this.baseHttpService.api({
|
473
|
-
method: 'put',
|
474
|
-
url: `${this.serviceUrl}/${configurationProcessor.ownerId}/${configurationProcessor.id}`,
|
475
|
-
body: configurationProcessor,
|
476
|
-
});
|
477
|
-
};
|
478
|
-
this.deleteConfigurationProcessors$ = (configurationProcessor) => {
|
479
|
-
return this.baseHttpService.api({
|
480
|
-
method: 'delete',
|
481
|
-
url: `${this.serviceUrl}/${configurationProcessor.ownerId}/${configurationProcessor.id}`,
|
482
|
-
});
|
483
|
-
};
|
484
|
-
}
|
485
|
-
}
|
486
|
-
ConfigurationProcessorsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationProcessorsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
487
|
-
ConfigurationProcessorsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationProcessorsApiService });
|
488
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationProcessorsApiService, decorators: [{
|
489
|
-
type: Injectable
|
490
|
-
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
491
|
-
|
492
457
|
class ConfigurationSettingsDTO {
|
493
458
|
static fromDTO(dto, key) {
|
494
459
|
return {
|
@@ -564,28 +529,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
564
529
|
type: Injectable
|
565
530
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: i1$2.MessageService }]; } });
|
566
531
|
|
567
|
-
class ContextApiService {
|
568
|
-
constructor(httpService) {
|
569
|
-
this.httpService = httpService;
|
570
|
-
this.SERVICE_URL = '/context';
|
571
|
-
}
|
572
|
-
getContext(headerId, mode) {
|
573
|
-
return this.httpService.api({
|
574
|
-
method: 'post',
|
575
|
-
body: {
|
576
|
-
headerId: headerId,
|
577
|
-
contextMode: ConfigurationContextMode[mode],
|
578
|
-
},
|
579
|
-
url: `${this.SERVICE_URL}`,
|
580
|
-
});
|
581
|
-
}
|
582
|
-
}
|
583
|
-
ContextApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContextApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
584
|
-
ContextApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContextApiService });
|
585
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContextApiService, decorators: [{
|
586
|
-
type: Injectable
|
587
|
-
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
588
|
-
|
589
532
|
class ContractedPriceApiService {
|
590
533
|
constructor(baseHttpService) {
|
591
534
|
this.baseHttpService = baseHttpService;
|
@@ -1356,113 +1299,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
1356
1299
|
type: Injectable
|
1357
1300
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1358
1301
|
|
1359
|
-
class ProceduresApiService {
|
1360
|
-
constructor(baseHttpService) {
|
1361
|
-
this.baseHttpService = baseHttpService;
|
1362
|
-
this.ADMIN_SERVICE_URL = '/admin/procedures';
|
1363
|
-
this.SERVICE_URL = '/procedures';
|
1364
|
-
this.fetchProcedures$ = () => {
|
1365
|
-
return this.searchProcedures$(new Expression(), 0, 100);
|
1366
|
-
};
|
1367
|
-
this.searchProcedures$ = (expression, skip, count) => {
|
1368
|
-
let params = new HttpParams();
|
1369
|
-
params = params.set('skip', '' + skip);
|
1370
|
-
params = params.set('count', '' + count);
|
1371
|
-
return this.baseHttpService.api({
|
1372
|
-
method: 'post',
|
1373
|
-
url: `${this.ADMIN_SERVICE_URL}/search`,
|
1374
|
-
params,
|
1375
|
-
body: expression,
|
1376
|
-
});
|
1377
|
-
};
|
1378
|
-
this.createProcedure$ = (newProcedure) => {
|
1379
|
-
return this.baseHttpService.api({
|
1380
|
-
url: `${this.ADMIN_SERVICE_URL}`,
|
1381
|
-
method: 'post',
|
1382
|
-
body: newProcedure,
|
1383
|
-
});
|
1384
|
-
};
|
1385
|
-
this.updateProcedure$ = (procedure) => {
|
1386
|
-
return this.baseHttpService.api({
|
1387
|
-
url: `${this.ADMIN_SERVICE_URL}/${procedure.id}`,
|
1388
|
-
method: 'put',
|
1389
|
-
body: procedure,
|
1390
|
-
});
|
1391
|
-
};
|
1392
|
-
this.duplicateProcedure$ = (body) => {
|
1393
|
-
return this.baseHttpService
|
1394
|
-
.api({
|
1395
|
-
url: `${this.ADMIN_SERVICE_URL}/${body.id}/clone`,
|
1396
|
-
method: 'post',
|
1397
|
-
body,
|
1398
|
-
})
|
1399
|
-
.pipe(map(response => response.clonedRecordId));
|
1400
|
-
};
|
1401
|
-
this.removeProcedure$ = (id) => {
|
1402
|
-
return this.baseHttpService.api({
|
1403
|
-
url: `${this.ADMIN_SERVICE_URL}/${id}`,
|
1404
|
-
method: 'delete',
|
1405
|
-
});
|
1406
|
-
};
|
1407
|
-
this.restoreProcedure$ = (id) => {
|
1408
|
-
return this.baseHttpService.api({
|
1409
|
-
url: `${this.ADMIN_SERVICE_URL}/${id}/restore`,
|
1410
|
-
method: 'patch',
|
1411
|
-
});
|
1412
|
-
};
|
1413
|
-
}
|
1414
|
-
fetchProcedure$(id) {
|
1415
|
-
return this.baseHttpService.api({
|
1416
|
-
url: `${this.ADMIN_SERVICE_URL}/${id}`,
|
1417
|
-
method: 'get',
|
1418
|
-
});
|
1419
|
-
}
|
1420
|
-
execute$(body) {
|
1421
|
-
return this.baseHttpService.api({
|
1422
|
-
url: `${this.SERVICE_URL}/execute`,
|
1423
|
-
method: 'post',
|
1424
|
-
body,
|
1425
|
-
});
|
1426
|
-
}
|
1427
|
-
catalogExecute$(body) {
|
1428
|
-
return this.baseHttpService.api({
|
1429
|
-
url: `${this.SERVICE_URL}/catalog/execute`,
|
1430
|
-
method: 'post',
|
1431
|
-
body,
|
1432
|
-
});
|
1433
|
-
}
|
1434
|
-
rlmExecute$(body) {
|
1435
|
-
return this.baseHttpService.api({
|
1436
|
-
url: `${this.SERVICE_URL}/rlm/execute`,
|
1437
|
-
method: 'post',
|
1438
|
-
body,
|
1439
|
-
});
|
1440
|
-
}
|
1441
|
-
/**
|
1442
|
-
* Run active procedure against QuoteDraft
|
1443
|
-
* @param body
|
1444
|
-
* @returns
|
1445
|
-
*/
|
1446
|
-
apply$(body) {
|
1447
|
-
return this.baseHttpService.api({
|
1448
|
-
url: `${this.SERVICE_URL}/apply`,
|
1449
|
-
method: 'post',
|
1450
|
-
body,
|
1451
|
-
});
|
1452
|
-
}
|
1453
|
-
fetchDefaultPricingSteps$() {
|
1454
|
-
return this.baseHttpService.api({
|
1455
|
-
url: `${this.ADMIN_SERVICE_URL}/pricing-steps`,
|
1456
|
-
method: 'get',
|
1457
|
-
});
|
1458
|
-
}
|
1459
|
-
}
|
1460
|
-
ProceduresApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProceduresApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1461
|
-
ProceduresApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProceduresApiService });
|
1462
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProceduresApiService, decorators: [{
|
1463
|
-
type: Injectable
|
1464
|
-
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1465
|
-
|
1466
1302
|
class ProductApiService {
|
1467
1303
|
constructor(baseHttpService) {
|
1468
1304
|
this.baseHttpService = baseHttpService;
|
@@ -1892,44 +1728,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
1892
1728
|
type: Injectable
|
1893
1729
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1894
1730
|
|
1895
|
-
class QuoteApiService {
|
1896
|
-
constructor(httpService) {
|
1897
|
-
this.httpService = httpService;
|
1898
|
-
this.SERVICE_URL = '/quotes';
|
1899
|
-
}
|
1900
|
-
/**
|
1901
|
-
* This endpoint doesn't include orders and assets
|
1902
|
-
* @param objectId quoteId | accountId | opportunityId | orderId
|
1903
|
-
* @param params Query params
|
1904
|
-
* @param options Request options
|
1905
|
-
*/
|
1906
|
-
getQuoteState(objectId, params, options) {
|
1907
|
-
return this.httpService.api(Object.assign({ method: 'get', url: `/v2${this.SERVICE_URL}/${objectId}`, params }, options));
|
1908
|
-
}
|
1909
|
-
upsertQuote(request, options) {
|
1910
|
-
return this.httpService.api(Object.assign({ method: 'post', url: `${this.SERVICE_URL}`, body: request }, options));
|
1911
|
-
}
|
1912
|
-
submitQuote(request, options) {
|
1913
|
-
return this.httpService.api(Object.assign({ method: 'post', url: `${this.SERVICE_URL}/submit`, body: request }, options));
|
1914
|
-
}
|
1915
|
-
attachDocument(id, documentName, data) {
|
1916
|
-
const formData = new FormData();
|
1917
|
-
const blob = new Blob([data]);
|
1918
|
-
formData.append('file', blob, documentName);
|
1919
|
-
return this.httpService.upload({
|
1920
|
-
url: `${this.SERVICE_URL}/${id}/attach-document`,
|
1921
|
-
responseType: 'arraybuffer',
|
1922
|
-
method: 'post',
|
1923
|
-
body: formData,
|
1924
|
-
});
|
1925
|
-
}
|
1926
|
-
}
|
1927
|
-
QuoteApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: QuoteApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1928
|
-
QuoteApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: QuoteApiService });
|
1929
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: QuoteApiService, decorators: [{
|
1930
|
-
type: Injectable
|
1931
|
-
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1932
|
-
|
1933
1731
|
class RampApiService {
|
1934
1732
|
constructor(httpService) {
|
1935
1733
|
this.httpService = httpService;
|
@@ -2074,234 +1872,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
2074
1872
|
type: Injectable
|
2075
1873
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2076
1874
|
|
2077
|
-
class RlmApiService {
|
2078
|
-
constructor(baseHttpService) {
|
2079
|
-
this.baseHttpService = baseHttpService;
|
2080
|
-
this.serviceUrl = '/rlm';
|
2081
|
-
}
|
2082
|
-
fetchContextDefinitions$() {
|
2083
|
-
return this.baseHttpService
|
2084
|
-
.api({ url: `${this.serviceUrl}/context`, skipErrorHandler: true })
|
2085
|
-
.pipe(catchError(() => {
|
2086
|
-
return of([]);
|
2087
|
-
}));
|
2088
|
-
}
|
2089
|
-
fetchContextMappings$(id) {
|
2090
|
-
return this.baseHttpService.api({ url: `${this.serviceUrl}/context/${id}/mappings` });
|
2091
|
-
}
|
2092
|
-
fetchContextDefinitionStructure$(id) {
|
2093
|
-
return this.baseHttpService
|
2094
|
-
.api({
|
2095
|
-
url: `${this.serviceUrl}/context/${id}/structure/details`,
|
2096
|
-
skipErrorHandler: true,
|
2097
|
-
})
|
2098
|
-
.pipe(catchError(() => {
|
2099
|
-
return of([]);
|
2100
|
-
}), map(objects => {
|
2101
|
-
return objects.map(object => {
|
2102
|
-
var _a, _b;
|
2103
|
-
const tag = (_b = (_a = object.tags) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.title;
|
2104
|
-
const objectAttributes = object.attributes || [];
|
2105
|
-
return {
|
2106
|
-
id: object.id,
|
2107
|
-
title: tag || object.title,
|
2108
|
-
attributes: objectAttributes.map(attribute => {
|
2109
|
-
var _a, _b;
|
2110
|
-
const tag = (_b = (_a = attribute.tags) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.title;
|
2111
|
-
return {
|
2112
|
-
title: tag || attribute.title,
|
2113
|
-
fieldType: attribute.fieldType,
|
2114
|
-
dataType: attribute.dataType,
|
2115
|
-
};
|
2116
|
-
}),
|
2117
|
-
};
|
2118
|
-
});
|
2119
|
-
}));
|
2120
|
-
}
|
2121
|
-
fetchRlmProcedures(contextDefinitionId) {
|
2122
|
-
const params = {};
|
2123
|
-
if (contextDefinitionId) {
|
2124
|
-
params['contextDefinitionId'] = contextDefinitionId;
|
2125
|
-
}
|
2126
|
-
return this.baseHttpService.api({
|
2127
|
-
url: `${this.serviceUrl}/procedures`,
|
2128
|
-
params,
|
2129
|
-
});
|
2130
|
-
}
|
2131
|
-
}
|
2132
|
-
RlmApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RlmApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2133
|
-
RlmApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RlmApiService });
|
2134
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RlmApiService, decorators: [{
|
2135
|
-
type: Injectable
|
2136
|
-
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2137
|
-
|
2138
|
-
class RlmQuoteApiService {
|
2139
|
-
constructor(httpService) {
|
2140
|
-
this.httpService = httpService;
|
2141
|
-
this.SERVICE_URL = '/quotes/rlm';
|
2142
|
-
}
|
2143
|
-
getQuote(mappingType, objectId, contextMappingId, options) {
|
2144
|
-
const params = { mappingType };
|
2145
|
-
if (contextMappingId) {
|
2146
|
-
params['contextMappingId'] = contextMappingId;
|
2147
|
-
}
|
2148
|
-
return this.httpService.api(Object.assign({ method: 'get', url: `${this.SERVICE_URL}/${objectId}`, params }, options));
|
2149
|
-
}
|
2150
|
-
}
|
2151
|
-
RlmQuoteApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RlmQuoteApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2152
|
-
RlmQuoteApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RlmQuoteApiService });
|
2153
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RlmQuoteApiService, decorators: [{
|
2154
|
-
type: Injectable
|
2155
|
-
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2156
|
-
|
2157
|
-
class RuleGroupsApiService {
|
2158
|
-
constructor(baseHttpService) {
|
2159
|
-
this.baseHttpService = baseHttpService;
|
2160
|
-
this.serviceUrl = '/admin/rule-groups';
|
2161
|
-
this.fetchRuleGroups$ = () => {
|
2162
|
-
return this.searchRuleGroups$(new Expression(), 0, 100);
|
2163
|
-
};
|
2164
|
-
this.searchRuleGroups$ = (expression, skip, count) => {
|
2165
|
-
let params = new HttpParams();
|
2166
|
-
params = params.set('skip', '' + skip);
|
2167
|
-
params = params.set('count', '' + count);
|
2168
|
-
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
2169
|
-
};
|
2170
|
-
this.createRuleGroup$ = (ruleGroup) => {
|
2171
|
-
return this.baseHttpService.api({
|
2172
|
-
url: `${this.serviceUrl}`,
|
2173
|
-
method: 'post',
|
2174
|
-
body: ruleGroup,
|
2175
|
-
});
|
2176
|
-
};
|
2177
|
-
this.updateRuleGroup$ = (ruleGroup) => {
|
2178
|
-
return this.baseHttpService.api({
|
2179
|
-
url: `${this.serviceUrl}/${ruleGroup.id}`,
|
2180
|
-
method: 'post',
|
2181
|
-
body: ruleGroup,
|
2182
|
-
});
|
2183
|
-
};
|
2184
|
-
this.duplicateRuleGroup$ = (body) => {
|
2185
|
-
return this.baseHttpService
|
2186
|
-
.api({
|
2187
|
-
url: `${this.serviceUrl}/${body.id}/clone`,
|
2188
|
-
method: 'post',
|
2189
|
-
body,
|
2190
|
-
})
|
2191
|
-
.pipe(map$1(response => response.clonedRecordId));
|
2192
|
-
};
|
2193
|
-
this.removeRuleGroup$ = (id) => {
|
2194
|
-
return this.baseHttpService.api({
|
2195
|
-
url: `${this.serviceUrl}/${id}`,
|
2196
|
-
method: 'delete',
|
2197
|
-
});
|
2198
|
-
};
|
2199
|
-
this.restoreRuleGroup$ = (id) => {
|
2200
|
-
return this.baseHttpService.api({
|
2201
|
-
url: `${this.serviceUrl}/${id}/restore`,
|
2202
|
-
method: 'patch',
|
2203
|
-
});
|
2204
|
-
};
|
2205
|
-
}
|
2206
|
-
}
|
2207
|
-
RuleGroupsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RuleGroupsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2208
|
-
RuleGroupsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RuleGroupsApiService });
|
2209
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RuleGroupsApiService, decorators: [{
|
2210
|
-
type: Injectable
|
2211
|
-
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2212
|
-
|
2213
|
-
class RulesApiService {
|
2214
|
-
constructor(baseHttpService) {
|
2215
|
-
this.baseHttpService = baseHttpService;
|
2216
|
-
this.serviceUrl = '/admin/rules';
|
2217
|
-
this.fetchRules$ = () => {
|
2218
|
-
return this.searchRules$(new Expression(), 0, 100);
|
2219
|
-
};
|
2220
|
-
this.searchRules$ = (expression, skip, count) => {
|
2221
|
-
let params = new HttpParams();
|
2222
|
-
if (typeof skip === 'number') {
|
2223
|
-
params = params.set('skip', '' + skip);
|
2224
|
-
}
|
2225
|
-
if (typeof count === 'number') {
|
2226
|
-
params = params.set('count', '' + count);
|
2227
|
-
}
|
2228
|
-
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
2229
|
-
};
|
2230
|
-
this.createRule$ = (rule) => {
|
2231
|
-
return this.baseHttpService.api({
|
2232
|
-
url: `${this.serviceUrl}`,
|
2233
|
-
method: 'post',
|
2234
|
-
body: rule,
|
2235
|
-
});
|
2236
|
-
};
|
2237
|
-
this.updateRule$ = (rule) => {
|
2238
|
-
return this.baseHttpService.api({
|
2239
|
-
url: `${this.serviceUrl}/${rule.id}`,
|
2240
|
-
method: 'put',
|
2241
|
-
body: rule,
|
2242
|
-
});
|
2243
|
-
};
|
2244
|
-
this.duplicateRule$ = (body) => {
|
2245
|
-
return this.baseHttpService
|
2246
|
-
.api({
|
2247
|
-
url: `${this.serviceUrl}/${body.id}/clone`,
|
2248
|
-
method: 'post',
|
2249
|
-
body,
|
2250
|
-
})
|
2251
|
-
.pipe(map(response => response.clonedRecordId));
|
2252
|
-
};
|
2253
|
-
this.removeRule$ = (id) => {
|
2254
|
-
return this.baseHttpService.api({
|
2255
|
-
url: `${this.serviceUrl}/${id}`,
|
2256
|
-
method: 'delete',
|
2257
|
-
});
|
2258
|
-
};
|
2259
|
-
this.restoreRule$ = (id) => {
|
2260
|
-
return this.baseHttpService.api({
|
2261
|
-
url: `${this.serviceUrl}/${id}/restore`,
|
2262
|
-
method: 'patch',
|
2263
|
-
});
|
2264
|
-
};
|
2265
|
-
}
|
2266
|
-
fetchRule$(id) {
|
2267
|
-
return this.baseHttpService.api({
|
2268
|
-
url: `${this.serviceUrl}/${id}`,
|
2269
|
-
method: 'get',
|
2270
|
-
});
|
2271
|
-
}
|
2272
|
-
fetchHeaderFields$() {
|
2273
|
-
return this.baseHttpService.api({
|
2274
|
-
url: `${this.serviceUrl}/describe/Header`,
|
2275
|
-
method: 'get',
|
2276
|
-
});
|
2277
|
-
}
|
2278
|
-
execute$(body) {
|
2279
|
-
const url = this.getExecuteRuleUrl(body.rule.ruleGroupType);
|
2280
|
-
return this.baseHttpService.api({
|
2281
|
-
url,
|
2282
|
-
method: 'post',
|
2283
|
-
body,
|
2284
|
-
});
|
2285
|
-
}
|
2286
|
-
getExecuteRuleUrl(ruleGroupType) {
|
2287
|
-
if (ruleGroupType === RuleGroupTypes.eligibility) {
|
2288
|
-
return '/rules/eligibility/execute';
|
2289
|
-
}
|
2290
|
-
if (ruleGroupType === RuleGroupTypes.catalog) {
|
2291
|
-
return '/rules/catalog/execute';
|
2292
|
-
}
|
2293
|
-
if (ruleGroupType === RuleGroupTypes.rlmContextBased) {
|
2294
|
-
return '/rules/rlm/execute';
|
2295
|
-
}
|
2296
|
-
return '/rules/execute';
|
2297
|
-
}
|
2298
|
-
}
|
2299
|
-
RulesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RulesApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2300
|
-
RulesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RulesApiService });
|
2301
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RulesApiService, decorators: [{
|
2302
|
-
type: Injectable
|
2303
|
-
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2304
|
-
|
2305
1875
|
class SalesforceApiService {
|
2306
1876
|
constructor(httpService) {
|
2307
1877
|
this.httpService = httpService;
|
@@ -2448,84 +2018,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
2448
2018
|
type: Injectable
|
2449
2019
|
}], ctorParameters: function () { return [{ type: i1$2.MessageService }]; } });
|
2450
2020
|
|
2451
|
-
class ScriptsApiService {
|
2452
|
-
constructor(baseHttpService) {
|
2453
|
-
this.baseHttpService = baseHttpService;
|
2454
|
-
this.serviceUrl = '/admin/scripts';
|
2455
|
-
this.fetchScripts$ = () => {
|
2456
|
-
return this.baseHttpService.api({ url: `${this.serviceUrl}` });
|
2457
|
-
};
|
2458
|
-
this.searchScripts$ = (expression, skip, count) => {
|
2459
|
-
let params = new HttpParams();
|
2460
|
-
if (typeof skip === 'number') {
|
2461
|
-
params = params.set('skip', '' + skip);
|
2462
|
-
}
|
2463
|
-
if (typeof count === 'number') {
|
2464
|
-
params = params.set('count', '' + count);
|
2465
|
-
}
|
2466
|
-
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
2467
|
-
};
|
2468
|
-
this.fetchScript$ = (id) => {
|
2469
|
-
return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
|
2470
|
-
};
|
2471
|
-
this.createScript$ = (script) => {
|
2472
|
-
return this.baseHttpService.api({
|
2473
|
-
url: `${this.serviceUrl}`,
|
2474
|
-
method: 'post',
|
2475
|
-
body: script,
|
2476
|
-
});
|
2477
|
-
};
|
2478
|
-
this.updateScriptMeta$ = (script) => {
|
2479
|
-
return this.baseHttpService.api({
|
2480
|
-
url: `${this.serviceUrl}/${script.id}`,
|
2481
|
-
method: 'put',
|
2482
|
-
body: script,
|
2483
|
-
});
|
2484
|
-
};
|
2485
|
-
this.updateScriptDetails$ = (script) => {
|
2486
|
-
return this.baseHttpService.api({
|
2487
|
-
url: `${this.serviceUrl}/${script.id}`,
|
2488
|
-
method: 'put',
|
2489
|
-
body: script,
|
2490
|
-
});
|
2491
|
-
};
|
2492
|
-
this.cloneScript$ = (cloneRequest) => {
|
2493
|
-
return this.baseHttpService
|
2494
|
-
.api({
|
2495
|
-
url: `${this.serviceUrl}/${cloneRequest.id}/clone`,
|
2496
|
-
method: 'post',
|
2497
|
-
body: cloneRequest,
|
2498
|
-
})
|
2499
|
-
.pipe(map(response => response.clonedRecordId));
|
2500
|
-
};
|
2501
|
-
this.removeScript$ = (id) => {
|
2502
|
-
return this.baseHttpService.api({
|
2503
|
-
url: `${this.serviceUrl}/${id}`,
|
2504
|
-
method: 'delete',
|
2505
|
-
});
|
2506
|
-
};
|
2507
|
-
this.restoreScript$ = (id) => {
|
2508
|
-
return this.baseHttpService.api({
|
2509
|
-
url: `${this.serviceUrl}/${id}/restore`,
|
2510
|
-
method: 'patch',
|
2511
|
-
});
|
2512
|
-
};
|
2513
|
-
this.execute$ = (body) => {
|
2514
|
-
return this.baseHttpService.api({
|
2515
|
-
url: `/scripts/execute`,
|
2516
|
-
method: 'post',
|
2517
|
-
body,
|
2518
|
-
errorHandler: () => null,
|
2519
|
-
});
|
2520
|
-
};
|
2521
|
-
}
|
2522
|
-
}
|
2523
|
-
ScriptsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ScriptsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2524
|
-
ScriptsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ScriptsApiService });
|
2525
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ScriptsApiService, decorators: [{
|
2526
|
-
type: Injectable
|
2527
|
-
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2528
|
-
|
2529
2021
|
class ShoppingCartSettingsApiService {
|
2530
2022
|
constructor(configurationSettingsApiService) {
|
2531
2023
|
this.configurationSettingsApiService = configurationSettingsApiService;
|
@@ -2597,407 +2089,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
2597
2089
|
type: Injectable
|
2598
2090
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2599
2091
|
|
2600
|
-
class UIDefinitionsApiService {
|
2601
|
-
constructor(baseHttpService) {
|
2602
|
-
this.baseHttpService = baseHttpService;
|
2603
|
-
this.serviceUrl = '/uidefinitions';
|
2604
|
-
}
|
2605
|
-
fetch$(modelId, version) {
|
2606
|
-
const serviceUrl = this.getServiceUrl(modelId);
|
2607
|
-
let params = new HttpParams();
|
2608
|
-
if (version != null) {
|
2609
|
-
params = params.set('modelVersion', version);
|
2610
|
-
}
|
2611
|
-
return this.baseHttpService
|
2612
|
-
.api({
|
2613
|
-
method: 'get',
|
2614
|
-
url: serviceUrl,
|
2615
|
-
params: params,
|
2616
|
-
})
|
2617
|
-
.pipe(map$1(containers => containers.map(uiDefinitionFromDTO)));
|
2618
|
-
}
|
2619
|
-
create$(modelId, uiDefinitionContainer) {
|
2620
|
-
var _a, _b;
|
2621
|
-
const serviceUrl = this.getServiceUrl(modelId);
|
2622
|
-
const dto = Object.assign(Object.assign({}, omit(uiDefinitionContainer, 'source')), { name: uiDefinitionContainer.source.name, modelId: uiDefinitionContainer.source.modelId, templateName: (_a = uiDefinitionContainer.source.uiTemplateData) === null || _a === void 0 ? void 0 : _a.TEMPLATE_NAME, rootType: (_b = uiDefinitionContainer.source.uiTemplateData) === null || _b === void 0 ? void 0 : _b.ROOT_TYPE, defaultFlag: uiDefinitionContainer.source.primary, sourceBlob: JSON.stringify(uiDefinitionContainer.source) });
|
2623
|
-
return this.baseHttpService
|
2624
|
-
.api({
|
2625
|
-
method: 'post',
|
2626
|
-
url: serviceUrl,
|
2627
|
-
body: dto,
|
2628
|
-
})
|
2629
|
-
.pipe(map$1(container => uiDefinitionFromDTO(container)));
|
2630
|
-
}
|
2631
|
-
get$(modelId, uiDefinitionId) {
|
2632
|
-
const serviceUrl = this.getServiceUrl(modelId);
|
2633
|
-
return this.baseHttpService
|
2634
|
-
.api({
|
2635
|
-
method: 'get',
|
2636
|
-
url: `${serviceUrl}/${uiDefinitionId}`,
|
2637
|
-
})
|
2638
|
-
.pipe(map$1(container => uiDefinitionFromDTO(Object.assign(Object.assign({}, container), { id: uiDefinitionId }))));
|
2639
|
-
}
|
2640
|
-
update$(uiDefinitionContainer) {
|
2641
|
-
const serviceUrl = this.getServiceUrl(uiDefinitionContainer.modelId);
|
2642
|
-
const dto = uiDefinitionToDTO(uiDefinitionContainer);
|
2643
|
-
return this.baseHttpService
|
2644
|
-
.api({
|
2645
|
-
method: 'put',
|
2646
|
-
url: `${serviceUrl}/${uiDefinitionContainer.id}`,
|
2647
|
-
body: dto,
|
2648
|
-
})
|
2649
|
-
.pipe(map$1(container => uiDefinitionFromDTO(container)));
|
2650
|
-
}
|
2651
|
-
delete$(uiDefinitionContainer) {
|
2652
|
-
const serviceUrl = this.getServiceUrl(uiDefinitionContainer.modelId);
|
2653
|
-
return this.baseHttpService.api({
|
2654
|
-
method: 'delete',
|
2655
|
-
url: `${serviceUrl}/${uiDefinitionContainer.id}`,
|
2656
|
-
});
|
2657
|
-
}
|
2658
|
-
getServiceUrl(modelId) {
|
2659
|
-
return `/models/${modelId}/uidefinitions`;
|
2660
|
-
}
|
2661
|
-
fetchUIDefinitions$() {
|
2662
|
-
return this.baseHttpService.api({
|
2663
|
-
method: 'get',
|
2664
|
-
url: this.serviceUrl,
|
2665
|
-
});
|
2666
|
-
}
|
2667
|
-
fetchUIDefinition$(id) {
|
2668
|
-
return this.baseHttpService
|
2669
|
-
.api({
|
2670
|
-
method: 'get',
|
2671
|
-
url: `${this.serviceUrl}/${id}`,
|
2672
|
-
})
|
2673
|
-
.pipe(map$1(container => uiDefinitionFromDTO(Object.assign(Object.assign({}, container), { id }))), map$1(uiDefinition => {
|
2674
|
-
const result = uiDefinition;
|
2675
|
-
if (!uiDefinition.modelId && uiDefinition.source.modelId) {
|
2676
|
-
result['modelId'] = uiDefinition.source.modelId;
|
2677
|
-
}
|
2678
|
-
return result;
|
2679
|
-
}));
|
2680
|
-
}
|
2681
|
-
createUIDefinition$(body) {
|
2682
|
-
return this.baseHttpService.api({
|
2683
|
-
method: 'post',
|
2684
|
-
url: this.serviceUrl,
|
2685
|
-
body,
|
2686
|
-
});
|
2687
|
-
}
|
2688
|
-
updateUIDefinition$(uiDefinition) {
|
2689
|
-
return this.baseHttpService.api({
|
2690
|
-
method: 'put',
|
2691
|
-
url: `${this.serviceUrl}/${uiDefinition.id}`,
|
2692
|
-
body: uiDefinition,
|
2693
|
-
});
|
2694
|
-
}
|
2695
|
-
deleteUIDefinition$(id) {
|
2696
|
-
return this.baseHttpService.api({
|
2697
|
-
method: 'delete',
|
2698
|
-
url: `${this.serviceUrl}/${id}`,
|
2699
|
-
});
|
2700
|
-
}
|
2701
|
-
}
|
2702
|
-
UIDefinitionsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UIDefinitionsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2703
|
-
UIDefinitionsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UIDefinitionsApiService });
|
2704
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UIDefinitionsApiService, decorators: [{
|
2705
|
-
type: Injectable
|
2706
|
-
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2707
|
-
|
2708
|
-
const fromUIComponentStoryDTO = (dto, attachments) => {
|
2709
|
-
return {
|
2710
|
-
id: dto.id,
|
2711
|
-
name: dto.name,
|
2712
|
-
uiComponentId: dto.uiComponentId,
|
2713
|
-
description: dto.description,
|
2714
|
-
section: attachments.json,
|
2715
|
-
template: attachments.html,
|
2716
|
-
script: attachments.js,
|
2717
|
-
styles: attachments.css,
|
2718
|
-
};
|
2719
|
-
};
|
2720
|
-
|
2721
|
-
class UITemplatesApiService {
|
2722
|
-
constructor(baseHttpService) {
|
2723
|
-
this.baseHttpService = baseHttpService;
|
2724
|
-
this.serviceUrl = '/uitemplates';
|
2725
|
-
this.fetchTemplates$ = (name) => {
|
2726
|
-
let params = new HttpParams();
|
2727
|
-
if (name) {
|
2728
|
-
params = params.append('name', name);
|
2729
|
-
}
|
2730
|
-
return this.baseHttpService.api({ url: `${this.serviceUrl}`, params });
|
2731
|
-
};
|
2732
|
-
this.createTemplate$ = (template) => {
|
2733
|
-
return this.baseHttpService.api({
|
2734
|
-
method: 'post',
|
2735
|
-
url: `${this.serviceUrl}`,
|
2736
|
-
body: template,
|
2737
|
-
});
|
2738
|
-
};
|
2739
|
-
this.updateTemplate$ = (template) => {
|
2740
|
-
return this.baseHttpService.api({
|
2741
|
-
method: 'put',
|
2742
|
-
url: `${this.serviceUrl}/${template.id}`,
|
2743
|
-
body: template,
|
2744
|
-
});
|
2745
|
-
};
|
2746
|
-
this.duplicateTemplate$ = (template, cloneRequest) => {
|
2747
|
-
return this.baseHttpService
|
2748
|
-
.api({
|
2749
|
-
url: `${this.serviceUrl}/${template.id}/clone`,
|
2750
|
-
method: 'post',
|
2751
|
-
body: cloneRequest,
|
2752
|
-
})
|
2753
|
-
.pipe(map$1(response => response.clonedRecordId));
|
2754
|
-
};
|
2755
|
-
this.removeTemplate$ = (id) => {
|
2756
|
-
return this.baseHttpService.api({
|
2757
|
-
method: 'delete',
|
2758
|
-
url: `${this.serviceUrl}/${id}`,
|
2759
|
-
});
|
2760
|
-
};
|
2761
|
-
this.restoreTemplate$ = (id) => {
|
2762
|
-
return this.baseHttpService.api({
|
2763
|
-
method: 'patch',
|
2764
|
-
url: `${this.serviceUrl}/${id}`,
|
2765
|
-
});
|
2766
|
-
};
|
2767
|
-
this.searchTemplates$ = (data) => {
|
2768
|
-
return this.baseHttpService.api({
|
2769
|
-
method: 'post',
|
2770
|
-
url: `${this.serviceUrl}/search`,
|
2771
|
-
params: data.params,
|
2772
|
-
body: data.expression,
|
2773
|
-
});
|
2774
|
-
};
|
2775
|
-
this.fetchComponents$ = (templateId, name) => {
|
2776
|
-
let params = new HttpParams();
|
2777
|
-
if (name) {
|
2778
|
-
params = params.append('name', name);
|
2779
|
-
}
|
2780
|
-
return this.baseHttpService.api({
|
2781
|
-
url: `${this.serviceUrl}/${templateId}/components`,
|
2782
|
-
params,
|
2783
|
-
});
|
2784
|
-
};
|
2785
|
-
this.fetchComponent$ = (templateId, componentId) => {
|
2786
|
-
return this.baseHttpService.api({
|
2787
|
-
url: `${this.serviceUrl}/${templateId}/components/${componentId}`,
|
2788
|
-
});
|
2789
|
-
};
|
2790
|
-
this.createComponent$ = (component) => {
|
2791
|
-
return this.baseHttpService.api({
|
2792
|
-
method: 'post',
|
2793
|
-
url: `${this.serviceUrl}/${component.uiTemplateId}/components`,
|
2794
|
-
body: component,
|
2795
|
-
});
|
2796
|
-
};
|
2797
|
-
this.updateComponent$ = (component) => {
|
2798
|
-
return this.baseHttpService.api({
|
2799
|
-
method: 'put',
|
2800
|
-
url: `${this.serviceUrl}/${component.uiTemplateId}/components/${component.id}`,
|
2801
|
-
body: component,
|
2802
|
-
});
|
2803
|
-
};
|
2804
|
-
this.duplicateComponent$ = (component, cloneRequest) => {
|
2805
|
-
return this.baseHttpService
|
2806
|
-
.api({
|
2807
|
-
url: `${this.serviceUrl}/${component.uiTemplateId}/components/${component.id}/clone`,
|
2808
|
-
method: 'post',
|
2809
|
-
body: cloneRequest,
|
2810
|
-
})
|
2811
|
-
.pipe(map$1(response => response.clonedRecordId));
|
2812
|
-
};
|
2813
|
-
this.removeComponent$ = (templateId, componentId) => {
|
2814
|
-
return this.baseHttpService.api({
|
2815
|
-
method: 'delete',
|
2816
|
-
url: `${this.serviceUrl}/${templateId}/components/${componentId}`,
|
2817
|
-
});
|
2818
|
-
};
|
2819
|
-
this.restoreComponent$ = (templateId, componentId) => {
|
2820
|
-
return this.baseHttpService.api({
|
2821
|
-
method: 'patch',
|
2822
|
-
url: `${this.serviceUrl}/${templateId}/components/${componentId}`,
|
2823
|
-
});
|
2824
|
-
};
|
2825
|
-
this.searchComponents$ = (templateId, data) => {
|
2826
|
-
return this.baseHttpService.api({
|
2827
|
-
method: 'post',
|
2828
|
-
url: `${this.serviceUrl}/${templateId}/components/search`,
|
2829
|
-
params: data.params,
|
2830
|
-
body: data.expression,
|
2831
|
-
});
|
2832
|
-
};
|
2833
|
-
this.fetchStoryAttachment = (templateId, componentId, storyId, type) => {
|
2834
|
-
return this.baseHttpService
|
2835
|
-
.api({
|
2836
|
-
url: `${this.serviceUrl}/${templateId}/components/${componentId}/stories/${storyId}/attachments/${type}/file`,
|
2837
|
-
responseType: 'text',
|
2838
|
-
errorHandler: noop,
|
2839
|
-
})
|
2840
|
-
.pipe(catchError$1(() => of('')));
|
2841
|
-
};
|
2842
|
-
this.convertToComponentStory$ = (templateId, componentId, storyDto) => {
|
2843
|
-
return forkJoin([
|
2844
|
-
this.fetchStoryAttachment(templateId, componentId, storyDto.id, 'html'),
|
2845
|
-
this.fetchStoryAttachment(templateId, componentId, storyDto.id, 'js'),
|
2846
|
-
this.fetchStoryAttachment(templateId, componentId, storyDto.id, 'css'),
|
2847
|
-
this.fetchStoryAttachment(templateId, componentId, storyDto.id, 'json'),
|
2848
|
-
]).pipe(map$1(([html, js, css, json]) => ({ html, js, css, json })), map$1(attachments => fromUIComponentStoryDTO(storyDto, attachments)));
|
2849
|
-
};
|
2850
|
-
this.fetchStories$ = (templateId, componentId, name) => {
|
2851
|
-
let params = new HttpParams();
|
2852
|
-
if (name) {
|
2853
|
-
params = params.append('name', name);
|
2854
|
-
}
|
2855
|
-
return this.baseHttpService
|
2856
|
-
.api({
|
2857
|
-
url: `${this.serviceUrl}/${templateId}/components/${componentId}/stories`,
|
2858
|
-
params,
|
2859
|
-
})
|
2860
|
-
.pipe(switchMap(dtos => {
|
2861
|
-
if (!dtos.length) {
|
2862
|
-
return of([]);
|
2863
|
-
}
|
2864
|
-
return forkJoin(dtos.map(dto => this.convertToComponentStory$(templateId, componentId, dto)));
|
2865
|
-
}));
|
2866
|
-
};
|
2867
|
-
this.fetchStory$ = (templateId, componentId, storyId) => {
|
2868
|
-
return this.baseHttpService
|
2869
|
-
.api({
|
2870
|
-
url: `${this.serviceUrl}/${templateId}/components/${componentId}/stories/${storyId}`,
|
2871
|
-
})
|
2872
|
-
.pipe(switchMap(dto => this.convertToComponentStory$(templateId, componentId, dto)));
|
2873
|
-
};
|
2874
|
-
this.createComponentStory$ = (templateId, story) => {
|
2875
|
-
return this.baseHttpService.api({
|
2876
|
-
method: 'post',
|
2877
|
-
url: `${this.serviceUrl}/${templateId}/components/${story.uiComponentId}/stories`,
|
2878
|
-
body: story,
|
2879
|
-
});
|
2880
|
-
};
|
2881
|
-
this.updateComponentStory$ = (templateId, story) => {
|
2882
|
-
const { script, template, styles, section } = story, rest = __rest(story, ["script", "template", "styles", "section"]);
|
2883
|
-
return this.baseHttpService
|
2884
|
-
.api({
|
2885
|
-
method: 'put',
|
2886
|
-
url: `${this.serviceUrl}/${templateId}/components/${story.uiComponentId}/stories/${story.id}`,
|
2887
|
-
body: rest,
|
2888
|
-
})
|
2889
|
-
.pipe(map$1(dto => fromUIComponentStoryDTO(dto, { html: template, js: script, css: styles, json: section })));
|
2890
|
-
};
|
2891
|
-
this.duplicateComponentStory$ = (story, cloneRequest) => {
|
2892
|
-
return this.baseHttpService
|
2893
|
-
.api({
|
2894
|
-
url: `${this.serviceUrl}/${story.template}/components/${story.uiComponentId}/stories/${story.id}/clone`,
|
2895
|
-
method: 'post',
|
2896
|
-
body: cloneRequest,
|
2897
|
-
})
|
2898
|
-
.pipe(map$1(response => response.clonedRecordId));
|
2899
|
-
};
|
2900
|
-
this.deleteComponentStory$ = (templateId, componentId, storyId) => {
|
2901
|
-
return this.baseHttpService.api({
|
2902
|
-
method: 'delete',
|
2903
|
-
url: `${this.serviceUrl}/${templateId}/components/${componentId}/stories/${storyId}`,
|
2904
|
-
});
|
2905
|
-
};
|
2906
|
-
this.restoreComponentStory$ = (templateId, componentId, storyId) => {
|
2907
|
-
return this.baseHttpService.api({
|
2908
|
-
method: 'patch',
|
2909
|
-
url: `${this.serviceUrl}/${templateId}/components/${componentId}/stories/${storyId}`,
|
2910
|
-
});
|
2911
|
-
};
|
2912
|
-
this.uploadStoryAttachments$ = (templateId, componentId, storyId, attachments) => {
|
2913
|
-
const formData = new FormData();
|
2914
|
-
if (attachments.html != null) {
|
2915
|
-
formData.append('html', new Blob([attachments.html]), 'story-template.html');
|
2916
|
-
}
|
2917
|
-
if (attachments.css != null) {
|
2918
|
-
formData.append('css', new Blob([attachments.css]), 'story-styles.css');
|
2919
|
-
}
|
2920
|
-
if (attachments.js != null) {
|
2921
|
-
formData.append('js', new Blob([attachments.js]), 'story-script.js');
|
2922
|
-
}
|
2923
|
-
if (attachments.json != null) {
|
2924
|
-
formData.append('json', new Blob([attachments.json]), 'story-section.json');
|
2925
|
-
}
|
2926
|
-
return this.baseHttpService.upload({
|
2927
|
-
method: 'post',
|
2928
|
-
url: `${this.serviceUrl}/${templateId}/components/${componentId}/stories/${storyId}/attachments`,
|
2929
|
-
body: formData,
|
2930
|
-
});
|
2931
|
-
};
|
2932
|
-
this.fetchComponentAttachments$ = (templateId, component) => {
|
2933
|
-
return forkJoin([
|
2934
|
-
this.fetchComponentAttachmentFile$(templateId, component.id, 'html'),
|
2935
|
-
this.fetchComponentAttachmentFile$(templateId, component.id, 'js'),
|
2936
|
-
this.fetchComponentAttachmentFile$(templateId, component.id, 'css'),
|
2937
|
-
this.fetchComponentAttachmentFile$(templateId, component.id, 'json'),
|
2938
|
-
]).pipe(map$1(([html, js, css, json]) => ({ html, js, css, json })));
|
2939
|
-
};
|
2940
|
-
this.fetchComponentsAttachments$ = (templateId) => {
|
2941
|
-
return this.fetchComponents$(templateId).pipe(switchMap(components => {
|
2942
|
-
return forkJoin(components.map(component => this.fetchComponentAttachments$(templateId, component)));
|
2943
|
-
}));
|
2944
|
-
};
|
2945
|
-
this.fetchComponentAttachmentFile$ = (templateId, componentId, attachmentType) => {
|
2946
|
-
return this.baseHttpService
|
2947
|
-
.api({
|
2948
|
-
method: 'get',
|
2949
|
-
url: `${this.serviceUrl}/${templateId}/components/${componentId}/attachments/${attachmentType}/file`,
|
2950
|
-
responseType: 'text',
|
2951
|
-
errorHandler: noop,
|
2952
|
-
})
|
2953
|
-
.pipe(catchError$1(() => of('')));
|
2954
|
-
};
|
2955
|
-
this.uploadComponentAttachments$ = (templateId, componentId, attachments) => {
|
2956
|
-
const formData = new FormData();
|
2957
|
-
if (attachments.html != null) {
|
2958
|
-
formData.append('html', new Blob([attachments.html]), 'template.html');
|
2959
|
-
}
|
2960
|
-
if (attachments.css != null) {
|
2961
|
-
formData.append('css', new Blob([attachments.css]), 'styles.css');
|
2962
|
-
}
|
2963
|
-
if (attachments.js != null) {
|
2964
|
-
formData.append('js', new Blob([attachments.js]), 'script.js');
|
2965
|
-
}
|
2966
|
-
if (attachments.json != null) {
|
2967
|
-
formData.append('json', new Blob([attachments.json]), 'section.json');
|
2968
|
-
}
|
2969
|
-
return this.baseHttpService.upload({
|
2970
|
-
method: 'post',
|
2971
|
-
url: `${this.serviceUrl}/${templateId}/components/${componentId}/attachments`,
|
2972
|
-
body: formData,
|
2973
|
-
});
|
2974
|
-
};
|
2975
|
-
}
|
2976
|
-
getTemplateThumbnailUrl(templateId) {
|
2977
|
-
return `${this.serviceUrl}/${templateId}/thumbnail/file`;
|
2978
|
-
}
|
2979
|
-
attachTemplateThumbnail$(templateId, file) {
|
2980
|
-
const data = new FormData();
|
2981
|
-
data.append('thumb', file);
|
2982
|
-
return this.baseHttpService.upload({
|
2983
|
-
method: 'post',
|
2984
|
-
url: `${this.serviceUrl}/${templateId}/thumbnail`,
|
2985
|
-
body: data,
|
2986
|
-
});
|
2987
|
-
}
|
2988
|
-
removeTemplateThumbnail$(templateId) {
|
2989
|
-
return this.baseHttpService.api({
|
2990
|
-
method: 'delete',
|
2991
|
-
url: `${this.serviceUrl}/${templateId}/thumbnail`,
|
2992
|
-
});
|
2993
|
-
}
|
2994
|
-
}
|
2995
|
-
UITemplatesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UITemplatesApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2996
|
-
UITemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UITemplatesApiService });
|
2997
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UITemplatesApiService, decorators: [{
|
2998
|
-
type: Injectable
|
2999
|
-
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
3000
|
-
|
3001
2092
|
class VeloceObjectsApiService {
|
3002
2093
|
constructor(baseHttpService) {
|
3003
2094
|
this.baseHttpService = baseHttpService;
|
@@ -3086,24 +2177,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
3086
2177
|
class ApiModule {
|
3087
2178
|
}
|
3088
2179
|
ApiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
3089
|
-
ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, imports: [HttpClientModule] });
|
2180
|
+
ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, imports: [HttpClientModule, ApiV2Module] });
|
3090
2181
|
ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, providers: [
|
3091
2182
|
BaseHttpService,
|
3092
2183
|
XrayService,
|
3093
2184
|
ConfigurationApiService,
|
3094
2185
|
ConfigurationSettingsApiService,
|
3095
|
-
ContextApiService,
|
3096
2186
|
DocumentAttachmentApiService,
|
3097
2187
|
PriceApiService,
|
3098
2188
|
ProductModelApiService,
|
3099
|
-
ProceduresApiService,
|
3100
|
-
QuoteApiService,
|
3101
2189
|
RampApiService,
|
3102
2190
|
SalesforceApiService,
|
3103
|
-
UITemplatesApiService,
|
3104
|
-
ScriptsApiService,
|
3105
|
-
RulesApiService,
|
3106
|
-
RuleGroupsApiService,
|
3107
2191
|
FlowsApiService,
|
3108
2192
|
GuidedSellingsAdminApiService,
|
3109
2193
|
ShoppingCartSettingsApiService,
|
@@ -3117,7 +2201,6 @@ ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.
|
|
3117
2201
|
EndpointsApiService,
|
3118
2202
|
OrgInfoApiService,
|
3119
2203
|
OffersApiService,
|
3120
|
-
UIDefinitionsApiService,
|
3121
2204
|
VeloceObjectsApiService,
|
3122
2205
|
StatefulConfigurationApiService,
|
3123
2206
|
RebateProgramApiService,
|
@@ -3126,33 +2209,23 @@ ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.
|
|
3126
2209
|
VeloceAuthService,
|
3127
2210
|
ContractedPriceApiService,
|
3128
2211
|
PortalsApiService,
|
3129
|
-
ConfigurationProcessorsApiService,
|
3130
2212
|
FlowStateApiService,
|
3131
2213
|
SandboxManagerApiService,
|
3132
|
-
|
3133
|
-
RlmQuoteApiService,
|
3134
|
-
], imports: [HttpClientModule] });
|
2214
|
+
], imports: [HttpClientModule, ApiV2Module] });
|
3135
2215
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, decorators: [{
|
3136
2216
|
type: NgModule,
|
3137
2217
|
args: [{
|
3138
|
-
imports: [HttpClientModule],
|
2218
|
+
imports: [HttpClientModule, ApiV2Module],
|
3139
2219
|
providers: [
|
3140
2220
|
BaseHttpService,
|
3141
2221
|
XrayService,
|
3142
2222
|
ConfigurationApiService,
|
3143
2223
|
ConfigurationSettingsApiService,
|
3144
|
-
ContextApiService,
|
3145
2224
|
DocumentAttachmentApiService,
|
3146
2225
|
PriceApiService,
|
3147
2226
|
ProductModelApiService,
|
3148
|
-
ProceduresApiService,
|
3149
|
-
QuoteApiService,
|
3150
2227
|
RampApiService,
|
3151
2228
|
SalesforceApiService,
|
3152
|
-
UITemplatesApiService,
|
3153
|
-
ScriptsApiService,
|
3154
|
-
RulesApiService,
|
3155
|
-
RuleGroupsApiService,
|
3156
2229
|
FlowsApiService,
|
3157
2230
|
GuidedSellingsAdminApiService,
|
3158
2231
|
ShoppingCartSettingsApiService,
|
@@ -3166,7 +2239,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
3166
2239
|
EndpointsApiService,
|
3167
2240
|
OrgInfoApiService,
|
3168
2241
|
OffersApiService,
|
3169
|
-
UIDefinitionsApiService,
|
3170
2242
|
VeloceObjectsApiService,
|
3171
2243
|
StatefulConfigurationApiService,
|
3172
2244
|
RebateProgramApiService,
|
@@ -3175,11 +2247,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
3175
2247
|
VeloceAuthService,
|
3176
2248
|
ContractedPriceApiService,
|
3177
2249
|
PortalsApiService,
|
3178
|
-
ConfigurationProcessorsApiService,
|
3179
2250
|
FlowStateApiService,
|
3180
2251
|
SandboxManagerApiService,
|
3181
|
-
RlmApiService,
|
3182
|
-
RlmQuoteApiService,
|
3183
2252
|
],
|
3184
2253
|
}]
|
3185
2254
|
}] });
|
@@ -3188,5 +2257,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
3188
2257
|
* Generated bundle index. Do not edit.
|
3189
2258
|
*/
|
3190
2259
|
|
3191
|
-
export { AccountApiService, ApiModule, CatalogAdminApiService, CatalogApiService, ConfigurationApiService,
|
2260
|
+
export { AccountApiService, ApiModule, CatalogAdminApiService, CatalogApiService, ConfigurationApiService, ConfigurationSettingsApiService, ContractedPriceApiService, DeltaApiService, DocumentAttachmentApiService, EndpointsApiService, FlowStateApiService, FlowsApiService, GuidedSellingApiService, GuidedSellingsAdminApiService, OffersApiService, OrgInfoApiService, PicklistsApiService, PortalsApiService, PriceApiService, ProductApiService, ProductModelApiService, PromotionsApiService, RampApiService, RebateProgramApiService, RebateTypeApiService, SalesforceApiService, SandboxManagerApiService, ShoppingCartSettingsApiService, StatefulConfigurationApiService, VeloceAuthService, VeloceObjectsApiService, handleCanvasResponse };
|
3192
2261
|
//# sourceMappingURL=veloceapps-api.mjs.map
|