@veloceapps/api 11.0.0-37 → 11.0.0-39

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 (29) hide show
  1. package/esm2020/src/index.mjs +1 -4
  2. package/esm2020/src/lib/api.module.mjs +1 -10
  3. package/esm2020/v2/api-v2.module.mjs +8 -2
  4. package/esm2020/v2/services/catalog-admin-api.service.mjs +192 -0
  5. package/esm2020/v2/services/catalog-api.service.mjs +90 -0
  6. package/esm2020/v2/services/document-attachment-api.service.mjs +66 -0
  7. package/esm2020/v2/services/index.mjs +4 -1
  8. package/esm2020/v2/types/attachment.types.mjs +2 -0
  9. package/esm2020/v2/types/index.mjs +2 -1
  10. package/fesm2015/veloceapps-api-v2.mjs +346 -5
  11. package/fesm2015/veloceapps-api-v2.mjs.map +1 -1
  12. package/fesm2015/veloceapps-api.mjs +17 -359
  13. package/fesm2015/veloceapps-api.mjs.map +1 -1
  14. package/fesm2020/veloceapps-api-v2.mjs +346 -5
  15. package/fesm2020/veloceapps-api-v2.mjs.map +1 -1
  16. package/fesm2020/veloceapps-api.mjs +17 -359
  17. package/fesm2020/veloceapps-api.mjs.map +1 -1
  18. package/package.json +1 -1
  19. package/src/index.d.ts +0 -3
  20. package/{src/lib → v2}/services/document-attachment-api.service.d.ts +1 -1
  21. package/v2/services/index.d.ts +3 -0
  22. package/v2/types/index.d.ts +1 -0
  23. package/esm2020/src/lib/services/catalog-admin-api.service.mjs +0 -192
  24. package/esm2020/src/lib/services/catalog-api.service.mjs +0 -90
  25. package/esm2020/src/lib/services/document-attachment-api.service.mjs +0 -66
  26. package/esm2020/src/lib/types/attachment.types.mjs +0 -2
  27. /package/{src/lib → v2}/services/catalog-admin-api.service.d.ts +0 -0
  28. /package/{src/lib → v2}/services/catalog-api.service.d.ts +0 -0
  29. /package/{src/lib → v2}/types/attachment.types.d.ts +0 -0
@@ -5,8 +5,7 @@ import { Injectable, NgModule } from '@angular/core';
5
5
  import { ApiV2Module } from '@veloceapps/api/v2';
6
6
  import * as i1 from '@veloceapps/core';
7
7
  import { Expression, Operator, isApexError, isCanvasError, BaseHttpService, XrayService } from '@veloceapps/core';
8
- import { noop, map as map$1, from, catchError, of } from 'rxjs';
9
- import { tap, map } from 'rxjs/operators';
8
+ import { map, from, catchError, of } from 'rxjs';
10
9
  import { isArray } from 'lodash';
11
10
  import * as i1$2 from 'primeng/api';
12
11
 
@@ -111,279 +110,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
111
110
  type: Injectable
112
111
  }], ctorParameters: function () { return [{ type: i1$1.HttpClient }]; } });
113
112
 
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
113
  class ContractedPriceApiService {
388
114
  constructor(baseHttpService) {
389
115
  this.baseHttpService = baseHttpService;
@@ -425,68 +151,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
425
151
  type: Injectable
426
152
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
427
153
 
428
- class DocumentAttachmentApiService {
429
- constructor(httpService, fileDownloadService) {
430
- this.httpService = httpService;
431
- this.fileDownloadService = fileDownloadService;
432
- this.SERVICE_URL = '/attachments';
433
- }
434
- getAttachments(searchRequest) {
435
- return this.httpService.api({
436
- url: `${this.SERVICE_URL}/search`,
437
- method: 'post',
438
- body: searchRequest,
439
- });
440
- }
441
- createAttachment(attachment, file, reportProgress) {
442
- const formData = new FormData();
443
- if (file) {
444
- formData.append('file', file, file.name);
445
- }
446
- formData.append('attachment', new Blob([JSON.stringify(attachment)], {
447
- type: 'application/json',
448
- }));
449
- return this.httpService.upload({
450
- url: `${this.SERVICE_URL}`,
451
- body: formData,
452
- method: 'post',
453
- observe: reportProgress ? 'events' : undefined,
454
- reportProgress,
455
- });
456
- }
457
- updateAttachment(id, attachment) {
458
- return this.httpService.api({
459
- url: `${this.SERVICE_URL}/${id}`,
460
- body: attachment,
461
- method: 'put',
462
- });
463
- }
464
- getAttachmentFile(id, isPreventDownload) {
465
- return this.httpService
466
- .api({
467
- url: `${this.SERVICE_URL}/${id}/file`,
468
- responseType: isPreventDownload ? 'arraybuffer' : 'blob',
469
- observe: isPreventDownload ? 'body' : 'response',
470
- })
471
- .pipe(tap(response => {
472
- if (!isPreventDownload) {
473
- this.fileDownloadService.processDownload(response);
474
- }
475
- }), map(response => (isPreventDownload ? new Blob([response.body || response]) : response.body || response)));
476
- }
477
- removeAttachment(id) {
478
- return this.httpService.api({
479
- url: `${this.SERVICE_URL}/${id}`,
480
- method: 'delete',
481
- });
482
- }
483
- }
484
- 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 });
485
- DocumentAttachmentApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentAttachmentApiService });
486
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentAttachmentApiService, decorators: [{
487
- type: Injectable
488
- }], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: i1.FileDownloadService }]; } });
489
-
490
154
  class FlowStateApiService {
491
155
  constructor(httpService) {
492
156
  this.httpService = httpService;
@@ -770,7 +434,7 @@ class OffersApiService {
770
434
  .api({
771
435
  url: `${this.serviceUrl}/${id}/products`,
772
436
  })
773
- .pipe(map$1(response => response.products));
437
+ .pipe(map(response => response.products));
774
438
  }
775
439
  upsertOfferProducts$(id, products) {
776
440
  const request = { products };
@@ -780,7 +444,7 @@ class OffersApiService {
780
444
  method: 'put',
781
445
  body: request,
782
446
  })
783
- .pipe(map$1(response => response.products));
447
+ .pipe(map(response => response.products));
784
448
  }
785
449
  }
786
450
  OffersApiService.MAX_RESULTS = 60;
@@ -836,7 +500,7 @@ class OrgInfoApiService {
836
500
  getOrgInfo$() {
837
501
  try {
838
502
  return window.doCanvasCall && window.ORGANIZATION_ID
839
- ? from(window.doCanvasCall(`org-info/${window.ORGANIZATION_ID}`, null)).pipe(map$1(response => handleCanvasResponse(response, undefined, this.publishErrorMessage)), catchError(() => of(undefined)))
503
+ ? from(window.doCanvasCall(`org-info/${window.ORGANIZATION_ID}`, null)).pipe(map(response => handleCanvasResponse(response, undefined, this.publishErrorMessage)), catchError(() => of(undefined)))
840
504
  : of(undefined);
841
505
  }
842
506
  catch {
@@ -846,7 +510,7 @@ class OrgInfoApiService {
846
510
  getAvailableVersionsInfo$() {
847
511
  try {
848
512
  return window.doCanvasCall && window.ORGANIZATION_ID
849
- ? from(window.doCanvasCall('versions/available', 'include_all=true')).pipe(map$1(response => handleCanvasResponse(response, undefined, this.publishErrorMessage)), catchError(() => of(undefined)))
513
+ ? from(window.doCanvasCall('versions/available', 'include_all=true')).pipe(map(response => handleCanvasResponse(response, undefined, this.publishErrorMessage)), catchError(() => of(undefined)))
850
514
  : of(undefined);
851
515
  }
852
516
  catch {
@@ -856,7 +520,7 @@ class OrgInfoApiService {
856
520
  upgradeVersion$(targetVersion) {
857
521
  try {
858
522
  return window.doCanvasCall && window.ORGANIZATION_ID
859
- ? from(window.doCanvasCall('versions/upgrade', `target_version=${targetVersion}`)).pipe(map$1(response => handleCanvasResponse(response, undefined, this.publishErrorMessage)), catchError(() => of(undefined)))
523
+ ? from(window.doCanvasCall('versions/upgrade', `target_version=${targetVersion}`)).pipe(map(response => handleCanvasResponse(response, undefined, this.publishErrorMessage)), catchError(() => of(undefined)))
860
524
  : of(undefined);
861
525
  }
862
526
  catch {
@@ -971,7 +635,7 @@ class PromotionsApiService {
971
635
  method: 'post',
972
636
  body,
973
637
  })
974
- .pipe(map$1(response => response.clonedRecordId));
638
+ .pipe(map(response => response.clonedRecordId));
975
639
  };
976
640
  }
977
641
  search$(expression, skip, count) {
@@ -1034,7 +698,7 @@ class RebateProgramApiService {
1034
698
  method: 'post',
1035
699
  body,
1036
700
  })
1037
- .pipe(map$1(response => response.clonedRecordId));
701
+ .pipe(map(response => response.clonedRecordId));
1038
702
  };
1039
703
  }
1040
704
  search$(expression, skip, count) {
@@ -1097,7 +761,7 @@ class RebateTypeApiService {
1097
761
  method: 'post',
1098
762
  body,
1099
763
  })
1100
- .pipe(map$1(response => response.clonedRecordId));
764
+ .pipe(map(response => response.clonedRecordId));
1101
765
  };
1102
766
  }
1103
767
  search$(expression, skip, count) {
@@ -1146,7 +810,7 @@ class SandboxManagerApiService {
1146
810
  getSalesforceOrganizations$() {
1147
811
  try {
1148
812
  return window.doSandboxCall
1149
- ? from(window.doSandboxCall('orgs', '', 'GET')).pipe(map$1(response => handleCanvasResponse(response, [], this.publishErrorMessage)), catchError(() => of([])))
813
+ ? from(window.doSandboxCall('orgs', '', 'GET')).pipe(map(response => handleCanvasResponse(response, [], this.publishErrorMessage)), catchError(() => of([])))
1150
814
  : of([]);
1151
815
  }
1152
816
  catch {
@@ -1156,7 +820,7 @@ class SandboxManagerApiService {
1156
820
  getAvailableSalesforceOrganizationSizes$() {
1157
821
  try {
1158
822
  return window.doSandboxCall
1159
- ? from(window.doSandboxCall('available-sizes', '', 'GET')).pipe(map$1(response => handleCanvasResponse(response, {}, this.publishErrorMessage)), catchError(() => of({})))
823
+ ? from(window.doSandboxCall('available-sizes', '', 'GET')).pipe(map(response => handleCanvasResponse(response, {}, this.publishErrorMessage)), catchError(() => of({})))
1160
824
  : of({});
1161
825
  }
1162
826
  catch {
@@ -1166,7 +830,7 @@ class SandboxManagerApiService {
1166
830
  createSalesforceOrganization$(payload) {
1167
831
  try {
1168
832
  return window.doSandboxCall
1169
- ? from(window.doSandboxCall('orgs', JSON.stringify(payload), 'POST')).pipe(map$1(response => handleCanvasResponse(response, undefined, this.publishErrorMessage)), catchError(() => of(undefined)))
833
+ ? from(window.doSandboxCall('orgs', JSON.stringify(payload), 'POST')).pipe(map(response => handleCanvasResponse(response, undefined, this.publishErrorMessage)), catchError(() => of(undefined)))
1170
834
  : of(undefined);
1171
835
  }
1172
836
  catch (err) {
@@ -1176,7 +840,7 @@ class SandboxManagerApiService {
1176
840
  updateSalesforceOrganization$(payload) {
1177
841
  try {
1178
842
  return window.doSandboxCall
1179
- ? from(window.doSandboxCall(`orgs/${payload.orgId}`, JSON.stringify(payload), 'POST')).pipe(map$1(response => handleCanvasResponse(response, undefined, this.publishErrorMessage)), catchError(() => of(undefined)))
843
+ ? from(window.doSandboxCall(`orgs/${payload.orgId}`, JSON.stringify(payload), 'POST')).pipe(map(response => handleCanvasResponse(response, undefined, this.publishErrorMessage)), catchError(() => of(undefined)))
1180
844
  : of(undefined);
1181
845
  }
1182
846
  catch {
@@ -1186,7 +850,7 @@ class SandboxManagerApiService {
1186
850
  deleteSalesforceOrganization$(payload) {
1187
851
  try {
1188
852
  return window.doSandboxCall
1189
- ? from(window.doSandboxCall(`orgs/${payload.orgId}`, '', 'DELETE')).pipe(map$1(response => handleCanvasResponse(response, undefined, this.publishErrorMessage)), catchError(() => of(undefined)))
853
+ ? from(window.doSandboxCall(`orgs/${payload.orgId}`, '', 'DELETE')).pipe(map(response => handleCanvasResponse(response, undefined, this.publishErrorMessage)), catchError(() => of(undefined)))
1190
854
  : of(undefined);
1191
855
  }
1192
856
  catch {
@@ -1196,7 +860,7 @@ class SandboxManagerApiService {
1196
860
  activateSalesforceOrganization$(payload) {
1197
861
  try {
1198
862
  return window.doSandboxCall
1199
- ? from(window.doSandboxCall(`orgs/${payload.orgId}/activate`, JSON.stringify({}), 'POST')).pipe(map$1(response => handleCanvasResponse(response, undefined, this.publishErrorMessage)), catchError(() => of(undefined)))
863
+ ? from(window.doSandboxCall(`orgs/${payload.orgId}/activate`, JSON.stringify({}), 'POST')).pipe(map(response => handleCanvasResponse(response, undefined, this.publishErrorMessage)), catchError(() => of(undefined)))
1200
864
  : of(undefined);
1201
865
  }
1202
866
  catch {
@@ -1206,7 +870,7 @@ class SandboxManagerApiService {
1206
870
  deactivateSalesforceOrganization$(payload) {
1207
871
  try {
1208
872
  return window.doSandboxCall
1209
- ? from(window.doSandboxCall(`orgs/${payload.orgId}/deactivate`, JSON.stringify({}), 'POST')).pipe(map$1(response => handleCanvasResponse(response, undefined, this.publishErrorMessage)), catchError(() => of(undefined)))
873
+ ? from(window.doSandboxCall(`orgs/${payload.orgId}/deactivate`, JSON.stringify({}), 'POST')).pipe(map(response => handleCanvasResponse(response, undefined, this.publishErrorMessage)), catchError(() => of(undefined)))
1210
874
  : of(undefined);
1211
875
  }
1212
876
  catch {
@@ -1275,11 +939,8 @@ ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.
1275
939
  ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, providers: [
1276
940
  BaseHttpService,
1277
941
  XrayService,
1278
- DocumentAttachmentApiService,
1279
942
  GuidedSellingsAdminApiService,
1280
- CatalogAdminApiService,
1281
943
  GuidedSellingApiService,
1282
- CatalogApiService,
1283
944
  AccountApiService,
1284
945
  OrgInfoApiService,
1285
946
  OffersApiService,
@@ -1300,11 +961,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
1300
961
  providers: [
1301
962
  BaseHttpService,
1302
963
  XrayService,
1303
- DocumentAttachmentApiService,
1304
964
  GuidedSellingsAdminApiService,
1305
- CatalogAdminApiService,
1306
965
  GuidedSellingApiService,
1307
- CatalogApiService,
1308
966
  AccountApiService,
1309
967
  OrgInfoApiService,
1310
968
  OffersApiService,
@@ -1325,5 +983,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
1325
983
  * Generated bundle index. Do not edit.
1326
984
  */
1327
985
 
1328
- export { AccountApiService, ApiModule, CatalogAdminApiService, CatalogApiService, ContractedPriceApiService, DocumentAttachmentApiService, FlowStateApiService, GuidedSellingApiService, GuidedSellingsAdminApiService, OffersApiService, OrgInfoApiService, PortalsApiService, PromotionsApiService, RebateProgramApiService, RebateTypeApiService, SandboxManagerApiService, StatefulConfigurationApiService, VeloceAuthService, handleCanvasResponse };
986
+ export { AccountApiService, ApiModule, ContractedPriceApiService, FlowStateApiService, GuidedSellingApiService, GuidedSellingsAdminApiService, OffersApiService, OrgInfoApiService, PortalsApiService, PromotionsApiService, RebateProgramApiService, RebateTypeApiService, SandboxManagerApiService, StatefulConfigurationApiService, VeloceAuthService, handleCanvasResponse };
1329
987
  //# sourceMappingURL=veloceapps-api.mjs.map