@commercelayer/sdk 7.0.0-beta.10 → 7.0.0-beta.12

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 (589) hide show
  1. package/lib/{api-Cknm0QL_.d.ts → api-C0JL7qFH.d.ts} +414 -39
  2. package/lib/{api-BYcswOJ0.d.cts → api-CB5Dy3ZC.d.cts} +414 -39
  3. package/lib/api.cjs +132 -131
  4. package/lib/api.d.cts +2 -2
  5. package/lib/api.d.ts +2 -2
  6. package/lib/api.js +132 -131
  7. package/lib/chunk-AQ5VUG5P.js +12 -0
  8. package/lib/chunk-JE77HYXB.cjs +17 -0
  9. package/lib/client.cjs +33 -39
  10. package/lib/client.d.cts +1 -1
  11. package/lib/client.d.ts +1 -1
  12. package/lib/client.js +1 -7
  13. package/lib/commercelayer.cjs +17 -700
  14. package/lib/commercelayer.d.cts +5 -135
  15. package/lib/commercelayer.d.ts +5 -135
  16. package/lib/commercelayer.js +11 -674
  17. package/lib/common.cjs +1 -0
  18. package/lib/common.d.cts +2 -2
  19. package/lib/common.d.ts +2 -2
  20. package/lib/common.js +1 -0
  21. package/lib/config.cjs +2 -0
  22. package/lib/config.d.cts +1 -1
  23. package/lib/config.d.ts +1 -1
  24. package/lib/config.js +2 -0
  25. package/lib/debug.cjs +2 -0
  26. package/lib/debug.js +2 -0
  27. package/lib/error.cjs +9 -11
  28. package/lib/error.js +1 -3
  29. package/lib/fetch.cjs +14 -23
  30. package/lib/fetch.d.cts +1 -1
  31. package/lib/fetch.d.ts +1 -1
  32. package/lib/fetch.js +1 -10
  33. package/lib/index.cjs +4 -3
  34. package/lib/index.d.cts +2 -3
  35. package/lib/index.d.ts +2 -3
  36. package/lib/index.js +2 -1
  37. package/lib/{interceptor-5MISI1yn.d.cts → interceptor-D65i25Y7.d.cts} +1 -1
  38. package/lib/{interceptor-5MISI1yn.d.ts → interceptor-D65i25Y7.d.ts} +1 -1
  39. package/lib/interceptor.d.cts +1 -1
  40. package/lib/interceptor.d.ts +1 -1
  41. package/lib/jsonapi.cjs +1 -0
  42. package/lib/jsonapi.d.cts +2 -2
  43. package/lib/jsonapi.d.ts +2 -2
  44. package/lib/jsonapi.js +1 -0
  45. package/lib/model.d.cts +2 -2
  46. package/lib/model.d.ts +2 -2
  47. package/lib/query.cjs +1 -0
  48. package/lib/query.d.cts +2 -2
  49. package/lib/query.d.ts +2 -2
  50. package/lib/query.js +1 -0
  51. package/lib/resource.cjs +22 -29
  52. package/lib/resource.d.cts +2 -2
  53. package/lib/resource.d.ts +2 -2
  54. package/lib/resource.js +4 -11
  55. package/lib/resources/addresses.cjs +10 -5
  56. package/lib/resources/addresses.d.cts +2 -2
  57. package/lib/resources/addresses.d.ts +2 -2
  58. package/lib/resources/addresses.js +9 -4
  59. package/lib/resources/adjustments.cjs +4 -5
  60. package/lib/resources/adjustments.d.cts +2 -2
  61. package/lib/resources/adjustments.d.ts +2 -2
  62. package/lib/resources/adjustments.js +3 -4
  63. package/lib/resources/adyen_gateways.cjs +4 -5
  64. package/lib/resources/adyen_gateways.d.cts +2 -2
  65. package/lib/resources/adyen_gateways.d.ts +2 -2
  66. package/lib/resources/adyen_gateways.js +3 -4
  67. package/lib/resources/adyen_payments.cjs +4 -5
  68. package/lib/resources/adyen_payments.d.cts +2 -2
  69. package/lib/resources/adyen_payments.d.ts +2 -2
  70. package/lib/resources/adyen_payments.js +3 -4
  71. package/lib/resources/applications.cjs +4 -5
  72. package/lib/resources/applications.d.cts +2 -2
  73. package/lib/resources/applications.d.ts +2 -2
  74. package/lib/resources/applications.js +3 -4
  75. package/lib/resources/attachments.cjs +4 -5
  76. package/lib/resources/attachments.d.cts +2 -2
  77. package/lib/resources/attachments.d.ts +2 -2
  78. package/lib/resources/attachments.js +3 -4
  79. package/lib/resources/authorizations.cjs +4 -5
  80. package/lib/resources/authorizations.d.cts +2 -2
  81. package/lib/resources/authorizations.d.ts +2 -2
  82. package/lib/resources/authorizations.js +3 -4
  83. package/lib/resources/avalara_accounts.cjs +4 -5
  84. package/lib/resources/avalara_accounts.d.cts +2 -2
  85. package/lib/resources/avalara_accounts.d.ts +2 -2
  86. package/lib/resources/avalara_accounts.js +3 -4
  87. package/lib/resources/axerve_gateways.cjs +4 -5
  88. package/lib/resources/axerve_gateways.d.cts +2 -2
  89. package/lib/resources/axerve_gateways.d.ts +2 -2
  90. package/lib/resources/axerve_gateways.js +3 -4
  91. package/lib/resources/axerve_payments.cjs +4 -5
  92. package/lib/resources/axerve_payments.d.cts +2 -2
  93. package/lib/resources/axerve_payments.d.ts +2 -2
  94. package/lib/resources/axerve_payments.js +3 -4
  95. package/lib/resources/bing_geocoders.cjs +4 -5
  96. package/lib/resources/bing_geocoders.d.cts +2 -2
  97. package/lib/resources/bing_geocoders.d.ts +2 -2
  98. package/lib/resources/bing_geocoders.js +3 -4
  99. package/lib/resources/braintree_gateways.cjs +4 -5
  100. package/lib/resources/braintree_gateways.d.cts +2 -2
  101. package/lib/resources/braintree_gateways.d.ts +2 -2
  102. package/lib/resources/braintree_gateways.js +3 -4
  103. package/lib/resources/braintree_payments.cjs +4 -5
  104. package/lib/resources/braintree_payments.d.cts +2 -2
  105. package/lib/resources/braintree_payments.d.ts +2 -2
  106. package/lib/resources/braintree_payments.js +3 -4
  107. package/lib/resources/bundles.cjs +10 -5
  108. package/lib/resources/bundles.d.cts +2 -2
  109. package/lib/resources/bundles.d.ts +2 -2
  110. package/lib/resources/bundles.js +9 -4
  111. package/lib/resources/buy_x_pay_y_promotions.cjs +10 -5
  112. package/lib/resources/buy_x_pay_y_promotions.d.cts +2 -2
  113. package/lib/resources/buy_x_pay_y_promotions.d.ts +2 -2
  114. package/lib/resources/buy_x_pay_y_promotions.js +9 -4
  115. package/lib/resources/captures.cjs +4 -5
  116. package/lib/resources/captures.d.cts +2 -2
  117. package/lib/resources/captures.d.ts +2 -2
  118. package/lib/resources/captures.js +3 -4
  119. package/lib/resources/carrier_accounts.cjs +4 -5
  120. package/lib/resources/carrier_accounts.d.cts +2 -2
  121. package/lib/resources/carrier_accounts.d.ts +2 -2
  122. package/lib/resources/carrier_accounts.js +3 -4
  123. package/lib/resources/checkout_com_gateways.cjs +4 -5
  124. package/lib/resources/checkout_com_gateways.d.cts +2 -2
  125. package/lib/resources/checkout_com_gateways.d.ts +2 -2
  126. package/lib/resources/checkout_com_gateways.js +3 -4
  127. package/lib/resources/checkout_com_payments.cjs +4 -5
  128. package/lib/resources/checkout_com_payments.d.cts +2 -2
  129. package/lib/resources/checkout_com_payments.d.ts +2 -2
  130. package/lib/resources/checkout_com_payments.js +3 -4
  131. package/lib/resources/cleanups.cjs +4 -5
  132. package/lib/resources/cleanups.d.cts +2 -2
  133. package/lib/resources/cleanups.d.ts +2 -2
  134. package/lib/resources/cleanups.js +3 -4
  135. package/lib/resources/coupon_codes_promotion_rules.cjs +4 -5
  136. package/lib/resources/coupon_codes_promotion_rules.d.cts +2 -2
  137. package/lib/resources/coupon_codes_promotion_rules.d.ts +2 -2
  138. package/lib/resources/coupon_codes_promotion_rules.js +3 -4
  139. package/lib/resources/coupon_recipients.cjs +4 -5
  140. package/lib/resources/coupon_recipients.d.cts +2 -2
  141. package/lib/resources/coupon_recipients.d.ts +2 -2
  142. package/lib/resources/coupon_recipients.js +3 -4
  143. package/lib/resources/coupons.cjs +10 -5
  144. package/lib/resources/coupons.d.cts +2 -2
  145. package/lib/resources/coupons.d.ts +2 -2
  146. package/lib/resources/coupons.js +9 -4
  147. package/lib/resources/custom_promotion_rules.cjs +4 -5
  148. package/lib/resources/custom_promotion_rules.d.cts +2 -2
  149. package/lib/resources/custom_promotion_rules.d.ts +2 -2
  150. package/lib/resources/custom_promotion_rules.js +3 -4
  151. package/lib/resources/customer_addresses.cjs +4 -5
  152. package/lib/resources/customer_addresses.d.cts +2 -2
  153. package/lib/resources/customer_addresses.d.ts +2 -2
  154. package/lib/resources/customer_addresses.js +3 -4
  155. package/lib/resources/customer_groups.cjs +4 -5
  156. package/lib/resources/customer_groups.d.cts +2 -2
  157. package/lib/resources/customer_groups.d.ts +2 -2
  158. package/lib/resources/customer_groups.js +3 -4
  159. package/lib/resources/customer_password_resets.cjs +4 -5
  160. package/lib/resources/customer_password_resets.d.cts +2 -2
  161. package/lib/resources/customer_password_resets.d.ts +2 -2
  162. package/lib/resources/customer_password_resets.js +3 -4
  163. package/lib/resources/customer_payment_sources.cjs +4 -5
  164. package/lib/resources/customer_payment_sources.d.cts +2 -2
  165. package/lib/resources/customer_payment_sources.d.ts +2 -2
  166. package/lib/resources/customer_payment_sources.js +3 -4
  167. package/lib/resources/customer_subscriptions.cjs +4 -5
  168. package/lib/resources/customer_subscriptions.d.cts +2 -2
  169. package/lib/resources/customer_subscriptions.d.ts +2 -2
  170. package/lib/resources/customer_subscriptions.js +3 -4
  171. package/lib/resources/customers.cjs +10 -5
  172. package/lib/resources/customers.d.cts +2 -2
  173. package/lib/resources/customers.d.ts +2 -2
  174. package/lib/resources/customers.js +9 -4
  175. package/lib/resources/delivery_lead_times.cjs +4 -5
  176. package/lib/resources/delivery_lead_times.d.cts +2 -2
  177. package/lib/resources/delivery_lead_times.d.ts +2 -2
  178. package/lib/resources/delivery_lead_times.js +3 -4
  179. package/lib/resources/discount_engine_items.cjs +4 -5
  180. package/lib/resources/discount_engine_items.d.cts +2 -2
  181. package/lib/resources/discount_engine_items.d.ts +2 -2
  182. package/lib/resources/discount_engine_items.js +3 -4
  183. package/lib/resources/discount_engines.cjs +4 -5
  184. package/lib/resources/discount_engines.d.cts +2 -2
  185. package/lib/resources/discount_engines.d.ts +2 -2
  186. package/lib/resources/discount_engines.js +3 -4
  187. package/lib/resources/easypost_pickups.cjs +4 -5
  188. package/lib/resources/easypost_pickups.d.cts +2 -2
  189. package/lib/resources/easypost_pickups.d.ts +2 -2
  190. package/lib/resources/easypost_pickups.js +3 -4
  191. package/lib/resources/event_callbacks.cjs +4 -5
  192. package/lib/resources/event_callbacks.d.cts +2 -2
  193. package/lib/resources/event_callbacks.d.ts +2 -2
  194. package/lib/resources/event_callbacks.js +3 -4
  195. package/lib/resources/events.cjs +4 -5
  196. package/lib/resources/events.d.cts +2 -2
  197. package/lib/resources/events.d.ts +2 -2
  198. package/lib/resources/events.js +3 -4
  199. package/lib/resources/exports.cjs +4 -5
  200. package/lib/resources/exports.d.cts +2 -2
  201. package/lib/resources/exports.d.ts +2 -2
  202. package/lib/resources/exports.js +3 -4
  203. package/lib/resources/external_gateways.cjs +4 -5
  204. package/lib/resources/external_gateways.d.cts +2 -2
  205. package/lib/resources/external_gateways.d.ts +2 -2
  206. package/lib/resources/external_gateways.js +3 -4
  207. package/lib/resources/external_payments.cjs +4 -5
  208. package/lib/resources/external_payments.d.cts +2 -2
  209. package/lib/resources/external_payments.d.ts +2 -2
  210. package/lib/resources/external_payments.js +3 -4
  211. package/lib/resources/external_promotions.cjs +10 -5
  212. package/lib/resources/external_promotions.d.cts +2 -2
  213. package/lib/resources/external_promotions.d.ts +2 -2
  214. package/lib/resources/external_promotions.js +9 -4
  215. package/lib/resources/external_tax_calculators.cjs +4 -5
  216. package/lib/resources/external_tax_calculators.d.cts +2 -2
  217. package/lib/resources/external_tax_calculators.d.ts +2 -2
  218. package/lib/resources/external_tax_calculators.js +3 -4
  219. package/lib/resources/fixed_amount_promotions.cjs +10 -5
  220. package/lib/resources/fixed_amount_promotions.d.cts +2 -2
  221. package/lib/resources/fixed_amount_promotions.d.ts +2 -2
  222. package/lib/resources/fixed_amount_promotions.js +9 -4
  223. package/lib/resources/fixed_price_promotions.cjs +10 -5
  224. package/lib/resources/fixed_price_promotions.d.cts +2 -2
  225. package/lib/resources/fixed_price_promotions.d.ts +2 -2
  226. package/lib/resources/fixed_price_promotions.js +9 -4
  227. package/lib/resources/flex_promotions.cjs +10 -5
  228. package/lib/resources/flex_promotions.d.cts +2 -2
  229. package/lib/resources/flex_promotions.d.ts +2 -2
  230. package/lib/resources/flex_promotions.js +9 -4
  231. package/lib/resources/free_gift_promotions.cjs +10 -5
  232. package/lib/resources/free_gift_promotions.d.cts +2 -2
  233. package/lib/resources/free_gift_promotions.d.ts +2 -2
  234. package/lib/resources/free_gift_promotions.js +9 -4
  235. package/lib/resources/free_shipping_promotions.cjs +10 -5
  236. package/lib/resources/free_shipping_promotions.d.cts +2 -2
  237. package/lib/resources/free_shipping_promotions.d.ts +2 -2
  238. package/lib/resources/free_shipping_promotions.js +9 -4
  239. package/lib/resources/geocoders.cjs +4 -5
  240. package/lib/resources/geocoders.d.cts +2 -2
  241. package/lib/resources/geocoders.d.ts +2 -2
  242. package/lib/resources/geocoders.js +3 -4
  243. package/lib/resources/gift_card_recipients.cjs +4 -5
  244. package/lib/resources/gift_card_recipients.d.cts +2 -2
  245. package/lib/resources/gift_card_recipients.d.ts +2 -2
  246. package/lib/resources/gift_card_recipients.js +3 -4
  247. package/lib/resources/gift_cards.cjs +10 -5
  248. package/lib/resources/gift_cards.d.cts +2 -2
  249. package/lib/resources/gift_cards.d.ts +2 -2
  250. package/lib/resources/gift_cards.js +9 -4
  251. package/lib/resources/google_geocoders.cjs +4 -5
  252. package/lib/resources/google_geocoders.d.cts +2 -2
  253. package/lib/resources/google_geocoders.d.ts +2 -2
  254. package/lib/resources/google_geocoders.js +3 -4
  255. package/lib/resources/imports.cjs +4 -5
  256. package/lib/resources/imports.d.cts +2 -2
  257. package/lib/resources/imports.d.ts +2 -2
  258. package/lib/resources/imports.js +3 -4
  259. package/lib/resources/in_stock_subscriptions.cjs +4 -5
  260. package/lib/resources/in_stock_subscriptions.d.cts +2 -2
  261. package/lib/resources/in_stock_subscriptions.d.ts +2 -2
  262. package/lib/resources/in_stock_subscriptions.js +3 -4
  263. package/lib/resources/inventory_models.cjs +4 -5
  264. package/lib/resources/inventory_models.d.cts +2 -2
  265. package/lib/resources/inventory_models.d.ts +2 -2
  266. package/lib/resources/inventory_models.js +3 -4
  267. package/lib/resources/inventory_return_locations.cjs +4 -5
  268. package/lib/resources/inventory_return_locations.d.cts +2 -2
  269. package/lib/resources/inventory_return_locations.d.ts +2 -2
  270. package/lib/resources/inventory_return_locations.js +3 -4
  271. package/lib/resources/inventory_stock_locations.cjs +4 -5
  272. package/lib/resources/inventory_stock_locations.d.cts +2 -2
  273. package/lib/resources/inventory_stock_locations.d.ts +2 -2
  274. package/lib/resources/inventory_stock_locations.js +3 -4
  275. package/lib/resources/klarna_gateways.cjs +4 -5
  276. package/lib/resources/klarna_gateways.d.cts +2 -2
  277. package/lib/resources/klarna_gateways.d.ts +2 -2
  278. package/lib/resources/klarna_gateways.js +3 -4
  279. package/lib/resources/klarna_payments.cjs +4 -5
  280. package/lib/resources/klarna_payments.d.cts +2 -2
  281. package/lib/resources/klarna_payments.d.ts +2 -2
  282. package/lib/resources/klarna_payments.js +3 -4
  283. package/lib/resources/line_item_options.cjs +10 -5
  284. package/lib/resources/line_item_options.d.cts +2 -2
  285. package/lib/resources/line_item_options.d.ts +2 -2
  286. package/lib/resources/line_item_options.js +9 -4
  287. package/lib/resources/line_items.cjs +10 -5
  288. package/lib/resources/line_items.d.cts +2 -2
  289. package/lib/resources/line_items.d.ts +2 -2
  290. package/lib/resources/line_items.js +9 -4
  291. package/lib/resources/links.cjs +4 -5
  292. package/lib/resources/links.d.cts +2 -2
  293. package/lib/resources/links.d.ts +2 -2
  294. package/lib/resources/links.js +3 -4
  295. package/lib/resources/manual_gateways.cjs +4 -5
  296. package/lib/resources/manual_gateways.d.cts +2 -2
  297. package/lib/resources/manual_gateways.d.ts +2 -2
  298. package/lib/resources/manual_gateways.js +3 -4
  299. package/lib/resources/manual_tax_calculators.cjs +4 -5
  300. package/lib/resources/manual_tax_calculators.d.cts +2 -2
  301. package/lib/resources/manual_tax_calculators.d.ts +2 -2
  302. package/lib/resources/manual_tax_calculators.js +3 -4
  303. package/lib/resources/markets.cjs +12 -5
  304. package/lib/resources/markets.d.cts +2 -2
  305. package/lib/resources/markets.d.ts +2 -2
  306. package/lib/resources/markets.js +11 -4
  307. package/lib/resources/merchants.cjs +4 -5
  308. package/lib/resources/merchants.d.cts +2 -2
  309. package/lib/resources/merchants.d.ts +2 -2
  310. package/lib/resources/merchants.js +3 -4
  311. package/lib/resources/notifications.cjs +4 -5
  312. package/lib/resources/notifications.d.cts +2 -2
  313. package/lib/resources/notifications.d.ts +2 -2
  314. package/lib/resources/notifications.js +3 -4
  315. package/lib/resources/order_amount_promotion_rules.cjs +4 -5
  316. package/lib/resources/order_amount_promotion_rules.d.cts +2 -2
  317. package/lib/resources/order_amount_promotion_rules.d.ts +2 -2
  318. package/lib/resources/order_amount_promotion_rules.js +3 -4
  319. package/lib/resources/order_copies.cjs +4 -5
  320. package/lib/resources/order_copies.d.cts +2 -2
  321. package/lib/resources/order_copies.d.ts +2 -2
  322. package/lib/resources/order_copies.js +3 -4
  323. package/lib/resources/order_factories.cjs +4 -5
  324. package/lib/resources/order_factories.d.cts +2 -2
  325. package/lib/resources/order_factories.d.ts +2 -2
  326. package/lib/resources/order_factories.js +3 -4
  327. package/lib/resources/order_subscription_items.cjs +4 -5
  328. package/lib/resources/order_subscription_items.d.cts +2 -2
  329. package/lib/resources/order_subscription_items.d.ts +2 -2
  330. package/lib/resources/order_subscription_items.js +3 -4
  331. package/lib/resources/order_subscriptions.cjs +10 -5
  332. package/lib/resources/order_subscriptions.d.cts +2 -2
  333. package/lib/resources/order_subscriptions.d.ts +2 -2
  334. package/lib/resources/order_subscriptions.js +9 -4
  335. package/lib/resources/orders.cjs +18 -5
  336. package/lib/resources/orders.d.cts +2 -2
  337. package/lib/resources/orders.d.ts +2 -2
  338. package/lib/resources/orders.js +17 -4
  339. package/lib/resources/organizations.cjs +4 -5
  340. package/lib/resources/organizations.d.cts +2 -2
  341. package/lib/resources/organizations.d.ts +2 -2
  342. package/lib/resources/organizations.js +3 -4
  343. package/lib/resources/packages.cjs +4 -5
  344. package/lib/resources/packages.d.cts +2 -2
  345. package/lib/resources/packages.d.ts +2 -2
  346. package/lib/resources/packages.js +3 -4
  347. package/lib/resources/parcel_line_items.cjs +4 -5
  348. package/lib/resources/parcel_line_items.d.cts +2 -2
  349. package/lib/resources/parcel_line_items.d.ts +2 -2
  350. package/lib/resources/parcel_line_items.js +3 -4
  351. package/lib/resources/parcels.cjs +4 -5
  352. package/lib/resources/parcels.d.cts +2 -2
  353. package/lib/resources/parcels.d.ts +2 -2
  354. package/lib/resources/parcels.js +3 -4
  355. package/lib/resources/payment_gateways.cjs +4 -5
  356. package/lib/resources/payment_gateways.d.cts +2 -2
  357. package/lib/resources/payment_gateways.d.ts +2 -2
  358. package/lib/resources/payment_gateways.js +3 -4
  359. package/lib/resources/payment_methods.cjs +4 -5
  360. package/lib/resources/payment_methods.d.cts +2 -2
  361. package/lib/resources/payment_methods.d.ts +2 -2
  362. package/lib/resources/payment_methods.js +3 -4
  363. package/lib/resources/payment_options.cjs +4 -5
  364. package/lib/resources/payment_options.d.cts +2 -2
  365. package/lib/resources/payment_options.d.ts +2 -2
  366. package/lib/resources/payment_options.js +3 -4
  367. package/lib/resources/paypal_gateways.cjs +4 -5
  368. package/lib/resources/paypal_gateways.d.cts +2 -2
  369. package/lib/resources/paypal_gateways.d.ts +2 -2
  370. package/lib/resources/paypal_gateways.js +3 -4
  371. package/lib/resources/paypal_payments.cjs +4 -5
  372. package/lib/resources/paypal_payments.d.cts +2 -2
  373. package/lib/resources/paypal_payments.d.ts +2 -2
  374. package/lib/resources/paypal_payments.js +3 -4
  375. package/lib/resources/percentage_discount_promotions.cjs +10 -5
  376. package/lib/resources/percentage_discount_promotions.d.cts +2 -2
  377. package/lib/resources/percentage_discount_promotions.d.ts +2 -2
  378. package/lib/resources/percentage_discount_promotions.js +9 -4
  379. package/lib/resources/pickups.cjs +4 -5
  380. package/lib/resources/pickups.d.cts +2 -2
  381. package/lib/resources/pickups.d.ts +2 -2
  382. package/lib/resources/pickups.js +3 -4
  383. package/lib/resources/price_frequency_tiers.cjs +4 -5
  384. package/lib/resources/price_frequency_tiers.d.cts +2 -2
  385. package/lib/resources/price_frequency_tiers.d.ts +2 -2
  386. package/lib/resources/price_frequency_tiers.js +3 -4
  387. package/lib/resources/price_list_schedulers.cjs +4 -5
  388. package/lib/resources/price_list_schedulers.d.cts +2 -2
  389. package/lib/resources/price_list_schedulers.d.ts +2 -2
  390. package/lib/resources/price_list_schedulers.js +3 -4
  391. package/lib/resources/price_lists.cjs +4 -5
  392. package/lib/resources/price_lists.d.cts +2 -2
  393. package/lib/resources/price_lists.d.ts +2 -2
  394. package/lib/resources/price_lists.js +3 -4
  395. package/lib/resources/price_tiers.cjs +4 -5
  396. package/lib/resources/price_tiers.d.cts +2 -2
  397. package/lib/resources/price_tiers.d.ts +2 -2
  398. package/lib/resources/price_tiers.js +3 -4
  399. package/lib/resources/price_volume_tiers.cjs +4 -5
  400. package/lib/resources/price_volume_tiers.d.cts +2 -2
  401. package/lib/resources/price_volume_tiers.d.ts +2 -2
  402. package/lib/resources/price_volume_tiers.js +3 -4
  403. package/lib/resources/prices.cjs +4 -5
  404. package/lib/resources/prices.d.cts +2 -2
  405. package/lib/resources/prices.d.ts +2 -2
  406. package/lib/resources/prices.js +3 -4
  407. package/lib/resources/promotion_rules.cjs +4 -5
  408. package/lib/resources/promotion_rules.d.cts +2 -2
  409. package/lib/resources/promotion_rules.d.ts +2 -2
  410. package/lib/resources/promotion_rules.js +3 -4
  411. package/lib/resources/promotions.cjs +4 -5
  412. package/lib/resources/promotions.d.cts +2 -2
  413. package/lib/resources/promotions.d.ts +2 -2
  414. package/lib/resources/promotions.js +3 -4
  415. package/lib/resources/recurring_order_copies.cjs +4 -5
  416. package/lib/resources/recurring_order_copies.d.cts +2 -2
  417. package/lib/resources/recurring_order_copies.d.ts +2 -2
  418. package/lib/resources/recurring_order_copies.js +3 -4
  419. package/lib/resources/refunds.cjs +4 -5
  420. package/lib/resources/refunds.d.cts +2 -2
  421. package/lib/resources/refunds.d.ts +2 -2
  422. package/lib/resources/refunds.js +3 -4
  423. package/lib/resources/reserved_stocks.cjs +4 -5
  424. package/lib/resources/reserved_stocks.d.cts +2 -2
  425. package/lib/resources/reserved_stocks.d.ts +2 -2
  426. package/lib/resources/reserved_stocks.js +3 -4
  427. package/lib/resources/resource_errors.cjs +4 -5
  428. package/lib/resources/resource_errors.d.cts +2 -2
  429. package/lib/resources/resource_errors.d.ts +2 -2
  430. package/lib/resources/resource_errors.js +3 -4
  431. package/lib/resources/return_line_items.cjs +4 -5
  432. package/lib/resources/return_line_items.d.cts +2 -2
  433. package/lib/resources/return_line_items.d.ts +2 -2
  434. package/lib/resources/return_line_items.js +3 -4
  435. package/lib/resources/returns.cjs +10 -5
  436. package/lib/resources/returns.d.cts +2 -2
  437. package/lib/resources/returns.d.ts +2 -2
  438. package/lib/resources/returns.js +9 -4
  439. package/lib/resources/satispay_gateways.cjs +4 -5
  440. package/lib/resources/satispay_gateways.d.cts +2 -2
  441. package/lib/resources/satispay_gateways.d.ts +2 -2
  442. package/lib/resources/satispay_gateways.js +3 -4
  443. package/lib/resources/satispay_payments.cjs +4 -5
  444. package/lib/resources/satispay_payments.d.cts +2 -2
  445. package/lib/resources/satispay_payments.d.ts +2 -2
  446. package/lib/resources/satispay_payments.js +3 -4
  447. package/lib/resources/shipments.cjs +10 -5
  448. package/lib/resources/shipments.d.cts +2 -2
  449. package/lib/resources/shipments.d.ts +2 -2
  450. package/lib/resources/shipments.js +9 -4
  451. package/lib/resources/shipping_categories.cjs +4 -5
  452. package/lib/resources/shipping_categories.d.cts +2 -2
  453. package/lib/resources/shipping_categories.d.ts +2 -2
  454. package/lib/resources/shipping_categories.js +3 -4
  455. package/lib/resources/shipping_method_tiers.cjs +4 -5
  456. package/lib/resources/shipping_method_tiers.d.cts +2 -2
  457. package/lib/resources/shipping_method_tiers.d.ts +2 -2
  458. package/lib/resources/shipping_method_tiers.js +3 -4
  459. package/lib/resources/shipping_methods.cjs +4 -5
  460. package/lib/resources/shipping_methods.d.cts +2 -2
  461. package/lib/resources/shipping_methods.d.ts +2 -2
  462. package/lib/resources/shipping_methods.js +3 -4
  463. package/lib/resources/shipping_weight_tiers.cjs +4 -5
  464. package/lib/resources/shipping_weight_tiers.d.cts +2 -2
  465. package/lib/resources/shipping_weight_tiers.d.ts +2 -2
  466. package/lib/resources/shipping_weight_tiers.js +3 -4
  467. package/lib/resources/shipping_zones.cjs +4 -5
  468. package/lib/resources/shipping_zones.d.cts +2 -2
  469. package/lib/resources/shipping_zones.d.ts +2 -2
  470. package/lib/resources/shipping_zones.js +3 -4
  471. package/lib/resources/sku_list_items.cjs +4 -5
  472. package/lib/resources/sku_list_items.d.cts +2 -2
  473. package/lib/resources/sku_list_items.d.ts +2 -2
  474. package/lib/resources/sku_list_items.js +3 -4
  475. package/lib/resources/sku_list_promotion_rules.cjs +4 -5
  476. package/lib/resources/sku_list_promotion_rules.d.cts +2 -2
  477. package/lib/resources/sku_list_promotion_rules.d.ts +2 -2
  478. package/lib/resources/sku_list_promotion_rules.js +3 -4
  479. package/lib/resources/sku_lists.cjs +4 -5
  480. package/lib/resources/sku_lists.d.cts +2 -2
  481. package/lib/resources/sku_lists.d.ts +2 -2
  482. package/lib/resources/sku_lists.js +3 -4
  483. package/lib/resources/sku_options.cjs +10 -5
  484. package/lib/resources/sku_options.d.cts +2 -2
  485. package/lib/resources/sku_options.d.ts +2 -2
  486. package/lib/resources/sku_options.js +9 -4
  487. package/lib/resources/skus.cjs +10 -5
  488. package/lib/resources/skus.d.cts +2 -2
  489. package/lib/resources/skus.d.ts +2 -2
  490. package/lib/resources/skus.js +9 -4
  491. package/lib/resources/stock_items.cjs +4 -5
  492. package/lib/resources/stock_items.d.cts +2 -2
  493. package/lib/resources/stock_items.d.ts +2 -2
  494. package/lib/resources/stock_items.js +3 -4
  495. package/lib/resources/stock_line_items.cjs +4 -5
  496. package/lib/resources/stock_line_items.d.cts +2 -2
  497. package/lib/resources/stock_line_items.d.ts +2 -2
  498. package/lib/resources/stock_line_items.js +3 -4
  499. package/lib/resources/stock_locations.cjs +4 -5
  500. package/lib/resources/stock_locations.d.cts +2 -2
  501. package/lib/resources/stock_locations.d.ts +2 -2
  502. package/lib/resources/stock_locations.js +3 -4
  503. package/lib/resources/stock_reservations.cjs +4 -5
  504. package/lib/resources/stock_reservations.d.cts +2 -2
  505. package/lib/resources/stock_reservations.d.ts +2 -2
  506. package/lib/resources/stock_reservations.js +3 -4
  507. package/lib/resources/stock_transfers.cjs +4 -5
  508. package/lib/resources/stock_transfers.d.cts +2 -2
  509. package/lib/resources/stock_transfers.d.ts +2 -2
  510. package/lib/resources/stock_transfers.js +3 -4
  511. package/lib/resources/stores.cjs +4 -5
  512. package/lib/resources/stores.d.cts +2 -2
  513. package/lib/resources/stores.d.ts +2 -2
  514. package/lib/resources/stores.js +3 -4
  515. package/lib/resources/stripe_gateways.cjs +4 -5
  516. package/lib/resources/stripe_gateways.d.cts +2 -2
  517. package/lib/resources/stripe_gateways.d.ts +2 -2
  518. package/lib/resources/stripe_gateways.js +3 -4
  519. package/lib/resources/stripe_payments.cjs +4 -5
  520. package/lib/resources/stripe_payments.d.cts +2 -2
  521. package/lib/resources/stripe_payments.d.ts +2 -2
  522. package/lib/resources/stripe_payments.js +3 -4
  523. package/lib/resources/stripe_tax_accounts.cjs +4 -5
  524. package/lib/resources/stripe_tax_accounts.d.cts +2 -2
  525. package/lib/resources/stripe_tax_accounts.d.ts +2 -2
  526. package/lib/resources/stripe_tax_accounts.js +3 -4
  527. package/lib/resources/subscription_models.cjs +4 -5
  528. package/lib/resources/subscription_models.d.cts +2 -2
  529. package/lib/resources/subscription_models.d.ts +2 -2
  530. package/lib/resources/subscription_models.js +3 -4
  531. package/lib/resources/tags.cjs +4 -5
  532. package/lib/resources/tags.d.cts +2 -2
  533. package/lib/resources/tags.d.ts +2 -2
  534. package/lib/resources/tags.js +3 -4
  535. package/lib/resources/talon_one_accounts.cjs +4 -5
  536. package/lib/resources/talon_one_accounts.d.cts +2 -2
  537. package/lib/resources/talon_one_accounts.d.ts +2 -2
  538. package/lib/resources/talon_one_accounts.js +3 -4
  539. package/lib/resources/tax_calculators.cjs +4 -5
  540. package/lib/resources/tax_calculators.d.cts +2 -2
  541. package/lib/resources/tax_calculators.d.ts +2 -2
  542. package/lib/resources/tax_calculators.js +3 -4
  543. package/lib/resources/tax_categories.cjs +4 -5
  544. package/lib/resources/tax_categories.d.cts +2 -2
  545. package/lib/resources/tax_categories.d.ts +2 -2
  546. package/lib/resources/tax_categories.js +3 -4
  547. package/lib/resources/tax_rules.cjs +4 -5
  548. package/lib/resources/tax_rules.d.cts +2 -2
  549. package/lib/resources/tax_rules.d.ts +2 -2
  550. package/lib/resources/tax_rules.js +3 -4
  551. package/lib/resources/taxjar_accounts.cjs +4 -5
  552. package/lib/resources/taxjar_accounts.d.cts +2 -2
  553. package/lib/resources/taxjar_accounts.d.ts +2 -2
  554. package/lib/resources/taxjar_accounts.js +3 -4
  555. package/lib/resources/transactions.cjs +4 -5
  556. package/lib/resources/transactions.d.cts +2 -2
  557. package/lib/resources/transactions.d.ts +2 -2
  558. package/lib/resources/transactions.js +3 -4
  559. package/lib/resources/versions.cjs +4 -5
  560. package/lib/resources/versions.d.cts +2 -2
  561. package/lib/resources/versions.d.ts +2 -2
  562. package/lib/resources/versions.js +3 -4
  563. package/lib/resources/vertex_accounts.cjs +4 -5
  564. package/lib/resources/vertex_accounts.d.cts +2 -2
  565. package/lib/resources/vertex_accounts.d.ts +2 -2
  566. package/lib/resources/vertex_accounts.js +3 -4
  567. package/lib/resources/voids.cjs +4 -5
  568. package/lib/resources/voids.d.cts +2 -2
  569. package/lib/resources/voids.d.ts +2 -2
  570. package/lib/resources/voids.js +3 -4
  571. package/lib/resources/webhooks.cjs +4 -5
  572. package/lib/resources/webhooks.d.cts +2 -2
  573. package/lib/resources/webhooks.d.ts +2 -2
  574. package/lib/resources/webhooks.js +3 -4
  575. package/lib/resources/wire_transfers.cjs +4 -5
  576. package/lib/resources/wire_transfers.d.cts +2 -2
  577. package/lib/resources/wire_transfers.d.ts +2 -2
  578. package/lib/resources/wire_transfers.js +3 -4
  579. package/lib/static.cjs +1 -0
  580. package/lib/static.d.cts +3 -3
  581. package/lib/static.d.ts +3 -3
  582. package/lib/static.js +1 -0
  583. package/lib/util.cjs +2 -0
  584. package/lib/util.js +2 -0
  585. package/package.json +6 -6
  586. package/lib/instance.cjs +0 -272
  587. package/lib/instance.d.cts +0 -141
  588. package/lib/instance.d.ts +0 -141
  589. 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-CB5Dy3ZC.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-C0JL7qFH.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,134 +1,135 @@
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
134
  const resourceList = [
134
135
  // ##__API_RESOURCE_LIST_START__##
@@ -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,14 @@ 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;
110
104
  const requestOptions = { method, body: bodyData, headers };
111
- const timeout = options?.timeout || __privateGet(this, _clientConfig).timeout;
105
+ const timeout = options?.timeout || chunkJE77HYXB_cjs.__privateGet(this, _clientConfig).timeout;
112
106
  if (timeout) {
113
107
  if (AbortSignal?.timeout) requestOptions.signal = AbortSignal.timeout(timeout);
114
108
  else debug("Timeout not set. Undefined function: %s", "AbortSignal.timeout");
@@ -118,14 +112,14 @@ const _ApiClient = class _ApiClient {
118
112
  });
119
113
  const clientOptions = {
120
114
  interceptors: this.interceptors,
121
- fetch: options?.fetch || __privateGet(this, _clientConfig).fetch
115
+ fetch: options?.fetch || chunkJE77HYXB_cjs.__privateGet(this, _clientConfig).fetch
122
116
  };
123
117
  try {
124
118
  return await fetch.fetchURL(url, requestOptions, clientOptions).catch((error$1) => error.handleError(error$1));
125
119
  } catch (err) {
126
- if (error.isExpiredTokenError(err) && __privateGet(this, _clientConfig).refreshToken && util.isTokenExpired(__privateGet(this, _accessToken))) {
120
+ if (error.isExpiredTokenError(err) && chunkJE77HYXB_cjs.__privateGet(this, _clientConfig).refreshToken && util.isTokenExpired(chunkJE77HYXB_cjs.__privateGet(this, _accessToken))) {
127
121
  debug("Access token has expired");
128
- const newAccessToken = await __privateGet(this, _clientConfig).refreshToken(__privateGet(this, _accessToken)).catch((e) => {
122
+ const newAccessToken = await chunkJE77HYXB_cjs.__privateGet(this, _clientConfig).refreshToken(chunkJE77HYXB_cjs.__privateGet(this, _accessToken)).catch((e) => {
129
123
  debug("Refresh token error: %s", e.message);
130
124
  const tokenError = new error.SdkError({ message: "Error refreshing access token", type: error.ErrorType.TOKEN_REFRESH });
131
125
  tokenError.source = e;
@@ -150,10 +144,10 @@ const _ApiClient = class _ApiClient {
150
144
  return customHeaders;
151
145
  }
152
146
  get currentAccessToken() {
153
- return __privateGet(this, _accessToken);
147
+ return chunkJE77HYXB_cjs.__privateGet(this, _accessToken);
154
148
  }
155
149
  get currentOrganization() {
156
- return __privateGet(this, _organization);
150
+ return chunkJE77HYXB_cjs.__privateGet(this, _organization);
157
151
  }
158
152
  };
159
153
  _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>;
package/lib/client.js CHANGED
@@ -1,16 +1,10 @@
1
+ import { __privateAdd, __privateSet, __privateGet } from './chunk-AQ5VUG5P.js';
1
2
  import { SdkError, handleError, isExpiredTokenError, ErrorType } from './error';
2
3
  import config from './config';
3
4
  import { fetchURL } from './fetch';
4
5
  import { extractTokenData, isTokenExpired } from './util';
5
6
  import Debug from './debug';
6
7
 
7
- var __typeError = (msg) => {
8
- throw TypeError(msg);
9
- };
10
- var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
11
- var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
12
- 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);
13
- var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), member.set(obj, value), value);
14
8
  var _baseUrl, _accessToken, _organization, _domain, _clientConfig, _interceptors;
15
9
  const debug = Debug("client");
16
10
  const baseURL = (organization, domain) => {