@veloceapps/api 11.0.0-9 → 11.0.0-91

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 +70 -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 +68 -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 +1726 -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 +1809 -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 +13 -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,1726 @@
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
+ var _a, _b, _c;
433
+ const tag = (_b = (_a = object.tags) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.title;
434
+ const objectAttributes = object.attributes || [];
435
+ return {
436
+ id: object.id,
437
+ title: tag || object.title,
438
+ parentNodeId: object.parentNodeId,
439
+ nodeTags: ((_c = object.tags) !== null && _c !== void 0 ? _c : []).map(nodeTag => nodeTag.title),
440
+ attributes: objectAttributes.reduce((result, attribute) => {
441
+ var _a, _b;
442
+ const tag = (_b = (_a = attribute.tags) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.title;
443
+ if (tag) {
444
+ result.push({
445
+ title: tag,
446
+ fieldType: attribute.fieldType,
447
+ dataType: attribute.dataType,
448
+ });
449
+ }
450
+ return result;
451
+ }, []),
452
+ };
453
+ });
454
+ }));
455
+ }
456
+ fetchRlmProcedures(contextDefinitionId) {
457
+ const params = {};
458
+ if (contextDefinitionId) {
459
+ params['contextDefinitionId'] = contextDefinitionId;
460
+ }
461
+ return this.baseHttpService.api({
462
+ url: `${this.serviceUrl}/procedures`,
463
+ params,
464
+ });
465
+ }
466
+ }
467
+ ContextDefinitionAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContextDefinitionAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
468
+ ContextDefinitionAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContextDefinitionAdminApiService });
469
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContextDefinitionAdminApiService, decorators: [{
470
+ type: Injectable
471
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
472
+
473
+ class DocumentAttachmentApiService {
474
+ constructor(httpService, fileDownloadService) {
475
+ this.httpService = httpService;
476
+ this.fileDownloadService = fileDownloadService;
477
+ this.SERVICE_URL = '/v2/attachments';
478
+ }
479
+ getAttachments(searchRequest) {
480
+ return this.httpService.api({
481
+ url: `${this.SERVICE_URL}/search`,
482
+ method: 'post',
483
+ body: searchRequest,
484
+ });
485
+ }
486
+ createAttachment(attachment, file, reportProgress) {
487
+ const formData = new FormData();
488
+ if (file) {
489
+ formData.append('file', file, file.name);
490
+ }
491
+ formData.append('attachment', new Blob([JSON.stringify(attachment)], {
492
+ type: 'application/json',
493
+ }));
494
+ return this.httpService.upload({
495
+ url: `${this.SERVICE_URL}`,
496
+ body: formData,
497
+ method: 'post',
498
+ observe: reportProgress ? 'events' : undefined,
499
+ reportProgress,
500
+ });
501
+ }
502
+ updateAttachment(id, attachment) {
503
+ return this.httpService.api({
504
+ url: `${this.SERVICE_URL}/${id}`,
505
+ body: attachment,
506
+ method: 'put',
507
+ });
508
+ }
509
+ getAttachmentFile(id, isPreventDownload) {
510
+ return this.httpService
511
+ .api({
512
+ url: `${this.SERVICE_URL}/${id}/file`,
513
+ responseType: isPreventDownload ? 'arraybuffer' : 'blob',
514
+ observe: isPreventDownload ? 'body' : 'response',
515
+ })
516
+ .pipe(tap(response => {
517
+ if (!isPreventDownload) {
518
+ this.fileDownloadService.processDownload(response);
519
+ }
520
+ }), map(response => (isPreventDownload ? new Blob([response.body || response]) : response.body || response)));
521
+ }
522
+ removeAttachment(id) {
523
+ return this.httpService.api({
524
+ url: `${this.SERVICE_URL}/${id}`,
525
+ method: 'delete',
526
+ });
527
+ }
528
+ }
529
+ 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 });
530
+ DocumentAttachmentApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentAttachmentApiService });
531
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentAttachmentApiService, decorators: [{
532
+ type: Injectable
533
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: i1.FileDownloadService }]; } });
534
+
535
+ class EndpointsAdminApiService {
536
+ constructor(baseHttpService) {
537
+ this.baseHttpService = baseHttpService;
538
+ this.serviceUrl = '/admin/v2/api-endpoints';
539
+ }
540
+ fetchEndpoints$() {
541
+ return this.searchEndpoints$(new Expression(), 0, -1);
542
+ }
543
+ searchEndpoints$(expression, skip, count) {
544
+ let params = new HttpParams();
545
+ params = params.set('skip', '' + skip);
546
+ params = params.set('count', '' + count);
547
+ return this.baseHttpService.api({
548
+ method: 'post',
549
+ url: `${this.serviceUrl}/search`,
550
+ params,
551
+ body: expression,
552
+ });
553
+ }
554
+ removeEndpoint$(id) {
555
+ return this.baseHttpService.api({
556
+ url: `${this.serviceUrl}/${id}`,
557
+ method: 'delete',
558
+ });
559
+ }
560
+ restoreEndpoint$(id) {
561
+ return this.baseHttpService.api({
562
+ url: `${this.serviceUrl}/${id}/restore`,
563
+ method: 'patch',
564
+ });
565
+ }
566
+ fetchEndpoint$(id) {
567
+ return this.baseHttpService.api({
568
+ url: `${this.serviceUrl}/${id}`,
569
+ method: 'get',
570
+ });
571
+ }
572
+ createEndpoint$(body) {
573
+ return this.baseHttpService.api({
574
+ url: `${this.serviceUrl}`,
575
+ method: 'post',
576
+ body,
577
+ });
578
+ }
579
+ updateEndpoint$(body) {
580
+ return this.baseHttpService.api({
581
+ url: `${this.serviceUrl}/${body.id}`,
582
+ method: 'put',
583
+ body,
584
+ });
585
+ }
586
+ duplicateEndpoint$(cloneRequest) {
587
+ return this.baseHttpService.api({
588
+ url: `${this.serviceUrl}/${cloneRequest.id}/clone`,
589
+ method: 'post',
590
+ body: cloneRequest,
591
+ });
592
+ }
593
+ executeEndpoint$(body) {
594
+ return this.baseHttpService.api({
595
+ url: `${this.serviceUrl}/execute`,
596
+ method: 'post',
597
+ body,
598
+ responseType: 'text',
599
+ skipErrorHandler: true,
600
+ });
601
+ }
602
+ }
603
+ EndpointsAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EndpointsAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
604
+ EndpointsAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EndpointsAdminApiService });
605
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EndpointsAdminApiService, decorators: [{
606
+ type: Injectable
607
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
608
+
609
+ class FlowsApiService {
610
+ constructor(configurationSettingsApiService) {
611
+ this.configurationSettingsApiService = configurationSettingsApiService;
612
+ this.flowsKey = 'flows';
613
+ }
614
+ getFlow(id) {
615
+ return this.fetchFlows().pipe(map(flows => flows.find(flow => flow.id == id)), map(flow => {
616
+ if (!flow) {
617
+ throw new Error(`Flow with flowId=${id} is not defined`);
618
+ }
619
+ return flow;
620
+ }));
621
+ }
622
+ fetchFlows() {
623
+ return this.configurationSettingsApiService
624
+ .fetchSetting(this.flowsKey)
625
+ .pipe(map((setting) => ((setting === null || setting === void 0 ? void 0 : setting.value) ? JSON.parse(setting.value) : [])));
626
+ }
627
+ }
628
+ FlowsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowsApiService, deps: [{ token: ConfigurationSettingsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
629
+ FlowsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowsApiService });
630
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowsApiService, decorators: [{
631
+ type: Injectable
632
+ }], ctorParameters: function () { return [{ type: ConfigurationSettingsApiService }]; } });
633
+
634
+ class FunctionsAdminApiService {
635
+ constructor(baseHttpService) {
636
+ this.baseHttpService = baseHttpService;
637
+ this.serviceUrl = '/admin/v2/functions';
638
+ this.fetchAll$ = () => {
639
+ return this.search$(new Expression(), 0, 100);
640
+ };
641
+ this.search$ = (expression, skip, count) => {
642
+ let params = new HttpParams();
643
+ if (typeof skip === 'number') {
644
+ params = params.set('skip', '' + skip);
645
+ }
646
+ if (typeof count === 'number') {
647
+ params = params.set('count', '' + count);
648
+ }
649
+ return this.baseHttpService.api({
650
+ method: 'post',
651
+ url: `${this.serviceUrl}/rules/search`,
652
+ params,
653
+ body: expression,
654
+ });
655
+ };
656
+ this.create$ = (rule) => {
657
+ return this.baseHttpService.api({
658
+ url: `${this.serviceUrl}/rules`,
659
+ method: 'post',
660
+ body: rule,
661
+ });
662
+ };
663
+ this.update$ = (rule) => {
664
+ return this.baseHttpService.api({
665
+ url: `${this.serviceUrl}/rules/${rule.id}`,
666
+ method: 'put',
667
+ body: rule,
668
+ });
669
+ };
670
+ this.duplicate$ = (body) => {
671
+ return this.baseHttpService
672
+ .api({
673
+ url: `${this.serviceUrl}/rules/${body.id}/clone`,
674
+ method: 'post',
675
+ body,
676
+ })
677
+ .pipe(map$1(response => response.clonedRecordId));
678
+ };
679
+ this.remove$ = (id) => {
680
+ return this.baseHttpService.api({
681
+ url: `${this.serviceUrl}/rules/${id}`,
682
+ method: 'delete',
683
+ });
684
+ };
685
+ this.restore$ = (id) => {
686
+ return this.baseHttpService.api({
687
+ url: `${this.serviceUrl}/rules/${id}/restore`,
688
+ method: 'patch',
689
+ });
690
+ };
691
+ }
692
+ fetch$(id) {
693
+ return this.baseHttpService.api({
694
+ url: `${this.serviceUrl}/rules/${id}`,
695
+ method: 'get',
696
+ });
697
+ }
698
+ fetchHeaderFields$() {
699
+ return this.baseHttpService.api({
700
+ url: `${this.serviceUrl}/rules/describe/Header`,
701
+ method: 'get',
702
+ });
703
+ }
704
+ execute$(body) {
705
+ const url = `${this.serviceUrl}/rules/execute`;
706
+ return this.baseHttpService.api({
707
+ url,
708
+ method: 'post',
709
+ body,
710
+ });
711
+ }
712
+ executeExtractFunction$(body) {
713
+ return this.baseHttpService.api({
714
+ url: `${this.serviceUrl}/extract`,
715
+ method: 'post',
716
+ body,
717
+ });
718
+ }
719
+ fetchFunctionDatasets$() {
720
+ return this.baseHttpService.api({
721
+ url: `${this.serviceUrl}/datasets`,
722
+ method: 'get',
723
+ });
724
+ }
725
+ fetchFunctionTags$() {
726
+ return this.baseHttpService.api({
727
+ url: `${this.serviceUrl}/tags`,
728
+ method: 'get',
729
+ });
730
+ }
731
+ fetchObjectParentIdFields$(objectName) {
732
+ return this.baseHttpService.api({
733
+ url: `${this.serviceUrl}/parent-id-fields/${objectName}`,
734
+ method: 'get',
735
+ });
736
+ }
737
+ }
738
+ FunctionsAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FunctionsAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
739
+ FunctionsAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FunctionsAdminApiService });
740
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FunctionsAdminApiService, decorators: [{
741
+ type: Injectable
742
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
743
+
744
+ class GuidedSellingsAdminApiService {
745
+ constructor(baseHttpService) {
746
+ this.baseHttpService = baseHttpService;
747
+ this.serviceUrl = '/admin/v2/guided-selling';
748
+ this.fetchGuidedSellings$ = (searchParams) => {
749
+ return this.searchGuidedSellings$(searchParams);
750
+ };
751
+ this.searchGuidedSellings$ = (searchParams, expression) => {
752
+ const params = new HttpParams({ fromObject: Object.assign({}, searchParams) });
753
+ return this.baseHttpService.api({
754
+ method: 'post',
755
+ url: `${this.serviceUrl}/search`,
756
+ params,
757
+ body: expression || {},
758
+ });
759
+ };
760
+ this.fetchGuidedSelling$ = (id) => {
761
+ return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
762
+ };
763
+ this.createNewGuidedSelling$ = (guidedSelling) => {
764
+ return this.baseHttpService.api({
765
+ url: `${this.serviceUrl}`,
766
+ method: 'post',
767
+ body: guidedSelling,
768
+ });
769
+ };
770
+ this.duplicateGuidedSelling$ = (cloneRequest) => {
771
+ return this.baseHttpService.api({
772
+ url: `${this.serviceUrl}/${cloneRequest.id}/clone`,
773
+ method: 'post',
774
+ body: cloneRequest,
775
+ });
776
+ };
777
+ this.updateGuidedSelling$ = (data) => {
778
+ return this.baseHttpService.api({
779
+ url: `${this.serviceUrl}/${data.id}`,
780
+ method: 'put',
781
+ body: data,
782
+ });
783
+ };
784
+ this.removeGuidedSelling$ = (id) => {
785
+ return this.baseHttpService.api({
786
+ url: `${this.serviceUrl}/${id}`,
787
+ method: 'delete',
788
+ });
789
+ };
790
+ this.restoreGuidedSelling$ = (id) => {
791
+ return this.baseHttpService.api({
792
+ url: `${this.serviceUrl}/${id}/restore`,
793
+ method: 'patch',
794
+ });
795
+ };
796
+ }
797
+ }
798
+ GuidedSellingsAdminApiService.MAX_RESULTS = 60;
799
+ GuidedSellingsAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingsAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
800
+ GuidedSellingsAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingsAdminApiService });
801
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingsAdminApiService, decorators: [{
802
+ type: Injectable
803
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
804
+
805
+ class GuidedSellingApiService {
806
+ constructor(http) {
807
+ this.http = http;
808
+ this.serviceUrl = '/v2/guided-selling';
809
+ }
810
+ searchByName$(name, searchParams) {
811
+ const params = new HttpParams({ fromObject: Object.assign({}, searchParams) });
812
+ const expression = new Expression(undefined, [{ key: 'name', operator: Operator.EQ, value: name }]);
813
+ return this.http.api({
814
+ method: 'post',
815
+ url: `${this.serviceUrl}/search`,
816
+ params,
817
+ body: expression || {},
818
+ });
819
+ }
820
+ searchById$(id, searchParams) {
821
+ const params = new HttpParams({ fromObject: Object.assign({}, searchParams) });
822
+ const expression = new Expression(undefined, [{ key: 'id', operator: Operator.EQ, value: id }]);
823
+ return this.http.api({
824
+ method: 'post',
825
+ url: `${this.serviceUrl}/search`,
826
+ params,
827
+ body: expression || {},
828
+ });
829
+ }
830
+ }
831
+ GuidedSellingApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
832
+ GuidedSellingApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingApiService });
833
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingApiService, decorators: [{
834
+ type: Injectable
835
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
836
+
837
+ class OrchestrationsAdminApiService {
838
+ constructor(baseHttpService) {
839
+ this.baseHttpService = baseHttpService;
840
+ this.SERVICE_URL = '/admin/v2/orchestrations';
841
+ this.fetchAll$ = () => {
842
+ return this.search$(new Expression(), 0, 100);
843
+ };
844
+ this.search$ = (expression, skip, count) => {
845
+ let params = new HttpParams();
846
+ params = params.set('skip', '' + skip);
847
+ params = params.set('count', '' + count);
848
+ return this.baseHttpService.api({
849
+ method: 'post',
850
+ url: `${this.SERVICE_URL}/search`,
851
+ params,
852
+ body: expression,
853
+ });
854
+ };
855
+ this.create$ = (newProcedure) => {
856
+ return this.baseHttpService.api({
857
+ url: `${this.SERVICE_URL}`,
858
+ method: 'post',
859
+ body: newProcedure,
860
+ });
861
+ };
862
+ this.update$ = (procedure) => {
863
+ return this.baseHttpService.api({
864
+ url: `${this.SERVICE_URL}/${procedure.id}`,
865
+ method: 'put',
866
+ body: procedure,
867
+ });
868
+ };
869
+ this.duplicate$ = (body) => {
870
+ return this.baseHttpService
871
+ .api({
872
+ url: `${this.SERVICE_URL}/${body.id}/clone`,
873
+ method: 'post',
874
+ body,
875
+ })
876
+ .pipe(map$1(response => response.clonedRecordId));
877
+ };
878
+ this.remove$ = (id) => {
879
+ return this.baseHttpService.api({
880
+ url: `${this.SERVICE_URL}/${id}`,
881
+ method: 'delete',
882
+ });
883
+ };
884
+ this.restore$ = (id) => {
885
+ return this.baseHttpService.api({
886
+ url: `${this.SERVICE_URL}/${id}/restore`,
887
+ method: 'patch',
888
+ });
889
+ };
890
+ }
891
+ fetch$(id) {
892
+ return this.baseHttpService.api({
893
+ url: `${this.SERVICE_URL}/${id}`,
894
+ method: 'get',
895
+ });
896
+ }
897
+ execute$(body) {
898
+ return this.baseHttpService.api({
899
+ url: `${this.SERVICE_URL}/execute`,
900
+ method: 'post',
901
+ body,
902
+ });
903
+ }
904
+ catalogExecute$(body) {
905
+ return this.baseHttpService.api({
906
+ url: `${this.SERVICE_URL}/catalog/execute`,
907
+ method: 'post',
908
+ body,
909
+ });
910
+ }
911
+ }
912
+ OrchestrationsAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrchestrationsAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
913
+ OrchestrationsAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrchestrationsAdminApiService });
914
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrchestrationsAdminApiService, decorators: [{
915
+ type: Injectable
916
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
917
+
918
+ class OrchestrationsApiService {
919
+ constructor(baseHttpService) {
920
+ this.baseHttpService = baseHttpService;
921
+ this.SERVICE_URL = '/v2/orchestrations';
922
+ }
923
+ apply$(request, options) {
924
+ return this.baseHttpService.api(Object.assign({ url: `${this.SERVICE_URL}/apply`, method: 'post', body: request }, options));
925
+ }
926
+ }
927
+ OrchestrationsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrchestrationsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
928
+ OrchestrationsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrchestrationsApiService });
929
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrchestrationsApiService, decorators: [{
930
+ type: Injectable
931
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
932
+
933
+ class SalesforceApiService {
934
+ constructor(httpService) {
935
+ this.httpService = httpService;
936
+ this.SERVICE_URL = '/v2/proxy';
937
+ }
938
+ query(searchRequest, objectName, options) {
939
+ 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));
940
+ }
941
+ queryObjects(search, options) {
942
+ let params = new HttpParams();
943
+ if (search) {
944
+ params = params.append('search', search);
945
+ }
946
+ return this.httpService.api(Object.assign({ url: `${this.SERVICE_URL}/query`, params }, options));
947
+ }
948
+ search(req, options) {
949
+ return this.httpService.api(Object.assign({ url: `${this.SERVICE_URL}/rest/search`, params: { q: req.searchString } }, options));
950
+ }
951
+ describeObject(objectName, options) {
952
+ const methodUrl = `${this.SERVICE_URL}/describe/${objectName}/fields`;
953
+ return this.httpService.api(Object.assign({ url: methodUrl }, options));
954
+ }
955
+ describeField(objectName, fieldName, options) {
956
+ const methodUrl = `${this.SERVICE_URL}/describe/${objectName}/fields/${fieldName}`;
957
+ return this.httpService.api(Object.assign({ url: methodUrl }, options));
958
+ }
959
+ describe2(objectName, fields, options) {
960
+ const methodUrl = `${this.SERVICE_URL}/describe/${objectName}/fields`;
961
+ return this.httpService.api(Object.assign({ method: 'post', url: methodUrl, body: fields }, options));
962
+ }
963
+ apexGetRequest(path, params, options) {
964
+ // this line is needed because HttpParams instance from Integration behaves wrong in studio instance of Angular
965
+ const httpParams = new HttpParams({ fromString: params.toString() });
966
+ return this.httpService.api(Object.assign({ url: `${this.SERVICE_URL}/apex${path}`, params: httpParams }, options));
967
+ }
968
+ apexPostRequest(path, body, options) {
969
+ return this.httpService.api(Object.assign({ method: 'post', body, url: `${this.SERVICE_URL}/apex${path}` }, options));
970
+ }
971
+ restGetRequest(path, params, options) {
972
+ const httpParams = new HttpParams({ fromString: params.toString() });
973
+ return this.httpService.api(Object.assign({ url: `${this.SERVICE_URL}/rest${path}`, params: httpParams }, options));
974
+ }
975
+ getGlobalPicklists() {
976
+ return this.httpService.api({
977
+ method: 'get',
978
+ url: `${this.SERVICE_URL}/globalvalueset`,
979
+ });
980
+ }
981
+ getGlobalPicklistValues(id) {
982
+ return this.httpService.api({
983
+ method: 'get',
984
+ url: `${this.SERVICE_URL}/globalvalueset/${id}/values`,
985
+ });
986
+ }
987
+ }
988
+ SalesforceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesforceApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
989
+ SalesforceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesforceApiService });
990
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesforceApiService, decorators: [{
991
+ type: Injectable
992
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
993
+
994
+ class PCMApiService {
995
+ constructor(sfApiService) {
996
+ this.sfApiService = sfApiService;
997
+ }
998
+ fetchPCMByProductId(productId) {
999
+ return this.sfApiService.restGetRequest(`/connect/pcm/products/${productId}`, new HttpParams()).pipe(tap$1(response => {
1000
+ if (response.status.code !== '200') {
1001
+ throw new Error(response.status.message);
1002
+ }
1003
+ }), map$1(response => {
1004
+ const pcm = response.products[0];
1005
+ if (!pcm) {
1006
+ throw new Error('PCM product is not found');
1007
+ }
1008
+ this.fixUrls(pcm);
1009
+ return pcm;
1010
+ }));
1011
+ }
1012
+ fixUrls(product) {
1013
+ if (product.displayUrl) {
1014
+ product.displayUrl = product.displayUrl.replaceAll('&', '&');
1015
+ }
1016
+ product.productComponentGroups.forEach(group => {
1017
+ group.components.forEach(component => this.fixUrls(component));
1018
+ });
1019
+ }
1020
+ }
1021
+ PCMApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PCMApiService, deps: [{ token: SalesforceApiService }], target: i0.ɵɵFactoryTarget.Injectable });
1022
+ PCMApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PCMApiService });
1023
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PCMApiService, decorators: [{
1024
+ type: Injectable
1025
+ }], ctorParameters: function () { return [{ type: SalesforceApiService }]; } });
1026
+
1027
+ class PicklistsAdminApiService {
1028
+ constructor(baseHttpService) {
1029
+ this.baseHttpService = baseHttpService;
1030
+ this.serviceUrl = '/admin/v2/picklists';
1031
+ this.fetchAllPicklists$ = () => this.baseHttpService.api({ url: `${this.serviceUrl}` });
1032
+ this.fetchPicklist$ = (code) => this.baseHttpService.api({ url: `${this.serviceUrl}/${code}` });
1033
+ this.createPicklist$ = (picklist) => {
1034
+ return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}`, body: picklist });
1035
+ };
1036
+ this.updatePicklist$ = (picklist) => {
1037
+ return this.baseHttpService.api({
1038
+ method: 'put',
1039
+ url: `${this.serviceUrl}/${picklist.id}`,
1040
+ body: picklist,
1041
+ });
1042
+ };
1043
+ this.removePicklist$ = (id) => this.baseHttpService.api({ method: 'delete', url: `${this.serviceUrl}/${id}` });
1044
+ this.restorePicklist$ = (id) => {
1045
+ return this.baseHttpService.api({
1046
+ url: `${this.serviceUrl}/${id}/restore`,
1047
+ method: 'patch',
1048
+ });
1049
+ };
1050
+ this.addPicklistValue$ = (picklist, value) => {
1051
+ const data = Object.assign(Object.assign({}, picklist), { values: [...picklist.values, value] });
1052
+ return this.baseHttpService.api({ method: 'put', url: `${this.serviceUrl}/${picklist.id}`, body: data });
1053
+ };
1054
+ }
1055
+ }
1056
+ PicklistsAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PicklistsAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1057
+ PicklistsAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PicklistsAdminApiService });
1058
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PicklistsAdminApiService, decorators: [{
1059
+ type: Injectable
1060
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1061
+
1062
+ class ProductsAdminApiService {
1063
+ constructor(baseHttpService) {
1064
+ this.baseHttpService = baseHttpService;
1065
+ this.serviceUrl = '/admin/v2/products';
1066
+ this.fetchProducts$ = (payload) => {
1067
+ let params = new HttpParams();
1068
+ params = params.append('count', payload.count);
1069
+ params = params.append('skip', payload.skip);
1070
+ if (payload.name) {
1071
+ params = params.append('name', payload.name);
1072
+ }
1073
+ return this.baseHttpService.api({ url: `${this.serviceUrl}`, params });
1074
+ };
1075
+ this.searchProducts$ = (expression, skip, count) => {
1076
+ let params = new HttpParams();
1077
+ params = params.set('skip', '' + skip);
1078
+ params = params.set('count', '' + count);
1079
+ return this.baseHttpService.api({
1080
+ method: 'post',
1081
+ url: `${this.serviceUrl}/search`,
1082
+ params: params,
1083
+ body: expression,
1084
+ });
1085
+ };
1086
+ this.fetchProduct$ = (id) => this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
1087
+ this.createNewProduct$ = (productData) => {
1088
+ return this.baseHttpService.api({
1089
+ url: `${this.serviceUrl}`,
1090
+ method: 'post',
1091
+ body: productData,
1092
+ });
1093
+ };
1094
+ this.updateProduct$ = (body) => {
1095
+ return this.baseHttpService.api({
1096
+ url: `${this.serviceUrl}/${body.id}`,
1097
+ method: 'put',
1098
+ body,
1099
+ });
1100
+ };
1101
+ this.removeProduct$ = (id) => {
1102
+ return this.baseHttpService.api({
1103
+ url: `${this.serviceUrl}/${id}`,
1104
+ method: 'delete',
1105
+ });
1106
+ };
1107
+ this.restoreProduct$ = (id) => {
1108
+ return this.baseHttpService.api({
1109
+ url: `${this.serviceUrl}/${id}/restore`,
1110
+ method: 'patch',
1111
+ });
1112
+ };
1113
+ }
1114
+ attachImage$(productId, file) {
1115
+ const data = new FormData();
1116
+ data.append('image', file);
1117
+ return this.baseHttpService.upload({
1118
+ method: 'post',
1119
+ url: `${this.serviceUrl}/${productId}/image`,
1120
+ body: data,
1121
+ });
1122
+ }
1123
+ removeImage$(productId) {
1124
+ return this.baseHttpService.api({
1125
+ method: 'delete',
1126
+ url: `${this.serviceUrl}/${productId}/image`,
1127
+ });
1128
+ }
1129
+ fetchImage$(productId) {
1130
+ return this.baseHttpService.api({
1131
+ url: this.getImageUrl(productId),
1132
+ method: 'get',
1133
+ responseType: 'blob',
1134
+ errorHandler: noop,
1135
+ });
1136
+ }
1137
+ getImageUrl(productId) {
1138
+ return `${this.serviceUrl}/${productId}/image`;
1139
+ }
1140
+ }
1141
+ ProductsAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductsAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1142
+ ProductsAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductsAdminApiService });
1143
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductsAdminApiService, decorators: [{
1144
+ type: Injectable
1145
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1146
+
1147
+ class SalesTransactionApiService {
1148
+ constructor(httpService) {
1149
+ this.httpService = httpService;
1150
+ this.SERVICE_URL = '/v2/transactions';
1151
+ }
1152
+ /**
1153
+ * This endpoint doesn't include orders and assets
1154
+ * @param objectId SF record ID (quoteId | accountId | opportunityId | orderId etc)
1155
+ * @param params Query params
1156
+ * @param options Request options
1157
+ */
1158
+ getState(objectId, params, options) {
1159
+ return this.httpService.api(Object.assign({ method: 'get', url: `${this.SERVICE_URL}/${objectId}`, params: params }, options));
1160
+ }
1161
+ /**
1162
+ * This endpoint doesn't include orders and assets
1163
+ * @param headerId SF record ID (quoteId | accountId | opportunityId | orderId etc)
1164
+ * @param params Query params
1165
+ * @param options Request options
1166
+ */
1167
+ query(headerId, params, options) {
1168
+ return this.httpService.api(Object.assign({ method: 'get', url: `${this.SERVICE_URL}/query/${headerId}`, params: params }, options));
1169
+ }
1170
+ save(request, options) {
1171
+ return this.httpService.api(Object.assign(Object.assign({ method: 'post', url: `${this.SERVICE_URL}/save/${request.transactionContext.salesTransaction.id}`, body: request }, options), { responseType: 'text' }));
1172
+ }
1173
+ }
1174
+ SalesTransactionApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesTransactionApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1175
+ SalesTransactionApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesTransactionApiService });
1176
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesTransactionApiService, decorators: [{
1177
+ type: Injectable
1178
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1179
+
1180
+ class ShoppingCartSettingsApiService {
1181
+ constructor(configurationSettingsApiService) {
1182
+ this.configurationSettingsApiService = configurationSettingsApiService;
1183
+ this.shoppingCartSettingsKey = 'shopping-cart';
1184
+ }
1185
+ getSetting(id) {
1186
+ return this.fetchSettings().pipe(map((settings) => parseJsonSafely(settings === null || settings === void 0 ? void 0 : settings.value, [])), map(settings => settings.find(setting => setting.id == id)));
1187
+ }
1188
+ fetchSettings() {
1189
+ return this.configurationSettingsApiService.fetchSetting(this.shoppingCartSettingsKey, { skipErrorHandler: true });
1190
+ }
1191
+ getSettingsMap() {
1192
+ return this.fetchSettings().pipe(map((settings) => parseJsonSafely(settings === null || settings === void 0 ? void 0 : settings.value, [])), map((settings) => settings.reduce((acc, setting) => {
1193
+ return Object.assign(Object.assign({}, acc), { [setting.id]: setting.properties });
1194
+ }, {})));
1195
+ }
1196
+ }
1197
+ ShoppingCartSettingsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShoppingCartSettingsApiService, deps: [{ token: ConfigurationSettingsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
1198
+ ShoppingCartSettingsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShoppingCartSettingsApiService });
1199
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShoppingCartSettingsApiService, decorators: [{
1200
+ type: Injectable
1201
+ }], ctorParameters: function () { return [{ type: ConfigurationSettingsApiService }]; } });
1202
+
1203
+ function uiDefinitionFromDTO(container) {
1204
+ const { sourceBlob } = container, rest = __rest(container, ["sourceBlob"]);
1205
+ return Object.assign(Object.assign({}, rest), { source: parseJsonStringAsObject(sourceBlob) });
1206
+ }
1207
+ function uiDefinitionToDTO(container) {
1208
+ const { source } = container, rest = __rest(container, ["source"]);
1209
+ return Object.assign(Object.assign({}, rest), { sourceBlob: JSON.stringify(source) });
1210
+ }
1211
+ function newUiDefinitionToDTO(container) {
1212
+ const { source } = container, rest = __rest(container, ["source"]);
1213
+ return Object.assign(Object.assign({}, rest), { sourceBlob: JSON.stringify(source) });
1214
+ }
1215
+
1216
+ class UIDefinitionsAdminApiService {
1217
+ constructor(baseHttpService) {
1218
+ this.baseHttpService = baseHttpService;
1219
+ this.serviceUrl = '/admin/v2/uidefinitions';
1220
+ }
1221
+ fetchAll$(params) {
1222
+ let httpParams = new HttpParams();
1223
+ if ((params === null || params === void 0 ? void 0 : params.productId) != null) {
1224
+ httpParams = httpParams.set('productId', params.productId);
1225
+ }
1226
+ if ((params === null || params === void 0 ? void 0 : params.defaultUIDefinitionId) != null) {
1227
+ httpParams = httpParams.set('defaultUIDefinitionId', params.defaultUIDefinitionId);
1228
+ }
1229
+ return this.baseHttpService
1230
+ .api({
1231
+ method: 'get',
1232
+ url: this.serviceUrl,
1233
+ params: httpParams,
1234
+ })
1235
+ .pipe(map$1(containers => containers.map(uiDefinitionFromDTO)));
1236
+ }
1237
+ fetch$(id) {
1238
+ return this.baseHttpService
1239
+ .api({
1240
+ method: 'get',
1241
+ url: `${this.serviceUrl}/${id}`,
1242
+ })
1243
+ .pipe(map$1(container => uiDefinitionFromDTO(Object.assign(Object.assign({}, container), { id }))));
1244
+ }
1245
+ create$(uiDefinitionContainer) {
1246
+ const dto = newUiDefinitionToDTO(uiDefinitionContainer);
1247
+ return this.baseHttpService
1248
+ .api({
1249
+ method: 'post',
1250
+ url: this.serviceUrl,
1251
+ body: dto,
1252
+ })
1253
+ .pipe(map$1(container => uiDefinitionFromDTO(container)));
1254
+ }
1255
+ update$(uiDefinitionContainer) {
1256
+ const dto = uiDefinitionToDTO(uiDefinitionContainer);
1257
+ return this.baseHttpService
1258
+ .api({
1259
+ method: 'put',
1260
+ url: `${this.serviceUrl}/${uiDefinitionContainer.id}`,
1261
+ body: dto,
1262
+ })
1263
+ .pipe(map$1(container => uiDefinitionFromDTO(container)));
1264
+ }
1265
+ delete$(id) {
1266
+ return this.baseHttpService.api({
1267
+ method: 'delete',
1268
+ url: `${this.serviceUrl}/${id}`,
1269
+ });
1270
+ }
1271
+ }
1272
+ UIDefinitionsAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UIDefinitionsAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1273
+ UIDefinitionsAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UIDefinitionsAdminApiService });
1274
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UIDefinitionsAdminApiService, decorators: [{
1275
+ type: Injectable
1276
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1277
+
1278
+ const fromUIComponentStoryDTO = (dto, attachments) => {
1279
+ return {
1280
+ id: dto.id,
1281
+ name: dto.name,
1282
+ uiComponentId: dto.uiComponentId,
1283
+ description: dto.description,
1284
+ section: attachments.json,
1285
+ template: attachments.html,
1286
+ script: attachments.js,
1287
+ styles: attachments.css,
1288
+ };
1289
+ };
1290
+
1291
+ class UITemplatesAdminApiService {
1292
+ constructor(baseHttpService) {
1293
+ this.baseHttpService = baseHttpService;
1294
+ this.serviceUrl = '/admin/v2/uitemplates';
1295
+ this.fetchTemplates$ = (name) => {
1296
+ let params = new HttpParams();
1297
+ if (name) {
1298
+ params = params.append('name', name);
1299
+ }
1300
+ return this.baseHttpService.api({ url: `${this.serviceUrl}`, params });
1301
+ };
1302
+ this.createTemplate$ = (template) => {
1303
+ return this.baseHttpService.api({
1304
+ method: 'post',
1305
+ url: `${this.serviceUrl}`,
1306
+ body: template,
1307
+ });
1308
+ };
1309
+ this.updateTemplate$ = (template) => {
1310
+ return this.baseHttpService.api({
1311
+ method: 'put',
1312
+ url: `${this.serviceUrl}/${template.id}`,
1313
+ body: template,
1314
+ });
1315
+ };
1316
+ this.duplicateTemplate$ = (template, cloneRequest) => {
1317
+ return this.baseHttpService
1318
+ .api({
1319
+ url: `${this.serviceUrl}/${template.id}/clone`,
1320
+ method: 'post',
1321
+ body: cloneRequest,
1322
+ })
1323
+ .pipe(map$1(response => response.clonedRecordId));
1324
+ };
1325
+ this.removeTemplate$ = (id) => {
1326
+ return this.baseHttpService.api({
1327
+ method: 'delete',
1328
+ url: `${this.serviceUrl}/${id}`,
1329
+ });
1330
+ };
1331
+ this.restoreTemplate$ = (id) => {
1332
+ return this.baseHttpService.api({
1333
+ method: 'patch',
1334
+ url: `${this.serviceUrl}/${id}`,
1335
+ });
1336
+ };
1337
+ this.searchTemplates$ = (data) => {
1338
+ return this.baseHttpService.api({
1339
+ method: 'post',
1340
+ url: `${this.serviceUrl}/search`,
1341
+ params: data.params,
1342
+ body: data.expression,
1343
+ });
1344
+ };
1345
+ this.fetchComponents$ = (templateId, name) => {
1346
+ let params = new HttpParams();
1347
+ if (name) {
1348
+ params = params.append('name', name);
1349
+ }
1350
+ return this.baseHttpService.api({
1351
+ url: `${this.serviceUrl}/${templateId}/components`,
1352
+ params,
1353
+ });
1354
+ };
1355
+ this.fetchComponent$ = (templateId, componentId) => {
1356
+ return this.baseHttpService.api({
1357
+ url: `${this.serviceUrl}/${templateId}/components/${componentId}`,
1358
+ });
1359
+ };
1360
+ this.createComponent$ = (component) => {
1361
+ return this.baseHttpService.api({
1362
+ method: 'post',
1363
+ url: `${this.serviceUrl}/${component.uiTemplateId}/components`,
1364
+ body: component,
1365
+ });
1366
+ };
1367
+ this.updateComponent$ = (component) => {
1368
+ return this.baseHttpService.api({
1369
+ method: 'put',
1370
+ url: `${this.serviceUrl}/${component.uiTemplateId}/components/${component.id}`,
1371
+ body: component,
1372
+ });
1373
+ };
1374
+ this.duplicateComponent$ = (component, cloneRequest) => {
1375
+ return this.baseHttpService
1376
+ .api({
1377
+ url: `${this.serviceUrl}/${component.uiTemplateId}/components/${component.id}/clone`,
1378
+ method: 'post',
1379
+ body: cloneRequest,
1380
+ })
1381
+ .pipe(map$1(response => response.clonedRecordId));
1382
+ };
1383
+ this.removeComponent$ = (templateId, componentId) => {
1384
+ return this.baseHttpService.api({
1385
+ method: 'delete',
1386
+ url: `${this.serviceUrl}/${templateId}/components/${componentId}`,
1387
+ });
1388
+ };
1389
+ this.restoreComponent$ = (templateId, componentId) => {
1390
+ return this.baseHttpService.api({
1391
+ method: 'patch',
1392
+ url: `${this.serviceUrl}/${templateId}/components/${componentId}`,
1393
+ });
1394
+ };
1395
+ this.searchComponents$ = (templateId, data) => {
1396
+ return this.baseHttpService.api({
1397
+ method: 'post',
1398
+ url: `${this.serviceUrl}/${templateId}/components/search`,
1399
+ params: data.params,
1400
+ body: data.expression,
1401
+ });
1402
+ };
1403
+ this.fetchStoryAttachment = (templateId, componentId, storyId, type) => {
1404
+ return this.baseHttpService
1405
+ .api({
1406
+ url: `${this.serviceUrl}/${templateId}/components/${componentId}/stories/${storyId}/attachments/${type}/file`,
1407
+ responseType: 'text',
1408
+ errorHandler: noop,
1409
+ })
1410
+ .pipe(catchError$1(() => of('')));
1411
+ };
1412
+ this.convertToComponentStory$ = (templateId, componentId, storyDto) => {
1413
+ return forkJoin([
1414
+ this.fetchStoryAttachment(templateId, componentId, storyDto.id, 'html'),
1415
+ this.fetchStoryAttachment(templateId, componentId, storyDto.id, 'js'),
1416
+ this.fetchStoryAttachment(templateId, componentId, storyDto.id, 'css'),
1417
+ this.fetchStoryAttachment(templateId, componentId, storyDto.id, 'json'),
1418
+ ]).pipe(map$1(([html, js, css, json]) => ({ html, js, css, json })), map$1(attachments => fromUIComponentStoryDTO(storyDto, attachments)));
1419
+ };
1420
+ this.fetchStories$ = (templateId, componentId, name) => {
1421
+ let params = new HttpParams();
1422
+ if (name) {
1423
+ params = params.append('name', name);
1424
+ }
1425
+ return this.baseHttpService
1426
+ .api({
1427
+ url: `${this.serviceUrl}/${templateId}/components/${componentId}/stories`,
1428
+ params,
1429
+ })
1430
+ .pipe(switchMap(dtos => {
1431
+ if (!dtos.length) {
1432
+ return of([]);
1433
+ }
1434
+ return forkJoin(dtos.map(dto => this.convertToComponentStory$(templateId, componentId, dto)));
1435
+ }));
1436
+ };
1437
+ this.fetchStory$ = (templateId, componentId, storyId) => {
1438
+ return this.baseHttpService
1439
+ .api({
1440
+ url: `${this.serviceUrl}/${templateId}/components/${componentId}/stories/${storyId}`,
1441
+ })
1442
+ .pipe(switchMap(dto => this.convertToComponentStory$(templateId, componentId, dto)));
1443
+ };
1444
+ this.createComponentStory$ = (templateId, story) => {
1445
+ return this.baseHttpService.api({
1446
+ method: 'post',
1447
+ url: `${this.serviceUrl}/${templateId}/components/${story.uiComponentId}/stories`,
1448
+ body: story,
1449
+ });
1450
+ };
1451
+ this.updateComponentStory$ = (templateId, story) => {
1452
+ const { script, template, styles, section } = story, rest = __rest(story, ["script", "template", "styles", "section"]);
1453
+ return this.baseHttpService
1454
+ .api({
1455
+ method: 'put',
1456
+ url: `${this.serviceUrl}/${templateId}/components/${story.uiComponentId}/stories/${story.id}`,
1457
+ body: rest,
1458
+ })
1459
+ .pipe(map$1(dto => fromUIComponentStoryDTO(dto, { html: template, js: script, css: styles, json: section })));
1460
+ };
1461
+ this.duplicateComponentStory$ = (story, cloneRequest) => {
1462
+ return this.baseHttpService
1463
+ .api({
1464
+ url: `${this.serviceUrl}/${story.template}/components/${story.uiComponentId}/stories/${story.id}/clone`,
1465
+ method: 'post',
1466
+ body: cloneRequest,
1467
+ })
1468
+ .pipe(map$1(response => response.clonedRecordId));
1469
+ };
1470
+ this.deleteComponentStory$ = (templateId, componentId, storyId) => {
1471
+ return this.baseHttpService.api({
1472
+ method: 'delete',
1473
+ url: `${this.serviceUrl}/${templateId}/components/${componentId}/stories/${storyId}`,
1474
+ });
1475
+ };
1476
+ this.restoreComponentStory$ = (templateId, componentId, storyId) => {
1477
+ return this.baseHttpService.api({
1478
+ method: 'patch',
1479
+ url: `${this.serviceUrl}/${templateId}/components/${componentId}/stories/${storyId}`,
1480
+ });
1481
+ };
1482
+ this.uploadStoryAttachments$ = (templateId, componentId, storyId, attachments) => {
1483
+ const formData = new FormData();
1484
+ if (attachments.html != null) {
1485
+ formData.append('html', new Blob([attachments.html]), 'story-template.html');
1486
+ }
1487
+ if (attachments.css != null) {
1488
+ formData.append('css', new Blob([attachments.css]), 'story-styles.css');
1489
+ }
1490
+ if (attachments.js != null) {
1491
+ formData.append('js', new Blob([attachments.js]), 'story-script.js');
1492
+ }
1493
+ if (attachments.json != null) {
1494
+ formData.append('json', new Blob([attachments.json]), 'story-section.json');
1495
+ }
1496
+ return this.baseHttpService.upload({
1497
+ method: 'post',
1498
+ url: `${this.serviceUrl}/${templateId}/components/${componentId}/stories/${storyId}/attachments`,
1499
+ body: formData,
1500
+ });
1501
+ };
1502
+ this.fetchComponentAttachments$ = (templateId, component) => {
1503
+ return forkJoin([
1504
+ this.fetchComponentAttachmentFile$(templateId, component.id, 'html'),
1505
+ this.fetchComponentAttachmentFile$(templateId, component.id, 'js'),
1506
+ this.fetchComponentAttachmentFile$(templateId, component.id, 'css'),
1507
+ this.fetchComponentAttachmentFile$(templateId, component.id, 'json'),
1508
+ ]).pipe(map$1(([html, js, css, json]) => ({ html, js, css, json })));
1509
+ };
1510
+ this.fetchComponentsAttachments$ = (templateId) => {
1511
+ return this.fetchComponents$(templateId).pipe(switchMap(components => {
1512
+ return forkJoin(components.map(component => this.fetchComponentAttachments$(templateId, component)));
1513
+ }));
1514
+ };
1515
+ this.fetchComponentAttachmentFile$ = (templateId, componentId, attachmentType) => {
1516
+ return this.baseHttpService
1517
+ .api({
1518
+ method: 'get',
1519
+ url: `${this.serviceUrl}/${templateId}/components/${componentId}/attachments/${attachmentType}/file`,
1520
+ responseType: 'text',
1521
+ errorHandler: noop,
1522
+ })
1523
+ .pipe(catchError$1(() => of('')));
1524
+ };
1525
+ this.uploadComponentAttachments$ = (templateId, componentId, attachments) => {
1526
+ const formData = new FormData();
1527
+ if (attachments.html != null) {
1528
+ formData.append('html', new Blob([attachments.html]), 'template.html');
1529
+ }
1530
+ if (attachments.css != null) {
1531
+ formData.append('css', new Blob([attachments.css]), 'styles.css');
1532
+ }
1533
+ if (attachments.js != null) {
1534
+ formData.append('js', new Blob([attachments.js]), 'script.js');
1535
+ }
1536
+ if (attachments.json != null) {
1537
+ formData.append('json', new Blob([attachments.json]), 'section.json');
1538
+ }
1539
+ return this.baseHttpService.upload({
1540
+ method: 'post',
1541
+ url: `${this.serviceUrl}/${templateId}/components/${componentId}/attachments`,
1542
+ body: formData,
1543
+ });
1544
+ };
1545
+ }
1546
+ getTemplateThumbnailUrl(templateId) {
1547
+ return `${this.serviceUrl}/${templateId}/thumbnail/file`;
1548
+ }
1549
+ attachTemplateThumbnail$(templateId, file) {
1550
+ const data = new FormData();
1551
+ data.append('thumb', file);
1552
+ return this.baseHttpService.upload({
1553
+ method: 'post',
1554
+ url: `${this.serviceUrl}/${templateId}/thumbnail`,
1555
+ body: data,
1556
+ });
1557
+ }
1558
+ removeTemplateThumbnail$(templateId) {
1559
+ return this.baseHttpService.api({
1560
+ method: 'delete',
1561
+ url: `${this.serviceUrl}/${templateId}/thumbnail`,
1562
+ });
1563
+ }
1564
+ }
1565
+ UITemplatesAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UITemplatesAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1566
+ UITemplatesAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UITemplatesAdminApiService });
1567
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UITemplatesAdminApiService, decorators: [{
1568
+ type: Injectable
1569
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1570
+
1571
+ class VeloceObjectsAdminApiService {
1572
+ constructor(baseHttpService) {
1573
+ this.baseHttpService = baseHttpService;
1574
+ this.serviceUrl = '/admin/v2/veloceobjects';
1575
+ this.updateCategory$ = (category) => {
1576
+ return this.baseHttpService.api({
1577
+ method: 'put',
1578
+ url: `${this.serviceUrl}/categories/${category.id}`,
1579
+ body: category,
1580
+ });
1581
+ };
1582
+ this.deleteCategory$ = (id) => {
1583
+ return this.baseHttpService.api({
1584
+ method: 'delete',
1585
+ url: `${this.serviceUrl}/categories/${id}`,
1586
+ });
1587
+ };
1588
+ this.searchObjects$ = (searchParams, expression) => {
1589
+ const params = new HttpParams({ fromObject: Object.assign({}, searchParams) });
1590
+ return this.baseHttpService.api({
1591
+ method: 'post',
1592
+ url: `${this.serviceUrl}/search`,
1593
+ params,
1594
+ body: expression || {},
1595
+ });
1596
+ };
1597
+ this.deleteObject$ = (id) => {
1598
+ return this.baseHttpService.api({
1599
+ method: 'delete',
1600
+ url: `${this.serviceUrl}/${id}`,
1601
+ });
1602
+ };
1603
+ this.duplicateObject$ = (body) => {
1604
+ return this.baseHttpService
1605
+ .api({
1606
+ method: 'post',
1607
+ url: `${this.serviceUrl}/${body.id}/clone`,
1608
+ body,
1609
+ })
1610
+ .pipe(map(response => response.clonedRecordId));
1611
+ };
1612
+ this.restoreObject$ = (id) => {
1613
+ return this.baseHttpService.api({
1614
+ method: 'patch',
1615
+ url: `${this.serviceUrl}/${id}/restore`,
1616
+ });
1617
+ };
1618
+ }
1619
+ fetchCategories$() {
1620
+ return this.baseHttpService.api({ url: `${this.serviceUrl}/categories` });
1621
+ }
1622
+ createCategory$(category) {
1623
+ return this.baseHttpService.api({
1624
+ method: 'post',
1625
+ url: `${this.serviceUrl}/categories`,
1626
+ body: category,
1627
+ });
1628
+ }
1629
+ fetchObjects$() {
1630
+ return this.baseHttpService.api({ url: `${this.serviceUrl}` });
1631
+ }
1632
+ fetchObject$(id) {
1633
+ return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
1634
+ }
1635
+ createObject$(object) {
1636
+ return this.baseHttpService.api({
1637
+ method: 'post',
1638
+ url: `${this.serviceUrl}`,
1639
+ body: object,
1640
+ });
1641
+ }
1642
+ updateObject$(object) {
1643
+ return this.baseHttpService.api({
1644
+ method: 'put',
1645
+ url: `${this.serviceUrl}/${object.id}`,
1646
+ body: object,
1647
+ });
1648
+ }
1649
+ }
1650
+ VeloceObjectsAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceObjectsAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1651
+ VeloceObjectsAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceObjectsAdminApiService });
1652
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceObjectsAdminApiService, decorators: [{
1653
+ type: Injectable
1654
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1655
+
1656
+ class ApiV2Module {
1657
+ }
1658
+ ApiV2Module.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiV2Module, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1659
+ ApiV2Module.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ApiV2Module, imports: [HttpClientModule] });
1660
+ ApiV2Module.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiV2Module, providers: [
1661
+ BaseHttpService,
1662
+ CacheApiService,
1663
+ CatalogAdminApiService,
1664
+ CatalogApiService,
1665
+ ConfigurationProcessorsApiService,
1666
+ ConfigurationSettingsApiService,
1667
+ ContextDefinitionAdminApiService,
1668
+ DocumentAttachmentApiService,
1669
+ EndpointsAdminApiService,
1670
+ FlowsApiService,
1671
+ OrchestrationsAdminApiService,
1672
+ OrchestrationsApiService,
1673
+ PCMApiService,
1674
+ PicklistsAdminApiService,
1675
+ ProductsAdminApiService,
1676
+ FunctionsAdminApiService,
1677
+ GuidedSellingsAdminApiService,
1678
+ GuidedSellingApiService,
1679
+ SalesforceApiService,
1680
+ SalesTransactionApiService,
1681
+ ShoppingCartSettingsApiService,
1682
+ UIDefinitionsAdminApiService,
1683
+ UITemplatesAdminApiService,
1684
+ VeloceObjectsAdminApiService,
1685
+ XrayService,
1686
+ ], imports: [HttpClientModule] });
1687
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiV2Module, decorators: [{
1688
+ type: NgModule,
1689
+ args: [{
1690
+ imports: [HttpClientModule],
1691
+ providers: [
1692
+ BaseHttpService,
1693
+ CacheApiService,
1694
+ CatalogAdminApiService,
1695
+ CatalogApiService,
1696
+ ConfigurationProcessorsApiService,
1697
+ ConfigurationSettingsApiService,
1698
+ ContextDefinitionAdminApiService,
1699
+ DocumentAttachmentApiService,
1700
+ EndpointsAdminApiService,
1701
+ FlowsApiService,
1702
+ OrchestrationsAdminApiService,
1703
+ OrchestrationsApiService,
1704
+ PCMApiService,
1705
+ PicklistsAdminApiService,
1706
+ ProductsAdminApiService,
1707
+ FunctionsAdminApiService,
1708
+ GuidedSellingsAdminApiService,
1709
+ GuidedSellingApiService,
1710
+ SalesforceApiService,
1711
+ SalesTransactionApiService,
1712
+ ShoppingCartSettingsApiService,
1713
+ UIDefinitionsAdminApiService,
1714
+ UITemplatesAdminApiService,
1715
+ VeloceObjectsAdminApiService,
1716
+ XrayService,
1717
+ ],
1718
+ }]
1719
+ }] });
1720
+
1721
+ /**
1722
+ * Generated bundle index. Do not edit.
1723
+ */
1724
+
1725
+ 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 };
1726
+ //# sourceMappingURL=veloceapps-api-v2.mjs.map