@veloceapps/api 11.0.0-12 → 11.0.0-120

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 (133) hide show
  1. package/esm2020/src/index.mjs +1 -19
  2. package/esm2020/src/lib/api.module.mjs +1 -55
  3. package/esm2020/src/lib/types/index.mjs +1 -3
  4. package/esm2020/src/lib/types/stateful-configuration.types.mjs +1 -1
  5. package/esm2020/v2/api-v2.module.mjs +44 -22
  6. package/esm2020/v2/services/cache-api.service.mjs +22 -0
  7. package/esm2020/v2/services/catalog-admin-api.service.mjs +192 -0
  8. package/esm2020/v2/services/catalog-api.service.mjs +90 -0
  9. package/esm2020/v2/services/configuration-settings-api.service.mjs +89 -0
  10. package/esm2020/v2/services/context-definition-admin-api.service.mjs +73 -0
  11. package/esm2020/v2/services/document-attachment-api.service.mjs +66 -0
  12. package/esm2020/v2/services/endpoints-admin-api.service.mjs +79 -0
  13. package/esm2020/v2/services/flows-api.service.mjs +29 -0
  14. package/esm2020/v2/services/functions-admin-api.service.mjs +116 -0
  15. package/esm2020/v2/services/guided-sellings-admin-api.service.mjs +65 -0
  16. package/esm2020/v2/services/guided-sellings-api.service.mjs +37 -0
  17. package/esm2020/v2/services/index.mjs +22 -11
  18. package/esm2020/v2/services/orchestrations-admin-api.service.mjs +87 -0
  19. package/esm2020/v2/services/orchestrations-api.service.mjs +23 -0
  20. package/esm2020/v2/services/pcm-api.service.mjs +38 -0
  21. package/esm2020/v2/services/picklists-admin-api.service.mjs +41 -0
  22. package/esm2020/v2/services/products-admin-api.service.mjs +90 -0
  23. package/esm2020/v2/services/sales-transactions-api.service.mjs +20 -36
  24. package/esm2020/v2/services/salesforce-api.service.mjs +83 -0
  25. package/esm2020/v2/services/shopping-cart-settings-api.service.mjs +28 -0
  26. package/esm2020/v2/services/ui-definitions-admin-api.service.mjs +70 -0
  27. package/esm2020/v2/services/ui-templates-admin-api.service.mjs +286 -0
  28. package/esm2020/v2/services/veloce-objects-api.service.mjs +90 -0
  29. package/esm2020/v2/types/attachment.types.mjs +2 -0
  30. package/esm2020/v2/types/dto/configuration-settings-dto.types.mjs +22 -0
  31. package/esm2020/v2/types/dto/ui-definition-dto.types.mjs +2 -0
  32. package/esm2020/v2/types/function.types.mjs +2 -0
  33. package/esm2020/v2/types/index.mjs +4 -1
  34. package/esm2020/v2/types/pcm.types.mjs +2 -0
  35. package/esm2020/v2/types/procedure.types.mjs +1 -1
  36. package/esm2020/v2/types/sales-transaction.types.mjs +1 -1
  37. package/esm2020/v2/types/search-request.types.mjs +2 -0
  38. package/esm2020/v2/utils/ui-definition.utils.mjs +23 -0
  39. package/fesm2015/veloceapps-api-v2.mjs +1127 -411
  40. package/fesm2015/veloceapps-api-v2.mjs.map +1 -1
  41. package/fesm2015/veloceapps-api.mjs +68 -1476
  42. package/fesm2015/veloceapps-api.mjs.map +1 -1
  43. package/fesm2020/veloceapps-api-v2.mjs +1255 -460
  44. package/fesm2020/veloceapps-api-v2.mjs.map +1 -1
  45. package/fesm2020/veloceapps-api.mjs +107 -1593
  46. package/fesm2020/veloceapps-api.mjs.map +1 -1
  47. package/package.json +1 -1
  48. package/src/index.d.ts +0 -18
  49. package/src/lib/types/index.d.ts +0 -2
  50. package/src/lib/types/stateful-configuration.types.d.ts +1 -2
  51. package/v2/services/cache-api.service.d.ts +11 -0
  52. package/{src/lib → v2}/services/catalog-admin-api.service.d.ts +2 -2
  53. package/{src/lib → v2}/services/catalog-api.service.d.ts +5 -5
  54. package/{src/lib → v2}/services/configuration-settings-api.service.d.ts +1 -2
  55. package/v2/services/{context-definition-api.service.d.ts → context-definition-admin-api.service.d.ts} +5 -4
  56. package/{src/lib → v2}/services/document-attachment-api.service.d.ts +1 -1
  57. package/{src/lib/services/endpoints-api.service.d.ts → v2/services/endpoints-admin-api.service.d.ts} +3 -4
  58. package/v2/services/functions-admin-api.service.d.ts +25 -0
  59. package/v2/services/index.d.ts +21 -10
  60. package/v2/services/orchestrations-admin-api.service.d.ts +21 -0
  61. package/v2/services/orchestrations-api.service.d.ts +12 -0
  62. package/v2/services/pcm-api.service.d.ts +12 -0
  63. package/{src/lib/services/picklists-api.service.d.ts → v2/services/picklists-admin-api.service.d.ts} +3 -3
  64. package/v2/services/products-admin-api.service.d.ts +21 -0
  65. package/v2/services/sales-transactions-api.service.d.ts +11 -5
  66. package/{src/lib → v2}/services/salesforce-api.service.d.ts +1 -0
  67. package/v2/services/ui-definitions-admin-api.service.d.ts +18 -0
  68. package/v2/services/{ui-templates-api.service.d.ts → ui-templates-admin-api.service.d.ts} +3 -3
  69. package/{src/lib → v2}/services/veloce-objects-api.service.d.ts +3 -3
  70. package/v2/types/dto/ui-definition-dto.types.d.ts +7 -0
  71. package/v2/types/function.types.d.ts +14 -0
  72. package/v2/types/index.d.ts +3 -0
  73. package/v2/types/pcm.types.d.ts +10 -0
  74. package/v2/types/procedure.types.d.ts +58 -7
  75. package/v2/types/sales-transaction.types.d.ts +6 -3
  76. package/v2/types/search-request.types.d.ts +8 -0
  77. package/v2/utils/ui-definition.utils.d.ts +5 -0
  78. package/esm2020/src/lib/services/catalog-admin-api.service.mjs +0 -192
  79. package/esm2020/src/lib/services/catalog-api.service.mjs +0 -90
  80. package/esm2020/src/lib/services/configuration-api.service.mjs +0 -122
  81. package/esm2020/src/lib/services/configuration-settings-api.service.mjs +0 -96
  82. package/esm2020/src/lib/services/delta-api.service.mjs +0 -23
  83. package/esm2020/src/lib/services/document-attachment-api.service.mjs +0 -66
  84. package/esm2020/src/lib/services/endpoints-api.service.mjs +0 -80
  85. package/esm2020/src/lib/services/flows-api.service.mjs +0 -29
  86. package/esm2020/src/lib/services/guided-sellings-admin-api.service.mjs +0 -65
  87. package/esm2020/src/lib/services/guided-sellings-api.service.mjs +0 -37
  88. package/esm2020/src/lib/services/picklists-api.service.mjs +0 -41
  89. package/esm2020/src/lib/services/price-api.service.mjs +0 -63
  90. package/esm2020/src/lib/services/product-api.service.mjs +0 -153
  91. package/esm2020/src/lib/services/product-model-api.service.mjs +0 -223
  92. package/esm2020/src/lib/services/ramp-api.service.mjs +0 -31
  93. package/esm2020/src/lib/services/salesforce-api.service.mjs +0 -79
  94. package/esm2020/src/lib/services/shopping-cart-settings-api.service.mjs +0 -28
  95. package/esm2020/src/lib/services/veloce-objects-api.service.mjs +0 -90
  96. package/esm2020/src/lib/types/attachment.types.mjs +0 -2
  97. package/esm2020/src/lib/types/dto/configuration-settings-dto.types.mjs +0 -22
  98. package/esm2020/src/lib/types/price.types.mjs +0 -2
  99. package/esm2020/src/lib/types/quote.types.mjs +0 -2
  100. package/esm2020/src/lib/types/ramp-request.types.mjs +0 -2
  101. package/esm2020/v2/services/context-definition-api.service.mjs +0 -62
  102. package/esm2020/v2/services/procedures-admin-api.service.mjs +0 -82
  103. package/esm2020/v2/services/procedures-api.service.mjs +0 -44
  104. package/esm2020/v2/services/rule-groups-admin-api.service.mjs +0 -62
  105. package/esm2020/v2/services/rules-admin-api.service.mjs +0 -98
  106. package/esm2020/v2/services/rules-api.service.mjs +0 -36
  107. package/esm2020/v2/services/scripts-admin-api.service.mjs +0 -75
  108. package/esm2020/v2/services/scripts-api.service.mjs +0 -23
  109. package/esm2020/v2/services/ui-definitions-api.service.mjs +0 -132
  110. package/esm2020/v2/services/ui-templates-api.service.mjs +0 -286
  111. package/src/lib/services/configuration-api.service.d.ts +0 -23
  112. package/src/lib/services/delta-api.service.d.ts +0 -12
  113. package/src/lib/services/price-api.service.d.ts +0 -16
  114. package/src/lib/services/product-api.service.d.ts +0 -31
  115. package/src/lib/services/product-model-api.service.d.ts +0 -29
  116. package/src/lib/services/ramp-api.service.d.ts +0 -13
  117. package/src/lib/types/price.types.d.ts +0 -5
  118. package/src/lib/types/quote.types.d.ts +0 -8
  119. package/src/lib/types/ramp-request.types.d.ts +0 -13
  120. package/v2/services/procedures-admin-api.service.d.ts +0 -23
  121. package/v2/services/procedures-api.service.d.ts +0 -15
  122. package/v2/services/rule-groups-admin-api.service.d.ts +0 -18
  123. package/v2/services/rules-admin-api.service.d.ts +0 -22
  124. package/v2/services/rules-api.service.d.ts +0 -11
  125. package/v2/services/scripts-admin-api.service.d.ts +0 -20
  126. package/v2/services/scripts-api.service.d.ts +0 -11
  127. package/v2/services/ui-definitions-api.service.d.ts +0 -24
  128. /package/{src/lib → v2}/services/flows-api.service.d.ts +0 -0
  129. /package/{src/lib → v2}/services/guided-sellings-admin-api.service.d.ts +0 -0
  130. /package/{src/lib → v2}/services/guided-sellings-api.service.d.ts +0 -0
  131. /package/{src/lib → v2}/services/shopping-cart-settings-api.service.d.ts +0 -0
  132. /package/{src/lib → v2}/types/attachment.types.d.ts +0 -0
  133. /package/{src/lib → v2}/types/dto/configuration-settings-dto.types.d.ts +0 -0
@@ -1,14 +1,13 @@
1
1
  import * as i1$1 from '@angular/common/http';
2
- import { HttpParams, HttpHeaders, HttpErrorResponse, HttpClientModule } from '@angular/common/http';
2
+ import { HttpParams, HttpHeaders, HttpClientModule } from '@angular/common/http';
3
3
  import * as i0 from '@angular/core';
4
4
  import { Injectable, NgModule } from '@angular/core';
5
5
  import { ApiV2Module } from '@veloceapps/api/v2';
6
6
  import * as i1 from '@veloceapps/core';
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';
9
- import { map, catchError, tap } from 'rxjs/operators';
10
- import * as i1$2 from 'primeng/api';
7
+ import { isApexError, isCanvasError, BaseHttpService, XrayService } from '@veloceapps/core';
8
+ import { map, from, catchError, of } from 'rxjs';
11
9
  import { isArray } from 'lodash';
10
+ import * as i1$2 from 'primeng/api';
12
11
 
13
12
  class AccountApiService {
14
13
  constructor(httpService) {
@@ -80,731 +79,75 @@ class AccountApiService {
80
79
  }
81
80
  orderToAsset(accountId, orderId, options) {
82
81
  return this.httpService.api({
83
- url: `${this.SERVICE_URL}/${accountId}/orders/${orderId}/to-asset`,
84
- method: 'post',
85
- body: { id: orderId },
86
- ...options,
87
- });
88
- }
89
- }
90
- AccountApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccountApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
91
- AccountApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccountApiService });
92
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccountApiService, decorators: [{
93
- type: Injectable
94
- }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
95
-
96
- class VeloceAuthService {
97
- constructor(http) {
98
- this.http = http;
99
- }
100
- auth$(instanceUrl, accessToken) {
101
- const headers = new HttpHeaders({
102
- 'Content-Type': 'application/json',
103
- Authorization: `Bearer ${accessToken}`,
104
- });
105
- return this.http.get(`${instanceUrl}/services/apexrest/VELOCE_PRISM/veloce-auth`, { headers });
106
- }
107
- }
108
- VeloceAuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceAuthService, deps: [{ token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
109
- VeloceAuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceAuthService });
110
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceAuthService, decorators: [{
111
- type: Injectable
112
- }], ctorParameters: function () { return [{ type: i1$1.HttpClient }]; } });
113
-
114
- class CatalogAdminApiService {
115
- constructor(baseHttpService) {
116
- this.baseHttpService = baseHttpService;
117
- this.serviceUrl = '/catalogs';
118
- this.fetchCatalogs$ = (searchParams) => {
119
- const params = new HttpParams({ fromObject: { ...searchParams } });
120
- return this.baseHttpService.api({ url: `${this.serviceUrl}`, params });
121
- };
122
- this.searchCatalogs$ = (searchParams, expression) => {
123
- const params = new HttpParams({ fromObject: { ...searchParams } });
124
- return this.baseHttpService.api({
125
- method: 'post',
126
- url: `${this.serviceUrl}/search`,
127
- params,
128
- body: expression || {},
129
- });
130
- };
131
- this.fetchCategories$ = (catalogId) => {
132
- return this.baseHttpService.api({ url: `${this.serviceUrl}/${catalogId}/categories` });
133
- };
134
- this.searchProducts$ = (catalogId, categoryId) => {
135
- return this.baseHttpService.api({
136
- method: 'post',
137
- url: `${this.serviceUrl}/${catalogId}/categories/${categoryId}/products/search`,
138
- body: {},
139
- });
140
- };
141
- this.fetchAttributes$ = (catalogId, categoryId) => {
142
- return this.baseHttpService.api({ url: `${this.serviceUrl}/${catalogId}/categories/${categoryId}/attributes` });
143
- };
144
- this.createNewCatalog$ = (catalogData) => {
145
- return this.baseHttpService.api({
146
- url: `${this.serviceUrl}`,
147
- method: 'post',
148
- body: catalogData,
149
- });
150
- };
151
- this.duplicateCatalog$ = (cloneRequest) => {
152
- return this.baseHttpService.api({
153
- url: `${this.serviceUrl}/${cloneRequest.id}/clone`,
154
- method: 'post',
155
- body: cloneRequest,
156
- });
157
- };
158
- this.updateCatalog$ = (data) => {
159
- return this.baseHttpService.api({
160
- url: `${this.serviceUrl}/${data.id}`,
161
- method: 'put',
162
- body: data,
163
- });
164
- };
165
- this.removeCatalog$ = (id) => {
166
- return this.baseHttpService.api({
167
- url: `${this.serviceUrl}/${id}`,
168
- method: 'delete',
169
- });
170
- };
171
- this.restoreCatalog$ = (id) => {
172
- return this.baseHttpService.api({
173
- url: `${this.serviceUrl}/${id}/restore`,
174
- method: 'patch',
175
- });
176
- };
177
- this.createNewCategory$ = (categoryData) => {
178
- return this.baseHttpService.api({
179
- url: `${this.serviceUrl}/${categoryData.catalogId}/categories`,
180
- method: 'post',
181
- body: categoryData,
182
- });
183
- };
184
- this.updateCategory$ = (category) => {
185
- return this.baseHttpService.api({
186
- url: `${this.serviceUrl}/${category.catalogId}/categories/${category.id}`,
187
- method: 'put',
188
- body: category,
189
- });
190
- };
191
- this.duplicateCategory$ = (catalogId, cloneRequest) => {
192
- return this.baseHttpService.api({
193
- url: `${this.serviceUrl}/${catalogId}/categories/${cloneRequest.id}/clone`,
194
- method: 'post',
195
- body: cloneRequest,
196
- });
197
- };
198
- this.removeCategory$ = (id, catalogId) => {
199
- return this.baseHttpService.api({
200
- url: `${this.serviceUrl}/${catalogId}/categories/${id}`,
201
- method: 'delete',
202
- });
203
- };
204
- this.restoreCategory$ = (id, catalogId) => {
205
- return this.baseHttpService.api({
206
- url: `${this.serviceUrl}/${catalogId}/categories/${id}/restore`,
207
- method: 'patch',
208
- });
209
- };
210
- this.removeAttribute$ = ({ catalogId, categoryId, data, }) => {
211
- return this.baseHttpService.api({
212
- method: 'delete',
213
- url: `${this.serviceUrl}/${catalogId}/categories/${categoryId}/attributes/${data.id}`,
214
- body: data,
215
- });
216
- };
217
- this.restoreAttribute$ = ({ catalogId, categoryId, data, }) => {
218
- return this.baseHttpService.api({
219
- url: `${this.serviceUrl}/${catalogId}/categories/${categoryId}/attributes/${data.id}/restore`,
220
- method: 'patch',
221
- });
222
- };
223
- this.createNewAttribute$ = ({ catalogId, categoryId, data, }) => {
224
- return this.baseHttpService.api({
225
- method: 'post',
226
- url: `${this.serviceUrl}/${catalogId}/categories/${categoryId}/attributes`,
227
- body: data,
228
- });
229
- };
230
- this.updateAttribute$ = ({ catalogId, categoryId, data, }) => {
231
- return this.baseHttpService.api({
232
- method: 'put',
233
- url: `${this.serviceUrl}/${catalogId}/categories/${categoryId}/attributes/${data.id}`,
234
- body: data,
235
- });
236
- };
237
- this.searchProductCandidates$ = (catalogId, categoryId, expression, searchParams) => {
238
- const params = new HttpParams({ fromObject: { ...searchParams } });
239
- return this.baseHttpService.api({
240
- method: 'post',
241
- url: `${this.serviceUrl}/${catalogId}/categories/${categoryId}/candidates/search`,
242
- params,
243
- body: expression,
244
- });
245
- };
246
- this.addProduct$ = (product, catalogId, categoryId) => {
247
- return this.baseHttpService.api({
248
- method: 'post',
249
- url: `${this.serviceUrl}/${catalogId}/categories/${categoryId}/products`,
250
- body: product,
251
- });
252
- };
253
- this.updateProduct$ = (product, catalogId, categoryId) => {
254
- return this.baseHttpService.api({
255
- method: 'put',
256
- url: `${this.serviceUrl}/${catalogId}/categories/${categoryId}/products/${product.id}`,
257
- body: product,
258
- });
259
- };
260
- this.removeProduct$ = ({ catalogId, categoryId, data, }) => {
261
- return this.baseHttpService.api({
262
- method: 'delete',
263
- url: `${this.serviceUrl}/${catalogId}/categories/${categoryId}/products/${data.id}`,
264
- });
265
- };
266
- }
267
- attachImage$(catalogId, categoryId, file) {
268
- const data = new FormData();
269
- data.append('image', file);
270
- return this.baseHttpService.upload({
271
- method: 'post',
272
- url: `${this.serviceUrl}/${catalogId}/categories/${categoryId}/image`,
273
- body: data,
274
- });
275
- }
276
- removeImage$(catalogId, categoryId) {
277
- return this.baseHttpService.api({
278
- method: 'delete',
279
- url: `${this.serviceUrl}/${catalogId}/categories/${categoryId}/image`,
280
- });
281
- }
282
- fetchImage$(catalogId, categoryId) {
283
- return this.baseHttpService.api({
284
- url: this.getImageUrl(catalogId, categoryId),
285
- method: 'get',
286
- responseType: 'blob',
287
- errorHandler: noop,
288
- });
289
- }
290
- getImageUrl(catalogId, categoryId) {
291
- return `${this.serviceUrl}/${catalogId}/categories/${categoryId}/image`;
292
- }
293
- }
294
- CatalogAdminApiService.MAX_RESULTS = 60;
295
- CatalogAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
296
- CatalogAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogAdminApiService });
297
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogAdminApiService, decorators: [{
298
- type: Injectable
299
- }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
300
-
301
- class CatalogApiService {
302
- constructor(service) {
303
- this.service = service;
304
- this.serviceUrl = '/product-catalogs';
305
- }
306
- fetchCatalogs$() {
307
- return this.service.api({
308
- method: 'get',
309
- url: `${this.serviceUrl}`,
310
- });
311
- }
312
- searchCatalogs$(searchParams, expression) {
313
- const params = new HttpParams({ fromObject: searchParams });
314
- return this.service.api({
315
- method: 'post',
316
- url: `${this.serviceUrl}/search`,
317
- params,
318
- body: expression,
319
- });
320
- }
321
- getCatalog$(id) {
322
- return this.service.api({
323
- method: 'get',
324
- url: `${this.serviceUrl}/${id}`,
325
- });
326
- }
327
- fetchCategories$(catalogId) {
328
- return this.service.api({
329
- method: 'get',
330
- url: `${this.serviceUrl}/${catalogId}/categories`,
331
- });
332
- }
333
- fetchCatalogProducts$(catalogId, searchParams, context) {
334
- const params = new HttpParams({ fromObject: searchParams });
335
- return this.service.api({
336
- method: 'post',
337
- url: `${this.serviceUrl}/${catalogId}/products`,
338
- params,
339
- body: context,
340
- });
341
- }
342
- fetchCategoryProducts$(catalogId, categoryId, searchParams, context) {
343
- const params = new HttpParams({ fromObject: searchParams });
344
- return this.service.api({
345
- method: 'post',
346
- url: `${this.serviceUrl}/${catalogId}/categories/${categoryId}/products`,
347
- params,
348
- body: context,
349
- });
350
- }
351
- searchCategoryProducts$(catalogId, categoryId, searchParams, searchRequest, context) {
352
- const params = new HttpParams({ fromObject: searchParams });
353
- return this.service.api({
354
- method: 'post',
355
- url: `${this.serviceUrl}/${catalogId}/categories/${categoryId}/products/search`,
356
- params,
357
- body: {
358
- configurationContext: context,
359
- request: searchRequest,
360
- },
361
- });
362
- }
363
- fetchEligibleProducts$(searchParams, context) {
364
- const params = new HttpParams({ fromObject: searchParams });
365
- return this.service.api({
366
- method: 'post',
367
- url: `${this.serviceUrl}/products`,
368
- params: params,
369
- body: context,
370
- });
371
- }
372
- fetchProducts$(searchParams) {
373
- const params = new HttpParams({ fromObject: searchParams });
374
- return this.service.api({
375
- method: 'get',
376
- url: `${this.serviceUrl}/products`,
377
- params: params,
378
- });
379
- }
380
- }
381
- CatalogApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
382
- CatalogApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogApiService });
383
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogApiService, decorators: [{
384
- type: Injectable
385
- }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
386
-
387
- class ConfigurationApiService {
388
- constructor(httpService) {
389
- this.httpService = httpService;
390
- this.SERVICE_URL = '/configuration';
391
- }
392
- configureLineItem({ configurationRequest, runtimeModel, pricingEnabled, }) {
393
- return this.httpService
394
- .api({
395
- method: 'post',
396
- url: `${this.SERVICE_URL}${pricingEnabled ? '/price' : ''}`,
397
- body: configurationRequest,
398
- errorHandler: e => throwError(e),
399
- })
400
- .pipe(map(configurePrice => {
401
- if (runtimeModel) {
402
- return {
403
- ...configurePrice,
404
- lineItem: this.updateDomains(configurePrice.lineItem, runtimeModel),
405
- };
406
- }
407
- else {
408
- return configurePrice;
409
- }
410
- }));
411
- }
412
- customConfigurePrice({ url, configurationRequest, runtimeModel, }) {
413
- return this.httpService
414
- .api({
415
- method: 'post',
416
- url,
417
- body: configurationRequest,
418
- errorHandler: e => throwError(e),
419
- })
420
- .pipe(map(configurePrice => {
421
- if (runtimeModel) {
422
- return {
423
- ...configurePrice,
424
- lineItem: this.updateDomains(configurePrice.lineItem, runtimeModel),
425
- };
426
- }
427
- else {
428
- return configurePrice;
429
- }
430
- }));
431
- }
432
- getRuntimeDataByProductId(productId, offeringId, defaultUIDefinitionId, requiredUIDefinitionId) {
433
- return this.httpService
434
- .api({
435
- method: 'get',
436
- url: `${this.SERVICE_URL}/${productId}/model` + ((offeringId && `/${offeringId}`) || ''),
437
- })
438
- .pipe(switchMap(runtimeData => {
439
- if (requiredUIDefinitionId) {
440
- return this.httpService.api({ method: 'get', url: `/uidefinitions/${requiredUIDefinitionId}` }).pipe(map(uiDefinition => {
441
- return { ...runtimeData, uiDefinitions: [uiDefinition] };
442
- }));
443
- }
444
- const params = { productId };
445
- if (defaultUIDefinitionId) {
446
- params['defaultUIDefinitionId'] = defaultUIDefinitionId;
447
- }
448
- return this.httpService.api({ method: 'get', url: `/uidefinitions`, params }).pipe(map(uiDefinitions => {
449
- return { ...runtimeData, uiDefinitions };
450
- }));
451
- }), map(runtimeData => {
452
- return {
453
- ...runtimeData,
454
- uiDefinitions: runtimeData.uiDefinitions.map(dto => uiDefinitionFromDTO(dto)),
455
- };
456
- }));
457
- }
458
- getRuntimeDataByModelId(modelId) {
459
- return this.httpService.api({
460
- method: 'get',
461
- url: `${this.SERVICE_URL}/${modelId}/model-test`,
462
- });
463
- }
464
- updateDomains(lineItem, runtimeModel) {
465
- const component = runtimeModel.components.get(lineItem.type);
466
- const portDomains = { ...lineItem.portDomains };
467
- // loop through ports to look for 'None' type domain computations
468
- for (const port of component?.ports ?? []) {
469
- const portDomain = portDomains[port.name];
470
- if (portDomain?.properties?.['domainComputation'] === DomainComputation.NONE) {
471
- portDomain.domainTypes = port.domainTypes;
472
- }
473
- }
474
- const type = runtimeModel.types.find(({ name }) => {
475
- return lineItem.type === name;
476
- });
477
- const attributeDomains = lineItem.attributeDomains;
478
- if (type) {
479
- const initialDomains = lineItem.attributeDomains;
480
- type.attributes.forEach(attribute => {
481
- if (Object.prototype.hasOwnProperty.call(initialDomains, attribute.name)) {
482
- return;
483
- }
484
- if (attribute.attributeDomain) {
485
- attributeDomains[attribute.name] = attribute.attributeDomain;
486
- }
487
- });
488
- }
489
- return {
490
- ...lineItem,
491
- lineItems: lineItem.lineItems?.map(i => this.updateDomains(i, runtimeModel)),
492
- attributeDomains,
493
- portDomains,
494
- };
495
- }
496
- }
497
- ConfigurationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
498
- ConfigurationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationApiService });
499
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationApiService, decorators: [{
500
- type: Injectable
501
- }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
502
-
503
- class ConfigurationSettingsDTO {
504
- static fromDTO(dto, key) {
505
- return {
506
- id: dto?.id,
507
- key: dto?.key || key || '',
508
- value: dto?.value,
509
- };
510
- }
511
- static toDTO(data) {
512
- return {
513
- id: data.id,
514
- key: data.key,
515
- value: data.value,
516
- };
517
- }
518
- constructor(id, key, value) {
519
- this.id = id;
520
- this.key = key;
521
- this.value = value;
522
- }
523
- }
524
-
525
- class ConfigurationSettingsApiService {
526
- constructor(httpService, messageService) {
527
- this.httpService = httpService;
528
- this.messageService = messageService;
529
- this.SERVICE_URL = '/configuration-settings';
530
- }
531
- fetchSettings(options) {
532
- return this.httpService
533
- .api({
534
- url: `${this.SERVICE_URL}`,
535
- method: 'get',
536
- ...options,
537
- })
538
- .pipe(map((settings) => settings.map(setting => ConfigurationSettingsDTO.fromDTO(setting))));
539
- }
540
- fetchSetting(settingsKey, options) {
541
- return this.httpService
542
- .api({
543
- url: `${this.SERVICE_URL}/byKey/${settingsKey}`,
544
- method: 'get',
545
- ...options,
546
- skipErrorHandler: true,
547
- })
548
- .pipe(map((setting) => ConfigurationSettingsDTO.fromDTO(setting, settingsKey)), catchError(err => {
549
- if (err instanceof HttpErrorResponse && err.status === 404) {
550
- if (!options?.skipErrorHandler) {
551
- this.messageService.add({
552
- severity: 'error',
553
- summary: `Configuration Setting "${settingsKey}" is not found`,
554
- sticky: true,
555
- });
556
- }
557
- return of(null);
558
- }
559
- throw err;
560
- }));
561
- }
562
- createSetting(setting, options) {
563
- const request = ConfigurationSettingsDTO.toDTO(setting);
564
- return this.httpService.api({
565
- url: `${this.SERVICE_URL}`,
566
- method: 'post',
567
- body: {
568
- ...request,
569
- },
570
- ...options,
571
- });
572
- }
573
- updateSetting(setting, options) {
574
- const request = ConfigurationSettingsDTO.toDTO(setting);
575
- return this.httpService.api({
576
- url: `${this.SERVICE_URL}/${request.id}`,
577
- method: 'put',
578
- body: {
579
- ...request,
580
- },
581
- ...options,
582
- });
583
- }
584
- removeSetting(setting, options) {
585
- const request = ConfigurationSettingsDTO.toDTO(setting);
586
- return this.httpService.api({
587
- url: `${this.SERVICE_URL}/${request.id}`,
588
- method: 'delete',
589
- ...options,
590
- });
591
- }
592
- restoreSetting(settingId, options) {
593
- return this.httpService.api({
594
- url: `${this.SERVICE_URL}/${settingId}/restore`,
595
- method: 'patch',
596
- ...options,
597
- });
598
- }
599
- clear(name, options) {
600
- return this.httpService.api({
601
- method: 'get',
602
- url: '/cache/evict/' + name,
603
- ...options,
604
- });
605
- }
606
- }
607
- ConfigurationSettingsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationSettingsApiService, deps: [{ token: i1.BaseHttpService }, { token: i1$2.MessageService }], target: i0.ɵɵFactoryTarget.Injectable });
608
- ConfigurationSettingsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationSettingsApiService });
609
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationSettingsApiService, decorators: [{
610
- type: Injectable
611
- }], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: i1$2.MessageService }]; } });
612
-
613
- class ContractedPriceApiService {
614
- constructor(baseHttpService) {
615
- this.baseHttpService = baseHttpService;
616
- this.serviceUrl = '/admin/contracted-price';
617
- this.fetchContractedPrices$ = () => {
618
- return this.baseHttpService.api({ url: `${this.serviceUrl}` });
619
- };
620
- this.fetchContractedPrice$ = (id) => {
621
- return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
622
- };
623
- this.createContractedPrice$ = (data) => {
624
- return this.baseHttpService.api({
625
- url: `${this.serviceUrl}`,
626
- method: 'put',
627
- body: data,
628
- });
629
- };
630
- this.updateContractedPrice$ = (data) => {
631
- return this.baseHttpService.api({
632
- url: `${this.serviceUrl}/${data.id}`,
633
- method: 'put',
634
- body: data,
635
- });
636
- };
637
- this.searchContractedPrices$ = (searchParams, expression) => {
638
- const params = new HttpParams({ fromObject: { ...searchParams } });
639
- return this.baseHttpService.api({
640
- method: 'post',
641
- url: `${this.serviceUrl}/search`,
642
- params,
643
- body: expression || {},
644
- });
645
- };
646
- }
647
- }
648
- ContractedPriceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContractedPriceApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
649
- ContractedPriceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContractedPriceApiService });
650
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContractedPriceApiService, decorators: [{
651
- type: Injectable
652
- }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
653
-
654
- class DeltaApiService {
655
- constructor(httpService) {
656
- this.httpService = httpService;
657
- this.SERVICE_URL = '/delta';
658
- }
659
- calculate$(request) {
660
- return this.httpService.api({
661
- method: 'post',
662
- url: `${this.SERVICE_URL}/calculate`,
663
- body: request,
664
- skipErrorHandler: true,
665
- });
666
- }
667
- }
668
- DeltaApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DeltaApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
669
- DeltaApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DeltaApiService });
670
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DeltaApiService, decorators: [{
671
- type: Injectable
672
- }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
673
-
674
- class DocumentAttachmentApiService {
675
- constructor(httpService, fileDownloadService) {
676
- this.httpService = httpService;
677
- this.fileDownloadService = fileDownloadService;
678
- this.SERVICE_URL = '/attachments';
679
- }
680
- getAttachments(searchRequest) {
681
- return this.httpService.api({
682
- url: `${this.SERVICE_URL}/search`,
683
- method: 'post',
684
- body: searchRequest,
685
- });
686
- }
687
- createAttachment(attachment, file, reportProgress) {
688
- const formData = new FormData();
689
- if (file) {
690
- formData.append('file', file, file.name);
691
- }
692
- formData.append('attachment', new Blob([JSON.stringify(attachment)], {
693
- type: 'application/json',
694
- }));
695
- return this.httpService.upload({
696
- url: `${this.SERVICE_URL}`,
697
- body: formData,
698
- method: 'post',
699
- observe: reportProgress ? 'events' : undefined,
700
- reportProgress,
701
- });
702
- }
703
- updateAttachment(id, attachment) {
704
- return this.httpService.api({
705
- url: `${this.SERVICE_URL}/${id}`,
706
- body: attachment,
707
- method: 'put',
708
- });
709
- }
710
- getAttachmentFile(id, isPreventDownload) {
711
- return this.httpService
712
- .api({
713
- url: `${this.SERVICE_URL}/${id}/file`,
714
- responseType: isPreventDownload ? 'arraybuffer' : 'blob',
715
- observe: isPreventDownload ? 'body' : 'response',
716
- })
717
- .pipe(tap(response => {
718
- if (!isPreventDownload) {
719
- this.fileDownloadService.processDownload(response);
720
- }
721
- }), map(response => (isPreventDownload ? new Blob([response.body || response]) : response.body || response)));
722
- }
723
- removeAttachment(id) {
724
- return this.httpService.api({
725
- url: `${this.SERVICE_URL}/${id}`,
726
- method: 'delete',
727
- });
728
- }
729
- }
730
- DocumentAttachmentApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentAttachmentApiService, deps: [{ token: i1.BaseHttpService }, { token: i1.FileDownloadService }], target: i0.ɵɵFactoryTarget.Injectable });
731
- DocumentAttachmentApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentAttachmentApiService });
732
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentAttachmentApiService, decorators: [{
733
- type: Injectable
734
- }], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: i1.FileDownloadService }]; } });
735
-
736
- class EndpointsApiService {
737
- constructor(baseHttpService) {
738
- this.baseHttpService = baseHttpService;
739
- this.adminServiceUrl = '/admin/api-endpoints';
740
- this.serviceUrl = '/api-endpoints';
741
- }
742
- fetchEndpoints$() {
743
- return this.searchEndpoints$(new Expression(), 0, -1);
744
- }
745
- searchEndpoints$(expression, skip, count) {
746
- let params = new HttpParams();
747
- params = params.set('skip', '' + skip);
748
- params = params.set('count', '' + count);
749
- return this.baseHttpService.api({
750
- method: 'post',
751
- url: `${this.adminServiceUrl}/search`,
752
- params,
753
- body: expression,
754
- });
755
- }
756
- removeEndpoint$(id) {
757
- return this.baseHttpService.api({
758
- url: `${this.adminServiceUrl}/${id}`,
759
- method: 'delete',
760
- });
761
- }
762
- restoreEndpoint$(id) {
763
- return this.baseHttpService.api({
764
- url: `${this.adminServiceUrl}/${id}/restore`,
765
- method: 'patch',
766
- });
767
- }
768
- fetchEndpoint$(id) {
769
- return this.baseHttpService.api({
770
- url: `${this.adminServiceUrl}/${id}`,
771
- method: 'get',
772
- });
773
- }
774
- createEndpoint$(body) {
775
- return this.baseHttpService.api({
776
- url: `${this.adminServiceUrl}`,
777
- method: 'post',
778
- body,
779
- });
780
- }
781
- updateEndpoint$(body) {
782
- return this.baseHttpService.api({
783
- url: `${this.adminServiceUrl}/${body.id}`,
784
- method: 'put',
785
- body,
786
- });
787
- }
788
- duplicateEndpoint$(cloneRequest) {
789
- return this.baseHttpService.api({
790
- url: `${this.adminServiceUrl}/${cloneRequest.id}/clone`,
82
+ url: `${this.SERVICE_URL}/${accountId}/orders/${orderId}/to-asset`,
791
83
  method: 'post',
792
- body: cloneRequest,
84
+ body: { id: orderId },
85
+ ...options,
793
86
  });
794
87
  }
795
- executeEndpoint$(body) {
796
- return this.baseHttpService.api({
797
- url: `${this.serviceUrl}/execute`,
798
- method: 'post',
799
- body,
800
- responseType: 'text',
801
- skipErrorHandler: true,
88
+ }
89
+ AccountApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccountApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
90
+ AccountApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccountApiService });
91
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccountApiService, decorators: [{
92
+ type: Injectable
93
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
94
+
95
+ class VeloceAuthService {
96
+ constructor(http) {
97
+ this.http = http;
98
+ }
99
+ auth$(instanceUrl, accessToken) {
100
+ const headers = new HttpHeaders({
101
+ 'Content-Type': 'application/json',
102
+ Authorization: `Bearer ${accessToken}`,
802
103
  });
104
+ return this.http.get(`${instanceUrl}/services/apexrest/VELOCE_PRISM/veloce-auth`, { headers });
105
+ }
106
+ }
107
+ VeloceAuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceAuthService, deps: [{ token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
108
+ VeloceAuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceAuthService });
109
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceAuthService, decorators: [{
110
+ type: Injectable
111
+ }], ctorParameters: function () { return [{ type: i1$1.HttpClient }]; } });
112
+
113
+ class ContractedPriceApiService {
114
+ constructor(baseHttpService) {
115
+ this.baseHttpService = baseHttpService;
116
+ this.serviceUrl = '/admin/contracted-price';
117
+ this.fetchContractedPrices$ = () => {
118
+ return this.baseHttpService.api({ url: `${this.serviceUrl}` });
119
+ };
120
+ this.fetchContractedPrice$ = (id) => {
121
+ return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
122
+ };
123
+ this.createContractedPrice$ = (data) => {
124
+ return this.baseHttpService.api({
125
+ url: `${this.serviceUrl}`,
126
+ method: 'put',
127
+ body: data,
128
+ });
129
+ };
130
+ this.updateContractedPrice$ = (data) => {
131
+ return this.baseHttpService.api({
132
+ url: `${this.serviceUrl}/${data.id}`,
133
+ method: 'put',
134
+ body: data,
135
+ });
136
+ };
137
+ this.searchContractedPrices$ = (searchParams, expression) => {
138
+ const params = new HttpParams({ fromObject: { ...searchParams } });
139
+ return this.baseHttpService.api({
140
+ method: 'post',
141
+ url: `${this.serviceUrl}/search`,
142
+ params,
143
+ body: expression || {},
144
+ });
145
+ };
803
146
  }
804
147
  }
805
- EndpointsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EndpointsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
806
- EndpointsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EndpointsApiService });
807
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EndpointsApiService, decorators: [{
148
+ ContractedPriceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContractedPriceApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
149
+ ContractedPriceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContractedPriceApiService });
150
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContractedPriceApiService, decorators: [{
808
151
  type: Injectable
809
152
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
810
153
 
@@ -947,124 +290,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
947
290
  type: Injectable
948
291
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
949
292
 
950
- class FlowsApiService {
951
- constructor(configurationSettingsApiService) {
952
- this.configurationSettingsApiService = configurationSettingsApiService;
953
- this.flowsKey = 'flows';
954
- }
955
- getFlow(id) {
956
- return this.fetchFlows().pipe(map(flows => flows.find(flow => flow.id == id)), map(flow => {
957
- if (!flow) {
958
- throw new Error(`Flow with flowId=${id} is not defined`);
959
- }
960
- return flow;
961
- }));
962
- }
963
- fetchFlows() {
964
- return this.configurationSettingsApiService
965
- .fetchSetting(this.flowsKey)
966
- .pipe(map((setting) => (setting?.value ? JSON.parse(setting.value) : [])));
967
- }
968
- }
969
- FlowsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowsApiService, deps: [{ token: ConfigurationSettingsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
970
- FlowsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowsApiService });
971
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowsApiService, decorators: [{
972
- type: Injectable
973
- }], ctorParameters: function () { return [{ type: ConfigurationSettingsApiService }]; } });
974
-
975
- class GuidedSellingsAdminApiService {
976
- constructor(baseHttpService) {
977
- this.baseHttpService = baseHttpService;
978
- this.serviceUrl = '/admin/guided-selling';
979
- this.fetchGuidedSellings$ = (searchParams) => {
980
- return this.searchGuidedSellings$(searchParams);
981
- };
982
- this.searchGuidedSellings$ = (searchParams, expression) => {
983
- const params = new HttpParams({ fromObject: { ...searchParams } });
984
- return this.baseHttpService.api({
985
- method: 'post',
986
- url: `${this.serviceUrl}/search`,
987
- params,
988
- body: expression || {},
989
- });
990
- };
991
- this.fetchGuidedSelling$ = (id) => {
992
- return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
993
- };
994
- this.createNewGuidedSelling$ = (guidedSelling) => {
995
- return this.baseHttpService.api({
996
- url: `${this.serviceUrl}`,
997
- method: 'post',
998
- body: guidedSelling,
999
- });
1000
- };
1001
- this.duplicateGuidedSelling$ = (cloneRequest) => {
1002
- return this.baseHttpService.api({
1003
- url: `${this.serviceUrl}/${cloneRequest.id}/clone`,
1004
- method: 'post',
1005
- body: cloneRequest,
1006
- });
1007
- };
1008
- this.updateGuidedSelling$ = (data) => {
1009
- return this.baseHttpService.api({
1010
- url: `${this.serviceUrl}/${data.id}`,
1011
- method: 'put',
1012
- body: data,
1013
- });
1014
- };
1015
- this.removeGuidedSelling$ = (id) => {
1016
- return this.baseHttpService.api({
1017
- url: `${this.serviceUrl}/${id}`,
1018
- method: 'delete',
1019
- });
1020
- };
1021
- this.restoreGuidedSelling$ = (id) => {
1022
- return this.baseHttpService.api({
1023
- url: `${this.serviceUrl}/${id}/restore`,
1024
- method: 'patch',
1025
- });
1026
- };
1027
- }
1028
- }
1029
- GuidedSellingsAdminApiService.MAX_RESULTS = 60;
1030
- GuidedSellingsAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingsAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1031
- GuidedSellingsAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingsAdminApiService });
1032
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingsAdminApiService, decorators: [{
1033
- type: Injectable
1034
- }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1035
-
1036
- class GuidedSellingApiService {
1037
- constructor(http) {
1038
- this.http = http;
1039
- this.serviceUrl = '/guided-selling';
1040
- }
1041
- searchByName$(name, searchParams) {
1042
- const params = new HttpParams({ fromObject: { ...searchParams } });
1043
- const expression = new Expression(undefined, [{ key: 'name', operator: Operator.EQ, value: name }]);
1044
- return this.http.api({
1045
- method: 'post',
1046
- url: `${this.serviceUrl}/search`,
1047
- params,
1048
- body: expression || {},
1049
- });
1050
- }
1051
- searchById$(id, searchParams) {
1052
- const params = new HttpParams({ fromObject: { ...searchParams } });
1053
- const expression = new Expression(undefined, [{ key: 'id', operator: Operator.EQ, value: id }]);
1054
- return this.http.api({
1055
- method: 'post',
1056
- url: `${this.serviceUrl}/search`,
1057
- params,
1058
- body: expression || {},
1059
- });
1060
- }
1061
- }
1062
- GuidedSellingApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1063
- GuidedSellingApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingApiService });
1064
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingApiService, decorators: [{
1065
- type: Injectable
1066
- }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1067
-
1068
293
  class OffersApiService {
1069
294
  constructor(baseHttpService) {
1070
295
  this.baseHttpService = baseHttpService;
@@ -1116,7 +341,7 @@ class OffersApiService {
1116
341
  .api({
1117
342
  url: `${this.serviceUrl}/${id}/products`,
1118
343
  })
1119
- .pipe(map$1(response => response.products));
344
+ .pipe(map(response => response.products));
1120
345
  }
1121
346
  upsertOfferProducts$(id, products) {
1122
347
  const request = { products };
@@ -1126,7 +351,7 @@ class OffersApiService {
1126
351
  method: 'put',
1127
352
  body: request,
1128
353
  })
1129
- .pipe(map$1(response => response.products));
354
+ .pipe(map(response => response.products));
1130
355
  }
1131
356
  }
1132
357
  OffersApiService.MAX_RESULTS = 60;
@@ -1182,7 +407,7 @@ class OrgInfoApiService {
1182
407
  getOrgInfo$() {
1183
408
  try {
1184
409
  return window.doCanvasCall && window.ORGANIZATION_ID
1185
- ? from(window.doCanvasCall(`org-info/${window.ORGANIZATION_ID}`, null)).pipe(map$1(response => handleCanvasResponse(response, undefined, this.publishErrorMessage)), catchError$1(() => of(undefined)))
410
+ ? from(window.doCanvasCall(`org-info/${window.ORGANIZATION_ID}`, null)).pipe(map(response => handleCanvasResponse(response, undefined, this.publishErrorMessage)), catchError(() => of(undefined)))
1186
411
  : of(undefined);
1187
412
  }
1188
413
  catch {
@@ -1192,7 +417,7 @@ class OrgInfoApiService {
1192
417
  getAvailableVersionsInfo$() {
1193
418
  try {
1194
419
  return window.doCanvasCall && window.ORGANIZATION_ID
1195
- ? from(window.doCanvasCall('versions/available', 'include_all=true')).pipe(map$1(response => handleCanvasResponse(response, undefined, this.publishErrorMessage)), catchError$1(() => of(undefined)))
420
+ ? from(window.doCanvasCall('versions/available', 'include_all=true')).pipe(map(response => handleCanvasResponse(response, undefined, this.publishErrorMessage)), catchError(() => of(undefined)))
1196
421
  : of(undefined);
1197
422
  }
1198
423
  catch {
@@ -1202,7 +427,7 @@ class OrgInfoApiService {
1202
427
  upgradeVersion$(targetVersion) {
1203
428
  try {
1204
429
  return window.doCanvasCall && window.ORGANIZATION_ID
1205
- ? from(window.doCanvasCall('versions/upgrade', `target_version=${targetVersion}`)).pipe(map$1(response => handleCanvasResponse(response, undefined, this.publishErrorMessage)), catchError$1(() => of(undefined)))
430
+ ? from(window.doCanvasCall('versions/upgrade', `target_version=${targetVersion}`)).pipe(map(response => handleCanvasResponse(response, undefined, this.publishErrorMessage)), catchError(() => of(undefined)))
1206
431
  : of(undefined);
1207
432
  }
1208
433
  catch {
@@ -1216,44 +441,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
1216
441
  type: Injectable
1217
442
  }], ctorParameters: function () { return [{ type: i1$2.MessageService }]; } });
1218
443
 
1219
- class PicklistsApiService {
1220
- constructor(baseHttpService) {
1221
- this.baseHttpService = baseHttpService;
1222
- this.serviceUrl = '/admin';
1223
- this.fetchAllPicklists$ = () => this.baseHttpService.api({ url: `${this.serviceUrl}/picklists` });
1224
- this.fetchPicklist$ = (code) => this.baseHttpService.api({ url: `${this.serviceUrl}/picklists/${code}` });
1225
- this.createPicklist$ = (picklist) => {
1226
- return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/picklists`, body: picklist });
1227
- };
1228
- this.updatePicklist$ = (picklist) => {
1229
- return this.baseHttpService.api({
1230
- method: 'put',
1231
- url: `${this.serviceUrl}/picklists/${picklist.id}`,
1232
- body: picklist,
1233
- });
1234
- };
1235
- this.removePicklist$ = (id) => this.baseHttpService.api({ method: 'delete', url: `${this.serviceUrl}/picklists/${id}` });
1236
- this.restorePicklist$ = (id) => {
1237
- return this.baseHttpService.api({
1238
- url: `${this.serviceUrl}/picklists/${id}/restore`,
1239
- method: 'patch',
1240
- });
1241
- };
1242
- this.addPicklistValue$ = (picklist, value) => {
1243
- const data = {
1244
- ...picklist,
1245
- values: [...picklist.values, value],
1246
- };
1247
- return this.baseHttpService.api({ method: 'put', url: `${this.serviceUrl}/picklists/${picklist.id}`, body: data });
1248
- };
1249
- }
1250
- }
1251
- PicklistsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PicklistsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1252
- PicklistsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PicklistsApiService });
1253
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PicklistsApiService, decorators: [{
1254
- type: Injectable
1255
- }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1256
-
1257
444
  class PortalsApiService {
1258
445
  constructor(baseHttpService) {
1259
446
  this.baseHttpService = baseHttpService;
@@ -1268,487 +455,61 @@ class PortalsApiService {
1268
455
  this.searchPortals$ = (skip = 0, expression) => {
1269
456
  let params = new HttpParams();
1270
457
  params = params.set('skip', '' + skip);
1271
- params = params.set('count', '' + PortalsApiService.MAX_RESULTS);
1272
- return this.baseHttpService.api({
1273
- method: 'post',
1274
- url: `${this.serviceUrl}/search`,
1275
- params,
1276
- body: expression || {},
1277
- });
1278
- };
1279
- this.removePortal$ = (id) => {
1280
- return this.baseHttpService.api({
1281
- url: `${this.serviceUrl}/${id}`,
1282
- method: 'delete',
1283
- });
1284
- };
1285
- this.restore$ = (id) => {
1286
- return this.baseHttpService.api({
1287
- method: 'patch',
1288
- url: `${this.serviceUrl}/${id}/restore`,
1289
- });
1290
- };
1291
- this.duplicatePortal$ = (cloneRequest) => {
1292
- return this.baseHttpService.api({
1293
- url: `${this.serviceUrl}/${cloneRequest.id}/clone`,
1294
- method: 'post',
1295
- body: cloneRequest,
1296
- });
1297
- };
1298
- this.getPortal$ = (id) => {
1299
- return this.baseHttpService.api({
1300
- url: `${this.serviceUrl}/${id}`,
1301
- });
1302
- };
1303
- }
1304
- createNewPortal$(body) {
1305
- return this.baseHttpService.api({
1306
- url: `${this.serviceUrl}`,
1307
- method: 'post',
1308
- body,
1309
- });
1310
- }
1311
- updatePortal$(portal, settings) {
1312
- return this.baseHttpService.api({
1313
- url: `${this.serviceUrl}/${portal.id}`,
1314
- method: 'put',
1315
- body: {
1316
- ...portal,
1317
- settings: JSON.stringify(settings),
1318
- },
1319
- });
1320
- }
1321
- }
1322
- PortalsApiService.MAX_RESULTS = 60;
1323
- PortalsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PortalsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1324
- PortalsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PortalsApiService });
1325
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PortalsApiService, decorators: [{
1326
- type: Injectable
1327
- }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1328
-
1329
- class PriceApiService {
1330
- constructor(httpService) {
1331
- this.httpService = httpService;
1332
- this.SERVICE_URL = '/price';
1333
- }
1334
- calculate(request) {
1335
- return this.httpService.api({
1336
- method: 'post',
1337
- url: `${this.SERVICE_URL}/calculate`,
1338
- body: request,
1339
- skipErrorHandler: true,
1340
- });
1341
- }
1342
- getPriceLists() {
1343
- return this.httpService.api({
1344
- method: 'get',
1345
- url: '/price-lists',
1346
- });
1347
- }
1348
- getPriceList(id) {
1349
- return this.httpService.api({
1350
- method: 'get',
1351
- url: `/price-lists/${id}`,
1352
- });
1353
- }
1354
- getSellingTermByEndDate(planId, offeringId, startDate, endDate, frequencyUnit, frequencyDuration) {
1355
- return this.httpService.api({
1356
- method: 'post',
1357
- url: `${this.SERVICE_URL}/selling-term-by-end-date`,
1358
- body: {
1359
- planId: planId,
1360
- offeringId: offeringId,
1361
- startDate: startDate,
1362
- endDate: endDate,
1363
- frequencyUnit: frequencyUnit,
1364
- frequencyDuration: frequencyDuration,
1365
- },
1366
- });
1367
- }
1368
- getSellingTermByTerm(planId, offeringId, startDate, term, frequencyUnit, frequencyDuration) {
1369
- return this.httpService.api({
1370
- method: 'post',
1371
- url: `${this.SERVICE_URL}/selling-term-by-term`,
1372
- body: {
1373
- planId: planId,
1374
- offeringId: offeringId,
1375
- startDate: startDate,
1376
- term: term,
1377
- frequencyUnit: frequencyUnit,
1378
- frequencyDuration: frequencyDuration,
1379
- },
1380
- });
1381
- }
1382
- }
1383
- PriceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PriceApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1384
- PriceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PriceApiService });
1385
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PriceApiService, decorators: [{
1386
- type: Injectable
1387
- }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1388
-
1389
- class ProductApiService {
1390
- constructor(baseHttpService) {
1391
- this.baseHttpService = baseHttpService;
1392
- this.serviceUrl = '/products';
1393
- this.fetchProducts$ = (payload) => {
1394
- let params = new HttpParams();
1395
- params = params.append('count', payload.count);
1396
- params = params.append('skip', payload.skip);
1397
- if (payload.name) {
1398
- params = params.append('name', payload.name);
1399
- }
1400
- return this.baseHttpService.api({ url: `${this.serviceUrl}`, params });
1401
- };
1402
- this.searchProducts$ = (expression, skip, count) => {
1403
- let params = new HttpParams();
1404
- params = params.set('skip', '' + skip);
1405
- params = params.set('count', '' + count);
1406
- return this.baseHttpService.api({
1407
- method: 'post',
1408
- url: `${this.serviceUrl}/search`,
1409
- params: params,
1410
- body: expression,
1411
- });
1412
- };
1413
- this.fetchProduct$ = (id) => this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
1414
- this.fetchAttributes$ = () => {
1415
- return this.baseHttpService.api({ url: `${this.serviceUrl}/attributes/definition` });
1416
- };
1417
- this.searchAttributes$ = (expression, skip, count) => {
1418
- let params = new HttpParams();
1419
- params = params.set('skip', '' + skip);
1420
- params = params.set('count', '' + count);
1421
- return this.baseHttpService.api({
1422
- method: 'post',
1423
- url: `${this.serviceUrl}/attributes/definition/search`,
1424
- params: params,
1425
- body: expression,
1426
- });
1427
- };
1428
- this.fetchAttributesByModel = (modelId) => {
1429
- return this.baseHttpService.api({ url: `${this.serviceUrl}/attributes/definition/forModel/${modelId}` });
1430
- };
1431
- this.createNewProduct$ = (productData) => {
458
+ params = params.set('count', '' + PortalsApiService.MAX_RESULTS);
1432
459
  return this.baseHttpService.api({
1433
- url: `${this.serviceUrl}`,
1434
460
  method: 'post',
1435
- body: productData,
1436
- });
1437
- };
1438
- this.updateProduct$ = (body) => {
1439
- return this.baseHttpService.api({
1440
- url: `${this.serviceUrl}/${body.id}`,
1441
- method: 'put',
1442
- body,
461
+ url: `${this.serviceUrl}/search`,
462
+ params,
463
+ body: expression || {},
1443
464
  });
1444
465
  };
1445
- this.removeProduct$ = (id) => {
466
+ this.removePortal$ = (id) => {
1446
467
  return this.baseHttpService.api({
1447
468
  url: `${this.serviceUrl}/${id}`,
1448
469
  method: 'delete',
1449
470
  });
1450
471
  };
1451
- this.restoreProduct$ = (id) => {
472
+ this.restore$ = (id) => {
1452
473
  return this.baseHttpService.api({
1453
- url: `${this.serviceUrl}/${id}/restore`,
1454
474
  method: 'patch',
475
+ url: `${this.serviceUrl}/${id}/restore`,
1455
476
  });
1456
477
  };
1457
- this.createProductAttribute$ = (attributeData) => {
1458
- return this.baseHttpService.api({
1459
- url: `${this.serviceUrl}/attributes`,
1460
- method: 'post',
1461
- body: attributeData,
1462
- });
1463
- };
1464
- this.updateProductAttribute$ = (attributeData) => {
1465
- return this.baseHttpService.api({
1466
- url: `${this.serviceUrl}/attributes/${attributeData.id}`,
1467
- method: 'put',
1468
- body: attributeData,
1469
- });
1470
- };
1471
- this.removeProductAttribute$ = (id) => {
1472
- return this.baseHttpService.api({
1473
- url: `${this.serviceUrl}/attributes/${id}`,
1474
- method: 'delete',
1475
- });
1476
- };
1477
- this.createNewAttribute$ = (attributeData) => {
478
+ this.duplicatePortal$ = (cloneRequest) => {
1478
479
  return this.baseHttpService.api({
1479
- url: `${this.serviceUrl}/attributes/definition`,
480
+ url: `${this.serviceUrl}/${cloneRequest.id}/clone`,
1480
481
  method: 'post',
1481
- body: attributeData,
1482
- });
1483
- };
1484
- this.updateAttribute$ = (body) => {
1485
- return this.baseHttpService.api({
1486
- url: `${this.serviceUrl}/attributes/definition/${body.id}`,
1487
- method: 'put',
1488
- body,
1489
- });
1490
- };
1491
- this.removeAttribute$ = (id) => {
1492
- return this.baseHttpService.api({
1493
- url: `${this.serviceUrl}/attributes/definition/${id}`,
1494
- method: 'delete',
482
+ body: cloneRequest,
1495
483
  });
1496
484
  };
1497
- this.restoreAttribute$ = (id) => {
485
+ this.getPortal$ = (id) => {
1498
486
  return this.baseHttpService.api({
1499
- url: `${this.serviceUrl}/attributes/definition/${id}/restore`,
1500
- method: 'patch',
487
+ url: `${this.serviceUrl}/${id}`,
1501
488
  });
1502
489
  };
1503
490
  }
1504
- attachImage$(productId, file) {
1505
- const data = new FormData();
1506
- data.append('image', file);
1507
- return this.baseHttpService.upload({
1508
- method: 'post',
1509
- url: `${this.serviceUrl}/${productId}/image`,
1510
- body: data,
1511
- });
1512
- }
1513
- removeImage$(productId) {
1514
- return this.baseHttpService.api({
1515
- method: 'delete',
1516
- url: `${this.serviceUrl}/${productId}/image`,
1517
- });
1518
- }
1519
- fetchImage$(productId) {
491
+ createNewPortal$(body) {
1520
492
  return this.baseHttpService.api({
1521
- url: this.getImageUrl(productId),
1522
- method: 'get',
1523
- responseType: 'blob',
1524
- errorHandler: noop,
1525
- });
1526
- }
1527
- getImageUrl(productId) {
1528
- return `${this.serviceUrl}/${productId}/image`;
1529
- }
1530
- }
1531
- ProductApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1532
- ProductApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductApiService });
1533
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductApiService, decorators: [{
1534
- type: Injectable
1535
- }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1536
-
1537
- class ProductModelApiService {
1538
- constructor(httpService) {
1539
- this.httpService = httpService;
1540
- this.SERVICE_URL = '/models';
1541
- }
1542
- addModel(model) {
1543
- return this.httpService
1544
- .api({
1545
- method: 'post',
1546
- url: this.SERVICE_URL,
1547
- body: model,
1548
- errorHandler: this.httpService.handleValidationError,
1549
- })
1550
- .pipe(map(result => {
1551
- if (result.successful) {
1552
- return result;
1553
- }
1554
- else {
1555
- throw new Error(result.message);
1556
- }
1557
- }));
1558
- }
1559
- releaseModel(model) {
1560
- return this.httpService
1561
- .api({
1562
- method: 'put',
1563
- url: `${this.SERVICE_URL}/${model.id}/release`,
1564
- body: model,
1565
- errorHandler: this.httpService.handleValidationError,
1566
- })
1567
- .pipe(map(result => {
1568
- if (result.successful) {
1569
- return '';
1570
- }
1571
- else {
1572
- throw new Error(result.message);
1573
- }
1574
- }));
1575
- }
1576
- removeModel(modelId, successFn, failureFn) {
1577
- const observable = this.httpService
1578
- .api({
1579
- method: 'delete',
1580
- url: `${this.SERVICE_URL}/${modelId}`,
1581
- errorHandler: this.httpService.handleValidationError,
1582
- })
1583
- .pipe(map(result => {
1584
- if (result.successful) {
1585
- return '';
1586
- }
1587
- else {
1588
- throw new Error(result.message);
1589
- }
1590
- }));
1591
- observable.subscribe(() => {
1592
- successFn && successFn.apply();
1593
- }, () => {
1594
- failureFn && failureFn.apply();
1595
- });
1596
- }
1597
- getModelVersions(modelId, count = 100, skip = 0) {
1598
- return this.httpService.api({
1599
- method: 'post',
1600
- url: `${this.SERVICE_URL}/${modelId}/versions`,
1601
- body: {
1602
- skipCount: skip,
1603
- count: count,
1604
- },
1605
- });
1606
- }
1607
- getModel(id, version) {
1608
- let url = `${this.SERVICE_URL}/${id}`;
1609
- if (version) {
1610
- url += `/versions/${version}`;
1611
- }
1612
- return this.httpService.api({ url });
1613
- }
1614
- getModels(skipCount, searchText) {
1615
- return this.httpService.api({
493
+ url: `${this.serviceUrl}`,
1616
494
  method: 'post',
1617
- url: `${this.SERVICE_URL}/search`,
1618
- body: {
1619
- nameRegex: searchText,
1620
- skipCount: skipCount.toString(),
1621
- count: ProductModelApiService.MAX_RESULTS,
1622
- },
1623
- });
1624
- }
1625
- getLinkedModels(id, version) {
1626
- let url = `${this.SERVICE_URL}/${id}`;
1627
- if (version) {
1628
- url += `/versions/${version}`;
1629
- }
1630
- url += '/linked';
1631
- return this.httpService.api({ url }).pipe(map((linkedModels) => {
1632
- if (linkedModels) {
1633
- linkedModels.forEach(model => ModelTranslatorUtils.toLocalModel(model));
1634
- }
1635
- return linkedModels;
1636
- }));
1637
- }
1638
- getPML(modelId, version) {
1639
- let url = `${this.SERVICE_URL}/${modelId}/pml/${version}`;
1640
- if (version) {
1641
- url += `/versions/${version}`;
1642
- }
1643
- return this.httpService.api({
1644
- url,
1645
- responseType: 'text',
1646
- });
1647
- }
1648
- savePML(modelId, pml, comment) {
1649
- return this.httpService
1650
- .api({
1651
- method: 'put',
1652
- url: `${this.SERVICE_URL}/${modelId}/pml`,
1653
- body: {
1654
- id: modelId,
1655
- pml: pml,
1656
- comment: comment,
1657
- },
1658
- })
1659
- .pipe(map(result => {
1660
- if (result.successful) {
1661
- return '';
1662
- }
1663
- else {
1664
- throw new Error(result.message);
1665
- }
1666
- }), catchError(this.httpService.handleValidationError));
1667
- }
1668
- generateProducts(modelId) {
1669
- return this.httpService.api({
1670
- url: `${this.SERVICE_URL}/${modelId}/generate-products`,
495
+ body,
1671
496
  });
1672
497
  }
1673
- saveModel(productModel, comment) {
1674
- const model = EntityUtil.clone(productModel);
1675
- model.comment = comment;
1676
- ModelTranslatorUtils.toServerModel(model);
1677
- return this.httpService
1678
- .api({
498
+ updatePortal$(portal, settings) {
499
+ return this.baseHttpService.api({
500
+ url: `${this.serviceUrl}/${portal.id}`,
1679
501
  method: 'put',
1680
- url: `${this.SERVICE_URL}/${model.id}`,
1681
- body: model,
1682
- })
1683
- .pipe(map(result => {
1684
- if (result.successful) {
1685
- return '';
1686
- }
1687
- else {
1688
- throw new Error(result.message);
1689
- }
1690
- }), catchError(this.httpService.handleValidationError));
1691
- }
1692
- validateModel(productModel) {
1693
- return this.httpService
1694
- .api({
1695
- method: 'post',
1696
- url: `${this.SERVICE_URL}/validate`,
1697
- body: productModel,
1698
- errorHandler: this.httpService.handleValidationError,
1699
- })
1700
- .pipe(map(result => {
1701
- if (result.successful) {
1702
- return '';
1703
- }
1704
- else {
1705
- throw new Error(result.message);
1706
- }
1707
- }));
1708
- }
1709
- renameModel(productModel, name) {
1710
- const model = EntityUtil.clone(productModel);
1711
- model.name = name;
1712
- ModelTranslatorUtils.toServerModel(model);
1713
- return this.httpService
1714
- .api({
1715
- method: 'patch',
1716
- url: `${this.SERVICE_URL}/${model.id}`,
1717
- body: model,
1718
- })
1719
- .pipe(catchError(this.httpService.handleValidationError));
1720
- }
1721
- uploadPmlFile(file, modelId) {
1722
- const formData = new FormData();
1723
- formData.append('file', file, file.name);
1724
- return this.httpService.upload({
1725
- url: `${this.SERVICE_URL}/${modelId}/pml/upload`,
1726
- body: formData,
1727
- });
1728
- }
1729
- runPml(modelId, pml, rootType, configurationMode) {
1730
- return this.httpService.api({
1731
- method: 'post',
1732
- url: `${this.SERVICE_URL}/${modelId}/pml/run`,
1733
502
  body: {
1734
- pml,
1735
- rootType,
1736
- configurationMode,
503
+ ...portal,
504
+ settings: JSON.stringify(settings),
1737
505
  },
1738
- responseType: 'text',
1739
- });
1740
- }
1741
- evictAllCache() {
1742
- return this.httpService.api({
1743
- method: 'get',
1744
- url: '/cache/evict/environment-variables',
1745
506
  });
1746
507
  }
1747
508
  }
1748
- ProductModelApiService.MAX_RESULTS = 200;
1749
- ProductModelApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductModelApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1750
- ProductModelApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductModelApiService });
1751
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductModelApiService, decorators: [{
509
+ PortalsApiService.MAX_RESULTS = 60;
510
+ PortalsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PortalsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
511
+ PortalsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PortalsApiService });
512
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PortalsApiService, decorators: [{
1752
513
  type: Injectable
1753
514
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1754
515
 
@@ -1781,7 +542,7 @@ class PromotionsApiService {
1781
542
  method: 'post',
1782
543
  body,
1783
544
  })
1784
- .pipe(map$1(response => response.clonedRecordId));
545
+ .pipe(map(response => response.clonedRecordId));
1785
546
  };
1786
547
  }
1787
548
  search$(expression, skip, count) {
@@ -1815,34 +576,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
1815
576
  type: Injectable
1816
577
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1817
578
 
1818
- class RampApiService {
1819
- constructor(httpService) {
1820
- this.httpService = httpService;
1821
- this.SERVICE_URL = '/ramp';
1822
- }
1823
- next(request, options) {
1824
- return this.httpService.api({
1825
- method: 'post',
1826
- url: `${this.SERVICE_URL}/next`,
1827
- body: request,
1828
- ...options,
1829
- });
1830
- }
1831
- renew(request, options) {
1832
- return this.httpService.api({
1833
- method: 'post',
1834
- url: `${this.SERVICE_URL}/renew`,
1835
- body: request,
1836
- ...options,
1837
- });
1838
- }
1839
- }
1840
- RampApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RampApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1841
- RampApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RampApiService });
1842
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RampApiService, decorators: [{
1843
- type: Injectable
1844
- }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1845
-
1846
579
  class RebateProgramApiService {
1847
580
  constructor(baseHttpService) {
1848
581
  this.baseHttpService = baseHttpService;
@@ -1872,7 +605,7 @@ class RebateProgramApiService {
1872
605
  method: 'post',
1873
606
  body,
1874
607
  })
1875
- .pipe(map$1(response => response.clonedRecordId));
608
+ .pipe(map(response => response.clonedRecordId));
1876
609
  };
1877
610
  }
1878
611
  search$(expression, skip, count) {
@@ -1935,7 +668,7 @@ class RebateTypeApiService {
1935
668
  method: 'post',
1936
669
  body,
1937
670
  })
1938
- .pipe(map$1(response => response.clonedRecordId));
671
+ .pipe(map(response => response.clonedRecordId));
1939
672
  };
1940
673
  }
1941
674
  search$(expression, skip, count) {
@@ -1969,81 +702,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
1969
702
  type: Injectable
1970
703
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1971
704
 
1972
- class SalesforceApiService {
1973
- constructor(httpService) {
1974
- this.httpService = httpService;
1975
- this.SERVICE_URL = '/proxy';
1976
- }
1977
- query(searchRequest, objectName, options) {
1978
- return this.httpService.api({
1979
- method: 'post',
1980
- body: { ...searchRequest, count: searchRequest.count || 100 },
1981
- url: `${this.SERVICE_URL}/query/${objectName}`,
1982
- ...options,
1983
- });
1984
- }
1985
- queryObjects(search, options) {
1986
- let params = new HttpParams();
1987
- if (search) {
1988
- params = params.append('search', search);
1989
- }
1990
- return this.httpService.api({
1991
- url: `${this.SERVICE_URL}/query`,
1992
- params,
1993
- ...options,
1994
- });
1995
- }
1996
- search(req, options) {
1997
- return this.httpService.api({
1998
- url: `${this.SERVICE_URL}/rest/search`,
1999
- params: { q: req.searchString },
2000
- ...options,
2001
- });
2002
- }
2003
- describeObject(objectName, options) {
2004
- const methodUrl = `${this.SERVICE_URL}/describe/${objectName}/fields`;
2005
- return this.httpService.api({ url: methodUrl, ...options });
2006
- }
2007
- describeField(objectName, fieldName, options) {
2008
- const methodUrl = `${this.SERVICE_URL}/describe/${objectName}/fields/${fieldName}`;
2009
- return this.httpService.api({ url: methodUrl, ...options });
2010
- }
2011
- describe2(objectName, fields, options) {
2012
- const methodUrl = `${this.SERVICE_URL}/describe/${objectName}/fields`;
2013
- return this.httpService.api({ method: 'post', url: methodUrl, body: fields, ...options });
2014
- }
2015
- apexGetRequest(path, params, options) {
2016
- // this line is needed because HttpParams instance from Integration behaves wrong in studio instance of Angular
2017
- const httpParams = new HttpParams({ fromString: params.toString() });
2018
- return this.httpService.api({ url: `${this.SERVICE_URL}/apex${path}`, params: httpParams, ...options });
2019
- }
2020
- apexPostRequest(path, body, options) {
2021
- return this.httpService.api({
2022
- method: 'post',
2023
- body,
2024
- url: `${this.SERVICE_URL}/apex${path}`,
2025
- ...options,
2026
- });
2027
- }
2028
- getGlobalPicklists() {
2029
- return this.httpService.api({
2030
- method: 'get',
2031
- url: `${this.SERVICE_URL}/globalvalueset`,
2032
- });
2033
- }
2034
- getGlobalPicklistValues(id) {
2035
- return this.httpService.api({
2036
- method: 'get',
2037
- url: `${this.SERVICE_URL}/globalvalueset/${id}/values`,
2038
- });
2039
- }
2040
- }
2041
- SalesforceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesforceApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
2042
- SalesforceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesforceApiService });
2043
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesforceApiService, decorators: [{
2044
- type: Injectable
2045
- }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
2046
-
2047
705
  class SandboxManagerApiService {
2048
706
  constructor(messageService) {
2049
707
  this.messageService = messageService;
@@ -2059,7 +717,7 @@ class SandboxManagerApiService {
2059
717
  getSalesforceOrganizations$() {
2060
718
  try {
2061
719
  return window.doSandboxCall
2062
- ? from(window.doSandboxCall('orgs', '', 'GET')).pipe(map$1(response => handleCanvasResponse(response, [], this.publishErrorMessage)), catchError$1(() => of([])))
720
+ ? from(window.doSandboxCall('orgs', '', 'GET')).pipe(map(response => handleCanvasResponse(response, [], this.publishErrorMessage)), catchError(() => of([])))
2063
721
  : of([]);
2064
722
  }
2065
723
  catch {
@@ -2069,7 +727,7 @@ class SandboxManagerApiService {
2069
727
  getAvailableSalesforceOrganizationSizes$() {
2070
728
  try {
2071
729
  return window.doSandboxCall
2072
- ? from(window.doSandboxCall('available-sizes', '', 'GET')).pipe(map$1(response => handleCanvasResponse(response, {}, this.publishErrorMessage)), catchError$1(() => of({})))
730
+ ? from(window.doSandboxCall('available-sizes', '', 'GET')).pipe(map(response => handleCanvasResponse(response, {}, this.publishErrorMessage)), catchError(() => of({})))
2073
731
  : of({});
2074
732
  }
2075
733
  catch {
@@ -2079,7 +737,7 @@ class SandboxManagerApiService {
2079
737
  createSalesforceOrganization$(payload) {
2080
738
  try {
2081
739
  return window.doSandboxCall
2082
- ? from(window.doSandboxCall('orgs', JSON.stringify(payload), 'POST')).pipe(map$1(response => handleCanvasResponse(response, undefined, this.publishErrorMessage)), catchError$1(() => of(undefined)))
740
+ ? from(window.doSandboxCall('orgs', JSON.stringify(payload), 'POST')).pipe(map(response => handleCanvasResponse(response, undefined, this.publishErrorMessage)), catchError(() => of(undefined)))
2083
741
  : of(undefined);
2084
742
  }
2085
743
  catch (err) {
@@ -2089,7 +747,7 @@ class SandboxManagerApiService {
2089
747
  updateSalesforceOrganization$(payload) {
2090
748
  try {
2091
749
  return window.doSandboxCall
2092
- ? from(window.doSandboxCall(`orgs/${payload.orgId}`, JSON.stringify(payload), 'POST')).pipe(map$1(response => handleCanvasResponse(response, undefined, this.publishErrorMessage)), catchError$1(() => of(undefined)))
750
+ ? from(window.doSandboxCall(`orgs/${payload.orgId}`, JSON.stringify(payload), 'POST')).pipe(map(response => handleCanvasResponse(response, undefined, this.publishErrorMessage)), catchError(() => of(undefined)))
2093
751
  : of(undefined);
2094
752
  }
2095
753
  catch {
@@ -2099,7 +757,7 @@ class SandboxManagerApiService {
2099
757
  deleteSalesforceOrganization$(payload) {
2100
758
  try {
2101
759
  return window.doSandboxCall
2102
- ? from(window.doSandboxCall(`orgs/${payload.orgId}`, '', 'DELETE')).pipe(map$1(response => handleCanvasResponse(response, undefined, this.publishErrorMessage)), catchError$1(() => of(undefined)))
760
+ ? from(window.doSandboxCall(`orgs/${payload.orgId}`, '', 'DELETE')).pipe(map(response => handleCanvasResponse(response, undefined, this.publishErrorMessage)), catchError(() => of(undefined)))
2103
761
  : of(undefined);
2104
762
  }
2105
763
  catch {
@@ -2109,7 +767,7 @@ class SandboxManagerApiService {
2109
767
  activateSalesforceOrganization$(payload) {
2110
768
  try {
2111
769
  return window.doSandboxCall
2112
- ? from(window.doSandboxCall(`orgs/${payload.orgId}/activate`, JSON.stringify({}), 'POST')).pipe(map$1(response => handleCanvasResponse(response, undefined, this.publishErrorMessage)), catchError$1(() => of(undefined)))
770
+ ? from(window.doSandboxCall(`orgs/${payload.orgId}/activate`, JSON.stringify({}), 'POST')).pipe(map(response => handleCanvasResponse(response, undefined, this.publishErrorMessage)), catchError(() => of(undefined)))
2113
771
  : of(undefined);
2114
772
  }
2115
773
  catch {
@@ -2119,7 +777,7 @@ class SandboxManagerApiService {
2119
777
  deactivateSalesforceOrganization$(payload) {
2120
778
  try {
2121
779
  return window.doSandboxCall
2122
- ? from(window.doSandboxCall(`orgs/${payload.orgId}/deactivate`, JSON.stringify({}), 'POST')).pipe(map$1(response => handleCanvasResponse(response, undefined, this.publishErrorMessage)), catchError$1(() => of(undefined)))
780
+ ? from(window.doSandboxCall(`orgs/${payload.orgId}/deactivate`, JSON.stringify({}), 'POST')).pipe(map(response => handleCanvasResponse(response, undefined, this.publishErrorMessage)), catchError(() => of(undefined)))
2123
781
  : of(undefined);
2124
782
  }
2125
783
  catch {
@@ -2133,29 +791,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
2133
791
  type: Injectable
2134
792
  }], ctorParameters: function () { return [{ type: i1$2.MessageService }]; } });
2135
793
 
2136
- class ShoppingCartSettingsApiService {
2137
- constructor(configurationSettingsApiService) {
2138
- this.configurationSettingsApiService = configurationSettingsApiService;
2139
- this.shoppingCartSettingsKey = 'shopping-cart';
2140
- }
2141
- getSetting(id) {
2142
- return this.fetchSettings().pipe(map((settings) => parseJsonSafely(settings?.value, [])), map(settings => settings.find(setting => setting.id == id)));
2143
- }
2144
- fetchSettings() {
2145
- return this.configurationSettingsApiService.fetchSetting(this.shoppingCartSettingsKey, { skipErrorHandler: true });
2146
- }
2147
- getSettingsMap() {
2148
- return this.fetchSettings().pipe(map((settings) => parseJsonSafely(settings?.value, [])), map((settings) => settings.reduce((acc, setting) => {
2149
- return { ...acc, [setting.id]: setting.properties };
2150
- }, {})));
2151
- }
2152
- }
2153
- ShoppingCartSettingsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShoppingCartSettingsApiService, deps: [{ token: ConfigurationSettingsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
2154
- ShoppingCartSettingsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShoppingCartSettingsApiService });
2155
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShoppingCartSettingsApiService, decorators: [{
2156
- type: Injectable
2157
- }], ctorParameters: function () { return [{ type: ConfigurationSettingsApiService }]; } });
2158
-
2159
794
  class StatefulConfigurationApiService {
2160
795
  constructor(httpService) {
2161
796
  this.httpService = httpService;
@@ -2204,91 +839,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
2204
839
  type: Injectable
2205
840
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
2206
841
 
2207
- class VeloceObjectsApiService {
2208
- constructor(baseHttpService) {
2209
- this.baseHttpService = baseHttpService;
2210
- this.serviceUrl = '/veloceobjects';
2211
- this.updateCategory$ = (category) => {
2212
- return this.baseHttpService.api({
2213
- method: 'put',
2214
- url: `${this.serviceUrl}/categories/${category.id}`,
2215
- body: category,
2216
- });
2217
- };
2218
- this.deleteCategory$ = (id) => {
2219
- return this.baseHttpService.api({
2220
- method: 'delete',
2221
- url: `${this.serviceUrl}/categories/${id}`,
2222
- });
2223
- };
2224
- this.searchObjects$ = (searchParams, expression) => {
2225
- const params = new HttpParams({ fromObject: { ...searchParams } });
2226
- return this.baseHttpService.api({
2227
- method: 'post',
2228
- url: `${this.serviceUrl}/search`,
2229
- params,
2230
- body: expression || {},
2231
- });
2232
- };
2233
- this.deleteObject$ = (id) => {
2234
- return this.baseHttpService.api({
2235
- method: 'delete',
2236
- url: `${this.serviceUrl}/${id}`,
2237
- });
2238
- };
2239
- this.duplicateObject$ = (body) => {
2240
- return this.baseHttpService
2241
- .api({
2242
- method: 'post',
2243
- url: `${this.serviceUrl}/${body.id}/clone`,
2244
- body,
2245
- })
2246
- .pipe(map(response => response.clonedRecordId));
2247
- };
2248
- this.restoreObject$ = (id) => {
2249
- return this.baseHttpService.api({
2250
- method: 'patch',
2251
- url: `${this.serviceUrl}/${id}/restore`,
2252
- });
2253
- };
2254
- }
2255
- fetchCategories$() {
2256
- return this.baseHttpService.api({ url: `${this.serviceUrl}/categories` });
2257
- }
2258
- createCategory$(category) {
2259
- return this.baseHttpService.api({
2260
- method: 'post',
2261
- url: `${this.serviceUrl}/categories`,
2262
- body: category,
2263
- });
2264
- }
2265
- fetchObjects$() {
2266
- return this.baseHttpService.api({ url: `${this.serviceUrl}` });
2267
- }
2268
- fetchObject$(id) {
2269
- return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
2270
- }
2271
- createObject$(object) {
2272
- return this.baseHttpService.api({
2273
- method: 'post',
2274
- url: `${this.serviceUrl}`,
2275
- body: object,
2276
- });
2277
- }
2278
- updateObject$(object) {
2279
- return this.baseHttpService.api({
2280
- method: 'put',
2281
- url: `${this.serviceUrl}/${object.id}`,
2282
- body: object,
2283
- });
2284
- }
2285
- }
2286
- VeloceObjectsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceObjectsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
2287
- VeloceObjectsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceObjectsApiService });
2288
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceObjectsApiService, decorators: [{
2289
- type: Injectable
2290
- }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
2291
-
2292
842
  class ApiModule {
2293
843
  }
2294
844
  ApiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -2296,27 +846,9 @@ ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.
2296
846
  ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, providers: [
2297
847
  BaseHttpService,
2298
848
  XrayService,
2299
- ConfigurationApiService,
2300
- ConfigurationSettingsApiService,
2301
- DocumentAttachmentApiService,
2302
- PriceApiService,
2303
- ProductModelApiService,
2304
- RampApiService,
2305
- SalesforceApiService,
2306
- FlowsApiService,
2307
- GuidedSellingsAdminApiService,
2308
- ShoppingCartSettingsApiService,
2309
- ProductApiService,
2310
- CatalogAdminApiService,
2311
- GuidedSellingApiService,
2312
- CatalogApiService,
2313
- DeltaApiService,
2314
849
  AccountApiService,
2315
- PicklistsApiService,
2316
- EndpointsApiService,
2317
850
  OrgInfoApiService,
2318
851
  OffersApiService,
2319
- VeloceObjectsApiService,
2320
852
  StatefulConfigurationApiService,
2321
853
  RebateProgramApiService,
2322
854
  RebateTypeApiService,
@@ -2334,27 +866,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
2334
866
  providers: [
2335
867
  BaseHttpService,
2336
868
  XrayService,
2337
- ConfigurationApiService,
2338
- ConfigurationSettingsApiService,
2339
- DocumentAttachmentApiService,
2340
- PriceApiService,
2341
- ProductModelApiService,
2342
- RampApiService,
2343
- SalesforceApiService,
2344
- FlowsApiService,
2345
- GuidedSellingsAdminApiService,
2346
- ShoppingCartSettingsApiService,
2347
- ProductApiService,
2348
- CatalogAdminApiService,
2349
- GuidedSellingApiService,
2350
- CatalogApiService,
2351
- DeltaApiService,
2352
869
  AccountApiService,
2353
- PicklistsApiService,
2354
- EndpointsApiService,
2355
870
  OrgInfoApiService,
2356
871
  OffersApiService,
2357
- VeloceObjectsApiService,
2358
872
  StatefulConfigurationApiService,
2359
873
  RebateProgramApiService,
2360
874
  RebateTypeApiService,
@@ -2372,5 +886,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
2372
886
  * Generated bundle index. Do not edit.
2373
887
  */
2374
888
 
2375
- 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 };
889
+ export { AccountApiService, ApiModule, ContractedPriceApiService, FlowStateApiService, OffersApiService, OrgInfoApiService, PortalsApiService, PromotionsApiService, RebateProgramApiService, RebateTypeApiService, SandboxManagerApiService, StatefulConfigurationApiService, VeloceAuthService, handleCanvasResponse };
2376
890
  //# sourceMappingURL=veloceapps-api.mjs.map