@emporix/api-calls 1.6.0-rc.0 → 1.6.0

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 (907) hide show
  1. package/README.md +222 -39
  2. package/dist/adapters/primereact.d.ts +38 -0
  3. package/dist/adapters/primereact.d.ts.map +1 -0
  4. package/dist/adapters/primereact.js +82 -0
  5. package/dist/adapters/primereact.js.map +1 -0
  6. package/dist/calls/ai.d.ts +2 -1
  7. package/dist/calls/ai.d.ts.map +1 -1
  8. package/dist/calls/ai.js +2 -1
  9. package/dist/calls/ai.js.map +1 -1
  10. package/dist/calls/authAdapter.d.ts +3 -1
  11. package/dist/calls/authAdapter.d.ts.map +1 -1
  12. package/dist/calls/authAdapter.js +3 -1
  13. package/dist/calls/authAdapter.js.map +1 -1
  14. package/dist/calls/automation.d.ts +2 -0
  15. package/dist/calls/automation.d.ts.map +1 -1
  16. package/dist/calls/automation.js +2 -1
  17. package/dist/calls/automation.js.map +1 -1
  18. package/dist/calls/availability.d.ts +8 -2
  19. package/dist/calls/availability.d.ts.map +1 -1
  20. package/dist/calls/availability.js +5 -1
  21. package/dist/calls/availability.js.map +1 -1
  22. package/dist/calls/brands.d.ts +10 -4
  23. package/dist/calls/brands.d.ts.map +1 -1
  24. package/dist/calls/brands.js +9 -2
  25. package/dist/calls/brands.js.map +1 -1
  26. package/dist/calls/carts.d.ts +8 -2
  27. package/dist/calls/carts.d.ts.map +1 -1
  28. package/dist/calls/carts.js +9 -3
  29. package/dist/calls/carts.js.map +1 -1
  30. package/dist/calls/catalogs.d.ts +7 -3
  31. package/dist/calls/catalogs.d.ts.map +1 -1
  32. package/dist/calls/catalogs.js +7 -2
  33. package/dist/calls/catalogs.js.map +1 -1
  34. package/dist/calls/categories.d.ts +20 -4
  35. package/dist/calls/categories.d.ts.map +1 -1
  36. package/dist/calls/categories.js +20 -4
  37. package/dist/calls/categories.js.map +1 -1
  38. package/dist/calls/categoryProductRow.d.ts +5 -2
  39. package/dist/calls/categoryProductRow.d.ts.map +1 -1
  40. package/dist/calls/categoryProductRow.js +3 -1
  41. package/dist/calls/categoryProductRow.js.map +1 -1
  42. package/dist/calls/changelog.d.ts +2 -1
  43. package/dist/calls/changelog.d.ts.map +1 -1
  44. package/dist/calls/changelog.js +3 -2
  45. package/dist/calls/changelog.js.map +1 -1
  46. package/dist/calls/configuration.d.ts +14 -4
  47. package/dist/calls/configuration.d.ts.map +1 -1
  48. package/dist/calls/configuration.js +11 -2
  49. package/dist/calls/configuration.js.map +1 -1
  50. package/dist/calls/countries.d.ts +8 -5
  51. package/dist/calls/countries.d.ts.map +1 -1
  52. package/dist/calls/countries.js +6 -2
  53. package/dist/calls/countries.js.map +1 -1
  54. package/dist/calls/coupons.d.ts +13 -4
  55. package/dist/calls/coupons.d.ts.map +1 -1
  56. package/dist/calls/coupons.js +9 -2
  57. package/dist/calls/coupons.js.map +1 -1
  58. package/dist/calls/currencies.d.ts +15 -8
  59. package/dist/calls/currencies.d.ts.map +1 -1
  60. package/dist/calls/currencies.js +13 -2
  61. package/dist/calls/currencies.js.map +1 -1
  62. package/dist/calls/customEntities.d.ts +10 -2
  63. package/dist/calls/customEntities.d.ts.map +1 -1
  64. package/dist/calls/customEntities.js +9 -2
  65. package/dist/calls/customEntities.js.map +1 -1
  66. package/dist/calls/customInstances.d.ts +11 -2
  67. package/dist/calls/customInstances.d.ts.map +1 -1
  68. package/dist/calls/customInstances.js +9 -2
  69. package/dist/calls/customInstances.js.map +1 -1
  70. package/dist/calls/customerManagement.d.ts +26 -6
  71. package/dist/calls/customerManagement.d.ts.map +1 -1
  72. package/dist/calls/customerManagement.js +22 -2
  73. package/dist/calls/customerManagement.js.map +1 -1
  74. package/dist/calls/customers.d.ts +14 -3
  75. package/dist/calls/customers.d.ts.map +1 -1
  76. package/dist/calls/customers.js +14 -2
  77. package/dist/calls/customers.js.map +1 -1
  78. package/dist/calls/delivery.d.ts +24 -10
  79. package/dist/calls/delivery.d.ts.map +1 -1
  80. package/dist/calls/delivery.js +15 -1
  81. package/dist/calls/delivery.js.map +1 -1
  82. package/dist/calls/featureToggles.d.ts +8 -2
  83. package/dist/calls/featureToggles.d.ts.map +1 -1
  84. package/dist/calls/featureToggles.js +8 -2
  85. package/dist/calls/featureToggles.js.map +1 -1
  86. package/dist/calls/globalConfig.d.ts +18 -3
  87. package/dist/calls/globalConfig.d.ts.map +1 -1
  88. package/dist/calls/globalConfig.js +9 -7
  89. package/dist/calls/globalConfig.js.map +1 -1
  90. package/dist/calls/iam.d.ts +30 -5
  91. package/dist/calls/iam.d.ts.map +1 -1
  92. package/dist/calls/iam.js +38 -8
  93. package/dist/calls/iam.js.map +1 -1
  94. package/dist/calls/invoice.d.ts +2 -0
  95. package/dist/calls/invoice.d.ts.map +1 -1
  96. package/dist/calls/invoice.js +3 -1
  97. package/dist/calls/invoice.js.map +1 -1
  98. package/dist/calls/labels.d.ts +10 -4
  99. package/dist/calls/labels.d.ts.map +1 -1
  100. package/dist/calls/labels.js +9 -2
  101. package/dist/calls/labels.js.map +1 -1
  102. package/dist/calls/mediaAssets.d.ts +7 -1
  103. package/dist/calls/mediaAssets.d.ts.map +1 -1
  104. package/dist/calls/mediaAssets.js +8 -2
  105. package/dist/calls/mediaAssets.js.map +1 -1
  106. package/dist/calls/mixins.d.ts +1 -0
  107. package/dist/calls/mixins.d.ts.map +1 -1
  108. package/dist/calls/mixins.js +1 -0
  109. package/dist/calls/mixins.js.map +1 -1
  110. package/dist/calls/orders.d.ts +20 -7
  111. package/dist/calls/orders.d.ts.map +1 -1
  112. package/dist/calls/orders.js +19 -4
  113. package/dist/calls/orders.js.map +1 -1
  114. package/dist/calls/paymentGateway.d.ts +4 -1
  115. package/dist/calls/paymentGateway.d.ts.map +1 -1
  116. package/dist/calls/paymentGateway.js +4 -1
  117. package/dist/calls/paymentGateway.js.map +1 -1
  118. package/dist/calls/picklists.d.ts +6 -2
  119. package/dist/calls/picklists.d.ts.map +1 -1
  120. package/dist/calls/picklists.js +6 -2
  121. package/dist/calls/picklists.js.map +1 -1
  122. package/dist/calls/priceLists.d.ts +12 -2
  123. package/dist/calls/priceLists.d.ts.map +1 -1
  124. package/dist/calls/priceLists.js +12 -2
  125. package/dist/calls/priceLists.js.map +1 -1
  126. package/dist/calls/priceModels.d.ts +7 -6
  127. package/dist/calls/priceModels.d.ts.map +1 -1
  128. package/dist/calls/priceModels.js +7 -2
  129. package/dist/calls/priceModels.js.map +1 -1
  130. package/dist/calls/prices.d.ts +25 -4
  131. package/dist/calls/prices.d.ts.map +1 -1
  132. package/dist/calls/prices.js +24 -4
  133. package/dist/calls/prices.js.map +1 -1
  134. package/dist/calls/prices_v2.d.ts +13 -7
  135. package/dist/calls/prices_v2.d.ts.map +1 -1
  136. package/dist/calls/prices_v2.js +13 -3
  137. package/dist/calls/prices_v2.js.map +1 -1
  138. package/dist/calls/products.d.ts +28 -4
  139. package/dist/calls/products.d.ts.map +1 -1
  140. package/dist/calls/products.js +21 -5
  141. package/dist/calls/products.js.map +1 -1
  142. package/dist/calls/productsMedia.d.ts +8 -2
  143. package/dist/calls/productsMedia.d.ts.map +1 -1
  144. package/dist/calls/productsMedia.js +8 -2
  145. package/dist/calls/productsMedia.js.map +1 -1
  146. package/dist/calls/quotes.d.ts +14 -2
  147. package/dist/calls/quotes.d.ts.map +1 -1
  148. package/dist/calls/quotes.js +14 -2
  149. package/dist/calls/quotes.js.map +1 -1
  150. package/dist/calls/returns.d.ts +8 -3
  151. package/dist/calls/returns.d.ts.map +1 -1
  152. package/dist/calls/returns.js +8 -2
  153. package/dist/calls/returns.js.map +1 -1
  154. package/dist/calls/schema.d.ts +10 -1
  155. package/dist/calls/schema.d.ts.map +1 -1
  156. package/dist/calls/schema.js +10 -1
  157. package/dist/calls/schema.js.map +1 -1
  158. package/dist/calls/segments.d.ts +24 -4
  159. package/dist/calls/segments.d.ts.map +1 -1
  160. package/dist/calls/segments.js +22 -2
  161. package/dist/calls/segments.js.map +1 -1
  162. package/dist/calls/sepa.d.ts +4 -1
  163. package/dist/calls/sepa.d.ts.map +1 -1
  164. package/dist/calls/sepa.js +4 -1
  165. package/dist/calls/sepa.js.map +1 -1
  166. package/dist/calls/shipping.d.ts +14 -2
  167. package/dist/calls/shipping.d.ts.map +1 -1
  168. package/dist/calls/shipping.js +14 -2
  169. package/dist/calls/shipping.js.map +1 -1
  170. package/dist/calls/sites.d.ts +8 -1
  171. package/dist/calls/sites.d.ts.map +1 -1
  172. package/dist/calls/sites.js +8 -1
  173. package/dist/calls/sites.js.map +1 -1
  174. package/dist/calls/statistics.d.ts +11 -6
  175. package/dist/calls/statistics.d.ts.map +1 -1
  176. package/dist/calls/statistics.js +7 -3
  177. package/dist/calls/statistics.js.map +1 -1
  178. package/dist/calls/suppliers.d.ts +11 -4
  179. package/dist/calls/suppliers.d.ts.map +1 -1
  180. package/dist/calls/suppliers.js +11 -4
  181. package/dist/calls/suppliers.js.map +1 -1
  182. package/dist/calls/taxes.d.ts +11 -6
  183. package/dist/calls/taxes.d.ts.map +1 -1
  184. package/dist/calls/taxes.js +10 -2
  185. package/dist/calls/taxes.js.map +1 -1
  186. package/dist/calls/units.d.ts +9 -3
  187. package/dist/calls/units.d.ts.map +1 -1
  188. package/dist/calls/units.js +8 -1
  189. package/dist/calls/units.js.map +1 -1
  190. package/dist/calls/vendors.d.ts +20 -7
  191. package/dist/calls/vendors.d.ts.map +1 -1
  192. package/dist/calls/vendors.js +17 -4
  193. package/dist/calls/vendors.js.map +1 -1
  194. package/dist/calls/webhooks.d.ts +15 -13
  195. package/dist/calls/webhooks.d.ts.map +1 -1
  196. package/dist/calls/webhooks.js +15 -62
  197. package/dist/calls/webhooks.js.map +1 -1
  198. package/dist/client/adapter.d.ts +20 -0
  199. package/dist/client/adapter.d.ts.map +1 -0
  200. package/dist/client/adapter.js +122 -0
  201. package/dist/client/adapter.js.map +1 -0
  202. package/dist/client/apiInstance.d.ts +5 -1
  203. package/dist/client/apiInstance.d.ts.map +1 -1
  204. package/dist/client/apiInstance.js +12 -1
  205. package/dist/client/apiInstance.js.map +1 -1
  206. package/dist/client/createApiClient.d.ts +24 -1
  207. package/dist/client/createApiClient.d.ts.map +1 -1
  208. package/dist/client/createApiClient.js +39 -9
  209. package/dist/client/createApiClient.js.map +1 -1
  210. package/dist/client/credentials.d.ts +43 -0
  211. package/dist/client/credentials.d.ts.map +1 -0
  212. package/dist/client/credentials.js +45 -0
  213. package/dist/client/credentials.js.map +1 -0
  214. package/dist/client/retry.d.ts +8 -1
  215. package/dist/client/retry.d.ts.map +1 -1
  216. package/dist/client/retry.js +9 -1
  217. package/dist/client/retry.js.map +1 -1
  218. package/dist/core/errors.d.ts +38 -0
  219. package/dist/core/errors.d.ts.map +1 -0
  220. package/dist/core/errors.js +94 -0
  221. package/dist/core/errors.js.map +1 -0
  222. package/dist/core/pagination.d.ts +37 -0
  223. package/dist/core/pagination.d.ts.map +1 -0
  224. package/dist/core/pagination.js +87 -0
  225. package/dist/core/pagination.js.map +1 -0
  226. package/dist/core/query.d.ts +28 -0
  227. package/dist/core/query.d.ts.map +1 -0
  228. package/dist/core/query.js +63 -0
  229. package/dist/core/query.js.map +1 -0
  230. package/dist/core/request.d.ts +12 -0
  231. package/dist/core/request.d.ts.map +1 -0
  232. package/dist/core/request.js +38 -0
  233. package/dist/core/request.js.map +1 -0
  234. package/dist/core/types.d.ts +16 -0
  235. package/dist/core/types.d.ts.map +1 -0
  236. package/dist/core/types.js +2 -0
  237. package/dist/core/types.js.map +1 -0
  238. package/dist/index.d.ts +146 -83
  239. package/dist/index.d.ts.map +1 -1
  240. package/dist/index.js +76 -58
  241. package/dist/index.js.map +1 -1
  242. package/dist/models/Assets.d.ts +4 -1
  243. package/dist/models/Assets.d.ts.map +1 -1
  244. package/dist/models/Assets.js +3 -0
  245. package/dist/models/Assets.js.map +1 -1
  246. package/dist/models/Auth.d.ts +1 -1
  247. package/dist/models/Auth.d.ts.map +1 -1
  248. package/dist/models/Cart.d.ts +20 -66
  249. package/dist/models/Cart.d.ts.map +1 -1
  250. package/dist/models/Cart.js +4 -16
  251. package/dist/models/Cart.js.map +1 -1
  252. package/dist/models/Catalog.d.ts +1 -1
  253. package/dist/models/Catalog.d.ts.map +1 -1
  254. package/dist/models/Category.d.ts +44 -6
  255. package/dist/models/Category.d.ts.map +1 -1
  256. package/dist/models/Category.js +4 -0
  257. package/dist/models/Category.js.map +1 -1
  258. package/dist/models/Changelog.d.ts +11 -36
  259. package/dist/models/Changelog.d.ts.map +1 -1
  260. package/dist/models/Changelog.js +3 -5
  261. package/dist/models/Changelog.js.map +1 -1
  262. package/dist/models/Configuration.d.ts +5 -5
  263. package/dist/models/Configuration.d.ts.map +1 -1
  264. package/dist/models/Country.d.ts +2 -2
  265. package/dist/models/Country.d.ts.map +1 -1
  266. package/dist/models/Currency.d.ts +2 -2
  267. package/dist/models/Currency.d.ts.map +1 -1
  268. package/dist/models/CustomEntity.d.ts +1 -1
  269. package/dist/models/CustomEntity.d.ts.map +1 -1
  270. package/dist/models/CustomInstance.d.ts +6 -6
  271. package/dist/models/CustomInstance.d.ts.map +1 -1
  272. package/dist/models/Customer.d.ts +5 -5
  273. package/dist/models/Customer.d.ts.map +1 -1
  274. package/dist/models/Customer.js +1 -0
  275. package/dist/models/Customer.js.map +1 -1
  276. package/dist/models/Delivery.d.ts +10 -25
  277. package/dist/models/Delivery.d.ts.map +1 -1
  278. package/dist/models/Delivery.js.map +1 -1
  279. package/dist/models/DisplayMixin.d.ts +2 -2
  280. package/dist/models/DisplayMixin.d.ts.map +1 -1
  281. package/dist/models/Extension.d.ts +1 -1
  282. package/dist/models/Extension.d.ts.map +1 -1
  283. package/dist/models/FeatureToggle.d.ts +3 -1
  284. package/dist/models/FeatureToggle.d.ts.map +1 -1
  285. package/dist/models/Groups.d.ts +4 -30
  286. package/dist/models/Groups.d.ts.map +1 -1
  287. package/dist/models/Groups.js +1 -0
  288. package/dist/models/Groups.js.map +1 -1
  289. package/dist/models/Labels.d.ts +2 -2
  290. package/dist/models/Labels.d.ts.map +1 -1
  291. package/dist/models/Labels.js +1 -0
  292. package/dist/models/Labels.js.map +1 -1
  293. package/dist/models/Language.d.ts +1 -1
  294. package/dist/models/Language.d.ts.map +1 -1
  295. package/dist/models/LegalEntity.d.ts +12 -9
  296. package/dist/models/LegalEntity.d.ts.map +1 -1
  297. package/dist/models/LegalEntity.js +3 -0
  298. package/dist/models/LegalEntity.js.map +1 -1
  299. package/dist/models/Localized.d.ts +1 -3
  300. package/dist/models/Localized.d.ts.map +1 -1
  301. package/dist/models/Mixins.d.ts +4 -2
  302. package/dist/models/Mixins.d.ts.map +1 -1
  303. package/dist/models/Mixins.js +2 -0
  304. package/dist/models/Mixins.js.map +1 -1
  305. package/dist/models/Order.d.ts +30 -28
  306. package/dist/models/Order.d.ts.map +1 -1
  307. package/dist/models/Order.js +4 -0
  308. package/dist/models/Order.js.map +1 -1
  309. package/dist/models/Permissions.d.ts +4 -2
  310. package/dist/models/Permissions.d.ts.map +1 -1
  311. package/dist/models/Permissions.js +1 -0
  312. package/dist/models/Permissions.js.map +1 -1
  313. package/dist/models/PerspectiveConfig.d.ts +1 -1
  314. package/dist/models/PerspectiveConfig.d.ts.map +1 -1
  315. package/dist/models/Price.d.ts +15 -18
  316. package/dist/models/Price.d.ts.map +1 -1
  317. package/dist/models/PriceList.d.ts +8 -12
  318. package/dist/models/PriceList.d.ts.map +1 -1
  319. package/dist/models/PriceModel.d.ts +4 -4
  320. package/dist/models/PriceModel.d.ts.map +1 -1
  321. package/dist/models/PriceModel.js +1 -0
  322. package/dist/models/PriceModel.js.map +1 -1
  323. package/dist/models/Quotes.d.ts +36 -33
  324. package/dist/models/Quotes.d.ts.map +1 -1
  325. package/dist/models/Quotes.js +3 -5
  326. package/dist/models/Quotes.js.map +1 -1
  327. package/dist/models/Region.d.ts +1 -1
  328. package/dist/models/Region.d.ts.map +1 -1
  329. package/dist/models/Returns.d.ts +11 -10
  330. package/dist/models/Returns.d.ts.map +1 -1
  331. package/dist/models/Returns.js +2 -0
  332. package/dist/models/Returns.js.map +1 -1
  333. package/dist/models/Schema.d.ts +9 -2
  334. package/dist/models/Schema.d.ts.map +1 -1
  335. package/dist/models/Schema.js +5 -0
  336. package/dist/models/Schema.js.map +1 -1
  337. package/dist/models/Segment.d.ts +6 -3
  338. package/dist/models/Segment.d.ts.map +1 -1
  339. package/dist/models/Segment.js +3 -0
  340. package/dist/models/Segment.js.map +1 -1
  341. package/dist/models/Settings.d.ts +1 -1
  342. package/dist/models/Settings.d.ts.map +1 -1
  343. package/dist/models/Shipping.d.ts +7 -5
  344. package/dist/models/Shipping.d.ts.map +1 -1
  345. package/dist/models/Shipping.js +2 -0
  346. package/dist/models/Shipping.js.map +1 -1
  347. package/dist/models/Site.d.ts +5 -4
  348. package/dist/models/Site.d.ts.map +1 -1
  349. package/dist/models/Site.js +1 -0
  350. package/dist/models/Site.js.map +1 -1
  351. package/dist/models/Suppliers.d.ts +1 -1
  352. package/dist/models/Suppliers.d.ts.map +1 -1
  353. package/dist/models/Taxes.d.ts +2 -2
  354. package/dist/models/Taxes.d.ts.map +1 -1
  355. package/dist/models/Unit.d.ts +1 -1
  356. package/dist/models/Unit.d.ts.map +1 -1
  357. package/dist/models/User.d.ts +2 -1
  358. package/dist/models/User.d.ts.map +1 -1
  359. package/dist/models/User.js +1 -0
  360. package/dist/models/User.js.map +1 -1
  361. package/dist/models/Vendor.d.ts +8 -11
  362. package/dist/models/Vendor.d.ts.map +1 -1
  363. package/dist/models/Vendor.js +1 -6
  364. package/dist/models/Vendor.js.map +1 -1
  365. package/dist/models/Webhooks.d.ts +18 -94
  366. package/dist/models/Webhooks.d.ts.map +1 -1
  367. package/dist/models/Webhooks.js +5 -12
  368. package/dist/models/Webhooks.js.map +1 -1
  369. package/dist/next/index.d.ts +48 -0
  370. package/dist/next/index.d.ts.map +1 -0
  371. package/dist/next/index.js +46 -0
  372. package/dist/next/index.js.map +1 -0
  373. package/dist/platform/configurationKeys.d.ts +17 -0
  374. package/dist/platform/configurationKeys.d.ts.map +1 -0
  375. package/dist/platform/configurationKeys.js +37 -0
  376. package/dist/platform/configurationKeys.js.map +1 -0
  377. package/dist/platform/index.d.ts +19 -0
  378. package/dist/platform/index.d.ts.map +1 -0
  379. package/dist/platform/index.js +4 -0
  380. package/dist/platform/index.js.map +1 -0
  381. package/dist/platform/operations/configuration.d.ts +25 -0
  382. package/dist/platform/operations/configuration.d.ts.map +1 -0
  383. package/dist/platform/operations/configuration.js +50 -0
  384. package/dist/platform/operations/configuration.js.map +1 -0
  385. package/dist/platform/operations/customerManagement.d.ts +48 -0
  386. package/dist/platform/operations/customerManagement.d.ts.map +1 -0
  387. package/dist/platform/operations/customerManagement.js +90 -0
  388. package/dist/platform/operations/customerManagement.js.map +1 -0
  389. package/dist/platform/operations/index.d.ts +5 -0
  390. package/dist/platform/operations/index.d.ts.map +1 -0
  391. package/dist/platform/operations/index.js +5 -0
  392. package/dist/platform/operations/index.js.map +1 -0
  393. package/dist/platform/operations/order.d.ts +29 -0
  394. package/dist/platform/operations/order.d.ts.map +1 -0
  395. package/dist/platform/operations/order.js +86 -0
  396. package/dist/platform/operations/order.js.map +1 -0
  397. package/dist/platform/operations/shipping.d.ts +26 -0
  398. package/dist/platform/operations/shipping.d.ts.map +1 -0
  399. package/dist/platform/operations/shipping.js +52 -0
  400. package/dist/platform/operations/shipping.js.map +1 -0
  401. package/dist/platform/parseBasicConfiguration.d.ts +34 -0
  402. package/dist/platform/parseBasicConfiguration.d.ts.map +1 -0
  403. package/dist/platform/parseBasicConfiguration.js +75 -0
  404. package/dist/platform/parseBasicConfiguration.js.map +1 -0
  405. package/dist/services/ai/ai.calls.d.ts +5 -0
  406. package/dist/services/ai/ai.calls.d.ts.map +1 -0
  407. package/dist/services/ai/ai.calls.js +10 -0
  408. package/dist/services/ai/ai.calls.js.map +1 -0
  409. package/dist/services/ai/ai.types.d.ts +14 -0
  410. package/dist/services/ai/ai.types.d.ts.map +1 -0
  411. package/dist/services/ai/ai.types.js +2 -0
  412. package/dist/services/ai/ai.types.js.map +1 -0
  413. package/dist/services/ai/index.d.ts +3 -0
  414. package/dist/services/ai/index.d.ts.map +1 -0
  415. package/dist/services/ai/index.js +3 -0
  416. package/dist/services/ai/index.js.map +1 -0
  417. package/dist/services/authAdapter/authAdapter.calls.d.ts +13 -0
  418. package/dist/services/authAdapter/authAdapter.calls.d.ts.map +1 -0
  419. package/dist/services/authAdapter/authAdapter.calls.js +25 -0
  420. package/dist/services/authAdapter/authAdapter.calls.js.map +1 -0
  421. package/dist/services/authAdapter/authAdapter.types.d.ts +25 -0
  422. package/dist/services/authAdapter/authAdapter.types.d.ts.map +1 -0
  423. package/dist/services/authAdapter/authAdapter.types.js +2 -0
  424. package/dist/services/authAdapter/authAdapter.types.js.map +1 -0
  425. package/dist/services/authAdapter/index.d.ts +3 -0
  426. package/dist/services/authAdapter/index.d.ts.map +1 -0
  427. package/dist/services/authAdapter/index.js +3 -0
  428. package/dist/services/authAdapter/index.js.map +1 -0
  429. package/dist/services/automation/automation.calls.d.ts +8 -0
  430. package/dist/services/automation/automation.calls.d.ts.map +1 -0
  431. package/dist/services/automation/automation.calls.js +12 -0
  432. package/dist/services/automation/automation.calls.js.map +1 -0
  433. package/dist/services/automation/automation.types.d.ts +12 -0
  434. package/dist/services/automation/automation.types.d.ts.map +1 -0
  435. package/dist/services/automation/automation.types.js +2 -0
  436. package/dist/services/automation/automation.types.js.map +1 -0
  437. package/dist/services/automation/index.d.ts +3 -0
  438. package/dist/services/automation/index.d.ts.map +1 -0
  439. package/dist/services/automation/index.js +3 -0
  440. package/dist/services/automation/index.js.map +1 -0
  441. package/dist/services/availability/availability.calls.d.ts +23 -0
  442. package/dist/services/availability/availability.calls.d.ts.map +1 -0
  443. package/dist/services/availability/availability.calls.js +62 -0
  444. package/dist/services/availability/availability.calls.js.map +1 -0
  445. package/dist/services/availability/availability.types.d.ts +72 -0
  446. package/dist/services/availability/availability.types.d.ts.map +1 -0
  447. package/dist/services/availability/availability.types.js +2 -0
  448. package/dist/services/availability/availability.types.js.map +1 -0
  449. package/dist/services/availability/index.d.ts +3 -0
  450. package/dist/services/availability/index.d.ts.map +1 -0
  451. package/dist/services/availability/index.js +3 -0
  452. package/dist/services/availability/index.js.map +1 -0
  453. package/dist/services/brand/brand.calls.d.ts +16 -0
  454. package/dist/services/brand/brand.calls.d.ts.map +1 -0
  455. package/dist/services/brand/brand.calls.js +42 -0
  456. package/dist/services/brand/brand.calls.js.map +1 -0
  457. package/dist/services/brand/brand.types.d.ts +31 -0
  458. package/dist/services/brand/brand.types.d.ts.map +1 -0
  459. package/dist/services/brand/brand.types.js +2 -0
  460. package/dist/services/brand/brand.types.js.map +1 -0
  461. package/dist/services/brand/index.d.ts +3 -0
  462. package/dist/services/brand/index.d.ts.map +1 -0
  463. package/dist/services/brand/index.js +3 -0
  464. package/dist/services/brand/index.js.map +1 -0
  465. package/dist/services/cart/cart.calls.d.ts +16 -0
  466. package/dist/services/cart/cart.calls.d.ts.map +1 -0
  467. package/dist/services/cart/cart.calls.js +51 -0
  468. package/dist/services/cart/cart.calls.js.map +1 -0
  469. package/dist/services/cart/cart.types.d.ts +334 -0
  470. package/dist/services/cart/cart.types.d.ts.map +1 -0
  471. package/dist/services/cart/cart.types.js +2 -0
  472. package/dist/services/cart/cart.types.js.map +1 -0
  473. package/dist/services/cart/index.d.ts +3 -0
  474. package/dist/services/cart/index.d.ts.map +1 -0
  475. package/dist/services/cart/index.js +3 -0
  476. package/dist/services/cart/index.js.map +1 -0
  477. package/dist/services/catalog/catalog.calls.d.ts +15 -0
  478. package/dist/services/catalog/catalog.calls.d.ts.map +1 -0
  479. package/dist/services/catalog/catalog.calls.js +42 -0
  480. package/dist/services/catalog/catalog.calls.js.map +1 -0
  481. package/dist/services/catalog/catalog.types.d.ts +55 -0
  482. package/dist/services/catalog/catalog.types.d.ts.map +1 -0
  483. package/dist/services/catalog/catalog.types.js +2 -0
  484. package/dist/services/catalog/catalog.types.js.map +1 -0
  485. package/dist/services/catalog/index.d.ts +3 -0
  486. package/dist/services/catalog/index.d.ts.map +1 -0
  487. package/dist/services/catalog/index.js +3 -0
  488. package/dist/services/catalog/index.js.map +1 -0
  489. package/dist/services/category/category.calls.d.ts +35 -0
  490. package/dist/services/category/category.calls.d.ts.map +1 -0
  491. package/dist/services/category/category.calls.js +150 -0
  492. package/dist/services/category/category.calls.js.map +1 -0
  493. package/dist/services/category/category.types.d.ts +214 -0
  494. package/dist/services/category/category.types.d.ts.map +1 -0
  495. package/dist/services/category/category.types.js +11 -0
  496. package/dist/services/category/category.types.js.map +1 -0
  497. package/dist/services/category/index.d.ts +3 -0
  498. package/dist/services/category/index.d.ts.map +1 -0
  499. package/dist/services/category/index.js +3 -0
  500. package/dist/services/category/index.js.map +1 -0
  501. package/dist/services/changelog/changelog.calls.d.ts +6 -0
  502. package/dist/services/changelog/changelog.calls.d.ts.map +1 -0
  503. package/dist/services/changelog/changelog.calls.js +20 -0
  504. package/dist/services/changelog/changelog.calls.js.map +1 -0
  505. package/dist/services/changelog/changelog.query.d.ts +8 -0
  506. package/dist/services/changelog/changelog.query.d.ts.map +1 -0
  507. package/dist/services/changelog/changelog.query.js +125 -0
  508. package/dist/services/changelog/changelog.query.js.map +1 -0
  509. package/dist/services/changelog/changelog.types.d.ts +71 -0
  510. package/dist/services/changelog/changelog.types.d.ts.map +1 -0
  511. package/dist/services/changelog/changelog.types.js +7 -0
  512. package/dist/services/changelog/changelog.types.js.map +1 -0
  513. package/dist/services/changelog/index.d.ts +4 -0
  514. package/dist/services/changelog/index.d.ts.map +1 -0
  515. package/dist/services/changelog/index.js +4 -0
  516. package/dist/services/changelog/index.js.map +1 -0
  517. package/dist/services/configuration/configuration.calls.d.ts +28 -0
  518. package/dist/services/configuration/configuration.calls.d.ts.map +1 -0
  519. package/dist/services/configuration/configuration.calls.js +58 -0
  520. package/dist/services/configuration/configuration.calls.js.map +1 -0
  521. package/dist/services/configuration/configuration.types.d.ts +48 -0
  522. package/dist/services/configuration/configuration.types.d.ts.map +1 -0
  523. package/dist/services/configuration/configuration.types.js +2 -0
  524. package/dist/services/configuration/configuration.types.js.map +1 -0
  525. package/dist/services/configuration/index.d.ts +3 -0
  526. package/dist/services/configuration/index.d.ts.map +1 -0
  527. package/dist/services/configuration/index.js +3 -0
  528. package/dist/services/configuration/index.js.map +1 -0
  529. package/dist/services/country/country.calls.d.ts +14 -0
  530. package/dist/services/country/country.calls.d.ts.map +1 -0
  531. package/dist/services/country/country.calls.js +47 -0
  532. package/dist/services/country/country.calls.js.map +1 -0
  533. package/dist/services/country/country.types.d.ts +39 -0
  534. package/dist/services/country/country.types.d.ts.map +1 -0
  535. package/dist/services/country/country.types.js +2 -0
  536. package/dist/services/country/country.types.js.map +1 -0
  537. package/dist/services/country/index.d.ts +3 -0
  538. package/dist/services/country/index.d.ts.map +1 -0
  539. package/dist/services/country/index.js +3 -0
  540. package/dist/services/country/index.js.map +1 -0
  541. package/dist/services/coupon/coupon.calls.d.ts +16 -0
  542. package/dist/services/coupon/coupon.calls.d.ts.map +1 -0
  543. package/dist/services/coupon/coupon.calls.js +51 -0
  544. package/dist/services/coupon/coupon.calls.js.map +1 -0
  545. package/dist/services/coupon/coupon.types.d.ts +100 -0
  546. package/dist/services/coupon/coupon.types.d.ts.map +1 -0
  547. package/dist/services/coupon/coupon.types.js +2 -0
  548. package/dist/services/coupon/coupon.types.js.map +1 -0
  549. package/dist/services/coupon/index.d.ts +3 -0
  550. package/dist/services/coupon/index.d.ts.map +1 -0
  551. package/dist/services/coupon/index.js +3 -0
  552. package/dist/services/coupon/index.js.map +1 -0
  553. package/dist/services/currency/currency.calls.d.ts +24 -0
  554. package/dist/services/currency/currency.calls.d.ts.map +1 -0
  555. package/dist/services/currency/currency.calls.js +74 -0
  556. package/dist/services/currency/currency.calls.js.map +1 -0
  557. package/dist/services/currency/currency.types.d.ts +72 -0
  558. package/dist/services/currency/currency.types.d.ts.map +1 -0
  559. package/dist/services/currency/currency.types.js +2 -0
  560. package/dist/services/currency/currency.types.js.map +1 -0
  561. package/dist/services/currency/index.d.ts +3 -0
  562. package/dist/services/currency/index.d.ts.map +1 -0
  563. package/dist/services/currency/index.js +3 -0
  564. package/dist/services/currency/index.js.map +1 -0
  565. package/dist/services/customer/customer.calls.d.ts +31 -0
  566. package/dist/services/customer/customer.calls.d.ts.map +1 -0
  567. package/dist/services/customer/customer.calls.js +101 -0
  568. package/dist/services/customer/customer.calls.js.map +1 -0
  569. package/dist/services/customer/customer.types.d.ts +215 -0
  570. package/dist/services/customer/customer.types.d.ts.map +1 -0
  571. package/dist/services/customer/customer.types.js +11 -0
  572. package/dist/services/customer/customer.types.js.map +1 -0
  573. package/dist/services/customer/index.d.ts +3 -0
  574. package/dist/services/customer/index.d.ts.map +1 -0
  575. package/dist/services/customer/index.js +3 -0
  576. package/dist/services/customer/index.js.map +1 -0
  577. package/dist/services/customerManagement/customerManagement.calls.d.ts +35 -0
  578. package/dist/services/customerManagement/customerManagement.calls.d.ts.map +1 -0
  579. package/dist/services/customerManagement/customerManagement.calls.js +104 -0
  580. package/dist/services/customerManagement/customerManagement.calls.js.map +1 -0
  581. package/dist/services/customerManagement/customerManagement.types.d.ts +211 -0
  582. package/dist/services/customerManagement/customerManagement.types.d.ts.map +1 -0
  583. package/dist/services/customerManagement/customerManagement.types.js +2 -0
  584. package/dist/services/customerManagement/customerManagement.types.js.map +1 -0
  585. package/dist/services/customerManagement/index.d.ts +3 -0
  586. package/dist/services/customerManagement/index.d.ts.map +1 -0
  587. package/dist/services/customerManagement/index.js +3 -0
  588. package/dist/services/customerManagement/index.js.map +1 -0
  589. package/dist/services/customerSegment/customerSegment.calls.d.ts +49 -0
  590. package/dist/services/customerSegment/customerSegment.calls.d.ts.map +1 -0
  591. package/dist/services/customerSegment/customerSegment.calls.js +147 -0
  592. package/dist/services/customerSegment/customerSegment.calls.js.map +1 -0
  593. package/dist/services/customerSegment/customerSegment.types.d.ts +171 -0
  594. package/dist/services/customerSegment/customerSegment.types.d.ts.map +1 -0
  595. package/dist/services/customerSegment/customerSegment.types.js +13 -0
  596. package/dist/services/customerSegment/customerSegment.types.js.map +1 -0
  597. package/dist/services/customerSegment/index.d.ts +3 -0
  598. package/dist/services/customerSegment/index.d.ts.map +1 -0
  599. package/dist/services/customerSegment/index.js +3 -0
  600. package/dist/services/customerSegment/index.js.map +1 -0
  601. package/dist/services/delivery/delivery.calls.d.ts +31 -0
  602. package/dist/services/delivery/delivery.calls.d.ts.map +1 -0
  603. package/dist/services/delivery/delivery.calls.js +52 -0
  604. package/dist/services/delivery/delivery.calls.js.map +1 -0
  605. package/dist/services/delivery/delivery.types.d.ts +47 -0
  606. package/dist/services/delivery/delivery.types.d.ts.map +1 -0
  607. package/dist/services/delivery/delivery.types.js +2 -0
  608. package/dist/services/delivery/delivery.types.js.map +1 -0
  609. package/dist/services/delivery/index.d.ts +3 -0
  610. package/dist/services/delivery/index.d.ts.map +1 -0
  611. package/dist/services/delivery/index.js +3 -0
  612. package/dist/services/delivery/index.js.map +1 -0
  613. package/dist/services/email/email.calls.d.ts +15 -0
  614. package/dist/services/email/email.calls.d.ts.map +1 -0
  615. package/dist/services/email/email.calls.js +25 -0
  616. package/dist/services/email/email.calls.js.map +1 -0
  617. package/dist/services/email/index.d.ts +2 -0
  618. package/dist/services/email/index.d.ts.map +1 -0
  619. package/dist/services/email/index.js +2 -0
  620. package/dist/services/email/index.js.map +1 -0
  621. package/dist/services/featureToggle/featureToggle.calls.d.ts +40 -0
  622. package/dist/services/featureToggle/featureToggle.calls.d.ts.map +1 -0
  623. package/dist/services/featureToggle/featureToggle.calls.js +76 -0
  624. package/dist/services/featureToggle/featureToggle.calls.js.map +1 -0
  625. package/dist/services/featureToggle/featureToggle.types.d.ts +42 -0
  626. package/dist/services/featureToggle/featureToggle.types.d.ts.map +1 -0
  627. package/dist/services/featureToggle/featureToggle.types.js +2 -0
  628. package/dist/services/featureToggle/featureToggle.types.js.map +1 -0
  629. package/dist/services/featureToggle/index.d.ts +3 -0
  630. package/dist/services/featureToggle/index.d.ts.map +1 -0
  631. package/dist/services/featureToggle/index.js +3 -0
  632. package/dist/services/featureToggle/index.js.map +1 -0
  633. package/dist/services/html2pdf/html2pdf.calls.d.ts +22 -0
  634. package/dist/services/html2pdf/html2pdf.calls.d.ts.map +1 -0
  635. package/dist/services/html2pdf/html2pdf.calls.js +46 -0
  636. package/dist/services/html2pdf/html2pdf.calls.js.map +1 -0
  637. package/dist/services/html2pdf/html2pdf.types.d.ts +29 -0
  638. package/dist/services/html2pdf/html2pdf.types.d.ts.map +1 -0
  639. package/dist/services/html2pdf/html2pdf.types.js +2 -0
  640. package/dist/services/html2pdf/html2pdf.types.js.map +1 -0
  641. package/dist/services/html2pdf/index.d.ts +3 -0
  642. package/dist/services/html2pdf/index.d.ts.map +1 -0
  643. package/dist/services/html2pdf/index.js +3 -0
  644. package/dist/services/html2pdf/index.js.map +1 -0
  645. package/dist/services/iam/iam.calls.d.ts +59 -0
  646. package/dist/services/iam/iam.calls.d.ts.map +1 -0
  647. package/dist/services/iam/iam.calls.js +205 -0
  648. package/dist/services/iam/iam.calls.js.map +1 -0
  649. package/dist/services/iam/iam.types.d.ts +225 -0
  650. package/dist/services/iam/iam.types.d.ts.map +1 -0
  651. package/dist/services/iam/iam.types.js +2 -0
  652. package/dist/services/iam/iam.types.js.map +1 -0
  653. package/dist/services/iam/index.d.ts +3 -0
  654. package/dist/services/iam/index.d.ts.map +1 -0
  655. package/dist/services/iam/index.js +3 -0
  656. package/dist/services/iam/index.js.map +1 -0
  657. package/dist/services/invoice/index.d.ts +3 -0
  658. package/dist/services/invoice/index.d.ts.map +1 -0
  659. package/dist/services/invoice/index.js +3 -0
  660. package/dist/services/invoice/index.js.map +1 -0
  661. package/dist/services/invoice/invoice.calls.d.ts +7 -0
  662. package/dist/services/invoice/invoice.calls.d.ts.map +1 -0
  663. package/dist/services/invoice/invoice.calls.js +16 -0
  664. package/dist/services/invoice/invoice.calls.js.map +1 -0
  665. package/dist/services/invoice/invoice.types.d.ts +29 -0
  666. package/dist/services/invoice/invoice.types.d.ts.map +1 -0
  667. package/dist/services/invoice/invoice.types.js +2 -0
  668. package/dist/services/invoice/invoice.types.js.map +1 -0
  669. package/dist/services/label/index.d.ts +3 -0
  670. package/dist/services/label/index.d.ts.map +1 -0
  671. package/dist/services/label/index.js +3 -0
  672. package/dist/services/label/index.js.map +1 -0
  673. package/dist/services/label/label.calls.d.ts +22 -0
  674. package/dist/services/label/label.calls.d.ts.map +1 -0
  675. package/dist/services/label/label.calls.js +63 -0
  676. package/dist/services/label/label.calls.js.map +1 -0
  677. package/dist/services/label/label.types.d.ts +46 -0
  678. package/dist/services/label/label.types.d.ts.map +1 -0
  679. package/dist/services/label/label.types.js +2 -0
  680. package/dist/services/label/label.types.js.map +1 -0
  681. package/dist/services/media/index.d.ts +3 -0
  682. package/dist/services/media/index.d.ts.map +1 -0
  683. package/dist/services/media/index.js +3 -0
  684. package/dist/services/media/index.js.map +1 -0
  685. package/dist/services/media/media.calls.d.ts +24 -0
  686. package/dist/services/media/media.calls.d.ts.map +1 -0
  687. package/dist/services/media/media.calls.js +70 -0
  688. package/dist/services/media/media.calls.js.map +1 -0
  689. package/dist/services/media/media.types.d.ts +86 -0
  690. package/dist/services/media/media.types.d.ts.map +1 -0
  691. package/dist/services/media/media.types.js +2 -0
  692. package/dist/services/media/media.types.js.map +1 -0
  693. package/dist/services/order/index.d.ts +3 -0
  694. package/dist/services/order/index.d.ts.map +1 -0
  695. package/dist/services/order/index.js +3 -0
  696. package/dist/services/order/index.js.map +1 -0
  697. package/dist/services/order/order.calls.d.ts +30 -0
  698. package/dist/services/order/order.calls.d.ts.map +1 -0
  699. package/dist/services/order/order.calls.js +99 -0
  700. package/dist/services/order/order.calls.js.map +1 -0
  701. package/dist/services/order/order.types.d.ts +540 -0
  702. package/dist/services/order/order.types.d.ts.map +1 -0
  703. package/dist/services/order/order.types.js +2 -0
  704. package/dist/services/order/order.types.js.map +1 -0
  705. package/dist/services/paymentGateway/index.d.ts +3 -0
  706. package/dist/services/paymentGateway/index.d.ts.map +1 -0
  707. package/dist/services/paymentGateway/index.js +3 -0
  708. package/dist/services/paymentGateway/index.js.map +1 -0
  709. package/dist/services/paymentGateway/paymentGateway.calls.d.ts +11 -0
  710. package/dist/services/paymentGateway/paymentGateway.calls.d.ts.map +1 -0
  711. package/dist/services/paymentGateway/paymentGateway.calls.js +27 -0
  712. package/dist/services/paymentGateway/paymentGateway.calls.js.map +1 -0
  713. package/dist/services/paymentGateway/paymentGateway.types.d.ts +63 -0
  714. package/dist/services/paymentGateway/paymentGateway.types.d.ts.map +1 -0
  715. package/dist/services/paymentGateway/paymentGateway.types.js +2 -0
  716. package/dist/services/paymentGateway/paymentGateway.types.js.map +1 -0
  717. package/dist/services/pdfmashup/index.d.ts +3 -0
  718. package/dist/services/pdfmashup/index.d.ts.map +1 -0
  719. package/dist/services/pdfmashup/index.js +3 -0
  720. package/dist/services/pdfmashup/index.js.map +1 -0
  721. package/dist/services/pdfmashup/pdfmashup.calls.d.ts +21 -0
  722. package/dist/services/pdfmashup/pdfmashup.calls.d.ts.map +1 -0
  723. package/dist/services/pdfmashup/pdfmashup.calls.js +38 -0
  724. package/dist/services/pdfmashup/pdfmashup.calls.js.map +1 -0
  725. package/dist/services/pdfmashup/pdfmashup.types.d.ts +5 -0
  726. package/dist/services/pdfmashup/pdfmashup.types.d.ts.map +1 -0
  727. package/dist/services/pdfmashup/pdfmashup.types.js +2 -0
  728. package/dist/services/pdfmashup/pdfmashup.types.js.map +1 -0
  729. package/dist/services/price/index.d.ts +3 -0
  730. package/dist/services/price/index.d.ts.map +1 -0
  731. package/dist/services/price/index.js +3 -0
  732. package/dist/services/price/index.js.map +1 -0
  733. package/dist/services/price/price.calls.d.ts +47 -0
  734. package/dist/services/price/price.calls.d.ts.map +1 -0
  735. package/dist/services/price/price.calls.js +185 -0
  736. package/dist/services/price/price.calls.js.map +1 -0
  737. package/dist/services/price/price.types.d.ts +379 -0
  738. package/dist/services/price/price.types.d.ts.map +1 -0
  739. package/dist/services/price/price.types.js +8 -0
  740. package/dist/services/price/price.types.js.map +1 -0
  741. package/dist/services/product/index.d.ts +3 -0
  742. package/dist/services/product/index.d.ts.map +1 -0
  743. package/dist/services/product/index.js +3 -0
  744. package/dist/services/product/index.js.map +1 -0
  745. package/dist/services/product/product.calls.d.ts +43 -0
  746. package/dist/services/product/product.calls.d.ts.map +1 -0
  747. package/dist/services/product/product.calls.js +155 -0
  748. package/dist/services/product/product.calls.js.map +1 -0
  749. package/dist/services/product/product.types.d.ts +378 -0
  750. package/dist/services/product/product.types.d.ts.map +1 -0
  751. package/dist/services/product/product.types.js +26 -0
  752. package/dist/services/product/product.types.js.map +1 -0
  753. package/dist/services/quote/index.d.ts +3 -0
  754. package/dist/services/quote/index.d.ts.map +1 -0
  755. package/dist/services/quote/index.js +3 -0
  756. package/dist/services/quote/index.js.map +1 -0
  757. package/dist/services/quote/quote.calls.d.ts +29 -0
  758. package/dist/services/quote/quote.calls.d.ts.map +1 -0
  759. package/dist/services/quote/quote.calls.js +78 -0
  760. package/dist/services/quote/quote.calls.js.map +1 -0
  761. package/dist/services/quote/quote.types.d.ts +281 -0
  762. package/dist/services/quote/quote.types.d.ts.map +1 -0
  763. package/dist/services/quote/quote.types.js +2 -0
  764. package/dist/services/quote/quote.types.js.map +1 -0
  765. package/dist/services/return/index.d.ts +3 -0
  766. package/dist/services/return/index.d.ts.map +1 -0
  767. package/dist/services/return/index.js +3 -0
  768. package/dist/services/return/index.js.map +1 -0
  769. package/dist/services/return/return.calls.d.ts +17 -0
  770. package/dist/services/return/return.calls.d.ts.map +1 -0
  771. package/dist/services/return/return.calls.js +38 -0
  772. package/dist/services/return/return.calls.js.map +1 -0
  773. package/dist/services/return/return.types.d.ts +150 -0
  774. package/dist/services/return/return.types.d.ts.map +1 -0
  775. package/dist/services/return/return.types.js +2 -0
  776. package/dist/services/return/return.types.js.map +1 -0
  777. package/dist/services/schema/index.d.ts +3 -0
  778. package/dist/services/schema/index.d.ts.map +1 -0
  779. package/dist/services/schema/index.js +3 -0
  780. package/dist/services/schema/index.js.map +1 -0
  781. package/dist/services/schema/schema.calls.d.ts +53 -0
  782. package/dist/services/schema/schema.calls.d.ts.map +1 -0
  783. package/dist/services/schema/schema.calls.js +224 -0
  784. package/dist/services/schema/schema.calls.js.map +1 -0
  785. package/dist/services/schema/schema.types.d.ts +362 -0
  786. package/dist/services/schema/schema.types.d.ts.map +1 -0
  787. package/dist/services/schema/schema.types.js +70 -0
  788. package/dist/services/schema/schema.types.js.map +1 -0
  789. package/dist/services/shipping/index.d.ts +3 -0
  790. package/dist/services/shipping/index.d.ts.map +1 -0
  791. package/dist/services/shipping/index.js +3 -0
  792. package/dist/services/shipping/index.js.map +1 -0
  793. package/dist/services/shipping/shipping.calls.d.ts +40 -0
  794. package/dist/services/shipping/shipping.calls.d.ts.map +1 -0
  795. package/dist/services/shipping/shipping.calls.js +115 -0
  796. package/dist/services/shipping/shipping.calls.js.map +1 -0
  797. package/dist/services/shipping/shipping.types.d.ts +183 -0
  798. package/dist/services/shipping/shipping.types.d.ts.map +1 -0
  799. package/dist/services/shipping/shipping.types.js +2 -0
  800. package/dist/services/shipping/shipping.types.js.map +1 -0
  801. package/dist/services/site/index.d.ts +3 -0
  802. package/dist/services/site/index.d.ts.map +1 -0
  803. package/dist/services/site/index.js +3 -0
  804. package/dist/services/site/index.js.map +1 -0
  805. package/dist/services/site/site.calls.d.ts +29 -0
  806. package/dist/services/site/site.calls.d.ts.map +1 -0
  807. package/dist/services/site/site.calls.js +81 -0
  808. package/dist/services/site/site.calls.js.map +1 -0
  809. package/dist/services/site/site.types.d.ts +121 -0
  810. package/dist/services/site/site.types.d.ts.map +1 -0
  811. package/dist/services/site/site.types.js +2 -0
  812. package/dist/services/site/site.types.js.map +1 -0
  813. package/dist/services/statistics/index.d.ts +3 -0
  814. package/dist/services/statistics/index.d.ts.map +1 -0
  815. package/dist/services/statistics/index.js +3 -0
  816. package/dist/services/statistics/index.js.map +1 -0
  817. package/dist/services/statistics/statistics.calls.d.ts +27 -0
  818. package/dist/services/statistics/statistics.calls.d.ts.map +1 -0
  819. package/dist/services/statistics/statistics.calls.js +74 -0
  820. package/dist/services/statistics/statistics.calls.js.map +1 -0
  821. package/dist/services/statistics/statistics.types.d.ts +155 -0
  822. package/dist/services/statistics/statistics.types.d.ts.map +1 -0
  823. package/dist/services/statistics/statistics.types.js +2 -0
  824. package/dist/services/statistics/statistics.types.js.map +1 -0
  825. package/dist/services/tax/index.d.ts +3 -0
  826. package/dist/services/tax/index.d.ts.map +1 -0
  827. package/dist/services/tax/index.js +3 -0
  828. package/dist/services/tax/index.js.map +1 -0
  829. package/dist/services/tax/tax.calls.d.ts +16 -0
  830. package/dist/services/tax/tax.calls.d.ts.map +1 -0
  831. package/dist/services/tax/tax.calls.js +68 -0
  832. package/dist/services/tax/tax.calls.js.map +1 -0
  833. package/dist/services/tax/tax.types.d.ts +92 -0
  834. package/dist/services/tax/tax.types.d.ts.map +1 -0
  835. package/dist/services/tax/tax.types.js +2 -0
  836. package/dist/services/tax/tax.types.js.map +1 -0
  837. package/dist/services/unitHandling/index.d.ts +3 -0
  838. package/dist/services/unitHandling/index.d.ts.map +1 -0
  839. package/dist/services/unitHandling/index.js +3 -0
  840. package/dist/services/unitHandling/index.js.map +1 -0
  841. package/dist/services/unitHandling/unitHandling.calls.d.ts +22 -0
  842. package/dist/services/unitHandling/unitHandling.calls.d.ts.map +1 -0
  843. package/dist/services/unitHandling/unitHandling.calls.js +68 -0
  844. package/dist/services/unitHandling/unitHandling.calls.js.map +1 -0
  845. package/dist/services/unitHandling/unitHandling.types.d.ts +80 -0
  846. package/dist/services/unitHandling/unitHandling.types.d.ts.map +1 -0
  847. package/dist/services/unitHandling/unitHandling.types.js +2 -0
  848. package/dist/services/unitHandling/unitHandling.types.js.map +1 -0
  849. package/dist/services/vendor/index.d.ts +3 -0
  850. package/dist/services/vendor/index.d.ts.map +1 -0
  851. package/dist/services/vendor/index.js +3 -0
  852. package/dist/services/vendor/index.js.map +1 -0
  853. package/dist/services/vendor/vendor.calls.d.ts +26 -0
  854. package/dist/services/vendor/vendor.calls.d.ts.map +1 -0
  855. package/dist/services/vendor/vendor.calls.js +68 -0
  856. package/dist/services/vendor/vendor.calls.js.map +1 -0
  857. package/dist/services/vendor/vendor.types.d.ts +74 -0
  858. package/dist/services/vendor/vendor.types.d.ts.map +1 -0
  859. package/dist/services/vendor/vendor.types.js +2 -0
  860. package/dist/services/vendor/vendor.types.js.map +1 -0
  861. package/dist/services/webhook/index.d.ts +3 -0
  862. package/dist/services/webhook/index.d.ts.map +1 -0
  863. package/dist/services/webhook/index.js +3 -0
  864. package/dist/services/webhook/index.js.map +1 -0
  865. package/dist/services/webhook/webhook.calls.d.ts +27 -0
  866. package/dist/services/webhook/webhook.calls.d.ts.map +1 -0
  867. package/dist/services/webhook/webhook.calls.js +68 -0
  868. package/dist/services/webhook/webhook.calls.js.map +1 -0
  869. package/dist/services/webhook/webhook.types.d.ts +148 -0
  870. package/dist/services/webhook/webhook.types.d.ts.map +1 -0
  871. package/dist/services/webhook/webhook.types.js +2 -0
  872. package/dist/services/webhook/webhook.types.js.map +1 -0
  873. package/dist/shims/NavigationNode.d.ts +1 -1
  874. package/dist/shims/NavigationNode.d.ts.map +1 -1
  875. package/dist/types/constants.d.ts +2 -1
  876. package/dist/types/constants.d.ts.map +1 -1
  877. package/dist/types/constants.js +1 -0
  878. package/dist/types/constants.js.map +1 -1
  879. package/dist/types/errors.d.ts +2 -0
  880. package/dist/types/errors.d.ts.map +1 -1
  881. package/dist/types/errors.js +1 -0
  882. package/dist/types/errors.js.map +1 -1
  883. package/dist/types/pagination.d.ts +6 -1
  884. package/dist/types/pagination.d.ts.map +1 -1
  885. package/dist/utils/categoryScope.d.ts +3 -1
  886. package/dist/utils/categoryScope.d.ts.map +1 -1
  887. package/dist/utils/categoryScope.js +2 -0
  888. package/dist/utils/categoryScope.js.map +1 -1
  889. package/dist/utils/changelog.d.ts +12 -3
  890. package/dist/utils/changelog.d.ts.map +1 -1
  891. package/dist/utils/changelog.js +10 -113
  892. package/dist/utils/changelog.js.map +1 -1
  893. package/dist/utils/dateRange.d.ts +1 -1
  894. package/dist/utils/dateRange.d.ts.map +1 -1
  895. package/dist/utils/dateRange.js +2 -2
  896. package/dist/utils/dateRange.js.map +1 -1
  897. package/dist/utils/mapOrderStatuses.d.ts +1 -1
  898. package/dist/utils/mapOrderStatuses.d.ts.map +1 -1
  899. package/dist/utils/paginationUtils.d.ts +2 -1
  900. package/dist/utils/paginationUtils.d.ts.map +1 -1
  901. package/dist/utils/paginationUtils.js +1 -0
  902. package/dist/utils/paginationUtils.js.map +1 -1
  903. package/dist/utils/params.d.ts +2 -2
  904. package/dist/utils/params.d.ts.map +1 -1
  905. package/dist/utils/params.js +1 -1
  906. package/dist/utils/params.js.map +1 -1
  907. package/package.json +42 -6
@@ -1,11 +1,8 @@
1
- import { Currency, CurrencyExchange } from '../models/Currency';
2
- import { PaginationProps } from '../types/pagination';
3
- export interface PaginatedResponse<Type> {
4
- values: Type[];
5
- totalRecords: number;
6
- }
1
+ import { Currency, CurrencyExchange } from '../models/Currency.js';
2
+ import { PaginatedResponse, PaginationProps } from '../types/pagination.js';
3
+ /** @deprecated `@emporix/api-calls/next` types currency codes as strings. */
7
4
  export type CurrencyISO = string;
8
- interface CreateCurrencyExchangeForm {
5
+ export interface CreateCurrencyExchangeForm {
9
6
  sourceCurrency: CurrencyISO;
10
7
  targetCurrency: CurrencyISO;
11
8
  rate: number;
@@ -13,16 +10,26 @@ interface CreateCurrencyExchangeForm {
13
10
  version: number;
14
11
  };
15
12
  }
13
+ /** @deprecated Use `listCurrenciesCall` from `@emporix/api-calls/next`, which takes the tenant from the client. It returns one page as `{ values, totalRecords }` and sends no defaults: pass `{ pageSize: 1000, sort: 'name,code:desc' }` for the old request, or load every page with `fetchAll(listCurrenciesCall, { sort: 'name,code:desc' })`. */
16
14
  export declare const fetchCurrencies: (tenant: string) => Promise<Currency[]>;
15
+ /** @deprecated Use `listCurrenciesCall` from `@emporix/api-calls/next`, which takes the tenant from the client. It takes ListParams instead of PaginationProps: `sort` is a native sort string such as `'name:ASC'`, filters still go as query parameters, and it does not default to page 1 and pageSize 10, so pass `pageNumber` and `pageSize`. */
17
16
  export declare const fetchPaginatedCurrencies: (tenant: string, pagination: Partial<PaginationProps>) => Promise<PaginatedResponse<Currency>>;
17
+ /** @deprecated Use `getCurrencyCall` from `@emporix/api-calls/next`, which takes the tenant from the client. */
18
18
  export declare const fetchCurrency: (tenant: string, code: CurrencyISO) => Promise<Currency>;
19
+ /** @deprecated Use `deleteCurrencyCall` from `@emporix/api-calls/next`, which takes the tenant from the client. It resolves to undefined instead of the response body; pass `{ forceDelete: true }` as the params to force the delete. */
19
20
  export declare const deleteCurrency: (tenant: string, code: CurrencyISO) => Promise<Currency[]>;
21
+ /** @deprecated Use `createCurrencyCall` from `@emporix/api-calls/next`, which takes the tenant from the client. It sends the body as given, where the old call sent only `code` and `name`, and returns `{ code }`. */
20
22
  export declare const addCurrency: (tenant: string, currency: Currency) => Promise<unknown>;
23
+ /** @deprecated Use `createExchangeRateCall` from `@emporix/api-calls/next`, which takes the tenant from the client. Pass `{ sourceCurrency, targetCurrency, rate }` without metadata, which the create body does not have; it returns `{ code }`. */
21
24
  export declare const addCurrencyExchange: (tenant: string, form: CreateCurrencyExchangeForm) => Promise<unknown>;
25
+ /** @deprecated Use `listExchangeRatesCall` from `@emporix/api-calls/next`, which takes the tenant from the client. It returns one page as `{ values, totalRecords }`, and the API pages by 60 unless pageSize is set, so use `fetchAll(listExchangeRatesCall)` for every rate. `rate` stays the string the API sends; parse it with `parseFloat(rate)` where you need a number. */
22
26
  export declare const getAllExchangeRates: (tenant: string) => Promise<CurrencyExchange[]>;
27
+ /** @deprecated Use `getExchangeRateCall` from `@emporix/api-calls/next`, which takes the tenant from the client. It returns an ExchangeRate, whose `rate` is the string the API sends. */
23
28
  export declare const getCurrencyExchange: (tenant: string, code: CurrencyISO) => Promise<unknown>;
29
+ /** @deprecated Use `updateExchangeRateCall` from `@emporix/api-calls/next`, which takes the tenant from the client. Pass the code first, the source and target currency joined by an underscore such as `USD_EUR`, and only `{ rate, metadata }` as the body; it resolves to undefined. */
24
30
  export declare const putCurrencyExchange: (tenant: string, form: CreateCurrencyExchangeForm) => Promise<unknown>;
31
+ /** @deprecated Use `createExchangeRateCall` from `@emporix/api-calls/next`, which takes the tenant from the client. Pass `{ sourceCurrency, targetCurrency, rate }` without metadata, which the create body does not have; it returns `{ code }`. */
25
32
  export declare const postCurrencyExchange: (tenant: string, form: CreateCurrencyExchangeForm) => Promise<unknown>;
33
+ /** @deprecated Use `deleteExchangeRateCall` from `@emporix/api-calls/next`, which takes the tenant from the client. It resolves to undefined. */
26
34
  export declare const deleteCurrencyExchange: (tenant: string, code: CurrencyISO) => Promise<unknown>;
27
- export {};
28
35
  //# sourceMappingURL=currencies.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"currencies.d.ts","sourceRoot":"","sources":["../../src/calls/currencies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAE/D,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAOrD,MAAM,WAAW,iBAAiB,CAAC,IAAI;IACrC,MAAM,EAAE,IAAI,EAAE,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,MAAM,WAAW,GAAG,MAAM,CAAA;AAChC,UAAU,0BAA0B;IAClC,cAAc,EAAE,WAAW,CAAA;IAC3B,cAAc,EAAE,WAAW,CAAA;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE;QACR,OAAO,EAAE,MAAM,CAAA;KAChB,CAAA;CACF;AAID,eAAO,MAAM,eAAe,GAAU,QAAQ,MAAM,KAAG,OAAO,CAAC,QAAQ,EAAE,CAgBxE,CAAA;AAED,eAAO,MAAM,wBAAwB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C/B,QAAQ,MAAM,EACd,MAAM,0BAA0B,KAC/B,OAAO,CAAC,OAAO,CAYjB,CAAA;AAED,iJAAiJ;AACjJ,eAAO,MAAM,sBAAsB,GACjC,QAAQ,MAAM,EACd,MAAM,WAAW,KAChB,OAAO,CAAC,OAAO,CAWjB,CAAA"}
@@ -1,5 +1,6 @@
1
- import { formatFilterQueryParams, formatPaginationParamsForEmporixPagination, formatPaginationParamsForSorting, } from '../utils/params';
2
- import { getApiClient } from '../client/apiInstance';
1
+ import { formatFilterQueryParams, formatPaginationParamsForEmporixPagination, formatPaginationParamsForSorting, } from '../utils/params.js';
2
+ import { getApiClient } from '../client/apiInstance.js';
3
+ /** @deprecated Use `listCurrenciesCall` from `@emporix/api-calls/next`, which takes the tenant from the client. It returns one page as `{ values, totalRecords }` and sends no defaults: pass `{ pageSize: 1000, sort: 'name,code:desc' }` for the old request, or load every page with `fetchAll(listCurrenciesCall, { sort: 'name,code:desc' })`. */
3
4
  export const fetchCurrencies = async (tenant) => {
4
5
  const params = {
5
6
  pageSize: '1000',
@@ -14,6 +15,7 @@ export const fetchCurrencies = async (tenant) => {
14
15
  });
15
16
  return data;
16
17
  };
18
+ /** @deprecated Use `listCurrenciesCall` from `@emporix/api-calls/next`, which takes the tenant from the client. It takes ListParams instead of PaginationProps: `sort` is a native sort string such as `'name:ASC'`, filters still go as query parameters, and it does not default to page 1 and pageSize 10, so pass `pageNumber` and `pageSize`. */
17
19
  export const fetchPaginatedCurrencies = async (tenant, pagination) => {
18
20
  const params = {
19
21
  ...formatFilterQueryParams(pagination.filters),
@@ -29,6 +31,7 @@ export const fetchPaginatedCurrencies = async (tenant, pagination) => {
29
31
  });
30
32
  return { values: data, totalRecords: +headers['x-total-count'] };
31
33
  };
34
+ /** @deprecated Use `getCurrencyCall` from `@emporix/api-calls/next`, which takes the tenant from the client. */
32
35
  export const fetchCurrency = async (tenant, code) => {
33
36
  const { data } = await getApiClient().get(`currency/${tenant}/currencies/${code}`, {
34
37
  headers: {
@@ -37,6 +40,7 @@ export const fetchCurrency = async (tenant, code) => {
37
40
  });
38
41
  return data;
39
42
  };
43
+ /** @deprecated Use `deleteCurrencyCall` from `@emporix/api-calls/next`, which takes the tenant from the client. It resolves to undefined instead of the response body; pass `{ forceDelete: true }` as the params to force the delete. */
40
44
  export const deleteCurrency = async (tenant, code) => {
41
45
  const headers = {
42
46
  'X-Version': 'v2',
@@ -46,6 +50,7 @@ export const deleteCurrency = async (tenant, code) => {
46
50
  });
47
51
  return data;
48
52
  };
53
+ /** @deprecated Use `createCurrencyCall` from `@emporix/api-calls/next`, which takes the tenant from the client. It sends the body as given, where the old call sent only `code` and `name`, and returns `{ code }`. */
49
54
  export const addCurrency = async (tenant, currency) => {
50
55
  const headers = {
51
56
  'X-Version': 'v2',
@@ -58,6 +63,7 @@ export const addCurrency = async (tenant, currency) => {
58
63
  });
59
64
  return data;
60
65
  };
66
+ /** @deprecated Use `createExchangeRateCall` from `@emporix/api-calls/next`, which takes the tenant from the client. Pass `{ sourceCurrency, targetCurrency, rate }` without metadata, which the create body does not have; it returns `{ code }`. */
61
67
  export const addCurrencyExchange = async (tenant, form) => {
62
68
  const headers = {
63
69
  'X-Version': 'v2',
@@ -67,6 +73,7 @@ export const addCurrencyExchange = async (tenant, form) => {
67
73
  });
68
74
  return data;
69
75
  };
76
+ /** @deprecated Use `listExchangeRatesCall` from `@emporix/api-calls/next`, which takes the tenant from the client. It returns one page as `{ values, totalRecords }`, and the API pages by 60 unless pageSize is set, so use `fetchAll(listExchangeRatesCall)` for every rate. `rate` stays the string the API sends; parse it with `parseFloat(rate)` where you need a number. */
70
77
  export const getAllExchangeRates = async (tenant) => {
71
78
  const headers = {
72
79
  'X-Version': 'v2',
@@ -76,6 +83,7 @@ export const getAllExchangeRates = async (tenant) => {
76
83
  });
77
84
  return data.map((c) => ({ ...c, rate: parseFloat(c.rate) }));
78
85
  };
86
+ /** @deprecated Use `getExchangeRateCall` from `@emporix/api-calls/next`, which takes the tenant from the client. It returns an ExchangeRate, whose `rate` is the string the API sends. */
79
87
  export const getCurrencyExchange = async (tenant, code) => {
80
88
  const headers = {
81
89
  'X-Version': 'v2',
@@ -85,6 +93,7 @@ export const getCurrencyExchange = async (tenant, code) => {
85
93
  });
86
94
  return data;
87
95
  };
96
+ /** @deprecated Use `updateExchangeRateCall` from `@emporix/api-calls/next`, which takes the tenant from the client. Pass the code first, the source and target currency joined by an underscore such as `USD_EUR`, and only `{ rate, metadata }` as the body; it resolves to undefined. */
88
97
  export const putCurrencyExchange = async (tenant, form) => {
89
98
  const headers = {
90
99
  'X-Version': 'v2',
@@ -94,6 +103,7 @@ export const putCurrencyExchange = async (tenant, form) => {
94
103
  });
95
104
  return data;
96
105
  };
106
+ /** @deprecated Use `createExchangeRateCall` from `@emporix/api-calls/next`, which takes the tenant from the client. Pass `{ sourceCurrency, targetCurrency, rate }` without metadata, which the create body does not have; it returns `{ code }`. */
97
107
  export const postCurrencyExchange = async (tenant, form) => {
98
108
  const headers = {
99
109
  'X-Version': 'v2',
@@ -103,6 +113,7 @@ export const postCurrencyExchange = async (tenant, form) => {
103
113
  });
104
114
  return data;
105
115
  };
116
+ /** @deprecated Use `deleteExchangeRateCall` from `@emporix/api-calls/next`, which takes the tenant from the client. It resolves to undefined. */
106
117
  export const deleteCurrencyExchange = async (tenant, code) => {
107
118
  const headers = {
108
119
  'X-Version': 'v2',
@@ -1 +1 @@
1
- {"version":3,"file":"currencies.js","sourceRoot":"","sources":["../../src/calls/currencies.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,uBAAuB,EACvB,0CAA0C,EAC1C,gCAAgC,GACjC,MAAM,iBAAiB,CAAA;AAiBxB,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEpD,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,EAAE,MAAc,EAAuB,EAAE;IAC3E,MAAM,MAAM,GAAG;QACb,QAAQ,EAAE,MAAM;QAChB,IAAI,EAAE,gBAAgB;KACvB,CAAA;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AAE,CAAC,MAAM,CAC1C,YAAY,MAAM,cAAc,IAAI,EAAE,EACtC;QACE,OAAO;KACR,CACF,CAAA;IACD,OAAO,IAAI,CAAA;AACb,CAAC,CAAA"}
1
+ {"version":3,"file":"currencies.js","sourceRoot":"","sources":["../../src/calls/currencies.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,uBAAuB,EACvB,0CAA0C,EAC1C,gCAAgC,GACjC,MAAM,oBAAoB,CAAA;AAa3B,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAEvD,uVAAuV;AACvV,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,EAAE,MAAc,EAAuB,EAAE;IAC3E,MAAM,MAAM,GAAG;QACb,QAAQ,EAAE,MAAM;QAChB,IAAI,EAAE,gBAAgB;KACvB,CAAA;IACD,MAAM,OAAO,GAAG;QACd,WAAW,EAAE,IAAI;KAClB,CAAA;IACD,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,YAAY,EAAE,CAAC,GAAG,CACvC,YAAY,MAAM,aAAa,EAC/B;QACE,MAAM;QACN,OAAO;KACR,CACF,CAAA;IACD,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AAED,sVAAsV;AACtV,MAAM,CAAC,MAAM,wBAAwB,GAAG,KAAK,EAC3C,MAAc,EACd,UAAoC,EACE,EAAE;IACxC,MAAM,MAAM,GAAG;QACb,GAAG,uBAAuB,CAAC,UAAU,CAAC,OAAO,CAAC;QAC9C,IAAI,EAAE,gCAAgC,CAAC,UAAU,CAAC;QAClD,GAAG,0CAA0C,CAAC,UAAU,CAAC;KAC1D,CAAA;IAED,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,MAAM,YAAY,EAAE,CAAC,GAAG,CAChD,YAAY,MAAM,aAAa,EAC/B;QACE,MAAM;QACN,OAAO,EAAE;YACP,WAAW,EAAE,IAAI;YACjB,eAAe,EAAE,IAAI;SACtB;KACF,CACF,CAAA;IAED,OAAO,EAAE,MAAM,EAAE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AAC,cAAc,IAAI,IAAI,CAAC,cAAc,EAAE,EAC5E,IAAI,EACJ;QACE,OAAO;KACR,CACF,CAAA;IACD,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AAED,qPAAqP;AACrP,MAAM,CAAC,MAAM,oBAAoB,GAAG,KAAK,EACvC,MAAc,EACd,IAAgC,EACd,EAAE;IACpB,MAAM,OAAO,GAAG;QACd,WAAW,EAAE,IAAI;KAClB,CAAA;IACD,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,YAAY,EAAE,CAAC,IAAI,CACxC,YAAY,MAAM,YAAY,EAC9B,IAAI,EACJ;QACE,OAAO;KACR,CACF,CAAA;IACD,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AAED,iJAAiJ;AACjJ,MAAM,CAAC,MAAM,sBAAsB,GAAG,KAAK,EACzC,MAAc,EACd,IAAiB,EACC,EAAE;IACpB,MAAM,OAAO,GAAG;QACd,WAAW,EAAE,IAAI;KAClB,CAAA;IACD,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,YAAY,EAAE,CAAC,MAAM,CAC1C,YAAY,MAAM,cAAc,IAAI,EAAE,EACtC;QACE,OAAO;KACR,CACF,CAAA;IACD,OAAO,IAAI,CAAA;AACb,CAAC,CAAA"}
@@ -1,16 +1,24 @@
1
- import { CustomEntity } from '../models/CustomEntity';
2
- import { PaginationProps } from '../types/pagination';
1
+ import { CustomEntity } from '../models/CustomEntity.js';
2
+ import { PaginationProps } from '../types/pagination.js';
3
+ /** @deprecated Use `CustomEntitiesImport` for the import body and `CustomEntitiesExport` for the export result, from `@emporix/api-calls/next`. */
3
4
  export interface ExportImportRequest {
4
5
  data: string;
5
6
  }
7
+ /** @deprecated Use `listCustomEntitiesCall` from `@emporix/api-calls/next`, which takes the tenant from the client: `getCustomEntitiesCall(tenant, pagination)` becomes `listCustomEntitiesCall(params)` with ListParams instead of PaginationProps. It defaulted to page 1 with 10 custom entities; the new call sends no paging (the API pages by 60), so pass `pageSize: 10` to keep it, or use `fetchAll(listCustomEntitiesCall)` for all. Returns `{ values, totalRecords }` instead of `{ customEntities, totalRecords }`. */
6
8
  export declare const getCustomEntitiesCall: (tenant: string, paginationProps: Partial<PaginationProps>) => Promise<{
7
9
  customEntities: CustomEntity[];
8
10
  totalRecords: number;
9
11
  }>;
12
+ /** @deprecated Use `getCustomEntityCall` from `@emporix/api-calls/next`, which takes the tenant from the client. `getCustomEntityByIdCall(tenant, id)` becomes `getCustomEntityCall(id)`. */
10
13
  export declare const getCustomEntityByIdCall: (tenant: string, id: string) => Promise<CustomEntity>;
14
+ /** @deprecated Use `upsertCustomEntityCall` from `@emporix/api-calls/next`, which takes the tenant from the client. `upsertCustomEntityCall(tenant, entity)` becomes `upsertCustomEntityCall(entity.id, { name, metadata })`, without id in the body. Returns `{ id }` when the API created the type and undefined after an update, instead of the AxiosResponse. */
11
15
  export declare const upsertCustomEntityCall: (tenant: string, body: Partial<CustomEntity>) => Promise<unknown>;
16
+ /** @deprecated Use `deleteCustomEntityCall` from `@emporix/api-calls/next`, which takes the tenant from the client. `deleteCustomEntityCall(tenant, id)` becomes `deleteCustomEntityCall(id)` and returns void instead of the AxiosResponse. */
12
17
  export declare const deleteCustomEntityCall: (tenant: string, id: string) => Promise<unknown>;
18
+ /** @deprecated Use `createCustomEntityCall` from `@emporix/api-calls/next`, which takes the tenant from the client. `postCustomEntityCall(tenant, entity)` becomes `createCustomEntityCall(entity)`, with id and name required. Returns `{ id }` instead of the id. */
13
19
  export declare const postCustomEntityCall: (tenant: string, body: Partial<CustomEntity>) => Promise<string>;
20
+ /** @deprecated Use `importCustomEntitiesCall` from `@emporix/api-calls/next`, which takes the tenant from the client. `importCustomEntitiesCall(tenant, body)` becomes `importCustomEntitiesCall(body)` and returns void instead of the AxiosResponse. */
14
21
  export declare const importCustomEntitiesCall: (tenant: string, body: ExportImportRequest) => Promise<unknown>;
22
+ /** @deprecated Use `exportCustomEntitiesCall` from `@emporix/api-calls/next`, which takes the tenant from the client. `exportCustomEntitiesCall(tenant, ids)` becomes `exportCustomEntitiesCall(ids)` and returns CustomEntitiesExport: data plus exportedAt. */
15
23
  export declare const exportCustomEntitiesCall: (tenant: string, body: string[]) => Promise<ExportImportRequest>;
16
24
  //# sourceMappingURL=customEntities.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"customEntities.d.ts","sourceRoot":"","sources":["../../src/calls/customEntities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAOrD,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAA;CACb;AAID,eAAO,MAAM,qBAAqB,GAChC,QAAQ,MAAM,EACd,iBAAiB,OAAO,CAAC,eAAe,CAAC;;;EAkB1C,CAAA;AAED,eAAO,MAAM,uBAAuB,GAClC,QAAQ,MAAM,EACd,IAAI,MAAM,KACT,OAAO,CAAC,YAAY,CAKtB,CAAA;AAED,eAAO,MAAM,sBAAsB,GACjC,QAAQ,MAAM,EACd,MAAM,OAAO,CAAC,YAAY,CAAC,KAC1B,OAAO,CAAC,OAAO,CAIjB,CAAA;AAED,eAAO,MAAM,sBAAsB,GACjC,QAAQ,MAAM,EACd,IAAI,MAAM,KACT,OAAO,CAAC,OAAO,CAEjB,CAAA;AAED,eAAO,MAAM,oBAAoB,GAC/B,QAAQ,MAAM,EACd,MAAM,OAAO,CAAC,YAAY,CAAC,KAC1B,OAAO,CAAC,MAAM,CAQhB,CAAA;AAED,eAAO,MAAM,wBAAwB,GACnC,QAAQ,MAAM,EACd,MAAM,mBAAmB,KACxB,OAAO,CAAC,OAAO,CAEjB,CAAA;AAED,eAAO,MAAM,wBAAwB,GACnC,QAAQ,MAAM,EACd,MAAM,MAAM,EAAE,KACb,OAAO,CAAC,mBAAmB,CAM7B,CAAA"}
1
+ {"version":3,"file":"customEntities.d.ts","sourceRoot":"","sources":["../../src/calls/customEntities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAOxD,mJAAmJ;AACnJ,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAA;CACb;AAID,ogBAAogB;AACpgB,eAAO,MAAM,qBAAqB,GAChC,QAAQ,MAAM,EACd,iBAAiB,OAAO,CAAC,eAAe,CAAC;;;EAkB1C,CAAA;AAED,6LAA6L;AAC7L,eAAO,MAAM,uBAAuB,GAClC,QAAQ,MAAM,EACd,IAAI,MAAM,KACT,OAAO,CAAC,YAAY,CAKtB,CAAA;AAED,qWAAqW;AACrW,eAAO,MAAM,sBAAsB,GACjC,QAAQ,MAAM,EACd,MAAM,OAAO,CAAC,YAAY,CAAC,KAC1B,OAAO,CAAC,OAAO,CAIjB,CAAA;AAED,gPAAgP;AAChP,eAAO,MAAM,sBAAsB,GACjC,QAAQ,MAAM,EACd,IAAI,MAAM,KACT,OAAO,CAAC,OAAO,CAEjB,CAAA;AAED,uQAAuQ;AACvQ,eAAO,MAAM,oBAAoB,GAC/B,QAAQ,MAAM,EACd,MAAM,OAAO,CAAC,YAAY,CAAC,KAC1B,OAAO,CAAC,MAAM,CAQhB,CAAA;AAED,0PAA0P;AAC1P,eAAO,MAAM,wBAAwB,GACnC,QAAQ,MAAM,EACd,MAAM,mBAAmB,KACxB,OAAO,CAAC,OAAO,CAEjB,CAAA;AAED,iQAAiQ;AACjQ,eAAO,MAAM,wBAAwB,GACnC,QAAQ,MAAM,EACd,MAAM,MAAM,EAAE,KACb,OAAO,CAAC,mBAAmB,CAM7B,CAAA"}
@@ -1,5 +1,6 @@
1
- import { formatFilterQuery, formatPaginationParamsForEmporixPagination, formatPaginationParamsForSorting, } from '../utils/params';
2
- import { getApiClient } from '../client/apiInstance';
1
+ import { formatFilterQuery, formatPaginationParamsForEmporixPagination, formatPaginationParamsForSorting, } from '../utils/params.js';
2
+ import { getApiClient } from '../client/apiInstance.js';
3
+ /** @deprecated Use `listCustomEntitiesCall` from `@emporix/api-calls/next`, which takes the tenant from the client: `getCustomEntitiesCall(tenant, pagination)` becomes `listCustomEntitiesCall(params)` with ListParams instead of PaginationProps. It defaulted to page 1 with 10 custom entities; the new call sends no paging (the API pages by 60), so pass `pageSize: 10` to keep it, or use `fetchAll(listCustomEntitiesCall)` for all. Returns `{ values, totalRecords }` instead of `{ customEntities, totalRecords }`. */
3
4
  export const getCustomEntitiesCall = async (tenant, paginationProps) => {
4
5
  const config = {
5
6
  params: {
@@ -14,27 +15,33 @@ export const getCustomEntitiesCall = async (tenant, paginationProps) => {
14
15
  const { data, headers } = await getApiClient().get(`schema/${tenant}/custom-entities`, config);
15
16
  return { customEntities: data, totalRecords: +headers['x-total-count'] };
16
17
  };
18
+ /** @deprecated Use `getCustomEntityCall` from `@emporix/api-calls/next`, which takes the tenant from the client. `getCustomEntityByIdCall(tenant, id)` becomes `getCustomEntityCall(id)`. */
17
19
  export const getCustomEntityByIdCall = async (tenant, id) => {
18
20
  const { data } = await getApiClient().get(`schema/${tenant}/custom-entities/${id}`);
19
21
  return data;
20
22
  };
23
+ /** @deprecated Use `upsertCustomEntityCall` from `@emporix/api-calls/next`, which takes the tenant from the client. `upsertCustomEntityCall(tenant, entity)` becomes `upsertCustomEntityCall(entity.id, { name, metadata })`, without id in the body. Returns `{ id }` when the API created the type and undefined after an update, instead of the AxiosResponse. */
21
24
  export const upsertCustomEntityCall = async (tenant, body) => {
22
25
  return getApiClient().put(`schema/${tenant}/custom-entities/${body.id}`, {
23
26
  ...body,
24
27
  });
25
28
  };
29
+ /** @deprecated Use `deleteCustomEntityCall` from `@emporix/api-calls/next`, which takes the tenant from the client. `deleteCustomEntityCall(tenant, id)` becomes `deleteCustomEntityCall(id)` and returns void instead of the AxiosResponse. */
26
30
  export const deleteCustomEntityCall = async (tenant, id) => {
27
31
  return getApiClient().delete(`schema/${tenant}/custom-entities/${id}`);
28
32
  };
33
+ /** @deprecated Use `createCustomEntityCall` from `@emporix/api-calls/next`, which takes the tenant from the client. `postCustomEntityCall(tenant, entity)` becomes `createCustomEntityCall(entity)`, with id and name required. Returns `{ id }` instead of the id. */
29
34
  export const postCustomEntityCall = async (tenant, body) => {
30
35
  const { data } = await getApiClient().post(`schema/${tenant}/custom-entities`, {
31
36
  ...body,
32
37
  });
33
38
  return data.id;
34
39
  };
40
+ /** @deprecated Use `importCustomEntitiesCall` from `@emporix/api-calls/next`, which takes the tenant from the client. `importCustomEntitiesCall(tenant, body)` becomes `importCustomEntitiesCall(body)` and returns void instead of the AxiosResponse. */
35
41
  export const importCustomEntitiesCall = async (tenant, body) => {
36
42
  return getApiClient().post(`schema/${tenant}/custom-entities/import`, body);
37
43
  };
44
+ /** @deprecated Use `exportCustomEntitiesCall` from `@emporix/api-calls/next`, which takes the tenant from the client. `exportCustomEntitiesCall(tenant, ids)` becomes `exportCustomEntitiesCall(ids)` and returns CustomEntitiesExport: data plus exportedAt. */
38
45
  export const exportCustomEntitiesCall = async (tenant, body) => {
39
46
  const { data } = await getApiClient().post(`schema/${tenant}/custom-entities/export`, body);
40
47
  return data;
@@ -1 +1 @@
1
- {"version":3,"file":"customEntities.js","sourceRoot":"","sources":["../../src/calls/customEntities.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,iBAAiB,EACjB,0CAA0C,EAC1C,gCAAgC,GACjC,MAAM,iBAAiB,CAAA;AAMxB,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEpD,MAAM,CAAC,MAAM,qBAAqB,GAAG,KAAK,EACxC,MAAc,EACd,eAAyC,EACzC,EAAE;IACF,MAAM,MAAM,GAAG;QACb,MAAM,EAAE;YACN,GAAG,0CAA0C,CAAC,eAAe,CAAC;YAC9D,CAAC,EAAE,iBAAiB,CAAC,eAAe,CAAC,OAAO,CAAC;YAC7C,IAAI,EAAE,gCAAgC,CAAC,eAAe,CAAC;SACxD;QACD,OAAO,EAAE;YACP,eAA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EACd,IAAyB,EACP,EAAE;IACpB,OAAO,YAAY,EAAE,CAAC,IAAI,CAAC,UAAU,MAAM,yBAAyB,EAAE,IAAI,CAAC,CAAA;AAC7E,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,wBAAwB,GAAG,KAAK,EAC3C,MAAc,EACd,IAAc,EACgB,EAAE;IAChC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,YAAY,EAAE,CAAC,IAAI,CACxC,UAAU,MAAM,yBAAyB,EACzC,IAAI,CACL,CAAA;IACD,OAAO,IAAI,CAAA;AACb,CAAC,CAAA"}
1
+ {"version":3,"file":"customEntities.js","sourceRoot":"","sources":["../../src/calls/customEntities.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,iBAAiB,EACjB,0CAA0C,EAC1C,gCAAgC,GACjC,MAAM,oBAAoB,CAAA;AAO3B,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAEvD,ogBAAogB;AACpgB,MAAM,CAAC,MAAM,qBAAqB,GAAG,KAAK,EACxC,MAAc,EACd,eAAyC,EACzC,EAAE;IACF,MAAM,MAAM,GAAG;QACb,MAAM,EAAE;YACN,GAAG,0CAA0C,CAAC,eAAe,CAAC;YAC9D,CAAC,EAAE,iBAAiB,CAAC,eAAe,CAAC,OAAO,CAAC;YAC7C,IAAI,EAAE,gCAAgC,CAAC,eAAe,CAAC;SACxD;QACD,OAAO,EAAE;YACP,eAAe,EAAE,IAAI;SACtB;KACF,CAAA;IAED,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,MAAM,YAAY,EAAE,CAAC,GAAG,CAChD,UAAU,MAAM,kBAAkB,EAClC,MAAM,CACP,CAAA;IACD,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,CAAA;AAC1E,CAAC,CAAA;AAED,6LAA6L;AAC7L,MAAM,CAAC,MAAM,uBAAuB,GAAG,KAAK,EAC1C,MAAc,EACd,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,EAAE,CAAC,IAAI,CACxC,UAAU,MAAM,yBAAyB,EACzC,IAAI,CACL,CAAA;IACD,OAAO,IAAI,CAAA;AACb,CAAC,CAAA"}
@@ -1,22 +1,31 @@
1
- import { CustomInstance } from '../models/CustomInstance';
2
- import { PaginationProps } from '../types/pagination';
1
+ import { CustomInstance } from '../models/CustomInstance.js';
2
+ import { PaginationProps } from '../types/pagination.js';
3
+ /** @deprecated Pass `next` and `prev` in the params of `listCustomInstancesWithCursorCall` from `@emporix/api-calls/next`. */
3
4
  export type CursorParams = {
4
5
  next?: string;
5
6
  prev?: string;
6
7
  };
8
+ /** @deprecated `listCustomInstancesWithCursorCall` from `@emporix/api-calls/next` returns `CursorPaginatedResponse<CustomInstance>`, with values instead of customInstances. */
7
9
  export type CursorPageResult = {
8
10
  customInstances: CustomInstance[];
9
11
  nextCursor: string | null;
10
12
  prevCursor: string | null;
11
13
  };
14
+ /** @deprecated Use `listCustomInstancesCall` from `@emporix/api-calls/next`, which takes the tenant from the client. `getCustomInstancesCall(tenant, type, pagination)` becomes `listCustomInstancesCall(type, params)` with ListParams instead of PaginationProps. It defaulted to page 1 with 10 custom instances; the new call sends no paging (the API pages by 60), so pass `pageSize: 10` to keep it. Returns `{ values, totalRecords }` instead of `{ customInstances, totalRecords }`. */
12
15
  export declare const getCustomInstancesCall: (tenant: string, type: string, paginationProps: Partial<PaginationProps>) => Promise<{
13
16
  customInstances: CustomInstance[];
14
17
  totalRecords: number;
15
18
  }>;
19
+ /** @deprecated Use `listCustomInstancesWithCursorCall` from `@emporix/api-calls/next`, which takes the tenant from the client. `getCustomInstancesWithCursorCall(tenant, type, pagination, cursor, acceptLanguage)` becomes `listCustomInstancesWithCursorCall(type, { pageSize, sort, filters, q, next, prev, acceptLanguage })`, with filters and q from `fromDataTableState` (q carries the date filters): rows becomes pageSize, sortField and sortOrder become sort such as `'name.en:ASC'`, and the cursors move into the params. fields can be passed too. The old call sent pageSize 10 when rows was not set: pass `pageSize: 10` to keep it, as the API defaults to 60. Returns `{ values, nextCursor, prevCursor }` instead of `{ customInstances, nextCursor, prevCursor }`. */
16
20
  export declare const getCustomInstancesWithCursorCall: (tenant: string, type: string, paginationProps: Partial<PaginationProps>, cursor?: CursorParams, acceptLanguage?: string) => Promise<CursorPageResult>;
21
+ /** @deprecated Use `getCustomInstanceCall` from `@emporix/api-calls/next`, which takes the tenant from the client. `getCustomInstanceByIdCall(tenant, type, id)` becomes `getCustomInstanceCall(type, id)`. */
17
22
  export declare const getCustomInstanceByIdCall: (tenant: string, type: string, id: string) => Promise<CustomInstance>;
23
+ /** @deprecated Use `upsertCustomInstanceCall` from `@emporix/api-calls/next`, which takes the tenant from the client. `upsertCustomInstanceCall(tenant, type, instance)` becomes `upsertCustomInstanceCall(type, instance.id, body)`, without id in the body. Returns `{ id }` when the API created the instance and undefined after an update, instead of the AxiosResponse. */
18
24
  export declare const upsertCustomInstanceCall: (tenant: string, type: string, body: Partial<CustomInstance>) => Promise<unknown>;
25
+ /** @deprecated Use `deleteCustomInstanceCall` from `@emporix/api-calls/next`, which takes the tenant from the client. `deleteCustomInstanceCall(tenant, type, id)` becomes `deleteCustomInstanceCall(type, id)` and returns void instead of the AxiosResponse. */
19
26
  export declare const deleteCustomInstanceCall: (tenant: string, type: string, id: string) => Promise<unknown>;
27
+ /** @deprecated Use `deleteCustomInstancesBulkCall` from `@emporix/api-calls/next`, which takes the tenant from the client. `deleteCustomInstancesInBulkCall(tenant, type, ids)` becomes `deleteCustomInstancesBulkCall(type, ids)` and returns the result of each id, CustomInstanceBulkResult[], instead of the AxiosResponse: read it directly instead of `.data`. */
20
28
  export declare const deleteCustomInstancesInBulkCall: (tenant: string, type: string, body: string[]) => Promise<unknown>;
29
+ /** @deprecated Use `createCustomInstanceCall` from `@emporix/api-calls/next`, which takes the tenant from the client. `postCustomInstanceCall(tenant, type, instance)` becomes `createCustomInstanceCall(type, instance)`. Returns `{ id }` instead of the id. */
21
30
  export declare const postCustomInstanceCall: (tenant: string, type: string, body: Partial<CustomInstance>) => Promise<string>;
22
31
  //# sourceMappingURL=customInstances.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"customInstances.d.ts","sourceRoot":"","sources":["../../src/calls/customInstances.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AASrD,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,eAAe,EAAE,cAAc,EAAE,CAAA;IACjC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,sBAAsB,GACjC,QAAQ,MAAM,EACd,MAAM,MAAM,EACZ,iBAAiB,OAAO,CAAC,eAAe,CAAC;;;EAkB1C,CAAA;AAED,eAAO,MAAM,gCAAgC,GAC3C,QAAQ,MAAM,EACd,MAAM,MAAM,EACZ,iBAAiB,OAAO,CAAC,eAAe,CAAC,EACzC,SAAQ,YAAiB,EACzB,iBAAiB,MAAM,KACtB,OAAO,CAAC,gBAAgB,CAwB1B,CAAA;AAED,eAAO,MAAM,yBAAyB,GACpC,QAAQ,MAAM,EACd,MAAM,MAAM,EACZ,IAAI,MAAM,KACT,OAAO,CAAC,cAAc,CAKxB,CAAA;AAED,eAAO,MAAM,wBAAwB,GACnC,QAAQ,MAAM,EACd,MAAM,MAAM,EACZ,MAAM,OAAO,CAAC,cAAc,CAAC,KAC5B,OAAO,CAAC,OAAO,CAOjB,CAAA;AAED,eAAO,MAAM,wBAAwB,GACnC,QAAQ,MAAM,EACd,MAAM,MAAM,EACZ,IAAI,MAAM,KACT,OAAO,CAAC,OAAO,CAIjB,CAAA;AAED,eAAO,MAAM,+BAA+B,GAC1C,QAA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ACd,MAAM,MAAM,EACZ,MAAM,OAAO,CAAC,cAAc,CAAC,KAC5B,OAAO,CAAC,OAAO,CAOjB,CAAA;AAED,kQAAkQ;AAClQ,eAAO,MAAM,wBAAwB,GACnC,QAAQ,MAAM,EACd,MAAM,MAAM,EACZ,IAAI,MAAM,KACT,OAAO,CAAC,OAAO,CAIjB,CAAA;AAED,wWAAwW;AACxW,eAAO,MAAM,+BAA+B,GAC1C,QAAQ,MAAM,EACd,MAAM,MAAM,EACZ,MAAM,MAAM,EAAE,KACb,OAAO,CAAC,OAAO,CAKjB,CAAA;AAED,kQAAkQ;AAClQ,eAAO,MAAM,sBAAsB,GACjC,QAAQ,MAAM,EACd,MAAM,MAAM,EACZ,MAAM,OAAO,CAAC,cAAc,CAAC,KAC5B,OAAO,CAAC,MAAM,CAQhB,CAAA"}
@@ -1,5 +1,6 @@
1
- import { formatFilterQuery, formatPaginationParamsForEmporixPagination, formatPaginationParamsForSorting, } from '../utils/params';
2
- import { getApiClient } from '../client/apiInstance';
1
+ import { formatFilterQuery, formatPaginationParamsForEmporixPagination, formatPaginationParamsForSorting, } from '../utils/params.js';
2
+ import { getApiClient } from '../client/apiInstance.js';
3
+ /** @deprecated Use `listCustomInstancesCall` from `@emporix/api-calls/next`, which takes the tenant from the client. `getCustomInstancesCall(tenant, type, pagination)` becomes `listCustomInstancesCall(type, params)` with ListParams instead of PaginationProps. It defaulted to page 1 with 10 custom instances; the new call sends no paging (the API pages by 60), so pass `pageSize: 10` to keep it. Returns `{ values, totalRecords }` instead of `{ customInstances, totalRecords }`. */
3
4
  export const getCustomInstancesCall = async (tenant, type, paginationProps) => {
4
5
  const config = {
5
6
  params: {
@@ -14,6 +15,7 @@ export const getCustomInstancesCall = async (tenant, type, paginationProps) => {
14
15
  const { data, headers } = await getApiClient().get(`schema/${tenant}/custom-entities/${type}/instances`, config);
15
16
  return { customInstances: data, totalRecords: +headers['x-total-count'] };
16
17
  };
18
+ /** @deprecated Use `listCustomInstancesWithCursorCall` from `@emporix/api-calls/next`, which takes the tenant from the client. `getCustomInstancesWithCursorCall(tenant, type, pagination, cursor, acceptLanguage)` becomes `listCustomInstancesWithCursorCall(type, { pageSize, sort, filters, q, next, prev, acceptLanguage })`, with filters and q from `fromDataTableState` (q carries the date filters): rows becomes pageSize, sortField and sortOrder become sort such as `'name.en:ASC'`, and the cursors move into the params. fields can be passed too. The old call sent pageSize 10 when rows was not set: pass `pageSize: 10` to keep it, as the API defaults to 60. Returns `{ values, nextCursor, prevCursor }` instead of `{ customInstances, nextCursor, prevCursor }`. */
17
19
  export const getCustomInstancesWithCursorCall = async (tenant, type, paginationProps, cursor = {}, acceptLanguage) => {
18
20
  const q = formatFilterQuery(paginationProps.filters).trim() || undefined;
19
21
  const { data, headers } = await getApiClient().get(`schema/${tenant}/custom-entities/${type}/instances`, {
@@ -36,21 +38,26 @@ export const getCustomInstancesWithCursorCall = async (tenant, type, paginationP
36
38
  prevCursor: headers['x-prev-cursor'] ?? null,
37
39
  };
38
40
  };
41
+ /** @deprecated Use `getCustomInstanceCall` from `@emporix/api-calls/next`, which takes the tenant from the client. `getCustomInstanceByIdCall(tenant, type, id)` becomes `getCustomInstanceCall(type, id)`. */
39
42
  export const getCustomInstanceByIdCall = async (tenant, type, id) => {
40
43
  const { data } = await getApiClient().get(`schema/${tenant}/custom-entities/${type}/instances/${id}`);
41
44
  return data;
42
45
  };
46
+ /** @deprecated Use `upsertCustomInstanceCall` from `@emporix/api-calls/next`, which takes the tenant from the client. `upsertCustomInstanceCall(tenant, type, instance)` becomes `upsertCustomInstanceCall(type, instance.id, body)`, without id in the body. Returns `{ id }` when the API created the instance and undefined after an update, instead of the AxiosResponse. */
43
47
  export const upsertCustomInstanceCall = async (tenant, type, body) => {
44
48
  return getApiClient().put(`schema/${tenant}/custom-entities/${type}/instances/${body.id}`, {
45
49
  ...body,
46
50
  });
47
51
  };
52
+ /** @deprecated Use `deleteCustomInstanceCall` from `@emporix/api-calls/next`, which takes the tenant from the client. `deleteCustomInstanceCall(tenant, type, id)` becomes `deleteCustomInstanceCall(type, id)` and returns void instead of the AxiosResponse. */
48
53
  export const deleteCustomInstanceCall = async (tenant, type, id) => {
49
54
  return getApiClient().delete(`schema/${tenant}/custom-entities/${type}/instances/${id}`);
50
55
  };
56
+ /** @deprecated Use `deleteCustomInstancesBulkCall` from `@emporix/api-calls/next`, which takes the tenant from the client. `deleteCustomInstancesInBulkCall(tenant, type, ids)` becomes `deleteCustomInstancesBulkCall(type, ids)` and returns the result of each id, CustomInstanceBulkResult[], instead of the AxiosResponse: read it directly instead of `.data`. */
51
57
  export const deleteCustomInstancesInBulkCall = async (tenant, type, body) => {
52
58
  return await getApiClient().delete(`schema/${tenant}/custom-entities/${type}/instances/bulk`, { data: body });
53
59
  };
60
+ /** @deprecated Use `createCustomInstanceCall` from `@emporix/api-calls/next`, which takes the tenant from the client. `postCustomInstanceCall(tenant, type, instance)` becomes `createCustomInstanceCall(type, instance)`. Returns `{ id }` instead of the id. */
54
61
  export const postCustomInstanceCall = async (tenant, type, body) => {
55
62
  const { data } = await getApiClient().post(`schema/${tenant}/custom-entities/${type}/instances`, {
56
63
  ...body,
@@ -1 +1 @@
1
- {"version":3,"file":"customInstances.js","sourceRoot":"","sources":["../../src/calls/customInstances.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,iBAAiB,EACjB,0CAA0C,EAC1C,gCAAgC,GACjC,MAAM,iBAAiB,CAAA;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAapD,MAAM,CAAC,MAAM,sBAAsB,GAAG,KAAK,EACzC,MAAc,EACd,IAAY,EACZ,eAAyC,EACzC,EAAE;IACF,MAAM,MAAM,GAAG;QACb,MAAM,EAAE;YACN,GAAG,0CAA0C,CAAC,eAAe,CAAC;YAC9D,CAAC,EAAE,iBAAiB,CAAC,eAAe,CAAC,OAAO,CAAC;YAC7C,IAAI,EAAE,gCAAgC,CAAC,eAAe,CAAC;SACxD;QACD,OAAO,EAAE;YACP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M,EAAE,IAAI,EAAE,GAAG,MAAM,YAAY,EAAE,CAAC,GAAG,CACvC,UAAU,MAAM,oBAAoB,IAAI,cAAc,EAAE,EAAE,CAC3D,CAAA;IACD,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,wBAAwB,GAAG,KAAK,EAC3C,MAAc,EACd,IAAY,EACZ,IAA6B,EACX,EAAE;IACpB,OAAO,YAAY,EAAE,CAAC,GAAG,CACvB,UAAU,MAAM,oBAAoB,IAAI,cAAc,IAAI,CAAC,EAAE,EAAE,EAC/D;QACE,GAAG,IAAI;KACR,CACF,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,wBAAwB,GAAG,KAAK,EAC3C,MAAc,EACd,IAAY,EACZ,EAAU,EACQ,EAAE;IACpB,OAAO,YAAY,EAAE,CAAC,MAAM,CAC1B,UAAU,MAAM,oBAAoB,IAAI,cAAc,EAAE,EAAE,CAC3D,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,+BAA+B,GAAG,KAAK,EAClD,MAAc,EACd,IAAY,EACZ,IAAc,EACI,EAAE;IACpB,OAAO,MAAM,YAAY,EAAE,CAAC,MAAM,CAChC,UAAU,MAAM,oBAAoB,IAAI,iBAAiB,EACzD,EAAE,IAAI,EAAE,IAAI,EAAE,CACf,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,sBAAsB,GAAG,KAAK,EACzC,MAAc,EACd,IAAY,EACZ,IAA6B,EACZ,EAAE;IACnB,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,YAAY,EAAE,CAAC,IAAI,CACxC,UAAU,MAAM,oBAAoB,IAAI,YAAY,EACpD;QACE,GAAG,IAAI;KACR,CACF,CAAA;IACD,OAAO,IAAI,CAAC,EAAE,CAAA;AAChB,CAAC,CAAA"}
1
+ {"version":3,"file":"customInstances.js","sourceRoot":"","sources":["../../src/calls/customInstances.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,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AAY,EAAE,CAAC,MAAM,CAChC,UAAU,MAAM,oBAAoB,IAAI,iBAAiB,EACzD,EAAE,IAAI,EAAE,IAAI,EAAE,CACf,CAAA;AACH,CAAC,CAAA;AAED,kQAAkQ;AAClQ,MAAM,CAAC,MAAM,sBAAsB,GAAG,KAAK,EACzC,MAAc,EACd,IAAY,EACZ,IAA6B,EACZ,EAAE;IACnB,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,YAAY,EAAE,CAAC,IAAI,CACxC,UAAU,MAAM,oBAAoB,IAAI,YAAY,EACpD;QACE,GAAG,IAAI;KACR,CACF,CAAA;IACD,OAAO,IAAI,CAAC,EAAE,CAAA;AAChB,CAAC,CAAA"}
@@ -1,7 +1,7 @@
1
- import { PaginationProps } from '../types/pagination';
2
- import { PaginatedResponse } from './orders';
3
- import { Contact, ContactAssignment, ContactType, LegalEntity, Location } from '../models/LegalEntity';
1
+ import { PaginatedResponse, PaginationProps } from '../types/pagination.js';
2
+ import { Contact, ContactAssignment, ContactType, LegalEntity, LegalEntityLocation } from '../models/LegalEntity.js';
4
3
  import { AxiosResponse } from 'axios';
4
+ /** @deprecated Use `ContactAssignmentCreate` or `ContactAssignmentUpsert` from `@emporix/api-calls/next`. */
5
5
  export interface ContactAssignmentUpdateModel {
6
6
  id?: string;
7
7
  legalEntity: {
@@ -16,27 +16,47 @@ export interface ContactAssignmentUpdateModel {
16
16
  version: number;
17
17
  };
18
18
  }
19
+ /** @deprecated Use `listContactAssignmentsCall` from `@emporix/api-calls/next`, which takes the tenant from the client: `listContactAssignmentsCall({ legalEntityId, type })`. Returns PaginatedResponse instead of an array: read `.values`. It loaded up to 100 assignments; the new call sends no page size (the API pages by 16), so pass `pageSize` or use `fetchAll((params, options) => listContactAssignmentsCall({ ...params, legalEntityId }, options))` for all. */
19
20
  export declare const fetchContactsForEntityCall: (tenant: string, legalEntityId: string, type?: ContactType) => Promise<ContactAssignment[]>;
21
+ /** @deprecated Use `getLegalEntityCall` from `@emporix/api-calls/next`, which takes the tenant from the client. It does not add `contacts` (this function sent a second request for up to 100 contact assignments of the legal entity); where `contacts` is read, use `getLegalEntityWithContacts(legalEntityId)` from `@emporix/api-calls/platform`, which loads all of them. */
20
22
  export declare const fetchLegalEntityCall: (tenant: string, legalEntityId: string) => Promise<LegalEntity>;
23
+ /** @deprecated Use `upsertLegalEntityCall` from `@emporix/api-calls/next`, which takes the tenant from the client: `upsertLegalEntityCall(legalEntity.id, body)`, the id first. The body is a `LegalEntityUpsert`: name and type are required, and customerGroups, entitiesAddresses and approvalGroup are `{ id }` references. Returns `{ id }` when the PUT created the legal entity and undefined when it updated it, instead of the AxiosResponse. */
21
24
  export declare const updateLegalEntityCall: (tenant: string, legalEntity: Partial<LegalEntity>) => Promise<AxiosResponse<any, any, {}>>;
25
+ /** @deprecated Use `deleteLocationCall` from `@emporix/api-calls/next`, which takes the tenant from the client. Returns void instead of the AxiosResponse. It deletes a Customer Management location; vendor locations need `deleteVendorLocationCall`. */
22
26
  export declare const deleteLocationCall: (tenant: string, locationId: string) => Promise<AxiosResponse<any, any, {}>>;
27
+ /** @deprecated Use `deleteLegalEntityCall` from `@emporix/api-calls/next`, which takes the tenant from the client. Returns void instead of the AxiosResponse. */
23
28
  export declare const deleteLegalEntityCall: (tenant: string, legalEntityId: string) => Promise<AxiosResponse<any, any, {}>>;
24
- export declare const updateLocationCall: (tenant: string, location: Partial<Location>) => Promise<AxiosResponse<Location, any, {}>>;
29
+ /** @deprecated Use `upsertLocationCall` from `@emporix/api-calls/next`, which takes the tenant from the client: `upsertLocationCall(location.id, body)`, the id first. The body is a `LocationUpsert`: type and contactDetails are required. Returns `{ id }` when the PUT created the location and undefined when it updated it, instead of the AxiosResponse. */
30
+ export declare const updateLocationCall: (tenant: string, location: Partial<LegalEntityLocation>) => Promise<AxiosResponse<LegalEntityLocation, any, {}>>;
31
+ /** @deprecated Use `createLegalEntityCall` from `@emporix/api-calls/next`, which takes the tenant from the client. The body is a `LegalEntityCreate` (name required). Returns `{ id }` instead of the AxiosResponse: read `.id` instead of `.data.id`. */
25
32
  export declare const createLegalEntityCall: (tenant: string, legalEntity: Partial<LegalEntity>) => Promise<AxiosResponse>;
26
- export declare const createLocationCall: (tenant: string, legalEntityId: string, location: Partial<Location>) => Promise<string>;
27
- export declare const fetchLocationCall: (tenant: string, locationId: string) => Promise<Location>;
33
+ /** @deprecated Use `createLegalEntityLocation` from `@emporix/api-calls/platform`, which takes the tenant from the client: `createLegalEntityLocation(legalEntityId, location)` creates the location and adds it first to the legal entity's entitiesAddresses, as before. The body is a `LocationCreate` (type and contactDetails required). Returns `{ id }` instead of the id string (it returned '-1' when the API sent no id). The legal entity update sends the entity's references as `{ id }` and no contacts. To create the location only, use `createLocationCall(location)` from `@emporix/api-calls/next`. */
34
+ export declare const createLocationCall: (tenant: string, legalEntityId: string, location: Partial<LegalEntityLocation>) => Promise<string>;
35
+ /** @deprecated Use `getLocationCall` from `@emporix/api-calls/next`, which takes the tenant from the client. It returns `Location` instead of `LegalEntityLocation`. Pass `{ fields }` in the params to limit the response. */
36
+ export declare const fetchLocationCall: (tenant: string, locationId: string) => Promise<LegalEntityLocation>;
37
+ /** @deprecated Use `listLocationsCall` from `@emporix/api-calls/next`, which takes the tenant from the client: `listLocationsCall({ filters: [{ field: 'id', op: 'in', value: locationIds }], pageNumber, pageSize })`. ListParams instead of PaginationProps. Returns PaginatedResponse instead of the array: read `.values`. It defaulted to page 1 with 10 locations; the new call sends no paging (the API pages by 16). */
28
38
  export declare const getLocations: (tenant: string, pagination: Partial<PaginationProps>, locationIds: string[]) => Promise<any>;
39
+ /** @deprecated Use `listLegalEntitiesCall` from `@emporix/api-calls/next`, which takes the tenant from the client. ListParams instead of PaginationProps; parentId goes in the params: `listLegalEntitiesCall({ ...params, parentId })`. It sent an empty sort when none was set; the new call sends none. withContacts is gone: listLegalEntitiesCall does not add `contacts`; where they are read, use `listLegalEntitiesWithContacts({ ...params, parentId })` from `@emporix/api-calls/platform`, which sends one more request per legal entity as before and loads all of its contact assignments instead of the first 100. */
29
40
  export declare const fetchLegalEntitiesCall: (tenant: string, pagination: Partial<PaginationProps>, paramsData?: {
30
41
  parentId?: string;
31
42
  withContacts?: boolean;
32
43
  }) => Promise<PaginatedResponse<LegalEntity>>;
44
+ /** @deprecated `GET /customer-management/{tenant}/contacts` is not in the Customer Management spec and no consumer calls it; no replacement in ./next. */
33
45
  export declare const fetchContactsCall: (tenant: string, pagination: Partial<PaginationProps>) => Promise<PaginatedResponse<Contact>>;
46
+ /** @deprecated Use `listContactAssignmentsCall` from `@emporix/api-calls/next`, which takes the tenant from the client. ListParams instead of PaginationProps. The extra query params are typed: legalEntityId (sent as legalEntity.id), customerId (sent as customer.id), type and primary; other conditions go in filters or a raw q. */
34
47
  export declare const fetchContactAssignmentsCall: (tenant: string, pagination: Partial<PaginationProps>, params?: Record<string, string>) => Promise<PaginatedResponse<ContactAssignment>>;
48
+ /** @deprecated Use `getContactAssignmentCall` from `@emporix/api-calls/next`, which takes the tenant from the client. */
35
49
  export declare const fetchContactAssignmentCall: (tenant: string, contactAssignmentId: string) => Promise<ContactAssignment>;
50
+ /** @deprecated Use `deleteContactAssignmentCall` from `@emporix/api-calls/next`, which takes the tenant from the client. Returns void instead of the AxiosResponse. */
36
51
  export declare const deleteContactAssignmentCall: (tenant: string, contactAssignmentId: string) => Promise<AxiosResponse>;
52
+ /** @deprecated `DELETE /customer-management/{tenant}/contacts/{contactId}` is not in the Customer Management spec and no consumer calls it; no replacement in ./next. */
37
53
  export declare const deleteContactcall: (tenant: string, contactId: string) => Promise<AxiosResponse<ContactAssignment, any, {}>>;
54
+ /** @deprecated Use `upsertContactAssignmentCall` from `@emporix/api-calls/next`, which takes the tenant from the client: `upsertContactAssignmentCall(contactAssignmentId, body)`, the id first and the body second. The body is a `ContactAssignmentUpsert`: legalEntity, customer and type are required. Returns `{ id }` when the PUT created the assignment and undefined when it updated it, instead of the AxiosResponse. */
38
55
  export declare const updateContactAssignmentCall: (tenant: string, contactAssignment: ContactAssignmentUpdateModel, contactAssignmentId: string) => Promise<AxiosResponse<ContactAssignment, any, {}>>;
56
+ /** @deprecated Use `createContactAssignmentCall` from `@emporix/api-calls/next`, which takes the tenant from the client. The body is a `ContactAssignmentCreate`: legalEntity and customer are required. Returns `{ id }` instead of the id. */
39
57
  export declare const createContactAssignment: (tenant: string, contactAssignment: ContactAssignmentUpdateModel) => Promise<string>;
58
+ /** @deprecated Use `upsertContactAssignmentCall` from `@emporix/api-calls/next`, which takes the tenant from the client, and build the body yourself: `upsertContactAssignmentCall(assignment.id, { legalEntity: { id }, customer: { id }, type, primary, metadata: { version } })`. The old function sent nothing and resolved undefined when the id, legal entity id, customer id, type or version was missing. Returns `{ id }` when the PUT created the assignment and undefined when it updated it, instead of the AxiosResponse. */
40
59
  export declare const updateContactFlow: (tenant: string, contactAssignment: Partial<ContactAssignment>) => Promise<AxiosResponse<ContactAssignment, any, {}> | undefined>;
60
+ /** @deprecated Use `createContactAssignmentCall` from `@emporix/api-calls/next`, which takes the tenant from the client, and build the body yourself: `createContactAssignmentCall({ id, legalEntity: { id }, customer: { id }, type, primary })`. Returns `{ id }` instead of the id. */
41
61
  export declare const createContactFlow: (tenant: string, contactAssignment: Partial<ContactAssignment>) => Promise<string>;
42
62
  //# sourceMappingURL=customerManagement.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"customerManagement.d.ts","sourceRoot":"","sources":["../../src/calls/customerManagement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,EACL,OAAO,EACP,iBAAiB,EACjB,WAAW,EACX,WAAW,EACX,QAAQ,EACT,MAAM,uBAAuB,CAAA;AAK9B,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAErC,MAAM,WAAW,4BAA4B;IAC3C,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,WAAW,EAAE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mB,OAAO,CAAC,iBAAiB,CAAC,oBAe9C,CAAA"}
1
+ {"version":3,"file":"customerManagement.d.ts","sourceRoot":"","sources":["../../src/calls/customerManagement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAC3E,OAAO,EACL,OAAO,EACP,iBAAiB,EACjB,WAAW,EACX,WAAW,EACX,mBAAmB,EACpB,MAAM,0BAA0B,CAAA;AAKjC,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAErC,6GAA6G;AAC7G,MAAM,WAAW,4BAA4B;IAC3C,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,WAAW,EAAE;QACX,EAAE,EAAE,MAAM,CAAA;KACX,CAAA;IACD,QAAQ,CAAC,EAAE;QACT,EAAE,CAAC,EAAE,MAAM,CAAA;KACZ,CAAA;IACD,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE;QACT,OAAO,EAAE,MAAM,CAAA;KAChB,CAAA;CACF;AAID,+cAA+c;AAC/c,eAAO,MAAM,0BAA0B,GACrC,QAAQ,MAAM,EACd,eAAe,MAAM,EACrB,OAAO,WAAW,iCAanB,CAAA;AAED,kXAAkX;AAClX,eAAO,MAAM,oBAAoB,GAC/B,QAAQ,MAAM,EACd,eAAe,MAAM,KACpB,OAAO,CAAC,WAAW,CAcrB,CAAA;AAED,0bAA0b;AAC1b,eAAO,MAAM,qBAAqB,GAChC,QAAQ,MAAM,EACd,aAAa,OAAO,CAAC,WAAW,CAAC,yCAMlC,CAAA;AAED,2PAA2P;AAC3P,eAAO,MAAM,kBAAkB,GAC7B,QAAQ,MAAM,EACd,YAAY,MAAM,yCAKnB,CAAA;AAED,iKAAiK;AACjK,eAAO,MAAM,qBAAqB,GAChC,QAAQ,MAAM,EACd,eAAe,MAAM,yCAKtB,CAAA;AAED,mWAAmW;AACnW,eAAO,MA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CAmB9C,CAAA;AAED,yHAAyH;AACzH,eAAO,MAAM,0BAA0B,GACrC,QAAQ,MAAM,EACd,qBAAqB,MAAM,KAC1B,OAAO,CAAC,iBAAiB,CAM3B,CAAA;AAED,uKAAuK;AACvK,eAAO,MAAM,2BAA2B,GACtC,QAAQ,MAAM,EACd,qBAAqB,MAAM,KAC1B,OAAO,CAAC,aAAa,CAIvB,CAAA;AAED,yKAAyK;AACzK,eAAO,MAAM,iBAAiB,GAAU,QAAQ,MAAM,EAAE,WAAW,MAAM,uDAIxE,CAAA;AAED,maAAma;AACna,eAAO,MAAM,2BAA2B,GACtC,QAAQ,MAAM,EACd,mBAAmB,4BAA4B,EAC/C,qBAAqB,MAAM,uDAM5B,CAAA;AAED,gPAAgP;AAChP,eAAO,MAAM,uBAAuB,GAClC,QAAQ,MAAM,EACd,mBAAmB,4BAA4B,oBAOhD,CAAA;AAED,0gBAA0gB;AAC1gB,eAAO,MAAM,iBAAiB,GAC5B,QAAQ,MAAM,EACd,mBAAmB,OAAO,CAAC,iBAAiB,CAAC,mEA6B9C,CAAA;AAED,0RAA0R;AAC1R,eAAO,MAAM,iBAAiB,GAC5B,QAAQ,MAAM,EACd,mBAAmB,OAAO,CAAC,iBAAiB,CAAC,oBAe9C,CAAA"}
@@ -1,5 +1,6 @@
1
- import { formatFilterQuery, formatPaginationParamsForEmporixPagination, } from '../utils/params';
2
- import { getApiClient } from '../client/apiInstance';
1
+ import { formatFilterQuery, formatPaginationParamsForEmporixPagination, } from '../utils/params.js';
2
+ import { getApiClient } from '../client/apiInstance.js';
3
+ /** @deprecated Use `listContactAssignmentsCall` from `@emporix/api-calls/next`, which takes the tenant from the client: `listContactAssignmentsCall({ legalEntityId, type })`. Returns PaginatedResponse instead of an array: read `.values`. It loaded up to 100 assignments; the new call sends no page size (the API pages by 16), so pass `pageSize` or use `fetchAll((params, options) => listContactAssignmentsCall({ ...params, legalEntityId }, options))` for all. */
3
4
  export const fetchContactsForEntityCall = async (tenant, legalEntityId, type) => {
4
5
  const contactAssignmentsResponse = await getApiClient().get(`/customer-management/${tenant}/contact-assignments`, {
5
6
  params: {
@@ -10,6 +11,7 @@ export const fetchContactsForEntityCall = async (tenant, legalEntityId, type) =>
10
11
  });
11
12
  return contactAssignmentsResponse.data;
12
13
  };
14
+ /** @deprecated Use `getLegalEntityCall` from `@emporix/api-calls/next`, which takes the tenant from the client. It does not add `contacts` (this function sent a second request for up to 100 contact assignments of the legal entity); where `contacts` is read, use `getLegalEntityWithContacts(legalEntityId)` from `@emporix/api-calls/platform`, which loads all of them. */
13
15
  export const fetchLegalEntityCall = async (tenant, legalEntityId) => {
14
16
  const legalEntityResponse = await getApiClient().get(`/customer-management/${tenant}/legal-entities/${legalEntityId}`, {
15
17
  headers: {
@@ -21,23 +23,29 @@ export const fetchLegalEntityCall = async (tenant, legalEntityId) => {
21
23
  legalEntity = { ...legalEntity, contacts: contacts };
22
24
  return legalEntity;
23
25
  };
26
+ /** @deprecated Use `upsertLegalEntityCall` from `@emporix/api-calls/next`, which takes the tenant from the client: `upsertLegalEntityCall(legalEntity.id, body)`, the id first. The body is a `LegalEntityUpsert`: name and type are required, and customerGroups, entitiesAddresses and approvalGroup are `{ id }` references. Returns `{ id }` when the PUT created the legal entity and undefined when it updated it, instead of the AxiosResponse. */
24
27
  export const updateLegalEntityCall = async (tenant, legalEntity) => {
25
28
  return await getApiClient().put(`/customer-management/${tenant}/legal-entities/${legalEntity.id}`, { ...legalEntity });
26
29
  };
30
+ /** @deprecated Use `deleteLocationCall` from `@emporix/api-calls/next`, which takes the tenant from the client. Returns void instead of the AxiosResponse. It deletes a Customer Management location; vendor locations need `deleteVendorLocationCall`. */
27
31
  export const deleteLocationCall = async (tenant, locationId) => {
28
32
  return await getApiClient().delete(`/customer-management/${tenant}/locations/${locationId}`);
29
33
  };
34
+ /** @deprecated Use `deleteLegalEntityCall` from `@emporix/api-calls/next`, which takes the tenant from the client. Returns void instead of the AxiosResponse. */
30
35
  export const deleteLegalEntityCall = async (tenant, legalEntityId) => {
31
36
  return await getApiClient().delete(`/customer-management/${tenant}/legal-entities/${legalEntityId}`);
32
37
  };
38
+ /** @deprecated Use `upsertLocationCall` from `@emporix/api-calls/next`, which takes the tenant from the client: `upsertLocationCall(location.id, body)`, the id first. The body is a `LocationUpsert`: type and contactDetails are required. Returns `{ id }` when the PUT created the location and undefined when it updated it, instead of the AxiosResponse. */
33
39
  export const updateLocationCall = async (tenant, location) => {
34
40
  return await getApiClient().put(`/customer-management/${tenant}/locations/${location.id}`, { ...location });
35
41
  };
42
+ /** @deprecated Use `createLegalEntityCall` from `@emporix/api-calls/next`, which takes the tenant from the client. The body is a `LegalEntityCreate` (name required). Returns `{ id }` instead of the AxiosResponse: read `.id` instead of `.data.id`. */
36
43
  export const createLegalEntityCall = async (tenant, legalEntity) => {
37
44
  return await getApiClient().post(`/customer-management/${tenant}/legal-entities`, {
38
45
  ...legalEntity,
39
46
  });
40
47
  };
48
+ /** @deprecated Use `createLegalEntityLocation` from `@emporix/api-calls/platform`, which takes the tenant from the client: `createLegalEntityLocation(legalEntityId, location)` creates the location and adds it first to the legal entity's entitiesAddresses, as before. The body is a `LocationCreate` (type and contactDetails required). Returns `{ id }` instead of the id string (it returned '-1' when the API sent no id). The legal entity update sends the entity's references as `{ id }` and no contacts. To create the location only, use `createLocationCall(location)` from `@emporix/api-calls/next`. */
41
49
  export const createLocationCall = async (tenant, legalEntityId, location) => {
42
50
  const { data } = await getApiClient().post(`/customer-management/${tenant}/locations/`, {
43
51
  ...location,
@@ -57,10 +65,12 @@ export const createLocationCall = async (tenant, legalEntityId, location) => {
57
65
  await updateLegalEntityCall(tenant, legalEntityWithNewLocation);
58
66
  return data.id ? data.id : '-1';
59
67
  };
68
+ /** @deprecated Use `getLocationCall` from `@emporix/api-calls/next`, which takes the tenant from the client. It returns `Location` instead of `LegalEntityLocation`. Pass `{ fields }` in the params to limit the response. */
60
69
  export const fetchLocationCall = async (tenant, locationId) => {
61
70
  const legalEntityResponse = await getApiClient().get(`/customer-management/${tenant}/locations/${locationId}`);
62
71
  return legalEntityResponse.data;
63
72
  };
73
+ /** @deprecated Use `listLocationsCall` from `@emporix/api-calls/next`, which takes the tenant from the client: `listLocationsCall({ filters: [{ field: 'id', op: 'in', value: locationIds }], pageNumber, pageSize })`. ListParams instead of PaginationProps. Returns PaginatedResponse instead of the array: read `.values`. It defaulted to page 1 with 10 locations; the new call sends no paging (the API pages by 16). */
64
74
  export const getLocations = async (tenant, pagination, locationIds) => {
65
75
  const legalEntityResponse = await getApiClient().get(`/customer-management/${tenant}/locations/`, {
66
76
  params: {
@@ -73,6 +83,7 @@ export const getLocations = async (tenant, pagination, locationIds) => {
73
83
  });
74
84
  return legalEntityResponse.data;
75
85
  };
86
+ /** @deprecated Use `listLegalEntitiesCall` from `@emporix/api-calls/next`, which takes the tenant from the client. ListParams instead of PaginationProps; parentId goes in the params: `listLegalEntitiesCall({ ...params, parentId })`. It sent an empty sort when none was set; the new call sends none. withContacts is gone: listLegalEntitiesCall does not add `contacts`; where they are read, use `listLegalEntitiesWithContacts({ ...params, parentId })` from `@emporix/api-calls/platform`, which sends one more request per legal entity as before and loads all of its contact assignments instead of the first 100. */
76
87
  export const fetchLegalEntitiesCall = async (tenant, pagination, paramsData) => {
77
88
  const legalEntitiesResponse = await getApiClient().get(`/customer-management/${tenant}/legal-entities`, {
78
89
  params: {
@@ -103,6 +114,7 @@ export const fetchLegalEntitiesCall = async (tenant, pagination, paramsData) =>
103
114
  totalRecords: parseInt(legalEntitiesResponse.headers['x-total-count']),
104
115
  };
105
116
  };
117
+ /** @deprecated `GET /customer-management/{tenant}/contacts` is not in the Customer Management spec and no consumer calls it; no replacement in ./next. */
106
118
  export const fetchContactsCall = async (tenant, pagination) => {
107
119
  const legalEntitiesResponse = await getApiClient().get(`/customer-management/${tenant}/contacts`, {
108
120
  params: {
@@ -118,6 +130,7 @@ export const fetchContactsCall = async (tenant, pagination) => {
118
130
  totalRecords: parseInt(legalEntitiesResponse.headers['x-total-count']),
119
131
  };
120
132
  };
133
+ /** @deprecated Use `listContactAssignmentsCall` from `@emporix/api-calls/next`, which takes the tenant from the client. ListParams instead of PaginationProps. The extra query params are typed: legalEntityId (sent as legalEntity.id), customerId (sent as customer.id), type and primary; other conditions go in filters or a raw q. */
121
134
  export const fetchContactAssignmentsCall = async (tenant, pagination, params) => {
122
135
  const legalEntitiesResponse = await getApiClient().get(`/customer-management/${tenant}/contact-assignments`, {
123
136
  params: {
@@ -134,23 +147,29 @@ export const fetchContactAssignmentsCall = async (tenant, pagination, params) =>
134
147
  totalRecords: parseInt(legalEntitiesResponse.headers['x-total-count']),
135
148
  };
136
149
  };
150
+ /** @deprecated Use `getContactAssignmentCall` from `@emporix/api-calls/next`, which takes the tenant from the client. */
137
151
  export const fetchContactAssignmentCall = async (tenant, contactAssignmentId) => {
138
152
  const legalEntityResponse = await getApiClient().get(`/customer-management/${tenant}/contact-assignments/${contactAssignmentId}`);
139
153
  return legalEntityResponse.data;
140
154
  };
155
+ /** @deprecated Use `deleteContactAssignmentCall` from `@emporix/api-calls/next`, which takes the tenant from the client. Returns void instead of the AxiosResponse. */
141
156
  export const deleteContactAssignmentCall = async (tenant, contactAssignmentId) => {
142
157
  return await getApiClient().delete(`/customer-management/${tenant}/contact-assignments/${contactAssignmentId}`);
143
158
  };
159
+ /** @deprecated `DELETE /customer-management/{tenant}/contacts/{contactId}` is not in the Customer Management spec and no consumer calls it; no replacement in ./next. */
144
160
  export const deleteContactcall = async (tenant, contactId) => {
145
161
  return await getApiClient().delete(`/customer-management/${tenant}/contacts/${contactId}`);
146
162
  };
163
+ /** @deprecated Use `upsertContactAssignmentCall` from `@emporix/api-calls/next`, which takes the tenant from the client: `upsertContactAssignmentCall(contactAssignmentId, body)`, the id first and the body second. The body is a `ContactAssignmentUpsert`: legalEntity, customer and type are required. Returns `{ id }` when the PUT created the assignment and undefined when it updated it, instead of the AxiosResponse. */
147
164
  export const updateContactAssignmentCall = async (tenant, contactAssignment, contactAssignmentId) => {
148
165
  return await getApiClient().put(`/customer-management/${tenant}/contact-assignments/${contactAssignmentId}`, contactAssignment);
149
166
  };
167
+ /** @deprecated Use `createContactAssignmentCall` from `@emporix/api-calls/next`, which takes the tenant from the client. The body is a `ContactAssignmentCreate`: legalEntity and customer are required. Returns `{ id }` instead of the id. */
150
168
  export const createContactAssignment = async (tenant, contactAssignment) => {
151
169
  const { data } = await getApiClient().post(`/customer-management/${tenant}/contact-assignments/`, contactAssignment);
152
170
  return data.id;
153
171
  };
172
+ /** @deprecated Use `upsertContactAssignmentCall` from `@emporix/api-calls/next`, which takes the tenant from the client, and build the body yourself: `upsertContactAssignmentCall(assignment.id, { legalEntity: { id }, customer: { id }, type, primary, metadata: { version } })`. The old function sent nothing and resolved undefined when the id, legal entity id, customer id, type or version was missing. Returns `{ id }` when the PUT created the assignment and undefined when it updated it, instead of the AxiosResponse. */
154
173
  export const updateContactFlow = async (tenant, contactAssignment) => {
155
174
  if (contactAssignment.id &&
156
175
  contactAssignment?.legalEntity?.id &&
@@ -173,6 +192,7 @@ export const updateContactFlow = async (tenant, contactAssignment) => {
173
192
  return await updateContactAssignmentCall(tenant, contactAssignmentBody, contactAssignment.id);
174
193
  }
175
194
  };
195
+ /** @deprecated Use `createContactAssignmentCall` from `@emporix/api-calls/next`, which takes the tenant from the client, and build the body yourself: `createContactAssignmentCall({ id, legalEntity: { id }, customer: { id }, type, primary })`. Returns `{ id }` instead of the id. */
176
196
  export const createContactFlow = async (tenant, contactAssignment) => {
177
197
  const contactAssignmentBody = {
178
198
  id: contactAssignment?.id,