@veloceapps/api 11.0.0-4 → 11.0.0-40

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