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

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 (379) hide show
  1. package/lib/{api-o1gYTpPm.d.cts → api-BDCNfn2Y.d.cts} +123 -66
  2. package/lib/{api-CxFbvblr.d.ts → api-X5Fgi78h.d.ts} +123 -66
  3. package/lib/api.cjs +18 -18
  4. package/lib/api.d.cts +2 -2
  5. package/lib/api.d.ts +2 -2
  6. package/lib/api.js +9 -9
  7. package/lib/bundle.cjs +20 -20
  8. package/lib/bundle.d.cts +2 -2
  9. package/lib/bundle.d.ts +2 -2
  10. package/lib/bundle.js +10 -10
  11. package/lib/{chunk-R3IJVFKR.cjs → chunk-2TOLW3UO.cjs} +5 -2
  12. package/lib/chunk-2TOLW3UO.cjs.map +1 -0
  13. package/lib/{chunk-NXSK65YY.cjs → chunk-47UCMORS.cjs} +6 -2
  14. package/lib/chunk-47UCMORS.cjs.map +1 -0
  15. package/lib/{chunk-JO2S5NYR.js → chunk-56324YRB.js} +5 -2
  16. package/lib/chunk-56324YRB.js.map +1 -0
  17. package/lib/{chunk-ANRUEWG5.js → chunk-6SQ4LNTP.js} +5 -2
  18. package/lib/chunk-6SQ4LNTP.js.map +1 -0
  19. package/lib/{chunk-SOA5XGA2.js → chunk-73P72ADW.js} +5 -2
  20. package/lib/chunk-73P72ADW.js.map +1 -0
  21. package/lib/{chunk-DBNDWZZW.cjs → chunk-7B46YAQU.cjs} +2 -2
  22. package/lib/{chunk-DBNDWZZW.cjs.map → chunk-7B46YAQU.cjs.map} +1 -1
  23. package/lib/{chunk-QWJAX42Q.cjs → chunk-7TVIC5GW.cjs} +5 -2
  24. package/lib/chunk-7TVIC5GW.cjs.map +1 -0
  25. package/lib/{chunk-I2UV76EQ.js → chunk-ACEZ46QR.js} +3 -3
  26. package/lib/{chunk-I2UV76EQ.js.map → chunk-ACEZ46QR.js.map} +1 -1
  27. package/lib/{chunk-XTN5Y5IT.cjs → chunk-CQXW23HJ.cjs} +2 -2
  28. package/lib/{chunk-XTN5Y5IT.cjs.map → chunk-CQXW23HJ.cjs.map} +1 -1
  29. package/lib/{chunk-XTJSTAG5.js → chunk-EUPQSGPI.js} +3 -3
  30. package/lib/{chunk-XTJSTAG5.js.map → chunk-EUPQSGPI.js.map} +1 -1
  31. package/lib/{chunk-B7T7DQEK.js → chunk-F2PKXIJQ.js} +2 -2
  32. package/lib/{chunk-B7T7DQEK.js.map → chunk-F2PKXIJQ.js.map} +1 -1
  33. package/lib/{chunk-TMP744WP.js → chunk-F6OOTDNW.js} +6 -2
  34. package/lib/chunk-F6OOTDNW.js.map +1 -0
  35. package/lib/{chunk-65XBHNZH.js → chunk-FECG6WIR.js} +2 -2
  36. package/lib/{chunk-65XBHNZH.js.map → chunk-FECG6WIR.js.map} +1 -1
  37. package/lib/{chunk-SO73YTDF.cjs → chunk-JE3P5NJP.cjs} +5 -2
  38. package/lib/chunk-JE3P5NJP.cjs.map +1 -0
  39. package/lib/{chunk-6UIVNEE7.cjs → chunk-KATZAZKF.cjs} +5 -2
  40. package/lib/chunk-KATZAZKF.cjs.map +1 -0
  41. package/lib/{chunk-DUQVVWSA.js → chunk-KJWEQIEM.js} +2 -2
  42. package/lib/{chunk-DUQVVWSA.js.map → chunk-KJWEQIEM.js.map} +1 -1
  43. package/lib/{chunk-CDNYZAMV.js → chunk-KUZBO6ZM.js} +5 -2
  44. package/lib/chunk-KUZBO6ZM.js.map +1 -0
  45. package/lib/{chunk-I2FEIMVG.cjs → chunk-O6QJMGK7.cjs} +5 -2
  46. package/lib/chunk-O6QJMGK7.cjs.map +1 -0
  47. package/lib/{chunk-XJLJ77JI.cjs → chunk-QMBAV3D2.cjs} +3 -3
  48. package/lib/{chunk-XJLJ77JI.cjs.map → chunk-QMBAV3D2.cjs.map} +1 -1
  49. package/lib/{chunk-EFFMFEBS.cjs → chunk-RR3QOFY6.cjs} +4 -4
  50. package/lib/{chunk-EFFMFEBS.cjs.map → chunk-RR3QOFY6.cjs.map} +1 -1
  51. package/lib/{chunk-SIUUVOQC.js → chunk-UTQEHWH2.js} +5 -2
  52. package/lib/chunk-UTQEHWH2.js.map +1 -0
  53. package/lib/{chunk-CWD5DM6G.cjs → chunk-ZJGFUHDX.cjs} +2 -2
  54. package/lib/{chunk-CWD5DM6G.cjs.map → chunk-ZJGFUHDX.cjs.map} +1 -1
  55. package/lib/client.d.cts +1 -1
  56. package/lib/client.d.ts +1 -1
  57. package/lib/commercelayer.cjs +5 -5
  58. package/lib/commercelayer.d.cts +4 -4
  59. package/lib/commercelayer.d.ts +4 -4
  60. package/lib/commercelayer.js +1 -1
  61. package/lib/config.d.cts +1 -1
  62. package/lib/config.d.ts +1 -1
  63. package/lib/enum.d.cts +2 -2
  64. package/lib/enum.d.ts +2 -2
  65. package/lib/{fetch-B8-kP4X0.d.cts → fetch-DQyRNxTg.d.cts} +1 -1
  66. package/lib/{fetch-B8-kP4X0.d.ts → fetch-DQyRNxTg.d.ts} +1 -1
  67. package/lib/fetch.d.cts +1 -1
  68. package/lib/fetch.d.ts +1 -1
  69. package/lib/index.cjs +23 -23
  70. package/lib/index.d.cts +2 -2
  71. package/lib/index.d.ts +2 -2
  72. package/lib/index.js +11 -11
  73. package/lib/interceptor.d.cts +1 -1
  74. package/lib/interceptor.d.ts +1 -1
  75. package/lib/jsonapi.d.cts +2 -2
  76. package/lib/jsonapi.d.ts +2 -2
  77. package/lib/model.d.cts +2 -2
  78. package/lib/model.d.ts +2 -2
  79. package/lib/query.d.cts +2 -2
  80. package/lib/query.d.ts +2 -2
  81. package/lib/resource.d.cts +2 -2
  82. package/lib/resource.d.ts +2 -2
  83. package/lib/resources/addresses.d.cts +3 -3
  84. package/lib/resources/addresses.d.ts +2 -2
  85. package/lib/resources/adjustments.d.cts +3 -3
  86. package/lib/resources/adjustments.d.ts +2 -2
  87. package/lib/resources/adyen_gateways.cjs +2 -2
  88. package/lib/resources/adyen_gateways.d.cts +3 -3
  89. package/lib/resources/adyen_gateways.d.ts +2 -2
  90. package/lib/resources/adyen_gateways.js +1 -1
  91. package/lib/resources/adyen_payments.d.cts +3 -3
  92. package/lib/resources/adyen_payments.d.ts +2 -2
  93. package/lib/resources/applications.d.cts +3 -3
  94. package/lib/resources/applications.d.ts +2 -2
  95. package/lib/resources/attachments.d.cts +3 -3
  96. package/lib/resources/attachments.d.ts +2 -2
  97. package/lib/resources/authorizations.d.cts +3 -3
  98. package/lib/resources/authorizations.d.ts +2 -2
  99. package/lib/resources/avalara_accounts.d.cts +3 -3
  100. package/lib/resources/avalara_accounts.d.ts +2 -2
  101. package/lib/resources/axerve_gateways.d.cts +3 -3
  102. package/lib/resources/axerve_gateways.d.ts +2 -2
  103. package/lib/resources/axerve_payments.d.cts +3 -3
  104. package/lib/resources/axerve_payments.d.ts +2 -2
  105. package/lib/resources/bing_geocoders.d.cts +3 -3
  106. package/lib/resources/bing_geocoders.d.ts +2 -2
  107. package/lib/resources/braintree_gateways.cjs +2 -2
  108. package/lib/resources/braintree_gateways.d.cts +3 -3
  109. package/lib/resources/braintree_gateways.d.ts +2 -2
  110. package/lib/resources/braintree_gateways.js +1 -1
  111. package/lib/resources/braintree_payments.d.cts +3 -3
  112. package/lib/resources/braintree_payments.d.ts +2 -2
  113. package/lib/resources/bundles.d.cts +3 -3
  114. package/lib/resources/bundles.d.ts +2 -2
  115. package/lib/resources/buy_x_pay_y_promotions.d.cts +3 -3
  116. package/lib/resources/buy_x_pay_y_promotions.d.ts +2 -2
  117. package/lib/resources/captures.d.cts +3 -3
  118. package/lib/resources/captures.d.ts +2 -2
  119. package/lib/resources/carrier_accounts.d.cts +3 -3
  120. package/lib/resources/carrier_accounts.d.ts +2 -2
  121. package/lib/resources/checkout_com_gateways.cjs +2 -2
  122. package/lib/resources/checkout_com_gateways.d.cts +3 -3
  123. package/lib/resources/checkout_com_gateways.d.ts +2 -2
  124. package/lib/resources/checkout_com_gateways.js +1 -1
  125. package/lib/resources/checkout_com_payments.d.cts +3 -3
  126. package/lib/resources/checkout_com_payments.d.ts +2 -2
  127. package/lib/resources/cleanups.d.cts +3 -3
  128. package/lib/resources/cleanups.d.ts +2 -2
  129. package/lib/resources/coupon_codes_promotion_rules.d.cts +3 -3
  130. package/lib/resources/coupon_codes_promotion_rules.d.ts +2 -2
  131. package/lib/resources/coupon_recipients.d.cts +3 -3
  132. package/lib/resources/coupon_recipients.d.ts +2 -2
  133. package/lib/resources/coupons.d.cts +3 -3
  134. package/lib/resources/coupons.d.ts +2 -2
  135. package/lib/resources/custom_promotion_rules.d.cts +3 -3
  136. package/lib/resources/custom_promotion_rules.d.ts +2 -2
  137. package/lib/resources/customer_addresses.d.cts +3 -3
  138. package/lib/resources/customer_addresses.d.ts +2 -2
  139. package/lib/resources/customer_groups.d.cts +3 -3
  140. package/lib/resources/customer_groups.d.ts +2 -2
  141. package/lib/resources/customer_password_resets.d.cts +3 -3
  142. package/lib/resources/customer_password_resets.d.ts +2 -2
  143. package/lib/resources/customer_payment_sources.d.cts +3 -3
  144. package/lib/resources/customer_payment_sources.d.ts +2 -2
  145. package/lib/resources/customer_subscriptions.d.cts +3 -3
  146. package/lib/resources/customer_subscriptions.d.ts +2 -2
  147. package/lib/resources/customers.d.cts +3 -3
  148. package/lib/resources/customers.d.ts +2 -2
  149. package/lib/resources/delivery_lead_times.d.cts +3 -3
  150. package/lib/resources/delivery_lead_times.d.ts +2 -2
  151. package/lib/resources/discount_engine_items.d.cts +3 -3
  152. package/lib/resources/discount_engine_items.d.ts +2 -2
  153. package/lib/resources/discount_engines.d.cts +3 -3
  154. package/lib/resources/discount_engines.d.ts +2 -2
  155. package/lib/resources/easypost_pickups.d.cts +3 -3
  156. package/lib/resources/easypost_pickups.d.ts +2 -2
  157. package/lib/resources/event_callbacks.d.cts +3 -3
  158. package/lib/resources/event_callbacks.d.ts +2 -2
  159. package/lib/resources/event_stores.d.cts +3 -3
  160. package/lib/resources/event_stores.d.ts +2 -2
  161. package/lib/resources/events.d.cts +3 -3
  162. package/lib/resources/events.d.ts +2 -2
  163. package/lib/resources/exports.d.cts +3 -3
  164. package/lib/resources/exports.d.ts +2 -2
  165. package/lib/resources/external_gateways.cjs +2 -2
  166. package/lib/resources/external_gateways.d.cts +3 -3
  167. package/lib/resources/external_gateways.d.ts +2 -2
  168. package/lib/resources/external_gateways.js +1 -1
  169. package/lib/resources/external_payments.d.cts +3 -3
  170. package/lib/resources/external_payments.d.ts +2 -2
  171. package/lib/resources/external_promotions.cjs +2 -2
  172. package/lib/resources/external_promotions.d.cts +3 -3
  173. package/lib/resources/external_promotions.d.ts +2 -2
  174. package/lib/resources/external_promotions.js +1 -1
  175. package/lib/resources/external_tax_calculators.cjs +2 -2
  176. package/lib/resources/external_tax_calculators.d.cts +3 -3
  177. package/lib/resources/external_tax_calculators.d.ts +2 -2
  178. package/lib/resources/external_tax_calculators.js +1 -1
  179. package/lib/resources/fixed_amount_promotions.d.cts +3 -3
  180. package/lib/resources/fixed_amount_promotions.d.ts +2 -2
  181. package/lib/resources/fixed_price_promotions.d.cts +3 -3
  182. package/lib/resources/fixed_price_promotions.d.ts +2 -2
  183. package/lib/resources/flex_promotions.d.cts +3 -3
  184. package/lib/resources/flex_promotions.d.ts +2 -2
  185. package/lib/resources/free_gift_promotions.d.cts +3 -3
  186. package/lib/resources/free_gift_promotions.d.ts +2 -2
  187. package/lib/resources/free_shipping_promotions.d.cts +3 -3
  188. package/lib/resources/free_shipping_promotions.d.ts +2 -2
  189. package/lib/resources/geocoders.d.cts +3 -3
  190. package/lib/resources/geocoders.d.ts +2 -2
  191. package/lib/resources/gift_card_recipients.d.cts +3 -3
  192. package/lib/resources/gift_card_recipients.d.ts +2 -2
  193. package/lib/resources/gift_cards.d.cts +3 -3
  194. package/lib/resources/gift_cards.d.ts +2 -2
  195. package/lib/resources/google_geocoders.d.cts +3 -3
  196. package/lib/resources/google_geocoders.d.ts +2 -2
  197. package/lib/resources/imports.d.cts +3 -3
  198. package/lib/resources/imports.d.ts +2 -2
  199. package/lib/resources/in_stock_subscriptions.d.cts +3 -3
  200. package/lib/resources/in_stock_subscriptions.d.ts +2 -2
  201. package/lib/resources/inventory_models.d.cts +3 -3
  202. package/lib/resources/inventory_models.d.ts +2 -2
  203. package/lib/resources/inventory_return_locations.d.cts +3 -3
  204. package/lib/resources/inventory_return_locations.d.ts +2 -2
  205. package/lib/resources/inventory_stock_locations.d.cts +3 -3
  206. package/lib/resources/inventory_stock_locations.d.ts +2 -2
  207. package/lib/resources/klarna_gateways.d.cts +3 -3
  208. package/lib/resources/klarna_gateways.d.ts +2 -2
  209. package/lib/resources/klarna_payments.d.cts +3 -3
  210. package/lib/resources/klarna_payments.d.ts +2 -2
  211. package/lib/resources/line_item_options.d.cts +3 -3
  212. package/lib/resources/line_item_options.d.ts +2 -2
  213. package/lib/resources/line_items.d.cts +3 -3
  214. package/lib/resources/line_items.d.ts +2 -2
  215. package/lib/resources/links.d.cts +3 -3
  216. package/lib/resources/links.d.ts +2 -2
  217. package/lib/resources/manual_gateways.d.cts +3 -3
  218. package/lib/resources/manual_gateways.d.ts +2 -2
  219. package/lib/resources/manual_tax_calculators.d.cts +3 -3
  220. package/lib/resources/manual_tax_calculators.d.ts +2 -2
  221. package/lib/resources/markets.d.cts +3 -3
  222. package/lib/resources/markets.d.ts +2 -2
  223. package/lib/resources/merchants.d.cts +3 -3
  224. package/lib/resources/merchants.d.ts +2 -2
  225. package/lib/resources/notifications.d.cts +3 -3
  226. package/lib/resources/notifications.d.ts +2 -2
  227. package/lib/resources/order_amount_promotion_rules.d.cts +3 -3
  228. package/lib/resources/order_amount_promotion_rules.d.ts +2 -2
  229. package/lib/resources/order_copies.d.cts +3 -3
  230. package/lib/resources/order_copies.d.ts +2 -2
  231. package/lib/resources/order_factories.d.cts +3 -3
  232. package/lib/resources/order_factories.d.ts +2 -2
  233. package/lib/resources/order_subscription_items.d.cts +3 -3
  234. package/lib/resources/order_subscription_items.d.ts +2 -2
  235. package/lib/resources/order_subscriptions.d.cts +3 -3
  236. package/lib/resources/order_subscriptions.d.ts +2 -2
  237. package/lib/resources/orders.d.cts +3 -3
  238. package/lib/resources/orders.d.ts +2 -2
  239. package/lib/resources/organizations.d.cts +3 -3
  240. package/lib/resources/organizations.d.ts +2 -2
  241. package/lib/resources/packages.d.cts +3 -3
  242. package/lib/resources/packages.d.ts +2 -2
  243. package/lib/resources/parcel_line_items.d.cts +3 -3
  244. package/lib/resources/parcel_line_items.d.ts +2 -2
  245. package/lib/resources/parcels.d.cts +3 -3
  246. package/lib/resources/parcels.d.ts +2 -2
  247. package/lib/resources/payment_gateways.d.cts +3 -3
  248. package/lib/resources/payment_gateways.d.ts +2 -2
  249. package/lib/resources/payment_methods.d.cts +3 -3
  250. package/lib/resources/payment_methods.d.ts +2 -2
  251. package/lib/resources/payment_options.d.cts +3 -3
  252. package/lib/resources/payment_options.d.ts +2 -2
  253. package/lib/resources/paypal_gateways.cjs +2 -2
  254. package/lib/resources/paypal_gateways.d.cts +3 -3
  255. package/lib/resources/paypal_gateways.d.ts +2 -2
  256. package/lib/resources/paypal_gateways.js +1 -1
  257. package/lib/resources/paypal_payments.d.cts +3 -3
  258. package/lib/resources/paypal_payments.d.ts +2 -2
  259. package/lib/resources/percentage_discount_promotions.d.cts +3 -3
  260. package/lib/resources/percentage_discount_promotions.d.ts +2 -2
  261. package/lib/resources/pickups.d.cts +3 -3
  262. package/lib/resources/pickups.d.ts +2 -2
  263. package/lib/resources/price_frequency_tiers.d.cts +3 -3
  264. package/lib/resources/price_frequency_tiers.d.ts +2 -2
  265. package/lib/resources/price_list_schedulers.d.cts +3 -3
  266. package/lib/resources/price_list_schedulers.d.ts +2 -2
  267. package/lib/resources/price_lists.d.cts +3 -3
  268. package/lib/resources/price_lists.d.ts +2 -2
  269. package/lib/resources/price_tiers.d.cts +3 -3
  270. package/lib/resources/price_tiers.d.ts +2 -2
  271. package/lib/resources/price_volume_tiers.d.cts +3 -3
  272. package/lib/resources/price_volume_tiers.d.ts +2 -2
  273. package/lib/resources/prices.d.cts +3 -3
  274. package/lib/resources/prices.d.ts +2 -2
  275. package/lib/resources/promotion_rules.d.cts +3 -3
  276. package/lib/resources/promotion_rules.d.ts +2 -2
  277. package/lib/resources/promotions.d.cts +3 -3
  278. package/lib/resources/promotions.d.ts +2 -2
  279. package/lib/resources/recurring_order_copies.d.cts +3 -3
  280. package/lib/resources/recurring_order_copies.d.ts +2 -2
  281. package/lib/resources/refunds.d.cts +3 -3
  282. package/lib/resources/refunds.d.ts +2 -2
  283. package/lib/resources/reserved_stocks.d.cts +3 -3
  284. package/lib/resources/reserved_stocks.d.ts +2 -2
  285. package/lib/resources/resource_errors.d.cts +3 -3
  286. package/lib/resources/resource_errors.d.ts +2 -2
  287. package/lib/resources/return_line_items.d.cts +3 -3
  288. package/lib/resources/return_line_items.d.ts +2 -2
  289. package/lib/resources/returns.d.cts +3 -3
  290. package/lib/resources/returns.d.ts +2 -2
  291. package/lib/resources/satispay_gateways.d.cts +3 -3
  292. package/lib/resources/satispay_gateways.d.ts +2 -2
  293. package/lib/resources/satispay_payments.d.cts +3 -3
  294. package/lib/resources/satispay_payments.d.ts +2 -2
  295. package/lib/resources/shipments.d.cts +3 -3
  296. package/lib/resources/shipments.d.ts +2 -2
  297. package/lib/resources/shipping_categories.d.cts +3 -3
  298. package/lib/resources/shipping_categories.d.ts +2 -2
  299. package/lib/resources/shipping_method_tiers.d.cts +3 -3
  300. package/lib/resources/shipping_method_tiers.d.ts +2 -2
  301. package/lib/resources/shipping_methods.d.cts +3 -3
  302. package/lib/resources/shipping_methods.d.ts +2 -2
  303. package/lib/resources/shipping_weight_tiers.cjs +2 -2
  304. package/lib/resources/shipping_weight_tiers.d.cts +3 -3
  305. package/lib/resources/shipping_weight_tiers.d.ts +2 -2
  306. package/lib/resources/shipping_weight_tiers.js +1 -1
  307. package/lib/resources/shipping_zones.d.cts +3 -3
  308. package/lib/resources/shipping_zones.d.ts +2 -2
  309. package/lib/resources/sku_list_items.d.cts +3 -3
  310. package/lib/resources/sku_list_items.d.ts +2 -2
  311. package/lib/resources/sku_list_promotion_rules.d.cts +3 -3
  312. package/lib/resources/sku_list_promotion_rules.d.ts +2 -2
  313. package/lib/resources/sku_lists.d.cts +3 -3
  314. package/lib/resources/sku_lists.d.ts +2 -2
  315. package/lib/resources/sku_options.d.cts +3 -3
  316. package/lib/resources/sku_options.d.ts +2 -2
  317. package/lib/resources/skus.d.cts +3 -3
  318. package/lib/resources/skus.d.ts +2 -2
  319. package/lib/resources/stock_items.d.cts +3 -3
  320. package/lib/resources/stock_items.d.ts +2 -2
  321. package/lib/resources/stock_line_items.d.cts +3 -3
  322. package/lib/resources/stock_line_items.d.ts +2 -2
  323. package/lib/resources/stock_locations.d.cts +3 -3
  324. package/lib/resources/stock_locations.d.ts +2 -2
  325. package/lib/resources/stock_reservations.d.cts +3 -3
  326. package/lib/resources/stock_reservations.d.ts +2 -2
  327. package/lib/resources/stock_transfers.d.cts +3 -3
  328. package/lib/resources/stock_transfers.d.ts +2 -2
  329. package/lib/resources/stores.d.cts +3 -3
  330. package/lib/resources/stores.d.ts +2 -2
  331. package/lib/resources/stripe_gateways.cjs +2 -2
  332. package/lib/resources/stripe_gateways.d.cts +3 -3
  333. package/lib/resources/stripe_gateways.d.ts +2 -2
  334. package/lib/resources/stripe_gateways.js +1 -1
  335. package/lib/resources/stripe_payments.d.cts +3 -3
  336. package/lib/resources/stripe_payments.d.ts +2 -2
  337. package/lib/resources/stripe_tax_accounts.d.cts +3 -3
  338. package/lib/resources/stripe_tax_accounts.d.ts +2 -2
  339. package/lib/resources/subscription_models.d.cts +3 -3
  340. package/lib/resources/subscription_models.d.ts +2 -2
  341. package/lib/resources/tags.d.cts +3 -3
  342. package/lib/resources/tags.d.ts +2 -2
  343. package/lib/resources/talon_one_accounts.d.cts +3 -3
  344. package/lib/resources/talon_one_accounts.d.ts +2 -2
  345. package/lib/resources/tax_calculators.d.cts +3 -3
  346. package/lib/resources/tax_calculators.d.ts +2 -2
  347. package/lib/resources/tax_categories.d.cts +3 -3
  348. package/lib/resources/tax_categories.d.ts +2 -2
  349. package/lib/resources/tax_rules.d.cts +3 -3
  350. package/lib/resources/tax_rules.d.ts +2 -2
  351. package/lib/resources/taxjar_accounts.d.cts +3 -3
  352. package/lib/resources/taxjar_accounts.d.ts +2 -2
  353. package/lib/resources/transactions.d.cts +3 -3
  354. package/lib/resources/transactions.d.ts +2 -2
  355. package/lib/resources/vertex_accounts.d.cts +3 -3
  356. package/lib/resources/vertex_accounts.d.ts +2 -2
  357. package/lib/resources/voids.d.cts +3 -3
  358. package/lib/resources/voids.d.ts +2 -2
  359. package/lib/resources/webhooks.d.cts +3 -3
  360. package/lib/resources/webhooks.d.ts +2 -2
  361. package/lib/resources/wire_transfers.d.cts +3 -3
  362. package/lib/resources/wire_transfers.d.ts +2 -2
  363. package/lib/static.cjs +3 -3
  364. package/lib/static.d.cts +2 -2
  365. package/lib/static.d.ts +2 -2
  366. package/lib/static.js +2 -2
  367. package/package.json +3 -3
  368. package/lib/chunk-6UIVNEE7.cjs.map +0 -1
  369. package/lib/chunk-ANRUEWG5.js.map +0 -1
  370. package/lib/chunk-CDNYZAMV.js.map +0 -1
  371. package/lib/chunk-I2FEIMVG.cjs.map +0 -1
  372. package/lib/chunk-JO2S5NYR.js.map +0 -1
  373. package/lib/chunk-NXSK65YY.cjs.map +0 -1
  374. package/lib/chunk-QWJAX42Q.cjs.map +0 -1
  375. package/lib/chunk-R3IJVFKR.cjs.map +0 -1
  376. package/lib/chunk-SIUUVOQC.js.map +0 -1
  377. package/lib/chunk-SO73YTDF.cjs.map +0 -1
  378. package/lib/chunk-SOA5XGA2.js.map +0 -1
  379. package/lib/chunk-TMP744WP.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/commercelayer.ts"],"names":["debug_default","ApiResourceAdapter","getResources","isApiError"],"mappings":";;;;;;;;AAUA,IAAM,KAAA,GAAQA,gCAAM,eAAe,CAAA;AAI5B,IAAM,uBA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,CAAC,KAAA,EAAO,GAAA,KAAQ;AAAE,UAAA,EAAA,CAAG,GAAG,CAAA,GAAI,KAAA;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-XJLJ77JI.cjs","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.0'\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":["debug_default","ApiResourceAdapter","getResources","isApiError"],"mappings":";;;;;;;;AAUA,IAAM,KAAA,GAAQA,gCAAM,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;AACnF,IAAA,OAAO,oBAAA,CAAoB,EAAA;AAAA,EAC5B;AAAA,EAGU,YAAY,MAAA,EAAiC;AAEtD,IAAA,KAAA,CAAM,iCAAiC,MAAM,CAAA;AAE7C,IAAAC,oCAAA,CAAmB,KAAK,MAAM,CAAA;AAAA,EAM/B;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,IAAI,mBAAA,GAA8B;AAAE,IAAA,OAAOA,oCAAA,CAAmB,GAAA,EAAI,CAAE,MAAA,EAAQ,mBAAA;AAAA,EAAoB;AAAA,EAChG,IAAI,kBAAA,GAA6B;AAAE,IAAA,OAAOA,oCAAA,CAAmB,GAAA,EAAI,CAAE,MAAA,EAAQ,kBAAA;AAAA,EAAmB;AAAA,EAC9F,IAAY,YAAA,GAAmC;AAAE,IAAA,OAAOA,oCAAA,CAAmB,GAAA,EAAI,CAAE,MAAA,EAAQ,YAAA;AAAA,EAA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AAEA,IAAA,eAAe,uBAAuB,QAAA,EAA6C;AAClF,MAAA,MAAA,CAAO,WAAA,GAAc,MAAM,QAAA,EAAU,KAAA,GAAQ,IAAA,EAAK,CAAE,MAAM,MAAM;AAAA,MAAC,CAAC,CAAA;AAClE,MAAA,MAAA,CAAO,KAAK,QAAA,CAAS,EAAA;AACrB,MAAA,IAAI,SAAS,OAAA,EAAS;AACrB,QAAA,MAAM,KAAiB,EAAC;AACxB,QAAA,QAAA,CAAS,OAAA,CAAQ,OAAA,CAAQ,CAAC,KAAA,EAAO,GAAA,KAAQ;AAAE,UAAA,EAAA,CAAG,GAAG,CAAA,GAAI,KAAA;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-QMBAV3D2.cjs","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,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkXJLJ77JI_cjs = require('./chunk-XJLJ77JI.cjs');
3
+ var chunkQMBAV3D2_cjs = require('./chunk-QMBAV3D2.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 chunkXJLJ77JI_cjs.OPEN_API_SCHEMA_VERSION;
41
+ return chunkQMBAV3D2_cjs.OPEN_API_SCHEMA_VERSION;
42
42
  }
43
43
  };
44
44
 
45
45
  exports.CommerceLayerStatic = CommerceLayerStatic;
46
- //# sourceMappingURL=chunk-EFFMFEBS.cjs.map
47
- //# sourceMappingURL=chunk-EFFMFEBS.cjs.map
46
+ //# sourceMappingURL=chunk-RR3QOFY6.cjs.map
47
+ //# sourceMappingURL=chunk-RR3QOFY6.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-EFFMFEBS.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-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"]}
@@ -30,6 +30,9 @@ var AdyenGateways = class _AdyenGateways extends ApiResource {
30
30
  async _enable(id, params, options) {
31
31
  return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _AdyenGateways.TYPE, _enable: true }, params, options);
32
32
  }
33
+ async _check(id, params, options) {
34
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _AdyenGateways.TYPE, _check: true }, params, options);
35
+ }
33
36
  isAdyenGateway(resource) {
34
37
  return resource.type && resource.type === _AdyenGateways.TYPE;
35
38
  }
@@ -47,5 +50,5 @@ var instance = new AdyenGateways();
47
50
  var adyen_gateways_default = instance;
48
51
 
49
52
  export { adyen_gateways_default };
50
- //# sourceMappingURL=chunk-SIUUVOQC.js.map
51
- //# sourceMappingURL=chunk-SIUUVOQC.js.map
53
+ //# sourceMappingURL=chunk-UTQEHWH2.js.map
54
+ //# sourceMappingURL=chunk-UTQEHWH2.js.map
@@ -0,0 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CAAyC,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,cAAA,CAAc,IAAA,EAAM,QAAQ,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA,EACpK;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-UTQEHWH2.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 { AdyenPayment, AdyenPaymentType } from './adyen_payments'\nimport type { EventStore } from './event_stores'\nimport type { PaymentMethod } from './payment_methods'\n\n\ntype AdyenGatewayType = 'adyen_gateways'\ntype AdyenGatewayRel = ResourceRel & { type: AdyenGatewayType }\ntype AdyenPaymentRel = ResourceRel & { type: AdyenPaymentType }\n\n\nexport type AdyenGatewaySort = Pick<AdyenGateway, 'id' | 'name' | 'disabled_at'> & ResourceSort\n// export type AdyenGatewayFilter = Pick<AdyenGateway, 'id' | 'name' | 'disabled_at'> & ResourceFilter\n\n\ninterface AdyenGateway extends Resource {\n\t\n\treadonly type: AdyenGatewayType\n\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\t/** \n\t * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n\t * @example ```true```\n\t */\n\tforce_payments?: boolean | null\n\t/** \n\t * The payment gateway's API credential keys last digits.\n\t * @example ```{\"api_key\":\"********BW989\"}```\n\t */\n\tcredential_keys?: Record<string, any> | null\n\t/** \n\t * Time at which this resource was disabled.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tdisabled_at?: string | null\n\t/** \n\t * The prefix of the endpoint used for live transactions.\n\t * @example ```\"1797a841fbb37ca7-AdyenDemo\"```\n\t */\n\tlive_url_prefix: string\n\t/** \n\t * The checkout API version, supported range is from 66 to 71, default is 71.\n\t * @example ```71```\n\t */\n\tapi_version?: number | null\n\t/** \n\t * Indicates if the gateway will leverage on the Adyen notification webhooks, using latest API version.\n\t * @example ```true```\n\t */\n\tasync_api?: boolean | null\n\t/** \n\t * Send this attribute if you want to enable partial payments for the order.\n\t */\n\tpartial_payments?: boolean | null\n\t/** \n\t * The minutes after which the order created for partial payments automatically expires.\n\t * @example ```30```\n\t */\n\torder_expiration_mins?: number | null\n\t/** \n\t * Indicates if the gateway will use the native customer payment sources.\n\t * @example ```true```\n\t */\n\tnative_customer_payment_sources?: boolean | null\n\t/** \n\t * The gateway webhook endpoint secret, generated by Adyen customer area.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\twebhook_endpoint_secret?: string | null\n\t/** \n\t * The gateway webhook URL, generated automatically.\n\t * @example ```\"https://core.commercelayer.co/webhook_callbacks/adyen_gateways/xxxxx\"```\n\t */\n\twebhook_endpoint_url?: string | null\n\n\tpayment_methods?: PaymentMethod[] | null\n\tevent_stores?: EventStore[] | null\n\tadyen_payments?: AdyenPayment[] | null\n\n}\n\n\ninterface AdyenGatewayCreate extends ResourceCreate {\n\t\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\t/** \n\t * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n\t * @example ```true```\n\t */\n\tforce_payments?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\t/** \n\t * Send this attribute if you want to check the credentials against the payment gateway's APIs.\n\t * @example ```true```\n\t */\n\t_check?: boolean | null\n\t/** \n\t * The gateway merchant account.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tmerchant_account: string\n\t/** \n\t * The gateway API key.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tapi_key: string\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 prefix of the endpoint used for live transactions.\n\t * @example ```\"1797a841fbb37ca7-AdyenDemo\"```\n\t */\n\tlive_url_prefix: string\n\t/** \n\t * The checkout API version, supported range is from 66 to 71, default is 71.\n\t * @example ```71```\n\t */\n\tapi_version?: number | null\n\t/** \n\t * Indicates if the gateway will leverage on the Adyen notification webhooks, using latest API version.\n\t * @example ```true```\n\t */\n\tasync_api?: boolean | null\n\t/** \n\t * Send this attribute if you want to enable partial payments for the order.\n\t */\n\tpartial_payments?: boolean | null\n\t/** \n\t * The minutes after which the order created for partial payments automatically expires.\n\t * @example ```30```\n\t */\n\torder_expiration_mins?: number | null\n\t/** \n\t * Indicates if the gateway will use the native customer payment sources.\n\t * @example ```true```\n\t */\n\tnative_customer_payment_sources?: boolean | null\n\t/** \n\t * The gateway webhook endpoint secret, generated by Adyen customer area.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\twebhook_endpoint_secret?: string | null\n\n\tadyen_payments?: AdyenPaymentRel[] | null\n\n}\n\n\ninterface AdyenGatewayUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname?: string | null\n\t/** \n\t * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n\t * @example ```true```\n\t */\n\tforce_payments?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\t/** \n\t * Send this attribute if you want to check the credentials against the payment gateway's APIs.\n\t * @example ```true```\n\t */\n\t_check?: boolean | null\n\t/** \n\t * The gateway merchant account.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tmerchant_account?: string | null\n\t/** \n\t * The gateway API key.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tapi_key?: string | null\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 prefix of the endpoint used for live transactions.\n\t * @example ```\"1797a841fbb37ca7-AdyenDemo\"```\n\t */\n\tlive_url_prefix?: string | null\n\t/** \n\t * The checkout API version, supported range is from 66 to 71, default is 71.\n\t * @example ```71```\n\t */\n\tapi_version?: number | null\n\t/** \n\t * Indicates if the gateway will leverage on the Adyen notification webhooks, using latest API version.\n\t * @example ```true```\n\t */\n\tasync_api?: boolean | null\n\t/** \n\t * Send this attribute if you want to enable partial payments for the order.\n\t */\n\tpartial_payments?: boolean | null\n\t/** \n\t * The minutes after which the order created for partial payments automatically expires.\n\t * @example ```30```\n\t */\n\torder_expiration_mins?: number | null\n\t/** \n\t * Indicates if the gateway will use the native customer payment sources.\n\t * @example ```true```\n\t */\n\tnative_customer_payment_sources?: boolean | null\n\t/** \n\t * The gateway webhook endpoint secret, generated by Adyen customer area.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\twebhook_endpoint_secret?: string | null\n\n\tadyen_payments?: AdyenPaymentRel[] | null\n\n}\n\n\nclass AdyenGateways extends ApiResource<AdyenGateway> {\n\n\tstatic readonly TYPE: AdyenGatewayType = 'adyen_gateways' as const\n\n\tasync create(resource: AdyenGatewayCreate, params?: QueryParamsRetrieve<AdyenGateway>, options?: ResourcesConfig): Promise<AdyenGateway> {\n\t\treturn this.resources.create<AdyenGatewayCreate, AdyenGateway>({ ...resource, type: AdyenGateways.TYPE }, params, options)\n\t}\n\n\tasync update(resource: AdyenGatewayUpdate, params?: QueryParamsRetrieve<AdyenGateway>, options?: ResourcesConfig): Promise<AdyenGateway> {\n\t\treturn this.resources.update<AdyenGatewayUpdate, AdyenGateway>({ ...resource, type: AdyenGateways.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: AdyenGateways.TYPE } : id, options)\n\t}\n\n\tasync payment_methods(adyenGatewayId: string | AdyenGateway, params?: QueryParamsList<PaymentMethod>, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>> {\n\t\tconst _adyenGatewayId = (adyenGatewayId as AdyenGateway).id || adyenGatewayId as string\n\t\treturn this.resources.fetch<PaymentMethod>({ type: 'payment_methods' }, `adyen_gateways/${_adyenGatewayId}/payment_methods`, params, options) as unknown as ListResponse<PaymentMethod>\n\t}\n\n\tasync event_stores(adyenGatewayId: string | AdyenGateway, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _adyenGatewayId = (adyenGatewayId as AdyenGateway).id || adyenGatewayId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `adyen_gateways/${_adyenGatewayId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync adyen_payments(adyenGatewayId: string | AdyenGateway, params?: QueryParamsList<AdyenPayment>, options?: ResourcesConfig): Promise<ListResponse<AdyenPayment>> {\n\t\tconst _adyenGatewayId = (adyenGatewayId as AdyenGateway).id || adyenGatewayId as string\n\t\treturn this.resources.fetch<AdyenPayment>({ type: 'adyen_payments' }, `adyen_gateways/${_adyenGatewayId}/adyen_payments`, params, options) as unknown as ListResponse<AdyenPayment>\n\t}\n\n\tasync _disable(id: string | AdyenGateway, params?: QueryParamsRetrieve<AdyenGateway>, options?: ResourcesConfig): Promise<AdyenGateway> {\n\t\treturn this.resources.update<AdyenGatewayUpdate, AdyenGateway>({ id: (typeof id === 'string')? id: id.id, type: AdyenGateways.TYPE, _disable: true }, params, options)\n\t}\n\n\tasync _enable(id: string | AdyenGateway, params?: QueryParamsRetrieve<AdyenGateway>, options?: ResourcesConfig): Promise<AdyenGateway> {\n\t\treturn this.resources.update<AdyenGatewayUpdate, AdyenGateway>({ id: (typeof id === 'string')? id: id.id, type: AdyenGateways.TYPE, _enable: true }, params, options)\n\t}\n\n\tasync _check(id: string | AdyenGateway, params?: QueryParamsRetrieve<AdyenGateway>, options?: ResourcesConfig): Promise<AdyenGateway> {\n\t\treturn this.resources.update<AdyenGatewayUpdate, AdyenGateway>({ id: (typeof id === 'string')? id: id.id, type: AdyenGateways.TYPE, _check: true }, params, options)\n\t}\n\n\n\tisAdyenGateway(resource: any): resource is AdyenGateway {\n\t\treturn resource.type && (resource.type === AdyenGateways.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): AdyenGatewayRel {\n\t\treturn super.relationshipOneToOne<AdyenGatewayRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): AdyenGatewayRel[] {\n\t\treturn super.relationshipOneToMany<AdyenGatewayRel>(...ids)\n\t}\n\n\n\ttype(): AdyenGatewayType {\n\t\treturn AdyenGateways.TYPE\n\t}\n\n}\n\n\nconst instance = new AdyenGateways()\nexport default instance\n\nexport type { AdyenGateway, AdyenGatewayCreate, AdyenGateways, AdyenGatewayType, AdyenGatewayUpdate }\n"]}
@@ -50,5 +50,5 @@ var instance = new ExternalTaxCalculators();
50
50
  var external_tax_calculators_default = instance;
51
51
 
52
52
  exports.external_tax_calculators_default = external_tax_calculators_default;
53
- //# sourceMappingURL=chunk-CWD5DM6G.cjs.map
54
- //# sourceMappingURL=chunk-CWD5DM6G.cjs.map
53
+ //# sourceMappingURL=chunk-ZJGFUHDX.cjs.map
54
+ //# sourceMappingURL=chunk-ZJGFUHDX.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/resources/external_tax_calculators.ts"],"names":["ApiResource"],"mappings":";;;;;AA2GA,IAAM,sBAAA,GAAN,MAAM,uBAAA,SAA+BA,6BAAA,CAAmC;AAAA,EAEvE,OAAgB,IAAA,GAAkC,0BAAA;AAAA,EAElD,MAAM,MAAA,CAAO,QAAA,EAAuC,MAAA,EAAqD,OAAA,EAA2D;AACnK,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2D,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,uBAAA,CAAuB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACrJ;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAuC,MAAA,EAAqD,OAAA,EAA2D;AACnK,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2D,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,uBAAA,CAAuB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACrJ;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,uBAAA,CAAuB,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA,EAC9G;AAAA,EAEA,MAAM,OAAA,CAAQ,uBAAA,EAAyD,MAAA,EAAkC,OAAA,EAA0D;AAClK,IAAA,MAAM,wBAAA,GAA4B,wBAAkD,EAAA,IAAM,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SAAA,CAAU,MAAA,CAA2D,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,uBAAA,CAAuB,IAAA,EAAM,gBAAgB,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA,EACvM;AAAA,EAGA,wBAAwB,QAAA,EAAkD;AACzE,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,uBAAA,CAAuB,IAAA;AAAA,EACnE;AAAA,EAGA,aAAa,EAAA,EAA0D;AACtE,IAAA,OAAO,KAAA,CAAM,qBAA+C,EAAE,CAAA;AAAA,EAC/D;AAAA,EAEA,sBAAsB,GAAA,EAA2C;AAChE,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAgD,GAAG,GAAG,CAAA;AAAA,EACpE;AAAA,EAGA,IAAA,GAAkC;AACjC,IAAA,OAAO,uBAAA,CAAuB,IAAA;AAAA,EAC/B;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,sBAAA,EAAuB;AAC5C,IAAO,gCAAA,GAAQ","file":"chunk-CWD5DM6G.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 { Attachment } from './attachments'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { Market } from './markets'\n\n\ntype ExternalTaxCalculatorType = 'external_tax_calculators'\ntype ExternalTaxCalculatorRel = ResourceRel & { type: ExternalTaxCalculatorType }\n\n\nexport type ExternalTaxCalculatorSort = Pick<ExternalTaxCalculator, 'id' | 'name' | 'circuit_state' | 'circuit_failure_count'> & ResourceSort\n// export type ExternalTaxCalculatorFilter = Pick<ExternalTaxCalculator, 'id' | 'name' | 'circuit_state' | 'circuit_failure_count'> & ResourceFilter\n\n\ninterface ExternalTaxCalculator extends Resource {\n\t\n\treadonly type: ExternalTaxCalculatorType\n\n\t/** \n\t * The tax calculator's internal name.\n\t * @example ```\"Personal tax calculator\"```\n\t */\n\tname: string\n\t/** \n\t * The URL to the service that will compute the taxes.\n\t * @example ```\"https://external_calculator.yourbrand.com\"```\n\t */\n\ttax_calculator_url: string\n\t/** \n\t * The circuit breaker state, by default it is 'closed'. It can become 'open' once the number of consecutive failures overlaps the specified threshold, in such case no further calls to the failing callback are made.\n\t * @example ```\"closed\"```\n\t */\n\tcircuit_state?: string | null\n\t/** \n\t * The number of consecutive failures recorded by the circuit breaker associated to this resource, will be reset on first successful call to callback.\n\t * @example ```5```\n\t */\n\tcircuit_failure_count?: number | null\n\t/** \n\t * The shared secret used to sign the external request payload.\n\t * @example ```\"1c0994cc4e996e8c6ee56a2198f66f3c\"```\n\t */\n\tshared_secret: string\n\t/** \n\t * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided.\n\t * @example ```[\"order.line_item_options\"]```\n\t */\n\texternal_includes?: string[] | null\n\n\tmarkets?: Market[] | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface ExternalTaxCalculatorCreate extends ResourceCreate {\n\t\n\t/** \n\t * The tax calculator's internal name.\n\t * @example ```\"Personal tax calculator\"```\n\t */\n\tname: string\n\t/** \n\t * The URL to the service that will compute the taxes.\n\t * @example ```\"https://external_calculator.yourbrand.com\"```\n\t */\n\ttax_calculator_url: string\n\t/** \n\t * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided.\n\t * @example ```[\"order.line_item_options\"]```\n\t */\n\texternal_includes?: string[] | null\n\t\n}\n\n\ninterface ExternalTaxCalculatorUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The tax calculator's internal name.\n\t * @example ```\"Personal tax calculator\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The URL to the service that will compute the taxes.\n\t * @example ```\"https://external_calculator.yourbrand.com\"```\n\t */\n\ttax_calculator_url?: string | null\n\t/** \n\t * Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_reset_circuit?: boolean | null\n\t/** \n\t * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided.\n\t * @example ```[\"order.line_item_options\"]```\n\t */\n\texternal_includes?: string[] | null\n\t\n}\n\n\nclass ExternalTaxCalculators extends ApiResource<ExternalTaxCalculator> {\n\n\tstatic readonly TYPE: ExternalTaxCalculatorType = 'external_tax_calculators' as const\n\n\tasync create(resource: ExternalTaxCalculatorCreate, params?: QueryParamsRetrieve<ExternalTaxCalculator>, options?: ResourcesConfig): Promise<ExternalTaxCalculator> {\n\t\treturn this.resources.create<ExternalTaxCalculatorCreate, ExternalTaxCalculator>({ ...resource, type: ExternalTaxCalculators.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ExternalTaxCalculatorUpdate, params?: QueryParamsRetrieve<ExternalTaxCalculator>, options?: ResourcesConfig): Promise<ExternalTaxCalculator> {\n\t\treturn this.resources.update<ExternalTaxCalculatorUpdate, ExternalTaxCalculator>({ ...resource, type: ExternalTaxCalculators.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: ExternalTaxCalculators.TYPE } : id, options)\n\t}\n\n\tasync markets(externalTaxCalculatorId: string | ExternalTaxCalculator, params?: QueryParamsList<Market>, options?: ResourcesConfig): Promise<ListResponse<Market>> {\n\t\tconst _externalTaxCalculatorId = (externalTaxCalculatorId as ExternalTaxCalculator).id || externalTaxCalculatorId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `external_tax_calculators/${_externalTaxCalculatorId}/markets`, params, options) as unknown as ListResponse<Market>\n\t}\n\n\tasync attachments(externalTaxCalculatorId: string | ExternalTaxCalculator, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _externalTaxCalculatorId = (externalTaxCalculatorId as ExternalTaxCalculator).id || externalTaxCalculatorId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `external_tax_calculators/${_externalTaxCalculatorId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(externalTaxCalculatorId: string | ExternalTaxCalculator, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _externalTaxCalculatorId = (externalTaxCalculatorId as ExternalTaxCalculator).id || externalTaxCalculatorId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `external_tax_calculators/${_externalTaxCalculatorId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync event_stores(externalTaxCalculatorId: string | ExternalTaxCalculator, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _externalTaxCalculatorId = (externalTaxCalculatorId as ExternalTaxCalculator).id || externalTaxCalculatorId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `external_tax_calculators/${_externalTaxCalculatorId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _reset_circuit(id: string | ExternalTaxCalculator, params?: QueryParamsRetrieve<ExternalTaxCalculator>, options?: ResourcesConfig): Promise<ExternalTaxCalculator> {\n\t\treturn this.resources.update<ExternalTaxCalculatorUpdate, ExternalTaxCalculator>({ id: (typeof id === 'string')? id: id.id, type: ExternalTaxCalculators.TYPE, _reset_circuit: true }, params, options)\n\t}\n\n\n\tisExternalTaxCalculator(resource: any): resource is ExternalTaxCalculator {\n\t\treturn resource.type && (resource.type === ExternalTaxCalculators.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ExternalTaxCalculatorRel {\n\t\treturn super.relationshipOneToOne<ExternalTaxCalculatorRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ExternalTaxCalculatorRel[] {\n\t\treturn super.relationshipOneToMany<ExternalTaxCalculatorRel>(...ids)\n\t}\n\n\n\ttype(): ExternalTaxCalculatorType {\n\t\treturn ExternalTaxCalculators.TYPE\n\t}\n\n}\n\n\nconst instance = new ExternalTaxCalculators()\nexport default instance\n\nexport type { ExternalTaxCalculator, ExternalTaxCalculatorCreate, ExternalTaxCalculators, ExternalTaxCalculatorType, ExternalTaxCalculatorUpdate }\n"]}
1
+ {"version":3,"sources":["../src/resources/external_tax_calculators.ts"],"names":["ApiResource"],"mappings":";;;;;AA2GA,IAAM,sBAAA,GAAN,MAAM,uBAAA,SAA+BA,6BAAA,CAAmC;AAAA,EAEvE,OAAgB,IAAA,GAAkC,0BAAA;AAAA,EAElD,MAAM,MAAA,CAAO,QAAA,EAAuC,MAAA,EAAqD,OAAA,EAA2D;AACnK,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2D,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,uBAAA,CAAuB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACrJ;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAuC,MAAA,EAAqD,OAAA,EAA2D;AACnK,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2D,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,uBAAA,CAAuB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACrJ;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,uBAAA,CAAuB,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA,EAC9G;AAAA,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OAAO,CAAA;AAAA,EACvJ;AAAA,EAEA,MAAM,cAAA,CAAe,EAAA,EAAoC,MAAA,EAAqD,OAAA,EAA2D;AACxK,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA,CAA2D,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,uBAAA,CAAuB,IAAA,EAAM,gBAAgB,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA,EACvM;AAAA,EAGA,wBAAwB,QAAA,EAAkD;AACzE,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,uBAAA,CAAuB,IAAA;AAAA,EACnE;AAAA,EAGA,aAAa,EAAA,EAA0D;AACtE,IAAA,OAAO,KAAA,CAAM,qBAA+C,EAAE,CAAA;AAAA,EAC/D;AAAA,EAEA,sBAAsB,GAAA,EAA2C;AAChE,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAgD,GAAG,GAAG,CAAA;AAAA,EACpE;AAAA,EAGA,IAAA,GAAkC;AACjC,IAAA,OAAO,uBAAA,CAAuB,IAAA;AAAA,EAC/B;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,sBAAA,EAAuB;AAC5C,IAAO,gCAAA,GAAQ","file":"chunk-ZJGFUHDX.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 { Attachment } from './attachments'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { Market } from './markets'\n\n\ntype ExternalTaxCalculatorType = 'external_tax_calculators'\ntype ExternalTaxCalculatorRel = ResourceRel & { type: ExternalTaxCalculatorType }\n\n\nexport type ExternalTaxCalculatorSort = Pick<ExternalTaxCalculator, 'id' | 'name' | 'circuit_state' | 'circuit_failure_count'> & ResourceSort\n// export type ExternalTaxCalculatorFilter = Pick<ExternalTaxCalculator, 'id' | 'name' | 'circuit_state' | 'circuit_failure_count'> & ResourceFilter\n\n\ninterface ExternalTaxCalculator extends Resource {\n\t\n\treadonly type: ExternalTaxCalculatorType\n\n\t/** \n\t * The tax calculator's internal name.\n\t * @example ```\"Personal tax calculator\"```\n\t */\n\tname: string\n\t/** \n\t * The circuit breaker state, by default it is 'closed'. It can become 'open' once the number of consecutive failures overlaps the specified threshold, in such case no further calls to the failing callback are made.\n\t * @example ```\"closed\"```\n\t */\n\tcircuit_state?: string | null\n\t/** \n\t * The number of consecutive failures recorded by the circuit breaker associated to this resource, will be reset on first successful call to callback.\n\t * @example ```5```\n\t */\n\tcircuit_failure_count?: number | null\n\t/** \n\t * The shared secret used to sign the external request payload.\n\t * @example ```\"1c0994cc4e996e8c6ee56a2198f66f3c\"```\n\t */\n\tshared_secret: string\n\t/** \n\t * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided.\n\t * @example ```[\"order.line_item_options\"]```\n\t */\n\texternal_includes?: string[] | null\n\t/** \n\t * The URL to the service that will compute the taxes.\n\t * @example ```\"https://external_calculator.yourbrand.com\"```\n\t */\n\ttax_calculator_url: string\n\n\tmarkets?: Market[] | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface ExternalTaxCalculatorCreate extends ResourceCreate {\n\t\n\t/** \n\t * The tax calculator's internal name.\n\t * @example ```\"Personal tax calculator\"```\n\t */\n\tname: string\n\t/** \n\t * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided.\n\t * @example ```[\"order.line_item_options\"]```\n\t */\n\texternal_includes?: string[] | null\n\t/** \n\t * The URL to the service that will compute the taxes.\n\t * @example ```\"https://external_calculator.yourbrand.com\"```\n\t */\n\ttax_calculator_url: string\n\t\n}\n\n\ninterface ExternalTaxCalculatorUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The tax calculator's internal name.\n\t * @example ```\"Personal tax calculator\"```\n\t */\n\tname?: string | null\n\t/** \n\t * Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_reset_circuit?: boolean | null\n\t/** \n\t * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided.\n\t * @example ```[\"order.line_item_options\"]```\n\t */\n\texternal_includes?: string[] | null\n\t/** \n\t * The URL to the service that will compute the taxes.\n\t * @example ```\"https://external_calculator.yourbrand.com\"```\n\t */\n\ttax_calculator_url?: string | null\n\t\n}\n\n\nclass ExternalTaxCalculators extends ApiResource<ExternalTaxCalculator> {\n\n\tstatic readonly TYPE: ExternalTaxCalculatorType = 'external_tax_calculators' as const\n\n\tasync create(resource: ExternalTaxCalculatorCreate, params?: QueryParamsRetrieve<ExternalTaxCalculator>, options?: ResourcesConfig): Promise<ExternalTaxCalculator> {\n\t\treturn this.resources.create<ExternalTaxCalculatorCreate, ExternalTaxCalculator>({ ...resource, type: ExternalTaxCalculators.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ExternalTaxCalculatorUpdate, params?: QueryParamsRetrieve<ExternalTaxCalculator>, options?: ResourcesConfig): Promise<ExternalTaxCalculator> {\n\t\treturn this.resources.update<ExternalTaxCalculatorUpdate, ExternalTaxCalculator>({ ...resource, type: ExternalTaxCalculators.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: ExternalTaxCalculators.TYPE } : id, options)\n\t}\n\n\tasync markets(externalTaxCalculatorId: string | ExternalTaxCalculator, params?: QueryParamsList<Market>, options?: ResourcesConfig): Promise<ListResponse<Market>> {\n\t\tconst _externalTaxCalculatorId = (externalTaxCalculatorId as ExternalTaxCalculator).id || externalTaxCalculatorId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `external_tax_calculators/${_externalTaxCalculatorId}/markets`, params, options) as unknown as ListResponse<Market>\n\t}\n\n\tasync attachments(externalTaxCalculatorId: string | ExternalTaxCalculator, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _externalTaxCalculatorId = (externalTaxCalculatorId as ExternalTaxCalculator).id || externalTaxCalculatorId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `external_tax_calculators/${_externalTaxCalculatorId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(externalTaxCalculatorId: string | ExternalTaxCalculator, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _externalTaxCalculatorId = (externalTaxCalculatorId as ExternalTaxCalculator).id || externalTaxCalculatorId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `external_tax_calculators/${_externalTaxCalculatorId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync event_stores(externalTaxCalculatorId: string | ExternalTaxCalculator, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _externalTaxCalculatorId = (externalTaxCalculatorId as ExternalTaxCalculator).id || externalTaxCalculatorId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `external_tax_calculators/${_externalTaxCalculatorId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _reset_circuit(id: string | ExternalTaxCalculator, params?: QueryParamsRetrieve<ExternalTaxCalculator>, options?: ResourcesConfig): Promise<ExternalTaxCalculator> {\n\t\treturn this.resources.update<ExternalTaxCalculatorUpdate, ExternalTaxCalculator>({ id: (typeof id === 'string')? id: id.id, type: ExternalTaxCalculators.TYPE, _reset_circuit: true }, params, options)\n\t}\n\n\n\tisExternalTaxCalculator(resource: any): resource is ExternalTaxCalculator {\n\t\treturn resource.type && (resource.type === ExternalTaxCalculators.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ExternalTaxCalculatorRel {\n\t\treturn super.relationshipOneToOne<ExternalTaxCalculatorRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ExternalTaxCalculatorRel[] {\n\t\treturn super.relationshipOneToMany<ExternalTaxCalculatorRel>(...ids)\n\t}\n\n\n\ttype(): ExternalTaxCalculatorType {\n\t\treturn ExternalTaxCalculators.TYPE\n\t}\n\n}\n\n\nconst instance = new ExternalTaxCalculators()\nexport default instance\n\nexport type { ExternalTaxCalculator, ExternalTaxCalculatorCreate, ExternalTaxCalculators, ExternalTaxCalculatorType, ExternalTaxCalculatorUpdate }\n"]}
package/lib/client.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { F as Fetch, f as InterceptorManager, g as FetchResponse } from './fetch-B8-kP4X0.cjs';
1
+ import { F as Fetch, I as InterceptorManager, e as FetchResponse } from './fetch-DQyRNxTg.cjs';
2
2
 
3
3
  type RequestParams = Record<string, string | number | boolean>;
4
4
  type RequestHeaders = Record<string, string>;
package/lib/client.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { F as Fetch, f as InterceptorManager, g as FetchResponse } from './fetch-B8-kP4X0.js';
1
+ import { F as Fetch, I as InterceptorManager, e as FetchResponse } from './fetch-DQyRNxTg.js';
2
2
 
3
3
  type RequestParams = Record<string, string | number | boolean>;
4
4
  type RequestHeaders = Record<string, string>;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkXJLJ77JI_cjs = require('./chunk-XJLJ77JI.cjs');
5
+ var chunkQMBAV3D2_cjs = require('./chunk-QMBAV3D2.cjs');
6
6
  require('./chunk-L7FT6NDZ.cjs');
7
7
  require('./chunk-3GOADUES.cjs');
8
8
  require('./chunk-UQQTNQX3.cjs');
@@ -17,19 +17,19 @@ require('./chunk-JEQ2X3Z6.cjs');
17
17
 
18
18
  Object.defineProperty(exports, "CommerceLayer", {
19
19
  enumerable: true,
20
- get: function () { return chunkXJLJ77JI_cjs.CommerceLayer; }
20
+ get: function () { return chunkQMBAV3D2_cjs.CommerceLayer; }
21
21
  });
22
22
  Object.defineProperty(exports, "CommerceLayerClient", {
23
23
  enumerable: true,
24
- get: function () { return chunkXJLJ77JI_cjs.CommerceLayerClient; }
24
+ get: function () { return chunkQMBAV3D2_cjs.CommerceLayerClient; }
25
25
  });
26
26
  Object.defineProperty(exports, "OPEN_API_SCHEMA_VERSION", {
27
27
  enumerable: true,
28
- get: function () { return chunkXJLJ77JI_cjs.OPEN_API_SCHEMA_VERSION; }
28
+ get: function () { return chunkQMBAV3D2_cjs.OPEN_API_SCHEMA_VERSION; }
29
29
  });
30
30
  Object.defineProperty(exports, "default", {
31
31
  enumerable: true,
32
- get: function () { return chunkXJLJ77JI_cjs.commercelayer_default; }
32
+ get: function () { return chunkQMBAV3D2_cjs.commercelayer_default; }
33
33
  });
34
34
  //# sourceMappingURL=commercelayer.cjs.map
35
35
  //# sourceMappingURL=commercelayer.cjs.map
@@ -1,15 +1,15 @@
1
1
  import { ApiError } from './error.cjs';
2
- import { b as RequestInterceptor, c as ErrorInterceptor, d as ResponseInterceptor, I as InterceptorType, e as RawResponseReader } from './fetch-B8-kP4X0.cjs';
3
- import { gy as ResourcesInitConfig } from './api-o1gYTpPm.cjs';
2
+ import { g as RequestInterceptor, E as ErrorInterceptor, i as ResponseInterceptor, f as InterceptorType, R as RawResponseReader } from './fetch-DQyRNxTg.cjs';
3
+ import { i5 as ResourcesInitConfig } from './api-BDCNfn2Y.cjs';
4
4
  import './client.cjs';
5
5
  import './types.cjs';
6
6
 
7
- declare const OPEN_API_SCHEMA_VERSION = "7.10.0";
7
+ declare const OPEN_API_SCHEMA_VERSION = "7.10.1";
8
8
  type SdkConfig = {};
9
9
  type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
10
10
  type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
11
11
  declare class CommerceLayerClient {
12
- readonly openApiSchemaVersion = "7.10.0";
12
+ readonly openApiSchemaVersion = "7.10.1";
13
13
  protected static cl: CommerceLayerClient;
14
14
  static get(config?: CommerceLayerInitConfig): CommerceLayerClient;
15
15
  protected constructor(config: CommerceLayerInitConfig);
@@ -1,15 +1,15 @@
1
1
  import { ApiError } from './error.js';
2
- import { b as RequestInterceptor, c as ErrorInterceptor, d as ResponseInterceptor, I as InterceptorType, e as RawResponseReader } from './fetch-B8-kP4X0.js';
3
- import { gy as ResourcesInitConfig } from './api-CxFbvblr.js';
2
+ import { g as RequestInterceptor, E as ErrorInterceptor, i as ResponseInterceptor, f as InterceptorType, R as RawResponseReader } from './fetch-DQyRNxTg.js';
3
+ import { i5 as ResourcesInitConfig } from './api-X5Fgi78h.js';
4
4
  import './client.js';
5
5
  import './types.js';
6
6
 
7
- declare const OPEN_API_SCHEMA_VERSION = "7.10.0";
7
+ declare const OPEN_API_SCHEMA_VERSION = "7.10.1";
8
8
  type SdkConfig = {};
9
9
  type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
10
10
  type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
11
11
  declare class CommerceLayerClient {
12
- readonly openApiSchemaVersion = "7.10.0";
12
+ readonly openApiSchemaVersion = "7.10.1";
13
13
  protected static cl: CommerceLayerClient;
14
14
  static get(config?: CommerceLayerInitConfig): CommerceLayerClient;
15
15
  protected constructor(config: CommerceLayerInitConfig);
@@ -1,4 +1,4 @@
1
- export { CommerceLayer, CommerceLayerClient, OPEN_API_SCHEMA_VERSION, commercelayer_default as default } from './chunk-I2UV76EQ.js';
1
+ export { CommerceLayer, CommerceLayerClient, OPEN_API_SCHEMA_VERSION, commercelayer_default as default } from './chunk-ACEZ46QR.js';
2
2
  import './chunk-YRCCY6RV.js';
3
3
  import './chunk-2D7XHAVQ.js';
4
4
  import './chunk-IKCYKGYL.js';
package/lib/config.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ApiClientInitConfig } from './client.cjs';
2
- import './fetch-B8-kP4X0.cjs';
2
+ import './fetch-DQyRNxTg.cjs';
3
3
 
4
4
  declare const config: {
5
5
  readonly default: {
package/lib/config.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ApiClientInitConfig } from './client.js';
2
- import './fetch-B8-kP4X0.js';
2
+ import './fetch-DQyRNxTg.js';
3
3
 
4
4
  declare const config: {
5
5
  readonly default: {
package/lib/enum.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- export { aX as CreatableResource, aY as CreatableResourceType, bw as DeletableResource, bx as DeletableResourceType, dR as ListableResource, dS as ListableResourceType, nx as ResourceFields, ny as ResourceSortFields, gv as ResourceTypeLock, gz as RetrievableResource, gA as RetrievableResourceType, iC as TaggableResource, iD as TaggableResourceType, j3 as UpdatableResource, j4 as UpdatableResourceType, nz as creatableResources, nA as deletableResources, nB as getResources, nC as getSingletons, nD as isCreatable, nE as isDeletable, nF as isSingleton, nG as isTaggable, nH as isUpdatable, nI as resourceList, nJ as singletonList, nK as taggableResources, nL as updatableResources } from './api-o1gYTpPm.cjs';
1
+ export { bj as CreatableResource, bk as CreatableResourceType, b$ as DeletableResource, c0 as DeletableResourceType, eP as ListableResource, eQ as ListableResourceType, hX as ResourceFields, i0 as ResourceSortFields, i2 as ResourceTypeLock, i6 as RetrievableResource, i7 as RetrievableResourceType, kz as TaggableResource, kA as TaggableResourceType, l6 as UpdatableResource, l7 as UpdatableResourceType, lv as creatableResources, lw as deletableResources, lz as getResources, lA as getSingletons, nE as isCreatable, nF as isDeletable, nJ as isSingleton, nK as isTaggable, nL as isUpdatable, nM as resourceList, nN as singletonList, nO as taggableResources, nP as updatableResources } from './api-BDCNfn2Y.cjs';
2
2
  import './client.cjs';
3
- import './fetch-B8-kP4X0.cjs';
3
+ import './fetch-DQyRNxTg.cjs';
4
4
  import './types.cjs';
package/lib/enum.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { aX as CreatableResource, aY as CreatableResourceType, bw as DeletableResource, bx as DeletableResourceType, dR as ListableResource, dS as ListableResourceType, nx as ResourceFields, ny as ResourceSortFields, gv as ResourceTypeLock, gz as RetrievableResource, gA as RetrievableResourceType, iC as TaggableResource, iD as TaggableResourceType, j3 as UpdatableResource, j4 as UpdatableResourceType, nz as creatableResources, nA as deletableResources, nB as getResources, nC as getSingletons, nD as isCreatable, nE as isDeletable, nF as isSingleton, nG as isTaggable, nH as isUpdatable, nI as resourceList, nJ as singletonList, nK as taggableResources, nL as updatableResources } from './api-CxFbvblr.js';
1
+ export { bj as CreatableResource, bk as CreatableResourceType, b$ as DeletableResource, c0 as DeletableResourceType, eP as ListableResource, eQ as ListableResourceType, hX as ResourceFields, i0 as ResourceSortFields, i2 as ResourceTypeLock, i6 as RetrievableResource, i7 as RetrievableResourceType, kz as TaggableResource, kA as TaggableResourceType, l6 as UpdatableResource, l7 as UpdatableResourceType, lv as creatableResources, lw as deletableResources, lz as getResources, lA as getSingletons, nE as isCreatable, nF as isDeletable, nJ as isSingleton, nK as isTaggable, nL as isUpdatable, nM as resourceList, nN as singletonList, nO as taggableResources, nP as updatableResources } from './api-X5Fgi78h.js';
2
2
  import './client.js';
3
- import './fetch-B8-kP4X0.js';
3
+ import './fetch-DQyRNxTg.js';
4
4
  import './types.js';
@@ -52,4 +52,4 @@ declare class FetchError extends Error {
52
52
  }
53
53
  declare const fetchURL: (url: URL, requestOptions: FetchRequestOptions, clientOptions?: FetchClientOptions) => Promise<FetchResponse>;
54
54
 
55
- export { type ErrorObj as E, type Fetch as F, type HeadersObj as H, type InterceptorType as I, type RequestObj as R, type ResponseObj as a, type RequestInterceptor as b, type ErrorInterceptor as c, type ResponseInterceptor as d, type RawResponseReader as e, type InterceptorManager as f, type FetchResponse as g, type FetchClientOptions as h, FetchError as i, type FetchRequestOptions as j, fetchURL as k };
55
+ export { type ErrorInterceptor as E, type Fetch as F, type HeadersObj as H, type InterceptorManager as I, type RawResponseReader as R, type ErrorObj as a, type FetchClientOptions as b, FetchError as c, type FetchRequestOptions as d, type FetchResponse as e, type InterceptorType as f, type RequestInterceptor as g, type RequestObj as h, type ResponseInterceptor as i, type ResponseObj as j, fetchURL as k };
@@ -52,4 +52,4 @@ declare class FetchError extends Error {
52
52
  }
53
53
  declare const fetchURL: (url: URL, requestOptions: FetchRequestOptions, clientOptions?: FetchClientOptions) => Promise<FetchResponse>;
54
54
 
55
- export { type ErrorObj as E, type Fetch as F, type HeadersObj as H, type InterceptorType as I, type RequestObj as R, type ResponseObj as a, type RequestInterceptor as b, type ErrorInterceptor as c, type ResponseInterceptor as d, type RawResponseReader as e, type InterceptorManager as f, type FetchResponse as g, type FetchClientOptions as h, FetchError as i, type FetchRequestOptions as j, fetchURL as k };
55
+ export { type ErrorInterceptor as E, type Fetch as F, type HeadersObj as H, type InterceptorManager as I, type RawResponseReader as R, type ErrorObj as a, type FetchClientOptions as b, FetchError as c, type FetchRequestOptions as d, type FetchResponse as e, type InterceptorType as f, type RequestInterceptor as g, type RequestObj as h, type ResponseInterceptor as i, type ResponseObj as j, fetchURL as k };
package/lib/fetch.d.cts CHANGED
@@ -1 +1 @@
1
- export { F as Fetch, h as FetchClientOptions, i as FetchError, j as FetchRequestOptions, g as FetchResponse, k as fetchURL } from './fetch-B8-kP4X0.cjs';
1
+ export { F as Fetch, b as FetchClientOptions, c as FetchError, d as FetchRequestOptions, e as FetchResponse, k as fetchURL } from './fetch-DQyRNxTg.cjs';
package/lib/fetch.d.ts CHANGED
@@ -1 +1 @@
1
- export { F as Fetch, h as FetchClientOptions, i as FetchError, j as FetchRequestOptions, g as FetchResponse, k as fetchURL } from './fetch-B8-kP4X0.js';
1
+ export { F as Fetch, b as FetchClientOptions, c as FetchError, d as FetchRequestOptions, e as FetchResponse, k as fetchURL } from './fetch-DQyRNxTg.js';
package/lib/index.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkEFFMFEBS_cjs = require('./chunk-EFFMFEBS.cjs');
5
+ var chunkRR3QOFY6_cjs = require('./chunk-RR3QOFY6.cjs');
6
6
  require('./chunk-5YMHXTJG.cjs');
7
7
  var chunkUL4JQZUD_cjs = require('./chunk-UL4JQZUD.cjs');
8
8
  var chunkA77RAUIU_cjs = require('./chunk-A77RAUIU.cjs');
@@ -23,10 +23,10 @@ var chunkPQJ2ODW3_cjs = require('./chunk-PQJ2ODW3.cjs');
23
23
  var chunkI2E2P72P_cjs = require('./chunk-I2E2P72P.cjs');
24
24
  var chunkKLO6RFMQ_cjs = require('./chunk-KLO6RFMQ.cjs');
25
25
  var chunkCDFM6RPB_cjs = require('./chunk-CDFM6RPB.cjs');
26
- var chunk6UIVNEE7_cjs = require('./chunk-6UIVNEE7.cjs');
26
+ var chunkKATZAZKF_cjs = require('./chunk-KATZAZKF.cjs');
27
27
  var chunkAWLS4LR4_cjs = require('./chunk-AWLS4LR4.cjs');
28
28
  var chunkHFKNOYWV_cjs = require('./chunk-HFKNOYWV.cjs');
29
- var chunkNXSK65YY_cjs = require('./chunk-NXSK65YY.cjs');
29
+ var chunk47UCMORS_cjs = require('./chunk-47UCMORS.cjs');
30
30
  var chunkAVYPSM4A_cjs = require('./chunk-AVYPSM4A.cjs');
31
31
  var chunkUNPVTCLZ_cjs = require('./chunk-UNPVTCLZ.cjs');
32
32
  var chunk6EUKX4RC_cjs = require('./chunk-6EUKX4RC.cjs');
@@ -50,7 +50,7 @@ var chunkSTQYJKBK_cjs = require('./chunk-STQYJKBK.cjs');
50
50
  var chunk5P67UEWW_cjs = require('./chunk-5P67UEWW.cjs');
51
51
  var chunkNLL7EH7Y_cjs = require('./chunk-NLL7EH7Y.cjs');
52
52
  var chunkH7J2F6QG_cjs = require('./chunk-H7J2F6QG.cjs');
53
- var chunkR3IJVFKR_cjs = require('./chunk-R3IJVFKR.cjs');
53
+ var chunk2TOLW3UO_cjs = require('./chunk-2TOLW3UO.cjs');
54
54
  var chunkIOSR7D3F_cjs = require('./chunk-IOSR7D3F.cjs');
55
55
  var chunkV74OBMS3_cjs = require('./chunk-V74OBMS3.cjs');
56
56
  var chunkRNJOCB3T_cjs = require('./chunk-RNJOCB3T.cjs');
@@ -89,10 +89,10 @@ var chunkM7SVKQ7R_cjs = require('./chunk-M7SVKQ7R.cjs');
89
89
  var chunkQCY5BXWM_cjs = require('./chunk-QCY5BXWM.cjs');
90
90
  var chunk4E5BE47D_cjs = require('./chunk-4E5BE47D.cjs');
91
91
  var chunkRKD7U6QH_cjs = require('./chunk-RKD7U6QH.cjs');
92
- var chunkXTN5Y5IT_cjs = require('./chunk-XTN5Y5IT.cjs');
92
+ var chunkCQXW23HJ_cjs = require('./chunk-CQXW23HJ.cjs');
93
93
  var chunkT6CBFUT6_cjs = require('./chunk-T6CBFUT6.cjs');
94
- var chunkDBNDWZZW_cjs = require('./chunk-DBNDWZZW.cjs');
95
- var chunkCWD5DM6G_cjs = require('./chunk-CWD5DM6G.cjs');
94
+ var chunk7B46YAQU_cjs = require('./chunk-7B46YAQU.cjs');
95
+ var chunkZJGFUHDX_cjs = require('./chunk-ZJGFUHDX.cjs');
96
96
  var chunkEQ5ASSXQ_cjs = require('./chunk-EQ5ASSXQ.cjs');
97
97
  var chunkNGJN2PES_cjs = require('./chunk-NGJN2PES.cjs');
98
98
  var chunkH7KZGQXZ_cjs = require('./chunk-H7KZGQXZ.cjs');
@@ -116,7 +116,7 @@ var chunkQJDQS6PE_cjs = require('./chunk-QJDQS6PE.cjs');
116
116
  var chunkPUBFRIEQ_cjs = require('./chunk-PUBFRIEQ.cjs');
117
117
  var chunkJGTC32IT_cjs = require('./chunk-JGTC32IT.cjs');
118
118
  var chunkFUQA5XT7_cjs = require('./chunk-FUQA5XT7.cjs');
119
- var chunkI2FEIMVG_cjs = require('./chunk-I2FEIMVG.cjs');
119
+ var chunkO6QJMGK7_cjs = require('./chunk-O6QJMGK7.cjs');
120
120
  var chunkXPPCVN6T_cjs = require('./chunk-XPPCVN6T.cjs');
121
121
  var chunkJEOA64GW_cjs = require('./chunk-JEOA64GW.cjs');
122
122
  var chunkQDZI3I46_cjs = require('./chunk-QDZI3I46.cjs');
@@ -126,16 +126,16 @@ var chunkCH4K74JN_cjs = require('./chunk-CH4K74JN.cjs');
126
126
  var chunkVTSEVEKJ_cjs = require('./chunk-VTSEVEKJ.cjs');
127
127
  var chunkZM2HKUHW_cjs = require('./chunk-ZM2HKUHW.cjs');
128
128
  var chunkC7AHHS53_cjs = require('./chunk-C7AHHS53.cjs');
129
- var chunkQWJAX42Q_cjs = require('./chunk-QWJAX42Q.cjs');
129
+ var chunk7TVIC5GW_cjs = require('./chunk-7TVIC5GW.cjs');
130
130
  var chunkU6G7T5WX_cjs = require('./chunk-U6G7T5WX.cjs');
131
131
  var chunk7ZBEKCA5_cjs = require('./chunk-7ZBEKCA5.cjs');
132
132
  var chunkT2DEYIX6_cjs = require('./chunk-T2DEYIX6.cjs');
133
133
  var chunkIYQFTOVG_cjs = require('./chunk-IYQFTOVG.cjs');
134
- var chunkSO73YTDF_cjs = require('./chunk-SO73YTDF.cjs');
134
+ var chunkJE3P5NJP_cjs = require('./chunk-JE3P5NJP.cjs');
135
135
  var chunkDHGTIF6A_cjs = require('./chunk-DHGTIF6A.cjs');
136
136
  var chunkSGXMH2JP_cjs = require('./chunk-SGXMH2JP.cjs');
137
137
  var chunkLHESCZ5L_cjs = require('./chunk-LHESCZ5L.cjs');
138
- var chunkXJLJ77JI_cjs = require('./chunk-XJLJ77JI.cjs');
138
+ var chunkQMBAV3D2_cjs = require('./chunk-QMBAV3D2.cjs');
139
139
  require('./chunk-L7FT6NDZ.cjs');
140
140
  require('./chunk-3GOADUES.cjs');
141
141
  require('./chunk-UQQTNQX3.cjs');
@@ -150,7 +150,7 @@ require('./chunk-JEQ2X3Z6.cjs');
150
150
 
151
151
  Object.defineProperty(exports, "CommerceLayerStatic", {
152
152
  enumerable: true,
153
- get: function () { return chunkEFFMFEBS_cjs.CommerceLayerStatic; }
153
+ get: function () { return chunkRR3QOFY6_cjs.CommerceLayerStatic; }
154
154
  });
155
155
  Object.defineProperty(exports, "transactions", {
156
156
  enumerable: true,
@@ -230,7 +230,7 @@ Object.defineProperty(exports, "stores", {
230
230
  });
231
231
  Object.defineProperty(exports, "stripe_gateways", {
232
232
  enumerable: true,
233
- get: function () { return chunk6UIVNEE7_cjs.stripe_gateways_default; }
233
+ get: function () { return chunkKATZAZKF_cjs.stripe_gateways_default; }
234
234
  });
235
235
  Object.defineProperty(exports, "stripe_payments", {
236
236
  enumerable: true,
@@ -242,7 +242,7 @@ Object.defineProperty(exports, "shipping_methods", {
242
242
  });
243
243
  Object.defineProperty(exports, "shipping_weight_tiers", {
244
244
  enumerable: true,
245
- get: function () { return chunkNXSK65YY_cjs.shipping_weight_tiers_default; }
245
+ get: function () { return chunk47UCMORS_cjs.shipping_weight_tiers_default; }
246
246
  });
247
247
  Object.defineProperty(exports, "shipping_zones", {
248
248
  enumerable: true,
@@ -338,7 +338,7 @@ Object.defineProperty(exports, "payment_options", {
338
338
  });
339
339
  Object.defineProperty(exports, "paypal_gateways", {
340
340
  enumerable: true,
341
- get: function () { return chunkR3IJVFKR_cjs.paypal_gateways_default; }
341
+ get: function () { return chunk2TOLW3UO_cjs.paypal_gateways_default; }
342
342
  });
343
343
  Object.defineProperty(exports, "paypal_payments", {
344
344
  enumerable: true,
@@ -494,7 +494,7 @@ Object.defineProperty(exports, "inventory_models", {
494
494
  });
495
495
  Object.defineProperty(exports, "external_gateways", {
496
496
  enumerable: true,
497
- get: function () { return chunkXTN5Y5IT_cjs.external_gateways_default; }
497
+ get: function () { return chunkCQXW23HJ_cjs.external_gateways_default; }
498
498
  });
499
499
  Object.defineProperty(exports, "external_payments", {
500
500
  enumerable: true,
@@ -502,11 +502,11 @@ Object.defineProperty(exports, "external_payments", {
502
502
  });
503
503
  Object.defineProperty(exports, "external_promotions", {
504
504
  enumerable: true,
505
- get: function () { return chunkDBNDWZZW_cjs.external_promotions_default; }
505
+ get: function () { return chunk7B46YAQU_cjs.external_promotions_default; }
506
506
  });
507
507
  Object.defineProperty(exports, "external_tax_calculators", {
508
508
  enumerable: true,
509
- get: function () { return chunkCWD5DM6G_cjs.external_tax_calculators_default; }
509
+ get: function () { return chunkZJGFUHDX_cjs.external_tax_calculators_default; }
510
510
  });
511
511
  Object.defineProperty(exports, "fixed_amount_promotions", {
512
512
  enumerable: true,
@@ -602,7 +602,7 @@ Object.defineProperty(exports, "carrier_accounts", {
602
602
  });
603
603
  Object.defineProperty(exports, "checkout_com_gateways", {
604
604
  enumerable: true,
605
- get: function () { return chunkI2FEIMVG_cjs.checkout_com_gateways_default; }
605
+ get: function () { return chunkO6QJMGK7_cjs.checkout_com_gateways_default; }
606
606
  });
607
607
  Object.defineProperty(exports, "checkout_com_payments", {
608
608
  enumerable: true,
@@ -642,7 +642,7 @@ Object.defineProperty(exports, "bing_geocoders", {
642
642
  });
643
643
  Object.defineProperty(exports, "braintree_gateways", {
644
644
  enumerable: true,
645
- get: function () { return chunkQWJAX42Q_cjs.braintree_gateways_default; }
645
+ get: function () { return chunk7TVIC5GW_cjs.braintree_gateways_default; }
646
646
  });
647
647
  Object.defineProperty(exports, "braintree_payments", {
648
648
  enumerable: true,
@@ -662,7 +662,7 @@ Object.defineProperty(exports, "adjustments", {
662
662
  });
663
663
  Object.defineProperty(exports, "adyen_gateways", {
664
664
  enumerable: true,
665
- get: function () { return chunkSO73YTDF_cjs.adyen_gateways_default; }
665
+ get: function () { return chunkJE3P5NJP_cjs.adyen_gateways_default; }
666
666
  });
667
667
  Object.defineProperty(exports, "adyen_payments", {
668
668
  enumerable: true,
@@ -678,11 +678,11 @@ Object.defineProperty(exports, "attachments", {
678
678
  });
679
679
  Object.defineProperty(exports, "CommerceLayer", {
680
680
  enumerable: true,
681
- get: function () { return chunkXJLJ77JI_cjs.CommerceLayer; }
681
+ get: function () { return chunkQMBAV3D2_cjs.CommerceLayer; }
682
682
  });
683
683
  Object.defineProperty(exports, "default", {
684
684
  enumerable: true,
685
- get: function () { return chunkXJLJ77JI_cjs.commercelayer_default; }
685
+ get: function () { return chunkQMBAV3D2_cjs.commercelayer_default; }
686
686
  });
687
687
  //# sourceMappingURL=index.cjs.map
688
688
  //# sourceMappingURL=index.cjs.map