@veloceapps/api 11.0.0-11 → 11.0.0-110

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 (216) hide show
  1. package/esm2020/index.mjs +2 -45
  2. package/esm2020/src/index.mjs +16 -0
  3. package/esm2020/src/lib/api.module.mjs +60 -0
  4. package/esm2020/src/lib/services/account-api.service.mjs +87 -0
  5. package/esm2020/src/lib/services/auth.service.mjs +22 -0
  6. package/esm2020/src/lib/services/contracted-price-api.service.mjs +45 -0
  7. package/esm2020/src/lib/services/flow-state-api.mjs +142 -0
  8. package/esm2020/src/lib/services/offers-api.service.mjs +76 -0
  9. package/esm2020/src/lib/services/org-info-api.service.mjs +54 -0
  10. package/esm2020/src/lib/services/portals-api.service.mjs +76 -0
  11. package/esm2020/src/lib/services/promotions-api.service.mjs +68 -0
  12. package/esm2020/src/lib/services/rebate-program-api.service.mjs +68 -0
  13. package/esm2020/src/lib/services/rebate-type-api.service.mjs +68 -0
  14. package/esm2020/src/lib/services/sandbox-manager-api.service.mjs +94 -0
  15. package/esm2020/src/lib/services/stateful-configuration-api.mjs +51 -0
  16. package/esm2020/src/lib/types/auth.types.mjs +2 -0
  17. package/esm2020/src/lib/types/clone-request.types.mjs +2 -0
  18. package/esm2020/src/lib/types/delta-request.types.mjs +2 -0
  19. package/esm2020/src/lib/types/dto/offers-dto.types.mjs +2 -0
  20. package/esm2020/src/lib/types/index.mjs +6 -0
  21. package/esm2020/src/lib/types/org-info.types.mjs +2 -0
  22. package/esm2020/src/lib/types/search-request.types.mjs +2 -0
  23. package/esm2020/src/lib/types/stateful-configuration.types.mjs +2 -0
  24. package/esm2020/src/lib/utils/canvas.utils.mjs +33 -0
  25. package/esm2020/src/lib/utils/index.mjs +2 -0
  26. package/esm2020/v2/api-v2.module.mjs +70 -0
  27. package/esm2020/v2/index.mjs +4 -0
  28. package/esm2020/v2/services/cache-api.service.mjs +22 -0
  29. package/esm2020/v2/services/catalog-admin-api.service.mjs +192 -0
  30. package/esm2020/v2/services/catalog-api.service.mjs +90 -0
  31. package/esm2020/v2/services/configuration-processors-api.service.mjs +38 -0
  32. package/esm2020/v2/services/configuration-settings-api.service.mjs +89 -0
  33. package/esm2020/v2/services/context-definition-admin-api.service.mjs +73 -0
  34. package/esm2020/v2/services/document-attachment-api.service.mjs +66 -0
  35. package/esm2020/v2/services/endpoints-admin-api.service.mjs +79 -0
  36. package/esm2020/v2/services/flows-api.service.mjs +29 -0
  37. package/esm2020/v2/services/functions-admin-api.service.mjs +116 -0
  38. package/esm2020/v2/services/guided-sellings-admin-api.service.mjs +65 -0
  39. package/esm2020/v2/services/guided-sellings-api.service.mjs +37 -0
  40. package/esm2020/v2/services/index.mjs +24 -0
  41. package/esm2020/v2/services/orchestrations-admin-api.service.mjs +87 -0
  42. package/esm2020/v2/services/orchestrations-api.service.mjs +23 -0
  43. package/esm2020/v2/services/pcm-api.service.mjs +38 -0
  44. package/esm2020/v2/services/picklists-admin-api.service.mjs +41 -0
  45. package/esm2020/v2/services/products-admin-api.service.mjs +90 -0
  46. package/esm2020/v2/services/sales-transactions-api.service.mjs +52 -0
  47. package/esm2020/v2/services/salesforce-api.service.mjs +83 -0
  48. package/esm2020/v2/services/shopping-cart-settings-api.service.mjs +28 -0
  49. package/esm2020/v2/services/ui-definitions-admin-api.service.mjs +70 -0
  50. package/esm2020/v2/services/ui-templates-admin-api.service.mjs +286 -0
  51. package/esm2020/v2/services/veloce-objects-api.service.mjs +90 -0
  52. package/esm2020/v2/types/attachment.types.mjs +2 -0
  53. package/esm2020/v2/types/clone-request.types.mjs +2 -0
  54. package/esm2020/v2/types/dto/configuration-settings-dto.types.mjs +22 -0
  55. package/esm2020/v2/types/dto/ui-definition-dto.types.mjs +2 -0
  56. package/esm2020/v2/types/dto/ui-template-dto.types.mjs +2 -0
  57. package/esm2020/v2/types/function.types.mjs +2 -0
  58. package/esm2020/v2/types/index.mjs +7 -0
  59. package/esm2020/v2/types/pcm.types.mjs +2 -0
  60. package/esm2020/v2/types/procedure.types.mjs +2 -0
  61. package/esm2020/v2/types/sales-transaction.types.mjs +2 -0
  62. package/esm2020/v2/types/search-request.types.mjs +2 -0
  63. package/esm2020/v2/utils/ui-definition.utils.mjs +23 -0
  64. package/esm2020/v2/utils/ui-template.utils.mjs +13 -0
  65. package/esm2020/v2/veloceapps-api-v2.mjs +5 -0
  66. package/esm2020/veloceapps-api.mjs +1 -1
  67. package/fesm2015/veloceapps-api-v2.mjs +1721 -0
  68. package/fesm2015/veloceapps-api-v2.mjs.map +1 -0
  69. package/fesm2015/veloceapps-api.mjs +553 -2892
  70. package/fesm2015/veloceapps-api.mjs.map +1 -1
  71. package/fesm2020/veloceapps-api-v2.mjs +1814 -0
  72. package/fesm2020/veloceapps-api-v2.mjs.map +1 -0
  73. package/fesm2020/veloceapps-api.mjs +552 -2993
  74. package/fesm2020/veloceapps-api.mjs.map +1 -1
  75. package/index.d.ts +1 -44
  76. package/package.json +9 -1
  77. package/src/index.d.ts +15 -0
  78. package/{lib → src/lib}/api.module.d.ts +2 -1
  79. package/{lib → src/lib}/types/index.d.ts +0 -2
  80. package/{lib → src/lib}/types/stateful-configuration.types.d.ts +1 -2
  81. package/src/lib/utils/index.d.ts +1 -0
  82. package/v2/api-v2.module.d.ts +7 -0
  83. package/v2/index.d.ts +3 -0
  84. package/v2/services/cache-api.service.d.ts +11 -0
  85. package/{lib → v2}/services/catalog-admin-api.service.d.ts +2 -2
  86. package/{lib → v2}/services/catalog-api.service.d.ts +5 -5
  87. package/{lib → v2}/services/configuration-settings-api.service.d.ts +1 -2
  88. package/{lib/services/rlm-api.service.d.ts → v2/services/context-definition-admin-api.service.d.ts} +5 -4
  89. package/{lib → v2}/services/document-attachment-api.service.d.ts +1 -1
  90. package/{lib/services/endpoints-api.service.d.ts → v2/services/endpoints-admin-api.service.d.ts} +3 -4
  91. package/v2/services/functions-admin-api.service.d.ts +25 -0
  92. package/v2/services/index.d.ts +23 -0
  93. package/v2/services/orchestrations-admin-api.service.d.ts +21 -0
  94. package/v2/services/orchestrations-api.service.d.ts +12 -0
  95. package/v2/services/pcm-api.service.d.ts +12 -0
  96. package/{lib/services/picklists-api.service.d.ts → v2/services/picklists-admin-api.service.d.ts} +3 -3
  97. package/v2/services/products-admin-api.service.d.ts +21 -0
  98. package/v2/services/sales-transactions-api.service.d.ts +26 -0
  99. package/{lib → v2}/services/salesforce-api.service.d.ts +1 -0
  100. package/v2/services/ui-definitions-admin-api.service.d.ts +18 -0
  101. package/{lib/services/ui-templates-api.service.d.ts → v2/services/ui-templates-admin-api.service.d.ts} +3 -3
  102. package/{lib → v2}/services/veloce-objects-api.service.d.ts +3 -3
  103. package/v2/types/clone-request.types.d.ts +5 -0
  104. package/v2/types/dto/ui-definition-dto.types.d.ts +7 -0
  105. package/v2/types/function.types.d.ts +14 -0
  106. package/v2/types/index.d.ts +6 -0
  107. package/v2/types/pcm.types.d.ts +10 -0
  108. package/v2/types/procedure.types.d.ts +61 -0
  109. package/v2/types/sales-transaction.types.d.ts +13 -0
  110. package/v2/types/search-request.types.d.ts +8 -0
  111. package/v2/utils/ui-definition.utils.d.ts +5 -0
  112. package/esm2020/lib/api.module.mjs +0 -146
  113. package/esm2020/lib/services/account-api.service.mjs +0 -87
  114. package/esm2020/lib/services/auth.service.mjs +0 -22
  115. package/esm2020/lib/services/catalog-admin-api.service.mjs +0 -192
  116. package/esm2020/lib/services/catalog-api.service.mjs +0 -90
  117. package/esm2020/lib/services/configuration-api.service.mjs +0 -122
  118. package/esm2020/lib/services/configuration-processors-api.service.mjs +0 -38
  119. package/esm2020/lib/services/configuration-settings-api.service.mjs +0 -96
  120. package/esm2020/lib/services/context-api.service.mjs +0 -26
  121. package/esm2020/lib/services/contracted-price-api.service.mjs +0 -45
  122. package/esm2020/lib/services/delta-api.service.mjs +0 -23
  123. package/esm2020/lib/services/document-attachment-api.service.mjs +0 -66
  124. package/esm2020/lib/services/endpoints-api.service.mjs +0 -80
  125. package/esm2020/lib/services/flow-state-api.mjs +0 -142
  126. package/esm2020/lib/services/flows-api.service.mjs +0 -29
  127. package/esm2020/lib/services/guided-sellings-admin-api.service.mjs +0 -65
  128. package/esm2020/lib/services/guided-sellings-api.service.mjs +0 -37
  129. package/esm2020/lib/services/offers-api.service.mjs +0 -76
  130. package/esm2020/lib/services/org-info-api.service.mjs +0 -54
  131. package/esm2020/lib/services/picklists-api.service.mjs +0 -41
  132. package/esm2020/lib/services/portals-api.service.mjs +0 -76
  133. package/esm2020/lib/services/price-api.service.mjs +0 -63
  134. package/esm2020/lib/services/procedures-api.service.mjs +0 -113
  135. package/esm2020/lib/services/product-api.service.mjs +0 -153
  136. package/esm2020/lib/services/product-model-api.service.mjs +0 -223
  137. package/esm2020/lib/services/promotions-api.service.mjs +0 -68
  138. package/esm2020/lib/services/quote-api.service.mjs +0 -56
  139. package/esm2020/lib/services/ramp-api.service.mjs +0 -31
  140. package/esm2020/lib/services/rebate-program-api.service.mjs +0 -68
  141. package/esm2020/lib/services/rebate-type-api.service.mjs +0 -68
  142. package/esm2020/lib/services/rlm-api.service.mjs +0 -64
  143. package/esm2020/lib/services/rlm-quote-api.service.mjs +0 -27
  144. package/esm2020/lib/services/rule-groups-api.service.mjs +0 -62
  145. package/esm2020/lib/services/rules-api.service.mjs +0 -98
  146. package/esm2020/lib/services/salesforce-api.service.mjs +0 -79
  147. package/esm2020/lib/services/sandbox-manager-api.service.mjs +0 -94
  148. package/esm2020/lib/services/scripts-api.service.mjs +0 -83
  149. package/esm2020/lib/services/shopping-cart-settings-api.service.mjs +0 -28
  150. package/esm2020/lib/services/stateful-configuration-api.mjs +0 -51
  151. package/esm2020/lib/services/ui-definitions-api.service.mjs +0 -122
  152. package/esm2020/lib/services/ui-templates-api.service.mjs +0 -286
  153. package/esm2020/lib/services/veloce-objects-api.service.mjs +0 -90
  154. package/esm2020/lib/types/attachment.types.mjs +0 -2
  155. package/esm2020/lib/types/auth.types.mjs +0 -2
  156. package/esm2020/lib/types/clone-request.types.mjs +0 -2
  157. package/esm2020/lib/types/delta-request.types.mjs +0 -2
  158. package/esm2020/lib/types/dto/configuration-settings-dto.types.mjs +0 -22
  159. package/esm2020/lib/types/dto/offers-dto.types.mjs +0 -2
  160. package/esm2020/lib/types/dto/ui-template-dto.types.mjs +0 -2
  161. package/esm2020/lib/types/index.mjs +0 -8
  162. package/esm2020/lib/types/org-info.types.mjs +0 -2
  163. package/esm2020/lib/types/price.types.mjs +0 -2
  164. package/esm2020/lib/types/quote.types.mjs +0 -2
  165. package/esm2020/lib/types/ramp-request.types.mjs +0 -2
  166. package/esm2020/lib/types/search-request.types.mjs +0 -2
  167. package/esm2020/lib/types/stateful-configuration.types.mjs +0 -2
  168. package/esm2020/lib/utils/canvas.utils.mjs +0 -33
  169. package/esm2020/lib/utils/index.mjs +0 -3
  170. package/esm2020/lib/utils/ui-template.utils.mjs +0 -13
  171. package/lib/services/configuration-api.service.d.ts +0 -23
  172. package/lib/services/context-api.service.d.ts +0 -11
  173. package/lib/services/delta-api.service.d.ts +0 -12
  174. package/lib/services/price-api.service.d.ts +0 -16
  175. package/lib/services/procedures-api.service.d.ts +0 -30
  176. package/lib/services/product-api.service.d.ts +0 -31
  177. package/lib/services/product-model-api.service.d.ts +0 -29
  178. package/lib/services/quote-api.service.d.ts +0 -22
  179. package/lib/services/ramp-api.service.d.ts +0 -13
  180. package/lib/services/rlm-quote-api.service.d.ts +0 -11
  181. package/lib/services/rule-groups-api.service.d.ts +0 -18
  182. package/lib/services/rules-api.service.d.ts +0 -22
  183. package/lib/services/scripts-api.service.d.ts +0 -21
  184. package/lib/services/ui-definitions-api.service.d.ts +0 -21
  185. package/lib/types/price.types.d.ts +0 -5
  186. package/lib/types/quote.types.d.ts +0 -8
  187. package/lib/types/ramp-request.types.d.ts +0 -13
  188. package/lib/utils/index.d.ts +0 -2
  189. /package/{lib → src/lib}/services/account-api.service.d.ts +0 -0
  190. /package/{lib → src/lib}/services/auth.service.d.ts +0 -0
  191. /package/{lib → src/lib}/services/contracted-price-api.service.d.ts +0 -0
  192. /package/{lib → src/lib}/services/flow-state-api.d.ts +0 -0
  193. /package/{lib → src/lib}/services/offers-api.service.d.ts +0 -0
  194. /package/{lib → src/lib}/services/org-info-api.service.d.ts +0 -0
  195. /package/{lib → src/lib}/services/portals-api.service.d.ts +0 -0
  196. /package/{lib → src/lib}/services/promotions-api.service.d.ts +0 -0
  197. /package/{lib → src/lib}/services/rebate-program-api.service.d.ts +0 -0
  198. /package/{lib → src/lib}/services/rebate-type-api.service.d.ts +0 -0
  199. /package/{lib → src/lib}/services/sandbox-manager-api.service.d.ts +0 -0
  200. /package/{lib → src/lib}/services/stateful-configuration-api.d.ts +0 -0
  201. /package/{lib → src/lib}/types/auth.types.d.ts +0 -0
  202. /package/{lib → src/lib}/types/clone-request.types.d.ts +0 -0
  203. /package/{lib → src/lib}/types/delta-request.types.d.ts +0 -0
  204. /package/{lib → src/lib}/types/dto/offers-dto.types.d.ts +0 -0
  205. /package/{lib → src/lib}/types/org-info.types.d.ts +0 -0
  206. /package/{lib → src/lib}/types/search-request.types.d.ts +0 -0
  207. /package/{lib → src/lib}/utils/canvas.utils.d.ts +0 -0
  208. /package/{lib → v2}/services/configuration-processors-api.service.d.ts +0 -0
  209. /package/{lib → v2}/services/flows-api.service.d.ts +0 -0
  210. /package/{lib → v2}/services/guided-sellings-admin-api.service.d.ts +0 -0
  211. /package/{lib → v2}/services/guided-sellings-api.service.d.ts +0 -0
  212. /package/{lib → v2}/services/shopping-cart-settings-api.service.d.ts +0 -0
  213. /package/{lib → v2}/types/attachment.types.d.ts +0 -0
  214. /package/{lib → v2}/types/dto/configuration-settings-dto.types.d.ts +0 -0
  215. /package/{lib → v2}/types/dto/ui-template-dto.types.d.ts +0 -0
  216. /package/{lib → v2}/utils/ui-template.utils.d.ts +0 -0
@@ -0,0 +1,1721 @@
1
+ import { HttpParams, HttpErrorResponse, HttpClientModule } from '@angular/common/http';
2
+ import * as i0 from '@angular/core';
3
+ import { Injectable, NgModule } from '@angular/core';
4
+ import * as i1 from '@veloceapps/core';
5
+ import { Expression, Operator, parseJsonSafely, parseJsonStringAsObject, BaseHttpService, XrayService } from '@veloceapps/core';
6
+ import { noop, of, map as map$1, tap as tap$1, catchError as catchError$1, forkJoin, switchMap } from 'rxjs';
7
+ import { map, catchError, tap } from 'rxjs/operators';
8
+ import * as i2 from 'primeng/api';
9
+ import { __rest } from 'tslib';
10
+
11
+ class CacheApiService {
12
+ constructor(httpService) {
13
+ this.httpService = httpService;
14
+ this.SERVICE_URL = '/v2/cache/evict';
15
+ }
16
+ clear$(name, options) {
17
+ return this.httpService.api(Object.assign({ method: 'get', url: `${this.SERVICE_URL}/` + name }, options));
18
+ }
19
+ }
20
+ CacheApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CacheApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
21
+ CacheApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CacheApiService });
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CacheApiService, decorators: [{
23
+ type: Injectable
24
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
25
+
26
+ class CatalogAdminApiService {
27
+ constructor(baseHttpService) {
28
+ this.baseHttpService = baseHttpService;
29
+ this.serviceUrl = '/v2/catalogs';
30
+ this.fetchCatalogs$ = (searchParams) => {
31
+ const params = new HttpParams({ fromObject: Object.assign({}, searchParams) });
32
+ return this.baseHttpService.api({ url: `${this.serviceUrl}`, params });
33
+ };
34
+ this.searchCatalogs$ = (searchParams, expression) => {
35
+ const params = new HttpParams({ fromObject: Object.assign({}, searchParams) });
36
+ return this.baseHttpService.api({
37
+ method: 'post',
38
+ url: `${this.serviceUrl}/search`,
39
+ params,
40
+ body: expression || {},
41
+ });
42
+ };
43
+ this.fetchCategories$ = (catalogId) => {
44
+ return this.baseHttpService.api({ url: `${this.serviceUrl}/${catalogId}/categories` });
45
+ };
46
+ this.searchProducts$ = (catalogId, categoryId) => {
47
+ return this.baseHttpService.api({
48
+ method: 'post',
49
+ url: `${this.serviceUrl}/${catalogId}/categories/${categoryId}/products/search`,
50
+ body: {},
51
+ });
52
+ };
53
+ this.fetchAttributes$ = (catalogId, categoryId) => {
54
+ return this.baseHttpService.api({ url: `${this.serviceUrl}/${catalogId}/categories/${categoryId}/attributes` });
55
+ };
56
+ this.createNewCatalog$ = (catalogData) => {
57
+ return this.baseHttpService.api({
58
+ url: `${this.serviceUrl}`,
59
+ method: 'post',
60
+ body: catalogData,
61
+ });
62
+ };
63
+ this.duplicateCatalog$ = (cloneRequest) => {
64
+ return this.baseHttpService.api({
65
+ url: `${this.serviceUrl}/${cloneRequest.id}/clone`,
66
+ method: 'post',
67
+ body: cloneRequest,
68
+ });
69
+ };
70
+ this.updateCatalog$ = (data) => {
71
+ return this.baseHttpService.api({
72
+ url: `${this.serviceUrl}/${data.id}`,
73
+ method: 'put',
74
+ body: data,
75
+ });
76
+ };
77
+ this.removeCatalog$ = (id) => {
78
+ return this.baseHttpService.api({
79
+ url: `${this.serviceUrl}/${id}`,
80
+ method: 'delete',
81
+ });
82
+ };
83
+ this.restoreCatalog$ = (id) => {
84
+ return this.baseHttpService.api({
85
+ url: `${this.serviceUrl}/${id}/restore`,
86
+ method: 'patch',
87
+ });
88
+ };
89
+ this.createNewCategory$ = (categoryData) => {
90
+ return this.baseHttpService.api({
91
+ url: `${this.serviceUrl}/${categoryData.catalogId}/categories`,
92
+ method: 'post',
93
+ body: categoryData,
94
+ });
95
+ };
96
+ this.updateCategory$ = (category) => {
97
+ return this.baseHttpService.api({
98
+ url: `${this.serviceUrl}/${category.catalogId}/categories/${category.id}`,
99
+ method: 'put',
100
+ body: category,
101
+ });
102
+ };
103
+ this.duplicateCategory$ = (catalogId, cloneRequest) => {
104
+ return this.baseHttpService.api({
105
+ url: `${this.serviceUrl}/${catalogId}/categories/${cloneRequest.id}/clone`,
106
+ method: 'post',
107
+ body: cloneRequest,
108
+ });
109
+ };
110
+ this.removeCategory$ = (id, catalogId) => {
111
+ return this.baseHttpService.api({
112
+ url: `${this.serviceUrl}/${catalogId}/categories/${id}`,
113
+ method: 'delete',
114
+ });
115
+ };
116
+ this.restoreCategory$ = (id, catalogId) => {
117
+ return this.baseHttpService.api({
118
+ url: `${this.serviceUrl}/${catalogId}/categories/${id}/restore`,
119
+ method: 'patch',
120
+ });
121
+ };
122
+ this.removeAttribute$ = ({ catalogId, categoryId, data, }) => {
123
+ return this.baseHttpService.api({
124
+ method: 'delete',
125
+ url: `${this.serviceUrl}/${catalogId}/categories/${categoryId}/attributes/${data.id}`,
126
+ body: data,
127
+ });
128
+ };
129
+ this.restoreAttribute$ = ({ catalogId, categoryId, data, }) => {
130
+ return this.baseHttpService.api({
131
+ url: `${this.serviceUrl}/${catalogId}/categories/${categoryId}/attributes/${data.id}/restore`,
132
+ method: 'patch',
133
+ });
134
+ };
135
+ this.createNewAttribute$ = ({ catalogId, categoryId, data, }) => {
136
+ return this.baseHttpService.api({
137
+ method: 'post',
138
+ url: `${this.serviceUrl}/${catalogId}/categories/${categoryId}/attributes`,
139
+ body: data,
140
+ });
141
+ };
142
+ this.updateAttribute$ = ({ catalogId, categoryId, data, }) => {
143
+ return this.baseHttpService.api({
144
+ method: 'put',
145
+ url: `${this.serviceUrl}/${catalogId}/categories/${categoryId}/attributes/${data.id}`,
146
+ body: data,
147
+ });
148
+ };
149
+ this.searchProductCandidates$ = (catalogId, categoryId, expression, searchParams) => {
150
+ const params = new HttpParams({ fromObject: Object.assign({}, searchParams) });
151
+ return this.baseHttpService.api({
152
+ method: 'post',
153
+ url: `${this.serviceUrl}/${catalogId}/categories/${categoryId}/candidates/search`,
154
+ params,
155
+ body: expression,
156
+ });
157
+ };
158
+ this.addProduct$ = (product, catalogId, categoryId) => {
159
+ return this.baseHttpService.api({
160
+ method: 'post',
161
+ url: `${this.serviceUrl}/${catalogId}/categories/${categoryId}/products`,
162
+ body: product,
163
+ });
164
+ };
165
+ this.updateProduct$ = (product, catalogId, categoryId) => {
166
+ return this.baseHttpService.api({
167
+ method: 'put',
168
+ url: `${this.serviceUrl}/${catalogId}/categories/${categoryId}/products/${product.id}`,
169
+ body: product,
170
+ });
171
+ };
172
+ this.removeProduct$ = ({ catalogId, categoryId, data, }) => {
173
+ return this.baseHttpService.api({
174
+ method: 'delete',
175
+ url: `${this.serviceUrl}/${catalogId}/categories/${categoryId}/products/${data.id}`,
176
+ });
177
+ };
178
+ }
179
+ attachImage$(catalogId, categoryId, file) {
180
+ const data = new FormData();
181
+ data.append('image', file);
182
+ return this.baseHttpService.upload({
183
+ method: 'post',
184
+ url: `${this.serviceUrl}/${catalogId}/categories/${categoryId}/image`,
185
+ body: data,
186
+ });
187
+ }
188
+ removeImage$(catalogId, categoryId) {
189
+ return this.baseHttpService.api({
190
+ method: 'delete',
191
+ url: `${this.serviceUrl}/${catalogId}/categories/${categoryId}/image`,
192
+ });
193
+ }
194
+ fetchImage$(catalogId, categoryId) {
195
+ return this.baseHttpService.api({
196
+ url: this.getImageUrl(catalogId, categoryId),
197
+ method: 'get',
198
+ responseType: 'blob',
199
+ errorHandler: noop,
200
+ });
201
+ }
202
+ getImageUrl(catalogId, categoryId) {
203
+ return `${this.serviceUrl}/${catalogId}/categories/${categoryId}/image`;
204
+ }
205
+ }
206
+ CatalogAdminApiService.MAX_RESULTS = 60;
207
+ CatalogAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
208
+ CatalogAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogAdminApiService });
209
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogAdminApiService, decorators: [{
210
+ type: Injectable
211
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
212
+
213
+ class CatalogApiService {
214
+ constructor(service) {
215
+ this.service = service;
216
+ this.serviceUrl = '/v2/product-catalogs';
217
+ }
218
+ fetchCatalogs$() {
219
+ return this.service.api({
220
+ method: 'get',
221
+ url: `${this.serviceUrl}`,
222
+ });
223
+ }
224
+ searchCatalogs$(searchParams, expression) {
225
+ const params = new HttpParams({ fromObject: searchParams });
226
+ return this.service.api({
227
+ method: 'post',
228
+ url: `${this.serviceUrl}/search`,
229
+ params,
230
+ body: expression,
231
+ });
232
+ }
233
+ getCatalog$(id) {
234
+ return this.service.api({
235
+ method: 'get',
236
+ url: `${this.serviceUrl}/${id}`,
237
+ });
238
+ }
239
+ fetchCategories$(catalogId) {
240
+ return this.service.api({
241
+ method: 'get',
242
+ url: `${this.serviceUrl}/${catalogId}/categories`,
243
+ });
244
+ }
245
+ fetchCatalogProducts$(catalogId, searchParams, context) {
246
+ const params = new HttpParams({ fromObject: searchParams });
247
+ return this.service.api({
248
+ method: 'post',
249
+ url: `${this.serviceUrl}/${catalogId}/products`,
250
+ params,
251
+ body: context,
252
+ });
253
+ }
254
+ fetchCategoryProducts$(catalogId, categoryId, searchParams, context) {
255
+ const params = new HttpParams({ fromObject: searchParams });
256
+ return this.service.api({
257
+ method: 'post',
258
+ url: `${this.serviceUrl}/${catalogId}/categories/${categoryId}/products`,
259
+ params,
260
+ body: context,
261
+ });
262
+ }
263
+ searchCategoryProducts$(catalogId, categoryId, searchParams, searchRequest, context) {
264
+ const params = new HttpParams({ fromObject: searchParams });
265
+ return this.service.api({
266
+ method: 'post',
267
+ url: `${this.serviceUrl}/${catalogId}/categories/${categoryId}/products/search`,
268
+ params,
269
+ body: {
270
+ configurationContext: context,
271
+ request: searchRequest,
272
+ },
273
+ });
274
+ }
275
+ fetchEligibleProducts$(searchParams, context) {
276
+ const params = new HttpParams({ fromObject: searchParams });
277
+ return this.service.api({
278
+ method: 'post',
279
+ url: `${this.serviceUrl}/products`,
280
+ params: params,
281
+ body: context,
282
+ });
283
+ }
284
+ fetchProducts$(searchParams) {
285
+ const params = new HttpParams({ fromObject: searchParams });
286
+ return this.service.api({
287
+ method: 'get',
288
+ url: `${this.serviceUrl}/products`,
289
+ params: params,
290
+ });
291
+ }
292
+ }
293
+ CatalogApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
294
+ CatalogApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogApiService });
295
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogApiService, decorators: [{
296
+ type: Injectable
297
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
298
+
299
+ class ConfigurationProcessorsApiService {
300
+ constructor(baseHttpService) {
301
+ this.baseHttpService = baseHttpService;
302
+ this.serviceUrl = '/v2/configuration/processors/owners';
303
+ this.fetchConfigurationProcessors$ = (ownerId) => {
304
+ return this.baseHttpService.api({ url: `${this.serviceUrl}/${ownerId}` });
305
+ };
306
+ this.createConfigurationProcessors$ = (configurationProcessor) => {
307
+ return this.baseHttpService.api({
308
+ method: 'post',
309
+ url: `${this.serviceUrl}/${configurationProcessor.ownerId}`,
310
+ body: configurationProcessor,
311
+ });
312
+ };
313
+ this.updateConfigurationProcessors$ = (configurationProcessor) => {
314
+ return this.baseHttpService.api({
315
+ method: 'put',
316
+ url: `${this.serviceUrl}/${configurationProcessor.ownerId}/${configurationProcessor.id}`,
317
+ body: configurationProcessor,
318
+ });
319
+ };
320
+ this.deleteConfigurationProcessors$ = (configurationProcessor) => {
321
+ return this.baseHttpService.api({
322
+ method: 'delete',
323
+ url: `${this.serviceUrl}/${configurationProcessor.ownerId}/${configurationProcessor.id}`,
324
+ });
325
+ };
326
+ }
327
+ }
328
+ ConfigurationProcessorsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationProcessorsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
329
+ ConfigurationProcessorsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationProcessorsApiService });
330
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationProcessorsApiService, decorators: [{
331
+ type: Injectable
332
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
333
+
334
+ class ConfigurationSettingsDTO {
335
+ static fromDTO(dto, key) {
336
+ return {
337
+ id: dto === null || dto === void 0 ? void 0 : dto.id,
338
+ key: (dto === null || dto === void 0 ? void 0 : dto.key) || key || '',
339
+ value: dto === null || dto === void 0 ? void 0 : dto.value,
340
+ };
341
+ }
342
+ static toDTO(data) {
343
+ return {
344
+ id: data.id,
345
+ key: data.key,
346
+ value: data.value,
347
+ };
348
+ }
349
+ constructor(id, key, value) {
350
+ this.id = id;
351
+ this.key = key;
352
+ this.value = value;
353
+ }
354
+ }
355
+
356
+ class ConfigurationSettingsApiService {
357
+ constructor(httpService, messageService) {
358
+ this.httpService = httpService;
359
+ this.messageService = messageService;
360
+ this.SERVICE_URL = '/v2/settings';
361
+ }
362
+ fetchSettings(options) {
363
+ return this.httpService
364
+ .api(Object.assign({ url: `${this.SERVICE_URL}`, method: 'get' }, options))
365
+ .pipe(map((settings) => settings.map(setting => ConfigurationSettingsDTO.fromDTO(setting))));
366
+ }
367
+ fetchSetting(settingsKey, options) {
368
+ return this.httpService
369
+ .api(Object.assign(Object.assign({ url: `${this.SERVICE_URL}/byKey/${settingsKey}`, method: 'get' }, options), { skipErrorHandler: true }))
370
+ .pipe(map((setting) => ConfigurationSettingsDTO.fromDTO(setting, settingsKey)), catchError(err => {
371
+ if (err instanceof HttpErrorResponse && err.status === 404) {
372
+ if (!(options === null || options === void 0 ? void 0 : options.skipErrorHandler)) {
373
+ this.messageService.add({
374
+ severity: 'error',
375
+ summary: `Configuration Setting "${settingsKey}" is not found`,
376
+ sticky: true,
377
+ });
378
+ }
379
+ return of(null);
380
+ }
381
+ throw err;
382
+ }));
383
+ }
384
+ createSetting(setting, options) {
385
+ const request = ConfigurationSettingsDTO.toDTO(setting);
386
+ return this.httpService.api(Object.assign({ url: `${this.SERVICE_URL}`, method: 'post', body: Object.assign({}, request) }, options));
387
+ }
388
+ updateSetting(setting, options) {
389
+ const request = ConfigurationSettingsDTO.toDTO(setting);
390
+ return this.httpService.api(Object.assign({ url: `${this.SERVICE_URL}/${request.id}`, method: 'put', body: Object.assign({}, request) }, options));
391
+ }
392
+ removeSetting(setting, options) {
393
+ const request = ConfigurationSettingsDTO.toDTO(setting);
394
+ return this.httpService.api(Object.assign({ url: `${this.SERVICE_URL}/${request.id}`, method: 'delete' }, options));
395
+ }
396
+ restoreSetting(settingId, options) {
397
+ return this.httpService.api(Object.assign({ url: `${this.SERVICE_URL}/${settingId}/restore`, method: 'patch' }, options));
398
+ }
399
+ }
400
+ ConfigurationSettingsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationSettingsApiService, deps: [{ token: i1.BaseHttpService }, { token: i2.MessageService }], target: i0.ɵɵFactoryTarget.Injectable });
401
+ ConfigurationSettingsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationSettingsApiService });
402
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationSettingsApiService, decorators: [{
403
+ type: Injectable
404
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: i2.MessageService }]; } });
405
+
406
+ class ContextDefinitionAdminApiService {
407
+ constructor(baseHttpService) {
408
+ this.baseHttpService = baseHttpService;
409
+ this.serviceUrl = '/admin/v2/context-definition';
410
+ }
411
+ fetchContextDefinitions$() {
412
+ return this.baseHttpService.api({ url: `${this.serviceUrl}`, skipErrorHandler: true }).pipe(catchError(() => {
413
+ return of([]);
414
+ }));
415
+ }
416
+ fetchContextMappings$(id) {
417
+ return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}/mappings` });
418
+ }
419
+ fetchContextMappingsDetails$(id) {
420
+ return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}/mappings/details` });
421
+ }
422
+ fetchContextDefinitionStructure$(id) {
423
+ return this.baseHttpService
424
+ .api({
425
+ url: `${this.serviceUrl}/${id}/structure/details`,
426
+ skipErrorHandler: true,
427
+ })
428
+ .pipe(catchError(() => {
429
+ return of([]);
430
+ }), map(objects => {
431
+ return objects.map(object => {
432
+ const objectAttributes = object.attributes || [];
433
+ return {
434
+ id: object.id,
435
+ title: object.title,
436
+ parentNodeId: object.parentNodeId,
437
+ attributeTags: objectAttributes.reduce((result, attribute) => {
438
+ var _a, _b;
439
+ const tag = (_b = (_a = attribute.tags) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.title;
440
+ if (tag) {
441
+ result.push({
442
+ title: tag,
443
+ fieldType: attribute.fieldType,
444
+ dataType: attribute.dataType,
445
+ });
446
+ }
447
+ return result;
448
+ }, []),
449
+ attributes: objectAttributes.map(({ title, fieldType, dataType }) => ({
450
+ title,
451
+ fieldType,
452
+ dataType,
453
+ })),
454
+ };
455
+ });
456
+ }));
457
+ }
458
+ fetchRlmProcedures(contextDefinitionId) {
459
+ const params = {};
460
+ if (contextDefinitionId) {
461
+ params['contextDefinitionId'] = contextDefinitionId;
462
+ }
463
+ return this.baseHttpService.api({
464
+ url: `${this.serviceUrl}/procedures`,
465
+ params,
466
+ });
467
+ }
468
+ }
469
+ ContextDefinitionAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContextDefinitionAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
470
+ ContextDefinitionAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContextDefinitionAdminApiService });
471
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContextDefinitionAdminApiService, decorators: [{
472
+ type: Injectable
473
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
474
+
475
+ class DocumentAttachmentApiService {
476
+ constructor(httpService, fileDownloadService) {
477
+ this.httpService = httpService;
478
+ this.fileDownloadService = fileDownloadService;
479
+ this.SERVICE_URL = '/v2/attachments';
480
+ }
481
+ getAttachments(searchRequest) {
482
+ return this.httpService.api({
483
+ url: `${this.SERVICE_URL}/search`,
484
+ method: 'post',
485
+ body: searchRequest,
486
+ });
487
+ }
488
+ createAttachment(attachment, file, reportProgress) {
489
+ const formData = new FormData();
490
+ if (file) {
491
+ formData.append('file', file, file.name);
492
+ }
493
+ formData.append('attachment', new Blob([JSON.stringify(attachment)], {
494
+ type: 'application/json',
495
+ }));
496
+ return this.httpService.upload({
497
+ url: `${this.SERVICE_URL}`,
498
+ body: formData,
499
+ method: 'post',
500
+ observe: reportProgress ? 'events' : undefined,
501
+ reportProgress,
502
+ });
503
+ }
504
+ updateAttachment(id, attachment) {
505
+ return this.httpService.api({
506
+ url: `${this.SERVICE_URL}/${id}`,
507
+ body: attachment,
508
+ method: 'put',
509
+ });
510
+ }
511
+ getAttachmentFile(id, isPreventDownload) {
512
+ return this.httpService
513
+ .api({
514
+ url: `${this.SERVICE_URL}/${id}/file`,
515
+ responseType: isPreventDownload ? 'arraybuffer' : 'blob',
516
+ observe: isPreventDownload ? 'body' : 'response',
517
+ })
518
+ .pipe(tap(response => {
519
+ if (!isPreventDownload) {
520
+ this.fileDownloadService.processDownload(response);
521
+ }
522
+ }), map(response => (isPreventDownload ? new Blob([response.body || response]) : response.body || response)));
523
+ }
524
+ removeAttachment(id) {
525
+ return this.httpService.api({
526
+ url: `${this.SERVICE_URL}/${id}`,
527
+ method: 'delete',
528
+ });
529
+ }
530
+ }
531
+ 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 });
532
+ DocumentAttachmentApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentAttachmentApiService });
533
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentAttachmentApiService, decorators: [{
534
+ type: Injectable
535
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: i1.FileDownloadService }]; } });
536
+
537
+ class EndpointsAdminApiService {
538
+ constructor(baseHttpService) {
539
+ this.baseHttpService = baseHttpService;
540
+ this.serviceUrl = '/admin/v2/api-endpoints';
541
+ }
542
+ fetchEndpoints$() {
543
+ return this.searchEndpoints$(new Expression(), 0, -1);
544
+ }
545
+ searchEndpoints$(expression, skip, count) {
546
+ let params = new HttpParams();
547
+ params = params.set('skip', '' + skip);
548
+ params = params.set('count', '' + count);
549
+ return this.baseHttpService.api({
550
+ method: 'post',
551
+ url: `${this.serviceUrl}/search`,
552
+ params,
553
+ body: expression,
554
+ });
555
+ }
556
+ removeEndpoint$(id) {
557
+ return this.baseHttpService.api({
558
+ url: `${this.serviceUrl}/${id}`,
559
+ method: 'delete',
560
+ });
561
+ }
562
+ restoreEndpoint$(id) {
563
+ return this.baseHttpService.api({
564
+ url: `${this.serviceUrl}/${id}/restore`,
565
+ method: 'patch',
566
+ });
567
+ }
568
+ fetchEndpoint$(id) {
569
+ return this.baseHttpService.api({
570
+ url: `${this.serviceUrl}/${id}`,
571
+ method: 'get',
572
+ });
573
+ }
574
+ createEndpoint$(body) {
575
+ return this.baseHttpService.api({
576
+ url: `${this.serviceUrl}`,
577
+ method: 'post',
578
+ body,
579
+ });
580
+ }
581
+ updateEndpoint$(body) {
582
+ return this.baseHttpService.api({
583
+ url: `${this.serviceUrl}/${body.id}`,
584
+ method: 'put',
585
+ body,
586
+ });
587
+ }
588
+ duplicateEndpoint$(cloneRequest) {
589
+ return this.baseHttpService.api({
590
+ url: `${this.serviceUrl}/${cloneRequest.id}/clone`,
591
+ method: 'post',
592
+ body: cloneRequest,
593
+ });
594
+ }
595
+ executeEndpoint$(body) {
596
+ return this.baseHttpService.api({
597
+ url: `${this.serviceUrl}/execute`,
598
+ method: 'post',
599
+ body,
600
+ responseType: 'text',
601
+ skipErrorHandler: true,
602
+ });
603
+ }
604
+ }
605
+ EndpointsAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EndpointsAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
606
+ EndpointsAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EndpointsAdminApiService });
607
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EndpointsAdminApiService, decorators: [{
608
+ type: Injectable
609
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
610
+
611
+ class FlowsApiService {
612
+ constructor(configurationSettingsApiService) {
613
+ this.configurationSettingsApiService = configurationSettingsApiService;
614
+ this.flowsKey = 'flows';
615
+ }
616
+ getFlow(id) {
617
+ return this.fetchFlows().pipe(map(flows => flows.find(flow => flow.id == id)), map(flow => {
618
+ if (!flow) {
619
+ throw new Error(`Flow with flowId=${id} is not defined`);
620
+ }
621
+ return flow;
622
+ }));
623
+ }
624
+ fetchFlows() {
625
+ return this.configurationSettingsApiService
626
+ .fetchSetting(this.flowsKey)
627
+ .pipe(map((setting) => ((setting === null || setting === void 0 ? void 0 : setting.value) ? JSON.parse(setting.value) : [])));
628
+ }
629
+ }
630
+ FlowsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowsApiService, deps: [{ token: ConfigurationSettingsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
631
+ FlowsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowsApiService });
632
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowsApiService, decorators: [{
633
+ type: Injectable
634
+ }], ctorParameters: function () { return [{ type: ConfigurationSettingsApiService }]; } });
635
+
636
+ class FunctionsAdminApiService {
637
+ constructor(baseHttpService) {
638
+ this.baseHttpService = baseHttpService;
639
+ this.serviceUrl = '/admin/v2/functions';
640
+ this.fetchAll$ = () => {
641
+ return this.search$(new Expression(), 0, 100);
642
+ };
643
+ this.search$ = (expression, skip, count) => {
644
+ let params = new HttpParams();
645
+ if (typeof skip === 'number') {
646
+ params = params.set('skip', '' + skip);
647
+ }
648
+ if (typeof count === 'number') {
649
+ params = params.set('count', '' + count);
650
+ }
651
+ return this.baseHttpService.api({
652
+ method: 'post',
653
+ url: `${this.serviceUrl}/rules/search`,
654
+ params,
655
+ body: expression,
656
+ });
657
+ };
658
+ this.create$ = (rule) => {
659
+ return this.baseHttpService.api({
660
+ url: `${this.serviceUrl}/rules`,
661
+ method: 'post',
662
+ body: rule,
663
+ });
664
+ };
665
+ this.update$ = (rule) => {
666
+ return this.baseHttpService.api({
667
+ url: `${this.serviceUrl}/rules/${rule.id}`,
668
+ method: 'put',
669
+ body: rule,
670
+ });
671
+ };
672
+ this.duplicate$ = (body) => {
673
+ return this.baseHttpService
674
+ .api({
675
+ url: `${this.serviceUrl}/rules/${body.id}/clone`,
676
+ method: 'post',
677
+ body,
678
+ })
679
+ .pipe(map$1(response => response.clonedRecordId));
680
+ };
681
+ this.remove$ = (id) => {
682
+ return this.baseHttpService.api({
683
+ url: `${this.serviceUrl}/rules/${id}`,
684
+ method: 'delete',
685
+ });
686
+ };
687
+ this.restore$ = (id) => {
688
+ return this.baseHttpService.api({
689
+ url: `${this.serviceUrl}/rules/${id}/restore`,
690
+ method: 'patch',
691
+ });
692
+ };
693
+ }
694
+ fetch$(id) {
695
+ return this.baseHttpService.api({
696
+ url: `${this.serviceUrl}/rules/${id}`,
697
+ method: 'get',
698
+ });
699
+ }
700
+ fetchHeaderFields$() {
701
+ return this.baseHttpService.api({
702
+ url: `${this.serviceUrl}/rules/describe/Header`,
703
+ method: 'get',
704
+ });
705
+ }
706
+ execute$(body) {
707
+ const url = `${this.serviceUrl}/rules/execute`;
708
+ return this.baseHttpService.api({
709
+ url,
710
+ method: 'post',
711
+ body,
712
+ });
713
+ }
714
+ executeExtractFunction$(body) {
715
+ return this.baseHttpService.api({
716
+ url: `${this.serviceUrl}/extract`,
717
+ method: 'post',
718
+ body,
719
+ });
720
+ }
721
+ fetchFunctionDatasets$() {
722
+ return this.baseHttpService.api({
723
+ url: `${this.serviceUrl}/datasets`,
724
+ method: 'get',
725
+ });
726
+ }
727
+ fetchFunctionTags$() {
728
+ return this.baseHttpService.api({
729
+ url: `${this.serviceUrl}/tags`,
730
+ method: 'get',
731
+ });
732
+ }
733
+ fetchObjectParentIdFields$(objectName) {
734
+ return this.baseHttpService.api({
735
+ url: `${this.serviceUrl}/parent-id-fields/${objectName}`,
736
+ method: 'get',
737
+ });
738
+ }
739
+ }
740
+ FunctionsAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FunctionsAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
741
+ FunctionsAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FunctionsAdminApiService });
742
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FunctionsAdminApiService, decorators: [{
743
+ type: Injectable
744
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
745
+
746
+ class GuidedSellingsAdminApiService {
747
+ constructor(baseHttpService) {
748
+ this.baseHttpService = baseHttpService;
749
+ this.serviceUrl = '/admin/v2/guided-selling';
750
+ this.fetchGuidedSellings$ = (searchParams) => {
751
+ return this.searchGuidedSellings$(searchParams);
752
+ };
753
+ this.searchGuidedSellings$ = (searchParams, expression) => {
754
+ const params = new HttpParams({ fromObject: Object.assign({}, searchParams) });
755
+ return this.baseHttpService.api({
756
+ method: 'post',
757
+ url: `${this.serviceUrl}/search`,
758
+ params,
759
+ body: expression || {},
760
+ });
761
+ };
762
+ this.fetchGuidedSelling$ = (id) => {
763
+ return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
764
+ };
765
+ this.createNewGuidedSelling$ = (guidedSelling) => {
766
+ return this.baseHttpService.api({
767
+ url: `${this.serviceUrl}`,
768
+ method: 'post',
769
+ body: guidedSelling,
770
+ });
771
+ };
772
+ this.duplicateGuidedSelling$ = (cloneRequest) => {
773
+ return this.baseHttpService.api({
774
+ url: `${this.serviceUrl}/${cloneRequest.id}/clone`,
775
+ method: 'post',
776
+ body: cloneRequest,
777
+ });
778
+ };
779
+ this.updateGuidedSelling$ = (data) => {
780
+ return this.baseHttpService.api({
781
+ url: `${this.serviceUrl}/${data.id}`,
782
+ method: 'put',
783
+ body: data,
784
+ });
785
+ };
786
+ this.removeGuidedSelling$ = (id) => {
787
+ return this.baseHttpService.api({
788
+ url: `${this.serviceUrl}/${id}`,
789
+ method: 'delete',
790
+ });
791
+ };
792
+ this.restoreGuidedSelling$ = (id) => {
793
+ return this.baseHttpService.api({
794
+ url: `${this.serviceUrl}/${id}/restore`,
795
+ method: 'patch',
796
+ });
797
+ };
798
+ }
799
+ }
800
+ GuidedSellingsAdminApiService.MAX_RESULTS = 60;
801
+ GuidedSellingsAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingsAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
802
+ GuidedSellingsAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingsAdminApiService });
803
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingsAdminApiService, decorators: [{
804
+ type: Injectable
805
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
806
+
807
+ class GuidedSellingApiService {
808
+ constructor(http) {
809
+ this.http = http;
810
+ this.serviceUrl = '/v2/guided-selling';
811
+ }
812
+ searchByName$(name, searchParams) {
813
+ const params = new HttpParams({ fromObject: Object.assign({}, searchParams) });
814
+ const expression = new Expression(undefined, [{ key: 'name', operator: Operator.EQ, value: name }]);
815
+ return this.http.api({
816
+ method: 'post',
817
+ url: `${this.serviceUrl}/search`,
818
+ params,
819
+ body: expression || {},
820
+ });
821
+ }
822
+ searchById$(id, searchParams) {
823
+ const params = new HttpParams({ fromObject: Object.assign({}, searchParams) });
824
+ const expression = new Expression(undefined, [{ key: 'id', operator: Operator.EQ, value: id }]);
825
+ return this.http.api({
826
+ method: 'post',
827
+ url: `${this.serviceUrl}/search`,
828
+ params,
829
+ body: expression || {},
830
+ });
831
+ }
832
+ }
833
+ GuidedSellingApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
834
+ GuidedSellingApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingApiService });
835
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingApiService, decorators: [{
836
+ type: Injectable
837
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
838
+
839
+ class OrchestrationsAdminApiService {
840
+ constructor(baseHttpService) {
841
+ this.baseHttpService = baseHttpService;
842
+ this.SERVICE_URL = '/admin/v2/orchestrations';
843
+ this.fetchAll$ = () => {
844
+ return this.search$(new Expression(), 0, 100);
845
+ };
846
+ this.search$ = (expression, skip, count) => {
847
+ let params = new HttpParams();
848
+ params = params.set('skip', '' + skip);
849
+ params = params.set('count', '' + count);
850
+ return this.baseHttpService.api({
851
+ method: 'post',
852
+ url: `${this.SERVICE_URL}/search`,
853
+ params,
854
+ body: expression,
855
+ });
856
+ };
857
+ this.create$ = (newProcedure) => {
858
+ return this.baseHttpService.api({
859
+ url: `${this.SERVICE_URL}`,
860
+ method: 'post',
861
+ body: newProcedure,
862
+ });
863
+ };
864
+ this.update$ = (procedure) => {
865
+ return this.baseHttpService.api({
866
+ url: `${this.SERVICE_URL}/${procedure.id}`,
867
+ method: 'put',
868
+ body: procedure,
869
+ });
870
+ };
871
+ this.duplicate$ = (body) => {
872
+ return this.baseHttpService
873
+ .api({
874
+ url: `${this.SERVICE_URL}/${body.id}/clone`,
875
+ method: 'post',
876
+ body,
877
+ })
878
+ .pipe(map$1(response => response.clonedRecordId));
879
+ };
880
+ this.remove$ = (id) => {
881
+ return this.baseHttpService.api({
882
+ url: `${this.SERVICE_URL}/${id}`,
883
+ method: 'delete',
884
+ });
885
+ };
886
+ this.restore$ = (id) => {
887
+ return this.baseHttpService.api({
888
+ url: `${this.SERVICE_URL}/${id}/restore`,
889
+ method: 'patch',
890
+ });
891
+ };
892
+ }
893
+ fetch$(id) {
894
+ return this.baseHttpService.api({
895
+ url: `${this.SERVICE_URL}/${id}`,
896
+ method: 'get',
897
+ });
898
+ }
899
+ execute$(body) {
900
+ return this.baseHttpService.api({
901
+ url: `${this.SERVICE_URL}/execute`,
902
+ method: 'post',
903
+ body,
904
+ });
905
+ }
906
+ catalogExecute$(body) {
907
+ return this.baseHttpService.api({
908
+ url: `${this.SERVICE_URL}/catalog/execute`,
909
+ method: 'post',
910
+ body,
911
+ });
912
+ }
913
+ }
914
+ OrchestrationsAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrchestrationsAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
915
+ OrchestrationsAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrchestrationsAdminApiService });
916
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrchestrationsAdminApiService, decorators: [{
917
+ type: Injectable
918
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
919
+
920
+ class OrchestrationsApiService {
921
+ constructor(baseHttpService) {
922
+ this.baseHttpService = baseHttpService;
923
+ this.SERVICE_URL = '/v2/orchestrations';
924
+ }
925
+ apply$(request, options) {
926
+ return this.baseHttpService.api(Object.assign({ url: `${this.SERVICE_URL}/apply`, method: 'post', body: request }, options));
927
+ }
928
+ }
929
+ OrchestrationsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrchestrationsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
930
+ OrchestrationsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrchestrationsApiService });
931
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrchestrationsApiService, decorators: [{
932
+ type: Injectable
933
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
934
+
935
+ class SalesforceApiService {
936
+ constructor(httpService) {
937
+ this.httpService = httpService;
938
+ this.SERVICE_URL = '/v2/proxy';
939
+ }
940
+ query(searchRequest, objectName, options) {
941
+ return this.httpService.api(Object.assign({ method: 'post', body: Object.assign(Object.assign({}, searchRequest), { count: searchRequest.count || 100 }), url: `${this.SERVICE_URL}/query/${objectName}` }, options));
942
+ }
943
+ queryObjects(search, options) {
944
+ let params = new HttpParams();
945
+ if (search) {
946
+ params = params.append('search', search);
947
+ }
948
+ return this.httpService.api(Object.assign({ url: `${this.SERVICE_URL}/query`, params }, options));
949
+ }
950
+ search(req, options) {
951
+ return this.httpService.api(Object.assign({ url: `${this.SERVICE_URL}/rest/search`, params: { q: req.searchString } }, options));
952
+ }
953
+ describeObject(objectName, options) {
954
+ const methodUrl = `${this.SERVICE_URL}/describe/${objectName}/fields`;
955
+ return this.httpService.api(Object.assign({ url: methodUrl }, options));
956
+ }
957
+ describeField(objectName, fieldName, options) {
958
+ const methodUrl = `${this.SERVICE_URL}/describe/${objectName}/fields/${fieldName}`;
959
+ return this.httpService.api(Object.assign({ url: methodUrl }, options));
960
+ }
961
+ describe2(objectName, fields, options) {
962
+ const methodUrl = `${this.SERVICE_URL}/describe/${objectName}/fields`;
963
+ return this.httpService.api(Object.assign({ method: 'post', url: methodUrl, body: fields }, options));
964
+ }
965
+ apexGetRequest(path, params, options) {
966
+ // this line is needed because HttpParams instance from Integration behaves wrong in studio instance of Angular
967
+ const httpParams = new HttpParams({ fromString: params.toString() });
968
+ return this.httpService.api(Object.assign({ url: `${this.SERVICE_URL}/apex${path}`, params: httpParams }, options));
969
+ }
970
+ apexPostRequest(path, body, options) {
971
+ return this.httpService.api(Object.assign({ method: 'post', body, url: `${this.SERVICE_URL}/apex${path}` }, options));
972
+ }
973
+ restGetRequest(path, params, options) {
974
+ const httpParams = new HttpParams({ fromString: params.toString() });
975
+ return this.httpService.api(Object.assign({ url: `${this.SERVICE_URL}/rest${path}`, params: httpParams }, options));
976
+ }
977
+ getGlobalPicklists() {
978
+ return this.httpService.api({
979
+ method: 'get',
980
+ url: `${this.SERVICE_URL}/globalvalueset`,
981
+ });
982
+ }
983
+ getGlobalPicklistValues(id) {
984
+ return this.httpService.api({
985
+ method: 'get',
986
+ url: `${this.SERVICE_URL}/globalvalueset/${id}/values`,
987
+ });
988
+ }
989
+ }
990
+ SalesforceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesforceApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
991
+ SalesforceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesforceApiService });
992
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesforceApiService, decorators: [{
993
+ type: Injectable
994
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
995
+
996
+ class PCMApiService {
997
+ constructor(sfApiService) {
998
+ this.sfApiService = sfApiService;
999
+ }
1000
+ fetchPCMByProductId(productId) {
1001
+ return this.sfApiService.restGetRequest(`/connect/pcm/products/${productId}`, new HttpParams()).pipe(tap$1(response => {
1002
+ if (response.status.code !== '200') {
1003
+ throw new Error(response.status.message);
1004
+ }
1005
+ }), map$1(response => {
1006
+ const pcm = response.products[0];
1007
+ if (!pcm) {
1008
+ throw new Error('PCM product is not found');
1009
+ }
1010
+ this.fixUrls(pcm);
1011
+ return pcm;
1012
+ }));
1013
+ }
1014
+ fixUrls(product) {
1015
+ if (product.displayUrl) {
1016
+ product.displayUrl = product.displayUrl.replaceAll('&', '&');
1017
+ }
1018
+ product.productComponentGroups.forEach(group => {
1019
+ group.components.forEach(component => this.fixUrls(component));
1020
+ });
1021
+ }
1022
+ }
1023
+ PCMApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PCMApiService, deps: [{ token: SalesforceApiService }], target: i0.ɵɵFactoryTarget.Injectable });
1024
+ PCMApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PCMApiService });
1025
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PCMApiService, decorators: [{
1026
+ type: Injectable
1027
+ }], ctorParameters: function () { return [{ type: SalesforceApiService }]; } });
1028
+
1029
+ class PicklistsAdminApiService {
1030
+ constructor(baseHttpService) {
1031
+ this.baseHttpService = baseHttpService;
1032
+ this.serviceUrl = '/admin/v2/picklists';
1033
+ this.fetchAllPicklists$ = () => this.baseHttpService.api({ url: `${this.serviceUrl}` });
1034
+ this.fetchPicklist$ = (code) => this.baseHttpService.api({ url: `${this.serviceUrl}/${code}` });
1035
+ this.createPicklist$ = (picklist) => {
1036
+ return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}`, body: picklist });
1037
+ };
1038
+ this.updatePicklist$ = (picklist) => {
1039
+ return this.baseHttpService.api({
1040
+ method: 'put',
1041
+ url: `${this.serviceUrl}/${picklist.id}`,
1042
+ body: picklist,
1043
+ });
1044
+ };
1045
+ this.removePicklist$ = (id) => this.baseHttpService.api({ method: 'delete', url: `${this.serviceUrl}/${id}` });
1046
+ this.restorePicklist$ = (id) => {
1047
+ return this.baseHttpService.api({
1048
+ url: `${this.serviceUrl}/${id}/restore`,
1049
+ method: 'patch',
1050
+ });
1051
+ };
1052
+ this.addPicklistValue$ = (picklist, value) => {
1053
+ const data = Object.assign(Object.assign({}, picklist), { values: [...picklist.values, value] });
1054
+ return this.baseHttpService.api({ method: 'put', url: `${this.serviceUrl}/${picklist.id}`, body: data });
1055
+ };
1056
+ }
1057
+ }
1058
+ PicklistsAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PicklistsAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1059
+ PicklistsAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PicklistsAdminApiService });
1060
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PicklistsAdminApiService, decorators: [{
1061
+ type: Injectable
1062
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1063
+
1064
+ class ProductsAdminApiService {
1065
+ constructor(baseHttpService) {
1066
+ this.baseHttpService = baseHttpService;
1067
+ this.serviceUrl = '/admin/v2/products';
1068
+ this.fetchProducts$ = (payload) => {
1069
+ let params = new HttpParams();
1070
+ params = params.append('count', payload.count);
1071
+ params = params.append('skip', payload.skip);
1072
+ if (payload.name) {
1073
+ params = params.append('name', payload.name);
1074
+ }
1075
+ return this.baseHttpService.api({ url: `${this.serviceUrl}`, params });
1076
+ };
1077
+ this.searchProducts$ = (expression, skip, count) => {
1078
+ let params = new HttpParams();
1079
+ params = params.set('skip', '' + skip);
1080
+ params = params.set('count', '' + count);
1081
+ return this.baseHttpService.api({
1082
+ method: 'post',
1083
+ url: `${this.serviceUrl}/search`,
1084
+ params: params,
1085
+ body: expression,
1086
+ });
1087
+ };
1088
+ this.fetchProduct$ = (id) => this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
1089
+ this.createNewProduct$ = (productData) => {
1090
+ return this.baseHttpService.api({
1091
+ url: `${this.serviceUrl}`,
1092
+ method: 'post',
1093
+ body: productData,
1094
+ });
1095
+ };
1096
+ this.updateProduct$ = (body) => {
1097
+ return this.baseHttpService.api({
1098
+ url: `${this.serviceUrl}/${body.id}`,
1099
+ method: 'put',
1100
+ body,
1101
+ });
1102
+ };
1103
+ this.removeProduct$ = (id) => {
1104
+ return this.baseHttpService.api({
1105
+ url: `${this.serviceUrl}/${id}`,
1106
+ method: 'delete',
1107
+ });
1108
+ };
1109
+ this.restoreProduct$ = (id) => {
1110
+ return this.baseHttpService.api({
1111
+ url: `${this.serviceUrl}/${id}/restore`,
1112
+ method: 'patch',
1113
+ });
1114
+ };
1115
+ }
1116
+ attachImage$(productId, file) {
1117
+ const data = new FormData();
1118
+ data.append('image', file);
1119
+ return this.baseHttpService.upload({
1120
+ method: 'post',
1121
+ url: `${this.serviceUrl}/${productId}/image`,
1122
+ body: data,
1123
+ });
1124
+ }
1125
+ removeImage$(productId) {
1126
+ return this.baseHttpService.api({
1127
+ method: 'delete',
1128
+ url: `${this.serviceUrl}/${productId}/image`,
1129
+ });
1130
+ }
1131
+ fetchImage$(productId) {
1132
+ return this.baseHttpService.api({
1133
+ url: this.getImageUrl(productId),
1134
+ method: 'get',
1135
+ responseType: 'blob',
1136
+ errorHandler: noop,
1137
+ });
1138
+ }
1139
+ getImageUrl(productId) {
1140
+ return `${this.serviceUrl}/${productId}/image`;
1141
+ }
1142
+ }
1143
+ ProductsAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductsAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1144
+ ProductsAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductsAdminApiService });
1145
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductsAdminApiService, decorators: [{
1146
+ type: Injectable
1147
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1148
+
1149
+ class SalesTransactionApiService {
1150
+ constructor(httpService) {
1151
+ this.httpService = httpService;
1152
+ this.SERVICE_URL = '/v2/transactions';
1153
+ }
1154
+ /**
1155
+ * This endpoint doesn't include orders and assets
1156
+ * @param objectId SF record ID (quoteId | accountId | opportunityId | orderId etc)
1157
+ * @param params Query params
1158
+ * @param options Request options
1159
+ */
1160
+ getState(objectId, params, options) {
1161
+ return this.httpService.api(Object.assign({ method: 'get', url: `${this.SERVICE_URL}/${objectId}`, params: params }, options));
1162
+ }
1163
+ /**
1164
+ * This endpoint doesn't include orders and assets
1165
+ * @param headerId SF record ID (quoteId | accountId | opportunityId | orderId etc)
1166
+ * @param params Query params
1167
+ * @param options Request options
1168
+ */
1169
+ query(headerId, params, options) {
1170
+ return this.httpService.api(Object.assign({ method: 'get', url: `${this.SERVICE_URL}/query/${headerId}`, params: params }, options));
1171
+ }
1172
+ save(request, options) {
1173
+ return this.httpService.api(Object.assign(Object.assign({ method: 'post', url: `${this.SERVICE_URL}/save/${request.transactionContext.salesTransaction.id}`, body: request }, options), { responseType: 'text' }));
1174
+ }
1175
+ }
1176
+ SalesTransactionApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesTransactionApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1177
+ SalesTransactionApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesTransactionApiService });
1178
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesTransactionApiService, decorators: [{
1179
+ type: Injectable
1180
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1181
+
1182
+ class ShoppingCartSettingsApiService {
1183
+ constructor(configurationSettingsApiService) {
1184
+ this.configurationSettingsApiService = configurationSettingsApiService;
1185
+ this.shoppingCartSettingsKey = 'shopping-cart';
1186
+ }
1187
+ getSetting(id) {
1188
+ return this.fetchSettings().pipe(map((settings) => parseJsonSafely(settings === null || settings === void 0 ? void 0 : settings.value, [])), map(settings => settings.find(setting => setting.id == id)));
1189
+ }
1190
+ fetchSettings() {
1191
+ return this.configurationSettingsApiService.fetchSetting(this.shoppingCartSettingsKey, { skipErrorHandler: true });
1192
+ }
1193
+ getSettingsMap() {
1194
+ return this.fetchSettings().pipe(map((settings) => parseJsonSafely(settings === null || settings === void 0 ? void 0 : settings.value, [])), map((settings) => settings.reduce((acc, setting) => {
1195
+ return Object.assign(Object.assign({}, acc), { [setting.id]: setting.properties });
1196
+ }, {})));
1197
+ }
1198
+ }
1199
+ ShoppingCartSettingsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShoppingCartSettingsApiService, deps: [{ token: ConfigurationSettingsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
1200
+ ShoppingCartSettingsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShoppingCartSettingsApiService });
1201
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShoppingCartSettingsApiService, decorators: [{
1202
+ type: Injectable
1203
+ }], ctorParameters: function () { return [{ type: ConfigurationSettingsApiService }]; } });
1204
+
1205
+ function uiDefinitionFromDTO(container) {
1206
+ const { sourceBlob } = container, rest = __rest(container, ["sourceBlob"]);
1207
+ return Object.assign(Object.assign({}, rest), { source: parseJsonStringAsObject(sourceBlob) });
1208
+ }
1209
+ function uiDefinitionToDTO(container) {
1210
+ const { source } = container, rest = __rest(container, ["source"]);
1211
+ return Object.assign(Object.assign({}, rest), { sourceBlob: JSON.stringify(source) });
1212
+ }
1213
+ function newUiDefinitionToDTO(container) {
1214
+ const { source } = container, rest = __rest(container, ["source"]);
1215
+ return Object.assign(Object.assign({}, rest), { sourceBlob: JSON.stringify(source) });
1216
+ }
1217
+
1218
+ class UIDefinitionsAdminApiService {
1219
+ constructor(baseHttpService) {
1220
+ this.baseHttpService = baseHttpService;
1221
+ this.serviceUrl = '/admin/v2/uidefinitions';
1222
+ }
1223
+ fetchAll$(params, options) {
1224
+ let httpParams = new HttpParams();
1225
+ if ((params === null || params === void 0 ? void 0 : params.productId) != null) {
1226
+ httpParams = httpParams.set('productId', params.productId);
1227
+ }
1228
+ if (params === null || params === void 0 ? void 0 : params.defaultUIDefinitionId) {
1229
+ httpParams = httpParams.set('defaultUIDefinitionId', params.defaultUIDefinitionId);
1230
+ }
1231
+ return this.baseHttpService
1232
+ .api(Object.assign({ method: 'get', url: this.serviceUrl, params: httpParams }, options))
1233
+ .pipe(map$1(containers => containers.map(uiDefinitionFromDTO)));
1234
+ }
1235
+ fetch$(id, options) {
1236
+ return this.baseHttpService
1237
+ .api(Object.assign({ method: 'get', url: `${this.serviceUrl}/${id}` }, options))
1238
+ .pipe(map$1(container => uiDefinitionFromDTO(Object.assign(Object.assign({}, container), { id }))));
1239
+ }
1240
+ create$(uiDefinitionContainer) {
1241
+ const dto = newUiDefinitionToDTO(uiDefinitionContainer);
1242
+ return this.baseHttpService
1243
+ .api({
1244
+ method: 'post',
1245
+ url: this.serviceUrl,
1246
+ body: dto,
1247
+ })
1248
+ .pipe(map$1(container => uiDefinitionFromDTO(container)));
1249
+ }
1250
+ update$(uiDefinitionContainer) {
1251
+ const dto = uiDefinitionToDTO(uiDefinitionContainer);
1252
+ return this.baseHttpService
1253
+ .api({
1254
+ method: 'put',
1255
+ url: `${this.serviceUrl}/${uiDefinitionContainer.id}`,
1256
+ body: dto,
1257
+ })
1258
+ .pipe(map$1(container => uiDefinitionFromDTO(container)));
1259
+ }
1260
+ delete$(id) {
1261
+ return this.baseHttpService.api({
1262
+ method: 'delete',
1263
+ url: `${this.serviceUrl}/${id}`,
1264
+ });
1265
+ }
1266
+ }
1267
+ UIDefinitionsAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UIDefinitionsAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1268
+ UIDefinitionsAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UIDefinitionsAdminApiService });
1269
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UIDefinitionsAdminApiService, decorators: [{
1270
+ type: Injectable
1271
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1272
+
1273
+ const fromUIComponentStoryDTO = (dto, attachments) => {
1274
+ return {
1275
+ id: dto.id,
1276
+ name: dto.name,
1277
+ uiComponentId: dto.uiComponentId,
1278
+ description: dto.description,
1279
+ section: attachments.json,
1280
+ template: attachments.html,
1281
+ script: attachments.js,
1282
+ styles: attachments.css,
1283
+ };
1284
+ };
1285
+
1286
+ class UITemplatesAdminApiService {
1287
+ constructor(baseHttpService) {
1288
+ this.baseHttpService = baseHttpService;
1289
+ this.serviceUrl = '/admin/v2/uitemplates';
1290
+ this.fetchTemplates$ = (name) => {
1291
+ let params = new HttpParams();
1292
+ if (name) {
1293
+ params = params.append('name', name);
1294
+ }
1295
+ return this.baseHttpService.api({ url: `${this.serviceUrl}`, params });
1296
+ };
1297
+ this.createTemplate$ = (template) => {
1298
+ return this.baseHttpService.api({
1299
+ method: 'post',
1300
+ url: `${this.serviceUrl}`,
1301
+ body: template,
1302
+ });
1303
+ };
1304
+ this.updateTemplate$ = (template) => {
1305
+ return this.baseHttpService.api({
1306
+ method: 'put',
1307
+ url: `${this.serviceUrl}/${template.id}`,
1308
+ body: template,
1309
+ });
1310
+ };
1311
+ this.duplicateTemplate$ = (template, cloneRequest) => {
1312
+ return this.baseHttpService
1313
+ .api({
1314
+ url: `${this.serviceUrl}/${template.id}/clone`,
1315
+ method: 'post',
1316
+ body: cloneRequest,
1317
+ })
1318
+ .pipe(map$1(response => response.clonedRecordId));
1319
+ };
1320
+ this.removeTemplate$ = (id) => {
1321
+ return this.baseHttpService.api({
1322
+ method: 'delete',
1323
+ url: `${this.serviceUrl}/${id}`,
1324
+ });
1325
+ };
1326
+ this.restoreTemplate$ = (id) => {
1327
+ return this.baseHttpService.api({
1328
+ method: 'patch',
1329
+ url: `${this.serviceUrl}/${id}`,
1330
+ });
1331
+ };
1332
+ this.searchTemplates$ = (data) => {
1333
+ return this.baseHttpService.api({
1334
+ method: 'post',
1335
+ url: `${this.serviceUrl}/search`,
1336
+ params: data.params,
1337
+ body: data.expression,
1338
+ });
1339
+ };
1340
+ this.fetchComponents$ = (templateId, name) => {
1341
+ let params = new HttpParams();
1342
+ if (name) {
1343
+ params = params.append('name', name);
1344
+ }
1345
+ return this.baseHttpService.api({
1346
+ url: `${this.serviceUrl}/${templateId}/components`,
1347
+ params,
1348
+ });
1349
+ };
1350
+ this.fetchComponent$ = (templateId, componentId) => {
1351
+ return this.baseHttpService.api({
1352
+ url: `${this.serviceUrl}/${templateId}/components/${componentId}`,
1353
+ });
1354
+ };
1355
+ this.createComponent$ = (component) => {
1356
+ return this.baseHttpService.api({
1357
+ method: 'post',
1358
+ url: `${this.serviceUrl}/${component.uiTemplateId}/components`,
1359
+ body: component,
1360
+ });
1361
+ };
1362
+ this.updateComponent$ = (component) => {
1363
+ return this.baseHttpService.api({
1364
+ method: 'put',
1365
+ url: `${this.serviceUrl}/${component.uiTemplateId}/components/${component.id}`,
1366
+ body: component,
1367
+ });
1368
+ };
1369
+ this.duplicateComponent$ = (component, cloneRequest) => {
1370
+ return this.baseHttpService
1371
+ .api({
1372
+ url: `${this.serviceUrl}/${component.uiTemplateId}/components/${component.id}/clone`,
1373
+ method: 'post',
1374
+ body: cloneRequest,
1375
+ })
1376
+ .pipe(map$1(response => response.clonedRecordId));
1377
+ };
1378
+ this.removeComponent$ = (templateId, componentId) => {
1379
+ return this.baseHttpService.api({
1380
+ method: 'delete',
1381
+ url: `${this.serviceUrl}/${templateId}/components/${componentId}`,
1382
+ });
1383
+ };
1384
+ this.restoreComponent$ = (templateId, componentId) => {
1385
+ return this.baseHttpService.api({
1386
+ method: 'patch',
1387
+ url: `${this.serviceUrl}/${templateId}/components/${componentId}`,
1388
+ });
1389
+ };
1390
+ this.searchComponents$ = (templateId, data) => {
1391
+ return this.baseHttpService.api({
1392
+ method: 'post',
1393
+ url: `${this.serviceUrl}/${templateId}/components/search`,
1394
+ params: data.params,
1395
+ body: data.expression,
1396
+ });
1397
+ };
1398
+ this.fetchStoryAttachment = (templateId, componentId, storyId, type) => {
1399
+ return this.baseHttpService
1400
+ .api({
1401
+ url: `${this.serviceUrl}/${templateId}/components/${componentId}/stories/${storyId}/attachments/${type}/file`,
1402
+ responseType: 'text',
1403
+ errorHandler: noop,
1404
+ })
1405
+ .pipe(catchError$1(() => of('')));
1406
+ };
1407
+ this.convertToComponentStory$ = (templateId, componentId, storyDto) => {
1408
+ return forkJoin([
1409
+ this.fetchStoryAttachment(templateId, componentId, storyDto.id, 'html'),
1410
+ this.fetchStoryAttachment(templateId, componentId, storyDto.id, 'js'),
1411
+ this.fetchStoryAttachment(templateId, componentId, storyDto.id, 'css'),
1412
+ this.fetchStoryAttachment(templateId, componentId, storyDto.id, 'json'),
1413
+ ]).pipe(map$1(([html, js, css, json]) => ({ html, js, css, json })), map$1(attachments => fromUIComponentStoryDTO(storyDto, attachments)));
1414
+ };
1415
+ this.fetchStories$ = (templateId, componentId, name) => {
1416
+ let params = new HttpParams();
1417
+ if (name) {
1418
+ params = params.append('name', name);
1419
+ }
1420
+ return this.baseHttpService
1421
+ .api({
1422
+ url: `${this.serviceUrl}/${templateId}/components/${componentId}/stories`,
1423
+ params,
1424
+ })
1425
+ .pipe(switchMap(dtos => {
1426
+ if (!dtos.length) {
1427
+ return of([]);
1428
+ }
1429
+ return forkJoin(dtos.map(dto => this.convertToComponentStory$(templateId, componentId, dto)));
1430
+ }));
1431
+ };
1432
+ this.fetchStory$ = (templateId, componentId, storyId) => {
1433
+ return this.baseHttpService
1434
+ .api({
1435
+ url: `${this.serviceUrl}/${templateId}/components/${componentId}/stories/${storyId}`,
1436
+ })
1437
+ .pipe(switchMap(dto => this.convertToComponentStory$(templateId, componentId, dto)));
1438
+ };
1439
+ this.createComponentStory$ = (templateId, story) => {
1440
+ return this.baseHttpService.api({
1441
+ method: 'post',
1442
+ url: `${this.serviceUrl}/${templateId}/components/${story.uiComponentId}/stories`,
1443
+ body: story,
1444
+ });
1445
+ };
1446
+ this.updateComponentStory$ = (templateId, story) => {
1447
+ const { script, template, styles, section } = story, rest = __rest(story, ["script", "template", "styles", "section"]);
1448
+ return this.baseHttpService
1449
+ .api({
1450
+ method: 'put',
1451
+ url: `${this.serviceUrl}/${templateId}/components/${story.uiComponentId}/stories/${story.id}`,
1452
+ body: rest,
1453
+ })
1454
+ .pipe(map$1(dto => fromUIComponentStoryDTO(dto, { html: template, js: script, css: styles, json: section })));
1455
+ };
1456
+ this.duplicateComponentStory$ = (story, cloneRequest) => {
1457
+ return this.baseHttpService
1458
+ .api({
1459
+ url: `${this.serviceUrl}/${story.template}/components/${story.uiComponentId}/stories/${story.id}/clone`,
1460
+ method: 'post',
1461
+ body: cloneRequest,
1462
+ })
1463
+ .pipe(map$1(response => response.clonedRecordId));
1464
+ };
1465
+ this.deleteComponentStory$ = (templateId, componentId, storyId) => {
1466
+ return this.baseHttpService.api({
1467
+ method: 'delete',
1468
+ url: `${this.serviceUrl}/${templateId}/components/${componentId}/stories/${storyId}`,
1469
+ });
1470
+ };
1471
+ this.restoreComponentStory$ = (templateId, componentId, storyId) => {
1472
+ return this.baseHttpService.api({
1473
+ method: 'patch',
1474
+ url: `${this.serviceUrl}/${templateId}/components/${componentId}/stories/${storyId}`,
1475
+ });
1476
+ };
1477
+ this.uploadStoryAttachments$ = (templateId, componentId, storyId, attachments) => {
1478
+ const formData = new FormData();
1479
+ if (attachments.html != null) {
1480
+ formData.append('html', new Blob([attachments.html]), 'story-template.html');
1481
+ }
1482
+ if (attachments.css != null) {
1483
+ formData.append('css', new Blob([attachments.css]), 'story-styles.css');
1484
+ }
1485
+ if (attachments.js != null) {
1486
+ formData.append('js', new Blob([attachments.js]), 'story-script.js');
1487
+ }
1488
+ if (attachments.json != null) {
1489
+ formData.append('json', new Blob([attachments.json]), 'story-section.json');
1490
+ }
1491
+ return this.baseHttpService.upload({
1492
+ method: 'post',
1493
+ url: `${this.serviceUrl}/${templateId}/components/${componentId}/stories/${storyId}/attachments`,
1494
+ body: formData,
1495
+ });
1496
+ };
1497
+ this.fetchComponentAttachments$ = (templateId, component) => {
1498
+ return forkJoin([
1499
+ this.fetchComponentAttachmentFile$(templateId, component.id, 'html'),
1500
+ this.fetchComponentAttachmentFile$(templateId, component.id, 'js'),
1501
+ this.fetchComponentAttachmentFile$(templateId, component.id, 'css'),
1502
+ this.fetchComponentAttachmentFile$(templateId, component.id, 'json'),
1503
+ ]).pipe(map$1(([html, js, css, json]) => ({ html, js, css, json })));
1504
+ };
1505
+ this.fetchComponentsAttachments$ = (templateId) => {
1506
+ return this.fetchComponents$(templateId).pipe(switchMap(components => {
1507
+ return forkJoin(components.map(component => this.fetchComponentAttachments$(templateId, component)));
1508
+ }));
1509
+ };
1510
+ this.fetchComponentAttachmentFile$ = (templateId, componentId, attachmentType) => {
1511
+ return this.baseHttpService
1512
+ .api({
1513
+ method: 'get',
1514
+ url: `${this.serviceUrl}/${templateId}/components/${componentId}/attachments/${attachmentType}/file`,
1515
+ responseType: 'text',
1516
+ errorHandler: noop,
1517
+ })
1518
+ .pipe(catchError$1(() => of('')));
1519
+ };
1520
+ this.uploadComponentAttachments$ = (templateId, componentId, attachments) => {
1521
+ const formData = new FormData();
1522
+ if (attachments.html != null) {
1523
+ formData.append('html', new Blob([attachments.html]), 'template.html');
1524
+ }
1525
+ if (attachments.css != null) {
1526
+ formData.append('css', new Blob([attachments.css]), 'styles.css');
1527
+ }
1528
+ if (attachments.js != null) {
1529
+ formData.append('js', new Blob([attachments.js]), 'script.js');
1530
+ }
1531
+ if (attachments.json != null) {
1532
+ formData.append('json', new Blob([attachments.json]), 'section.json');
1533
+ }
1534
+ return this.baseHttpService.upload({
1535
+ method: 'post',
1536
+ url: `${this.serviceUrl}/${templateId}/components/${componentId}/attachments`,
1537
+ body: formData,
1538
+ });
1539
+ };
1540
+ }
1541
+ getTemplateThumbnailUrl(templateId) {
1542
+ return `${this.serviceUrl}/${templateId}/thumbnail/file`;
1543
+ }
1544
+ attachTemplateThumbnail$(templateId, file) {
1545
+ const data = new FormData();
1546
+ data.append('thumb', file);
1547
+ return this.baseHttpService.upload({
1548
+ method: 'post',
1549
+ url: `${this.serviceUrl}/${templateId}/thumbnail`,
1550
+ body: data,
1551
+ });
1552
+ }
1553
+ removeTemplateThumbnail$(templateId) {
1554
+ return this.baseHttpService.api({
1555
+ method: 'delete',
1556
+ url: `${this.serviceUrl}/${templateId}/thumbnail`,
1557
+ });
1558
+ }
1559
+ }
1560
+ UITemplatesAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UITemplatesAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1561
+ UITemplatesAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UITemplatesAdminApiService });
1562
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UITemplatesAdminApiService, decorators: [{
1563
+ type: Injectable
1564
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1565
+
1566
+ class VeloceObjectsAdminApiService {
1567
+ constructor(baseHttpService) {
1568
+ this.baseHttpService = baseHttpService;
1569
+ this.serviceUrl = '/admin/v2/veloceobjects';
1570
+ this.updateCategory$ = (category) => {
1571
+ return this.baseHttpService.api({
1572
+ method: 'put',
1573
+ url: `${this.serviceUrl}/categories/${category.id}`,
1574
+ body: category,
1575
+ });
1576
+ };
1577
+ this.deleteCategory$ = (id) => {
1578
+ return this.baseHttpService.api({
1579
+ method: 'delete',
1580
+ url: `${this.serviceUrl}/categories/${id}`,
1581
+ });
1582
+ };
1583
+ this.searchObjects$ = (searchParams, expression) => {
1584
+ const params = new HttpParams({ fromObject: Object.assign({}, searchParams) });
1585
+ return this.baseHttpService.api({
1586
+ method: 'post',
1587
+ url: `${this.serviceUrl}/search`,
1588
+ params,
1589
+ body: expression || {},
1590
+ });
1591
+ };
1592
+ this.deleteObject$ = (id) => {
1593
+ return this.baseHttpService.api({
1594
+ method: 'delete',
1595
+ url: `${this.serviceUrl}/${id}`,
1596
+ });
1597
+ };
1598
+ this.duplicateObject$ = (body) => {
1599
+ return this.baseHttpService
1600
+ .api({
1601
+ method: 'post',
1602
+ url: `${this.serviceUrl}/${body.id}/clone`,
1603
+ body,
1604
+ })
1605
+ .pipe(map(response => response.clonedRecordId));
1606
+ };
1607
+ this.restoreObject$ = (id) => {
1608
+ return this.baseHttpService.api({
1609
+ method: 'patch',
1610
+ url: `${this.serviceUrl}/${id}/restore`,
1611
+ });
1612
+ };
1613
+ }
1614
+ fetchCategories$() {
1615
+ return this.baseHttpService.api({ url: `${this.serviceUrl}/categories` });
1616
+ }
1617
+ createCategory$(category) {
1618
+ return this.baseHttpService.api({
1619
+ method: 'post',
1620
+ url: `${this.serviceUrl}/categories`,
1621
+ body: category,
1622
+ });
1623
+ }
1624
+ fetchObjects$() {
1625
+ return this.baseHttpService.api({ url: `${this.serviceUrl}` });
1626
+ }
1627
+ fetchObject$(id) {
1628
+ return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
1629
+ }
1630
+ createObject$(object) {
1631
+ return this.baseHttpService.api({
1632
+ method: 'post',
1633
+ url: `${this.serviceUrl}`,
1634
+ body: object,
1635
+ });
1636
+ }
1637
+ updateObject$(object) {
1638
+ return this.baseHttpService.api({
1639
+ method: 'put',
1640
+ url: `${this.serviceUrl}/${object.id}`,
1641
+ body: object,
1642
+ });
1643
+ }
1644
+ }
1645
+ VeloceObjectsAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceObjectsAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1646
+ VeloceObjectsAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceObjectsAdminApiService });
1647
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceObjectsAdminApiService, decorators: [{
1648
+ type: Injectable
1649
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1650
+
1651
+ class ApiV2Module {
1652
+ }
1653
+ ApiV2Module.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiV2Module, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1654
+ ApiV2Module.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ApiV2Module, imports: [HttpClientModule] });
1655
+ ApiV2Module.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiV2Module, providers: [
1656
+ BaseHttpService,
1657
+ CacheApiService,
1658
+ CatalogAdminApiService,
1659
+ CatalogApiService,
1660
+ ConfigurationProcessorsApiService,
1661
+ ConfigurationSettingsApiService,
1662
+ ContextDefinitionAdminApiService,
1663
+ DocumentAttachmentApiService,
1664
+ EndpointsAdminApiService,
1665
+ FlowsApiService,
1666
+ OrchestrationsAdminApiService,
1667
+ OrchestrationsApiService,
1668
+ PCMApiService,
1669
+ PicklistsAdminApiService,
1670
+ ProductsAdminApiService,
1671
+ FunctionsAdminApiService,
1672
+ GuidedSellingsAdminApiService,
1673
+ GuidedSellingApiService,
1674
+ SalesforceApiService,
1675
+ SalesTransactionApiService,
1676
+ ShoppingCartSettingsApiService,
1677
+ UIDefinitionsAdminApiService,
1678
+ UITemplatesAdminApiService,
1679
+ VeloceObjectsAdminApiService,
1680
+ XrayService,
1681
+ ], imports: [HttpClientModule] });
1682
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiV2Module, decorators: [{
1683
+ type: NgModule,
1684
+ args: [{
1685
+ imports: [HttpClientModule],
1686
+ providers: [
1687
+ BaseHttpService,
1688
+ CacheApiService,
1689
+ CatalogAdminApiService,
1690
+ CatalogApiService,
1691
+ ConfigurationProcessorsApiService,
1692
+ ConfigurationSettingsApiService,
1693
+ ContextDefinitionAdminApiService,
1694
+ DocumentAttachmentApiService,
1695
+ EndpointsAdminApiService,
1696
+ FlowsApiService,
1697
+ OrchestrationsAdminApiService,
1698
+ OrchestrationsApiService,
1699
+ PCMApiService,
1700
+ PicklistsAdminApiService,
1701
+ ProductsAdminApiService,
1702
+ FunctionsAdminApiService,
1703
+ GuidedSellingsAdminApiService,
1704
+ GuidedSellingApiService,
1705
+ SalesforceApiService,
1706
+ SalesTransactionApiService,
1707
+ ShoppingCartSettingsApiService,
1708
+ UIDefinitionsAdminApiService,
1709
+ UITemplatesAdminApiService,
1710
+ VeloceObjectsAdminApiService,
1711
+ XrayService,
1712
+ ],
1713
+ }]
1714
+ }] });
1715
+
1716
+ /**
1717
+ * Generated bundle index. Do not edit.
1718
+ */
1719
+
1720
+ export { ApiV2Module, CacheApiService, CatalogAdminApiService, CatalogApiService, ConfigurationProcessorsApiService, ConfigurationSettingsApiService, ContextDefinitionAdminApiService, DocumentAttachmentApiService, EndpointsAdminApiService, FlowsApiService, FunctionsAdminApiService, GuidedSellingApiService, GuidedSellingsAdminApiService, OrchestrationsAdminApiService, OrchestrationsApiService, PCMApiService, PicklistsAdminApiService, ProductsAdminApiService, SalesTransactionApiService, SalesforceApiService, ShoppingCartSettingsApiService, UIDefinitionsAdminApiService, UITemplatesAdminApiService, VeloceObjectsAdminApiService };
1721
+ //# sourceMappingURL=veloceapps-api-v2.mjs.map