@veloceapps/api 11.0.0-2 → 11.0.0-21

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.
Files changed (214) hide show
  1. package/esm2020/index.mjs +2 -45
  2. package/esm2020/src/index.mjs +32 -0
  3. package/esm2020/src/lib/api.module.mjs +108 -0
  4. package/esm2020/src/lib/services/account-api.service.mjs +87 -0
  5. package/esm2020/src/lib/services/auth.service.mjs +22 -0
  6. package/esm2020/src/lib/services/catalog-admin-api.service.mjs +192 -0
  7. package/esm2020/src/lib/services/catalog-api.service.mjs +90 -0
  8. package/esm2020/src/lib/services/configuration-settings-api.service.mjs +96 -0
  9. package/esm2020/src/lib/services/contracted-price-api.service.mjs +45 -0
  10. package/esm2020/src/lib/services/delta-api.service.mjs +23 -0
  11. package/esm2020/src/lib/services/document-attachment-api.service.mjs +66 -0
  12. package/esm2020/src/lib/services/endpoints-api.service.mjs +80 -0
  13. package/esm2020/src/lib/services/flow-state-api.mjs +142 -0
  14. package/esm2020/src/lib/services/flows-api.service.mjs +29 -0
  15. package/esm2020/src/lib/services/guided-sellings-admin-api.service.mjs +65 -0
  16. package/esm2020/src/lib/services/guided-sellings-api.service.mjs +37 -0
  17. package/esm2020/src/lib/services/offers-api.service.mjs +76 -0
  18. package/esm2020/src/lib/services/org-info-api.service.mjs +54 -0
  19. package/esm2020/src/lib/services/picklists-api.service.mjs +41 -0
  20. package/esm2020/src/lib/services/portals-api.service.mjs +76 -0
  21. package/esm2020/src/lib/services/price-api.service.mjs +63 -0
  22. package/esm2020/src/lib/services/product-api.service.mjs +153 -0
  23. package/esm2020/src/lib/services/promotions-api.service.mjs +68 -0
  24. package/esm2020/src/lib/services/ramp-api.service.mjs +31 -0
  25. package/esm2020/src/lib/services/rebate-program-api.service.mjs +68 -0
  26. package/esm2020/src/lib/services/rebate-type-api.service.mjs +68 -0
  27. package/esm2020/src/lib/services/salesforce-api.service.mjs +79 -0
  28. package/esm2020/src/lib/services/sandbox-manager-api.service.mjs +94 -0
  29. package/esm2020/src/lib/services/shopping-cart-settings-api.service.mjs +28 -0
  30. package/esm2020/src/lib/services/stateful-configuration-api.mjs +51 -0
  31. package/esm2020/src/lib/services/veloce-objects-api.service.mjs +90 -0
  32. package/esm2020/src/lib/types/attachment.types.mjs +2 -0
  33. package/esm2020/src/lib/types/auth.types.mjs +2 -0
  34. package/esm2020/src/lib/types/clone-request.types.mjs +2 -0
  35. package/esm2020/src/lib/types/delta-request.types.mjs +2 -0
  36. package/esm2020/src/lib/types/dto/configuration-settings-dto.types.mjs +22 -0
  37. package/esm2020/src/lib/types/dto/offers-dto.types.mjs +2 -0
  38. package/esm2020/src/lib/types/index.mjs +8 -0
  39. package/esm2020/src/lib/types/org-info.types.mjs +2 -0
  40. package/esm2020/src/lib/types/price.types.mjs +2 -0
  41. package/esm2020/src/lib/types/quote.types.mjs +2 -0
  42. package/esm2020/src/lib/types/ramp-request.types.mjs +2 -0
  43. package/esm2020/src/lib/types/search-request.types.mjs +2 -0
  44. package/esm2020/src/lib/types/stateful-configuration.types.mjs +2 -0
  45. package/esm2020/src/lib/utils/canvas.utils.mjs +33 -0
  46. package/esm2020/src/lib/utils/index.mjs +2 -0
  47. package/esm2020/v2/api-v2.module.mjs +48 -0
  48. package/esm2020/v2/index.mjs +4 -0
  49. package/esm2020/v2/services/configuration-processors-api.service.mjs +38 -0
  50. package/esm2020/v2/services/context-definition-api.service.mjs +62 -0
  51. package/esm2020/v2/services/index.mjs +13 -0
  52. package/esm2020/v2/services/procedures-admin-api.service.mjs +82 -0
  53. package/esm2020/v2/services/procedures-api.service.mjs +44 -0
  54. package/esm2020/v2/services/rule-groups-admin-api.service.mjs +62 -0
  55. package/esm2020/v2/services/rules-admin-api.service.mjs +95 -0
  56. package/esm2020/v2/services/rules-api.service.mjs +36 -0
  57. package/esm2020/v2/services/sales-transactions-api.service.mjs +52 -0
  58. package/esm2020/v2/services/scripts-admin-api.service.mjs +75 -0
  59. package/esm2020/v2/services/scripts-api.service.mjs +23 -0
  60. package/esm2020/v2/services/ui-definitions-api.service.mjs +66 -0
  61. package/esm2020/{lib → v2}/services/ui-templates-api.service.mjs +2 -2
  62. package/esm2020/v2/types/clone-request.types.mjs +2 -0
  63. package/esm2020/v2/types/dto/ui-definition-dto.types.mjs +2 -0
  64. package/esm2020/v2/types/dto/ui-template-dto.types.mjs +2 -0
  65. package/esm2020/v2/types/index.mjs +4 -0
  66. package/esm2020/v2/types/procedure.types.mjs +2 -0
  67. package/esm2020/v2/types/sales-transaction.types.mjs +2 -0
  68. package/esm2020/v2/utils/ui-definition.utils.mjs +23 -0
  69. package/esm2020/v2/utils/ui-template.utils.mjs +13 -0
  70. package/esm2020/v2/veloceapps-api-v2.mjs +5 -0
  71. package/esm2020/veloceapps-api.mjs +1 -1
  72. package/fesm2015/veloceapps-api-v2.mjs +940 -0
  73. package/fesm2015/veloceapps-api-v2.mjs.map +1 -0
  74. package/fesm2015/veloceapps-api.mjs +14 -1217
  75. package/fesm2015/veloceapps-api.mjs.map +1 -1
  76. package/fesm2020/veloceapps-api-v2.mjs +956 -0
  77. package/fesm2020/veloceapps-api-v2.mjs.map +1 -0
  78. package/fesm2020/veloceapps-api.mjs +11 -1246
  79. package/fesm2020/veloceapps-api.mjs.map +1 -1
  80. package/index.d.ts +1 -44
  81. package/package.json +9 -1
  82. package/src/index.d.ts +31 -0
  83. package/{lib → src/lib}/api.module.d.ts +2 -1
  84. package/{lib → src/lib}/services/catalog-api.service.d.ts +5 -5
  85. package/src/lib/types/price.types.d.ts +5 -0
  86. package/{lib → src/lib}/types/ramp-request.types.d.ts +3 -3
  87. package/{lib → src/lib}/types/stateful-configuration.types.d.ts +1 -2
  88. package/src/lib/utils/index.d.ts +1 -0
  89. package/v2/api-v2.module.d.ts +7 -0
  90. package/v2/index.d.ts +3 -0
  91. package/{lib/services/rlm-api.service.d.ts → v2/services/context-definition-api.service.d.ts} +3 -3
  92. package/v2/services/index.d.ts +12 -0
  93. package/{lib/services/procedures-api.service.d.ts → v2/services/procedures-admin-api.service.d.ts} +6 -13
  94. package/v2/services/procedures-api.service.d.ts +15 -0
  95. package/{lib/services/rule-groups-api.service.d.ts → v2/services/rule-groups-admin-api.service.d.ts} +3 -3
  96. package/{lib/services/rules-api.service.d.ts → v2/services/rules-admin-api.service.d.ts} +4 -4
  97. package/v2/services/rules-api.service.d.ts +11 -0
  98. package/v2/services/sales-transactions-api.service.d.ts +20 -0
  99. package/{lib/services/scripts-api.service.d.ts → v2/services/scripts-admin-api.service.d.ts} +4 -5
  100. package/v2/services/scripts-api.service.d.ts +11 -0
  101. package/{lib → v2}/services/ui-definitions-api.service.d.ts +8 -5
  102. package/v2/types/clone-request.types.d.ts +5 -0
  103. package/v2/types/dto/ui-definition-dto.types.d.ts +7 -0
  104. package/v2/types/index.d.ts +3 -0
  105. package/v2/types/procedure.types.d.ts +10 -0
  106. package/v2/types/sales-transaction.types.d.ts +14 -0
  107. package/v2/utils/ui-definition.utils.d.ts +5 -0
  108. package/esm2020/lib/api.module.mjs +0 -146
  109. package/esm2020/lib/services/account-api.service.mjs +0 -87
  110. package/esm2020/lib/services/auth.service.mjs +0 -22
  111. package/esm2020/lib/services/catalog-admin-api.service.mjs +0 -192
  112. package/esm2020/lib/services/catalog-api.service.mjs +0 -90
  113. package/esm2020/lib/services/configuration-api.service.mjs +0 -109
  114. package/esm2020/lib/services/configuration-processors-api.service.mjs +0 -38
  115. package/esm2020/lib/services/configuration-settings-api.service.mjs +0 -96
  116. package/esm2020/lib/services/context-api.service.mjs +0 -26
  117. package/esm2020/lib/services/contracted-price-api.service.mjs +0 -45
  118. package/esm2020/lib/services/delta-api.service.mjs +0 -23
  119. package/esm2020/lib/services/document-attachment-api.service.mjs +0 -66
  120. package/esm2020/lib/services/endpoints-api.service.mjs +0 -80
  121. package/esm2020/lib/services/flow-state-api.mjs +0 -142
  122. package/esm2020/lib/services/flows-api.service.mjs +0 -29
  123. package/esm2020/lib/services/guided-sellings-admin-api.service.mjs +0 -65
  124. package/esm2020/lib/services/guided-sellings-api.service.mjs +0 -37
  125. package/esm2020/lib/services/offers-api.service.mjs +0 -76
  126. package/esm2020/lib/services/org-info-api.service.mjs +0 -54
  127. package/esm2020/lib/services/picklists-api.service.mjs +0 -41
  128. package/esm2020/lib/services/portals-api.service.mjs +0 -76
  129. package/esm2020/lib/services/price-api.service.mjs +0 -63
  130. package/esm2020/lib/services/procedures-api.service.mjs +0 -113
  131. package/esm2020/lib/services/product-api.service.mjs +0 -153
  132. package/esm2020/lib/services/product-model-api.service.mjs +0 -223
  133. package/esm2020/lib/services/promotions-api.service.mjs +0 -68
  134. package/esm2020/lib/services/quote-api.service.mjs +0 -56
  135. package/esm2020/lib/services/ramp-api.service.mjs +0 -31
  136. package/esm2020/lib/services/rebate-program-api.service.mjs +0 -68
  137. package/esm2020/lib/services/rebate-type-api.service.mjs +0 -68
  138. package/esm2020/lib/services/rlm-api.service.mjs +0 -65
  139. package/esm2020/lib/services/rlm-quote-api.service.mjs +0 -27
  140. package/esm2020/lib/services/rule-groups-api.service.mjs +0 -62
  141. package/esm2020/lib/services/rules-api.service.mjs +0 -98
  142. package/esm2020/lib/services/salesforce-api.service.mjs +0 -79
  143. package/esm2020/lib/services/sandbox-manager-api.service.mjs +0 -94
  144. package/esm2020/lib/services/scripts-api.service.mjs +0 -83
  145. package/esm2020/lib/services/shopping-cart-settings-api.service.mjs +0 -28
  146. package/esm2020/lib/services/stateful-configuration-api.mjs +0 -51
  147. package/esm2020/lib/services/ui-definitions-api.service.mjs +0 -76
  148. package/esm2020/lib/services/veloce-objects-api.service.mjs +0 -90
  149. package/esm2020/lib/types/attachment.types.mjs +0 -2
  150. package/esm2020/lib/types/auth.types.mjs +0 -2
  151. package/esm2020/lib/types/clone-request.types.mjs +0 -2
  152. package/esm2020/lib/types/delta-request.types.mjs +0 -2
  153. package/esm2020/lib/types/dto/configuration-settings-dto.types.mjs +0 -22
  154. package/esm2020/lib/types/dto/offers-dto.types.mjs +0 -2
  155. package/esm2020/lib/types/dto/ui-template-dto.types.mjs +0 -2
  156. package/esm2020/lib/types/index.mjs +0 -8
  157. package/esm2020/lib/types/org-info.types.mjs +0 -2
  158. package/esm2020/lib/types/price.types.mjs +0 -2
  159. package/esm2020/lib/types/quote.types.mjs +0 -2
  160. package/esm2020/lib/types/ramp-request.types.mjs +0 -2
  161. package/esm2020/lib/types/search-request.types.mjs +0 -2
  162. package/esm2020/lib/types/stateful-configuration.types.mjs +0 -2
  163. package/esm2020/lib/utils/canvas.utils.mjs +0 -33
  164. package/esm2020/lib/utils/index.mjs +0 -3
  165. package/esm2020/lib/utils/ui-template.utils.mjs +0 -13
  166. package/lib/services/configuration-api.service.d.ts +0 -23
  167. package/lib/services/context-api.service.d.ts +0 -11
  168. package/lib/services/product-model-api.service.d.ts +0 -29
  169. package/lib/services/quote-api.service.d.ts +0 -22
  170. package/lib/services/rlm-quote-api.service.d.ts +0 -11
  171. package/lib/types/price.types.d.ts +0 -5
  172. package/lib/utils/index.d.ts +0 -2
  173. /package/{lib → src/lib}/services/account-api.service.d.ts +0 -0
  174. /package/{lib → src/lib}/services/auth.service.d.ts +0 -0
  175. /package/{lib → src/lib}/services/catalog-admin-api.service.d.ts +0 -0
  176. /package/{lib → src/lib}/services/configuration-settings-api.service.d.ts +0 -0
  177. /package/{lib → src/lib}/services/contracted-price-api.service.d.ts +0 -0
  178. /package/{lib → src/lib}/services/delta-api.service.d.ts +0 -0
  179. /package/{lib → src/lib}/services/document-attachment-api.service.d.ts +0 -0
  180. /package/{lib → src/lib}/services/endpoints-api.service.d.ts +0 -0
  181. /package/{lib → src/lib}/services/flow-state-api.d.ts +0 -0
  182. /package/{lib → src/lib}/services/flows-api.service.d.ts +0 -0
  183. /package/{lib → src/lib}/services/guided-sellings-admin-api.service.d.ts +0 -0
  184. /package/{lib → src/lib}/services/guided-sellings-api.service.d.ts +0 -0
  185. /package/{lib → src/lib}/services/offers-api.service.d.ts +0 -0
  186. /package/{lib → src/lib}/services/org-info-api.service.d.ts +0 -0
  187. /package/{lib → src/lib}/services/picklists-api.service.d.ts +0 -0
  188. /package/{lib → src/lib}/services/portals-api.service.d.ts +0 -0
  189. /package/{lib → src/lib}/services/price-api.service.d.ts +0 -0
  190. /package/{lib → src/lib}/services/product-api.service.d.ts +0 -0
  191. /package/{lib → src/lib}/services/promotions-api.service.d.ts +0 -0
  192. /package/{lib → src/lib}/services/ramp-api.service.d.ts +0 -0
  193. /package/{lib → src/lib}/services/rebate-program-api.service.d.ts +0 -0
  194. /package/{lib → src/lib}/services/rebate-type-api.service.d.ts +0 -0
  195. /package/{lib → src/lib}/services/salesforce-api.service.d.ts +0 -0
  196. /package/{lib → src/lib}/services/sandbox-manager-api.service.d.ts +0 -0
  197. /package/{lib → src/lib}/services/shopping-cart-settings-api.service.d.ts +0 -0
  198. /package/{lib → src/lib}/services/stateful-configuration-api.d.ts +0 -0
  199. /package/{lib → src/lib}/services/veloce-objects-api.service.d.ts +0 -0
  200. /package/{lib → src/lib}/types/attachment.types.d.ts +0 -0
  201. /package/{lib → src/lib}/types/auth.types.d.ts +0 -0
  202. /package/{lib → src/lib}/types/clone-request.types.d.ts +0 -0
  203. /package/{lib → src/lib}/types/delta-request.types.d.ts +0 -0
  204. /package/{lib → src/lib}/types/dto/configuration-settings-dto.types.d.ts +0 -0
  205. /package/{lib → src/lib}/types/dto/offers-dto.types.d.ts +0 -0
  206. /package/{lib → src/lib}/types/index.d.ts +0 -0
  207. /package/{lib → src/lib}/types/org-info.types.d.ts +0 -0
  208. /package/{lib → src/lib}/types/quote.types.d.ts +0 -0
  209. /package/{lib → src/lib}/types/search-request.types.d.ts +0 -0
  210. /package/{lib → src/lib}/utils/canvas.utils.d.ts +0 -0
  211. /package/{lib → v2}/services/configuration-processors-api.service.d.ts +0 -0
  212. /package/{lib → v2}/services/ui-templates-api.service.d.ts +0 -0
  213. /package/{lib → v2}/types/dto/ui-template-dto.types.d.ts +0 -0
  214. /package/{lib → v2}/utils/ui-template.utils.d.ts +0 -0
@@ -2,12 +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, ConfigurationContextMode, Expression, Operator, isApexError, isCanvasError, ModelTranslatorUtils, EntityUtil, RuleGroupTypes, parseJsonSafely, uiDefinitionToDTO, BaseHttpService, XrayService } from '@veloceapps/core';
7
- import { noop, throwError, of, map as map$1, from, catchError as catchError$1, forkJoin, switchMap } from 'rxjs';
7
+ import { Expression, Operator, isApexError, isCanvasError, parseJsonSafely, BaseHttpService, XrayService } from '@veloceapps/core';
8
+ import { noop, 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, omit } from 'lodash';
11
+ import { isArray } from 'lodash';
11
12
 
12
13
  class AccountApiService {
13
14
  constructor(httpService) {
@@ -383,144 +384,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
383
384
  type: Injectable
384
385
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
385
386
 
386
- class ConfigurationApiService {
387
- constructor(httpService) {
388
- this.httpService = httpService;
389
- this.SERVICE_URL = '/configuration';
390
- }
391
- configureLineItem({ configurationRequest, runtimeModel, pricingEnabled, }) {
392
- return this.httpService
393
- .api({
394
- method: 'post',
395
- url: `${this.SERVICE_URL}${pricingEnabled ? '/price' : ''}`,
396
- body: configurationRequest,
397
- errorHandler: e => throwError(e),
398
- })
399
- .pipe(map(configurePrice => {
400
- if (runtimeModel) {
401
- return {
402
- ...configurePrice,
403
- lineItem: this.updateDomains(configurePrice.lineItem, runtimeModel),
404
- };
405
- }
406
- else {
407
- return configurePrice;
408
- }
409
- }));
410
- }
411
- customConfigurePrice({ url, configurationRequest, runtimeModel, }) {
412
- return this.httpService
413
- .api({
414
- method: 'post',
415
- url,
416
- body: configurationRequest,
417
- errorHandler: e => throwError(e),
418
- })
419
- .pipe(map(configurePrice => {
420
- if (runtimeModel) {
421
- return {
422
- ...configurePrice,
423
- lineItem: this.updateDomains(configurePrice.lineItem, runtimeModel),
424
- };
425
- }
426
- else {
427
- return configurePrice;
428
- }
429
- }));
430
- }
431
- getRuntimeDataByProductId(productId, offeringId) {
432
- return this.httpService
433
- .api({
434
- method: 'get',
435
- url: `${this.SERVICE_URL}/${productId}/model` + ((offeringId && `/${offeringId}`) || ''),
436
- })
437
- .pipe(map(runtimeData => {
438
- return {
439
- ...runtimeData,
440
- uiDefinitions: runtimeData.uiDefinitions.map(dto => uiDefinitionFromDTO(dto)),
441
- };
442
- }));
443
- }
444
- getRuntimeDataByModelId(modelId) {
445
- return this.httpService.api({
446
- method: 'get',
447
- url: `${this.SERVICE_URL}/${modelId}/model-test`,
448
- });
449
- }
450
- updateDomains(lineItem, runtimeModel) {
451
- const component = runtimeModel.components.get(lineItem.type);
452
- const portDomains = { ...lineItem.portDomains };
453
- // loop through ports to look for 'None' type domain computations
454
- for (const port of component?.ports ?? []) {
455
- const portDomain = portDomains[port.name];
456
- if (portDomain?.properties?.['domainComputation'] === DomainComputation.NONE) {
457
- portDomain.domainTypes = port.domainTypes;
458
- }
459
- }
460
- const type = runtimeModel.types.find(({ name }) => {
461
- return lineItem.type === name;
462
- });
463
- const attributeDomains = lineItem.attributeDomains;
464
- if (type) {
465
- const initialDomains = lineItem.attributeDomains;
466
- type.attributes.forEach(attribute => {
467
- if (Object.prototype.hasOwnProperty.call(initialDomains, attribute.name)) {
468
- return;
469
- }
470
- if (attribute.attributeDomain) {
471
- attributeDomains[attribute.name] = attribute.attributeDomain;
472
- }
473
- });
474
- }
475
- return {
476
- ...lineItem,
477
- lineItems: lineItem.lineItems?.map(i => this.updateDomains(i, runtimeModel)),
478
- attributeDomains,
479
- portDomains,
480
- };
481
- }
482
- }
483
- ConfigurationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
484
- ConfigurationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationApiService });
485
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationApiService, decorators: [{
486
- type: Injectable
487
- }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
488
-
489
- class ConfigurationProcessorsApiService {
490
- constructor(baseHttpService) {
491
- this.baseHttpService = baseHttpService;
492
- this.serviceUrl = '/configuration/processors/owners';
493
- this.fetchConfigurationProcessors$ = (ownerId) => {
494
- return this.baseHttpService.api({ url: `${this.serviceUrl}/${ownerId}` });
495
- };
496
- this.createConfigurationProcessors$ = (configurationProcessor) => {
497
- return this.baseHttpService.api({
498
- method: 'post',
499
- url: `${this.serviceUrl}/${configurationProcessor.ownerId}`,
500
- body: configurationProcessor,
501
- });
502
- };
503
- this.updateConfigurationProcessors$ = (configurationProcessor) => {
504
- return this.baseHttpService.api({
505
- method: 'put',
506
- url: `${this.serviceUrl}/${configurationProcessor.ownerId}/${configurationProcessor.id}`,
507
- body: configurationProcessor,
508
- });
509
- };
510
- this.deleteConfigurationProcessors$ = (configurationProcessor) => {
511
- return this.baseHttpService.api({
512
- method: 'delete',
513
- url: `${this.serviceUrl}/${configurationProcessor.ownerId}/${configurationProcessor.id}`,
514
- });
515
- };
516
- }
517
- }
518
- ConfigurationProcessorsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationProcessorsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
519
- ConfigurationProcessorsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationProcessorsApiService });
520
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationProcessorsApiService, decorators: [{
521
- type: Injectable
522
- }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
523
-
524
387
  class ConfigurationSettingsDTO {
525
388
  static fromDTO(dto, key) {
526
389
  return {
@@ -631,28 +494,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
631
494
  type: Injectable
632
495
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: i1$2.MessageService }]; } });
633
496
 
634
- class ContextApiService {
635
- constructor(httpService) {
636
- this.httpService = httpService;
637
- this.SERVICE_URL = '/context';
638
- }
639
- getContext(headerId, mode) {
640
- return this.httpService.api({
641
- method: 'post',
642
- body: {
643
- headerId: headerId,
644
- contextMode: ConfigurationContextMode[mode],
645
- },
646
- url: `${this.SERVICE_URL}`,
647
- });
648
- }
649
- }
650
- ContextApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContextApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
651
- ContextApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContextApiService });
652
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContextApiService, decorators: [{
653
- type: Injectable
654
- }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
655
-
656
497
  class ContractedPriceApiService {
657
498
  constructor(baseHttpService) {
658
499
  this.baseHttpService = baseHttpService;
@@ -1429,113 +1270,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
1429
1270
  type: Injectable
1430
1271
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1431
1272
 
1432
- class ProceduresApiService {
1433
- constructor(baseHttpService) {
1434
- this.baseHttpService = baseHttpService;
1435
- this.ADMIN_SERVICE_URL = '/admin/procedures';
1436
- this.SERVICE_URL = '/procedures';
1437
- this.fetchProcedures$ = () => {
1438
- return this.searchProcedures$(new Expression(), 0, 100);
1439
- };
1440
- this.searchProcedures$ = (expression, skip, count) => {
1441
- let params = new HttpParams();
1442
- params = params.set('skip', '' + skip);
1443
- params = params.set('count', '' + count);
1444
- return this.baseHttpService.api({
1445
- method: 'post',
1446
- url: `${this.ADMIN_SERVICE_URL}/search`,
1447
- params,
1448
- body: expression,
1449
- });
1450
- };
1451
- this.createProcedure$ = (newProcedure) => {
1452
- return this.baseHttpService.api({
1453
- url: `${this.ADMIN_SERVICE_URL}`,
1454
- method: 'post',
1455
- body: newProcedure,
1456
- });
1457
- };
1458
- this.updateProcedure$ = (procedure) => {
1459
- return this.baseHttpService.api({
1460
- url: `${this.ADMIN_SERVICE_URL}/${procedure.id}`,
1461
- method: 'put',
1462
- body: procedure,
1463
- });
1464
- };
1465
- this.duplicateProcedure$ = (body) => {
1466
- return this.baseHttpService
1467
- .api({
1468
- url: `${this.ADMIN_SERVICE_URL}/${body.id}/clone`,
1469
- method: 'post',
1470
- body,
1471
- })
1472
- .pipe(map(response => response.clonedRecordId));
1473
- };
1474
- this.removeProcedure$ = (id) => {
1475
- return this.baseHttpService.api({
1476
- url: `${this.ADMIN_SERVICE_URL}/${id}`,
1477
- method: 'delete',
1478
- });
1479
- };
1480
- this.restoreProcedure$ = (id) => {
1481
- return this.baseHttpService.api({
1482
- url: `${this.ADMIN_SERVICE_URL}/${id}/restore`,
1483
- method: 'patch',
1484
- });
1485
- };
1486
- }
1487
- fetchProcedure$(id) {
1488
- return this.baseHttpService.api({
1489
- url: `${this.ADMIN_SERVICE_URL}/${id}`,
1490
- method: 'get',
1491
- });
1492
- }
1493
- execute$(body) {
1494
- return this.baseHttpService.api({
1495
- url: `${this.SERVICE_URL}/execute`,
1496
- method: 'post',
1497
- body,
1498
- });
1499
- }
1500
- catalogExecute$(body) {
1501
- return this.baseHttpService.api({
1502
- url: `${this.SERVICE_URL}/catalog/execute`,
1503
- method: 'post',
1504
- body,
1505
- });
1506
- }
1507
- rlmExecute$(body) {
1508
- return this.baseHttpService.api({
1509
- url: `${this.SERVICE_URL}/rlm/execute`,
1510
- method: 'post',
1511
- body,
1512
- });
1513
- }
1514
- /**
1515
- * Run active procedure against QuoteDraft
1516
- * @param body
1517
- * @returns
1518
- */
1519
- apply$(body) {
1520
- return this.baseHttpService.api({
1521
- url: `${this.SERVICE_URL}/apply`,
1522
- method: 'post',
1523
- body,
1524
- });
1525
- }
1526
- fetchDefaultPricingSteps$() {
1527
- return this.baseHttpService.api({
1528
- url: `${this.ADMIN_SERVICE_URL}/pricing-steps`,
1529
- method: 'get',
1530
- });
1531
- }
1532
- }
1533
- ProceduresApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProceduresApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1534
- ProceduresApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProceduresApiService });
1535
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProceduresApiService, decorators: [{
1536
- type: Injectable
1537
- }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1538
-
1539
1273
  class ProductApiService {
1540
1274
  constructor(baseHttpService) {
1541
1275
  this.baseHttpService = baseHttpService;
@@ -1684,224 +1418,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
1684
1418
  type: Injectable
1685
1419
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1686
1420
 
1687
- class ProductModelApiService {
1688
- constructor(httpService) {
1689
- this.httpService = httpService;
1690
- this.SERVICE_URL = '/models';
1691
- }
1692
- addModel(model) {
1693
- return this.httpService
1694
- .api({
1695
- method: 'post',
1696
- url: this.SERVICE_URL,
1697
- body: model,
1698
- errorHandler: this.httpService.handleValidationError,
1699
- })
1700
- .pipe(map(result => {
1701
- if (result.successful) {
1702
- return result;
1703
- }
1704
- else {
1705
- throw new Error(result.message);
1706
- }
1707
- }));
1708
- }
1709
- releaseModel(model) {
1710
- return this.httpService
1711
- .api({
1712
- method: 'put',
1713
- url: `${this.SERVICE_URL}/${model.id}/release`,
1714
- body: model,
1715
- errorHandler: this.httpService.handleValidationError,
1716
- })
1717
- .pipe(map(result => {
1718
- if (result.successful) {
1719
- return '';
1720
- }
1721
- else {
1722
- throw new Error(result.message);
1723
- }
1724
- }));
1725
- }
1726
- removeModel(modelId, successFn, failureFn) {
1727
- const observable = this.httpService
1728
- .api({
1729
- method: 'delete',
1730
- url: `${this.SERVICE_URL}/${modelId}`,
1731
- errorHandler: this.httpService.handleValidationError,
1732
- })
1733
- .pipe(map(result => {
1734
- if (result.successful) {
1735
- return '';
1736
- }
1737
- else {
1738
- throw new Error(result.message);
1739
- }
1740
- }));
1741
- observable.subscribe(() => {
1742
- successFn && successFn.apply();
1743
- }, () => {
1744
- failureFn && failureFn.apply();
1745
- });
1746
- }
1747
- getModelVersions(modelId, count = 100, skip = 0) {
1748
- return this.httpService.api({
1749
- method: 'post',
1750
- url: `${this.SERVICE_URL}/${modelId}/versions`,
1751
- body: {
1752
- skipCount: skip,
1753
- count: count,
1754
- },
1755
- });
1756
- }
1757
- getModel(id, version) {
1758
- let url = `${this.SERVICE_URL}/${id}`;
1759
- if (version) {
1760
- url += `/versions/${version}`;
1761
- }
1762
- return this.httpService.api({ url });
1763
- }
1764
- getModels(skipCount, searchText) {
1765
- return this.httpService.api({
1766
- method: 'post',
1767
- url: `${this.SERVICE_URL}/search`,
1768
- body: {
1769
- nameRegex: searchText,
1770
- skipCount: skipCount.toString(),
1771
- count: ProductModelApiService.MAX_RESULTS,
1772
- },
1773
- });
1774
- }
1775
- getLinkedModels(id, version) {
1776
- let url = `${this.SERVICE_URL}/${id}`;
1777
- if (version) {
1778
- url += `/versions/${version}`;
1779
- }
1780
- url += '/linked';
1781
- return this.httpService.api({ url }).pipe(map((linkedModels) => {
1782
- if (linkedModels) {
1783
- linkedModels.forEach(model => ModelTranslatorUtils.toLocalModel(model));
1784
- }
1785
- return linkedModels;
1786
- }));
1787
- }
1788
- getPML(modelId, version) {
1789
- let url = `${this.SERVICE_URL}/${modelId}/pml/${version}`;
1790
- if (version) {
1791
- url += `/versions/${version}`;
1792
- }
1793
- return this.httpService.api({
1794
- url,
1795
- responseType: 'text',
1796
- });
1797
- }
1798
- savePML(modelId, pml, comment) {
1799
- return this.httpService
1800
- .api({
1801
- method: 'put',
1802
- url: `${this.SERVICE_URL}/${modelId}/pml`,
1803
- body: {
1804
- id: modelId,
1805
- pml: pml,
1806
- comment: comment,
1807
- },
1808
- })
1809
- .pipe(map(result => {
1810
- if (result.successful) {
1811
- return '';
1812
- }
1813
- else {
1814
- throw new Error(result.message);
1815
- }
1816
- }), catchError(this.httpService.handleValidationError));
1817
- }
1818
- generateProducts(modelId) {
1819
- return this.httpService.api({
1820
- url: `${this.SERVICE_URL}/${modelId}/generate-products`,
1821
- });
1822
- }
1823
- saveModel(productModel, comment) {
1824
- const model = EntityUtil.clone(productModel);
1825
- model.comment = comment;
1826
- ModelTranslatorUtils.toServerModel(model);
1827
- return this.httpService
1828
- .api({
1829
- method: 'put',
1830
- url: `${this.SERVICE_URL}/${model.id}`,
1831
- body: model,
1832
- })
1833
- .pipe(map(result => {
1834
- if (result.successful) {
1835
- return '';
1836
- }
1837
- else {
1838
- throw new Error(result.message);
1839
- }
1840
- }), catchError(this.httpService.handleValidationError));
1841
- }
1842
- validateModel(productModel) {
1843
- return this.httpService
1844
- .api({
1845
- method: 'post',
1846
- url: `${this.SERVICE_URL}/validate`,
1847
- body: productModel,
1848
- errorHandler: this.httpService.handleValidationError,
1849
- })
1850
- .pipe(map(result => {
1851
- if (result.successful) {
1852
- return '';
1853
- }
1854
- else {
1855
- throw new Error(result.message);
1856
- }
1857
- }));
1858
- }
1859
- renameModel(productModel, name) {
1860
- const model = EntityUtil.clone(productModel);
1861
- model.name = name;
1862
- ModelTranslatorUtils.toServerModel(model);
1863
- return this.httpService
1864
- .api({
1865
- method: 'patch',
1866
- url: `${this.SERVICE_URL}/${model.id}`,
1867
- body: model,
1868
- })
1869
- .pipe(catchError(this.httpService.handleValidationError));
1870
- }
1871
- uploadPmlFile(file, modelId) {
1872
- const formData = new FormData();
1873
- formData.append('file', file, file.name);
1874
- return this.httpService.upload({
1875
- url: `${this.SERVICE_URL}/${modelId}/pml/upload`,
1876
- body: formData,
1877
- });
1878
- }
1879
- runPml(modelId, pml, rootType, configurationMode) {
1880
- return this.httpService.api({
1881
- method: 'post',
1882
- url: `${this.SERVICE_URL}/${modelId}/pml/run`,
1883
- body: {
1884
- pml,
1885
- rootType,
1886
- configurationMode,
1887
- },
1888
- responseType: 'text',
1889
- });
1890
- }
1891
- evictAllCache() {
1892
- return this.httpService.api({
1893
- method: 'get',
1894
- url: '/cache/evict/environment-variables',
1895
- });
1896
- }
1897
- }
1898
- ProductModelApiService.MAX_RESULTS = 200;
1899
- ProductModelApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductModelApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1900
- ProductModelApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductModelApiService });
1901
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductModelApiService, decorators: [{
1902
- type: Injectable
1903
- }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1904
-
1905
1421
  class PromotionsApiService {
1906
1422
  constructor(baseHttpService) {
1907
1423
  this.baseHttpService = baseHttpService;
@@ -1965,65 +1481,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
1965
1481
  type: Injectable
1966
1482
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1967
1483
 
1968
- class QuoteApiService {
1484
+ class RampApiService {
1969
1485
  constructor(httpService) {
1970
1486
  this.httpService = httpService;
1971
- this.SERVICE_URL = '/quotes';
1487
+ this.SERVICE_URL = '/ramp';
1972
1488
  }
1973
- /**
1974
- * This endpoint doesn't include orders and assets
1975
- * @param objectId quoteId | accountId | opportunityId | orderId
1976
- * @param params Query params
1977
- * @param options Request options
1978
- */
1979
- getQuoteState(objectId, params, options) {
1980
- return this.httpService.api({
1981
- method: 'get',
1982
- url: `/v2${this.SERVICE_URL}/${objectId}`,
1983
- params,
1984
- ...options,
1985
- });
1986
- }
1987
- upsertQuote(request, options) {
1988
- return this.httpService.api({
1989
- method: 'post',
1990
- url: `${this.SERVICE_URL}`,
1991
- body: request,
1992
- ...options,
1993
- });
1994
- }
1995
- submitQuote(request, options) {
1996
- return this.httpService.api({
1997
- method: 'post',
1998
- url: `${this.SERVICE_URL}/submit`,
1999
- body: request,
2000
- ...options,
2001
- });
2002
- }
2003
- attachDocument(id, documentName, data) {
2004
- const formData = new FormData();
2005
- const blob = new Blob([data]);
2006
- formData.append('file', blob, documentName);
2007
- return this.httpService.upload({
2008
- url: `${this.SERVICE_URL}/${id}/attach-document`,
2009
- responseType: 'arraybuffer',
2010
- method: 'post',
2011
- body: formData,
2012
- });
2013
- }
2014
- }
2015
- QuoteApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: QuoteApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
2016
- QuoteApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: QuoteApiService });
2017
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: QuoteApiService, decorators: [{
2018
- type: Injectable
2019
- }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
2020
-
2021
- class RampApiService {
2022
- constructor(httpService) {
2023
- this.httpService = httpService;
2024
- this.SERVICE_URL = '/ramp';
2025
- }
2026
- next(request, options) {
1489
+ next(request, options) {
2027
1490
  return this.httpService.api({
2028
1491
  method: 'post',
2029
1492
  url: `${this.SERVICE_URL}/next`,
@@ -2172,238 +1635,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
2172
1635
  type: Injectable
2173
1636
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
2174
1637
 
2175
- class RlmApiService {
2176
- constructor(baseHttpService) {
2177
- this.baseHttpService = baseHttpService;
2178
- this.serviceUrl = '/rlm';
2179
- }
2180
- // TODO: request RLM data only when RLM is installed. Otherwise skip rlm requests. Discuss solution|approach with BE
2181
- fetchContextDefinitions$() {
2182
- return this.baseHttpService
2183
- .api({ url: `${this.serviceUrl}/context`, skipErrorHandler: true })
2184
- .pipe(catchError(() => {
2185
- return of([]);
2186
- }));
2187
- }
2188
- fetchContextMappings$(id) {
2189
- return this.baseHttpService.api({ url: `${this.serviceUrl}/context/${id}/mappings` });
2190
- }
2191
- fetchContextDefinitionStructure$(id) {
2192
- return this.baseHttpService
2193
- .api({
2194
- url: `${this.serviceUrl}/context/${id}/structure/details`,
2195
- skipErrorHandler: true,
2196
- })
2197
- .pipe(catchError(() => {
2198
- return of([]);
2199
- }), map(objects => {
2200
- return objects.map(object => {
2201
- const tag = object.tags?.[0]?.title;
2202
- const objectAttributes = object.attributes || [];
2203
- return {
2204
- id: object.id,
2205
- title: tag || object.title,
2206
- attributes: objectAttributes.map(attribute => {
2207
- const tag = attribute.tags?.[0]?.title;
2208
- return {
2209
- title: tag || attribute.title,
2210
- fieldType: attribute.fieldType,
2211
- dataType: attribute.dataType,
2212
- };
2213
- }),
2214
- };
2215
- });
2216
- }));
2217
- }
2218
- fetchRlmProcedures(contextDefinitionId) {
2219
- const params = {};
2220
- if (contextDefinitionId) {
2221
- params['contextDefinitionId'] = contextDefinitionId;
2222
- }
2223
- return this.baseHttpService.api({
2224
- url: `${this.serviceUrl}/procedures`,
2225
- params,
2226
- });
2227
- }
2228
- }
2229
- RlmApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RlmApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
2230
- RlmApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RlmApiService });
2231
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RlmApiService, decorators: [{
2232
- type: Injectable
2233
- }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
2234
-
2235
- class RlmQuoteApiService {
2236
- constructor(httpService) {
2237
- this.httpService = httpService;
2238
- this.SERVICE_URL = '/quotes/rlm';
2239
- }
2240
- getQuote(mappingType, objectId, contextMappingId, options) {
2241
- const params = { mappingType };
2242
- if (contextMappingId) {
2243
- params['contextMappingId'] = contextMappingId;
2244
- }
2245
- return this.httpService.api({
2246
- method: 'get',
2247
- url: `${this.SERVICE_URL}/${objectId}`,
2248
- params,
2249
- ...options,
2250
- });
2251
- }
2252
- }
2253
- RlmQuoteApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RlmQuoteApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
2254
- RlmQuoteApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RlmQuoteApiService });
2255
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RlmQuoteApiService, decorators: [{
2256
- type: Injectable
2257
- }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
2258
-
2259
- class RuleGroupsApiService {
2260
- constructor(baseHttpService) {
2261
- this.baseHttpService = baseHttpService;
2262
- this.serviceUrl = '/admin/rule-groups';
2263
- this.fetchRuleGroups$ = () => {
2264
- return this.searchRuleGroups$(new Expression(), 0, 100);
2265
- };
2266
- this.searchRuleGroups$ = (expression, skip, count) => {
2267
- let params = new HttpParams();
2268
- params = params.set('skip', '' + skip);
2269
- params = params.set('count', '' + count);
2270
- return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
2271
- };
2272
- this.createRuleGroup$ = (ruleGroup) => {
2273
- return this.baseHttpService.api({
2274
- url: `${this.serviceUrl}`,
2275
- method: 'post',
2276
- body: ruleGroup,
2277
- });
2278
- };
2279
- this.updateRuleGroup$ = (ruleGroup) => {
2280
- return this.baseHttpService.api({
2281
- url: `${this.serviceUrl}/${ruleGroup.id}`,
2282
- method: 'post',
2283
- body: ruleGroup,
2284
- });
2285
- };
2286
- this.duplicateRuleGroup$ = (body) => {
2287
- return this.baseHttpService
2288
- .api({
2289
- url: `${this.serviceUrl}/${body.id}/clone`,
2290
- method: 'post',
2291
- body,
2292
- })
2293
- .pipe(map$1(response => response.clonedRecordId));
2294
- };
2295
- this.removeRuleGroup$ = (id) => {
2296
- return this.baseHttpService.api({
2297
- url: `${this.serviceUrl}/${id}`,
2298
- method: 'delete',
2299
- });
2300
- };
2301
- this.restoreRuleGroup$ = (id) => {
2302
- return this.baseHttpService.api({
2303
- url: `${this.serviceUrl}/${id}/restore`,
2304
- method: 'patch',
2305
- });
2306
- };
2307
- }
2308
- }
2309
- RuleGroupsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RuleGroupsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
2310
- RuleGroupsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RuleGroupsApiService });
2311
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RuleGroupsApiService, decorators: [{
2312
- type: Injectable
2313
- }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
2314
-
2315
- class RulesApiService {
2316
- constructor(baseHttpService) {
2317
- this.baseHttpService = baseHttpService;
2318
- this.serviceUrl = '/admin/rules';
2319
- this.fetchRules$ = () => {
2320
- return this.searchRules$(new Expression(), 0, 100);
2321
- };
2322
- this.searchRules$ = (expression, skip, count) => {
2323
- let params = new HttpParams();
2324
- if (typeof skip === 'number') {
2325
- params = params.set('skip', '' + skip);
2326
- }
2327
- if (typeof count === 'number') {
2328
- params = params.set('count', '' + count);
2329
- }
2330
- return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
2331
- };
2332
- this.createRule$ = (rule) => {
2333
- return this.baseHttpService.api({
2334
- url: `${this.serviceUrl}`,
2335
- method: 'post',
2336
- body: rule,
2337
- });
2338
- };
2339
- this.updateRule$ = (rule) => {
2340
- return this.baseHttpService.api({
2341
- url: `${this.serviceUrl}/${rule.id}`,
2342
- method: 'put',
2343
- body: rule,
2344
- });
2345
- };
2346
- this.duplicateRule$ = (body) => {
2347
- return this.baseHttpService
2348
- .api({
2349
- url: `${this.serviceUrl}/${body.id}/clone`,
2350
- method: 'post',
2351
- body,
2352
- })
2353
- .pipe(map(response => response.clonedRecordId));
2354
- };
2355
- this.removeRule$ = (id) => {
2356
- return this.baseHttpService.api({
2357
- url: `${this.serviceUrl}/${id}`,
2358
- method: 'delete',
2359
- });
2360
- };
2361
- this.restoreRule$ = (id) => {
2362
- return this.baseHttpService.api({
2363
- url: `${this.serviceUrl}/${id}/restore`,
2364
- method: 'patch',
2365
- });
2366
- };
2367
- }
2368
- fetchRule$(id) {
2369
- return this.baseHttpService.api({
2370
- url: `${this.serviceUrl}/${id}`,
2371
- method: 'get',
2372
- });
2373
- }
2374
- fetchHeaderFields$() {
2375
- return this.baseHttpService.api({
2376
- url: `${this.serviceUrl}/describe/Header`,
2377
- method: 'get',
2378
- });
2379
- }
2380
- execute$(body) {
2381
- const url = this.getExecuteRuleUrl(body.rule.ruleGroupType);
2382
- return this.baseHttpService.api({
2383
- url,
2384
- method: 'post',
2385
- body,
2386
- });
2387
- }
2388
- getExecuteRuleUrl(ruleGroupType) {
2389
- if (ruleGroupType === RuleGroupTypes.eligibility) {
2390
- return '/rules/eligibility/execute';
2391
- }
2392
- if (ruleGroupType === RuleGroupTypes.catalog) {
2393
- return '/rules/catalog/execute';
2394
- }
2395
- if (ruleGroupType === RuleGroupTypes.rlmContextBased) {
2396
- return '/rules/rlm/execute';
2397
- }
2398
- return '/rules/execute';
2399
- }
2400
- }
2401
- RulesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RulesApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
2402
- RulesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RulesApiService });
2403
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RulesApiService, decorators: [{
2404
- type: Injectable
2405
- }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
2406
-
2407
1638
  class SalesforceApiService {
2408
1639
  constructor(httpService) {
2409
1640
  this.httpService = httpService;
@@ -2568,84 +1799,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
2568
1799
  type: Injectable
2569
1800
  }], ctorParameters: function () { return [{ type: i1$2.MessageService }]; } });
2570
1801
 
2571
- class ScriptsApiService {
2572
- constructor(baseHttpService) {
2573
- this.baseHttpService = baseHttpService;
2574
- this.serviceUrl = '/admin/scripts';
2575
- this.fetchScripts$ = () => {
2576
- return this.baseHttpService.api({ url: `${this.serviceUrl}` });
2577
- };
2578
- this.searchScripts$ = (expression, skip, count) => {
2579
- let params = new HttpParams();
2580
- if (typeof skip === 'number') {
2581
- params = params.set('skip', '' + skip);
2582
- }
2583
- if (typeof count === 'number') {
2584
- params = params.set('count', '' + count);
2585
- }
2586
- return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
2587
- };
2588
- this.fetchScript$ = (id) => {
2589
- return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
2590
- };
2591
- this.createScript$ = (script) => {
2592
- return this.baseHttpService.api({
2593
- url: `${this.serviceUrl}`,
2594
- method: 'post',
2595
- body: script,
2596
- });
2597
- };
2598
- this.updateScriptMeta$ = (script) => {
2599
- return this.baseHttpService.api({
2600
- url: `${this.serviceUrl}/${script.id}`,
2601
- method: 'put',
2602
- body: script,
2603
- });
2604
- };
2605
- this.updateScriptDetails$ = (script) => {
2606
- return this.baseHttpService.api({
2607
- url: `${this.serviceUrl}/${script.id}`,
2608
- method: 'put',
2609
- body: script,
2610
- });
2611
- };
2612
- this.cloneScript$ = (cloneRequest) => {
2613
- return this.baseHttpService
2614
- .api({
2615
- url: `${this.serviceUrl}/${cloneRequest.id}/clone`,
2616
- method: 'post',
2617
- body: cloneRequest,
2618
- })
2619
- .pipe(map(response => response.clonedRecordId));
2620
- };
2621
- this.removeScript$ = (id) => {
2622
- return this.baseHttpService.api({
2623
- url: `${this.serviceUrl}/${id}`,
2624
- method: 'delete',
2625
- });
2626
- };
2627
- this.restoreScript$ = (id) => {
2628
- return this.baseHttpService.api({
2629
- url: `${this.serviceUrl}/${id}/restore`,
2630
- method: 'patch',
2631
- });
2632
- };
2633
- this.execute$ = (body) => {
2634
- return this.baseHttpService.api({
2635
- url: `/scripts/execute`,
2636
- method: 'post',
2637
- body,
2638
- errorHandler: () => null,
2639
- });
2640
- };
2641
- }
2642
- }
2643
- ScriptsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ScriptsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
2644
- ScriptsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ScriptsApiService });
2645
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ScriptsApiService, decorators: [{
2646
- type: Injectable
2647
- }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
2648
-
2649
1802
  class ShoppingCartSettingsApiService {
2650
1803
  constructor(configurationSettingsApiService) {
2651
1804
  this.configurationSettingsApiService = configurationSettingsApiService;
@@ -2717,368 +1870,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
2717
1870
  type: Injectable
2718
1871
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
2719
1872
 
2720
- class UIDefinitionsApiService {
2721
- constructor(baseHttpService) {
2722
- this.baseHttpService = baseHttpService;
2723
- }
2724
- fetch$(modelId, version) {
2725
- const serviceUrl = this.getServiceUrl(modelId);
2726
- let params = new HttpParams();
2727
- if (version != null) {
2728
- params = params.set('modelVersion', version);
2729
- }
2730
- return this.baseHttpService
2731
- .api({
2732
- method: 'get',
2733
- url: serviceUrl,
2734
- params: params,
2735
- })
2736
- .pipe(map$1(containers => containers.map(uiDefinitionFromDTO)));
2737
- }
2738
- create$(modelId, uiDefinitionContainer) {
2739
- const serviceUrl = this.getServiceUrl(modelId);
2740
- const dto = {
2741
- ...omit(uiDefinitionContainer, 'source'),
2742
- sourceBlob: JSON.stringify(uiDefinitionContainer.source),
2743
- };
2744
- return this.baseHttpService
2745
- .api({
2746
- method: 'post',
2747
- url: serviceUrl,
2748
- body: dto,
2749
- })
2750
- .pipe(map$1(container => uiDefinitionFromDTO(container)));
2751
- }
2752
- get$(modelId, uiDefinitionId) {
2753
- const serviceUrl = this.getServiceUrl(modelId);
2754
- return this.baseHttpService
2755
- .api({
2756
- method: 'get',
2757
- url: `${serviceUrl}/${uiDefinitionId}`,
2758
- })
2759
- .pipe(map$1(container => uiDefinitionFromDTO({ ...container, id: uiDefinitionId })));
2760
- }
2761
- update$(uiDefinitionContainer) {
2762
- const serviceUrl = this.getServiceUrl(uiDefinitionContainer.modelId);
2763
- const dto = uiDefinitionToDTO(uiDefinitionContainer);
2764
- return this.baseHttpService
2765
- .api({
2766
- method: 'put',
2767
- url: `${serviceUrl}/${uiDefinitionContainer.id}`,
2768
- body: dto,
2769
- })
2770
- .pipe(map$1(container => uiDefinitionFromDTO(container)));
2771
- }
2772
- delete$(uiDefinitionContainer) {
2773
- const serviceUrl = this.getServiceUrl(uiDefinitionContainer.modelId);
2774
- return this.baseHttpService.api({
2775
- method: 'delete',
2776
- url: `${serviceUrl}/${uiDefinitionContainer.id}`,
2777
- });
2778
- }
2779
- getServiceUrl(modelId) {
2780
- return `/models/${modelId}/uidefinitions`;
2781
- }
2782
- }
2783
- UIDefinitionsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UIDefinitionsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
2784
- UIDefinitionsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UIDefinitionsApiService });
2785
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UIDefinitionsApiService, decorators: [{
2786
- type: Injectable
2787
- }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
2788
-
2789
- const fromUIComponentStoryDTO = (dto, attachments) => {
2790
- return {
2791
- id: dto.id,
2792
- name: dto.name,
2793
- uiComponentId: dto.uiComponentId,
2794
- description: dto.description,
2795
- section: attachments.json,
2796
- template: attachments.html,
2797
- script: attachments.js,
2798
- styles: attachments.css,
2799
- };
2800
- };
2801
-
2802
- class UITemplatesApiService {
2803
- constructor(baseHttpService) {
2804
- this.baseHttpService = baseHttpService;
2805
- this.serviceUrl = '/uitemplates';
2806
- this.fetchTemplates$ = (name) => {
2807
- let params = new HttpParams();
2808
- if (name) {
2809
- params = params.append('name', name);
2810
- }
2811
- return this.baseHttpService.api({ url: `${this.serviceUrl}`, params });
2812
- };
2813
- this.createTemplate$ = (template) => {
2814
- return this.baseHttpService.api({
2815
- method: 'post',
2816
- url: `${this.serviceUrl}`,
2817
- body: template,
2818
- });
2819
- };
2820
- this.updateTemplate$ = (template) => {
2821
- return this.baseHttpService.api({
2822
- method: 'put',
2823
- url: `${this.serviceUrl}/${template.id}`,
2824
- body: template,
2825
- });
2826
- };
2827
- this.duplicateTemplate$ = (template, cloneRequest) => {
2828
- return this.baseHttpService
2829
- .api({
2830
- url: `${this.serviceUrl}/${template.id}/clone`,
2831
- method: 'post',
2832
- body: cloneRequest,
2833
- })
2834
- .pipe(map$1(response => response.clonedRecordId));
2835
- };
2836
- this.removeTemplate$ = (id) => {
2837
- return this.baseHttpService.api({
2838
- method: 'delete',
2839
- url: `${this.serviceUrl}/${id}`,
2840
- });
2841
- };
2842
- this.restoreTemplate$ = (id) => {
2843
- return this.baseHttpService.api({
2844
- method: 'patch',
2845
- url: `${this.serviceUrl}/${id}`,
2846
- });
2847
- };
2848
- this.searchTemplates$ = (data) => {
2849
- return this.baseHttpService.api({
2850
- method: 'post',
2851
- url: `${this.serviceUrl}/search`,
2852
- params: data.params,
2853
- body: data.expression,
2854
- });
2855
- };
2856
- this.fetchComponents$ = (templateId, name) => {
2857
- let params = new HttpParams();
2858
- if (name) {
2859
- params = params.append('name', name);
2860
- }
2861
- return this.baseHttpService.api({
2862
- url: `${this.serviceUrl}/${templateId}/components`,
2863
- params,
2864
- });
2865
- };
2866
- this.fetchComponent$ = (templateId, componentId) => {
2867
- return this.baseHttpService.api({
2868
- url: `${this.serviceUrl}/${templateId}/components/${componentId}`,
2869
- });
2870
- };
2871
- this.createComponent$ = (component) => {
2872
- return this.baseHttpService.api({
2873
- method: 'post',
2874
- url: `${this.serviceUrl}/${component.uiTemplateId}/components`,
2875
- body: component,
2876
- });
2877
- };
2878
- this.updateComponent$ = (component) => {
2879
- return this.baseHttpService.api({
2880
- method: 'put',
2881
- url: `${this.serviceUrl}/${component.uiTemplateId}/components/${component.id}`,
2882
- body: component,
2883
- });
2884
- };
2885
- this.duplicateComponent$ = (component, cloneRequest) => {
2886
- return this.baseHttpService
2887
- .api({
2888
- url: `${this.serviceUrl}/${component.uiTemplateId}/components/${component.id}/clone`,
2889
- method: 'post',
2890
- body: cloneRequest,
2891
- })
2892
- .pipe(map$1(response => response.clonedRecordId));
2893
- };
2894
- this.removeComponent$ = (templateId, componentId) => {
2895
- return this.baseHttpService.api({
2896
- method: 'delete',
2897
- url: `${this.serviceUrl}/${templateId}/components/${componentId}`,
2898
- });
2899
- };
2900
- this.restoreComponent$ = (templateId, componentId) => {
2901
- return this.baseHttpService.api({
2902
- method: 'patch',
2903
- url: `${this.serviceUrl}/${templateId}/components/${componentId}`,
2904
- });
2905
- };
2906
- this.searchComponents$ = (templateId, data) => {
2907
- return this.baseHttpService.api({
2908
- method: 'post',
2909
- url: `${this.serviceUrl}/${templateId}/components/search`,
2910
- params: data.params,
2911
- body: data.expression,
2912
- });
2913
- };
2914
- this.fetchStoryAttachment = (templateId, componentId, storyId, type) => {
2915
- return this.baseHttpService
2916
- .api({
2917
- url: `${this.serviceUrl}/${templateId}/components/${componentId}/stories/${storyId}/attachments/${type}/file`,
2918
- responseType: 'text',
2919
- errorHandler: noop,
2920
- })
2921
- .pipe(catchError$1(() => of('')));
2922
- };
2923
- this.convertToComponentStory$ = (templateId, componentId, storyDto) => {
2924
- return forkJoin([
2925
- this.fetchStoryAttachment(templateId, componentId, storyDto.id, 'html'),
2926
- this.fetchStoryAttachment(templateId, componentId, storyDto.id, 'js'),
2927
- this.fetchStoryAttachment(templateId, componentId, storyDto.id, 'css'),
2928
- this.fetchStoryAttachment(templateId, componentId, storyDto.id, 'json'),
2929
- ]).pipe(map$1(([html, js, css, json]) => ({ html, js, css, json })), map$1(attachments => fromUIComponentStoryDTO(storyDto, attachments)));
2930
- };
2931
- this.fetchStories$ = (templateId, componentId, name) => {
2932
- let params = new HttpParams();
2933
- if (name) {
2934
- params = params.append('name', name);
2935
- }
2936
- return this.baseHttpService
2937
- .api({
2938
- url: `${this.serviceUrl}/${templateId}/components/${componentId}/stories`,
2939
- params,
2940
- })
2941
- .pipe(switchMap(dtos => {
2942
- if (!dtos.length) {
2943
- return of([]);
2944
- }
2945
- return forkJoin(dtos.map(dto => this.convertToComponentStory$(templateId, componentId, dto)));
2946
- }));
2947
- };
2948
- this.fetchStory$ = (templateId, componentId, storyId) => {
2949
- return this.baseHttpService
2950
- .api({
2951
- url: `${this.serviceUrl}/${templateId}/components/${componentId}/stories/${storyId}`,
2952
- })
2953
- .pipe(switchMap(dto => this.convertToComponentStory$(templateId, componentId, dto)));
2954
- };
2955
- this.createComponentStory$ = (templateId, story) => {
2956
- return this.baseHttpService.api({
2957
- method: 'post',
2958
- url: `${this.serviceUrl}/${templateId}/components/${story.uiComponentId}/stories`,
2959
- body: story,
2960
- });
2961
- };
2962
- this.updateComponentStory$ = (templateId, story) => {
2963
- const { script, template, styles, section, ...rest } = story;
2964
- return this.baseHttpService
2965
- .api({
2966
- method: 'put',
2967
- url: `${this.serviceUrl}/${templateId}/components/${story.uiComponentId}/stories/${story.id}`,
2968
- body: rest,
2969
- })
2970
- .pipe(map$1(dto => fromUIComponentStoryDTO(dto, { html: template, js: script, css: styles, json: section })));
2971
- };
2972
- this.duplicateComponentStory$ = (story, cloneRequest) => {
2973
- return this.baseHttpService
2974
- .api({
2975
- url: `${this.serviceUrl}/${story.template}/components/${story.uiComponentId}/stories/${story.id}/clone`,
2976
- method: 'post',
2977
- body: cloneRequest,
2978
- })
2979
- .pipe(map$1(response => response.clonedRecordId));
2980
- };
2981
- this.deleteComponentStory$ = (templateId, componentId, storyId) => {
2982
- return this.baseHttpService.api({
2983
- method: 'delete',
2984
- url: `${this.serviceUrl}/${templateId}/components/${componentId}/stories/${storyId}`,
2985
- });
2986
- };
2987
- this.restoreComponentStory$ = (templateId, componentId, storyId) => {
2988
- return this.baseHttpService.api({
2989
- method: 'patch',
2990
- url: `${this.serviceUrl}/${templateId}/components/${componentId}/stories/${storyId}`,
2991
- });
2992
- };
2993
- this.uploadStoryAttachments$ = (templateId, componentId, storyId, attachments) => {
2994
- const formData = new FormData();
2995
- if (attachments.html != null) {
2996
- formData.append('html', new Blob([attachments.html]), 'story-template.html');
2997
- }
2998
- if (attachments.css != null) {
2999
- formData.append('css', new Blob([attachments.css]), 'story-styles.css');
3000
- }
3001
- if (attachments.js != null) {
3002
- formData.append('js', new Blob([attachments.js]), 'story-script.js');
3003
- }
3004
- if (attachments.json != null) {
3005
- formData.append('json', new Blob([attachments.json]), 'story-section.json');
3006
- }
3007
- return this.baseHttpService.upload({
3008
- method: 'post',
3009
- url: `${this.serviceUrl}/${templateId}/components/${componentId}/stories/${storyId}/attachments`,
3010
- body: formData,
3011
- });
3012
- };
3013
- this.fetchComponentAttachments$ = (templateId, component) => {
3014
- return forkJoin([
3015
- this.fetchComponentAttachmentFile$(templateId, component.id, 'html'),
3016
- this.fetchComponentAttachmentFile$(templateId, component.id, 'js'),
3017
- this.fetchComponentAttachmentFile$(templateId, component.id, 'css'),
3018
- this.fetchComponentAttachmentFile$(templateId, component.id, 'json'),
3019
- ]).pipe(map$1(([html, js, css, json]) => ({ html, js, css, json })));
3020
- };
3021
- this.fetchComponentsAttachments$ = (templateId) => {
3022
- return this.fetchComponents$(templateId).pipe(switchMap(components => {
3023
- return forkJoin(components.map(component => this.fetchComponentAttachments$(templateId, component)));
3024
- }));
3025
- };
3026
- this.fetchComponentAttachmentFile$ = (templateId, componentId, attachmentType) => {
3027
- return this.baseHttpService
3028
- .api({
3029
- method: 'get',
3030
- url: `${this.serviceUrl}/${templateId}/components/${componentId}/attachments/${attachmentType}/file`,
3031
- responseType: 'text',
3032
- errorHandler: noop,
3033
- })
3034
- .pipe(catchError$1(() => of('')));
3035
- };
3036
- this.uploadComponentAttachments$ = (templateId, componentId, attachments) => {
3037
- const formData = new FormData();
3038
- if (attachments.html != null) {
3039
- formData.append('html', new Blob([attachments.html]), 'template.html');
3040
- }
3041
- if (attachments.css != null) {
3042
- formData.append('css', new Blob([attachments.css]), 'styles.css');
3043
- }
3044
- if (attachments.js != null) {
3045
- formData.append('js', new Blob([attachments.js]), 'script.js');
3046
- }
3047
- if (attachments.json != null) {
3048
- formData.append('json', new Blob([attachments.json]), 'section.json');
3049
- }
3050
- return this.baseHttpService.upload({
3051
- method: 'post',
3052
- url: `${this.serviceUrl}/${templateId}/components/${componentId}/attachments`,
3053
- body: formData,
3054
- });
3055
- };
3056
- }
3057
- getTemplateThumbnailUrl(templateId) {
3058
- return `${this.serviceUrl}/${templateId}/thumbnail/file`;
3059
- }
3060
- attachTemplateThumbnail$(templateId, file) {
3061
- const data = new FormData();
3062
- data.append('thumb', file);
3063
- return this.baseHttpService.upload({
3064
- method: 'post',
3065
- url: `${this.serviceUrl}/${templateId}/thumbnail`,
3066
- body: data,
3067
- });
3068
- }
3069
- removeTemplateThumbnail$(templateId) {
3070
- return this.baseHttpService.api({
3071
- method: 'delete',
3072
- url: `${this.serviceUrl}/${templateId}/thumbnail`,
3073
- });
3074
- }
3075
- }
3076
- UITemplatesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UITemplatesApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
3077
- UITemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UITemplatesApiService });
3078
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UITemplatesApiService, decorators: [{
3079
- type: Injectable
3080
- }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
3081
-
3082
1873
  class VeloceObjectsApiService {
3083
1874
  constructor(baseHttpService) {
3084
1875
  this.baseHttpService = baseHttpService;
@@ -3167,24 +1958,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
3167
1958
  class ApiModule {
3168
1959
  }
3169
1960
  ApiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3170
- ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, imports: [HttpClientModule] });
1961
+ ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, imports: [HttpClientModule, ApiV2Module] });
3171
1962
  ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, providers: [
3172
1963
  BaseHttpService,
3173
1964
  XrayService,
3174
- ConfigurationApiService,
3175
1965
  ConfigurationSettingsApiService,
3176
- ContextApiService,
3177
1966
  DocumentAttachmentApiService,
3178
1967
  PriceApiService,
3179
- ProductModelApiService,
3180
- ProceduresApiService,
3181
- QuoteApiService,
3182
1968
  RampApiService,
3183
1969
  SalesforceApiService,
3184
- UITemplatesApiService,
3185
- ScriptsApiService,
3186
- RulesApiService,
3187
- RuleGroupsApiService,
3188
1970
  FlowsApiService,
3189
1971
  GuidedSellingsAdminApiService,
3190
1972
  ShoppingCartSettingsApiService,
@@ -3198,7 +1980,6 @@ ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.
3198
1980
  EndpointsApiService,
3199
1981
  OrgInfoApiService,
3200
1982
  OffersApiService,
3201
- UIDefinitionsApiService,
3202
1983
  VeloceObjectsApiService,
3203
1984
  StatefulConfigurationApiService,
3204
1985
  RebateProgramApiService,
@@ -3207,33 +1988,21 @@ ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.
3207
1988
  VeloceAuthService,
3208
1989
  ContractedPriceApiService,
3209
1990
  PortalsApiService,
3210
- ConfigurationProcessorsApiService,
3211
1991
  FlowStateApiService,
3212
1992
  SandboxManagerApiService,
3213
- RlmApiService,
3214
- RlmQuoteApiService,
3215
- ], imports: [HttpClientModule] });
1993
+ ], imports: [HttpClientModule, ApiV2Module] });
3216
1994
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, decorators: [{
3217
1995
  type: NgModule,
3218
1996
  args: [{
3219
- imports: [HttpClientModule],
1997
+ imports: [HttpClientModule, ApiV2Module],
3220
1998
  providers: [
3221
1999
  BaseHttpService,
3222
2000
  XrayService,
3223
- ConfigurationApiService,
3224
2001
  ConfigurationSettingsApiService,
3225
- ContextApiService,
3226
2002
  DocumentAttachmentApiService,
3227
2003
  PriceApiService,
3228
- ProductModelApiService,
3229
- ProceduresApiService,
3230
- QuoteApiService,
3231
2004
  RampApiService,
3232
2005
  SalesforceApiService,
3233
- UITemplatesApiService,
3234
- ScriptsApiService,
3235
- RulesApiService,
3236
- RuleGroupsApiService,
3237
2006
  FlowsApiService,
3238
2007
  GuidedSellingsAdminApiService,
3239
2008
  ShoppingCartSettingsApiService,
@@ -3247,7 +2016,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
3247
2016
  EndpointsApiService,
3248
2017
  OrgInfoApiService,
3249
2018
  OffersApiService,
3250
- UIDefinitionsApiService,
3251
2019
  VeloceObjectsApiService,
3252
2020
  StatefulConfigurationApiService,
3253
2021
  RebateProgramApiService,
@@ -3256,11 +2024,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
3256
2024
  VeloceAuthService,
3257
2025
  ContractedPriceApiService,
3258
2026
  PortalsApiService,
3259
- ConfigurationProcessorsApiService,
3260
2027
  FlowStateApiService,
3261
2028
  SandboxManagerApiService,
3262
- RlmApiService,
3263
- RlmQuoteApiService,
3264
2029
  ],
3265
2030
  }]
3266
2031
  }] });
@@ -3269,5 +2034,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
3269
2034
  * Generated bundle index. Do not edit.
3270
2035
  */
3271
2036
 
3272
- export { AccountApiService, ApiModule, CatalogAdminApiService, CatalogApiService, ConfigurationApiService, ConfigurationProcessorsApiService, ConfigurationSettingsApiService, ContextApiService, ContractedPriceApiService, DeltaApiService, DocumentAttachmentApiService, EndpointsApiService, FlowStateApiService, FlowsApiService, GuidedSellingApiService, GuidedSellingsAdminApiService, OffersApiService, OrgInfoApiService, PicklistsApiService, PortalsApiService, PriceApiService, ProceduresApiService, ProductApiService, ProductModelApiService, PromotionsApiService, QuoteApiService, RampApiService, RebateProgramApiService, RebateTypeApiService, RlmApiService, RlmQuoteApiService, RuleGroupsApiService, RulesApiService, SalesforceApiService, SandboxManagerApiService, ScriptsApiService, ShoppingCartSettingsApiService, StatefulConfigurationApiService, UIDefinitionsApiService, UITemplatesApiService, VeloceAuthService, VeloceObjectsApiService, fromUIComponentStoryDTO, handleCanvasResponse };
2037
+ export { AccountApiService, ApiModule, CatalogAdminApiService, CatalogApiService, ConfigurationSettingsApiService, ContractedPriceApiService, DeltaApiService, DocumentAttachmentApiService, EndpointsApiService, FlowStateApiService, FlowsApiService, GuidedSellingApiService, GuidedSellingsAdminApiService, OffersApiService, OrgInfoApiService, PicklistsApiService, PortalsApiService, PriceApiService, ProductApiService, PromotionsApiService, RampApiService, RebateProgramApiService, RebateTypeApiService, SalesforceApiService, SandboxManagerApiService, ShoppingCartSettingsApiService, StatefulConfigurationApiService, VeloceAuthService, VeloceObjectsApiService, handleCanvasResponse };
3273
2038
  //# sourceMappingURL=veloceapps-api.mjs.map