@commercelayer/sdk 7.0.0-beta.11 → 7.0.0-beta.13

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 (590) hide show
  1. package/README.md +48 -35
  2. package/lib/{api-BYcswOJ0.d.cts → api-Bq9emZm-.d.cts} +553 -43
  3. package/lib/{api-Cknm0QL_.d.ts → api-C5qyxFpD.d.ts} +553 -43
  4. package/lib/api.cjs +134 -132
  5. package/lib/api.d.cts +2 -2
  6. package/lib/api.d.ts +2 -2
  7. package/lib/api.js +134 -132
  8. package/lib/chunk-AQ5VUG5P.js +12 -0
  9. package/lib/chunk-JE77HYXB.cjs +17 -0
  10. package/lib/client.cjs +36 -39
  11. package/lib/client.d.cts +1 -1
  12. package/lib/client.d.ts +1 -1
  13. package/lib/client.js +7 -10
  14. package/lib/commercelayer.cjs +30 -705
  15. package/lib/commercelayer.d.cts +9 -137
  16. package/lib/commercelayer.d.ts +9 -137
  17. package/lib/commercelayer.js +29 -684
  18. package/lib/common.cjs +1 -0
  19. package/lib/common.d.cts +2 -2
  20. package/lib/common.d.ts +2 -2
  21. package/lib/common.js +1 -0
  22. package/lib/config.cjs +2 -0
  23. package/lib/config.d.cts +1 -1
  24. package/lib/config.d.ts +1 -1
  25. package/lib/config.js +2 -0
  26. package/lib/debug.cjs +2 -0
  27. package/lib/debug.js +2 -0
  28. package/lib/error.cjs +9 -12
  29. package/lib/error.js +1 -4
  30. package/lib/fetch.cjs +14 -23
  31. package/lib/fetch.d.cts +1 -1
  32. package/lib/fetch.d.ts +1 -1
  33. package/lib/fetch.js +1 -10
  34. package/lib/index.cjs +4 -3
  35. package/lib/index.d.cts +2 -3
  36. package/lib/index.d.ts +2 -3
  37. package/lib/index.js +2 -1
  38. package/lib/{interceptor-5MISI1yn.d.cts → interceptor-D65i25Y7.d.cts} +1 -1
  39. package/lib/{interceptor-5MISI1yn.d.ts → interceptor-D65i25Y7.d.ts} +1 -1
  40. package/lib/interceptor.d.cts +1 -1
  41. package/lib/interceptor.d.ts +1 -1
  42. package/lib/jsonapi.cjs +1 -0
  43. package/lib/jsonapi.d.cts +2 -2
  44. package/lib/jsonapi.d.ts +2 -2
  45. package/lib/jsonapi.js +1 -0
  46. package/lib/model.d.cts +2 -2
  47. package/lib/model.d.ts +2 -2
  48. package/lib/query.cjs +1 -0
  49. package/lib/query.d.cts +2 -2
  50. package/lib/query.d.ts +2 -2
  51. package/lib/query.js +1 -0
  52. package/lib/resource.cjs +25 -34
  53. package/lib/resource.d.cts +2 -2
  54. package/lib/resource.d.ts +2 -2
  55. package/lib/resource.js +10 -19
  56. package/lib/resources/addresses.cjs +10 -5
  57. package/lib/resources/addresses.d.cts +2 -2
  58. package/lib/resources/addresses.d.ts +2 -2
  59. package/lib/resources/addresses.js +9 -4
  60. package/lib/resources/adjustments.cjs +4 -5
  61. package/lib/resources/adjustments.d.cts +2 -2
  62. package/lib/resources/adjustments.d.ts +2 -2
  63. package/lib/resources/adjustments.js +3 -4
  64. package/lib/resources/adyen_gateways.cjs +4 -5
  65. package/lib/resources/adyen_gateways.d.cts +2 -2
  66. package/lib/resources/adyen_gateways.d.ts +2 -2
  67. package/lib/resources/adyen_gateways.js +3 -4
  68. package/lib/resources/adyen_payments.cjs +4 -5
  69. package/lib/resources/adyen_payments.d.cts +2 -2
  70. package/lib/resources/adyen_payments.d.ts +2 -2
  71. package/lib/resources/adyen_payments.js +3 -4
  72. package/lib/resources/applications.cjs +4 -5
  73. package/lib/resources/applications.d.cts +2 -2
  74. package/lib/resources/applications.d.ts +2 -2
  75. package/lib/resources/applications.js +3 -4
  76. package/lib/resources/attachments.cjs +4 -5
  77. package/lib/resources/attachments.d.cts +2 -2
  78. package/lib/resources/attachments.d.ts +2 -2
  79. package/lib/resources/attachments.js +3 -4
  80. package/lib/resources/authorizations.cjs +4 -5
  81. package/lib/resources/authorizations.d.cts +2 -2
  82. package/lib/resources/authorizations.d.ts +2 -2
  83. package/lib/resources/authorizations.js +3 -4
  84. package/lib/resources/avalara_accounts.cjs +4 -5
  85. package/lib/resources/avalara_accounts.d.cts +2 -2
  86. package/lib/resources/avalara_accounts.d.ts +2 -2
  87. package/lib/resources/avalara_accounts.js +3 -4
  88. package/lib/resources/axerve_gateways.cjs +4 -5
  89. package/lib/resources/axerve_gateways.d.cts +2 -2
  90. package/lib/resources/axerve_gateways.d.ts +2 -2
  91. package/lib/resources/axerve_gateways.js +3 -4
  92. package/lib/resources/axerve_payments.cjs +4 -5
  93. package/lib/resources/axerve_payments.d.cts +2 -2
  94. package/lib/resources/axerve_payments.d.ts +2 -2
  95. package/lib/resources/axerve_payments.js +3 -4
  96. package/lib/resources/bing_geocoders.cjs +4 -5
  97. package/lib/resources/bing_geocoders.d.cts +2 -2
  98. package/lib/resources/bing_geocoders.d.ts +2 -2
  99. package/lib/resources/bing_geocoders.js +3 -4
  100. package/lib/resources/braintree_gateways.cjs +4 -5
  101. package/lib/resources/braintree_gateways.d.cts +2 -2
  102. package/lib/resources/braintree_gateways.d.ts +2 -2
  103. package/lib/resources/braintree_gateways.js +3 -4
  104. package/lib/resources/braintree_payments.cjs +4 -5
  105. package/lib/resources/braintree_payments.d.cts +2 -2
  106. package/lib/resources/braintree_payments.d.ts +2 -2
  107. package/lib/resources/braintree_payments.js +3 -4
  108. package/lib/resources/bundles.cjs +10 -5
  109. package/lib/resources/bundles.d.cts +2 -2
  110. package/lib/resources/bundles.d.ts +2 -2
  111. package/lib/resources/bundles.js +9 -4
  112. package/lib/resources/buy_x_pay_y_promotions.cjs +10 -5
  113. package/lib/resources/buy_x_pay_y_promotions.d.cts +2 -2
  114. package/lib/resources/buy_x_pay_y_promotions.d.ts +2 -2
  115. package/lib/resources/buy_x_pay_y_promotions.js +9 -4
  116. package/lib/resources/captures.cjs +4 -5
  117. package/lib/resources/captures.d.cts +2 -2
  118. package/lib/resources/captures.d.ts +2 -2
  119. package/lib/resources/captures.js +3 -4
  120. package/lib/resources/carrier_accounts.cjs +4 -5
  121. package/lib/resources/carrier_accounts.d.cts +2 -2
  122. package/lib/resources/carrier_accounts.d.ts +2 -2
  123. package/lib/resources/carrier_accounts.js +3 -4
  124. package/lib/resources/checkout_com_gateways.cjs +4 -5
  125. package/lib/resources/checkout_com_gateways.d.cts +2 -2
  126. package/lib/resources/checkout_com_gateways.d.ts +2 -2
  127. package/lib/resources/checkout_com_gateways.js +3 -4
  128. package/lib/resources/checkout_com_payments.cjs +4 -5
  129. package/lib/resources/checkout_com_payments.d.cts +2 -2
  130. package/lib/resources/checkout_com_payments.d.ts +2 -2
  131. package/lib/resources/checkout_com_payments.js +3 -4
  132. package/lib/resources/cleanups.cjs +4 -5
  133. package/lib/resources/cleanups.d.cts +2 -2
  134. package/lib/resources/cleanups.d.ts +2 -2
  135. package/lib/resources/cleanups.js +3 -4
  136. package/lib/resources/coupon_codes_promotion_rules.cjs +4 -5
  137. package/lib/resources/coupon_codes_promotion_rules.d.cts +2 -2
  138. package/lib/resources/coupon_codes_promotion_rules.d.ts +2 -2
  139. package/lib/resources/coupon_codes_promotion_rules.js +3 -4
  140. package/lib/resources/coupon_recipients.cjs +4 -5
  141. package/lib/resources/coupon_recipients.d.cts +2 -2
  142. package/lib/resources/coupon_recipients.d.ts +2 -2
  143. package/lib/resources/coupon_recipients.js +3 -4
  144. package/lib/resources/coupons.cjs +10 -5
  145. package/lib/resources/coupons.d.cts +2 -2
  146. package/lib/resources/coupons.d.ts +2 -2
  147. package/lib/resources/coupons.js +9 -4
  148. package/lib/resources/custom_promotion_rules.cjs +4 -5
  149. package/lib/resources/custom_promotion_rules.d.cts +2 -2
  150. package/lib/resources/custom_promotion_rules.d.ts +2 -2
  151. package/lib/resources/custom_promotion_rules.js +3 -4
  152. package/lib/resources/customer_addresses.cjs +4 -5
  153. package/lib/resources/customer_addresses.d.cts +2 -2
  154. package/lib/resources/customer_addresses.d.ts +2 -2
  155. package/lib/resources/customer_addresses.js +3 -4
  156. package/lib/resources/customer_groups.cjs +4 -5
  157. package/lib/resources/customer_groups.d.cts +2 -2
  158. package/lib/resources/customer_groups.d.ts +2 -2
  159. package/lib/resources/customer_groups.js +3 -4
  160. package/lib/resources/customer_password_resets.cjs +4 -5
  161. package/lib/resources/customer_password_resets.d.cts +2 -2
  162. package/lib/resources/customer_password_resets.d.ts +2 -2
  163. package/lib/resources/customer_password_resets.js +3 -4
  164. package/lib/resources/customer_payment_sources.cjs +4 -5
  165. package/lib/resources/customer_payment_sources.d.cts +2 -2
  166. package/lib/resources/customer_payment_sources.d.ts +2 -2
  167. package/lib/resources/customer_payment_sources.js +3 -4
  168. package/lib/resources/customer_subscriptions.cjs +4 -5
  169. package/lib/resources/customer_subscriptions.d.cts +2 -2
  170. package/lib/resources/customer_subscriptions.d.ts +2 -2
  171. package/lib/resources/customer_subscriptions.js +3 -4
  172. package/lib/resources/customers.cjs +10 -5
  173. package/lib/resources/customers.d.cts +2 -2
  174. package/lib/resources/customers.d.ts +2 -2
  175. package/lib/resources/customers.js +9 -4
  176. package/lib/resources/delivery_lead_times.cjs +4 -5
  177. package/lib/resources/delivery_lead_times.d.cts +2 -2
  178. package/lib/resources/delivery_lead_times.d.ts +2 -2
  179. package/lib/resources/delivery_lead_times.js +3 -4
  180. package/lib/resources/discount_engine_items.cjs +4 -5
  181. package/lib/resources/discount_engine_items.d.cts +2 -2
  182. package/lib/resources/discount_engine_items.d.ts +2 -2
  183. package/lib/resources/discount_engine_items.js +3 -4
  184. package/lib/resources/discount_engines.cjs +4 -5
  185. package/lib/resources/discount_engines.d.cts +2 -2
  186. package/lib/resources/discount_engines.d.ts +2 -2
  187. package/lib/resources/discount_engines.js +3 -4
  188. package/lib/resources/easypost_pickups.cjs +4 -5
  189. package/lib/resources/easypost_pickups.d.cts +2 -2
  190. package/lib/resources/easypost_pickups.d.ts +2 -2
  191. package/lib/resources/easypost_pickups.js +3 -4
  192. package/lib/resources/event_callbacks.cjs +4 -5
  193. package/lib/resources/event_callbacks.d.cts +2 -2
  194. package/lib/resources/event_callbacks.d.ts +2 -2
  195. package/lib/resources/event_callbacks.js +3 -4
  196. package/lib/resources/events.cjs +4 -5
  197. package/lib/resources/events.d.cts +2 -2
  198. package/lib/resources/events.d.ts +2 -2
  199. package/lib/resources/events.js +3 -4
  200. package/lib/resources/exports.cjs +4 -5
  201. package/lib/resources/exports.d.cts +2 -2
  202. package/lib/resources/exports.d.ts +2 -2
  203. package/lib/resources/exports.js +3 -4
  204. package/lib/resources/external_gateways.cjs +4 -5
  205. package/lib/resources/external_gateways.d.cts +2 -2
  206. package/lib/resources/external_gateways.d.ts +2 -2
  207. package/lib/resources/external_gateways.js +3 -4
  208. package/lib/resources/external_payments.cjs +4 -5
  209. package/lib/resources/external_payments.d.cts +2 -2
  210. package/lib/resources/external_payments.d.ts +2 -2
  211. package/lib/resources/external_payments.js +3 -4
  212. package/lib/resources/external_promotions.cjs +10 -5
  213. package/lib/resources/external_promotions.d.cts +2 -2
  214. package/lib/resources/external_promotions.d.ts +2 -2
  215. package/lib/resources/external_promotions.js +9 -4
  216. package/lib/resources/external_tax_calculators.cjs +4 -5
  217. package/lib/resources/external_tax_calculators.d.cts +2 -2
  218. package/lib/resources/external_tax_calculators.d.ts +2 -2
  219. package/lib/resources/external_tax_calculators.js +3 -4
  220. package/lib/resources/fixed_amount_promotions.cjs +10 -5
  221. package/lib/resources/fixed_amount_promotions.d.cts +2 -2
  222. package/lib/resources/fixed_amount_promotions.d.ts +2 -2
  223. package/lib/resources/fixed_amount_promotions.js +9 -4
  224. package/lib/resources/fixed_price_promotions.cjs +10 -5
  225. package/lib/resources/fixed_price_promotions.d.cts +2 -2
  226. package/lib/resources/fixed_price_promotions.d.ts +2 -2
  227. package/lib/resources/fixed_price_promotions.js +9 -4
  228. package/lib/resources/flex_promotions.cjs +10 -5
  229. package/lib/resources/flex_promotions.d.cts +2 -2
  230. package/lib/resources/flex_promotions.d.ts +2 -2
  231. package/lib/resources/flex_promotions.js +9 -4
  232. package/lib/resources/free_gift_promotions.cjs +10 -5
  233. package/lib/resources/free_gift_promotions.d.cts +2 -2
  234. package/lib/resources/free_gift_promotions.d.ts +2 -2
  235. package/lib/resources/free_gift_promotions.js +9 -4
  236. package/lib/resources/free_shipping_promotions.cjs +10 -5
  237. package/lib/resources/free_shipping_promotions.d.cts +2 -2
  238. package/lib/resources/free_shipping_promotions.d.ts +2 -2
  239. package/lib/resources/free_shipping_promotions.js +9 -4
  240. package/lib/resources/geocoders.cjs +4 -5
  241. package/lib/resources/geocoders.d.cts +2 -2
  242. package/lib/resources/geocoders.d.ts +2 -2
  243. package/lib/resources/geocoders.js +3 -4
  244. package/lib/resources/gift_card_recipients.cjs +4 -5
  245. package/lib/resources/gift_card_recipients.d.cts +2 -2
  246. package/lib/resources/gift_card_recipients.d.ts +2 -2
  247. package/lib/resources/gift_card_recipients.js +3 -4
  248. package/lib/resources/gift_cards.cjs +10 -5
  249. package/lib/resources/gift_cards.d.cts +2 -2
  250. package/lib/resources/gift_cards.d.ts +2 -2
  251. package/lib/resources/gift_cards.js +9 -4
  252. package/lib/resources/google_geocoders.cjs +4 -5
  253. package/lib/resources/google_geocoders.d.cts +2 -2
  254. package/lib/resources/google_geocoders.d.ts +2 -2
  255. package/lib/resources/google_geocoders.js +3 -4
  256. package/lib/resources/imports.cjs +4 -5
  257. package/lib/resources/imports.d.cts +2 -2
  258. package/lib/resources/imports.d.ts +2 -2
  259. package/lib/resources/imports.js +3 -4
  260. package/lib/resources/in_stock_subscriptions.cjs +4 -5
  261. package/lib/resources/in_stock_subscriptions.d.cts +2 -2
  262. package/lib/resources/in_stock_subscriptions.d.ts +2 -2
  263. package/lib/resources/in_stock_subscriptions.js +3 -4
  264. package/lib/resources/inventory_models.cjs +4 -5
  265. package/lib/resources/inventory_models.d.cts +2 -2
  266. package/lib/resources/inventory_models.d.ts +2 -2
  267. package/lib/resources/inventory_models.js +3 -4
  268. package/lib/resources/inventory_return_locations.cjs +4 -5
  269. package/lib/resources/inventory_return_locations.d.cts +2 -2
  270. package/lib/resources/inventory_return_locations.d.ts +2 -2
  271. package/lib/resources/inventory_return_locations.js +3 -4
  272. package/lib/resources/inventory_stock_locations.cjs +4 -5
  273. package/lib/resources/inventory_stock_locations.d.cts +2 -2
  274. package/lib/resources/inventory_stock_locations.d.ts +2 -2
  275. package/lib/resources/inventory_stock_locations.js +3 -4
  276. package/lib/resources/klarna_gateways.cjs +4 -5
  277. package/lib/resources/klarna_gateways.d.cts +2 -2
  278. package/lib/resources/klarna_gateways.d.ts +2 -2
  279. package/lib/resources/klarna_gateways.js +3 -4
  280. package/lib/resources/klarna_payments.cjs +4 -5
  281. package/lib/resources/klarna_payments.d.cts +2 -2
  282. package/lib/resources/klarna_payments.d.ts +2 -2
  283. package/lib/resources/klarna_payments.js +3 -4
  284. package/lib/resources/line_item_options.cjs +10 -5
  285. package/lib/resources/line_item_options.d.cts +2 -2
  286. package/lib/resources/line_item_options.d.ts +2 -2
  287. package/lib/resources/line_item_options.js +9 -4
  288. package/lib/resources/line_items.cjs +10 -5
  289. package/lib/resources/line_items.d.cts +2 -2
  290. package/lib/resources/line_items.d.ts +2 -2
  291. package/lib/resources/line_items.js +9 -4
  292. package/lib/resources/links.cjs +4 -5
  293. package/lib/resources/links.d.cts +2 -2
  294. package/lib/resources/links.d.ts +2 -2
  295. package/lib/resources/links.js +3 -4
  296. package/lib/resources/manual_gateways.cjs +4 -5
  297. package/lib/resources/manual_gateways.d.cts +2 -2
  298. package/lib/resources/manual_gateways.d.ts +2 -2
  299. package/lib/resources/manual_gateways.js +3 -4
  300. package/lib/resources/manual_tax_calculators.cjs +4 -5
  301. package/lib/resources/manual_tax_calculators.d.cts +2 -2
  302. package/lib/resources/manual_tax_calculators.d.ts +2 -2
  303. package/lib/resources/manual_tax_calculators.js +3 -4
  304. package/lib/resources/markets.cjs +12 -5
  305. package/lib/resources/markets.d.cts +2 -2
  306. package/lib/resources/markets.d.ts +2 -2
  307. package/lib/resources/markets.js +11 -4
  308. package/lib/resources/merchants.cjs +4 -5
  309. package/lib/resources/merchants.d.cts +2 -2
  310. package/lib/resources/merchants.d.ts +2 -2
  311. package/lib/resources/merchants.js +3 -4
  312. package/lib/resources/notifications.cjs +4 -5
  313. package/lib/resources/notifications.d.cts +2 -2
  314. package/lib/resources/notifications.d.ts +2 -2
  315. package/lib/resources/notifications.js +3 -4
  316. package/lib/resources/order_amount_promotion_rules.cjs +4 -5
  317. package/lib/resources/order_amount_promotion_rules.d.cts +2 -2
  318. package/lib/resources/order_amount_promotion_rules.d.ts +2 -2
  319. package/lib/resources/order_amount_promotion_rules.js +3 -4
  320. package/lib/resources/order_copies.cjs +4 -5
  321. package/lib/resources/order_copies.d.cts +2 -2
  322. package/lib/resources/order_copies.d.ts +2 -2
  323. package/lib/resources/order_copies.js +3 -4
  324. package/lib/resources/order_factories.cjs +4 -5
  325. package/lib/resources/order_factories.d.cts +2 -2
  326. package/lib/resources/order_factories.d.ts +2 -2
  327. package/lib/resources/order_factories.js +3 -4
  328. package/lib/resources/order_subscription_items.cjs +4 -5
  329. package/lib/resources/order_subscription_items.d.cts +2 -2
  330. package/lib/resources/order_subscription_items.d.ts +2 -2
  331. package/lib/resources/order_subscription_items.js +3 -4
  332. package/lib/resources/order_subscriptions.cjs +10 -5
  333. package/lib/resources/order_subscriptions.d.cts +2 -2
  334. package/lib/resources/order_subscriptions.d.ts +2 -2
  335. package/lib/resources/order_subscriptions.js +9 -4
  336. package/lib/resources/orders.cjs +18 -5
  337. package/lib/resources/orders.d.cts +2 -2
  338. package/lib/resources/orders.d.ts +2 -2
  339. package/lib/resources/orders.js +17 -4
  340. package/lib/resources/organizations.cjs +4 -5
  341. package/lib/resources/organizations.d.cts +2 -2
  342. package/lib/resources/organizations.d.ts +2 -2
  343. package/lib/resources/organizations.js +3 -4
  344. package/lib/resources/packages.cjs +4 -5
  345. package/lib/resources/packages.d.cts +2 -2
  346. package/lib/resources/packages.d.ts +2 -2
  347. package/lib/resources/packages.js +3 -4
  348. package/lib/resources/parcel_line_items.cjs +4 -5
  349. package/lib/resources/parcel_line_items.d.cts +2 -2
  350. package/lib/resources/parcel_line_items.d.ts +2 -2
  351. package/lib/resources/parcel_line_items.js +3 -4
  352. package/lib/resources/parcels.cjs +4 -5
  353. package/lib/resources/parcels.d.cts +2 -2
  354. package/lib/resources/parcels.d.ts +2 -2
  355. package/lib/resources/parcels.js +3 -4
  356. package/lib/resources/payment_gateways.cjs +4 -5
  357. package/lib/resources/payment_gateways.d.cts +2 -2
  358. package/lib/resources/payment_gateways.d.ts +2 -2
  359. package/lib/resources/payment_gateways.js +3 -4
  360. package/lib/resources/payment_methods.cjs +4 -5
  361. package/lib/resources/payment_methods.d.cts +2 -2
  362. package/lib/resources/payment_methods.d.ts +2 -2
  363. package/lib/resources/payment_methods.js +3 -4
  364. package/lib/resources/payment_options.cjs +4 -5
  365. package/lib/resources/payment_options.d.cts +2 -2
  366. package/lib/resources/payment_options.d.ts +2 -2
  367. package/lib/resources/payment_options.js +3 -4
  368. package/lib/resources/paypal_gateways.cjs +4 -5
  369. package/lib/resources/paypal_gateways.d.cts +2 -2
  370. package/lib/resources/paypal_gateways.d.ts +2 -2
  371. package/lib/resources/paypal_gateways.js +3 -4
  372. package/lib/resources/paypal_payments.cjs +4 -5
  373. package/lib/resources/paypal_payments.d.cts +2 -2
  374. package/lib/resources/paypal_payments.d.ts +2 -2
  375. package/lib/resources/paypal_payments.js +3 -4
  376. package/lib/resources/percentage_discount_promotions.cjs +10 -5
  377. package/lib/resources/percentage_discount_promotions.d.cts +2 -2
  378. package/lib/resources/percentage_discount_promotions.d.ts +2 -2
  379. package/lib/resources/percentage_discount_promotions.js +9 -4
  380. package/lib/resources/pickups.cjs +4 -5
  381. package/lib/resources/pickups.d.cts +2 -2
  382. package/lib/resources/pickups.d.ts +2 -2
  383. package/lib/resources/pickups.js +3 -4
  384. package/lib/resources/price_frequency_tiers.cjs +4 -5
  385. package/lib/resources/price_frequency_tiers.d.cts +2 -2
  386. package/lib/resources/price_frequency_tiers.d.ts +2 -2
  387. package/lib/resources/price_frequency_tiers.js +3 -4
  388. package/lib/resources/price_list_schedulers.cjs +4 -5
  389. package/lib/resources/price_list_schedulers.d.cts +2 -2
  390. package/lib/resources/price_list_schedulers.d.ts +2 -2
  391. package/lib/resources/price_list_schedulers.js +3 -4
  392. package/lib/resources/price_lists.cjs +4 -5
  393. package/lib/resources/price_lists.d.cts +2 -2
  394. package/lib/resources/price_lists.d.ts +2 -2
  395. package/lib/resources/price_lists.js +3 -4
  396. package/lib/resources/price_tiers.cjs +4 -5
  397. package/lib/resources/price_tiers.d.cts +2 -2
  398. package/lib/resources/price_tiers.d.ts +2 -2
  399. package/lib/resources/price_tiers.js +3 -4
  400. package/lib/resources/price_volume_tiers.cjs +4 -5
  401. package/lib/resources/price_volume_tiers.d.cts +2 -2
  402. package/lib/resources/price_volume_tiers.d.ts +2 -2
  403. package/lib/resources/price_volume_tiers.js +3 -4
  404. package/lib/resources/prices.cjs +4 -5
  405. package/lib/resources/prices.d.cts +2 -2
  406. package/lib/resources/prices.d.ts +2 -2
  407. package/lib/resources/prices.js +3 -4
  408. package/lib/resources/promotion_rules.cjs +4 -5
  409. package/lib/resources/promotion_rules.d.cts +2 -2
  410. package/lib/resources/promotion_rules.d.ts +2 -2
  411. package/lib/resources/promotion_rules.js +3 -4
  412. package/lib/resources/promotions.cjs +4 -5
  413. package/lib/resources/promotions.d.cts +2 -2
  414. package/lib/resources/promotions.d.ts +2 -2
  415. package/lib/resources/promotions.js +3 -4
  416. package/lib/resources/recurring_order_copies.cjs +4 -5
  417. package/lib/resources/recurring_order_copies.d.cts +2 -2
  418. package/lib/resources/recurring_order_copies.d.ts +2 -2
  419. package/lib/resources/recurring_order_copies.js +3 -4
  420. package/lib/resources/refunds.cjs +4 -5
  421. package/lib/resources/refunds.d.cts +2 -2
  422. package/lib/resources/refunds.d.ts +2 -2
  423. package/lib/resources/refunds.js +3 -4
  424. package/lib/resources/reserved_stocks.cjs +4 -5
  425. package/lib/resources/reserved_stocks.d.cts +2 -2
  426. package/lib/resources/reserved_stocks.d.ts +2 -2
  427. package/lib/resources/reserved_stocks.js +3 -4
  428. package/lib/resources/resource_errors.cjs +4 -5
  429. package/lib/resources/resource_errors.d.cts +2 -2
  430. package/lib/resources/resource_errors.d.ts +2 -2
  431. package/lib/resources/resource_errors.js +3 -4
  432. package/lib/resources/return_line_items.cjs +4 -5
  433. package/lib/resources/return_line_items.d.cts +2 -2
  434. package/lib/resources/return_line_items.d.ts +2 -2
  435. package/lib/resources/return_line_items.js +3 -4
  436. package/lib/resources/returns.cjs +10 -5
  437. package/lib/resources/returns.d.cts +2 -2
  438. package/lib/resources/returns.d.ts +2 -2
  439. package/lib/resources/returns.js +9 -4
  440. package/lib/resources/satispay_gateways.cjs +4 -5
  441. package/lib/resources/satispay_gateways.d.cts +2 -2
  442. package/lib/resources/satispay_gateways.d.ts +2 -2
  443. package/lib/resources/satispay_gateways.js +3 -4
  444. package/lib/resources/satispay_payments.cjs +4 -5
  445. package/lib/resources/satispay_payments.d.cts +2 -2
  446. package/lib/resources/satispay_payments.d.ts +2 -2
  447. package/lib/resources/satispay_payments.js +3 -4
  448. package/lib/resources/shipments.cjs +10 -5
  449. package/lib/resources/shipments.d.cts +2 -2
  450. package/lib/resources/shipments.d.ts +2 -2
  451. package/lib/resources/shipments.js +9 -4
  452. package/lib/resources/shipping_categories.cjs +4 -5
  453. package/lib/resources/shipping_categories.d.cts +2 -2
  454. package/lib/resources/shipping_categories.d.ts +2 -2
  455. package/lib/resources/shipping_categories.js +3 -4
  456. package/lib/resources/shipping_method_tiers.cjs +4 -5
  457. package/lib/resources/shipping_method_tiers.d.cts +2 -2
  458. package/lib/resources/shipping_method_tiers.d.ts +2 -2
  459. package/lib/resources/shipping_method_tiers.js +3 -4
  460. package/lib/resources/shipping_methods.cjs +4 -5
  461. package/lib/resources/shipping_methods.d.cts +2 -2
  462. package/lib/resources/shipping_methods.d.ts +2 -2
  463. package/lib/resources/shipping_methods.js +3 -4
  464. package/lib/resources/shipping_weight_tiers.cjs +4 -5
  465. package/lib/resources/shipping_weight_tiers.d.cts +2 -2
  466. package/lib/resources/shipping_weight_tiers.d.ts +2 -2
  467. package/lib/resources/shipping_weight_tiers.js +3 -4
  468. package/lib/resources/shipping_zones.cjs +4 -5
  469. package/lib/resources/shipping_zones.d.cts +2 -2
  470. package/lib/resources/shipping_zones.d.ts +2 -2
  471. package/lib/resources/shipping_zones.js +3 -4
  472. package/lib/resources/sku_list_items.cjs +4 -5
  473. package/lib/resources/sku_list_items.d.cts +2 -2
  474. package/lib/resources/sku_list_items.d.ts +2 -2
  475. package/lib/resources/sku_list_items.js +3 -4
  476. package/lib/resources/sku_list_promotion_rules.cjs +4 -5
  477. package/lib/resources/sku_list_promotion_rules.d.cts +2 -2
  478. package/lib/resources/sku_list_promotion_rules.d.ts +2 -2
  479. package/lib/resources/sku_list_promotion_rules.js +3 -4
  480. package/lib/resources/sku_lists.cjs +4 -5
  481. package/lib/resources/sku_lists.d.cts +2 -2
  482. package/lib/resources/sku_lists.d.ts +2 -2
  483. package/lib/resources/sku_lists.js +3 -4
  484. package/lib/resources/sku_options.cjs +10 -5
  485. package/lib/resources/sku_options.d.cts +2 -2
  486. package/lib/resources/sku_options.d.ts +2 -2
  487. package/lib/resources/sku_options.js +9 -4
  488. package/lib/resources/skus.cjs +10 -5
  489. package/lib/resources/skus.d.cts +2 -2
  490. package/lib/resources/skus.d.ts +2 -2
  491. package/lib/resources/skus.js +9 -4
  492. package/lib/resources/stock_items.cjs +4 -5
  493. package/lib/resources/stock_items.d.cts +2 -2
  494. package/lib/resources/stock_items.d.ts +2 -2
  495. package/lib/resources/stock_items.js +3 -4
  496. package/lib/resources/stock_line_items.cjs +4 -5
  497. package/lib/resources/stock_line_items.d.cts +2 -2
  498. package/lib/resources/stock_line_items.d.ts +2 -2
  499. package/lib/resources/stock_line_items.js +3 -4
  500. package/lib/resources/stock_locations.cjs +4 -5
  501. package/lib/resources/stock_locations.d.cts +2 -2
  502. package/lib/resources/stock_locations.d.ts +2 -2
  503. package/lib/resources/stock_locations.js +3 -4
  504. package/lib/resources/stock_reservations.cjs +4 -5
  505. package/lib/resources/stock_reservations.d.cts +2 -2
  506. package/lib/resources/stock_reservations.d.ts +2 -2
  507. package/lib/resources/stock_reservations.js +3 -4
  508. package/lib/resources/stock_transfers.cjs +4 -5
  509. package/lib/resources/stock_transfers.d.cts +2 -2
  510. package/lib/resources/stock_transfers.d.ts +2 -2
  511. package/lib/resources/stock_transfers.js +3 -4
  512. package/lib/resources/stores.cjs +4 -5
  513. package/lib/resources/stores.d.cts +2 -2
  514. package/lib/resources/stores.d.ts +2 -2
  515. package/lib/resources/stores.js +3 -4
  516. package/lib/resources/stripe_gateways.cjs +4 -5
  517. package/lib/resources/stripe_gateways.d.cts +2 -2
  518. package/lib/resources/stripe_gateways.d.ts +2 -2
  519. package/lib/resources/stripe_gateways.js +3 -4
  520. package/lib/resources/stripe_payments.cjs +4 -5
  521. package/lib/resources/stripe_payments.d.cts +2 -2
  522. package/lib/resources/stripe_payments.d.ts +2 -2
  523. package/lib/resources/stripe_payments.js +3 -4
  524. package/lib/resources/stripe_tax_accounts.cjs +4 -5
  525. package/lib/resources/stripe_tax_accounts.d.cts +2 -2
  526. package/lib/resources/stripe_tax_accounts.d.ts +2 -2
  527. package/lib/resources/stripe_tax_accounts.js +3 -4
  528. package/lib/resources/subscription_models.cjs +4 -5
  529. package/lib/resources/subscription_models.d.cts +2 -2
  530. package/lib/resources/subscription_models.d.ts +2 -2
  531. package/lib/resources/subscription_models.js +3 -4
  532. package/lib/resources/tags.cjs +4 -5
  533. package/lib/resources/tags.d.cts +2 -2
  534. package/lib/resources/tags.d.ts +2 -2
  535. package/lib/resources/tags.js +3 -4
  536. package/lib/resources/talon_one_accounts.cjs +4 -5
  537. package/lib/resources/talon_one_accounts.d.cts +2 -2
  538. package/lib/resources/talon_one_accounts.d.ts +2 -2
  539. package/lib/resources/talon_one_accounts.js +3 -4
  540. package/lib/resources/tax_calculators.cjs +4 -5
  541. package/lib/resources/tax_calculators.d.cts +2 -2
  542. package/lib/resources/tax_calculators.d.ts +2 -2
  543. package/lib/resources/tax_calculators.js +3 -4
  544. package/lib/resources/tax_categories.cjs +4 -5
  545. package/lib/resources/tax_categories.d.cts +2 -2
  546. package/lib/resources/tax_categories.d.ts +2 -2
  547. package/lib/resources/tax_categories.js +3 -4
  548. package/lib/resources/tax_rules.cjs +4 -5
  549. package/lib/resources/tax_rules.d.cts +2 -2
  550. package/lib/resources/tax_rules.d.ts +2 -2
  551. package/lib/resources/tax_rules.js +3 -4
  552. package/lib/resources/taxjar_accounts.cjs +4 -5
  553. package/lib/resources/taxjar_accounts.d.cts +2 -2
  554. package/lib/resources/taxjar_accounts.d.ts +2 -2
  555. package/lib/resources/taxjar_accounts.js +3 -4
  556. package/lib/resources/transactions.cjs +4 -5
  557. package/lib/resources/transactions.d.cts +2 -2
  558. package/lib/resources/transactions.d.ts +2 -2
  559. package/lib/resources/transactions.js +3 -4
  560. package/lib/resources/versions.cjs +4 -5
  561. package/lib/resources/versions.d.cts +2 -2
  562. package/lib/resources/versions.d.ts +2 -2
  563. package/lib/resources/versions.js +3 -4
  564. package/lib/resources/vertex_accounts.cjs +4 -5
  565. package/lib/resources/vertex_accounts.d.cts +2 -2
  566. package/lib/resources/vertex_accounts.d.ts +2 -2
  567. package/lib/resources/vertex_accounts.js +3 -4
  568. package/lib/resources/voids.cjs +4 -5
  569. package/lib/resources/voids.d.cts +2 -2
  570. package/lib/resources/voids.d.ts +2 -2
  571. package/lib/resources/voids.js +3 -4
  572. package/lib/resources/webhooks.cjs +4 -5
  573. package/lib/resources/webhooks.d.cts +2 -2
  574. package/lib/resources/webhooks.d.ts +2 -2
  575. package/lib/resources/webhooks.js +3 -4
  576. package/lib/resources/wire_transfers.cjs +4 -5
  577. package/lib/resources/wire_transfers.d.cts +2 -2
  578. package/lib/resources/wire_transfers.d.ts +2 -2
  579. package/lib/resources/wire_transfers.js +3 -4
  580. package/lib/static.cjs +1 -0
  581. package/lib/static.d.cts +3 -3
  582. package/lib/static.d.ts +3 -3
  583. package/lib/static.js +1 -0
  584. package/lib/util.cjs +2 -0
  585. package/lib/util.js +2 -0
  586. package/package.json +7 -7
  587. package/lib/instance.cjs +0 -272
  588. package/lib/instance.d.cts +0 -141
  589. package/lib/instance.d.ts +0 -141
  590. package/lib/instance.js +0 -139
package/lib/api.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- export { hy as Addresses, hz as Adjustments, hA as AdyenGateways, hB as AdyenPayments, hC as Applications, hD as Attachments, hE as Authorizations, hF as AvalaraAccounts, hG as AxerveGateways, hH as AxervePayments, hI as BingGeocoders, hJ as BraintreeGateways, hK as BraintreePayments, hL as Bundles, hM as BuyXPayYPromotions, hN as Captures, hO as CarrierAccounts, hP as CheckoutComGateways, hQ as CheckoutComPayments, hR as Cleanups, hS as CouponCodesPromotionRules, hT as CouponRecipients, hU as Coupons, hn as CreatableResource, hm as CreatableResourceType, hV as CustomPromotionRules, hW as CustomerAddresses, hX as CustomerGroups, hY as CustomerPasswordResets, hZ as CustomerPaymentSources, h_ as CustomerSubscriptions, h$ as Customers, hr as DeletableResource, hq as DeletableResourceType, i0 as DeliveryLeadTimes, i1 as DiscountEngineItems, i2 as DiscountEngines, i3 as EasypostPickups, i4 as EventCallbacks, i5 as Events, i6 as Exports, i7 as ExternalGateways, i8 as ExternalPayments, i9 as ExternalPromotions, ia as ExternalTaxCalculators, ib as FixedAmountPromotions, ic as FixedPricePromotions, id as FlexPromotions, ie as FreeGiftPromotions, ig as FreeShippingPromotions, ih as Geocoders, ii as GiftCardRecipients, ij as GiftCards, ik as GoogleGeocoders, il as Imports, im as InStockSubscriptions, io as InventoryModels, ip as InventoryReturnLocations, iq as InventoryStockLocations, ir as KlarnaGateways, is as KlarnaPayments, it as LineItemOptions, iu as LineItems, iv as Links, hl as ListableResource, hk as ListableResourceType, iw as ManualGateways, ix as ManualTaxCalculators, iy as Markets, iz as Merchants, iA as Notifications, iB as OrderAmountPromotionRules, iC as OrderCopies, iD as OrderFactories, iE as OrderSubscriptionItems, iF as OrderSubscriptions, iG as Orders, iH as Organizations, iI as Packages, iJ as ParcelLineItems, iK as Parcels, iL as PaymentGateways, iM as PaymentMethods, iN as PaymentOptions, iO as PaypalGateways, iP as PaypalPayments, iQ as PercentageDiscountPromotions, iR as Pickups, iS as PriceFrequencyTiers, iT as PriceListSchedulers, iU as PriceLists, iV as PriceTiers, iW as PriceVolumeTiers, iX as Prices, iY as PromotionRules, iZ as Promotions, i_ as RecurringOrderCopies, i$ as Refunds, j0 as ReservedStocks, j1 as ResourceErrors, hw as ResourceFields, hx as ResourceSortFields, hf as ResourceTypeLock, hj as RetrievableResource, hi as RetrievableResourceType, j2 as ReturnLineItems, j3 as Returns, j4 as SatispayGateways, j5 as SatispayPayments, j6 as Shipments, j7 as ShippingCategories, j8 as ShippingMethodTiers, j9 as ShippingMethods, ja as ShippingWeightTiers, jb as ShippingZones, jc as SkuListItems, jd as SkuListPromotionRules, je as SkuLists, jf as SkuOptions, jg as Skus, jh as StockItems, ji as StockLineItems, jj as StockLocations, jk as StockReservations, jl as StockTransfers, jm as Stores, jn as StripeGateways, jo as StripePayments, jp as StripeTaxAccounts, jq as SubscriptionModels, ht as TaggableResource, hs as TaggableResourceType, jr as Tags, js as TalonOneAccounts, jt as TaxCalculators, ju as TaxCategories, jv as TaxRules, jw as TaxjarAccounts, jx as Transactions, hp as UpdatableResource, ho as UpdatableResourceType, hv as VersionableResource, hu as VersionableResourceType, jy as Versions, jz as VertexAccounts, jA as Voids, jB as Webhooks, jC as WireTransfers, hg as resourceList, hh as singletonList } from './api-BYcswOJ0.cjs';
1
+ export { j as CreatableResource, C as CreatableResourceType, l as DeletableResource, D as DeletableResourceType, i as ListableResource, L as ListableResourceType, o as ResourceFields, p as ResourceSortFields, f as ResourceTypeLock, h as RetrievableResource, g as RetrievableResourceType, m as TaggableResource, T as TaggableResourceType, k as UpdatableResource, U as UpdatableResourceType, n as VersionableResource, V as VersionableResourceType, q as addresses, t as adjustments, u as adyen_gateways, v as adyen_payments, w as application, x as attachments, y as authorizations, z as avalara_accounts, A as axerve_gateways, B as axerve_payments, E as bing_geocoders, F as braintree_gateways, G as braintree_payments, H as bundles, I as buy_x_pay_y_promotions, J as captures, K as carrier_accounts, M as checkout_com_gateways, N as checkout_com_payments, O as cleanups, P as coupon_codes_promotion_rules, Q as coupon_recipients, S as coupons, W as custom_promotion_rules, X as customer_addresses, Y as customer_groups, Z as customer_password_resets, _ as customer_payment_sources, $ as customer_subscriptions, a0 as customers, a1 as delivery_lead_times, a2 as discount_engine_items, a3 as discount_engines, a4 as easypost_pickups, a5 as event_callbacks, a6 as events, a7 as exports, a8 as external_gateways, a9 as external_payments, aa as external_promotions, ab as external_tax_calculators, ac as fixed_amount_promotions, ad as fixed_price_promotions, ae as flex_promotions, af as free_gift_promotions, ag as free_shipping_promotions, ah as geocoders, ai as gift_card_recipients, aj as gift_cards, ak as google_geocoders, al as imports, am as in_stock_subscriptions, an as inventory_models, ao as inventory_return_locations, ap as inventory_stock_locations, aq as klarna_gateways, ar as klarna_payments, as as line_item_options, at as line_items, au as links, av as manual_gateways, aw as manual_tax_calculators, ax as markets, ay as merchants, az as notifications, aA as order_amount_promotion_rules, aB as order_copies, aC as order_factories, aD as order_subscription_items, aE as order_subscriptions, aF as orders, aG as organization, aH as packages, aI as parcel_line_items, aJ as parcels, aK as payment_gateways, aL as payment_methods, aM as payment_options, aN as paypal_gateways, aO as paypal_payments, aP as percentage_discount_promotions, aQ as pickups, aR as price_frequency_tiers, aS as price_list_schedulers, aT as price_lists, aU as price_tiers, aV as price_volume_tiers, aW as prices, aX as promotion_rules, aY as promotions, aZ as recurring_order_copies, a_ as refunds, a$ as reserved_stocks, r as resourceList, b0 as resource_errors, b1 as return_line_items, b2 as returns, b3 as satispay_gateways, b4 as satispay_payments, b5 as shipments, b6 as shipping_categories, b7 as shipping_method_tiers, b8 as shipping_methods, b9 as shipping_weight_tiers, ba as shipping_zones, s as singletonList, bb as sku_list_items, bc as sku_list_promotion_rules, bd as sku_lists, be as sku_options, bf as skus, bg as stock_items, bh as stock_line_items, bi as stock_locations, bj as stock_reservations, bk as stock_transfers, bl as stores, bm as stripe_gateways, bn as stripe_payments, bo as stripe_tax_accounts, bp as subscription_models, bq as tags, br as talon_one_accounts, bs as tax_calculators, bt as tax_categories, bu as tax_rules, bv as taxjar_accounts, bw as transactions, bx as versions, by as vertex_accounts, bz as voids, bA as webhooks, bB as wire_transfers } from './api-Bq9emZm-.cjs';
2
2
  import './client.cjs';
3
- import './interceptor-5MISI1yn.cjs';
3
+ import './interceptor-D65i25Y7.cjs';
4
4
  import './types.cjs';
package/lib/api.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { hy as Addresses, hz as Adjustments, hA as AdyenGateways, hB as AdyenPayments, hC as Applications, hD as Attachments, hE as Authorizations, hF as AvalaraAccounts, hG as AxerveGateways, hH as AxervePayments, hI as BingGeocoders, hJ as BraintreeGateways, hK as BraintreePayments, hL as Bundles, hM as BuyXPayYPromotions, hN as Captures, hO as CarrierAccounts, hP as CheckoutComGateways, hQ as CheckoutComPayments, hR as Cleanups, hS as CouponCodesPromotionRules, hT as CouponRecipients, hU as Coupons, hn as CreatableResource, hm as CreatableResourceType, hV as CustomPromotionRules, hW as CustomerAddresses, hX as CustomerGroups, hY as CustomerPasswordResets, hZ as CustomerPaymentSources, h_ as CustomerSubscriptions, h$ as Customers, hr as DeletableResource, hq as DeletableResourceType, i0 as DeliveryLeadTimes, i1 as DiscountEngineItems, i2 as DiscountEngines, i3 as EasypostPickups, i4 as EventCallbacks, i5 as Events, i6 as Exports, i7 as ExternalGateways, i8 as ExternalPayments, i9 as ExternalPromotions, ia as ExternalTaxCalculators, ib as FixedAmountPromotions, ic as FixedPricePromotions, id as FlexPromotions, ie as FreeGiftPromotions, ig as FreeShippingPromotions, ih as Geocoders, ii as GiftCardRecipients, ij as GiftCards, ik as GoogleGeocoders, il as Imports, im as InStockSubscriptions, io as InventoryModels, ip as InventoryReturnLocations, iq as InventoryStockLocations, ir as KlarnaGateways, is as KlarnaPayments, it as LineItemOptions, iu as LineItems, iv as Links, hl as ListableResource, hk as ListableResourceType, iw as ManualGateways, ix as ManualTaxCalculators, iy as Markets, iz as Merchants, iA as Notifications, iB as OrderAmountPromotionRules, iC as OrderCopies, iD as OrderFactories, iE as OrderSubscriptionItems, iF as OrderSubscriptions, iG as Orders, iH as Organizations, iI as Packages, iJ as ParcelLineItems, iK as Parcels, iL as PaymentGateways, iM as PaymentMethods, iN as PaymentOptions, iO as PaypalGateways, iP as PaypalPayments, iQ as PercentageDiscountPromotions, iR as Pickups, iS as PriceFrequencyTiers, iT as PriceListSchedulers, iU as PriceLists, iV as PriceTiers, iW as PriceVolumeTiers, iX as Prices, iY as PromotionRules, iZ as Promotions, i_ as RecurringOrderCopies, i$ as Refunds, j0 as ReservedStocks, j1 as ResourceErrors, hw as ResourceFields, hx as ResourceSortFields, hf as ResourceTypeLock, hj as RetrievableResource, hi as RetrievableResourceType, j2 as ReturnLineItems, j3 as Returns, j4 as SatispayGateways, j5 as SatispayPayments, j6 as Shipments, j7 as ShippingCategories, j8 as ShippingMethodTiers, j9 as ShippingMethods, ja as ShippingWeightTiers, jb as ShippingZones, jc as SkuListItems, jd as SkuListPromotionRules, je as SkuLists, jf as SkuOptions, jg as Skus, jh as StockItems, ji as StockLineItems, jj as StockLocations, jk as StockReservations, jl as StockTransfers, jm as Stores, jn as StripeGateways, jo as StripePayments, jp as StripeTaxAccounts, jq as SubscriptionModels, ht as TaggableResource, hs as TaggableResourceType, jr as Tags, js as TalonOneAccounts, jt as TaxCalculators, ju as TaxCategories, jv as TaxRules, jw as TaxjarAccounts, jx as Transactions, hp as UpdatableResource, ho as UpdatableResourceType, hv as VersionableResource, hu as VersionableResourceType, jy as Versions, jz as VertexAccounts, jA as Voids, jB as Webhooks, jC as WireTransfers, hg as resourceList, hh as singletonList } from './api-Cknm0QL_.js';
1
+ export { j as CreatableResource, C as CreatableResourceType, l as DeletableResource, D as DeletableResourceType, i as ListableResource, L as ListableResourceType, o as ResourceFields, p as ResourceSortFields, f as ResourceTypeLock, h as RetrievableResource, g as RetrievableResourceType, m as TaggableResource, T as TaggableResourceType, k as UpdatableResource, U as UpdatableResourceType, n as VersionableResource, V as VersionableResourceType, q as addresses, t as adjustments, u as adyen_gateways, v as adyen_payments, w as application, x as attachments, y as authorizations, z as avalara_accounts, A as axerve_gateways, B as axerve_payments, E as bing_geocoders, F as braintree_gateways, G as braintree_payments, H as bundles, I as buy_x_pay_y_promotions, J as captures, K as carrier_accounts, M as checkout_com_gateways, N as checkout_com_payments, O as cleanups, P as coupon_codes_promotion_rules, Q as coupon_recipients, S as coupons, W as custom_promotion_rules, X as customer_addresses, Y as customer_groups, Z as customer_password_resets, _ as customer_payment_sources, $ as customer_subscriptions, a0 as customers, a1 as delivery_lead_times, a2 as discount_engine_items, a3 as discount_engines, a4 as easypost_pickups, a5 as event_callbacks, a6 as events, a7 as exports, a8 as external_gateways, a9 as external_payments, aa as external_promotions, ab as external_tax_calculators, ac as fixed_amount_promotions, ad as fixed_price_promotions, ae as flex_promotions, af as free_gift_promotions, ag as free_shipping_promotions, ah as geocoders, ai as gift_card_recipients, aj as gift_cards, ak as google_geocoders, al as imports, am as in_stock_subscriptions, an as inventory_models, ao as inventory_return_locations, ap as inventory_stock_locations, aq as klarna_gateways, ar as klarna_payments, as as line_item_options, at as line_items, au as links, av as manual_gateways, aw as manual_tax_calculators, ax as markets, ay as merchants, az as notifications, aA as order_amount_promotion_rules, aB as order_copies, aC as order_factories, aD as order_subscription_items, aE as order_subscriptions, aF as orders, aG as organization, aH as packages, aI as parcel_line_items, aJ as parcels, aK as payment_gateways, aL as payment_methods, aM as payment_options, aN as paypal_gateways, aO as paypal_payments, aP as percentage_discount_promotions, aQ as pickups, aR as price_frequency_tiers, aS as price_list_schedulers, aT as price_lists, aU as price_tiers, aV as price_volume_tiers, aW as prices, aX as promotion_rules, aY as promotions, aZ as recurring_order_copies, a_ as refunds, a$ as reserved_stocks, r as resourceList, b0 as resource_errors, b1 as return_line_items, b2 as returns, b3 as satispay_gateways, b4 as satispay_payments, b5 as shipments, b6 as shipping_categories, b7 as shipping_method_tiers, b8 as shipping_methods, b9 as shipping_weight_tiers, ba as shipping_zones, s as singletonList, bb as sku_list_items, bc as sku_list_promotion_rules, bd as sku_lists, be as sku_options, bf as skus, bg as stock_items, bh as stock_line_items, bi as stock_locations, bj as stock_reservations, bk as stock_transfers, bl as stores, bm as stripe_gateways, bn as stripe_payments, bo as stripe_tax_accounts, bp as subscription_models, bq as tags, br as talon_one_accounts, bs as tax_calculators, bt as tax_categories, bu as tax_rules, bv as taxjar_accounts, bw as transactions, bx as versions, by as vertex_accounts, bz as voids, bA as webhooks, bB as wire_transfers } from './api-C5qyxFpD.js';
2
2
  import './client.js';
3
- import './interceptor-5MISI1yn.js';
3
+ import './interceptor-D65i25Y7.js';
4
4
  import './types.js';
package/lib/api.js CHANGED
@@ -1,136 +1,137 @@
1
- export { default as Addresses } from './resources/addresses';
2
- export { default as Adjustments } from './resources/adjustments';
3
- export { default as AdyenGateways } from './resources/adyen_gateways';
4
- export { default as AdyenPayments } from './resources/adyen_payments';
5
- export { default as Applications } from './resources/applications';
6
- export { default as Attachments } from './resources/attachments';
7
- export { default as Authorizations } from './resources/authorizations';
8
- export { default as AvalaraAccounts } from './resources/avalara_accounts';
9
- export { default as AxerveGateways } from './resources/axerve_gateways';
10
- export { default as AxervePayments } from './resources/axerve_payments';
11
- export { default as BingGeocoders } from './resources/bing_geocoders';
12
- export { default as BraintreeGateways } from './resources/braintree_gateways';
13
- export { default as BraintreePayments } from './resources/braintree_payments';
14
- export { default as Bundles } from './resources/bundles';
15
- export { default as BuyXPayYPromotions } from './resources/buy_x_pay_y_promotions';
16
- export { default as Captures } from './resources/captures';
17
- export { default as CarrierAccounts } from './resources/carrier_accounts';
18
- export { default as CheckoutComGateways } from './resources/checkout_com_gateways';
19
- export { default as CheckoutComPayments } from './resources/checkout_com_payments';
20
- export { default as Cleanups } from './resources/cleanups';
21
- export { default as CouponCodesPromotionRules } from './resources/coupon_codes_promotion_rules';
22
- export { default as CouponRecipients } from './resources/coupon_recipients';
23
- export { default as Coupons } from './resources/coupons';
24
- export { default as CustomPromotionRules } from './resources/custom_promotion_rules';
25
- export { default as CustomerAddresses } from './resources/customer_addresses';
26
- export { default as CustomerGroups } from './resources/customer_groups';
27
- export { default as CustomerPasswordResets } from './resources/customer_password_resets';
28
- export { default as CustomerPaymentSources } from './resources/customer_payment_sources';
29
- export { default as CustomerSubscriptions } from './resources/customer_subscriptions';
30
- export { default as Customers } from './resources/customers';
31
- export { default as DeliveryLeadTimes } from './resources/delivery_lead_times';
32
- export { default as DiscountEngineItems } from './resources/discount_engine_items';
33
- export { default as DiscountEngines } from './resources/discount_engines';
34
- export { default as EasypostPickups } from './resources/easypost_pickups';
35
- export { default as EventCallbacks } from './resources/event_callbacks';
36
- export { default as Events } from './resources/events';
37
- export { default as Exports } from './resources/exports';
38
- export { default as ExternalGateways } from './resources/external_gateways';
39
- export { default as ExternalPayments } from './resources/external_payments';
40
- export { default as ExternalPromotions } from './resources/external_promotions';
41
- export { default as ExternalTaxCalculators } from './resources/external_tax_calculators';
42
- export { default as FixedAmountPromotions } from './resources/fixed_amount_promotions';
43
- export { default as FixedPricePromotions } from './resources/fixed_price_promotions';
44
- export { default as FlexPromotions } from './resources/flex_promotions';
45
- export { default as FreeGiftPromotions } from './resources/free_gift_promotions';
46
- export { default as FreeShippingPromotions } from './resources/free_shipping_promotions';
47
- export { default as Geocoders } from './resources/geocoders';
48
- export { default as GiftCardRecipients } from './resources/gift_card_recipients';
49
- export { default as GiftCards } from './resources/gift_cards';
50
- export { default as GoogleGeocoders } from './resources/google_geocoders';
51
- export { default as Imports } from './resources/imports';
52
- export { default as InStockSubscriptions } from './resources/in_stock_subscriptions';
53
- export { default as InventoryModels } from './resources/inventory_models';
54
- export { default as InventoryReturnLocations } from './resources/inventory_return_locations';
55
- export { default as InventoryStockLocations } from './resources/inventory_stock_locations';
56
- export { default as KlarnaGateways } from './resources/klarna_gateways';
57
- export { default as KlarnaPayments } from './resources/klarna_payments';
58
- export { default as LineItemOptions } from './resources/line_item_options';
59
- export { default as LineItems } from './resources/line_items';
60
- export { default as Links } from './resources/links';
61
- export { default as ManualGateways } from './resources/manual_gateways';
62
- export { default as ManualTaxCalculators } from './resources/manual_tax_calculators';
63
- export { default as Markets } from './resources/markets';
64
- export { default as Merchants } from './resources/merchants';
65
- export { default as Notifications } from './resources/notifications';
66
- export { default as OrderAmountPromotionRules } from './resources/order_amount_promotion_rules';
67
- export { default as OrderCopies } from './resources/order_copies';
68
- export { default as OrderFactories } from './resources/order_factories';
69
- export { default as OrderSubscriptionItems } from './resources/order_subscription_items';
70
- export { default as OrderSubscriptions } from './resources/order_subscriptions';
71
- export { default as Orders } from './resources/orders';
72
- export { default as Organizations } from './resources/organizations';
73
- export { default as Packages } from './resources/packages';
74
- export { default as ParcelLineItems } from './resources/parcel_line_items';
75
- export { default as Parcels } from './resources/parcels';
76
- export { default as PaymentGateways } from './resources/payment_gateways';
77
- export { default as PaymentMethods } from './resources/payment_methods';
78
- export { default as PaymentOptions } from './resources/payment_options';
79
- export { default as PaypalGateways } from './resources/paypal_gateways';
80
- export { default as PaypalPayments } from './resources/paypal_payments';
81
- export { default as PercentageDiscountPromotions } from './resources/percentage_discount_promotions';
82
- export { default as Pickups } from './resources/pickups';
83
- export { default as PriceFrequencyTiers } from './resources/price_frequency_tiers';
84
- export { default as PriceListSchedulers } from './resources/price_list_schedulers';
85
- export { default as PriceLists } from './resources/price_lists';
86
- export { default as PriceTiers } from './resources/price_tiers';
87
- export { default as PriceVolumeTiers } from './resources/price_volume_tiers';
88
- export { default as Prices } from './resources/prices';
89
- export { default as PromotionRules } from './resources/promotion_rules';
90
- export { default as Promotions } from './resources/promotions';
91
- export { default as RecurringOrderCopies } from './resources/recurring_order_copies';
92
- export { default as Refunds } from './resources/refunds';
93
- export { default as ReservedStocks } from './resources/reserved_stocks';
94
- export { default as ResourceErrors } from './resources/resource_errors';
95
- export { default as ReturnLineItems } from './resources/return_line_items';
96
- export { default as Returns } from './resources/returns';
97
- export { default as SatispayGateways } from './resources/satispay_gateways';
98
- export { default as SatispayPayments } from './resources/satispay_payments';
99
- export { default as Shipments } from './resources/shipments';
100
- export { default as ShippingCategories } from './resources/shipping_categories';
101
- export { default as ShippingMethodTiers } from './resources/shipping_method_tiers';
102
- export { default as ShippingMethods } from './resources/shipping_methods';
103
- export { default as ShippingWeightTiers } from './resources/shipping_weight_tiers';
104
- export { default as ShippingZones } from './resources/shipping_zones';
105
- export { default as SkuListItems } from './resources/sku_list_items';
106
- export { default as SkuListPromotionRules } from './resources/sku_list_promotion_rules';
107
- export { default as SkuLists } from './resources/sku_lists';
108
- export { default as SkuOptions } from './resources/sku_options';
109
- export { default as Skus } from './resources/skus';
110
- export { default as StockItems } from './resources/stock_items';
111
- export { default as StockLineItems } from './resources/stock_line_items';
112
- export { default as StockLocations } from './resources/stock_locations';
113
- export { default as StockReservations } from './resources/stock_reservations';
114
- export { default as StockTransfers } from './resources/stock_transfers';
115
- export { default as Stores } from './resources/stores';
116
- export { default as StripeGateways } from './resources/stripe_gateways';
117
- export { default as StripePayments } from './resources/stripe_payments';
118
- export { default as StripeTaxAccounts } from './resources/stripe_tax_accounts';
119
- export { default as SubscriptionModels } from './resources/subscription_models';
120
- export { default as Tags } from './resources/tags';
121
- export { default as TalonOneAccounts } from './resources/talon_one_accounts';
122
- export { default as TaxCalculators } from './resources/tax_calculators';
123
- export { default as TaxCategories } from './resources/tax_categories';
124
- export { default as TaxRules } from './resources/tax_rules';
125
- export { default as TaxjarAccounts } from './resources/taxjar_accounts';
126
- export { default as Transactions } from './resources/transactions';
127
- export { default as Versions } from './resources/versions';
128
- export { default as VertexAccounts } from './resources/vertex_accounts';
129
- export { default as Voids } from './resources/voids';
130
- export { default as Webhooks } from './resources/webhooks';
131
- export { default as WireTransfers } from './resources/wire_transfers';
1
+ import './chunk-AQ5VUG5P.js';
2
+ export { default as addresses } from './resources/addresses';
3
+ export { default as adjustments } from './resources/adjustments';
4
+ export { default as adyen_gateways } from './resources/adyen_gateways';
5
+ export { default as adyen_payments } from './resources/adyen_payments';
6
+ export { default as application } from './resources/applications';
7
+ export { default as attachments } from './resources/attachments';
8
+ export { default as authorizations } from './resources/authorizations';
9
+ export { default as avalara_accounts } from './resources/avalara_accounts';
10
+ export { default as axerve_gateways } from './resources/axerve_gateways';
11
+ export { default as axerve_payments } from './resources/axerve_payments';
12
+ export { default as bing_geocoders } from './resources/bing_geocoders';
13
+ export { default as braintree_gateways } from './resources/braintree_gateways';
14
+ export { default as braintree_payments } from './resources/braintree_payments';
15
+ export { default as bundles } from './resources/bundles';
16
+ export { default as buy_x_pay_y_promotions } from './resources/buy_x_pay_y_promotions';
17
+ export { default as captures } from './resources/captures';
18
+ export { default as carrier_accounts } from './resources/carrier_accounts';
19
+ export { default as checkout_com_gateways } from './resources/checkout_com_gateways';
20
+ export { default as checkout_com_payments } from './resources/checkout_com_payments';
21
+ export { default as cleanups } from './resources/cleanups';
22
+ export { default as coupon_codes_promotion_rules } from './resources/coupon_codes_promotion_rules';
23
+ export { default as coupon_recipients } from './resources/coupon_recipients';
24
+ export { default as coupons } from './resources/coupons';
25
+ export { default as custom_promotion_rules } from './resources/custom_promotion_rules';
26
+ export { default as customer_addresses } from './resources/customer_addresses';
27
+ export { default as customer_groups } from './resources/customer_groups';
28
+ export { default as customer_password_resets } from './resources/customer_password_resets';
29
+ export { default as customer_payment_sources } from './resources/customer_payment_sources';
30
+ export { default as customer_subscriptions } from './resources/customer_subscriptions';
31
+ export { default as customers } from './resources/customers';
32
+ export { default as delivery_lead_times } from './resources/delivery_lead_times';
33
+ export { default as discount_engine_items } from './resources/discount_engine_items';
34
+ export { default as discount_engines } from './resources/discount_engines';
35
+ export { default as easypost_pickups } from './resources/easypost_pickups';
36
+ export { default as event_callbacks } from './resources/event_callbacks';
37
+ export { default as events } from './resources/events';
38
+ export { default as exports } from './resources/exports';
39
+ export { default as external_gateways } from './resources/external_gateways';
40
+ export { default as external_payments } from './resources/external_payments';
41
+ export { default as external_promotions } from './resources/external_promotions';
42
+ export { default as external_tax_calculators } from './resources/external_tax_calculators';
43
+ export { default as fixed_amount_promotions } from './resources/fixed_amount_promotions';
44
+ export { default as fixed_price_promotions } from './resources/fixed_price_promotions';
45
+ export { default as flex_promotions } from './resources/flex_promotions';
46
+ export { default as free_gift_promotions } from './resources/free_gift_promotions';
47
+ export { default as free_shipping_promotions } from './resources/free_shipping_promotions';
48
+ export { default as geocoders } from './resources/geocoders';
49
+ export { default as gift_card_recipients } from './resources/gift_card_recipients';
50
+ export { default as gift_cards } from './resources/gift_cards';
51
+ export { default as google_geocoders } from './resources/google_geocoders';
52
+ export { default as imports } from './resources/imports';
53
+ export { default as in_stock_subscriptions } from './resources/in_stock_subscriptions';
54
+ export { default as inventory_models } from './resources/inventory_models';
55
+ export { default as inventory_return_locations } from './resources/inventory_return_locations';
56
+ export { default as inventory_stock_locations } from './resources/inventory_stock_locations';
57
+ export { default as klarna_gateways } from './resources/klarna_gateways';
58
+ export { default as klarna_payments } from './resources/klarna_payments';
59
+ export { default as line_item_options } from './resources/line_item_options';
60
+ export { default as line_items } from './resources/line_items';
61
+ export { default as links } from './resources/links';
62
+ export { default as manual_gateways } from './resources/manual_gateways';
63
+ export { default as manual_tax_calculators } from './resources/manual_tax_calculators';
64
+ export { default as markets } from './resources/markets';
65
+ export { default as merchants } from './resources/merchants';
66
+ export { default as notifications } from './resources/notifications';
67
+ export { default as order_amount_promotion_rules } from './resources/order_amount_promotion_rules';
68
+ export { default as order_copies } from './resources/order_copies';
69
+ export { default as order_factories } from './resources/order_factories';
70
+ export { default as order_subscription_items } from './resources/order_subscription_items';
71
+ export { default as order_subscriptions } from './resources/order_subscriptions';
72
+ export { default as orders } from './resources/orders';
73
+ export { default as organization } from './resources/organizations';
74
+ export { default as packages } from './resources/packages';
75
+ export { default as parcel_line_items } from './resources/parcel_line_items';
76
+ export { default as parcels } from './resources/parcels';
77
+ export { default as payment_gateways } from './resources/payment_gateways';
78
+ export { default as payment_methods } from './resources/payment_methods';
79
+ export { default as payment_options } from './resources/payment_options';
80
+ export { default as paypal_gateways } from './resources/paypal_gateways';
81
+ export { default as paypal_payments } from './resources/paypal_payments';
82
+ export { default as percentage_discount_promotions } from './resources/percentage_discount_promotions';
83
+ export { default as pickups } from './resources/pickups';
84
+ export { default as price_frequency_tiers } from './resources/price_frequency_tiers';
85
+ export { default as price_list_schedulers } from './resources/price_list_schedulers';
86
+ export { default as price_lists } from './resources/price_lists';
87
+ export { default as price_tiers } from './resources/price_tiers';
88
+ export { default as price_volume_tiers } from './resources/price_volume_tiers';
89
+ export { default as prices } from './resources/prices';
90
+ export { default as promotion_rules } from './resources/promotion_rules';
91
+ export { default as promotions } from './resources/promotions';
92
+ export { default as recurring_order_copies } from './resources/recurring_order_copies';
93
+ export { default as refunds } from './resources/refunds';
94
+ export { default as reserved_stocks } from './resources/reserved_stocks';
95
+ export { default as resource_errors } from './resources/resource_errors';
96
+ export { default as return_line_items } from './resources/return_line_items';
97
+ export { default as returns } from './resources/returns';
98
+ export { default as satispay_gateways } from './resources/satispay_gateways';
99
+ export { default as satispay_payments } from './resources/satispay_payments';
100
+ export { default as shipments } from './resources/shipments';
101
+ export { default as shipping_categories } from './resources/shipping_categories';
102
+ export { default as shipping_method_tiers } from './resources/shipping_method_tiers';
103
+ export { default as shipping_methods } from './resources/shipping_methods';
104
+ export { default as shipping_weight_tiers } from './resources/shipping_weight_tiers';
105
+ export { default as shipping_zones } from './resources/shipping_zones';
106
+ export { default as sku_list_items } from './resources/sku_list_items';
107
+ export { default as sku_list_promotion_rules } from './resources/sku_list_promotion_rules';
108
+ export { default as sku_lists } from './resources/sku_lists';
109
+ export { default as sku_options } from './resources/sku_options';
110
+ export { default as skus } from './resources/skus';
111
+ export { default as stock_items } from './resources/stock_items';
112
+ export { default as stock_line_items } from './resources/stock_line_items';
113
+ export { default as stock_locations } from './resources/stock_locations';
114
+ export { default as stock_reservations } from './resources/stock_reservations';
115
+ export { default as stock_transfers } from './resources/stock_transfers';
116
+ export { default as stores } from './resources/stores';
117
+ export { default as stripe_gateways } from './resources/stripe_gateways';
118
+ export { default as stripe_payments } from './resources/stripe_payments';
119
+ export { default as stripe_tax_accounts } from './resources/stripe_tax_accounts';
120
+ export { default as subscription_models } from './resources/subscription_models';
121
+ export { default as tags } from './resources/tags';
122
+ export { default as talon_one_accounts } from './resources/talon_one_accounts';
123
+ export { default as tax_calculators } from './resources/tax_calculators';
124
+ export { default as tax_categories } from './resources/tax_categories';
125
+ export { default as tax_rules } from './resources/tax_rules';
126
+ export { default as taxjar_accounts } from './resources/taxjar_accounts';
127
+ export { default as transactions } from './resources/transactions';
128
+ export { default as versions } from './resources/versions';
129
+ export { default as vertex_accounts } from './resources/vertex_accounts';
130
+ export { default as voids } from './resources/voids';
131
+ export { default as webhooks } from './resources/webhooks';
132
+ export { default as wire_transfers } from './resources/wire_transfers';
132
133
 
133
- const resourceList = [
134
+ const apiResources = [
134
135
  // ##__API_RESOURCE_LIST_START__##
135
136
  "addresses",
136
137
  "adjustments",
@@ -265,6 +266,7 @@ const resourceList = [
265
266
  "wire_transfers"
266
267
  // ##__API_RESOURCE_LIST_STOP__##
267
268
  ];
269
+ const resourceList = apiResources;
268
270
  const singletonList = [
269
271
  // ##__API_RESOURCE_SINGLETON_START__##
270
272
  "applications",
@@ -0,0 +1,12 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __typeError = (msg) => {
3
+ throw TypeError(msg);
4
+ };
5
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
7
+ var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
8
+ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
9
+ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
10
+ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
11
+
12
+ export { __privateAdd, __privateGet, __privateSet, __publicField };
@@ -0,0 +1,17 @@
1
+ 'use strict';
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __typeError = (msg) => {
5
+ throw TypeError(msg);
6
+ };
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
9
+ var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
10
+ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
11
+ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
12
+ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
13
+
14
+ exports.__privateAdd = __privateAdd;
15
+ exports.__privateGet = __privateGet;
16
+ exports.__privateSet = __privateSet;
17
+ exports.__publicField = __publicField;
package/lib/client.cjs CHANGED
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ var chunkJE77HYXB_cjs = require('./chunk-JE77HYXB.cjs');
3
4
  var error = require('./error');
4
5
  var config = require('./config');
5
6
  var fetch = require('./fetch');
@@ -11,13 +12,6 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
11
12
  var config__default = /*#__PURE__*/_interopDefault(config);
12
13
  var Debug__default = /*#__PURE__*/_interopDefault(Debug);
13
14
 
14
- var __typeError = (msg) => {
15
- throw TypeError(msg);
16
- };
17
- var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
18
- var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
19
- var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
20
- var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), member.set(obj, value), value);
21
15
  var _baseUrl, _accessToken, _organization, _domain, _clientConfig, _interceptors;
22
16
  const debug = Debug__default.default("client");
23
17
  const baseURL = (organization, domain) => {
@@ -25,17 +19,17 @@ const baseURL = (organization, domain) => {
25
19
  };
26
20
  const _ApiClient = class _ApiClient {
27
21
  constructor(options) {
28
- __privateAdd(this, _baseUrl);
29
- __privateAdd(this, _accessToken);
30
- __privateAdd(this, _organization);
31
- __privateAdd(this, _domain);
32
- __privateAdd(this, _clientConfig);
33
- __privateAdd(this, _interceptors);
22
+ chunkJE77HYXB_cjs.__privateAdd(this, _baseUrl);
23
+ chunkJE77HYXB_cjs.__privateAdd(this, _accessToken);
24
+ chunkJE77HYXB_cjs.__privateAdd(this, _organization);
25
+ chunkJE77HYXB_cjs.__privateAdd(this, _domain);
26
+ chunkJE77HYXB_cjs.__privateAdd(this, _clientConfig);
27
+ chunkJE77HYXB_cjs.__privateAdd(this, _interceptors);
34
28
  debug("new client instance %O", options);
35
- __privateSet(this, _baseUrl, baseURL(options.organization ?? "", options.domain));
36
- __privateSet(this, _accessToken, options.accessToken);
37
- __privateSet(this, _organization, options.organization ?? "");
38
- __privateSet(this, _domain, options.domain);
29
+ chunkJE77HYXB_cjs.__privateSet(this, _baseUrl, baseURL(options.organization ?? "", options.domain));
30
+ chunkJE77HYXB_cjs.__privateSet(this, _accessToken, options.accessToken);
31
+ chunkJE77HYXB_cjs.__privateSet(this, _organization, options.organization ?? "");
32
+ chunkJE77HYXB_cjs.__privateSet(this, _domain, options.domain);
39
33
  const fetchConfig = {
40
34
  timeout: options.timeout || config__default.default.client.timeout,
41
35
  fetch: options.fetch,
@@ -46,13 +40,13 @@ const _ApiClient = class _ApiClient {
46
40
  ...customHeaders,
47
41
  "Accept": "application/vnd.api+json",
48
42
  "Content-Type": "application/vnd.api+json",
49
- "Authorization": "Bearer " + __privateGet(this, _accessToken)
43
+ "Authorization": "Bearer " + chunkJE77HYXB_cjs.__privateGet(this, _accessToken)
50
44
  };
51
45
  if (options.userAgent) headers["User-Agent"] = options.userAgent;
52
46
  fetchConfig.headers = headers;
53
- __privateSet(this, _clientConfig, fetchConfig);
47
+ chunkJE77HYXB_cjs.__privateSet(this, _clientConfig, fetchConfig);
54
48
  debug("fetch config: %O", fetchConfig);
55
- __privateSet(this, _interceptors, {});
49
+ chunkJE77HYXB_cjs.__privateSet(this, _interceptors, {});
56
50
  }
57
51
  static create(options) {
58
52
  if ((!options.organization || !options.domain) && options.accessToken) {
@@ -65,11 +59,11 @@ const _ApiClient = class _ApiClient {
65
59
  return new _ApiClient(options);
66
60
  }
67
61
  get interceptors() {
68
- return __privateGet(this, _interceptors);
62
+ return chunkJE77HYXB_cjs.__privateGet(this, _interceptors);
69
63
  }
70
64
  get requestHeaders() {
71
- if (!__privateGet(this, _clientConfig).headers) __privateGet(this, _clientConfig).headers = {};
72
- return __privateGet(this, _clientConfig).headers;
65
+ if (!chunkJE77HYXB_cjs.__privateGet(this, _clientConfig).headers) chunkJE77HYXB_cjs.__privateGet(this, _clientConfig).headers = {};
66
+ return chunkJE77HYXB_cjs.__privateGet(this, _clientConfig).headers;
73
67
  }
74
68
  /*
75
69
  set requestHeaders(headers: RequestHeaders) {
@@ -78,18 +72,18 @@ const _ApiClient = class _ApiClient {
78
72
  */
79
73
  config(config2) {
80
74
  debug("config %o", config2);
81
- const def = __privateGet(this, _clientConfig);
75
+ const def = chunkJE77HYXB_cjs.__privateGet(this, _clientConfig);
82
76
  if (!def.headers) def.headers = {};
83
77
  if (config2.timeout) def.timeout = config2.timeout;
84
78
  if (config2.userAgent) this.userAgent(config2.userAgent);
85
- if (config2.fetch) __privateGet(this, _clientConfig).fetch = config2.fetch;
86
- if (config2.refreshToken) __privateGet(this, _clientConfig).refreshToken = config2.refreshToken;
87
- if (config2.organization || config2.domain) __privateSet(this, _baseUrl, baseURL(config2.organization || __privateGet(this, _organization), config2.domain || __privateGet(this, _domain)));
88
- if (config2.organization) __privateSet(this, _organization, config2.organization);
89
- if (config2.domain) __privateSet(this, _domain, config2.domain);
79
+ if (config2.fetch) chunkJE77HYXB_cjs.__privateGet(this, _clientConfig).fetch = config2.fetch;
80
+ if (config2.refreshToken) chunkJE77HYXB_cjs.__privateGet(this, _clientConfig).refreshToken = config2.refreshToken;
81
+ if (config2.organization || config2.domain) chunkJE77HYXB_cjs.__privateSet(this, _baseUrl, baseURL(config2.organization || chunkJE77HYXB_cjs.__privateGet(this, _organization), config2.domain || chunkJE77HYXB_cjs.__privateGet(this, _domain)));
82
+ if (config2.organization) chunkJE77HYXB_cjs.__privateSet(this, _organization, config2.organization);
83
+ if (config2.domain) chunkJE77HYXB_cjs.__privateSet(this, _domain, config2.domain);
90
84
  if (config2.accessToken) {
91
- __privateSet(this, _accessToken, config2.accessToken);
92
- def.headers.Authorization = "Bearer " + __privateGet(this, _accessToken);
85
+ chunkJE77HYXB_cjs.__privateSet(this, _accessToken, config2.accessToken);
86
+ def.headers.Authorization = "Bearer " + chunkJE77HYXB_cjs.__privateGet(this, _accessToken);
93
87
  }
94
88
  if (config2.headers) def.headers = { ...def.headers, ...this.customHeaders(config2.headers) };
95
89
  return this;
@@ -101,14 +95,16 @@ const _ApiClient = class _ApiClient {
101
95
  async request(method, path, body, options) {
102
96
  debug("request %s %s, %O, %O", method, path, body || {}, options || {});
103
97
  if (options?.userAgent) debug("User-Agent header ignored in request config");
104
- const baseUrl = options?.organization ? baseURL(options.organization, options.domain) : __privateGet(this, _baseUrl);
98
+ const baseUrl = options?.organization ? baseURL(options.organization, options.domain) : chunkJE77HYXB_cjs.__privateGet(this, _baseUrl);
105
99
  const url = new URL(`${baseUrl}/${path}`);
106
100
  const bodyData = body ? JSON.stringify({ data: body }) : void 0;
107
101
  const headers = { ...this.requestHeaders, ...this.customHeaders(options?.headers) };
108
- const accessToken = options?.accessToken || __privateGet(this, _accessToken);
102
+ const accessToken = options?.accessToken || chunkJE77HYXB_cjs.__privateGet(this, _accessToken);
109
103
  if (accessToken) headers.Authorization = "Bearer " + accessToken;
104
+ const refreshToken = options?.refreshToken || chunkJE77HYXB_cjs.__privateGet(this, _clientConfig).refreshToken;
105
+ const fetchFunction = options?.fetch || chunkJE77HYXB_cjs.__privateGet(this, _clientConfig).fetch;
110
106
  const requestOptions = { method, body: bodyData, headers };
111
- const timeout = options?.timeout || __privateGet(this, _clientConfig).timeout;
107
+ const timeout = options?.timeout || chunkJE77HYXB_cjs.__privateGet(this, _clientConfig).timeout;
112
108
  if (timeout) {
113
109
  if (AbortSignal?.timeout) requestOptions.signal = AbortSignal.timeout(timeout);
114
110
  else debug("Timeout not set. Undefined function: %s", "AbortSignal.timeout");
@@ -118,14 +114,14 @@ const _ApiClient = class _ApiClient {
118
114
  });
119
115
  const clientOptions = {
120
116
  interceptors: this.interceptors,
121
- fetch: options?.fetch || __privateGet(this, _clientConfig).fetch
117
+ fetch: fetchFunction
122
118
  };
123
119
  try {
124
120
  return await fetch.fetchURL(url, requestOptions, clientOptions).catch((error$1) => error.handleError(error$1));
125
121
  } catch (err) {
126
- if (error.isExpiredTokenError(err) && __privateGet(this, _clientConfig).refreshToken && util.isTokenExpired(__privateGet(this, _accessToken))) {
122
+ if (error.isExpiredTokenError(err) && refreshToken && util.isTokenExpired(accessToken)) {
127
123
  debug("Access token has expired");
128
- const newAccessToken = await __privateGet(this, _clientConfig).refreshToken(__privateGet(this, _accessToken)).catch((e) => {
124
+ const newAccessToken = await refreshToken(chunkJE77HYXB_cjs.__privateGet(this, _accessToken)).catch((e) => {
129
125
  debug("Refresh token error: %s", e.message);
130
126
  const tokenError = new error.SdkError({ message: "Error refreshing access token", type: error.ErrorType.TOKEN_REFRESH });
131
127
  tokenError.source = e;
@@ -134,6 +130,7 @@ const _ApiClient = class _ApiClient {
134
130
  if (newAccessToken) {
135
131
  debug("Access token refreshed");
136
132
  this.config({ accessToken: newAccessToken });
133
+ chunkJE77HYXB_cjs.__privateSet(this, _accessToken, newAccessToken);
137
134
  if (requestOptions.headers) requestOptions.headers.Authorization = `Bearer ${newAccessToken}`;
138
135
  const response = await fetch.fetchURL(url, requestOptions, clientOptions).catch((error$1) => error.handleError(error$1));
139
136
  return response;
@@ -150,10 +147,10 @@ const _ApiClient = class _ApiClient {
150
147
  return customHeaders;
151
148
  }
152
149
  get currentAccessToken() {
153
- return __privateGet(this, _accessToken);
150
+ return chunkJE77HYXB_cjs.__privateGet(this, _accessToken);
154
151
  }
155
152
  get currentOrganization() {
156
- return __privateGet(this, _organization);
153
+ return chunkJE77HYXB_cjs.__privateGet(this, _organization);
157
154
  }
158
155
  };
159
156
  _baseUrl = new WeakMap();
package/lib/client.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { F as Fetch, f as InterceptorManager, g as FetchResponse } from './interceptor-5MISI1yn.cjs';
1
+ import { F as Fetch, c as InterceptorManager, d as FetchResponse } from './interceptor-D65i25Y7.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 './interceptor-5MISI1yn.js';
1
+ import { F as Fetch, c as InterceptorManager, d as FetchResponse } from './interceptor-D65i25Y7.js';
2
2
 
3
3
  type RequestParams = Record<string, string | number | boolean>;
4
4
  type RequestHeaders = Record<string, string>;