@veloceapps/api 11.0.0-10 → 11.0.0-101

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