@commercelayer/sdk 8.0.0-beta.4 → 8.0.0-beta.6

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 (359) hide show
  1. package/lib/{api-X5Fgi78h.d.ts → api-DB1n06hG.d.ts} +42 -25
  2. package/lib/{api-BDCNfn2Y.d.cts → api-DFBhmbb1.d.cts} +42 -25
  3. package/lib/api.cjs +14 -14
  4. package/lib/api.d.cts +1 -1
  5. package/lib/api.d.ts +1 -1
  6. package/lib/api.js +7 -7
  7. package/lib/bundle.cjs +16 -16
  8. package/lib/bundle.d.cts +1 -1
  9. package/lib/bundle.d.ts +1 -1
  10. package/lib/bundle.js +8 -8
  11. package/lib/{chunk-RR3QOFY6.cjs → chunk-47OW2LZH.cjs} +4 -4
  12. package/lib/{chunk-RR3QOFY6.cjs.map → chunk-47OW2LZH.cjs.map} +1 -1
  13. package/lib/{chunk-JEOA64GW.cjs → chunk-4OM2Y7BS.cjs} +2 -2
  14. package/lib/chunk-4OM2Y7BS.cjs.map +1 -0
  15. package/lib/{chunk-EUPQSGPI.js → chunk-7GP6774Q.js} +3 -3
  16. package/lib/{chunk-EUPQSGPI.js.map → chunk-7GP6774Q.js.map} +1 -1
  17. package/lib/{chunk-LOJ7246E.js → chunk-7P36FTRX.js} +2 -2
  18. package/lib/chunk-7P36FTRX.js.map +1 -0
  19. package/lib/{chunk-DHGTIF6A.cjs → chunk-BRWPB33S.cjs} +2 -2
  20. package/lib/chunk-BRWPB33S.cjs.map +1 -0
  21. package/lib/{chunk-ACEZ46QR.js → chunk-IUGXRDL5.js} +3 -3
  22. package/lib/{chunk-ACEZ46QR.js.map → chunk-IUGXRDL5.js.map} +1 -1
  23. package/lib/{chunk-N5BGBBOP.js → chunk-NV364EJH.js} +2 -2
  24. package/lib/chunk-NV364EJH.js.map +1 -0
  25. package/lib/{chunk-A77RAUIU.cjs → chunk-O3UJT5JJ.cjs} +2 -2
  26. package/lib/chunk-O3UJT5JJ.cjs.map +1 -0
  27. package/lib/{chunk-QCY5BXWM.cjs → chunk-OF4M6NEX.cjs} +2 -2
  28. package/lib/chunk-OF4M6NEX.cjs.map +1 -0
  29. package/lib/{chunk-56HCMG32.js → chunk-OLJT7GB7.js} +2 -2
  30. package/lib/chunk-OLJT7GB7.js.map +1 -0
  31. package/lib/{chunk-S4UDNFDR.js → chunk-RDXEF27B.js} +2 -2
  32. package/lib/chunk-RDXEF27B.js.map +1 -0
  33. package/lib/{chunk-FB6DA6TM.cjs → chunk-TGINKJDS.cjs} +2 -2
  34. package/lib/chunk-TGINKJDS.cjs.map +1 -0
  35. package/lib/{chunk-FWBO3MH4.js → chunk-UFW7KJWK.js} +2 -2
  36. package/lib/chunk-UFW7KJWK.js.map +1 -0
  37. package/lib/{chunk-LFNJLWV4.cjs → chunk-VUEZCOXT.cjs} +2 -2
  38. package/lib/chunk-VUEZCOXT.cjs.map +1 -0
  39. package/lib/{chunk-Q5OKMDOT.js → chunk-WMM5EI62.js} +2 -2
  40. package/lib/chunk-WMM5EI62.js.map +1 -0
  41. package/lib/{chunk-KUJFQHAN.js → chunk-Y35I6KPP.js} +2 -2
  42. package/lib/chunk-Y35I6KPP.js.map +1 -0
  43. package/lib/{chunk-QMBAV3D2.cjs → chunk-YEMLHMYR.cjs} +3 -3
  44. package/lib/{chunk-QMBAV3D2.cjs.map → chunk-YEMLHMYR.cjs.map} +1 -1
  45. package/lib/{chunk-536MZPMI.cjs → chunk-YNWHCH2N.cjs} +2 -2
  46. package/lib/chunk-YNWHCH2N.cjs.map +1 -0
  47. package/lib/commercelayer.cjs +5 -5
  48. package/lib/commercelayer.d.cts +3 -3
  49. package/lib/commercelayer.d.ts +3 -3
  50. package/lib/commercelayer.js +1 -1
  51. package/lib/enum.d.cts +1 -1
  52. package/lib/enum.d.ts +1 -1
  53. package/lib/index.cjs +19 -19
  54. package/lib/index.d.cts +1 -1
  55. package/lib/index.d.ts +1 -1
  56. package/lib/index.js +9 -9
  57. package/lib/jsonapi.d.cts +1 -1
  58. package/lib/jsonapi.d.ts +1 -1
  59. package/lib/model.d.cts +1 -1
  60. package/lib/model.d.ts +1 -1
  61. package/lib/query.d.cts +1 -1
  62. package/lib/query.d.ts +1 -1
  63. package/lib/resource.d.cts +1 -1
  64. package/lib/resource.d.ts +1 -1
  65. package/lib/resources/addresses.d.cts +2 -2
  66. package/lib/resources/addresses.d.ts +1 -1
  67. package/lib/resources/adjustments.d.cts +2 -2
  68. package/lib/resources/adjustments.d.ts +1 -1
  69. package/lib/resources/adyen_gateways.d.cts +2 -2
  70. package/lib/resources/adyen_gateways.d.ts +1 -1
  71. package/lib/resources/adyen_payments.cjs +2 -2
  72. package/lib/resources/adyen_payments.d.cts +2 -2
  73. package/lib/resources/adyen_payments.d.ts +1 -1
  74. package/lib/resources/adyen_payments.js +1 -1
  75. package/lib/resources/applications.d.cts +2 -2
  76. package/lib/resources/applications.d.ts +1 -1
  77. package/lib/resources/attachments.d.cts +2 -2
  78. package/lib/resources/attachments.d.ts +1 -1
  79. package/lib/resources/authorizations.d.cts +2 -2
  80. package/lib/resources/authorizations.d.ts +1 -1
  81. package/lib/resources/avalara_accounts.d.cts +2 -2
  82. package/lib/resources/avalara_accounts.d.ts +1 -1
  83. package/lib/resources/axerve_gateways.d.cts +2 -2
  84. package/lib/resources/axerve_gateways.d.ts +1 -1
  85. package/lib/resources/axerve_payments.d.cts +2 -2
  86. package/lib/resources/axerve_payments.d.ts +1 -1
  87. package/lib/resources/bing_geocoders.d.cts +2 -2
  88. package/lib/resources/bing_geocoders.d.ts +1 -1
  89. package/lib/resources/braintree_gateways.d.cts +2 -2
  90. package/lib/resources/braintree_gateways.d.ts +1 -1
  91. package/lib/resources/braintree_payments.d.cts +2 -2
  92. package/lib/resources/braintree_payments.d.ts +1 -1
  93. package/lib/resources/bundles.d.cts +2 -2
  94. package/lib/resources/bundles.d.ts +1 -1
  95. package/lib/resources/buy_x_pay_y_promotions.d.cts +2 -2
  96. package/lib/resources/buy_x_pay_y_promotions.d.ts +1 -1
  97. package/lib/resources/captures.d.cts +2 -2
  98. package/lib/resources/captures.d.ts +1 -1
  99. package/lib/resources/carrier_accounts.d.cts +2 -2
  100. package/lib/resources/carrier_accounts.d.ts +1 -1
  101. package/lib/resources/checkout_com_gateways.d.cts +2 -2
  102. package/lib/resources/checkout_com_gateways.d.ts +1 -1
  103. package/lib/resources/checkout_com_payments.d.cts +2 -2
  104. package/lib/resources/checkout_com_payments.d.ts +1 -1
  105. package/lib/resources/cleanups.cjs +2 -2
  106. package/lib/resources/cleanups.d.cts +2 -2
  107. package/lib/resources/cleanups.d.ts +1 -1
  108. package/lib/resources/cleanups.js +1 -1
  109. package/lib/resources/coupon_codes_promotion_rules.d.cts +2 -2
  110. package/lib/resources/coupon_codes_promotion_rules.d.ts +1 -1
  111. package/lib/resources/coupon_recipients.d.cts +2 -2
  112. package/lib/resources/coupon_recipients.d.ts +1 -1
  113. package/lib/resources/coupons.d.cts +2 -2
  114. package/lib/resources/coupons.d.ts +1 -1
  115. package/lib/resources/custom_promotion_rules.d.cts +2 -2
  116. package/lib/resources/custom_promotion_rules.d.ts +1 -1
  117. package/lib/resources/customer_addresses.d.cts +2 -2
  118. package/lib/resources/customer_addresses.d.ts +1 -1
  119. package/lib/resources/customer_groups.d.cts +2 -2
  120. package/lib/resources/customer_groups.d.ts +1 -1
  121. package/lib/resources/customer_password_resets.d.cts +2 -2
  122. package/lib/resources/customer_password_resets.d.ts +1 -1
  123. package/lib/resources/customer_payment_sources.d.cts +2 -2
  124. package/lib/resources/customer_payment_sources.d.ts +1 -1
  125. package/lib/resources/customer_subscriptions.d.cts +2 -2
  126. package/lib/resources/customer_subscriptions.d.ts +1 -1
  127. package/lib/resources/customers.d.cts +2 -2
  128. package/lib/resources/customers.d.ts +1 -1
  129. package/lib/resources/delivery_lead_times.d.cts +2 -2
  130. package/lib/resources/delivery_lead_times.d.ts +1 -1
  131. package/lib/resources/discount_engine_items.d.cts +2 -2
  132. package/lib/resources/discount_engine_items.d.ts +1 -1
  133. package/lib/resources/discount_engines.d.cts +2 -2
  134. package/lib/resources/discount_engines.d.ts +1 -1
  135. package/lib/resources/easypost_pickups.d.cts +2 -2
  136. package/lib/resources/easypost_pickups.d.ts +1 -1
  137. package/lib/resources/event_callbacks.d.cts +2 -2
  138. package/lib/resources/event_callbacks.d.ts +1 -1
  139. package/lib/resources/event_stores.cjs +2 -2
  140. package/lib/resources/event_stores.d.cts +2 -2
  141. package/lib/resources/event_stores.d.ts +1 -1
  142. package/lib/resources/event_stores.js +1 -1
  143. package/lib/resources/events.d.cts +2 -2
  144. package/lib/resources/events.d.ts +1 -1
  145. package/lib/resources/exports.cjs +2 -2
  146. package/lib/resources/exports.d.cts +2 -2
  147. package/lib/resources/exports.d.ts +1 -1
  148. package/lib/resources/exports.js +1 -1
  149. package/lib/resources/external_gateways.d.cts +2 -2
  150. package/lib/resources/external_gateways.d.ts +1 -1
  151. package/lib/resources/external_payments.d.cts +2 -2
  152. package/lib/resources/external_payments.d.ts +1 -1
  153. package/lib/resources/external_promotions.d.cts +2 -2
  154. package/lib/resources/external_promotions.d.ts +1 -1
  155. package/lib/resources/external_tax_calculators.d.cts +2 -2
  156. package/lib/resources/external_tax_calculators.d.ts +1 -1
  157. package/lib/resources/fixed_amount_promotions.d.cts +2 -2
  158. package/lib/resources/fixed_amount_promotions.d.ts +1 -1
  159. package/lib/resources/fixed_price_promotions.d.cts +2 -2
  160. package/lib/resources/fixed_price_promotions.d.ts +1 -1
  161. package/lib/resources/flex_promotions.d.cts +2 -2
  162. package/lib/resources/flex_promotions.d.ts +1 -1
  163. package/lib/resources/free_gift_promotions.d.cts +2 -2
  164. package/lib/resources/free_gift_promotions.d.ts +1 -1
  165. package/lib/resources/free_shipping_promotions.d.cts +2 -2
  166. package/lib/resources/free_shipping_promotions.d.ts +1 -1
  167. package/lib/resources/geocoders.d.cts +2 -2
  168. package/lib/resources/geocoders.d.ts +1 -1
  169. package/lib/resources/gift_card_recipients.d.cts +2 -2
  170. package/lib/resources/gift_card_recipients.d.ts +1 -1
  171. package/lib/resources/gift_cards.d.cts +2 -2
  172. package/lib/resources/gift_cards.d.ts +1 -1
  173. package/lib/resources/google_geocoders.d.cts +2 -2
  174. package/lib/resources/google_geocoders.d.ts +1 -1
  175. package/lib/resources/imports.cjs +2 -2
  176. package/lib/resources/imports.d.cts +2 -2
  177. package/lib/resources/imports.d.ts +1 -1
  178. package/lib/resources/imports.js +1 -1
  179. package/lib/resources/in_stock_subscriptions.d.cts +2 -2
  180. package/lib/resources/in_stock_subscriptions.d.ts +1 -1
  181. package/lib/resources/inventory_models.d.cts +2 -2
  182. package/lib/resources/inventory_models.d.ts +1 -1
  183. package/lib/resources/inventory_return_locations.d.cts +2 -2
  184. package/lib/resources/inventory_return_locations.d.ts +1 -1
  185. package/lib/resources/inventory_stock_locations.d.cts +2 -2
  186. package/lib/resources/inventory_stock_locations.d.ts +1 -1
  187. package/lib/resources/klarna_gateways.d.cts +2 -2
  188. package/lib/resources/klarna_gateways.d.ts +1 -1
  189. package/lib/resources/klarna_payments.d.cts +2 -2
  190. package/lib/resources/klarna_payments.d.ts +1 -1
  191. package/lib/resources/line_item_options.d.cts +2 -2
  192. package/lib/resources/line_item_options.d.ts +1 -1
  193. package/lib/resources/line_items.d.cts +2 -2
  194. package/lib/resources/line_items.d.ts +1 -1
  195. package/lib/resources/links.d.cts +2 -2
  196. package/lib/resources/links.d.ts +1 -1
  197. package/lib/resources/manual_gateways.d.cts +2 -2
  198. package/lib/resources/manual_gateways.d.ts +1 -1
  199. package/lib/resources/manual_tax_calculators.d.cts +2 -2
  200. package/lib/resources/manual_tax_calculators.d.ts +1 -1
  201. package/lib/resources/markets.d.cts +2 -2
  202. package/lib/resources/markets.d.ts +1 -1
  203. package/lib/resources/merchants.d.cts +2 -2
  204. package/lib/resources/merchants.d.ts +1 -1
  205. package/lib/resources/notifications.d.cts +2 -2
  206. package/lib/resources/notifications.d.ts +1 -1
  207. package/lib/resources/order_amount_promotion_rules.d.cts +2 -2
  208. package/lib/resources/order_amount_promotion_rules.d.ts +1 -1
  209. package/lib/resources/order_copies.d.cts +2 -2
  210. package/lib/resources/order_copies.d.ts +1 -1
  211. package/lib/resources/order_factories.d.cts +2 -2
  212. package/lib/resources/order_factories.d.ts +1 -1
  213. package/lib/resources/order_subscription_items.d.cts +2 -2
  214. package/lib/resources/order_subscription_items.d.ts +1 -1
  215. package/lib/resources/order_subscriptions.d.cts +2 -2
  216. package/lib/resources/order_subscriptions.d.ts +1 -1
  217. package/lib/resources/orders.d.cts +2 -2
  218. package/lib/resources/orders.d.ts +1 -1
  219. package/lib/resources/organizations.cjs +2 -2
  220. package/lib/resources/organizations.d.cts +2 -2
  221. package/lib/resources/organizations.d.ts +1 -1
  222. package/lib/resources/organizations.js +1 -1
  223. package/lib/resources/packages.d.cts +2 -2
  224. package/lib/resources/packages.d.ts +1 -1
  225. package/lib/resources/parcel_line_items.d.cts +2 -2
  226. package/lib/resources/parcel_line_items.d.ts +1 -1
  227. package/lib/resources/parcels.d.cts +2 -2
  228. package/lib/resources/parcels.d.ts +1 -1
  229. package/lib/resources/payment_gateways.d.cts +2 -2
  230. package/lib/resources/payment_gateways.d.ts +1 -1
  231. package/lib/resources/payment_methods.d.cts +2 -2
  232. package/lib/resources/payment_methods.d.ts +1 -1
  233. package/lib/resources/payment_options.d.cts +2 -2
  234. package/lib/resources/payment_options.d.ts +1 -1
  235. package/lib/resources/paypal_gateways.d.cts +2 -2
  236. package/lib/resources/paypal_gateways.d.ts +1 -1
  237. package/lib/resources/paypal_payments.d.cts +2 -2
  238. package/lib/resources/paypal_payments.d.ts +1 -1
  239. package/lib/resources/percentage_discount_promotions.d.cts +2 -2
  240. package/lib/resources/percentage_discount_promotions.d.ts +1 -1
  241. package/lib/resources/pickups.d.cts +2 -2
  242. package/lib/resources/pickups.d.ts +1 -1
  243. package/lib/resources/price_frequency_tiers.d.cts +2 -2
  244. package/lib/resources/price_frequency_tiers.d.ts +1 -1
  245. package/lib/resources/price_list_schedulers.d.cts +2 -2
  246. package/lib/resources/price_list_schedulers.d.ts +1 -1
  247. package/lib/resources/price_lists.d.cts +2 -2
  248. package/lib/resources/price_lists.d.ts +1 -1
  249. package/lib/resources/price_tiers.d.cts +2 -2
  250. package/lib/resources/price_tiers.d.ts +1 -1
  251. package/lib/resources/price_volume_tiers.d.cts +2 -2
  252. package/lib/resources/price_volume_tiers.d.ts +1 -1
  253. package/lib/resources/prices.d.cts +2 -2
  254. package/lib/resources/prices.d.ts +1 -1
  255. package/lib/resources/promotion_rules.d.cts +2 -2
  256. package/lib/resources/promotion_rules.d.ts +1 -1
  257. package/lib/resources/promotions.d.cts +2 -2
  258. package/lib/resources/promotions.d.ts +1 -1
  259. package/lib/resources/recurring_order_copies.d.cts +2 -2
  260. package/lib/resources/recurring_order_copies.d.ts +1 -1
  261. package/lib/resources/refunds.d.cts +2 -2
  262. package/lib/resources/refunds.d.ts +1 -1
  263. package/lib/resources/reserved_stocks.d.cts +2 -2
  264. package/lib/resources/reserved_stocks.d.ts +1 -1
  265. package/lib/resources/resource_errors.d.cts +2 -2
  266. package/lib/resources/resource_errors.d.ts +1 -1
  267. package/lib/resources/return_line_items.d.cts +2 -2
  268. package/lib/resources/return_line_items.d.ts +1 -1
  269. package/lib/resources/returns.d.cts +2 -2
  270. package/lib/resources/returns.d.ts +1 -1
  271. package/lib/resources/satispay_gateways.d.cts +2 -2
  272. package/lib/resources/satispay_gateways.d.ts +1 -1
  273. package/lib/resources/satispay_payments.d.cts +2 -2
  274. package/lib/resources/satispay_payments.d.ts +1 -1
  275. package/lib/resources/shipments.d.cts +2 -2
  276. package/lib/resources/shipments.d.ts +1 -1
  277. package/lib/resources/shipping_categories.d.cts +2 -2
  278. package/lib/resources/shipping_categories.d.ts +1 -1
  279. package/lib/resources/shipping_method_tiers.d.cts +2 -2
  280. package/lib/resources/shipping_method_tiers.d.ts +1 -1
  281. package/lib/resources/shipping_methods.d.cts +2 -2
  282. package/lib/resources/shipping_methods.d.ts +1 -1
  283. package/lib/resources/shipping_weight_tiers.d.cts +2 -2
  284. package/lib/resources/shipping_weight_tiers.d.ts +1 -1
  285. package/lib/resources/shipping_zones.d.cts +2 -2
  286. package/lib/resources/shipping_zones.d.ts +1 -1
  287. package/lib/resources/sku_list_items.d.cts +2 -2
  288. package/lib/resources/sku_list_items.d.ts +1 -1
  289. package/lib/resources/sku_list_promotion_rules.d.cts +2 -2
  290. package/lib/resources/sku_list_promotion_rules.d.ts +1 -1
  291. package/lib/resources/sku_lists.d.cts +2 -2
  292. package/lib/resources/sku_lists.d.ts +1 -1
  293. package/lib/resources/sku_options.d.cts +2 -2
  294. package/lib/resources/sku_options.d.ts +1 -1
  295. package/lib/resources/skus.d.cts +2 -2
  296. package/lib/resources/skus.d.ts +1 -1
  297. package/lib/resources/stock_items.d.cts +2 -2
  298. package/lib/resources/stock_items.d.ts +1 -1
  299. package/lib/resources/stock_line_items.d.cts +2 -2
  300. package/lib/resources/stock_line_items.d.ts +1 -1
  301. package/lib/resources/stock_locations.d.cts +2 -2
  302. package/lib/resources/stock_locations.d.ts +1 -1
  303. package/lib/resources/stock_reservations.d.cts +2 -2
  304. package/lib/resources/stock_reservations.d.ts +1 -1
  305. package/lib/resources/stock_transfers.d.cts +2 -2
  306. package/lib/resources/stock_transfers.d.ts +1 -1
  307. package/lib/resources/stores.d.cts +2 -2
  308. package/lib/resources/stores.d.ts +1 -1
  309. package/lib/resources/stripe_gateways.d.cts +2 -2
  310. package/lib/resources/stripe_gateways.d.ts +1 -1
  311. package/lib/resources/stripe_payments.d.cts +2 -2
  312. package/lib/resources/stripe_payments.d.ts +1 -1
  313. package/lib/resources/stripe_tax_accounts.d.cts +2 -2
  314. package/lib/resources/stripe_tax_accounts.d.ts +1 -1
  315. package/lib/resources/subscription_models.d.cts +2 -2
  316. package/lib/resources/subscription_models.d.ts +1 -1
  317. package/lib/resources/tags.d.cts +2 -2
  318. package/lib/resources/tags.d.ts +1 -1
  319. package/lib/resources/talon_one_accounts.d.cts +2 -2
  320. package/lib/resources/talon_one_accounts.d.ts +1 -1
  321. package/lib/resources/tax_calculators.d.cts +2 -2
  322. package/lib/resources/tax_calculators.d.ts +1 -1
  323. package/lib/resources/tax_categories.d.cts +2 -2
  324. package/lib/resources/tax_categories.d.ts +1 -1
  325. package/lib/resources/tax_rules.d.cts +2 -2
  326. package/lib/resources/tax_rules.d.ts +1 -1
  327. package/lib/resources/taxjar_accounts.d.cts +2 -2
  328. package/lib/resources/taxjar_accounts.d.ts +1 -1
  329. package/lib/resources/transactions.d.cts +2 -2
  330. package/lib/resources/transactions.d.ts +1 -1
  331. package/lib/resources/vertex_accounts.cjs +2 -2
  332. package/lib/resources/vertex_accounts.d.cts +2 -2
  333. package/lib/resources/vertex_accounts.d.ts +1 -1
  334. package/lib/resources/vertex_accounts.js +1 -1
  335. package/lib/resources/voids.d.cts +2 -2
  336. package/lib/resources/voids.d.ts +1 -1
  337. package/lib/resources/webhooks.d.cts +2 -2
  338. package/lib/resources/webhooks.d.ts +1 -1
  339. package/lib/resources/wire_transfers.d.cts +2 -2
  340. package/lib/resources/wire_transfers.d.ts +1 -1
  341. package/lib/static.cjs +3 -3
  342. package/lib/static.d.cts +1 -1
  343. package/lib/static.d.ts +1 -1
  344. package/lib/static.js +2 -2
  345. package/package.json +8 -8
  346. package/lib/chunk-536MZPMI.cjs.map +0 -1
  347. package/lib/chunk-56HCMG32.js.map +0 -1
  348. package/lib/chunk-A77RAUIU.cjs.map +0 -1
  349. package/lib/chunk-DHGTIF6A.cjs.map +0 -1
  350. package/lib/chunk-FB6DA6TM.cjs.map +0 -1
  351. package/lib/chunk-FWBO3MH4.js.map +0 -1
  352. package/lib/chunk-JEOA64GW.cjs.map +0 -1
  353. package/lib/chunk-KUJFQHAN.js.map +0 -1
  354. package/lib/chunk-LFNJLWV4.cjs.map +0 -1
  355. package/lib/chunk-LOJ7246E.js.map +0 -1
  356. package/lib/chunk-N5BGBBOP.js.map +0 -1
  357. package/lib/chunk-Q5OKMDOT.js.map +0 -1
  358. package/lib/chunk-QCY5BXWM.cjs.map +0 -1
  359. package/lib/chunk-S4UDNFDR.js.map +0 -1
package/lib/api.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import './chunk-3EX76AZW.js';
2
2
  export { transactions_default as transactions } from './chunk-APTNONWZ.js';
3
- export { vertex_accounts_default as vertex_accounts } from './chunk-KUJFQHAN.js';
3
+ export { vertex_accounts_default as vertex_accounts } from './chunk-Y35I6KPP.js';
4
4
  export { voids_default as voids } from './chunk-MOYV2F4C.js';
5
5
  export { webhooks_default as webhooks } from './chunk-NWPF43O7.js';
6
6
  export { wire_transfers_default as wire_transfers } from './chunk-2NWYRIJZ.js';
@@ -54,7 +54,7 @@ export { price_list_schedulers_default as price_list_schedulers } from './chunk-
54
54
  export { price_lists_default as price_lists } from './chunk-NIFNQI3P.js';
55
55
  export { order_subscriptions_default as order_subscriptions } from './chunk-TVKGUM2Z.js';
56
56
  export { orders_default as orders } from './chunk-EWFAT7KA.js';
57
- export { organizations_default as organization } from './chunk-56HCMG32.js';
57
+ export { organizations_default as organization } from './chunk-OLJT7GB7.js';
58
58
  export { packages_default as packages } from './chunk-NSMPVEO4.js';
59
59
  export { parcel_line_items_default as parcel_line_items } from './chunk-OEMRZEYB.js';
60
60
  export { parcels_default as parcels } from './chunk-DJRBEANR.js';
@@ -81,7 +81,7 @@ export { geocoders_default as geocoders } from './chunk-D3VJO4HP.js';
81
81
  export { gift_card_recipients_default as gift_card_recipients } from './chunk-DBJEPEBT.js';
82
82
  export { gift_cards_default as gift_cards } from './chunk-35Q3ZTZC.js';
83
83
  export { google_geocoders_default as google_geocoders } from './chunk-VI2NCCWC.js';
84
- export { imports_default as imports } from './chunk-S4UDNFDR.js';
84
+ export { imports_default as imports } from './chunk-RDXEF27B.js';
85
85
  export { in_stock_subscriptions_default as in_stock_subscriptions } from './chunk-IYGFGGZR.js';
86
86
  export { inventory_models_default as inventory_models } from './chunk-GZPZZ262.js';
87
87
  export { external_gateways_default as external_gateways } from './chunk-KJWEQIEM.js';
@@ -97,9 +97,9 @@ export { discount_engine_items_default as discount_engine_items } from './chunk-
97
97
  export { discount_engines_default as discount_engines } from './chunk-CM4DAVO4.js';
98
98
  export { easypost_pickups_default as easypost_pickups } from './chunk-ESI7A34I.js';
99
99
  export { event_callbacks_default as event_callbacks } from './chunk-JRVZ4JQI.js';
100
- export { event_stores_default as event_stores } from './chunk-Q5OKMDOT.js';
100
+ export { event_stores_default as event_stores } from './chunk-WMM5EI62.js';
101
101
  export { events_default as events } from './chunk-QF6DOS2C.js';
102
- export { exports_default as exports } from './chunk-N5BGBBOP.js';
102
+ export { exports_default as exports } from './chunk-NV364EJH.js';
103
103
  export { coupons_default as coupons } from './chunk-QI4UFW5A.js';
104
104
  export { custom_promotion_rules_default as custom_promotion_rules } from './chunk-M22WZEWB.js';
105
105
  export { customer_addresses_default as customer_addresses } from './chunk-VXXJ3CIC.js';
@@ -113,7 +113,7 @@ export { captures_default as captures } from './chunk-JHYHQV3E.js';
113
113
  export { carrier_accounts_default as carrier_accounts } from './chunk-X55DEMOC.js';
114
114
  export { checkout_com_gateways_default as checkout_com_gateways } from './chunk-73P72ADW.js';
115
115
  export { checkout_com_payments_default as checkout_com_payments } from './chunk-43JU63UQ.js';
116
- export { cleanups_default as cleanups } from './chunk-LOJ7246E.js';
116
+ export { cleanups_default as cleanups } from './chunk-7P36FTRX.js';
117
117
  export { coupon_codes_promotion_rules_default as coupon_codes_promotion_rules } from './chunk-VA6VDBQS.js';
118
118
  export { coupon_recipients_default as coupon_recipients } from './chunk-2HNW5KNF.js';
119
119
  export { authorizations_default as authorizations } from './chunk-TRDTLOUY.js';
@@ -127,7 +127,7 @@ export { bundles_default as bundles } from './chunk-GIZE32ZY.js';
127
127
  export { addresses_default as addresses } from './chunk-EQZMPSGR.js';
128
128
  export { adjustments_default as adjustments } from './chunk-Q3WUCLM5.js';
129
129
  export { adyen_gateways_default as adyen_gateways } from './chunk-UTQEHWH2.js';
130
- export { adyen_payments_default as adyen_payments } from './chunk-FWBO3MH4.js';
130
+ export { adyen_payments_default as adyen_payments } from './chunk-UFW7KJWK.js';
131
131
  export { applications_default as application } from './chunk-EOV3GRPM.js';
132
132
  export { attachments_default as attachments } from './chunk-6BXCQFTI.js';
133
133
  import './chunk-YRCCY6RV.js';
package/lib/bundle.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./chunk-5YMHXTJG.cjs');
4
4
  var chunkUL4JQZUD_cjs = require('./chunk-UL4JQZUD.cjs');
5
- var chunkA77RAUIU_cjs = require('./chunk-A77RAUIU.cjs');
5
+ var chunkO3UJT5JJ_cjs = require('./chunk-O3UJT5JJ.cjs');
6
6
  var chunkTUKV2ZIA_cjs = require('./chunk-TUKV2ZIA.cjs');
7
7
  var chunk5TLVMKOO_cjs = require('./chunk-5TLVMKOO.cjs');
8
8
  var chunkATK6TFVA_cjs = require('./chunk-ATK6TFVA.cjs');
@@ -56,7 +56,7 @@ var chunk2CMJ2SZM_cjs = require('./chunk-2CMJ2SZM.cjs');
56
56
  var chunkL4PEYYXQ_cjs = require('./chunk-L4PEYYXQ.cjs');
57
57
  var chunkY4GGZ4EQ_cjs = require('./chunk-Y4GGZ4EQ.cjs');
58
58
  var chunk4S3I222F_cjs = require('./chunk-4S3I222F.cjs');
59
- var chunkLFNJLWV4_cjs = require('./chunk-LFNJLWV4.cjs');
59
+ var chunkVUEZCOXT_cjs = require('./chunk-VUEZCOXT.cjs');
60
60
  var chunk2QXENUO7_cjs = require('./chunk-2QXENUO7.cjs');
61
61
  var chunkKC46F2PJ_cjs = require('./chunk-KC46F2PJ.cjs');
62
62
  var chunk4ZIGP3FO_cjs = require('./chunk-4ZIGP3FO.cjs');
@@ -83,7 +83,7 @@ var chunkMHNJALUB_cjs = require('./chunk-MHNJALUB.cjs');
83
83
  var chunkH6K62JGC_cjs = require('./chunk-H6K62JGC.cjs');
84
84
  var chunkP5EEPVZA_cjs = require('./chunk-P5EEPVZA.cjs');
85
85
  var chunkM7SVKQ7R_cjs = require('./chunk-M7SVKQ7R.cjs');
86
- var chunkQCY5BXWM_cjs = require('./chunk-QCY5BXWM.cjs');
86
+ var chunkOF4M6NEX_cjs = require('./chunk-OF4M6NEX.cjs');
87
87
  var chunk4E5BE47D_cjs = require('./chunk-4E5BE47D.cjs');
88
88
  var chunkRKD7U6QH_cjs = require('./chunk-RKD7U6QH.cjs');
89
89
  var chunkCQXW23HJ_cjs = require('./chunk-CQXW23HJ.cjs');
@@ -99,9 +99,9 @@ var chunkA7BK3Z22_cjs = require('./chunk-A7BK3Z22.cjs');
99
99
  var chunkZGX3A2OH_cjs = require('./chunk-ZGX3A2OH.cjs');
100
100
  var chunk3PAID2YG_cjs = require('./chunk-3PAID2YG.cjs');
101
101
  var chunkCJPAOOG5_cjs = require('./chunk-CJPAOOG5.cjs');
102
- var chunk536MZPMI_cjs = require('./chunk-536MZPMI.cjs');
102
+ var chunkYNWHCH2N_cjs = require('./chunk-YNWHCH2N.cjs');
103
103
  var chunkINBIEH6H_cjs = require('./chunk-INBIEH6H.cjs');
104
- var chunkFB6DA6TM_cjs = require('./chunk-FB6DA6TM.cjs');
104
+ var chunkTGINKJDS_cjs = require('./chunk-TGINKJDS.cjs');
105
105
  var chunk2VI6OWLV_cjs = require('./chunk-2VI6OWLV.cjs');
106
106
  var chunkZJE7A6E6_cjs = require('./chunk-ZJE7A6E6.cjs');
107
107
  var chunkYYAEAKBO_cjs = require('./chunk-YYAEAKBO.cjs');
@@ -115,7 +115,7 @@ var chunkJGTC32IT_cjs = require('./chunk-JGTC32IT.cjs');
115
115
  var chunkFUQA5XT7_cjs = require('./chunk-FUQA5XT7.cjs');
116
116
  var chunkO6QJMGK7_cjs = require('./chunk-O6QJMGK7.cjs');
117
117
  var chunkXPPCVN6T_cjs = require('./chunk-XPPCVN6T.cjs');
118
- var chunkJEOA64GW_cjs = require('./chunk-JEOA64GW.cjs');
118
+ var chunk4OM2Y7BS_cjs = require('./chunk-4OM2Y7BS.cjs');
119
119
  var chunkQDZI3I46_cjs = require('./chunk-QDZI3I46.cjs');
120
120
  var chunkVB7XUWBF_cjs = require('./chunk-VB7XUWBF.cjs');
121
121
  var chunkPULH7AI4_cjs = require('./chunk-PULH7AI4.cjs');
@@ -129,10 +129,10 @@ var chunk7ZBEKCA5_cjs = require('./chunk-7ZBEKCA5.cjs');
129
129
  var chunkT2DEYIX6_cjs = require('./chunk-T2DEYIX6.cjs');
130
130
  var chunkIYQFTOVG_cjs = require('./chunk-IYQFTOVG.cjs');
131
131
  var chunkJE3P5NJP_cjs = require('./chunk-JE3P5NJP.cjs');
132
- var chunkDHGTIF6A_cjs = require('./chunk-DHGTIF6A.cjs');
132
+ var chunkBRWPB33S_cjs = require('./chunk-BRWPB33S.cjs');
133
133
  var chunkSGXMH2JP_cjs = require('./chunk-SGXMH2JP.cjs');
134
134
  var chunkLHESCZ5L_cjs = require('./chunk-LHESCZ5L.cjs');
135
- var chunkQMBAV3D2_cjs = require('./chunk-QMBAV3D2.cjs');
135
+ var chunkYEMLHMYR_cjs = require('./chunk-YEMLHMYR.cjs');
136
136
  require('./chunk-L7FT6NDZ.cjs');
137
137
  require('./chunk-3GOADUES.cjs');
138
138
  require('./chunk-UQQTNQX3.cjs');
@@ -145,7 +145,7 @@ require('./chunk-JEQ2X3Z6.cjs');
145
145
 
146
146
  // src/bundle.ts
147
147
  var debug = chunk7RZTCBDR_cjs.debug_default("bundle");
148
- var CommerceLayerBundle = class _CommerceLayerBundle extends chunkQMBAV3D2_cjs.CommerceLayerClient {
148
+ var CommerceLayerBundle = class _CommerceLayerBundle extends chunkYEMLHMYR_cjs.CommerceLayerClient {
149
149
  // ##__CL_RESOURCES_DEF_START__##
150
150
  // ##__CL_RESOURCES_DEF_TEMPLATE:: ##__TAB__#####__RESOURCE_TYPE__##?: api.##__RESOURCE_CLASS__##
151
151
  // ##__CL_RESOURCES_DEF_STOP__##
@@ -174,7 +174,7 @@ var CommerceLayerBundle = class _CommerceLayerBundle extends chunkQMBAV3D2_cjs.C
174
174
  return chunkJE3P5NJP_cjs.adyen_gateways_default;
175
175
  }
176
176
  get adyen_payments() {
177
- return chunkDHGTIF6A_cjs.adyen_payments_default;
177
+ return chunkBRWPB33S_cjs.adyen_payments_default;
178
178
  }
179
179
  get application() {
180
180
  return chunkSGXMH2JP_cjs.applications_default;
@@ -222,7 +222,7 @@ var CommerceLayerBundle = class _CommerceLayerBundle extends chunkQMBAV3D2_cjs.C
222
222
  return chunkXPPCVN6T_cjs.checkout_com_payments_default;
223
223
  }
224
224
  get cleanups() {
225
- return chunkJEOA64GW_cjs.cleanups_default;
225
+ return chunk4OM2Y7BS_cjs.cleanups_default;
226
226
  }
227
227
  get coupon_codes_promotion_rules() {
228
228
  return chunkQDZI3I46_cjs.coupon_codes_promotion_rules_default;
@@ -270,13 +270,13 @@ var CommerceLayerBundle = class _CommerceLayerBundle extends chunkQMBAV3D2_cjs.C
270
270
  return chunkCJPAOOG5_cjs.event_callbacks_default;
271
271
  }
272
272
  get event_stores() {
273
- return chunk536MZPMI_cjs.event_stores_default;
273
+ return chunkYNWHCH2N_cjs.event_stores_default;
274
274
  }
275
275
  get events() {
276
276
  return chunkINBIEH6H_cjs.events_default;
277
277
  }
278
278
  get exports() {
279
- return chunkFB6DA6TM_cjs.exports_default;
279
+ return chunkTGINKJDS_cjs.exports_default;
280
280
  }
281
281
  get external_gateways() {
282
282
  return chunkCQXW23HJ_cjs.external_gateways_default;
@@ -318,7 +318,7 @@ var CommerceLayerBundle = class _CommerceLayerBundle extends chunkQMBAV3D2_cjs.C
318
318
  return chunkM7SVKQ7R_cjs.google_geocoders_default;
319
319
  }
320
320
  get imports() {
321
- return chunkQCY5BXWM_cjs.imports_default;
321
+ return chunkOF4M6NEX_cjs.imports_default;
322
322
  }
323
323
  get in_stock_subscriptions() {
324
324
  return chunk4E5BE47D_cjs.in_stock_subscriptions_default;
@@ -381,7 +381,7 @@ var CommerceLayerBundle = class _CommerceLayerBundle extends chunkQMBAV3D2_cjs.C
381
381
  return chunk4S3I222F_cjs.orders_default;
382
382
  }
383
383
  get organization() {
384
- return chunkLFNJLWV4_cjs.organizations_default;
384
+ return chunkVUEZCOXT_cjs.organizations_default;
385
385
  }
386
386
  get packages() {
387
387
  return chunk2QXENUO7_cjs.packages_default;
@@ -546,7 +546,7 @@ var CommerceLayerBundle = class _CommerceLayerBundle extends chunkQMBAV3D2_cjs.C
546
546
  return chunkUL4JQZUD_cjs.transactions_default;
547
547
  }
548
548
  get vertex_accounts() {
549
- return chunkA77RAUIU_cjs.vertex_accounts_default;
549
+ return chunkO3UJT5JJ_cjs.vertex_accounts_default;
550
550
  }
551
551
  get voids() {
552
552
  return chunkTUKV2ZIA_cjs.voids_default;
package/lib/bundle.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { e as Addresses, k as Adjustments, q as AdyenGateways, w as AdyenPayments, E as Applications, K as Attachments, P as Authorizations, V as AvalaraAccounts, $ as AxerveGateways, a5 as AxervePayments, ab as BingGeocoders, ah as BraintreeGateways, an as BraintreePayments, at as Bundles, az as BuyXPayYPromotions, aE as Captures, aK as CarrierAccounts, aQ as CheckoutComGateways, aW as CheckoutComPayments, b0 as Cleanups, b7 as CouponCodesPromotionRules, be as CouponRecipients, bi as Coupons, bq as CustomPromotionRules, bx as CustomerAddresses, bE as CustomerGroups, bK as CustomerPasswordResets, bQ as CustomerPaymentSources, bX as CustomerSubscriptions, b_ as Customers, c6 as DeliveryLeadTimes, cb as DiscountEngineItems, ce as DiscountEngines, ck as EasypostPickups, cp as EventCallbacks, cu as EventStores, cx as Events, cD as Exports, cJ as ExternalGateways, cP as ExternalPayments, cV as ExternalPromotions, c$ as ExternalTaxCalculators, d5 as FixedAmountPromotions, db as FixedPricePromotions, dh as FlexPromotions, dn as FreeGiftPromotions, du as FreeShippingPromotions, dy as Geocoders, dG as GiftCardRecipients, dK as GiftCards, dQ as GoogleGeocoders, dW as Imports, e0 as InStockSubscriptions, e6 as InventoryModels, ec as InventoryReturnLocations, ei as InventoryStockLocations, eo as KlarnaGateways, eu as KlarnaPayments, eC as LineItemOptions, eG as LineItems, eM as Links, eW as ManualGateways, f0 as ManualTaxCalculators, f6 as Markets, fc as Merchants, fj as Notifications, fq as OrderAmountPromotionRules, fr as OrderCopies, fy as OrderFactories, fK as OrderSubscriptionItems, fO as OrderSubscriptions, fR as Orders, fV as Organizations, f$ as Packages, g7 as ParcelLineItems, gb as Parcels, gf as PaymentGateways, gl as PaymentMethods, gr as PaymentOptions, gx as PaypalGateways, gD as PaypalPayments, gJ as PercentageDiscountPromotions, gN as Pickups, gV as PriceFrequencyTiers, h1 as PriceListSchedulers, h5 as PriceLists, ha as PriceTiers, hi as PriceVolumeTiers, hj as Prices, ho as PromotionRules, hr as Promotions, hB as RecurringOrderCopies, hL as Refunds, hP as ReservedStocks, hW as ResourceErrors, ig as ReturnLineItems, ik as Returns, ir as SatispayGateways, ix as SatispayPayments, iD as Shipments, iE as ShippingCategories, iQ as ShippingMethodTiers, iT as ShippingMethods, iZ as ShippingWeightTiers, j3 as ShippingZones, jd as SkuListItems, jj as SkuListPromotionRules, jn as SkuLists, jt as SkuOptions, jx as Skus, jD as StockItems, jJ as StockLineItems, jP as StockLocations, jV as StockReservations, j$ as StockTransfers, k5 as Stores, kb as StripeGateways, kh as StripePayments, kn as StripeTaxAccounts, kt as SubscriptionModels, kB as Tags, kH as TalonOneAccounts, kL as TaxCalculators, kM as TaxCategories, kX as TaxRules, l1 as TaxjarAccounts, l5 as Transactions, ld as VertexAccounts, li as Voids, lo as Webhooks, lu as WireTransfers } from './api-BDCNfn2Y.cjs';
1
+ import { e as Addresses, k as Adjustments, q as AdyenGateways, w as AdyenPayments, E as Applications, K as Attachments, P as Authorizations, V as AvalaraAccounts, $ as AxerveGateways, a5 as AxervePayments, ab as BingGeocoders, ah as BraintreeGateways, an as BraintreePayments, at as Bundles, az as BuyXPayYPromotions, aE as Captures, aK as CarrierAccounts, aQ as CheckoutComGateways, aW as CheckoutComPayments, b0 as Cleanups, b7 as CouponCodesPromotionRules, be as CouponRecipients, bi as Coupons, bq as CustomPromotionRules, bx as CustomerAddresses, bE as CustomerGroups, bK as CustomerPasswordResets, bQ as CustomerPaymentSources, bX as CustomerSubscriptions, b_ as Customers, c6 as DeliveryLeadTimes, cb as DiscountEngineItems, ce as DiscountEngines, ck as EasypostPickups, cp as EventCallbacks, cu as EventStores, cx as Events, cD as Exports, cJ as ExternalGateways, cP as ExternalPayments, cV as ExternalPromotions, c$ as ExternalTaxCalculators, d5 as FixedAmountPromotions, db as FixedPricePromotions, dh as FlexPromotions, dn as FreeGiftPromotions, du as FreeShippingPromotions, dy as Geocoders, dG as GiftCardRecipients, dK as GiftCards, dQ as GoogleGeocoders, dW as Imports, e0 as InStockSubscriptions, e6 as InventoryModels, ec as InventoryReturnLocations, ei as InventoryStockLocations, eo as KlarnaGateways, eu as KlarnaPayments, eC as LineItemOptions, eG as LineItems, eM as Links, eW as ManualGateways, f0 as ManualTaxCalculators, f6 as Markets, fc as Merchants, fj as Notifications, fq as OrderAmountPromotionRules, fr as OrderCopies, fy as OrderFactories, fK as OrderSubscriptionItems, fO as OrderSubscriptions, fR as Orders, fV as Organizations, f$ as Packages, g7 as ParcelLineItems, gb as Parcels, gf as PaymentGateways, gl as PaymentMethods, gr as PaymentOptions, gx as PaypalGateways, gD as PaypalPayments, gJ as PercentageDiscountPromotions, gN as Pickups, gV as PriceFrequencyTiers, h1 as PriceListSchedulers, h5 as PriceLists, ha as PriceTiers, hi as PriceVolumeTiers, hj as Prices, ho as PromotionRules, hr as Promotions, hB as RecurringOrderCopies, hL as Refunds, hP as ReservedStocks, hW as ResourceErrors, ig as ReturnLineItems, ik as Returns, ir as SatispayGateways, ix as SatispayPayments, iD as Shipments, iE as ShippingCategories, iQ as ShippingMethodTiers, iT as ShippingMethods, iZ as ShippingWeightTiers, j3 as ShippingZones, jd as SkuListItems, jj as SkuListPromotionRules, jn as SkuLists, jt as SkuOptions, jx as Skus, jD as StockItems, jJ as StockLineItems, jP as StockLocations, jV as StockReservations, j$ as StockTransfers, k5 as Stores, kb as StripeGateways, kh as StripePayments, kn as StripeTaxAccounts, kt as SubscriptionModels, kB as Tags, kH as TalonOneAccounts, kL as TaxCalculators, kM as TaxCategories, kX as TaxRules, l1 as TaxjarAccounts, l5 as Transactions, ld as VertexAccounts, li as Voids, lo as Webhooks, lu as WireTransfers } from './api-DFBhmbb1.cjs';
2
2
  import { CommerceLayerInitConfig, CommerceLayerClient } from './commercelayer.cjs';
3
3
  import './client.cjs';
4
4
  import './fetch-DQyRNxTg.cjs';
package/lib/bundle.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { e as Addresses, k as Adjustments, q as AdyenGateways, w as AdyenPayments, E as Applications, K as Attachments, P as Authorizations, V as AvalaraAccounts, $ as AxerveGateways, a5 as AxervePayments, ab as BingGeocoders, ah as BraintreeGateways, an as BraintreePayments, at as Bundles, az as BuyXPayYPromotions, aE as Captures, aK as CarrierAccounts, aQ as CheckoutComGateways, aW as CheckoutComPayments, b0 as Cleanups, b7 as CouponCodesPromotionRules, be as CouponRecipients, bi as Coupons, bq as CustomPromotionRules, bx as CustomerAddresses, bE as CustomerGroups, bK as CustomerPasswordResets, bQ as CustomerPaymentSources, bX as CustomerSubscriptions, b_ as Customers, c6 as DeliveryLeadTimes, cb as DiscountEngineItems, ce as DiscountEngines, ck as EasypostPickups, cp as EventCallbacks, cu as EventStores, cx as Events, cD as Exports, cJ as ExternalGateways, cP as ExternalPayments, cV as ExternalPromotions, c$ as ExternalTaxCalculators, d5 as FixedAmountPromotions, db as FixedPricePromotions, dh as FlexPromotions, dn as FreeGiftPromotions, du as FreeShippingPromotions, dy as Geocoders, dG as GiftCardRecipients, dK as GiftCards, dQ as GoogleGeocoders, dW as Imports, e0 as InStockSubscriptions, e6 as InventoryModels, ec as InventoryReturnLocations, ei as InventoryStockLocations, eo as KlarnaGateways, eu as KlarnaPayments, eC as LineItemOptions, eG as LineItems, eM as Links, eW as ManualGateways, f0 as ManualTaxCalculators, f6 as Markets, fc as Merchants, fj as Notifications, fq as OrderAmountPromotionRules, fr as OrderCopies, fy as OrderFactories, fK as OrderSubscriptionItems, fO as OrderSubscriptions, fR as Orders, fV as Organizations, f$ as Packages, g7 as ParcelLineItems, gb as Parcels, gf as PaymentGateways, gl as PaymentMethods, gr as PaymentOptions, gx as PaypalGateways, gD as PaypalPayments, gJ as PercentageDiscountPromotions, gN as Pickups, gV as PriceFrequencyTiers, h1 as PriceListSchedulers, h5 as PriceLists, ha as PriceTiers, hi as PriceVolumeTiers, hj as Prices, ho as PromotionRules, hr as Promotions, hB as RecurringOrderCopies, hL as Refunds, hP as ReservedStocks, hW as ResourceErrors, ig as ReturnLineItems, ik as Returns, ir as SatispayGateways, ix as SatispayPayments, iD as Shipments, iE as ShippingCategories, iQ as ShippingMethodTiers, iT as ShippingMethods, iZ as ShippingWeightTiers, j3 as ShippingZones, jd as SkuListItems, jj as SkuListPromotionRules, jn as SkuLists, jt as SkuOptions, jx as Skus, jD as StockItems, jJ as StockLineItems, jP as StockLocations, jV as StockReservations, j$ as StockTransfers, k5 as Stores, kb as StripeGateways, kh as StripePayments, kn as StripeTaxAccounts, kt as SubscriptionModels, kB as Tags, kH as TalonOneAccounts, kL as TaxCalculators, kM as TaxCategories, kX as TaxRules, l1 as TaxjarAccounts, l5 as Transactions, ld as VertexAccounts, li as Voids, lo as Webhooks, lu as WireTransfers } from './api-X5Fgi78h.js';
1
+ import { e as Addresses, k as Adjustments, q as AdyenGateways, w as AdyenPayments, E as Applications, K as Attachments, P as Authorizations, V as AvalaraAccounts, $ as AxerveGateways, a5 as AxervePayments, ab as BingGeocoders, ah as BraintreeGateways, an as BraintreePayments, at as Bundles, az as BuyXPayYPromotions, aE as Captures, aK as CarrierAccounts, aQ as CheckoutComGateways, aW as CheckoutComPayments, b0 as Cleanups, b7 as CouponCodesPromotionRules, be as CouponRecipients, bi as Coupons, bq as CustomPromotionRules, bx as CustomerAddresses, bE as CustomerGroups, bK as CustomerPasswordResets, bQ as CustomerPaymentSources, bX as CustomerSubscriptions, b_ as Customers, c6 as DeliveryLeadTimes, cb as DiscountEngineItems, ce as DiscountEngines, ck as EasypostPickups, cp as EventCallbacks, cu as EventStores, cx as Events, cD as Exports, cJ as ExternalGateways, cP as ExternalPayments, cV as ExternalPromotions, c$ as ExternalTaxCalculators, d5 as FixedAmountPromotions, db as FixedPricePromotions, dh as FlexPromotions, dn as FreeGiftPromotions, du as FreeShippingPromotions, dy as Geocoders, dG as GiftCardRecipients, dK as GiftCards, dQ as GoogleGeocoders, dW as Imports, e0 as InStockSubscriptions, e6 as InventoryModels, ec as InventoryReturnLocations, ei as InventoryStockLocations, eo as KlarnaGateways, eu as KlarnaPayments, eC as LineItemOptions, eG as LineItems, eM as Links, eW as ManualGateways, f0 as ManualTaxCalculators, f6 as Markets, fc as Merchants, fj as Notifications, fq as OrderAmountPromotionRules, fr as OrderCopies, fy as OrderFactories, fK as OrderSubscriptionItems, fO as OrderSubscriptions, fR as Orders, fV as Organizations, f$ as Packages, g7 as ParcelLineItems, gb as Parcels, gf as PaymentGateways, gl as PaymentMethods, gr as PaymentOptions, gx as PaypalGateways, gD as PaypalPayments, gJ as PercentageDiscountPromotions, gN as Pickups, gV as PriceFrequencyTiers, h1 as PriceListSchedulers, h5 as PriceLists, ha as PriceTiers, hi as PriceVolumeTiers, hj as Prices, ho as PromotionRules, hr as Promotions, hB as RecurringOrderCopies, hL as Refunds, hP as ReservedStocks, hW as ResourceErrors, ig as ReturnLineItems, ik as Returns, ir as SatispayGateways, ix as SatispayPayments, iD as Shipments, iE as ShippingCategories, iQ as ShippingMethodTiers, iT as ShippingMethods, iZ as ShippingWeightTiers, j3 as ShippingZones, jd as SkuListItems, jj as SkuListPromotionRules, jn as SkuLists, jt as SkuOptions, jx as Skus, jD as StockItems, jJ as StockLineItems, jP as StockLocations, jV as StockReservations, j$ as StockTransfers, k5 as Stores, kb as StripeGateways, kh as StripePayments, kn as StripeTaxAccounts, kt as SubscriptionModels, kB as Tags, kH as TalonOneAccounts, kL as TaxCalculators, kM as TaxCategories, kX as TaxRules, l1 as TaxjarAccounts, l5 as Transactions, ld as VertexAccounts, li as Voids, lo as Webhooks, lu as WireTransfers } from './api-DB1n06hG.js';
2
2
  import { CommerceLayerInitConfig, CommerceLayerClient } from './commercelayer.js';
3
3
  import './client.js';
4
4
  import './fetch-DQyRNxTg.js';
package/lib/bundle.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import './chunk-3EX76AZW.js';
2
2
  import { transactions_default } from './chunk-APTNONWZ.js';
3
- import { vertex_accounts_default } from './chunk-KUJFQHAN.js';
3
+ import { vertex_accounts_default } from './chunk-Y35I6KPP.js';
4
4
  import { voids_default } from './chunk-MOYV2F4C.js';
5
5
  import { webhooks_default } from './chunk-NWPF43O7.js';
6
6
  import { wire_transfers_default } from './chunk-2NWYRIJZ.js';
@@ -54,7 +54,7 @@ import { price_list_schedulers_default } from './chunk-4C55SMIS.js';
54
54
  import { price_lists_default } from './chunk-NIFNQI3P.js';
55
55
  import { order_subscriptions_default } from './chunk-TVKGUM2Z.js';
56
56
  import { orders_default } from './chunk-EWFAT7KA.js';
57
- import { organizations_default } from './chunk-56HCMG32.js';
57
+ import { organizations_default } from './chunk-OLJT7GB7.js';
58
58
  import { packages_default } from './chunk-NSMPVEO4.js';
59
59
  import { parcel_line_items_default } from './chunk-OEMRZEYB.js';
60
60
  import { parcels_default } from './chunk-DJRBEANR.js';
@@ -81,7 +81,7 @@ import { geocoders_default } from './chunk-D3VJO4HP.js';
81
81
  import { gift_card_recipients_default } from './chunk-DBJEPEBT.js';
82
82
  import { gift_cards_default } from './chunk-35Q3ZTZC.js';
83
83
  import { google_geocoders_default } from './chunk-VI2NCCWC.js';
84
- import { imports_default } from './chunk-S4UDNFDR.js';
84
+ import { imports_default } from './chunk-RDXEF27B.js';
85
85
  import { in_stock_subscriptions_default } from './chunk-IYGFGGZR.js';
86
86
  import { inventory_models_default } from './chunk-GZPZZ262.js';
87
87
  import { external_gateways_default } from './chunk-KJWEQIEM.js';
@@ -97,9 +97,9 @@ import { discount_engine_items_default } from './chunk-YFTJA634.js';
97
97
  import { discount_engines_default } from './chunk-CM4DAVO4.js';
98
98
  import { easypost_pickups_default } from './chunk-ESI7A34I.js';
99
99
  import { event_callbacks_default } from './chunk-JRVZ4JQI.js';
100
- import { event_stores_default } from './chunk-Q5OKMDOT.js';
100
+ import { event_stores_default } from './chunk-WMM5EI62.js';
101
101
  import { events_default } from './chunk-QF6DOS2C.js';
102
- import { exports_default } from './chunk-N5BGBBOP.js';
102
+ import { exports_default } from './chunk-NV364EJH.js';
103
103
  import { coupons_default } from './chunk-QI4UFW5A.js';
104
104
  import { custom_promotion_rules_default } from './chunk-M22WZEWB.js';
105
105
  import { customer_addresses_default } from './chunk-VXXJ3CIC.js';
@@ -113,7 +113,7 @@ import { captures_default } from './chunk-JHYHQV3E.js';
113
113
  import { carrier_accounts_default } from './chunk-X55DEMOC.js';
114
114
  import { checkout_com_gateways_default } from './chunk-73P72ADW.js';
115
115
  import { checkout_com_payments_default } from './chunk-43JU63UQ.js';
116
- import { cleanups_default } from './chunk-LOJ7246E.js';
116
+ import { cleanups_default } from './chunk-7P36FTRX.js';
117
117
  import { coupon_codes_promotion_rules_default } from './chunk-VA6VDBQS.js';
118
118
  import { coupon_recipients_default } from './chunk-2HNW5KNF.js';
119
119
  import { authorizations_default } from './chunk-TRDTLOUY.js';
@@ -127,10 +127,10 @@ import { bundles_default } from './chunk-GIZE32ZY.js';
127
127
  import { addresses_default } from './chunk-EQZMPSGR.js';
128
128
  import { adjustments_default } from './chunk-Q3WUCLM5.js';
129
129
  import { adyen_gateways_default } from './chunk-UTQEHWH2.js';
130
- import { adyen_payments_default } from './chunk-FWBO3MH4.js';
130
+ import { adyen_payments_default } from './chunk-UFW7KJWK.js';
131
131
  import { applications_default } from './chunk-EOV3GRPM.js';
132
132
  import { attachments_default } from './chunk-6BXCQFTI.js';
133
- import { CommerceLayerClient } from './chunk-ACEZ46QR.js';
133
+ import { CommerceLayerClient } from './chunk-IUGXRDL5.js';
134
134
  import './chunk-YRCCY6RV.js';
135
135
  import './chunk-2D7XHAVQ.js';
136
136
  import './chunk-IKCYKGYL.js';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkQMBAV3D2_cjs = require('./chunk-QMBAV3D2.cjs');
3
+ var chunkYEMLHMYR_cjs = require('./chunk-YEMLHMYR.cjs');
4
4
  var chunkK277GYCD_cjs = require('./chunk-K277GYCD.cjs');
5
5
  var chunkYETXFXFO_cjs = require('./chunk-YETXFXFO.cjs');
6
6
  var chunkLQ5GKVLT_cjs = require('./chunk-LQ5GKVLT.cjs');
@@ -38,10 +38,10 @@ var CommerceLayerStatic = {
38
38
  return chunkK277GYCD_cjs.isTokenExpired(token);
39
39
  },
40
40
  get schemaVersion() {
41
- return chunkQMBAV3D2_cjs.OPEN_API_SCHEMA_VERSION;
41
+ return chunkYEMLHMYR_cjs.OPEN_API_SCHEMA_VERSION;
42
42
  }
43
43
  };
44
44
 
45
45
  exports.CommerceLayerStatic = CommerceLayerStatic;
46
- //# sourceMappingURL=chunk-RR3QOFY6.cjs.map
47
- //# sourceMappingURL=chunk-RR3QOFY6.cjs.map
46
+ //# sourceMappingURL=chunk-47OW2LZH.cjs.map
47
+ //# sourceMappingURL=chunk-47OW2LZH.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/static.ts"],"names":["getResources","getSingletons","isSingleton","isCreatable","isUpdatable","isDeletable","isTaggable","isSdkError","isApiError","isTokenExpired","OPEN_API_SCHEMA_VERSION"],"mappings":";;;;;;;;AASO,IAAM,mBAAA,GAAsB;AAAA,EAElC,SAAA,EAAW,CAAC,IAAA,KAAsC;AACjD,IAAA,OAAOA,+BAAa,IAAI,CAAA;AAAA,EACzB,CAAA;AAAA,EAEA,UAAA,EAAY,CAAC,IAAA,KAAsC;AAClD,IAAA,OAAOC,gCAAc,IAAI,CAAA;AAAA,EAC1B,CAAA;AAAA,EAEA,WAAA,EAAa,CAAC,QAAA,KAAwC;AACrD,IAAA,OAAOC,8BAAY,QAAQ,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,WAAA,EAAa,CAAC,QAAA,KAAwC;AACrD,IAAA,OAAOC,8BAAY,QAAQ,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,WAAA,EAAa,CAAC,QAAA,KAAwC;AACrD,IAAA,OAAOC,8BAAY,QAAQ,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,WAAA,EAAa,CAAC,QAAA,KAAwC;AACrD,IAAA,OAAOC,8BAAY,QAAQ,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,UAAA,EAAY,CAAC,QAAA,KAAwC;AACpD,IAAA,OAAOC,6BAAW,QAAQ,CAAA;AAAA,EAC3B,CAAA;AAAA,EAEA,UAAA,EAAY,CAAC,KAAA,KAAsC;AAClD,IAAA,OAAOC,6BAAW,KAAK,CAAA;AAAA,EACxB,CAAA;AAAA,EAEA,UAAA,EAAY,CAAC,KAAA,KAAsC;AAClD,IAAA,OAAOC,6BAAW,KAAK,CAAA;AAAA,EACxB,CAAA;AAAA,EAEA,cAAA,EAAgB,CAAC,KAAA,KAA2B;AAC3C,IAAA,OAAOC,iCAAe,KAAK,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,IAAI,aAAA,GAAwB;AAAE,IAAA,OAAOC,yCAAA;AAAA,EAAwB;AAE9D","file":"chunk-RR3QOFY6.cjs","sourcesContent":["\nimport { OPEN_API_SCHEMA_VERSION } from './commercelayer'\nimport type { ResourceTypeLock } from './enum'\nimport { getResources, getSingletons, isCreatable, isDeletable, isSingleton, isTaggable, isUpdatable } from './enum'\nimport { type ApiError, isApiError, isSdkError, type SdkError } from './error'\nimport { isTokenExpired } from './util'\n\n\n/* Static functions */\nexport const CommerceLayerStatic = {\n\n\tresources: (sort?: boolean): readonly string[] => {\n\t\treturn getResources(sort)\n\t},\n\n\tsingletons: (sort?: boolean): readonly string[] => {\n\t\treturn getSingletons(sort)\n\t},\n\n\tisSingleton: (resource: ResourceTypeLock): boolean => {\n\t\treturn isSingleton(resource)\n\t},\n\n\tisCreatable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isCreatable(resource)\n\t},\n\n\tisUpdatable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isUpdatable(resource)\n\t},\n\n\tisDeletable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isDeletable(resource)\n\t},\n\n\tisTaggable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isTaggable(resource)\n\t},\n\n\tisSdkError: (error: unknown): error is SdkError => {\n\t\treturn isSdkError(error)\n\t},\n\n\tisApiError: (error: unknown): error is ApiError => {\n\t\treturn isApiError(error)\n\t},\n\n\tisTokenExpired: (token: string): boolean => {\n\t\treturn isTokenExpired(token)\n\t},\n\n\tget schemaVersion(): string { return OPEN_API_SCHEMA_VERSION }\n\n}\n"]}
1
+ {"version":3,"sources":["../src/static.ts"],"names":["getResources","getSingletons","isSingleton","isCreatable","isUpdatable","isDeletable","isTaggable","isSdkError","isApiError","isTokenExpired","OPEN_API_SCHEMA_VERSION"],"mappings":";;;;;;;;AASO,IAAM,mBAAA,GAAsB;AAAA,EAElC,SAAA,EAAW,CAAC,IAAA,KAAsC;AACjD,IAAA,OAAOA,+BAAa,IAAI,CAAA;AAAA,EACzB,CAAA;AAAA,EAEA,UAAA,EAAY,CAAC,IAAA,KAAsC;AAClD,IAAA,OAAOC,gCAAc,IAAI,CAAA;AAAA,EAC1B,CAAA;AAAA,EAEA,WAAA,EAAa,CAAC,QAAA,KAAwC;AACrD,IAAA,OAAOC,8BAAY,QAAQ,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,WAAA,EAAa,CAAC,QAAA,KAAwC;AACrD,IAAA,OAAOC,8BAAY,QAAQ,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,WAAA,EAAa,CAAC,QAAA,KAAwC;AACrD,IAAA,OAAOC,8BAAY,QAAQ,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,WAAA,EAAa,CAAC,QAAA,KAAwC;AACrD,IAAA,OAAOC,8BAAY,QAAQ,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,UAAA,EAAY,CAAC,QAAA,KAAwC;AACpD,IAAA,OAAOC,6BAAW,QAAQ,CAAA;AAAA,EAC3B,CAAA;AAAA,EAEA,UAAA,EAAY,CAAC,KAAA,KAAsC;AAClD,IAAA,OAAOC,6BAAW,KAAK,CAAA;AAAA,EACxB,CAAA;AAAA,EAEA,UAAA,EAAY,CAAC,KAAA,KAAsC;AAClD,IAAA,OAAOC,6BAAW,KAAK,CAAA;AAAA,EACxB,CAAA;AAAA,EAEA,cAAA,EAAgB,CAAC,KAAA,KAA2B;AAC3C,IAAA,OAAOC,iCAAe,KAAK,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,IAAI,aAAA,GAAwB;AAAE,IAAA,OAAOC,yCAAA;AAAA,EAAwB;AAE9D","file":"chunk-47OW2LZH.cjs","sourcesContent":["\nimport { OPEN_API_SCHEMA_VERSION } from './commercelayer'\nimport type { ResourceTypeLock } from './enum'\nimport { getResources, getSingletons, isCreatable, isDeletable, isSingleton, isTaggable, isUpdatable } from './enum'\nimport { type ApiError, isApiError, isSdkError, type SdkError } from './error'\nimport { isTokenExpired } from './util'\n\n\n/* Static functions */\nexport const CommerceLayerStatic = {\n\n\tresources: (sort?: boolean): readonly string[] => {\n\t\treturn getResources(sort)\n\t},\n\n\tsingletons: (sort?: boolean): readonly string[] => {\n\t\treturn getSingletons(sort)\n\t},\n\n\tisSingleton: (resource: ResourceTypeLock): boolean => {\n\t\treturn isSingleton(resource)\n\t},\n\n\tisCreatable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isCreatable(resource)\n\t},\n\n\tisUpdatable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isUpdatable(resource)\n\t},\n\n\tisDeletable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isDeletable(resource)\n\t},\n\n\tisTaggable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isTaggable(resource)\n\t},\n\n\tisSdkError: (error: unknown): error is SdkError => {\n\t\treturn isSdkError(error)\n\t},\n\n\tisApiError: (error: unknown): error is ApiError => {\n\t\treturn isApiError(error)\n\t},\n\n\tisTokenExpired: (token: string): boolean => {\n\t\treturn isTokenExpired(token)\n\t},\n\n\tget schemaVersion(): string { return OPEN_API_SCHEMA_VERSION }\n\n}\n"]}
@@ -42,5 +42,5 @@ var instance = new Cleanups();
42
42
  var cleanups_default = instance;
43
43
 
44
44
  exports.cleanups_default = cleanups_default;
45
- //# sourceMappingURL=chunk-JEOA64GW.cjs.map
46
- //# sourceMappingURL=chunk-JEOA64GW.cjs.map
45
+ //# sourceMappingURL=chunk-4OM2Y7BS.cjs.map
46
+ //# sourceMappingURL=chunk-4OM2Y7BS.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/resources/cleanups.ts"],"names":["ApiResource"],"mappings":";;;;;AAuGA,IAAM,QAAA,GAAN,MAAM,SAAA,SAAiBA,6BAAA,CAAqB;AAAA,EAE3C,OAAgB,IAAA,GAAoB,UAAA;AAAA,EAEpC,MAAM,MAAA,CAAO,QAAA,EAAyB,MAAA,EAAuC,OAAA,EAA6C;AACzH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA+B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,SAAA,CAAS,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC3G;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAyB,MAAA,EAAuC,OAAA,EAA6C;AACzH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA+B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,SAAA,CAAS,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC3G;AAAA,EAEA,MAAM,MAAA,CAA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AGA,aAAa,EAAA,EAA4C;AACxD,IAAA,OAAO,KAAA,CAAM,qBAAiC,EAAE,CAAA;AAAA,EACjD;AAAA,EAEA,sBAAsB,GAAA,EAA6B;AAClD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAkC,GAAG,GAAG,CAAA;AAAA,EACtD;AAAA,EAGA,IAAA,GAAoB;AACnB,IAAA,OAAO,SAAA,CAAS,IAAA;AAAA,EACjB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,QAAA,EAAS;AAC9B,IAAO,gBAAA,GAAQ","file":"chunk-4OM2Y7BS.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\n\n\ntype CleanupType = 'cleanups'\ntype CleanupRel = ResourceRel & { type: CleanupType }\n\n\nexport type CleanupSort = Pick<Cleanup, 'id' | 'resource_type' | 'status' | 'started_at' | 'completed_at' | 'interrupted_at' | 'records_count' | 'errors_count' | 'processed_count'> & ResourceSort\n// export type CleanupFilter = Pick<Cleanup, 'id' | 'resource_type' | 'status' | 'started_at' | 'completed_at' | 'interrupted_at' | 'records_count' | 'errors_count' | 'processed_count' | 'errors_log'> & ResourceFilter\n\n\ninterface Cleanup extends Resource {\n\t\n\treadonly type: CleanupType\n\n\t/** \n\t * The type of resource being cleaned. One of 'promotions', 'skus', 'bundles', 'sku_lists', 'stock_items', 'gift_cards', 'sku_options', or 'prices'.\n\t * @example ```\"skus\"```\n\t */\n\tresource_type: 'promotions' | 'skus' | 'bundles' | 'sku_lists' | 'stock_items' | 'gift_cards' | 'sku_options' | 'prices'\n\t/** \n\t * The cleanup job status. One of 'pending' (default), 'in_progress', 'interrupted', or 'completed'.\n\t * @example ```\"in_progress\"```\n\t */\n\tstatus: 'pending' | 'in_progress' | 'interrupted' | 'completed'\n\t/** \n\t * Time at which the cleanup was started.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarted_at?: string | null\n\t/** \n\t * Time at which the cleanup was completed.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tcompleted_at?: string | null\n\t/** \n\t * Time at which the cleanup was interrupted.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tinterrupted_at?: string | null\n\t/** \n\t * The filters used to select the records to be cleaned.\n\t * @example ```{\"code_eq\":\"AAA\"}```\n\t */\n\tfilters?: Record<string, any> | null\n\t/** \n\t * Indicates the number of records to be cleaned.\n\t * @example ```300```\n\t */\n\trecords_count?: number | null\n\t/** \n\t * Indicates the number of cleanup errors, if any.\n\t * @example ```30```\n\t */\n\terrors_count?: number | null\n\t/** \n\t * Indicates the number of records that have been cleaned.\n\t * @example ```270```\n\t */\n\tprocessed_count?: number | null\n\t/** \n\t * Contains the cleanup errors, if any.\n\t * @example ```{\"ABC\":{\"name\":[\"has already been taken\"]}}```\n\t */\n\terrors_log?: Record<string, any> | null\n\n\tevents?: Event[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface CleanupCreate extends ResourceCreate {\n\t\n\t/** \n\t * The type of resource being cleaned. One of 'promotions', 'skus', 'bundles', 'sku_lists', 'stock_items', 'gift_cards', 'sku_options', or 'prices'.\n\t * @example ```\"skus\"```\n\t */\n\tresource_type: 'promotions' | 'skus' | 'bundles' | 'sku_lists' | 'stock_items' | 'gift_cards' | 'sku_options' | 'prices'\n\t/** \n\t * The filters used to select the records to be cleaned.\n\t * @example ```{\"code_eq\":\"AAA\"}```\n\t */\n\tfilters?: Record<string, any> | null\n\t\n}\n\n\ninterface CleanupUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Send this attribute if you want to mark status as 'interrupted'.\n\t * @example ```true```\n\t */\n\t_interrupt?: boolean | null\n\t\n}\n\n\nclass Cleanups extends ApiResource<Cleanup> {\n\n\tstatic readonly TYPE: CleanupType = 'cleanups' as const\n\n\tasync create(resource: CleanupCreate, params?: QueryParamsRetrieve<Cleanup>, options?: ResourcesConfig): Promise<Cleanup> {\n\t\treturn this.resources.create<CleanupCreate, Cleanup>({ ...resource, type: Cleanups.TYPE }, params, options)\n\t}\n\n\tasync update(resource: CleanupUpdate, params?: QueryParamsRetrieve<Cleanup>, options?: ResourcesConfig): Promise<Cleanup> {\n\t\treturn this.resources.update<CleanupUpdate, Cleanup>({ ...resource, type: Cleanups.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: Cleanups.TYPE } : id, options)\n\t}\n\n\tasync events(cleanupId: string | Cleanup, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _cleanupId = (cleanupId as Cleanup).id || cleanupId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `cleanups/${_cleanupId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync event_stores(cleanupId: string | Cleanup, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _cleanupId = (cleanupId as Cleanup).id || cleanupId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `cleanups/${_cleanupId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _interrupt(id: string | Cleanup, params?: QueryParamsRetrieve<Cleanup>, options?: ResourcesConfig): Promise<Cleanup> {\n\t\treturn this.resources.update<CleanupUpdate, Cleanup>({ id: (typeof id === 'string')? id: id.id, type: Cleanups.TYPE, _interrupt: true }, params, options)\n\t}\n\n\n\tisCleanup(resource: any): resource is Cleanup {\n\t\treturn resource.type && (resource.type === Cleanups.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): CleanupRel {\n\t\treturn super.relationshipOneToOne<CleanupRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): CleanupRel[] {\n\t\treturn super.relationshipOneToMany<CleanupRel>(...ids)\n\t}\n\n\n\ttype(): CleanupType {\n\t\treturn Cleanups.TYPE\n\t}\n\n}\n\n\nconst instance = new Cleanups()\nexport default instance\n\nexport type { Cleanup, CleanupCreate, Cleanups, CleanupType, CleanupUpdate }\n"]}
@@ -1,4 +1,4 @@
1
- import { OPEN_API_SCHEMA_VERSION } from './chunk-ACEZ46QR.js';
1
+ import { OPEN_API_SCHEMA_VERSION } from './chunk-IUGXRDL5.js';
2
2
  import { isTokenExpired } from './chunk-4MV6VICV.js';
3
3
  import { isTaggable, isDeletable, isUpdatable, isCreatable, isSingleton, getSingletons, getResources } from './chunk-MFDKS22G.js';
4
4
  import { isApiError, isSdkError } from './chunk-PIHQS6OG.js';
@@ -41,5 +41,5 @@ var CommerceLayerStatic = {
41
41
  };
42
42
 
43
43
  export { CommerceLayerStatic };
44
- //# sourceMappingURL=chunk-EUPQSGPI.js.map
45
- //# sourceMappingURL=chunk-EUPQSGPI.js.map
44
+ //# sourceMappingURL=chunk-7GP6774Q.js.map
45
+ //# sourceMappingURL=chunk-7GP6774Q.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/static.ts"],"names":[],"mappings":";;;;;;AASO,IAAM,mBAAA,GAAsB;AAAA,EAElC,SAAA,EAAW,CAAC,IAAA,KAAsC;AACjD,IAAA,OAAO,aAAa,IAAI,CAAA;AAAA,EACzB,CAAA;AAAA,EAEA,UAAA,EAAY,CAAC,IAAA,KAAsC;AAClD,IAAA,OAAO,cAAc,IAAI,CAAA;AAAA,EAC1B,CAAA;AAAA,EAEA,WAAA,EAAa,CAAC,QAAA,KAAwC;AACrD,IAAA,OAAO,YAAY,QAAQ,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,WAAA,EAAa,CAAC,QAAA,KAAwC;AACrD,IAAA,OAAO,YAAY,QAAQ,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,WAAA,EAAa,CAAC,QAAA,KAAwC;AACrD,IAAA,OAAO,YAAY,QAAQ,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,WAAA,EAAa,CAAC,QAAA,KAAwC;AACrD,IAAA,OAAO,YAAY,QAAQ,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,UAAA,EAAY,CAAC,QAAA,KAAwC;AACpD,IAAA,OAAO,WAAW,QAAQ,CAAA;AAAA,EAC3B,CAAA;AAAA,EAEA,UAAA,EAAY,CAAC,KAAA,KAAsC;AAClD,IAAA,OAAO,WAAW,KAAK,CAAA;AAAA,EACxB,CAAA;AAAA,EAEA,UAAA,EAAY,CAAC,KAAA,KAAsC;AAClD,IAAA,OAAO,WAAW,KAAK,CAAA;AAAA,EACxB,CAAA;AAAA,EAEA,cAAA,EAAgB,CAAC,KAAA,KAA2B;AAC3C,IAAA,OAAO,eAAe,KAAK,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,IAAI,aAAA,GAAwB;AAAE,IAAA,OAAO,uBAAA;AAAA,EAAwB;AAE9D","file":"chunk-EUPQSGPI.js","sourcesContent":["\nimport { OPEN_API_SCHEMA_VERSION } from './commercelayer'\nimport type { ResourceTypeLock } from './enum'\nimport { getResources, getSingletons, isCreatable, isDeletable, isSingleton, isTaggable, isUpdatable } from './enum'\nimport { type ApiError, isApiError, isSdkError, type SdkError } from './error'\nimport { isTokenExpired } from './util'\n\n\n/* Static functions */\nexport const CommerceLayerStatic = {\n\n\tresources: (sort?: boolean): readonly string[] => {\n\t\treturn getResources(sort)\n\t},\n\n\tsingletons: (sort?: boolean): readonly string[] => {\n\t\treturn getSingletons(sort)\n\t},\n\n\tisSingleton: (resource: ResourceTypeLock): boolean => {\n\t\treturn isSingleton(resource)\n\t},\n\n\tisCreatable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isCreatable(resource)\n\t},\n\n\tisUpdatable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isUpdatable(resource)\n\t},\n\n\tisDeletable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isDeletable(resource)\n\t},\n\n\tisTaggable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isTaggable(resource)\n\t},\n\n\tisSdkError: (error: unknown): error is SdkError => {\n\t\treturn isSdkError(error)\n\t},\n\n\tisApiError: (error: unknown): error is ApiError => {\n\t\treturn isApiError(error)\n\t},\n\n\tisTokenExpired: (token: string): boolean => {\n\t\treturn isTokenExpired(token)\n\t},\n\n\tget schemaVersion(): string { return OPEN_API_SCHEMA_VERSION }\n\n}\n"]}
1
+ {"version":3,"sources":["../src/static.ts"],"names":[],"mappings":";;;;;;AASO,IAAM,mBAAA,GAAsB;AAAA,EAElC,SAAA,EAAW,CAAC,IAAA,KAAsC;AACjD,IAAA,OAAO,aAAa,IAAI,CAAA;AAAA,EACzB,CAAA;AAAA,EAEA,UAAA,EAAY,CAAC,IAAA,KAAsC;AAClD,IAAA,OAAO,cAAc,IAAI,CAAA;AAAA,EAC1B,CAAA;AAAA,EAEA,WAAA,EAAa,CAAC,QAAA,KAAwC;AACrD,IAAA,OAAO,YAAY,QAAQ,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,WAAA,EAAa,CAAC,QAAA,KAAwC;AACrD,IAAA,OAAO,YAAY,QAAQ,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,WAAA,EAAa,CAAC,QAAA,KAAwC;AACrD,IAAA,OAAO,YAAY,QAAQ,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,WAAA,EAAa,CAAC,QAAA,KAAwC;AACrD,IAAA,OAAO,YAAY,QAAQ,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,UAAA,EAAY,CAAC,QAAA,KAAwC;AACpD,IAAA,OAAO,WAAW,QAAQ,CAAA;AAAA,EAC3B,CAAA;AAAA,EAEA,UAAA,EAAY,CAAC,KAAA,KAAsC;AAClD,IAAA,OAAO,WAAW,KAAK,CAAA;AAAA,EACxB,CAAA;AAAA,EAEA,UAAA,EAAY,CAAC,KAAA,KAAsC;AAClD,IAAA,OAAO,WAAW,KAAK,CAAA;AAAA,EACxB,CAAA;AAAA,EAEA,cAAA,EAAgB,CAAC,KAAA,KAA2B;AAC3C,IAAA,OAAO,eAAe,KAAK,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,IAAI,aAAA,GAAwB;AAAE,IAAA,OAAO,uBAAA;AAAA,EAAwB;AAE9D","file":"chunk-7GP6774Q.js","sourcesContent":["\nimport { OPEN_API_SCHEMA_VERSION } from './commercelayer'\nimport type { ResourceTypeLock } from './enum'\nimport { getResources, getSingletons, isCreatable, isDeletable, isSingleton, isTaggable, isUpdatable } from './enum'\nimport { type ApiError, isApiError, isSdkError, type SdkError } from './error'\nimport { isTokenExpired } from './util'\n\n\n/* Static functions */\nexport const CommerceLayerStatic = {\n\n\tresources: (sort?: boolean): readonly string[] => {\n\t\treturn getResources(sort)\n\t},\n\n\tsingletons: (sort?: boolean): readonly string[] => {\n\t\treturn getSingletons(sort)\n\t},\n\n\tisSingleton: (resource: ResourceTypeLock): boolean => {\n\t\treturn isSingleton(resource)\n\t},\n\n\tisCreatable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isCreatable(resource)\n\t},\n\n\tisUpdatable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isUpdatable(resource)\n\t},\n\n\tisDeletable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isDeletable(resource)\n\t},\n\n\tisTaggable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isTaggable(resource)\n\t},\n\n\tisSdkError: (error: unknown): error is SdkError => {\n\t\treturn isSdkError(error)\n\t},\n\n\tisApiError: (error: unknown): error is ApiError => {\n\t\treturn isApiError(error)\n\t},\n\n\tisTokenExpired: (token: string): boolean => {\n\t\treturn isTokenExpired(token)\n\t},\n\n\tget schemaVersion(): string { return OPEN_API_SCHEMA_VERSION }\n\n}\n"]}
@@ -40,5 +40,5 @@ var instance = new Cleanups();
40
40
  var cleanups_default = instance;
41
41
 
42
42
  export { cleanups_default };
43
- //# sourceMappingURL=chunk-LOJ7246E.js.map
44
- //# sourceMappingURL=chunk-LOJ7246E.js.map
43
+ //# sourceMappingURL=chunk-7P36FTRX.js.map
44
+ //# sourceMappingURL=chunk-7P36FTRX.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/resources/cleanups.ts"],"names":[],"mappings":";;;AAuGA,IAAM,QAAA,GAAN,MAAM,SAAA,SAAiB,WAAA,CAAqB;AAAA,EAE3C,OAAgB,IAAA,GAAoB,UAAA;AAAA,EAEpC,MAAM,MAAA,CAAO,QAAA,EAAyB,MAAA,EAAuC,OAAA,EAA6C;AACzH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA+B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,SAAA,CAAS,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC3G;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAyB,MAAA,EAAuC,OAAA,EAA6C;AACzH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA+B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,SAAA,CAAS,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC3G;AAAA,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA,EAA0C;AAC/E,IAAA,MAAM,IAAA,CAAK,SAAA,CAAU,MAAA,CAAQ,OAAO,EAAA,KAAO,QAAA,GAAW,EAAE,EAAA,EAAI,IAAA,EAAM,SAAA,CAAS,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA,EAChG;AAAA,EAEA,MAAM,MAAA,CAAO,SAAA,EAA6B,MAAA,EAAiC,OAAA,EAAyD;AACnI,IAAA,MAAM,UAAA,GAAc,UAAsB,EAAA,IAAM,SAAA;AAChD,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAa,EAAE,IAAA,EAAM,QAAA,EAAS,EAAG,CA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ponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\n\n\ntype CleanupType = 'cleanups'\ntype CleanupRel = ResourceRel & { type: CleanupType }\n\n\nexport type CleanupSort = Pick<Cleanup, 'id' | 'resource_type' | 'status' | 'started_at' | 'completed_at' | 'interrupted_at' | 'records_count' | 'errors_count' | 'processed_count'> & ResourceSort\n// export type CleanupFilter = Pick<Cleanup, 'id' | 'resource_type' | 'status' | 'started_at' | 'completed_at' | 'interrupted_at' | 'records_count' | 'errors_count' | 'processed_count' | 'errors_log'> & ResourceFilter\n\n\ninterface Cleanup extends Resource {\n\t\n\treadonly type: CleanupType\n\n\t/** \n\t * The type of resource being cleaned. One of 'promotions', 'skus', 'bundles', 'sku_lists', 'stock_items', 'gift_cards', 'sku_options', or 'prices'.\n\t * @example ```\"skus\"```\n\t */\n\tresource_type: 'promotions' | 'skus' | 'bundles' | 'sku_lists' | 'stock_items' | 'gift_cards' | 'sku_options' | 'prices'\n\t/** \n\t * The cleanup job status. One of 'pending' (default), 'in_progress', 'interrupted', or 'completed'.\n\t * @example ```\"in_progress\"```\n\t */\n\tstatus: 'pending' | 'in_progress' | 'interrupted' | 'completed'\n\t/** \n\t * Time at which the cleanup was started.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarted_at?: string | null\n\t/** \n\t * Time at which the cleanup was completed.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tcompleted_at?: string | null\n\t/** \n\t * Time at which the cleanup was interrupted.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tinterrupted_at?: string | null\n\t/** \n\t * The filters used to select the records to be cleaned.\n\t * @example ```{\"code_eq\":\"AAA\"}```\n\t */\n\tfilters?: Record<string, any> | null\n\t/** \n\t * Indicates the number of records to be cleaned.\n\t * @example ```300```\n\t */\n\trecords_count?: number | null\n\t/** \n\t * Indicates the number of cleanup errors, if any.\n\t * @example ```30```\n\t */\n\terrors_count?: number | null\n\t/** \n\t * Indicates the number of records that have been cleaned.\n\t * @example ```270```\n\t */\n\tprocessed_count?: number | null\n\t/** \n\t * Contains the cleanup errors, if any.\n\t * @example ```{\"ABC\":{\"name\":[\"has already been taken\"]}}```\n\t */\n\terrors_log?: Record<string, any> | null\n\n\tevents?: Event[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface CleanupCreate extends ResourceCreate {\n\t\n\t/** \n\t * The type of resource being cleaned. One of 'promotions', 'skus', 'bundles', 'sku_lists', 'stock_items', 'gift_cards', 'sku_options', or 'prices'.\n\t * @example ```\"skus\"```\n\t */\n\tresource_type: 'promotions' | 'skus' | 'bundles' | 'sku_lists' | 'stock_items' | 'gift_cards' | 'sku_options' | 'prices'\n\t/** \n\t * The filters used to select the records to be cleaned.\n\t * @example ```{\"code_eq\":\"AAA\"}```\n\t */\n\tfilters?: Record<string, any> | null\n\t\n}\n\n\ninterface CleanupUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Send this attribute if you want to mark status as 'interrupted'.\n\t * @example ```true```\n\t */\n\t_interrupt?: boolean | null\n\t\n}\n\n\nclass Cleanups extends ApiResource<Cleanup> {\n\n\tstatic readonly TYPE: CleanupType = 'cleanups' as const\n\n\tasync create(resource: CleanupCreate, params?: QueryParamsRetrieve<Cleanup>, options?: ResourcesConfig): Promise<Cleanup> {\n\t\treturn this.resources.create<CleanupCreate, Cleanup>({ ...resource, type: Cleanups.TYPE }, params, options)\n\t}\n\n\tasync update(resource: CleanupUpdate, params?: QueryParamsRetrieve<Cleanup>, options?: ResourcesConfig): Promise<Cleanup> {\n\t\treturn this.resources.update<CleanupUpdate, Cleanup>({ ...resource, type: Cleanups.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: Cleanups.TYPE } : id, options)\n\t}\n\n\tasync events(cleanupId: string | Cleanup, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _cleanupId = (cleanupId as Cleanup).id || cleanupId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `cleanups/${_cleanupId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync event_stores(cleanupId: string | Cleanup, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _cleanupId = (cleanupId as Cleanup).id || cleanupId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `cleanups/${_cleanupId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _interrupt(id: string | Cleanup, params?: QueryParamsRetrieve<Cleanup>, options?: ResourcesConfig): Promise<Cleanup> {\n\t\treturn this.resources.update<CleanupUpdate, Cleanup>({ id: (typeof id === 'string')? id: id.id, type: Cleanups.TYPE, _interrupt: true }, params, options)\n\t}\n\n\n\tisCleanup(resource: any): resource is Cleanup {\n\t\treturn resource.type && (resource.type === Cleanups.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): CleanupRel {\n\t\treturn super.relationshipOneToOne<CleanupRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): CleanupRel[] {\n\t\treturn super.relationshipOneToMany<CleanupRel>(...ids)\n\t}\n\n\n\ttype(): CleanupType {\n\t\treturn Cleanups.TYPE\n\t}\n\n}\n\n\nconst instance = new Cleanups()\nexport default instance\n\nexport type { Cleanup, CleanupCreate, Cleanups, CleanupType, CleanupUpdate }\n"]}
@@ -52,5 +52,5 @@ var instance = new AdyenPayments();
52
52
  var adyen_payments_default = instance;
53
53
 
54
54
  exports.adyen_payments_default = adyen_payments_default;
55
- //# sourceMappingURL=chunk-DHGTIF6A.cjs.map
56
- //# sourceMappingURL=chunk-DHGTIF6A.cjs.map
55
+ //# sourceMappingURL=chunk-BRW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AAA,EAA4C,OAAA,EAAkD;AACvI,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA,CAAyC,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,cAAA,CAAc,IAAA,EAAM,UAAU,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA,EACtK;AAAA,EAGA,eAAe,QAAA,EAAyC;AACvD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,cAAA,CAAc,IAAA;AAAA,EAC1D;AAAA,EAGA,aAAa,EAAA,EAAiD;AAC7D,IAAA,OAAO,KAAA,CAAM,qBAAsC,EAAE,CAAA;AAAA,EACtD;AAAA,EAEA,sBAAsB,GAAA,EAAkC;AACvD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAuC,GAAG,GAAG,CAAA;AAAA,EAC3D;AAAA,EAGA,IAAA,GAAyB;AACxB,IAAA,OAAO,cAAA,CAAc,IAAA;AAAA,EACtB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,aAAA,EAAc;AACnC,IAAO,sBAAA,GAAQ","file":"chunk-BRWPB33S.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { EventStore } from './event_stores'\nimport type { Order, OrderType } from './orders'\nimport type { PaymentGateway } from './payment_gateways'\n\n\ntype AdyenPaymentType = 'adyen_payments'\ntype AdyenPaymentRel = ResourceRel & { type: AdyenPaymentType }\ntype OrderRel = ResourceRel & { type: OrderType }\n\n\nexport type AdyenPaymentSort = Pick<AdyenPayment, 'id'> & ResourceSort\n// export type AdyenPaymentFilter = Pick<AdyenPayment, 'id'> & ResourceFilter\n\n\ninterface AdyenPayment extends Resource {\n\t\n\treadonly type: AdyenPaymentType\n\n\t/** \n\t * The public key linked to your API credential.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tpublic_key?: string | null\n\t/** \n\t * The merchant available payment methods for the assoiated order (i.e. country and amount). Required by the Adyen JS SDK.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_methods: Record<string, any>\n\t/** \n\t * The Adyen payment request data, collected by client.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_request_data?: Record<string, any> | null\n\t/** \n\t * The Adyen additional details request data, collected by client.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_request_details?: Record<string, any> | null\n\t/** \n\t * The Adyen payment response, used by client (includes 'resultCode' and 'action').\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_response?: Record<string, any> | null\n\t/** \n\t * Indicates if the order current amount differs form the one of the associated authorization.\n\t */\n\tmismatched_amounts?: boolean | null\n\t/** \n\t * The balance remaining on a shopper's gift card, must be computed by using its related trigger attribute.\n\t * @example ```1000```\n\t */\n\tbalance?: number | null\n\t/** \n\t * The expiration date/time of this Adyen payment (valid for partial payments only).\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at?: string | null\n\t/** \n\t * The date/time when the Adyen order was closed, meaning all partial payments have been completed (valid for partial payments only).\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\tclosed_at?: string | null\n\t/** \n\t * Information about the payment instrument used in the transaction.\n\t * @example ```{\"issuer\":\"cl bank\",\"card_type\":\"visa\"}```\n\t */\n\tpayment_instrument?: Record<string, any> | null\n\n\torder?: Order | null\n\tpayment_gateway?: PaymentGateway | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface AdyenPaymentCreate extends ResourceCreate {\n\t\n\torder: OrderRel\n\n}\n\n\ninterface AdyenPaymentUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The Adyen payment request data, collected by client.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_request_data?: Record<string, any> | null\n\t/** \n\t * The Adyen additional details request data, collected by client.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_request_details?: Record<string, any> | null\n\t/** \n\t * Send this attribute if you want to authorize the payment.\n\t * @example ```true```\n\t */\n\t_authorize?: boolean | null\n\t/** \n\t * Send this attribute if you want to send additional details the payment request.\n\t * @example ```true```\n\t */\n\t_details?: boolean | null\n\t/** \n\t * Send this attribute if you want retrieve the balance remaining on a shopper's gift card.\n\t * @example ```true```\n\t */\n\t_balance?: boolean | null\n\n\torder?: OrderRel | null\n\n}\n\n\nclass AdyenPayments extends ApiResource<AdyenPayment> {\n\n\tstatic readonly TYPE: AdyenPaymentType = 'adyen_payments' as const\n\n\tasync create(resource: AdyenPaymentCreate, params?: QueryParamsRetrieve<AdyenPayment>, options?: ResourcesConfig): Promise<AdyenPayment> {\n\t\treturn this.resources.create<AdyenPaymentCreate, AdyenPayment>({ ...resource, type: AdyenPayments.TYPE }, params, options)\n\t}\n\n\tasync update(resource: AdyenPaymentUpdate, params?: QueryParamsRetrieve<AdyenPayment>, options?: ResourcesConfig): Promise<AdyenPayment> {\n\t\treturn this.resources.update<AdyenPaymentUpdate, AdyenPayment>({ ...resource, type: AdyenPayments.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: AdyenPayments.TYPE } : id, options)\n\t}\n\n\tasync order(adyenPaymentId: string | AdyenPayment, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _adyenPaymentId = (adyenPaymentId as AdyenPayment).id || adyenPaymentId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `adyen_payments/${_adyenPaymentId}/order`, params, options) as unknown as Order\n\t}\n\n\tasync payment_gateway(adyenPaymentId: string | AdyenPayment, params?: QueryParamsRetrieve<PaymentGateway>, options?: ResourcesConfig): Promise<PaymentGateway> {\n\t\tconst _adyenPaymentId = (adyenPaymentId as AdyenPayment).id || adyenPaymentId as string\n\t\treturn this.resources.fetch<PaymentGateway>({ type: 'payment_gateways' }, `adyen_payments/${_adyenPaymentId}/payment_gateway`, params, options) as unknown as PaymentGateway\n\t}\n\n\tasync event_stores(adyenPaymentId: string | AdyenPayment, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _adyenPaymentId = (adyenPaymentId as AdyenPayment).id || adyenPaymentId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `adyen_payments/${_adyenPaymentId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _authorize(id: string | AdyenPayment, params?: QueryParamsRetrieve<AdyenPayment>, options?: ResourcesConfig): Promise<AdyenPayment> {\n\t\treturn this.resources.update<AdyenPaymentUpdate, AdyenPayment>({ id: (typeof id === 'string')? id: id.id, type: AdyenPayments.TYPE, _authorize: true }, params, options)\n\t}\n\n\tasync _details(id: string | AdyenPayment, params?: QueryParamsRetrieve<AdyenPayment>, options?: ResourcesConfig): Promise<AdyenPayment> {\n\t\treturn this.resources.update<AdyenPaymentUpdate, AdyenPayment>({ id: (typeof id === 'string')? id: id.id, type: AdyenPayments.TYPE, _details: true }, params, options)\n\t}\n\n\tasync _balance(id: string | AdyenPayment, params?: QueryParamsRetrieve<AdyenPayment>, options?: ResourcesConfig): Promise<AdyenPayment> {\n\t\treturn this.resources.update<AdyenPaymentUpdate, AdyenPayment>({ id: (typeof id === 'string')? id: id.id, type: AdyenPayments.TYPE, _balance: true }, params, options)\n\t}\n\n\n\tisAdyenPayment(resource: any): resource is AdyenPayment {\n\t\treturn resource.type && (resource.type === AdyenPayments.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): AdyenPaymentRel {\n\t\treturn super.relationshipOneToOne<AdyenPaymentRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): AdyenPaymentRel[] {\n\t\treturn super.relationshipOneToMany<AdyenPaymentRel>(...ids)\n\t}\n\n\n\ttype(): AdyenPaymentType {\n\t\treturn AdyenPayments.TYPE\n\t}\n\n}\n\n\nconst instance = new AdyenPayments()\nexport default instance\n\nexport type { AdyenPayment, AdyenPaymentCreate, AdyenPayments, AdyenPaymentType, AdyenPaymentUpdate }\n"]}
@@ -5,7 +5,7 @@ import { debug_default } from './chunk-22RVT2J2.js';
5
5
 
6
6
  // src/commercelayer.ts
7
7
  var debug = debug_default("commercelayer");
8
- var OPEN_API_SCHEMA_VERSION = "7.10.1";
8
+ var OPEN_API_SCHEMA_VERSION = "7.10.3";
9
9
  var CommerceLayerClient = class _CommerceLayerClient {
10
10
  openApiSchemaVersion = OPEN_API_SCHEMA_VERSION;
11
11
  static cl;
@@ -98,5 +98,5 @@ var CommerceLayer = (config) => {
98
98
  var commercelayer_default = CommerceLayer;
99
99
 
100
100
  export { CommerceLayer, CommerceLayerClient, OPEN_API_SCHEMA_VERSION, commercelayer_default };
101
- //# sourceMappingURL=chunk-ACEZ46QR.js.map
102
- //# sourceMappingURL=chunk-ACEZ46QR.js.map
101
+ //# sourceMappingURL=chunk-IUGXRDL5.js.map
102
+ //# sourceMappingURL=chunk-IUGXRDL5.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/commercelayer.ts"],"names":[],"mappings":";;;;;;AAUA,IAAM,KAAA,GAAQ,cAAM,eAAe,CAAA;AAI5B,IAAM,uBAAA,GAA0B;AAcvC,IAAM,mBAAA,GAAN,MAAM,oBAAA,CAAoB;AAAA,EAEhB,oBAAA,GAAuB,uBAAA;AAAA,EAEhC,OAAiB,EAAA;AAAA;AAAA;AAAA;AAAA,EAQjB,OAAO,IAAK,MAAA,EAAuD;AAClE,IAAA,IAAI,QAAQ,OAAQ,oBAAA,CAAoB,EAAA,GAAK,IAAI,qBAAoB,MAAM,CAAA;AAAA,SAAA,IAEvE,CAAC,oBAAA,CAAoB,EAAA,EAAI,MAAM,IAAI,MAAM,sCAAsC,CAAA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AAA;AAAA,EAER;AAAA,EAEA,uBAAA,GAAwE;AAKvE,IAAA,IAAA,CAAK,aAAa,SAAA,GAAY,MAAA;AAAA,EAC/B;AAED;AAIA,IAAM,aAAA,GAAgB,CAAC,MAAA,KAAyD;AAC/E,EAAA,OAAO,mBAAA,CAAoB,IAAI,MAAM,CAAA;AACtC;AAGA,IAAO,qBAAA,GAAQ","file":"chunk-ACEZ46QR.js","sourcesContent":["\n\n\nimport Debug from './debug'\n// import * as api from './api'\nimport { getResources } from './enum'\nimport { type ApiError, isApiError } from './error'\nimport type { ErrorInterceptor, HeadersObj, InterceptorManager, InterceptorType, RawResponseReader, RequestInterceptor, ResponseInterceptor, ResponseObj } from './interceptor'\nimport { ApiResourceAdapter, type ResourcesInitConfig } from './resource'\n\nconst debug = Debug('commercelayer')\n\n\n// Autogenerated version number, do not remove this line\nexport const OPEN_API_SCHEMA_VERSION = '7.10.1'\n\n\n// SDK local configuration\n// biome-ignore lint/complexity/noBannedTypes: left as placeholder for future SDK config options\ntype SdkConfig = {\n\t// abc?: string\n}\n\ntype CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig\ntype CommerceLayerConfig = Partial<CommerceLayerInitConfig>\n\n\n\nclass CommerceLayerClient {\n\n\treadonly openApiSchemaVersion = OPEN_API_SCHEMA_VERSION\n\n\tprotected static cl: CommerceLayerClient\n\n\t// ##__CL_RESOURCES_DEF_START__##\n\t// ##__CL_RESOURCES_DEF_TEMPLATE:: ##__TAB__#####__RESOURCE_TYPE__##?: api.##__RESOURCE_CLASS__##\n\n\t// ##__CL_RESOURCES_DEF_STOP__##\n\n\n\tstatic get (config?: CommerceLayerInitConfig): CommerceLayerClient {\n\t\tif (config) return (CommerceLayerClient.cl = new CommerceLayerClient(config))\n\t\telse\n\t\tif (!CommerceLayerClient.cl) throw new Error('CommerceLayer client not initialized')\n\t\treturn CommerceLayerClient.cl\n\t}\n\n\n\tprotected constructor(config: CommerceLayerInitConfig) {\n\n\t\tdebug('new commercelayer instance %O', config)\n\n\t\tApiResourceAdapter.init(config)\n\n\t\t// ##__CL_RESOURCES_INIT_START__##\n\t\t// ##__CL_RESOURCES_INIT_TEMPLATE:: ##__TAB__####__TAB__##this.##__RESOURCE_TYPE__## = new api.##__RESOURCE_CLASS__##(this.#adapter)\n\t\t// ##__CL_RESOURCES_INIT_STOP__##\n\n\t}\n\n\t// ##__CL_RESOURCES_LEAZY_LOADING_START__##\n\t// ##__CL_RESOURCES_LEAZY_LOADING_TEMPLATE:: ##__TAB__##get ##__RESOURCE_TYPE__##(): api.##__RESOURCE_CLASS__## { return this.###__RESOURCE_TYPE__## || (this.###__RESOURCE_TYPE__## = new api.##__RESOURCE_CLASS__##(this.#adapter)) }\n\n\t// ##__CL_RESOURCES_LEAZY_LOADING_STOP__##\n\n\t// private get adapter(): ResourceAdapter { return ApiResourceAdapter.get() }\n\tget currentOrganization(): string { return ApiResourceAdapter.get().client?.currentOrganization }\n\tget currentAccessToken(): string { return ApiResourceAdapter.get().client?.currentAccessToken }\n\tprivate get interceptors(): InterceptorManager { return ApiResourceAdapter.get().client?.interceptors }\n\n\n\tprivate localConfig(_config: Partial<SdkConfig>): void {\n\t\t// if (config.abc) this.abc = config.abc\n\t}\n\n\n\tconfig(config: CommerceLayerConfig): this {\n\n\t\tdebug('config %o', config)\n\n\t\t// CommerceLayer config\n\t\tthis.localConfig(config)\n\t\t// ResourceAdapter config\n\t\tApiResourceAdapter.config(config)\n\n\t\treturn this\n\n\t}\n\n\t\n\tresources(sort?: boolean): readonly string[] {\n\t\treturn getResources(sort)\n\t}\n\n\tisApiError(error: any): error is ApiError {\n\t\treturn isApiError(error)\n\t}\n\n\n\taddRequestInterceptor(onSuccess?: RequestInterceptor, onFailure?: ErrorInterceptor): number {\n\t\tthis.interceptors.request = { onSuccess, onFailure }\n\t\treturn 1\n\t}\n\n\taddResponseInterceptor(onSuccess?: ResponseInterceptor, onFailure?: ErrorInterceptor): number {\n\t\tthis.interceptors.response = { onSuccess, onFailure }\n\t\treturn 1\n\t}\n\n\tremoveInterceptor(type: InterceptorType, _id: number = 1): void {\n\t\tthis.interceptors[type] = undefined\n\t}\n\n\tremoveInterceptors(): void {\n\t\tthis.removeInterceptor('request')\n\t\tthis.removeInterceptor('response')\n\t\tthis.removeRawResponseReader()\n\t}\n\n\taddRawResponseReader(options?: { headers: boolean }): RawResponseReader {\n\n\t\tconst reader: RawResponseReader = {\n\t\t\tid: 0,\n\t\t\trawResponse: undefined,\n\t\t\theaders: undefined,\n\t\t\tok: true\n\t\t}\n\n\t\tasync function rawResponseInterceptor(response: ResponseObj): Promise<ResponseObj> {\n\t\t\treader.rawResponse = await response?.clone().json().catch(() => {})\n\t\t\treader.ok = response.ok\n\t\t\tif (options?.headers) {\n\t\t\t\tconst ho: HeadersObj = {}\n\t\t\t\tresponse.headers.forEach((value, key) => { ho[key] = value })\n\t\t\t\treader.headers = ho\n\t\t\t}\n\t\t\treturn response\n\t\t}\n\t\t\n\t\t/* const interceptor = */this.interceptors.rawReader = { onSuccess: rawResponseInterceptor, onFailure: rawResponseInterceptor }\n\t\treader.id = 1 // interceptor\n\n\t\treturn reader\n\n\t}\n\n\tremoveRawResponseReader(/* reader: number | RawResponseReader */): void {\n\t\t/*\n\t\tconst id = (typeof reader === 'number') ? reader : reader?.id\n\t\tif (id && (id >= 0)) this.removeInterceptor('response', id)\n\t\t*/\n\t\tthis.interceptors.rawReader = undefined\n\t}\n\n}\n\n\n\nconst CommerceLayer = (config: CommerceLayerInitConfig): CommerceLayerClient => {\n\treturn CommerceLayerClient.get(config)\n}\n\n\nexport default CommerceLayer\nexport type { CommerceLayerConfig, CommerceLayerInitConfig }\nexport { CommerceLayer, CommerceLayerClient }\n"]}
1
+ {"version":3,"sources":["../src/commercelayer.ts"],"names":[],"mappings":";;;;;;AAUA,IAAM,KAAA,GAAQ,cAAM,eAAe,CAAA;AAI5B,IAAM,uBAAA,GAA0B;AAcvC,IAAM,mBAAA,GAAN,MAAM,oBAAA,CAAoB;AAAA,EA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AAA;AAAA,QAAM,CAAC,CAAA;AAC5D,QAAA,MAAA,CAAO,OAAA,GAAU,EAAA;AAAA,MAClB;AACA,MAAA,OAAO,QAAA;AAAA,IACR;AAEyB,IAAA,IAAA,CAAK,aAAa,SAAA,GAAY,EAAE,SAAA,EAAW,sBAAA,EAAwB,WAAW,sBAAA,EAAuB;AAC9H,IAAA,MAAA,CAAO,EAAA,GAAK,CAAA;AAEZ,IAAA,OAAO,MAAA;AAAA,EAER;AAAA,EAEA,uBAAA,GAAwE;AAKvE,IAAA,IAAA,CAAK,aAAa,SAAA,GAAY,MAAA;AAAA,EAC/B;AAED;AAIA,IAAM,aAAA,GAAgB,CAAC,MAAA,KAAyD;AAC/E,EAAA,OAAO,mBAAA,CAAoB,IAAI,MAAM,CAAA;AACtC;AAGA,IAAO,qBAAA,GAAQ","file":"chunk-IUGXRDL5.js","sourcesContent":["\n\n\nimport Debug from './debug'\n// import * as api from './api'\nimport { getResources } from './enum'\nimport { type ApiError, isApiError } from './error'\nimport type { ErrorInterceptor, HeadersObj, InterceptorManager, InterceptorType, RawResponseReader, RequestInterceptor, ResponseInterceptor, ResponseObj } from './interceptor'\nimport { ApiResourceAdapter, type ResourcesInitConfig } from './resource'\n\nconst debug = Debug('commercelayer')\n\n\n// Autogenerated version number, do not remove this line\nexport const OPEN_API_SCHEMA_VERSION = '7.10.3'\n\n\n// SDK local configuration\n// biome-ignore lint/complexity/noBannedTypes: left as placeholder for future SDK config options\ntype SdkConfig = {\n\t// abc?: string\n}\n\ntype CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig\ntype CommerceLayerConfig = Partial<CommerceLayerInitConfig>\n\n\n\nclass CommerceLayerClient {\n\n\treadonly openApiSchemaVersion = OPEN_API_SCHEMA_VERSION\n\n\tprotected static cl: CommerceLayerClient\n\n\t// ##__CL_RESOURCES_DEF_START__##\n\t// ##__CL_RESOURCES_DEF_TEMPLATE:: ##__TAB__#####__RESOURCE_TYPE__##?: api.##__RESOURCE_CLASS__##\n\n\t// ##__CL_RESOURCES_DEF_STOP__##\n\n\n\tstatic get (config?: CommerceLayerInitConfig): CommerceLayerClient {\n\t\tif (config) return (CommerceLayerClient.cl = new CommerceLayerClient(config))\n\t\telse\n\t\tif (!CommerceLayerClient.cl) throw new Error('CommerceLayer client not initialized')\n\t\treturn CommerceLayerClient.cl\n\t}\n\n\n\tprotected constructor(config: CommerceLayerInitConfig) {\n\n\t\tdebug('new commercelayer instance %O', config)\n\n\t\tApiResourceAdapter.init(config)\n\n\t\t// ##__CL_RESOURCES_INIT_START__##\n\t\t// ##__CL_RESOURCES_INIT_TEMPLATE:: ##__TAB__####__TAB__##this.##__RESOURCE_TYPE__## = new api.##__RESOURCE_CLASS__##(this.#adapter)\n\t\t// ##__CL_RESOURCES_INIT_STOP__##\n\n\t}\n\n\t// ##__CL_RESOURCES_LEAZY_LOADING_START__##\n\t// ##__CL_RESOURCES_LEAZY_LOADING_TEMPLATE:: ##__TAB__##get ##__RESOURCE_TYPE__##(): api.##__RESOURCE_CLASS__## { return this.###__RESOURCE_TYPE__## || (this.###__RESOURCE_TYPE__## = new api.##__RESOURCE_CLASS__##(this.#adapter)) }\n\n\t// ##__CL_RESOURCES_LEAZY_LOADING_STOP__##\n\n\t// private get adapter(): ResourceAdapter { return ApiResourceAdapter.get() }\n\tget currentOrganization(): string { return ApiResourceAdapter.get().client?.currentOrganization }\n\tget currentAccessToken(): string { return ApiResourceAdapter.get().client?.currentAccessToken }\n\tprivate get interceptors(): InterceptorManager { return ApiResourceAdapter.get().client?.interceptors }\n\n\n\tprivate localConfig(_config: Partial<SdkConfig>): void {\n\t\t// if (config.abc) this.abc = config.abc\n\t}\n\n\n\tconfig(config: CommerceLayerConfig): this {\n\n\t\tdebug('config %o', config)\n\n\t\t// CommerceLayer config\n\t\tthis.localConfig(config)\n\t\t// ResourceAdapter config\n\t\tApiResourceAdapter.config(config)\n\n\t\treturn this\n\n\t}\n\n\t\n\tresources(sort?: boolean): readonly string[] {\n\t\treturn getResources(sort)\n\t}\n\n\tisApiError(error: any): error is ApiError {\n\t\treturn isApiError(error)\n\t}\n\n\n\taddRequestInterceptor(onSuccess?: RequestInterceptor, onFailure?: ErrorInterceptor): number {\n\t\tthis.interceptors.request = { onSuccess, onFailure }\n\t\treturn 1\n\t}\n\n\taddResponseInterceptor(onSuccess?: ResponseInterceptor, onFailure?: ErrorInterceptor): number {\n\t\tthis.interceptors.response = { onSuccess, onFailure }\n\t\treturn 1\n\t}\n\n\tremoveInterceptor(type: InterceptorType, _id: number = 1): void {\n\t\tthis.interceptors[type] = undefined\n\t}\n\n\tremoveInterceptors(): void {\n\t\tthis.removeInterceptor('request')\n\t\tthis.removeInterceptor('response')\n\t\tthis.removeRawResponseReader()\n\t}\n\n\taddRawResponseReader(options?: { headers: boolean }): RawResponseReader {\n\n\t\tconst reader: RawResponseReader = {\n\t\t\tid: 0,\n\t\t\trawResponse: undefined,\n\t\t\theaders: undefined,\n\t\t\tok: true\n\t\t}\n\n\t\tasync function rawResponseInterceptor(response: ResponseObj): Promise<ResponseObj> {\n\t\t\treader.rawResponse = await response?.clone().json().catch(() => {})\n\t\t\treader.ok = response.ok\n\t\t\tif (options?.headers) {\n\t\t\t\tconst ho: HeadersObj = {}\n\t\t\t\tresponse.headers.forEach((value, key) => { ho[key] = value })\n\t\t\t\treader.headers = ho\n\t\t\t}\n\t\t\treturn response\n\t\t}\n\t\t\n\t\t/* const interceptor = */this.interceptors.rawReader = { onSuccess: rawResponseInterceptor, onFailure: rawResponseInterceptor }\n\t\treader.id = 1 // interceptor\n\n\t\treturn reader\n\n\t}\n\n\tremoveRawResponseReader(/* reader: number | RawResponseReader */): void {\n\t\t/*\n\t\tconst id = (typeof reader === 'number') ? reader : reader?.id\n\t\tif (id && (id >= 0)) this.removeInterceptor('response', id)\n\t\t*/\n\t\tthis.interceptors.rawReader = undefined\n\t}\n\n}\n\n\n\nconst CommerceLayer = (config: CommerceLayerInitConfig): CommerceLayerClient => {\n\treturn CommerceLayerClient.get(config)\n}\n\n\nexport default CommerceLayer\nexport type { CommerceLayerConfig, CommerceLayerInitConfig }\nexport { CommerceLayer, CommerceLayerClient }\n"]}
@@ -43,5 +43,5 @@ var instance = new Exports();
43
43
  var exports_default = instance;
44
44
 
45
45
  export { exports_default };
46
- //# sourceMappingURL=chunk-N5BGBBOP.js.map
47
- //# sourceMappingURL=chunk-N5BGBBOP.js.map
46
+ //# sourceMappingURL=chunk-NV364EJH.js.map
47
+ //# sourceMappingURL=chunk-NV364EJH.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/resources/exports.ts"],"names":[],"mappings":";;;AAsKA,IAAM,OAAA,GAAN,MAAM,QAAA,SAAgB,WAAA,CAAoB;AAAA,EAEzC,OAAgB,IAAA,GAAmB,SAAA;AAAA,EAEnC,MAAM,MAAA,CAAO,QAAA,EAAwB,MAAA,EAAsC,OAAA,EAA4C;AACtH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA6B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,QAAA,CAAQ,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACxG;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAwB,MAAA,EAAsC,OAAA,EAA4C;AACtH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA6B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,QAAA,CAAQ,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACxG;AAAA,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA,EAA0C;AAC/E,IAAA,MAAM,IAAA,CAAK,SAAA,CAAU,MAAA,CAAQ,OAAO,EAAA,KAAO,QAAA,GAAW,EAAE,EAAA,EAAI,IAAA,EAAM,QAAA,CAAQ,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA,EAC/F;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAA2B,MAAA,EAAi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AQ,IAAA;AAAA,EACpD;AAAA,EAGA,aAAa,EAAA,EAA2C;AACvD,IAAA,OAAO,KAAA,CAAM,qBAAgC,EAAE,CAAA;AAAA,EAChD;AAAA,EAEA,sBAAsB,GAAA,EAA4B;AACjD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAiC,GAAG,GAAG,CAAA;AAAA,EACrD;AAAA,EAGA,IAAA,GAAmB;AAClB,IAAA,OAAO,QAAA,CAAQ,IAAA;AAAA,EAChB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,OAAA,EAAQ;AAC7B,IAAO,eAAA,GAAQ","file":"chunk-NV364EJH.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\n\n\ntype ExportType = 'exports'\ntype ExportRel = ResourceRel & { type: ExportType }\n\n\nexport type ExportSort = Pick<Export, 'id' | 'resource_type' | 'format' | 'status' | 'started_at' | 'completed_at' | 'interrupted_at' | 'records_count' | 'processed_count' | 'attachment_url'> & ResourceSort\n// export type ExportFilter = Pick<Export, 'id' | 'resource_type' | 'format' | 'status' | 'started_at' | 'completed_at' | 'interrupted_at' | 'records_count' | 'processed_count' | 'attachment_url' | 'errors_log'> & ResourceFilter\n\n\ninterface Export extends Resource {\n\t\n\treadonly type: ExportType\n\n\t/** \n\t * The type of resource being exported. One of 'applications', 'event_stores', 'organizations', 'addresses', 'geocoders', 'events', 'tags', 'adjustments', 'price_lists', 'payment_gateways', 'payment_methods', 'markets', 'customer_groups', 'line_items', 'discount_engine_items', 'promotions', 'adyen_payments', 'orders', 'transactions', 'order_factories', 'attachments', 'tax_calculators', 'tax_categories', 'skus', 'shipping_categories', 'axerve_payments', 'order_validation_rules', 'braintree_payments', 'bundles', 'sku_lists', 'sku_list_items', 'stock_items', 'stock_locations', 'promotion_rules', 'coupons', 'returns', 'carrier_accounts', 'checkout_com_payments', 'customers', 'customer_addresses', 'customer_payment_sources', 'customer_subscriptions', 'order_subscriptions', 'customer_password_resets', 'delivery_lead_times', 'shipping_methods', 'shipments', 'discount_engines', 'pickups', 'parcels', 'webhooks', 'event_callbacks', 'external_payments', 'gift_cards', 'in_stock_subscriptions', 'inventory_models', 'inventory_stock_locations', 'inventory_return_locations', 'klarna_payments', 'line_item_options', 'return_line_items', 'stock_line_items', 'stock_reservations', 'stock_transfers', 'notifications', 'sku_options', 'links', 'tax_rules', 'merchants', 'subscription_models', 'stores', 'price_list_schedulers', 'order_subscription_items', 'payment_options', 'resource_errors', 'paypal_payments', 'packages', 'parcel_line_items', 'prices', 'price_tiers', 'reserved_stocks', 'satispay_payments', 'shipping_method_tiers', 'shipping_zones', 'stripe_payments', or 'wire_transfers'.\n\t * @example ```\"skus\"```\n\t */\n\tresource_type: 'applications' | 'event_stores' | 'organizations' | 'addresses' | 'geocoders' | 'events' | 'tags' | 'adjustments' | 'price_lists' | 'payment_gateways' | 'payment_methods' | 'markets' | 'customer_groups' | 'line_items' | 'discount_engine_items' | 'promotions' | 'adyen_payments' | 'orders' | 'transactions' | 'order_factories' | 'attachments' | 'tax_calculators' | 'tax_categories' | 'skus' | 'shipping_categories' | 'axerve_payments' | 'order_validation_rules' | 'braintree_payments' | 'bundles' | 'sku_lists' | 'sku_list_items' | 'stock_items' | 'stock_locations' | 'promotion_rules' | 'coupons' | 'returns' | 'carrier_accounts' | 'checkout_com_payments' | 'customers' | 'customer_addresses' | 'customer_payment_sources' | 'customer_subscriptions' | 'order_subscriptions' | 'customer_password_resets' | 'delivery_lead_times' | 'shipping_methods' | 'shipments' | 'discount_engines' | 'pickups' | 'parcels' | 'webhooks' | 'event_callbacks' | 'external_payments' | 'gift_cards' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_stock_locations' | 'inventory_return_locations' | 'klarna_payments' | 'line_item_options' | 'return_line_items' | 'stock_line_items' | 'stock_reservations' | 'stock_transfers' | 'notifications' | 'sku_options' | 'links' | 'tax_rules' | 'merchants' | 'subscription_models' | 'stores' | 'price_list_schedulers' | 'order_subscription_items' | 'payment_options' | 'resource_errors' | 'paypal_payments' | 'packages' | 'parcel_line_items' | 'prices' | 'price_tiers' | 'reserved_stocks' | 'satispay_payments' | 'shipping_method_tiers' | 'shipping_zones' | 'stripe_payments' | 'wire_transfers'\n\t/** \n\t * The format of the export. One of 'csv', or 'json' (default).\n\t * @example ```\"json\"```\n\t */\n\tformat?: 'csv' | 'json' | null\n\t/** \n\t * The export job status. One of 'pending' (default), 'in_progress', 'interrupted', 'completed', or 'failed'.\n\t * @example ```\"in_progress\"```\n\t */\n\tstatus: 'pending' | 'in_progress' | 'interrupted' | 'completed' | 'failed'\n\t/** \n\t * List of related resources that should be included in the export (redundant when 'fields' are specified).\n\t * @example ```[\"prices.price_tiers\"]```\n\t */\n\tincludes?: string[] | null\n\t/** \n\t * List of fields to export for the main and related resources (automatically included). Pass the asterisk '*' to include all exportable fields for the main and related resources.\n\t * @example ```[\"code\",\"name\",\"prices.*\",\"prices.price_tiers.price_amount_cents\"]```\n\t */\n\tfields?: string[] | null\n\t/** \n\t * The filters used to select the records to be exported.\n\t * @example ```{\"code_eq\":\"AAA\"}```\n\t */\n\tfilters?: Record<string, any> | null\n\t/** \n\t * Send this attribute if you want to skip exporting redundant attributes (IDs, timestamps, blanks, etc.), useful when combining export and import to duplicate your dataset.\n\t */\n\tdry_data?: boolean | null\n\t/** \n\t * Send this attribute to apply JWT scope–based sales channel filtering to the exported data.\n\t * @example ```true```\n\t */\n\tjwt_filters?: boolean | null\n\t/** \n\t * Time at which the export was started.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarted_at?: string | null\n\t/** \n\t * Time at which the export was completed.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tcompleted_at?: string | null\n\t/** \n\t * Estimated time at which the export should complete (dynamically refres^hed).\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\testimated_completion_at?: string | null\n\t/** \n\t * Time at which the export was interrupted.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tinterrupted_at?: string | null\n\t/** \n\t * Indicates the number of records to be exported.\n\t * @example ```300```\n\t */\n\trecords_count?: number | null\n\t/** \n\t * Indicates how many records have been processed in real time.\n\t * @example ```270```\n\t */\n\tprocessed_count?: number | null\n\t/** \n\t * The percentage of progress of the export.\n\t * @example ```30```\n\t */\n\tprogress?: number | null\n\t/** \n\t * The URL to the output file, which will be generated upon export completion.\n\t * @example ```\"http://cl_exports.s3.amazonaws.com/\"```\n\t */\n\tattachment_url?: string | null\n\t/** \n\t * Contains the exports errors, if any.\n\t * @example ```{\"RuntimeError\":\"query timeout\"}```\n\t */\n\terrors_log?: Record<string, any> | null\n\n\tevents?: Event[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface ExportCreate extends ResourceCreate {\n\t\n\t/** \n\t * The type of resource being exported. One of 'applications', 'event_stores', 'organizations', 'addresses', 'geocoders', 'events', 'tags', 'adjustments', 'price_lists', 'payment_gateways', 'payment_methods', 'markets', 'customer_groups', 'line_items', 'discount_engine_items', 'promotions', 'adyen_payments', 'orders', 'transactions', 'order_factories', 'attachments', 'tax_calculators', 'tax_categories', 'skus', 'shipping_categories', 'axerve_payments', 'order_validation_rules', 'braintree_payments', 'bundles', 'sku_lists', 'sku_list_items', 'stock_items', 'stock_locations', 'promotion_rules', 'coupons', 'returns', 'carrier_accounts', 'checkout_com_payments', 'customers', 'customer_addresses', 'customer_payment_sources', 'customer_subscriptions', 'order_subscriptions', 'customer_password_resets', 'delivery_lead_times', 'shipping_methods', 'shipments', 'discount_engines', 'pickups', 'parcels', 'webhooks', 'event_callbacks', 'external_payments', 'gift_cards', 'in_stock_subscriptions', 'inventory_models', 'inventory_stock_locations', 'inventory_return_locations', 'klarna_payments', 'line_item_options', 'return_line_items', 'stock_line_items', 'stock_reservations', 'stock_transfers', 'notifications', 'sku_options', 'links', 'tax_rules', 'merchants', 'subscription_models', 'stores', 'price_list_schedulers', 'order_subscription_items', 'payment_options', 'resource_errors', 'paypal_payments', 'packages', 'parcel_line_items', 'prices', 'price_tiers', 'reserved_stocks', 'satispay_payments', 'shipping_method_tiers', 'shipping_zones', 'stripe_payments', or 'wire_transfers'.\n\t * @example ```\"skus\"```\n\t */\n\tresource_type: 'applications' | 'event_stores' | 'organizations' | 'addresses' | 'geocoders' | 'events' | 'tags' | 'adjustments' | 'price_lists' | 'payment_gateways' | 'payment_methods' | 'markets' | 'customer_groups' | 'line_items' | 'discount_engine_items' | 'promotions' | 'adyen_payments' | 'orders' | 'transactions' | 'order_factories' | 'attachments' | 'tax_calculators' | 'tax_categories' | 'skus' | 'shipping_categories' | 'axerve_payments' | 'order_validation_rules' | 'braintree_payments' | 'bundles' | 'sku_lists' | 'sku_list_items' | 'stock_items' | 'stock_locations' | 'promotion_rules' | 'coupons' | 'returns' | 'carrier_accounts' | 'checkout_com_payments' | 'customers' | 'customer_addresses' | 'customer_payment_sources' | 'customer_subscriptions' | 'order_subscriptions' | 'customer_password_resets' | 'delivery_lead_times' | 'shipping_methods' | 'shipments' | 'discount_engines' | 'pickups' | 'parcels' | 'webhooks' | 'event_callbacks' | 'external_payments' | 'gift_cards' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_stock_locations' | 'inventory_return_locations' | 'klarna_payments' | 'line_item_options' | 'return_line_items' | 'stock_line_items' | 'stock_reservations' | 'stock_transfers' | 'notifications' | 'sku_options' | 'links' | 'tax_rules' | 'merchants' | 'subscription_models' | 'stores' | 'price_list_schedulers' | 'order_subscription_items' | 'payment_options' | 'resource_errors' | 'paypal_payments' | 'packages' | 'parcel_line_items' | 'prices' | 'price_tiers' | 'reserved_stocks' | 'satispay_payments' | 'shipping_method_tiers' | 'shipping_zones' | 'stripe_payments' | 'wire_transfers'\n\t/** \n\t * The format of the export. One of 'csv', or 'json' (default).\n\t * @example ```\"json\"```\n\t */\n\tformat?: 'csv' | 'json' | null\n\t/** \n\t * List of related resources that should be included in the export (redundant when 'fields' are specified).\n\t * @example ```[\"prices.price_tiers\"]```\n\t */\n\tincludes?: string[] | null\n\t/** \n\t * List of fields to export for the main and related resources (automatically included). Pass the asterisk '*' to include all exportable fields for the main and related resources.\n\t * @example ```[\"code\",\"name\",\"prices.*\",\"prices.price_tiers.price_amount_cents\"]```\n\t */\n\tfields?: string[] | null\n\t/** \n\t * The filters used to select the records to be exported.\n\t * @example ```{\"code_eq\":\"AAA\"}```\n\t */\n\tfilters?: Record<string, any> | null\n\t/** \n\t * Send this attribute if you want to skip exporting redundant attributes (IDs, timestamps, blanks, etc.), useful when combining export and import to duplicate your dataset.\n\t */\n\tdry_data?: boolean | null\n\t/** \n\t * Send this attribute to apply JWT scope–based sales channel filtering to the exported data.\n\t * @example ```true```\n\t */\n\tjwt_filters?: boolean | null\n\t\n}\n\n\ninterface ExportUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Send this attribute if you want to restart an 'interrupted' export.\n\t * @example ```true```\n\t */\n\t_start?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark status as 'interrupted'.\n\t * @example ```true```\n\t */\n\t_interrupt?: boolean | null\n\t\n}\n\n\nclass Exports extends ApiResource<Export> {\n\n\tstatic readonly TYPE: ExportType = 'exports' as const\n\n\tasync create(resource: ExportCreate, params?: QueryParamsRetrieve<Export>, options?: ResourcesConfig): Promise<Export> {\n\t\treturn this.resources.create<ExportCreate, Export>({ ...resource, type: Exports.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ExportUpdate, params?: QueryParamsRetrieve<Export>, options?: ResourcesConfig): Promise<Export> {\n\t\treturn this.resources.update<ExportUpdate, Export>({ ...resource, type: Exports.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: Exports.TYPE } : id, options)\n\t}\n\n\tasync events(exportId: string | Export, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _exportId = (exportId as Export).id || exportId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `exports/${_exportId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync event_stores(exportId: string | Export, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _exportId = (exportId as Export).id || exportId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `exports/${_exportId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _start(id: string | Export, params?: QueryParamsRetrieve<Export>, options?: ResourcesConfig): Promise<Export> {\n\t\treturn this.resources.update<ExportUpdate, Export>({ id: (typeof id === 'string')? id: id.id, type: Exports.TYPE, _start: true }, params, options)\n\t}\n\n\tasync _interrupt(id: string | Export, params?: QueryParamsRetrieve<Export>, options?: ResourcesConfig): Promise<Export> {\n\t\treturn this.resources.update<ExportUpdate, Export>({ id: (typeof id === 'string')? id: id.id, type: Exports.TYPE, _interrupt: true }, params, options)\n\t}\n\n\n\tisExport(resource: any): resource is Export {\n\t\treturn resource.type && (resource.type === Exports.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ExportRel {\n\t\treturn super.relationshipOneToOne<ExportRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ExportRel[] {\n\t\treturn super.relationshipOneToMany<ExportRel>(...ids)\n\t}\n\n\n\ttype(): ExportType {\n\t\treturn Exports.TYPE\n\t}\n\n}\n\n\nconst instance = new Exports()\nexport default instance\n\nexport type { Export, ExportCreate, Exports, ExportType, ExportUpdate }\n"]}
@@ -50,5 +50,5 @@ var instance = new VertexAccounts();
50
50
  var vertex_accounts_default = instance;
51
51
 
52
52
  exports.vertex_accounts_default = vertex_accounts_default;
53
- //# sourceMappingURL=chunk-A77RAUIU.cjs.map
54
- //# sourceMappingURL=chunk-A77RAUIU.cjs.map
53
+ //# sourceMappingURL=chunk-O3UJT5JJ.cjs.map
54
+ //# sourceMappingURL=chunk-O3UJT5JJ.cjs.map