@schally/node-akeneo-api-client 1.0.9

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 (231) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +186 -0
  3. package/dist/akeneo-client.d.ts +28 -0
  4. package/dist/akeneo-client.d.ts.map +1 -0
  5. package/dist/akeneo-client.js +33 -0
  6. package/dist/akeneo-client.js.map +1 -0
  7. package/dist/index.d.ts +6 -0
  8. package/dist/index.d.ts.map +1 -0
  9. package/dist/index.js +23 -0
  10. package/dist/index.js.map +1 -0
  11. package/dist/services/akeneo-api-client.d.ts +11 -0
  12. package/dist/services/akeneo-api-client.d.ts.map +1 -0
  13. package/dist/services/akeneo-api-client.js +91 -0
  14. package/dist/services/akeneo-api-client.js.map +1 -0
  15. package/dist/services/api/asset-manager/asset-attributes-api.service.d.ts +21 -0
  16. package/dist/services/api/asset-manager/asset-attributes-api.service.d.ts.map +1 -0
  17. package/dist/services/api/asset-manager/asset-attributes-api.service.js +44 -0
  18. package/dist/services/api/asset-manager/asset-attributes-api.service.js.map +1 -0
  19. package/dist/services/api/asset-manager/asset-families-api.service.d.ts +15 -0
  20. package/dist/services/api/asset-manager/asset-families-api.service.d.ts.map +1 -0
  21. package/dist/services/api/asset-manager/asset-families-api.service.js +20 -0
  22. package/dist/services/api/asset-manager/asset-families-api.service.js.map +1 -0
  23. package/dist/services/api/asset-manager/asset-media-files-api.service.d.ts +13 -0
  24. package/dist/services/api/asset-manager/asset-media-files-api.service.d.ts.map +1 -0
  25. package/dist/services/api/asset-manager/asset-media-files-api.service.js +26 -0
  26. package/dist/services/api/asset-manager/asset-media-files-api.service.js.map +1 -0
  27. package/dist/services/api/asset-manager/assets-api.service.d.ts +28 -0
  28. package/dist/services/api/asset-manager/assets-api.service.d.ts.map +1 -0
  29. package/dist/services/api/asset-manager/assets-api.service.js +35 -0
  30. package/dist/services/api/asset-manager/assets-api.service.js.map +1 -0
  31. package/dist/services/api/asset-manager/index.d.ts +5 -0
  32. package/dist/services/api/asset-manager/index.d.ts.map +1 -0
  33. package/dist/services/api/asset-manager/index.js +21 -0
  34. package/dist/services/api/asset-manager/index.js.map +1 -0
  35. package/dist/services/api/asset-manager-api.service.d.ts +11 -0
  36. package/dist/services/api/asset-manager-api.service.d.ts.map +1 -0
  37. package/dist/services/api/asset-manager-api.service.js +15 -0
  38. package/dist/services/api/asset-manager-api.service.js.map +1 -0
  39. package/dist/services/api/association-types-api.service.d.ts +21 -0
  40. package/dist/services/api/association-types-api.service.d.ts.map +1 -0
  41. package/dist/services/api/association-types-api.service.js +28 -0
  42. package/dist/services/api/association-types-api.service.js.map +1 -0
  43. package/dist/services/api/attribute-groups-api.service.d.ts +26 -0
  44. package/dist/services/api/attribute-groups-api.service.d.ts.map +1 -0
  45. package/dist/services/api/attribute-groups-api.service.js +28 -0
  46. package/dist/services/api/attribute-groups-api.service.js.map +1 -0
  47. package/dist/services/api/attributes-api.service.d.ts +43 -0
  48. package/dist/services/api/attributes-api.service.d.ts.map +1 -0
  49. package/dist/services/api/attributes-api.service.js +60 -0
  50. package/dist/services/api/attributes-api.service.js.map +1 -0
  51. package/dist/services/api/base-api.service.d.ts +13 -0
  52. package/dist/services/api/base-api.service.d.ts.map +1 -0
  53. package/dist/services/api/base-api.service.js +26 -0
  54. package/dist/services/api/base-api.service.js.map +1 -0
  55. package/dist/services/api/catalog-for-apps/catalog-products-api.service.d.ts +28 -0
  56. package/dist/services/api/catalog-for-apps/catalog-products-api.service.d.ts.map +1 -0
  57. package/dist/services/api/catalog-for-apps/catalog-products-api.service.js +44 -0
  58. package/dist/services/api/catalog-for-apps/catalog-products-api.service.js.map +1 -0
  59. package/dist/services/api/catalog-for-apps/catalogs-api.service.d.ts +13 -0
  60. package/dist/services/api/catalog-for-apps/catalogs-api.service.d.ts.map +1 -0
  61. package/dist/services/api/catalog-for-apps/catalogs-api.service.js +14 -0
  62. package/dist/services/api/catalog-for-apps/catalogs-api.service.js.map +1 -0
  63. package/dist/services/api/catalog-for-apps/index.d.ts +4 -0
  64. package/dist/services/api/catalog-for-apps/index.d.ts.map +1 -0
  65. package/dist/services/api/catalog-for-apps/index.js +20 -0
  66. package/dist/services/api/catalog-for-apps/index.js.map +1 -0
  67. package/dist/services/api/catalog-for-apps/mapping-schemas-api.service.d.ts +13 -0
  68. package/dist/services/api/catalog-for-apps/mapping-schemas-api.service.d.ts.map +1 -0
  69. package/dist/services/api/catalog-for-apps/mapping-schemas-api.service.js +23 -0
  70. package/dist/services/api/catalog-for-apps/mapping-schemas-api.service.js.map +1 -0
  71. package/dist/services/api/catalog-for-apps-api.service.d.ts +10 -0
  72. package/dist/services/api/catalog-for-apps-api.service.d.ts.map +1 -0
  73. package/dist/services/api/catalog-for-apps-api.service.js +14 -0
  74. package/dist/services/api/catalog-for-apps-api.service.js.map +1 -0
  75. package/dist/services/api/categories-api.service.d.ts +39 -0
  76. package/dist/services/api/categories-api.service.d.ts.map +1 -0
  77. package/dist/services/api/categories-api.service.js +40 -0
  78. package/dist/services/api/categories-api.service.js.map +1 -0
  79. package/dist/services/api/channels-api.service.d.ts +21 -0
  80. package/dist/services/api/channels-api.service.d.ts.map +1 -0
  81. package/dist/services/api/channels-api.service.js +28 -0
  82. package/dist/services/api/channels-api.service.js.map +1 -0
  83. package/dist/services/api/currencies-api.service.d.ts +16 -0
  84. package/dist/services/api/currencies-api.service.d.ts.map +1 -0
  85. package/dist/services/api/currencies-api.service.js +17 -0
  86. package/dist/services/api/currencies-api.service.js.map +1 -0
  87. package/dist/services/api/families-api.service.d.ts +38 -0
  88. package/dist/services/api/families-api.service.d.ts.map +1 -0
  89. package/dist/services/api/families-api.service.js +53 -0
  90. package/dist/services/api/families-api.service.js.map +1 -0
  91. package/dist/services/api/index.d.ts +21 -0
  92. package/dist/services/api/index.d.ts.map +1 -0
  93. package/dist/services/api/index.js +37 -0
  94. package/dist/services/api/index.js.map +1 -0
  95. package/dist/services/api/jobs-api.service.d.ts +12 -0
  96. package/dist/services/api/jobs-api.service.d.ts.map +1 -0
  97. package/dist/services/api/jobs-api.service.js +17 -0
  98. package/dist/services/api/jobs-api.service.js.map +1 -0
  99. package/dist/services/api/locales-api.service.d.ts +16 -0
  100. package/dist/services/api/locales-api.service.d.ts.map +1 -0
  101. package/dist/services/api/locales-api.service.js +17 -0
  102. package/dist/services/api/locales-api.service.js.map +1 -0
  103. package/dist/services/api/measurement-families-api.service.d.ts +20 -0
  104. package/dist/services/api/measurement-families-api.service.d.ts.map +1 -0
  105. package/dist/services/api/measurement-families-api.service.js +19 -0
  106. package/dist/services/api/measurement-families-api.service.js.map +1 -0
  107. package/dist/services/api/product-media-files-api.service.d.ts +32 -0
  108. package/dist/services/api/product-media-files-api.service.d.ts.map +1 -0
  109. package/dist/services/api/product-media-files-api.service.js +25 -0
  110. package/dist/services/api/product-media-files-api.service.js.map +1 -0
  111. package/dist/services/api/product-models-api.service.d.ts +39 -0
  112. package/dist/services/api/product-models-api.service.d.ts.map +1 -0
  113. package/dist/services/api/product-models-api.service.js +31 -0
  114. package/dist/services/api/product-models-api.service.js.map +1 -0
  115. package/dist/services/api/product-uuid-api.service.d.ts +22 -0
  116. package/dist/services/api/product-uuid-api.service.d.ts.map +1 -0
  117. package/dist/services/api/product-uuid-api.service.js +31 -0
  118. package/dist/services/api/product-uuid-api.service.js.map +1 -0
  119. package/dist/services/api/products-api.service.d.ts +42 -0
  120. package/dist/services/api/products-api.service.d.ts.map +1 -0
  121. package/dist/services/api/products-api.service.js +31 -0
  122. package/dist/services/api/products-api.service.js.map +1 -0
  123. package/dist/services/api/reference-entities/index.d.ts +4 -0
  124. package/dist/services/api/reference-entities/index.d.ts.map +1 -0
  125. package/dist/services/api/reference-entities/index.js +20 -0
  126. package/dist/services/api/reference-entities/index.js.map +1 -0
  127. package/dist/services/api/reference-entities/reference-entities-attribute-api.service.d.ts +21 -0
  128. package/dist/services/api/reference-entities/reference-entities-attribute-api.service.d.ts.map +1 -0
  129. package/dist/services/api/reference-entities/reference-entities-attribute-api.service.js +46 -0
  130. package/dist/services/api/reference-entities/reference-entities-attribute-api.service.js.map +1 -0
  131. package/dist/services/api/reference-entities/reference-entities-media-files-api.service.d.ts +13 -0
  132. package/dist/services/api/reference-entities/reference-entities-media-files-api.service.d.ts.map +1 -0
  133. package/dist/services/api/reference-entities/reference-entities-media-files-api.service.js +26 -0
  134. package/dist/services/api/reference-entities/reference-entities-media-files-api.service.js.map +1 -0
  135. package/dist/services/api/reference-entities/reference-entities-records-api.service.d.ts +27 -0
  136. package/dist/services/api/reference-entities/reference-entities-records-api.service.d.ts.map +1 -0
  137. package/dist/services/api/reference-entities/reference-entities-records-api.service.js +34 -0
  138. package/dist/services/api/reference-entities/reference-entities-records-api.service.js.map +1 -0
  139. package/dist/services/api/reference-entities-api.service.d.ts +19 -0
  140. package/dist/services/api/reference-entities-api.service.d.ts.map +1 -0
  141. package/dist/services/api/reference-entities-api.service.js +24 -0
  142. package/dist/services/api/reference-entities-api.service.js.map +1 -0
  143. package/dist/services/api/ui-extensions-api.service.d.ts +14 -0
  144. package/dist/services/api/ui-extensions-api.service.d.ts.map +1 -0
  145. package/dist/services/api/ui-extensions-api.service.js +23 -0
  146. package/dist/services/api/ui-extensions-api.service.js.map +1 -0
  147. package/dist/services/api/utilities-api.service.d.ts +11 -0
  148. package/dist/services/api/utilities-api.service.d.ts.map +1 -0
  149. package/dist/services/api/utilities-api.service.js +13 -0
  150. package/dist/services/api/utilities-api.service.js.map +1 -0
  151. package/dist/services/index.d.ts +2 -0
  152. package/dist/services/index.d.ts.map +1 -0
  153. package/dist/services/index.js +18 -0
  154. package/dist/services/index.js.map +1 -0
  155. package/dist/types/api.type.d.ts +22 -0
  156. package/dist/types/api.type.d.ts.map +1 -0
  157. package/dist/types/api.type.js +3 -0
  158. package/dist/types/api.type.js.map +1 -0
  159. package/dist/types/assets.type.d.ts +109 -0
  160. package/dist/types/assets.type.d.ts.map +1 -0
  161. package/dist/types/assets.type.js +16 -0
  162. package/dist/types/assets.type.js.map +1 -0
  163. package/dist/types/association-type.type.d.ts +9 -0
  164. package/dist/types/association-type.type.d.ts.map +1 -0
  165. package/dist/types/association-type.type.js +3 -0
  166. package/dist/types/association-type.type.js.map +1 -0
  167. package/dist/types/attribute-group.type.d.ts +9 -0
  168. package/dist/types/attribute-group.type.d.ts.map +1 -0
  169. package/dist/types/attribute-group.type.js +3 -0
  170. package/dist/types/attribute-group.type.js.map +1 -0
  171. package/dist/types/attribute.type.d.ts +74 -0
  172. package/dist/types/attribute.type.d.ts.map +1 -0
  173. package/dist/types/attribute.type.js +24 -0
  174. package/dist/types/attribute.type.js.map +1 -0
  175. package/dist/types/auth.type.d.ts +13 -0
  176. package/dist/types/auth.type.d.ts.map +1 -0
  177. package/dist/types/auth.type.js +3 -0
  178. package/dist/types/auth.type.js.map +1 -0
  179. package/dist/types/catalog-for-apps.type.d.ts +49 -0
  180. package/dist/types/catalog-for-apps.type.d.ts.map +1 -0
  181. package/dist/types/catalog-for-apps.type.js +3 -0
  182. package/dist/types/catalog-for-apps.type.js.map +1 -0
  183. package/dist/types/category.type.d.ts +21 -0
  184. package/dist/types/category.type.d.ts.map +1 -0
  185. package/dist/types/category.type.js +3 -0
  186. package/dist/types/category.type.js.map +1 -0
  187. package/dist/types/channel.type.d.ts +13 -0
  188. package/dist/types/channel.type.d.ts.map +1 -0
  189. package/dist/types/channel.type.js +3 -0
  190. package/dist/types/channel.type.js.map +1 -0
  191. package/dist/types/currency.type.d.ts +6 -0
  192. package/dist/types/currency.type.d.ts.map +1 -0
  193. package/dist/types/currency.type.js +3 -0
  194. package/dist/types/currency.type.js.map +1 -0
  195. package/dist/types/family.type.d.ts +24 -0
  196. package/dist/types/family.type.d.ts.map +1 -0
  197. package/dist/types/family.type.js +3 -0
  198. package/dist/types/family.type.js.map +1 -0
  199. package/dist/types/index.d.ts +19 -0
  200. package/dist/types/index.d.ts.map +1 -0
  201. package/dist/types/index.js +35 -0
  202. package/dist/types/index.js.map +1 -0
  203. package/dist/types/locale.type.d.ts +5 -0
  204. package/dist/types/locale.type.d.ts.map +1 -0
  205. package/dist/types/locale.type.js +3 -0
  206. package/dist/types/locale.type.js.map +1 -0
  207. package/dist/types/measurement-family.type.d.ts +22 -0
  208. package/dist/types/measurement-family.type.d.ts.map +1 -0
  209. package/dist/types/measurement-family.type.js +3 -0
  210. package/dist/types/measurement-family.type.js.map +1 -0
  211. package/dist/types/product-media-file.type.d.ts +13 -0
  212. package/dist/types/product-media-file.type.d.ts.map +1 -0
  213. package/dist/types/product-media-file.type.js +3 -0
  214. package/dist/types/product-media-file.type.js.map +1 -0
  215. package/dist/types/product-model.type.d.ts +54 -0
  216. package/dist/types/product-model.type.d.ts.map +1 -0
  217. package/dist/types/product-model.type.js +3 -0
  218. package/dist/types/product-model.type.js.map +1 -0
  219. package/dist/types/product.type.d.ts +62 -0
  220. package/dist/types/product.type.d.ts.map +1 -0
  221. package/dist/types/product.type.js +3 -0
  222. package/dist/types/product.type.js.map +1 -0
  223. package/dist/types/reference-entities.type.d.ts +64 -0
  224. package/dist/types/reference-entities.type.d.ts.map +1 -0
  225. package/dist/types/reference-entities.type.js +15 -0
  226. package/dist/types/reference-entities.type.js.map +1 -0
  227. package/dist/types/ui-extension.type.d.ts +35 -0
  228. package/dist/types/ui-extension.type.d.ts.map +1 -0
  229. package/dist/types/ui-extension.type.js +22 -0
  230. package/dist/types/ui-extension.type.js.map +1 -0
  231. package/package.json +70 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assets-api.service.d.ts","sourceRoot":"","sources":["../../../../src/services/api/asset-manager/assets-api.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAE1D,MAAM,MAAM,uBAAuB,GAAG;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;I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{
6
+ this.client = client;
7
+ this.endpoint = '/api/rest/v1/asset-families/{asset_family_code}/assets';
8
+ }
9
+ async get(assetFamilyCode, assetCode) {
10
+ return this.client.httpClient.get(`${this.completeEndpoint(assetFamilyCode)}/${assetCode}`).then((response) => {
11
+ return response.data;
12
+ });
13
+ }
14
+ async list(assetFamilyCode, params) {
15
+ return this.client.httpClient.get(`${this.completeEndpoint(assetFamilyCode)}`, { params }).then((response) => {
16
+ return response.data;
17
+ });
18
+ }
19
+ async updateOrCreate(assetFamilyCode, data) {
20
+ await this.client.httpClient.patch(`${this.completeEndpoint(assetFamilyCode)}/${data.code}`, data);
21
+ }
22
+ async updateOrCreateSeveral(assetFamilyCode, data) {
23
+ return this.client.httpClient.patch(`${this.completeEndpoint(assetFamilyCode)}`, data).then((response) => {
24
+ return response.data;
25
+ });
26
+ }
27
+ async delete(assetFamilyCode, assetCode) {
28
+ await this.client.httpClient.delete(`${this.completeEndpoint(assetFamilyCode)}/${assetCode}`);
29
+ }
30
+ completeEndpoint(assetFamilyCode) {
31
+ return this.endpoint.replace('{asset_family_code}', assetFamilyCode);
32
+ }
33
+ }
34
+ exports.AssetsApi = AssetsApi;
35
+ //# sourceMappingURL=assets-api.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assets-api.service.js","sourceRoot":"","sources":["../../../../src/services/api/asset-manager/assets-api.service.ts"],"names":[],"mappings":";;;AAsBA,MAAa,SAAS;IAGpB,YAA6B,MAAuB;QAAvB,WAAM,GAAN,MAAM,CAAiB;QAClD,IAAI,CAAC,QAAQ,GAAG,wDAAwD,CAAC;IAC3E,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,eAAuB,EAAE,SAAiB;QAClD,OAAO,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,gBAAgB,CAAC,eAAe,CAAC,IAAI,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE;YAC5G,OAAO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,0 +1,5 @@
1
+ export * from './asset-families-api.service';
2
+ export * from './asset-attributes-api.service';
3
+ export * from './asset-media-files-api.service';
4
+ export * from './assets-api.service';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/api/asset-manager/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./asset-families-api.service"), exports);
18
+ __exportStar(require("./asset-attributes-api.service"), exports);
19
+ __exportStar(require("./asset-media-files-api.service"), exports);
20
+ __exportStar(require("./assets-api.service"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/api/asset-manager/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,iEAA+C;AAC/C,kEAAgD;AAChD,uDAAqC"}
@@ -0,0 +1,11 @@
1
+ import { AkeneoApiClient } from '../akeneo-api-client';
2
+ import { AssetAttributesApi, AssetFamiliesApi, AssetMediaFilesApi, AssetsApi } from './asset-manager';
3
+ export declare class AssetManagerApi {
4
+ private readonly client;
5
+ readonly families: AssetFamiliesApi;
6
+ readonly attributes: AssetAttributesApi;
7
+ readonly mediaFiles: AssetMediaFilesApi;
8
+ readonly assets: AssetsApi;
9
+ constructor(client: AkeneoApiClient);
10
+ }
11
+ //# sourceMappingURL=asset-manager-api.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asset-manager-api.service.d.ts","sourceRoot":"","sources":["../../../src/services/api/asset-manager-api.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEtG,qBAAa,eAAe;IAMd,OAAO,CAAC,QAAQ,CAAC,MAAM;IALnC,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAC;IACpC,QAAQ,CAAC,UAAU,EAAE,kBAAkB,CAAC;IACxC,QAAQ,CAAC,UAAU,EAAE,kBAAkB,CAAC;IACxC,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC;gBAEE,MAAM,EAAE,eAAe;CAMrD"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AssetManagerApi = void 0;
4
+ const asset_manager_1 = require("./asset-manager");
5
+ class AssetManagerApi {
6
+ constructor(client) {
7
+ this.client = client;
8
+ this.families = new asset_manager_1.AssetFamiliesApi(this.client);
9
+ this.attributes = new asset_manager_1.AssetAttributesApi(this.client);
10
+ this.mediaFiles = new asset_manager_1.AssetMediaFilesApi(this.client);
11
+ this.assets = new asset_manager_1.AssetsApi(this.client);
12
+ }
13
+ }
14
+ exports.AssetManagerApi = AssetManagerApi;
15
+ //# sourceMappingURL=asset-manager-api.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asset-manager-api.service.js","sourceRoot":"","sources":["../../../src/services/api/asset-manager-api.service.ts"],"names":[],"mappings":";;;AACA,mDAAsG;AAEtG,MAAa,eAAe;IAM1B,YAA6B,MAAuB;QAAvB,WAAM,GAAN,MAAM,CAAiB;QAClD,IAAI,CAAC,QAAQ,GAAG,IAAI,gCAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAClD,IAAI,CAAC,UAAU,GAAG,IAAI,kCAAkB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACtD,IAAI,CAAC,UAAU,GAAG,IAAI,kCAAkB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACtD,IAAI,CAAC,MAAM,GAAG,IAAI,yBAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC3C,CAAC;CACF;AAZD,0CAYC"}
@@ -0,0 +1,21 @@
1
+ import { AkeneoApiClient } from '../';
2
+ import { AssociationType } from '../../types';
3
+ import { BaseApi } from './base-api.service';
4
+ export type AssociationTypesSearchParams = {
5
+ page?: number;
6
+ limit?: number;
7
+ with_count?: boolean;
8
+ };
9
+ export type CreateAssociationTypeRequest = Partial<Omit<AssociationType, 'code'>> & Required<Pick<AssociationType, 'code'>>;
10
+ export type SeveralAssociationTypesUpdateOrCreationResponseLine = {
11
+ line: number;
12
+ code: string;
13
+ status_code: number;
14
+ message: string;
15
+ };
16
+ export declare class AssociationTypesApi extends BaseApi<AssociationType, null, AssociationTypesSearchParams, CreateAssociationTypeRequest, Partial<AssociationType>> {
17
+ constructor(client: AkeneoApiClient);
18
+ delete(): Promise<void>;
19
+ updateOrCreateSeveral(data: Partial<AssociationType>[]): Promise<SeveralAssociationTypesUpdateOrCreationResponseLine[]>;
20
+ }
21
+ //# sourceMappingURL=association-types-api.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"association-types-api.service.d.ts","sourceRoot":"","sources":["../../../src/services/api/association-types-api.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,KAAK,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,MAAM,MAAM,4BAA4B,GAAG;IACzC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,GAC/E,QAAQ,CAAC,IAAI,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,CAAC;AAE1C,MAAM,MAAM,mDAAmD,GAAG;IAChE,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,qBAAa,mBAAoB,SAAQ,OAAO,CAC9C,eAAe,EACf,IAAI,EACJ,4BAA4B,EAC5B,4BAA4B,EAC5B,OAAO,CAAC,eAAe,CAAC,CACzB;gBACa,MAAM,EAAE,eAAe;IAI7B,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAIvB,qBAAqB,CACzB,IAAI,EAAE,OAAO,CAAC,eAAe,CAAC,EAAE,GAC/B,OAAO,CAAC,mDAAmD,EAAE,CAAC;CAclE"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AssociationTypesApi = void 0;
4
+ const base_api_service_1 = require("./base-api.service");
5
+ class AssociationTypesApi extends base_api_service_1.BaseApi {
6
+ constructor(client) {
7
+ super(client, '/api/rest/v1/association-types');
8
+ }
9
+ async delete() {
10
+ throw new Error('Method not implemented. Deletion of association types is not supported by the API.');
11
+ }
12
+ async updateOrCreateSeveral(data) {
13
+ return this.client.httpClient
14
+ .patch(`${this.endpoint}`, data.map((item) => JSON.stringify(item)).join('\n'), {
15
+ headers: {
16
+ 'Content-Type': 'application/vnd.akeneo.collection+json',
17
+ },
18
+ })
19
+ .then((response) => {
20
+ return response.data
21
+ .trim()
22
+ .split('\n')
23
+ .map((line) => JSON.parse(line));
24
+ });
25
+ }
26
+ }
27
+ exports.AssociationTypesApi = AssociationTypesApi;
28
+ //# sourceMappingURL=association-types-api.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"association-types-api.service.js","sourceRoot":"","sources":["../../../src/services/api/association-types-api.service.ts"],"names":[],"mappings":";;;AAEA,yDAA6C;AAkB7C,MAAa,mBAAoB,SAAQ,0BAMxC;IACC,YAAY,MAAuB;QACjC,KAAK,CAAC,MAAM,EAAE,gCAAgC,CAAC,CAAC;IAClD,CAAC;IAED,KAAK,CAAC,MAAM;QACV,MAAM,IAAI,KAAK,CAAC,oFAAoF,CAAC,CAAC;IACxG,CAAC;IAED,KAAK,CAAC,qBAAqB,CACzB,IAAgC;QAEhC,OAAO,IAAI,CAAC,MAAM,CAAC,UAAU;aAC1B,KAAK,CAAC,GAAG,IAAI,CAAC,QAAQ,EAAE,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;YAC9E,OAAO,EAAE;gBACP,cAAc,EAAE,wCAAwC;aACzD;SACF,CAAC;aACD,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE;YACjB,OAAO,QAAQ,CAAC,IAAI;iBACjB,IAAI,EAAE;iBACN,KAAK,CAAC,IAAI,CAAC;iBACX,GAAG,CAAC,CAAC,IAAY,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;QAC7C,CAAC,CAAC,CAAC;IACP,CAAC;CACF;AA/BD,kDA+BC"}
@@ -0,0 +1,26 @@
1
+ import { AkeneoApiClient } from '../';
2
+ import { AttributeGroup } from '../../types';
3
+ import { BaseApi } from './base-api.service';
4
+ export type AttributeGroupsGetParams = {
5
+ with_table_select_options?: boolean;
6
+ };
7
+ export type AttributeGroupsSearchParams = {
8
+ search?: string;
9
+ page?: number;
10
+ limit?: number;
11
+ with_count?: boolean;
12
+ with_table_select_options?: boolean;
13
+ };
14
+ export type CreateAttributeGroupRequest = Partial<Omit<AttributeGroup, 'code'>> & Required<Pick<AttributeGroup, 'code'>>;
15
+ export type SeveralAttributeGroupsUpdateOrCreationResponseLine = {
16
+ line: number;
17
+ code: string;
18
+ status_code: number;
19
+ message: string;
20
+ };
21
+ export declare class AttributeGroupsApi extends BaseApi<AttributeGroup, AttributeGroupsGetParams, AttributeGroupsSearchParams, CreateAttributeGroupRequest, Partial<AttributeGroup>> {
22
+ constructor(client: AkeneoApiClient);
23
+ delete(): Promise<void>;
24
+ updateOrCreateSeveral(data: Partial<AttributeGroup>[]): Promise<SeveralAttributeGroupsUpdateOrCreationResponseLine[]>;
25
+ }
26
+ //# sourceMappingURL=attribute-groups-api.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attribute-groups-api.service.d.ts","sourceRoot":"","sources":["../../../src/services/api/attribute-groups-api.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,KAAK,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,MAAM,MAAM,wBAAwB,GAAG;IACrC,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC,GAC7E,QAAQ,CAAC,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC;AAEzC,MAAM,MAAM,kDAAkD,GAAG;IAC/D,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,qBAAa,kBAAmB,SAAQ,OAAO,CAC7C,cAAc,EACd,wBAAwB,EACxB,2BAA2B,EAC3B,2BAA2B,EAC3B,OAAO,CAAC,cAAc,CAAC,CACxB;gBACa,MAAM,EAAE,eAAe;IAI7B,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAIvB,qBAAqB,CACzB,IAAI,EAAE,OAAO,CAAC,cAAc,CAAC,EAAE,GAC9B,OAAO,CAAC,kDAAkD,EAAE,CAAC;CAcjE"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AttributeGroupsApi = void 0;
4
+ const base_api_service_1 = require("./base-api.service");
5
+ class AttributeGroupsApi extends base_api_service_1.BaseApi {
6
+ constructor(client) {
7
+ super(client, '/api/rest/v1/attribute-groups');
8
+ }
9
+ async delete() {
10
+ throw new Error('Method not implemented. Deletion of attribute groups is not supported by the API.');
11
+ }
12
+ async updateOrCreateSeveral(data) {
13
+ return this.client.httpClient
14
+ .patch(`${this.endpoint}`, data.map((item) => JSON.stringify(item)).join('\n'), {
15
+ headers: {
16
+ 'Content-Type': 'application/vnd.akeneo.collection+json',
17
+ },
18
+ })
19
+ .then((response) => {
20
+ return response.data
21
+ .trim()
22
+ .split('\n')
23
+ .map((line) => JSON.parse(line));
24
+ });
25
+ }
26
+ }
27
+ exports.AttributeGroupsApi = AttributeGroupsApi;
28
+ //# sourceMappingURL=attribute-groups-api.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attribute-groups-api.service.js","sourceRoot":"","sources":["../../../src/services/api/attribute-groups-api.service.ts"],"names":[],"mappings":";;;AAEA,yDAA6C;AAwB7C,MAAa,kBAAmB,SAAQ,0BAMvC;IACC,YAAY,MAAuB;QACjC,KAAK,CAAC,MAAM,EAAE,+BAA+B,CAAC,CAAC;IACjD,CAAC;IAED,KAAK,CAAC,MAAM;QACV,MAAM,IAAI,KAAK,CAAC,mFAAmF,CAAC,CAAC;IACvG,CAAC;IAED,KAAK,CAAC,qBAAqB,CACzB,IAA+B;QAE/B,OAAO,IAAI,CAAC,MAAM,CAAC,UAAU;aAC1B,KAAK,CAAC,GAAG,IAAI,CAAC,QAAQ,EAAE,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;YAC9E,OAAO,EAAE;gBACP,cAAc,EAAE,wCAAwC;aACzD;SACF,CAAC;aACD,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE;YACjB,OAAO,QAAQ,CAAC,IAAI;iBACjB,IAAI,EAAE;iBACN,KAAK,CAAC,IAAI,CAAC;iBACX,GAAG,CAAC,CAAC,IAAY,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;QAC7C,CAAC,CAAC,CAAC;IACP,CAAC;CACF;AA/BD,gDA+BC"}
@@ -0,0 +1,43 @@
1
+ import { AkeneoApiClient } from '../';
2
+ import { Attribute, AttributeOption, PaginatedResponse } from '../../types';
3
+ import { BaseApi } from './base-api.service';
4
+ export type AttributesGetParams = {
5
+ with_table_select_options?: boolean;
6
+ };
7
+ export type AttributesSearchParams = {
8
+ search?: string;
9
+ page?: number;
10
+ limit?: number;
11
+ with_count?: boolean;
12
+ with_table_select_options?: boolean;
13
+ };
14
+ export type AttributeOptionsSearchParams = {
15
+ page?: number;
16
+ limit?: number;
17
+ with_count?: boolean;
18
+ };
19
+ export type CreateAttributeRequest = Partial<Omit<Attribute, 'code' | 'type' | 'group'>> & Required<Pick<Attribute, 'code' | 'type' | 'group'>>;
20
+ export type CreateAttributeOptionRequest = Partial<Omit<AttributeOption, 'code'>> & Required<Pick<Attribute, 'code'>>;
21
+ export type SeveralAttributesUpdateOrCreationResponseLine = {
22
+ line: number;
23
+ code: string;
24
+ status_code: number;
25
+ message: string;
26
+ };
27
+ export type SeveralAttributeOptionsUpdateOrCreationResponseLine = {
28
+ line: number;
29
+ code: string;
30
+ status_code: number;
31
+ message: string;
32
+ };
33
+ export declare class AttributesApi extends BaseApi<Attribute, AttributesGetParams, AttributesSearchParams, CreateAttributeRequest, Partial<Attribute>> {
34
+ constructor(client: AkeneoApiClient);
35
+ delete(): Promise<void>;
36
+ updateOrCreateSeveral(data: Partial<Attribute>[]): Promise<SeveralAttributesUpdateOrCreationResponseLine[]>;
37
+ listAttributeOptions(attributeCode: string, params?: AttributeOptionsSearchParams): Promise<PaginatedResponse<AttributeOption>>;
38
+ getAttributeOption(attributeCode: string, optionCode: string): Promise<AttributeOption>;
39
+ createAttributeOption(attributeCode: string, data: CreateAttributeOptionRequest): Promise<AttributeOption>;
40
+ updateAttributeOption(attributeCode: string, optionCode: string, data: Partial<AttributeOption>): Promise<void>;
41
+ updateOrCreateSeveralAttributeOptions(attributeCode: string, data: Partial<AttributeOption>[]): Promise<SeveralAttributeOptionsUpdateOrCreationResponseLine[]>;
42
+ }
43
+ //# sourceMappingURL=attributes-api.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attributes-api.service.d.ts","sourceRoot":"","sources":["../../../src/services/api/attributes-api.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,KAAK,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,E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BAAmB,EACnB,sBAAsB,EACtB,sBAAsB,EACtB,OAAO,CAAC,SAAS,CAAC,CACnB;gBACa,MAAM,EAAE,eAAe;IAI7B,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAIvB,qBAAqB,CAAC,IAAI,EAAE,OAAO,CAAC,SAAS,CAAC,EAAE,GAAG,OAAO,CAAC,6CAA6C,EAAE,CAAC;IAe3G,oBAAoB,CACxB,aAAa,EAAE,MAAM,EACrB,MAAM,CAAC,EAAE,4BAA4B,GACpC,OAAO,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAAC;IAMxC,kBAAkB,CAAC,aAAa,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IAMvF,qBAAqB,CAAC,aAAa,EAAE,MAAM,EAAE,IAAI,EAAE,4BAA4B,GAAG,OAAO,CAAC,eAAe,CAAC;IAM1G,qBAAqB,CACzB,aAAa,EAAE,MAAM,EACrB,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,OAAO,CAAC,eAAe,CAAC,GAC7B,OAAO,CAAC,IAAI,CAAC;IAIV,qCAAqC,CACzC,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,OAAO,CAAC,eAAe,CAAC,EAAE,GAC/B,OAAO,CAAC,mDAAmD,EAAE,CAAC;CAclE"}
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AttributesApi = void 0;
4
+ const base_api_service_1 = require("./base-api.service");
5
+ class AttributesApi extends base_api_service_1.BaseApi {
6
+ constructor(client) {
7
+ super(client, '/api/rest/v1/attributes');
8
+ }
9
+ async delete() {
10
+ throw new Error('Method not implemented. Deletion of attributes is not supported by the API.');
11
+ }
12
+ async updateOrCreateSeveral(data) {
13
+ return this.client.httpClient
14
+ .patch(`${this.endpoint}`, data.map((item) => JSON.stringify(item)).join('\n'), {
15
+ headers: {
16
+ 'Content-Type': 'application/vnd.akeneo.collection+json',
17
+ },
18
+ })
19
+ .then((response) => {
20
+ return response.data
21
+ .trim()
22
+ .split('\n')
23
+ .map((line) => JSON.parse(line));
24
+ });
25
+ }
26
+ async listAttributeOptions(attributeCode, params) {
27
+ return this.client.httpClient
28
+ .get(`${this.endpoint}/${attributeCode}/options`, { params })
29
+ .then((response) => response.data);
30
+ }
31
+ async getAttributeOption(attributeCode, optionCode) {
32
+ return this.client.httpClient
33
+ .get(`${this.endpoint}/${attributeCode}/options/${optionCode}`)
34
+ .then((response) => response.data);
35
+ }
36
+ async createAttributeOption(attributeCode, data) {
37
+ return this.client.httpClient
38
+ .post(`${this.endpoint}/${attributeCode}/options`, data)
39
+ .then((response) => response.data);
40
+ }
41
+ async updateAttributeOption(attributeCode, optionCode, data) {
42
+ await this.client.httpClient.patch(`${this.endpoint}/${attributeCode}/options/${optionCode}`, data);
43
+ }
44
+ async updateOrCreateSeveralAttributeOptions(attributeCode, data) {
45
+ return this.client.httpClient
46
+ .patch(`${this.endpoint}/${attributeCode}/options`, data.map((item) => JSON.stringify(item)).join('\n'), {
47
+ headers: {
48
+ 'Content-Type': 'application/vnd.akeneo.collection+json',
49
+ },
50
+ })
51
+ .then((response) => {
52
+ return response.data
53
+ .trim()
54
+ .split('\n')
55
+ .map((line) => JSON.parse(line));
56
+ });
57
+ }
58
+ }
59
+ exports.AttributesApi = AttributesApi;
60
+ //# sourceMappingURL=attributes-api.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attributes-api.service.js","sourceRoot":"","sources":["../../../src/services/api/attributes-api.service.ts"],"names":[],"mappings":";;;AAEA,yDAA6C;AAuC7C,MAAa,aAAc,SAAQ,0BAMlC;IACC,YAAY,MAAuB;QACjC,KAAK,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAC;IAC3C,CAAC;IAED,KAAK,CAAC,MAAM;QACV,MAAM,IAAI,KAAK,CAAC,6EAA6E,CAAC,CAAC;IACjG,CAAC;IAED,KAAK,CAAC,qBAAqB,CAAC,IAA0B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AQ,IAAI,aAAa,UAAU,EAAE,IAAI,CAAC;aACvD,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;IAED,KAAK,CAAC,qBAAqB,CACzB,aAAqB,EACrB,UAAkB,EAClB,IAA8B;QAE9B,MAAM,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,QAAQ,IAAI,aAAa,YAAY,UAAU,EAAE,EAAE,IAAI,CAAC,CAAC;IACtG,CAAC;IAED,KAAK,CAAC,qCAAqC,CACzC,aAAqB,EACrB,IAAgC;QAEhC,OAAO,IAAI,CAAC,MAAM,CAAC,UAAU;aAC1B,KAAK,CAAC,GAAG,IAAI,CAAC,QAAQ,IAAI,aAAa,UAAU,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;YACvG,OAAO,EAAE;gBACP,cAAc,EAAE,wCAAwC;aACzD;SACF,CAAC;aACD,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE;YACjB,OAAO,QAAQ,CAAC,IAAI;iBACjB,IAAI,EAAE;iBACN,KAAK,CAAC,IAAI,CAAC;iBACX,GAAG,CAAC,CAAC,IAAY,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;QAC7C,CAAC,CAAC,CAAC;IACP,CAAC;CACF;AA5ED,sCA4EC"}
@@ -0,0 +1,13 @@
1
+ import { AkeneoApiClient } from '../';
2
+ import { PaginatedResponse } from '../../types';
3
+ export declare abstract class BaseApi<ApiEntityType, GetParamsType, SearchParamsType, CreateRequestType, UpdateRequestType> {
4
+ protected readonly client: AkeneoApiClient;
5
+ protected readonly endpoint: string;
6
+ protected constructor(client: AkeneoApiClient, endpoint: string);
7
+ get(identifier: string, params?: GetParamsType): Promise<ApiEntityType>;
8
+ list(params?: SearchParamsType): Promise<PaginatedResponse<ApiEntityType>>;
9
+ create(data: CreateRequestType): Promise<void>;
10
+ update(identifier: string, data: UpdateRequestType): Promise<void>;
11
+ delete(identifier: string): Promise<void>;
12
+ }
13
+ //# sourceMappingURL=base-api.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base-api.service.d.ts","sourceRoot":"","sources":["../../../src/services/api/base-api.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,KAAK,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,8BAAsB,OAAO,CAAC,aAAa,EAAE,aAAa,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,iBAAiB;IAE9G,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,eAAe;IAC1C,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM;IAFrC,SAAS,aACY,MAAM,EAAE,eAAe,EACvB,QAAQ,EAAE,MAAM;IAG/B,GAAG,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;IAIvE,IAAI,CAAC,MAAM,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,iBAAiB,CAAC,aAAa,CAAC,CAAC;IAI1E,MAAM,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IAI9C,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IAIlE,MAAM,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGhD"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BaseApi = void 0;
4
+ class BaseApi {
5
+ constructor(client, endpoint) {
6
+ this.client = client;
7
+ this.endpoint = endpoint;
8
+ }
9
+ async get(identifier, params) {
10
+ return this.client.httpClient.get(`${this.endpoint}/${identifier}`, { params }).then((response) => response.data);
11
+ }
12
+ async list(params) {
13
+ return this.client.httpClient.get(this.endpoint, { params }).then((response) => response.data);
14
+ }
15
+ async create(data) {
16
+ await this.client.httpClient.post(this.endpoint, data);
17
+ }
18
+ async update(identifier, data) {
19
+ await this.client.httpClient.patch(`${this.endpoint}/${identifier}`, data);
20
+ }
21
+ async delete(identifier) {
22
+ await this.client.httpClient.delete(`${this.endpoint}/${identifier}`);
23
+ }
24
+ }
25
+ exports.BaseApi = BaseApi;
26
+ //# sourceMappingURL=base-api.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base-api.service.js","sourceRoot":"","sources":["../../../src/services/api/base-api.service.ts"],"names":[],"mappings":";;;AAGA,MAAsB,OAAO;IAC3B,YACqB,MAAuB,EACvB,QAAgB;QADhB,WAAM,GAAN,MAAM,CAAiB;QACvB,aAAQ,GAAR,QAAQ,CAAQ;IAClC,CAAC;IAEJ,KAAK,CAAC,GAAG,CAAC,UAAkB,EAAE,MAAsB;QAClD,OAAO,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,QAAQ,IAAI,UAAU,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACpH,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,MAAyB;QAClC,OAAO,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACjG,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,IAAuB;QAClC,MAAM,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;IACzD,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,UAAkB,EAAE,IAAuB;QACtD,MAAM,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,QAAQ,IAAI,UAAU,EAAE,EAAE,IAAI,CAAC,CAAC;IAC7E,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,UAAkB;QAC7B,MAAM,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,QAAQ,IAAI,UAAU,EAAE,CAAC,CAAC;IACxE,CAAC;CACF;AAzBD,0BAyBC"}
@@ -0,0 +1,28 @@
1
+ import { AkeneoApiClient } from '../../akeneo-api-client';
2
+ import { MappedProduct, MappedProductModel, MappedProductModelVariant, PaginatedResponse, ProductUuid } from '../../../types';
3
+ export type ProductUuidsSearchParams = {
4
+ search_after?: string;
5
+ limit?: number;
6
+ updated_before?: string;
7
+ updated_after?: string;
8
+ with_count?: boolean;
9
+ };
10
+ export type ProductsSearchParams = {
11
+ search_after?: string;
12
+ limit?: number;
13
+ updated_before?: string;
14
+ updated_after?: string;
15
+ };
16
+ export declare class CatalogProductsApi {
17
+ private client;
18
+ private endpoint;
19
+ constructor(client: AkeneoApiClient);
20
+ listProductUuids(catalogId: string, params?: ProductUuidsSearchParams): Promise<PaginatedResponse<string>>;
21
+ listProducts(catalogId: string, params?: ProductsSearchParams): Promise<PaginatedResponse<ProductUuid>>;
22
+ getProduct(catalogId: string, productUuid: string): Promise<ProductUuid>;
23
+ listMappedProducts(catalogId: string, params?: ProductsSearchParams): Promise<PaginatedResponse<MappedProduct>>;
24
+ listMappedModels(catalogId: string, params?: ProductsSearchParams): Promise<PaginatedResponse<MappedProductModel>>;
25
+ listMappedModelVariants(catalogId: string, modelCode: string, params?: ProductsSearchParams): Promise<PaginatedResponse<MappedProductModelVariant>>;
26
+ private completeEndpoint;
27
+ }
28
+ //# sourceMappingURL=catalog-products-api.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog-products-api.service.d.ts","sourceRoot":"","sources":["../../../../src/services/api/catalog-for-apps/catalog-products-api.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,WAAW,EACZ,MAAM,gBAAgB,CAAC;AAExB,MAAM,MAAM,wBAAwB,GAAG;IACrC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,qBAAa,kBAAkB;IAGjB,OAAO,CAAC,MAAM;IAF1B,OAAO,CAAC,QAAQ,CAAS;gBAEL,MAAM,EAAE,eAAe;IAIrC,gBAAgB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,wBAAwB,GAAG,OAAO,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAM1G,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC;IAMvG,UAAU,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAMxE,kBAAkB,CACtB,SAAS,EAAE,MAAM,EACjB,MAAM,CAAC,EAAE,oBAAoB,GAC5B,OAAO,CAAC,iBAAiB,CAAC,aAAa,CAAC,CAAC;IAMtC,gBAAgB,CACpB,SAAS,EAAE,MAAM,EACjB,MAAM,CAAC,EAAE,oBAAoB,GAC5B,OAAO,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,CAAC;IAM3C,uBAAuB,CAC3B,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,MAAM,CAAC,EAAE,oBAAoB,GAC5B,OAAO,CAAC,iBAAiB,CAAC,yBAAyB,CAAC,CAAC;IAMxD,OAAO,CAAC,gBAAgB;CAGzB"}
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CatalogProductsApi = void 0;
4
+ class CatalogProductsApi {
5
+ constructor(client) {
6
+ this.client = client;
7
+ this.endpoint = '/api/rest/v1/catalogs/{id}';
8
+ }
9
+ async listProductUuids(catalogId, params) {
10
+ return this.client.httpClient
11
+ .get(`${this.completeEndpoint(catalogId)}/products/uuids`, { params })
12
+ .then((response) => response.data);
13
+ }
14
+ async listProducts(catalogId, params) {
15
+ return this.client.httpClient
16
+ .get(`${this.completeEndpoint(catalogId)}/products`, { params })
17
+ .then((response) => response.data);
18
+ }
19
+ async getProduct(catalogId, productUuid) {
20
+ return this.client.httpClient
21
+ .get(`${this.completeEndpoint(catalogId)}/products/${productUuid}`)
22
+ .then((response) => response.data);
23
+ }
24
+ async listMappedProducts(catalogId, params) {
25
+ return this.client.httpClient
26
+ .get(`${this.completeEndpoint(catalogId)}/mapped-products`, { params })
27
+ .then((response) => response.data);
28
+ }
29
+ async listMappedModels(catalogId, params) {
30
+ return this.client.httpClient
31
+ .get(`${this.completeEndpoint(catalogId)}/mapped-models`, { params })
32
+ .then((response) => response.data);
33
+ }
34
+ async listMappedModelVariants(catalogId, modelCode, params) {
35
+ return this.client.httpClient
36
+ .get(`${this.completeEndpoint(catalogId)}/mapped-models/${modelCode}/variants`, { params })
37
+ .then((response) => response.data);
38
+ }
39
+ completeEndpoint(catalogId) {
40
+ return this.endpoint.replace('{id}', catalogId);
41
+ }
42
+ }
43
+ exports.CatalogProductsApi = CatalogProductsApi;
44
+ //# sourceMappingURL=catalog-products-api.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog-products-api.service.js","sourceRoot":"","sources":["../../../../src/services/api/catalog-for-apps/catalog-products-api.service.ts"],"names":[],"mappings":";;;AAwBA,MAAa,kBAAkB;IAG7B,YAAoB,MAAuB;QAAvB,WAAM,GAAN,MAAM,CAAiB;QACzC,IAAI,CAAC,QAAQ,GAAG,4BAA4B,CAAC;IAC/C,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAC,SAAiB,EAAE,MAAiC;QACzE,OAAO,IAAI,CAAC,MAAM,CAAC,UAAU;aAC1B,GAAG,CAAC,GAAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC,iBAAiB,EAAE,EAAE,MAAM,EAAE,CAAC;aACrE,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,SAAiB,EAAE,MAA6B;QACjE,OAAO,IAAI,CAAC,MAAM,CAAC,UAAU;aAC1B,GAAG,CAAC,GAAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC,WAAW,EAAE,EAAE,MAAM,EAAE,CAAC;aAC/D,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,SAAiB,EAAE,WAAmB;QACrD,OAAO,IAAI,CAAC,MAAM,CAAC,UAAU;aAC1B,GAAG,CAAC,GAAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC,aAAa,WAAW,EAAE,CAAC;aAClE,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;IAED,KAAK,CAAC,kBAAkB,CACtB,SAAiB,EACjB,MAA6B;QAE7B,OAAO,IAAI,CAAC,MAAM,CAAC,UAAU;aAC1B,GAAG,CAAC,GAAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC,kBAAkB,EAAE,EAAE,MAAM,EAAE,CAAC;aACtE,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;IAED,KAAK,CAAC,gBAAgB,CACpB,SAAiB,EACjB,MAA6B;QAE7B,OAAO,IAAI,CAAC,MAAM,CAAC,UAAU;aAC1B,GAAG,CAAC,GAAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC,gBAAgB,EAAE,EAAE,MAAM,EAAE,CAAC;aACpE,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;IAED,KAAK,CAAC,uBAAuB,CAC3B,SAAiB,EACjB,SAAiB,EACjB,MAA6B;QAE7B,OAAO,IAAI,CAAC,MAAM,CAAC,UAAU;aAC1B,GAAG,CAAC,GAAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC,kBAAkB,SAAS,WAAW,EAAE,EAAE,MAAM,EAAE,CAAC;aAC1F,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;IAEO,gBAAgB,CAAC,SAAiB;QACxC,OAAO,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IAClD,CAAC;CACF;AAxDD,gDAwDC"}
@@ -0,0 +1,13 @@
1
+ import { BaseApi } from '../base-api.service';
2
+ import { Catalog } from '../../../types';
3
+ import { AkeneoApiClient } from '../../akeneo-api-client';
4
+ export type CatalogSearchParams = {
5
+ limit?: number;
6
+ page?: number;
7
+ };
8
+ export type CreateCatalogRequest = Partial<Omit<Catalog, 'name'>> & Required<Pick<Catalog, 'name'>>;
9
+ export declare class CatalogApi extends BaseApi<Catalog, null, CatalogSearchParams, CreateCatalogRequest, Partial<Catalog>> {
10
+ constructor(client: AkeneoApiClient);
11
+ duplicate(catalogId: string): Promise<Catalog>;
12
+ }
13
+ //# sourceMappingURL=catalogs-api.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalogs-api.service.d.ts","sourceRoot":"","sources":["../../../../src/services/api/catalog-for-apps/catalogs-api.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;AAEpG,qBAAa,UAAW,SAAQ,OAAO,CAAC,OAAO,EAAE,IAAI,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;gBACrG,MAAM,EAAE,eAAe;IAI7B,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAGrD"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CatalogApi = void 0;
4
+ const base_api_service_1 = require("../base-api.service");
5
+ class CatalogApi extends base_api_service_1.BaseApi {
6
+ constructor(client) {
7
+ super(client, '/api/rest/v1/catalogs');
8
+ }
9
+ async duplicate(catalogId) {
10
+ return this.client.httpClient.post(`${this.endpoint}/${catalogId}/duplicate`).then((response) => response.data);
11
+ }
12
+ }
13
+ exports.CatalogApi = CatalogApi;
14
+ //# sourceMappingURL=catalogs-api.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalogs-api.service.js","sourceRoot":"","sources":["../../../../src/services/api/catalog-for-apps/catalogs-api.service.ts"],"names":[],"mappings":";;;AAAA,0DAA8C;AAW9C,MAAa,UAAW,SAAQ,0BAAmF;IACjH,YAAY,MAAuB;QACjC,KAAK,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAAC;IACzC,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,SAAiB;QAC/B,OAAO,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,QAAQ,IAAI,SAAS,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAClH,CAAC;CACF;AARD,gCAQC"}
@@ -0,0 +1,4 @@
1
+ export * from './catalogs-api.service';
2
+ export * from './catalog-products-api.service';
3
+ export * from './mapping-schemas-api.service';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/api/catalog-for-apps/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./catalogs-api.service"), exports);
18
+ __exportStar(require("./catalog-products-api.service"), exports);
19
+ __exportStar(require("./mapping-schemas-api.service"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/api/catalog-for-apps/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,iEAA+C;AAC/C,gEAA8C"}
@@ -0,0 +1,13 @@
1
+ import { AkeneoApiClient } from '../../akeneo-api-client';
2
+ import { MappingSchemaForProducts } from '../../../types';
3
+ export type CreateMappingSchemaForProductsRequest = Partial<Omit<MappingSchemaForProducts, 'id' | '$schema' | 'properties'>> & Required<Pick<MappingSchemaForProducts, '$schema' | 'properties'>>;
4
+ export declare class MappingSchemasApi {
5
+ private client;
6
+ private endpoint;
7
+ constructor(client: AkeneoApiClient);
8
+ getForProducts(catalogId: string): Promise<MappingSchemaForProducts>;
9
+ updateOrCreateForProducts(catalogId: string, mappingSchema: CreateMappingSchemaForProductsRequest): Promise<void>;
10
+ deleteForProducts(catalogId: string): Promise<void>;
11
+ private completeEndpoint;
12
+ }
13
+ //# sourceMappingURL=mapping-schemas-api.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mapping-schemas-api.service.d.ts","sourceRoot":"","sources":["../../../../src/services/api/catalog-for-apps/mapping-schemas-api.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE1D,MAAM,MAAM,qCAAqC,GAAG,OAAO,CACzD,IAAI,CAAC,wBAAwB,EAAE,IAAI,GAAG,SAAS,GAAG,YAAY,CAAC,CAChE,GACC,QAAQ,CAAC,IAAI,CAAC,wBAAwB,EAAE,SAAS,GAAG,YAAY,CAAC,CAAC,CAAC;AAErE,qBAAa,iBAAiB;IAGhB,OAAO,CAAC,MAAM;IAF1B,OAAO,CAAC,QAAQ,CAAS;gBAEL,MAAM,EAAE,eAAe;IAIrC,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAIpE,yBAAyB,CAC7B,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,qCAAqC,GACnD,OAAO,CAAC,IAAI,CAAC;IAIV,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIzD,OAAO,CAAC,gBAAgB;CAGzB"}