@commercelayer/sdk 7.0.0-beta.11 → 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/model.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { D as Address, E as AddressCreate, G as AddressSort, F as AddressUpdate, H as Adjustment, I as AdjustmentCreate, K as AdjustmentSort, J as AdjustmentUpdate, N as AdyenGateway, O as AdyenGatewayCreate, S as AdyenGatewaySort, P as AdyenGatewayUpdate, T as AdyenPayment, U as AdyenPaymentCreate, W as AdyenPaymentSort, V as AdyenPaymentUpdate, X as Application, Y as ApplicationSort, Z as Attachment, _ as AttachmentCreate, a0 as AttachmentSort, $ as AttachmentUpdate, a1 as Authorization, a3 as AuthorizationSort, a2 as AuthorizationUpdate, a4 as AvalaraAccount, a5 as AvalaraAccountCreate, a7 as AvalaraAccountSort, a6 as AvalaraAccountUpdate, a8 as AxerveGateway, a9 as AxerveGatewayCreate, ab as AxerveGatewaySort, aa as AxerveGatewayUpdate, ac as AxervePayment, ad as AxervePaymentCreate, af as AxervePaymentSort, ae as AxervePaymentUpdate, ag as BingGeocoder, ah as BingGeocoderCreate, aj as BingGeocoderSort, ai as BingGeocoderUpdate, ak as BraintreeGateway, al as BraintreeGatewayCreate, an as BraintreeGatewaySort, am as BraintreeGatewayUpdate, ao as BraintreePayment, ap as BraintreePaymentCreate, ar as BraintreePaymentSort, aq as BraintreePaymentUpdate, as as Bundle, at as BundleCreate, av as BundleSort, au as BundleUpdate, aw as BuyXPayYPromotion, ax as BuyXPayYPromotionCreate, az as BuyXPayYPromotionSort, ay as BuyXPayYPromotionUpdate, aA as Capture, aC as CaptureSort, aB as CaptureUpdate, aD as CarrierAccount, aE as CarrierAccountCreate, aG as CarrierAccountSort, aF as CarrierAccountUpdate, aH as CheckoutComGateway, aI as CheckoutComGatewayCreate, aK as CheckoutComGatewaySort, aJ as CheckoutComGatewayUpdate, aL as CheckoutComPayment, aM as CheckoutComPaymentCreate, aO as CheckoutComPaymentSort, aN as CheckoutComPaymentUpdate, aP as Cleanup, aQ as CleanupCreate, aS as CleanupSort, aR as CleanupUpdate, a$ as Coupon, aT as CouponCodesPromotionRule, aU as CouponCodesPromotionRuleCreate, aW as CouponCodesPromotionRuleSort, aV as CouponCodesPromotionRuleUpdate, b0 as CouponCreate, aX as CouponRecipient, aY as CouponRecipientCreate, a_ as CouponRecipientSort, aZ as CouponRecipientUpdate, b2 as CouponSort, b1 as CouponUpdate, b3 as CustomPromotionRule, b4 as CustomPromotionRuleCreate, b6 as CustomPromotionRuleSort, b5 as CustomPromotionRuleUpdate, br as Customer, b7 as CustomerAddress, b8 as CustomerAddressCreate, ba as CustomerAddressSort, b9 as CustomerAddressUpdate, bs as CustomerCreate, bb as CustomerGroup, bc as CustomerGroupCreate, be as CustomerGroupSort, bd as CustomerGroupUpdate, bf as CustomerPasswordReset, bg as CustomerPasswordResetCreate, bi as CustomerPasswordResetSort, bh as CustomerPasswordResetUpdate, bj as CustomerPaymentSource, bk as CustomerPaymentSourceCreate, bm as CustomerPaymentSourceSort, bl as CustomerPaymentSourceUpdate, bu as CustomerSort, bn as CustomerSubscription, bo as CustomerSubscriptionCreate, bq as CustomerSubscriptionSort, bp as CustomerSubscriptionUpdate, bt as CustomerUpdate, bv as DeliveryLeadTime, bw as DeliveryLeadTimeCreate, by as DeliveryLeadTimeSort, bx as DeliveryLeadTimeUpdate, bB as DiscountEngine, bz as DiscountEngineItem, bA as DiscountEngineItemSort, bC as DiscountEngineSort, bD as EasypostPickup, bE as EasypostPickupCreate, bG as EasypostPickupSort, bF as EasypostPickupUpdate, bJ as Event, bH as EventCallback, bI as EventCallbackSort, bL as EventSort, bK as EventUpdate, bM as Export, bN as ExportCreate, bP as ExportSort, bO as ExportUpdate, bQ as ExternalGateway, bR as ExternalGatewayCreate, bT as ExternalGatewaySort, bS as ExternalGatewayUpdate, bU as ExternalPayment, bV as ExternalPaymentCreate, bX as ExternalPaymentSort, bW as ExternalPaymentUpdate, bY as ExternalPromotion, bZ as ExternalPromotionCreate, b$ as ExternalPromotionSort, b_ as ExternalPromotionUpdate, c0 as ExternalTaxCalculator, c1 as ExternalTaxCalculatorCreate, c3 as ExternalTaxCalculatorSort, c2 as ExternalTaxCalculatorUpdate, c4 as FixedAmountPromotion, c5 as FixedAmountPromotionCreate, c7 as FixedAmountPromotionSort, c6 as FixedAmountPromotionUpdate, c8 as FixedPricePromotion, c9 as FixedPricePromotionCreate, cb as FixedPricePromotionSort, ca as FixedPricePromotionUpdate, cc as FlexPromotion, cd as FlexPromotionCreate, cf as FlexPromotionSort, ce as FlexPromotionUpdate, cg as FreeGiftPromotion, ch as FreeGiftPromotionCreate, cj as FreeGiftPromotionSort, ci as FreeGiftPromotionUpdate, ck as FreeShippingPromotion, cl as FreeShippingPromotionCreate, cn as FreeShippingPromotionSort, cm as FreeShippingPromotionUpdate, co as Geocoder, cp as GeocoderSort, cu as GiftCard, cv as GiftCardCreate, cq as GiftCardRecipient, cr as GiftCardRecipientCreate, ct as GiftCardRecipientSort, cs as GiftCardRecipientUpdate, cx as GiftCardSort, cw as GiftCardUpdate, cy as GoogleGeocoder, cz as GoogleGeocoderCreate, cB as GoogleGeocoderSort, cA as GoogleGeocoderUpdate, cC as Import, cD as ImportCreate, cF as ImportSort, cE as ImportUpdate, cG as InStockSubscription, cH as InStockSubscriptionCreate, cJ as InStockSubscriptionSort, cI as InStockSubscriptionUpdate, cK as InventoryModel, cL as InventoryModelCreate, cN as InventoryModelSort, cM as InventoryModelUpdate, cO as InventoryReturnLocation, cP as InventoryReturnLocationCreate, cR as InventoryReturnLocationSort, cQ as InventoryReturnLocationUpdate, cS as InventoryStockLocation, cT as InventoryStockLocationCreate, cV as InventoryStockLocationSort, cU as InventoryStockLocationUpdate, cW as KlarnaGateway, cX as KlarnaGatewayCreate, cZ as KlarnaGatewaySort, cY as KlarnaGatewayUpdate, c_ as KlarnaPayment, c$ as KlarnaPaymentCreate, d1 as KlarnaPaymentSort, d0 as KlarnaPaymentUpdate, d6 as LineItem, d7 as LineItemCreate, d2 as LineItemOption, d3 as LineItemOptionCreate, d5 as LineItemOptionSort, d4 as LineItemOptionUpdate, d9 as LineItemSort, d8 as LineItemUpdate, da as Link, db as LinkCreate, dd as LinkSort, dc as LinkUpdate, de as ManualGateway, df as ManualGatewayCreate, dh as ManualGatewaySort, dg as ManualGatewayUpdate, di as ManualTaxCalculator, dj as ManualTaxCalculatorCreate, dl as ManualTaxCalculatorSort, dk as ManualTaxCalculatorUpdate, dm as Market, dn as MarketCreate, dq as MarketSort, dp as MarketUpdate, dr as Merchant, ds as MerchantCreate, du as MerchantSort, dt as MerchantUpdate, dv as Notification, dw as NotificationCreate, dy as NotificationSort, dx as NotificationUpdate, dR as Order, dz as OrderAmountPromotionRule, dA as OrderAmountPromotionRuleCreate, dC as OrderAmountPromotionRuleSort, dB as OrderAmountPromotionRuleUpdate, dD as OrderCopy, dE as OrderCopyCreate, dG as OrderCopySort, dF as OrderCopyUpdate, dS as OrderCreate, dH as OrderFactory, dI as OrderFactorySort, dU as OrderSort, dN as OrderSubscription, dO as OrderSubscriptionCreate, dJ as OrderSubscriptionItem, dK as OrderSubscriptionItemCreate, dM as OrderSubscriptionItemSort, dL as OrderSubscriptionItemUpdate, dQ as OrderSubscriptionSort, dP as OrderSubscriptionUpdate, dT as OrderUpdate, dV as Organization, dW as OrganizationSort, dX as Package, dY as PackageCreate, d_ as PackageSort, dZ as PackageUpdate, e3 as Parcel, e4 as ParcelCreate, d$ as ParcelLineItem, e0 as ParcelLineItemCreate, e2 as ParcelLineItemSort, e1 as ParcelLineItemUpdate, e6 as ParcelSort, e5 as ParcelUpdate, e7 as PaymentGateway, e8 as PaymentGatewaySort, e9 as PaymentMethod, ea as PaymentMethodCreate, ec as PaymentMethodSort, eb as PaymentMethodUpdate, ed as PaymentOption, ee as PaymentOptionCreate, eg as PaymentOptionSort, ef as PaymentOptionUpdate, eh as PaypalGateway, ei as PaypalGatewayCreate, ek as PaypalGatewaySort, ej as PaypalGatewayUpdate, el as PaypalPayment, em as PaypalPaymentCreate, eo as PaypalPaymentSort, en as PaypalPaymentUpdate, ep as PercentageDiscountPromotion, eq as PercentageDiscountPromotionCreate, es as PercentageDiscountPromotionSort, er as PercentageDiscountPromotionUpdate, et as Pickup, eu as PickupSort, eN as Price, eO as PriceCreate, ev as PriceFrequencyTier, ew as PriceFrequencyTierCreate, ey as PriceFrequencyTierSort, ex as PriceFrequencyTierUpdate, eD as PriceList, eE as PriceListCreate, ez as PriceListScheduler, eA as PriceListSchedulerCreate, eC as PriceListSchedulerSort, eB as PriceListSchedulerUpdate, eG as PriceListSort, eF as PriceListUpdate, eQ as PriceSort, eH as PriceTier, eI as PriceTierSort, eP as PriceUpdate, eJ as PriceVolumeTier, eK as PriceVolumeTierCreate, eM as PriceVolumeTierSort, eL as PriceVolumeTierUpdate, eT as Promotion, eR as PromotionRule, eS as PromotionRuleSort, eU as PromotionSort, eV as RecurringOrderCopy, eW as RecurringOrderCopyCreate, eY as RecurringOrderCopySort, eX as RecurringOrderCopyUpdate, eZ as Refund, e$ as RefundSort, e_ as RefundUpdate, f0 as ReservedStock, f1 as ReservedStockSort, f2 as ResourceError, f3 as ResourceErrorSort, f8 as Return, f9 as ReturnCreate, f4 as ReturnLineItem, f5 as ReturnLineItemCreate, f7 as ReturnLineItemSort, f6 as ReturnLineItemUpdate, fb as ReturnSort, fa as ReturnUpdate, fc as SatispayGateway, fd as SatispayGatewayCreate, ff as SatispayGatewaySort, fe as SatispayGatewayUpdate, fg as SatispayPayment, fh as SatispayPaymentCreate, fj as SatispayPaymentSort, fi as SatispayPaymentUpdate, fk as Shipment, fl as ShipmentCreate, fn as ShipmentSort, fm as ShipmentUpdate, fo as ShippingCategory, fp as ShippingCategoryCreate, fr as ShippingCategorySort, fq as ShippingCategoryUpdate, fu as ShippingMethod, fv as ShippingMethodCreate, fx as ShippingMethodSort, fs as ShippingMethodTier, ft as ShippingMethodTierSort, fw as ShippingMethodUpdate, fy as ShippingWeightTier, fz as ShippingWeightTierCreate, fB as ShippingWeightTierSort, fA as ShippingWeightTierUpdate, fC as ShippingZone, fD as ShippingZoneCreate, fF as ShippingZoneSort, fE as ShippingZoneUpdate, fW as Sku, fX as SkuCreate, fO as SkuList, fP as SkuListCreate, fG as SkuListItem, fH as SkuListItemCreate, fJ as SkuListItemSort, fI as SkuListItemUpdate, fK as SkuListPromotionRule, fL as SkuListPromotionRuleCreate, fN as SkuListPromotionRuleSort, fM as SkuListPromotionRuleUpdate, fR as SkuListSort, fQ as SkuListUpdate, fS as SkuOption, fT as SkuOptionCreate, fV as SkuOptionSort, fU as SkuOptionUpdate, fZ as SkuSort, fY as SkuUpdate, f_ as StockItem, f$ as StockItemCreate, g1 as StockItemSort, g0 as StockItemUpdate, g2 as StockLineItem, g3 as StockLineItemCreate, g5 as StockLineItemSort, g4 as StockLineItemUpdate, g6 as StockLocation, g7 as StockLocationCreate, g9 as StockLocationSort, g8 as StockLocationUpdate, ga as StockReservation, gb as StockReservationCreate, gd as StockReservationSort, gc as StockReservationUpdate, ge as StockTransfer, gf as StockTransferCreate, gh as StockTransferSort, gg as StockTransferUpdate, gi as Store, gj as StoreCreate, gl as StoreSort, gk as StoreUpdate, gm as StripeGateway, gn as StripeGatewayCreate, gp as StripeGatewaySort, go as StripeGatewayUpdate, gq as StripePayment, gr as StripePaymentCreate, gt as StripePaymentSort, gs as StripePaymentUpdate, gu as StripeTaxAccount, gv as StripeTaxAccountCreate, gx as StripeTaxAccountSort, gw as StripeTaxAccountUpdate, gy as SubscriptionModel, gz as SubscriptionModelCreate, gB as SubscriptionModelSort, gA as SubscriptionModelUpdate, gC as Tag, gD as TagCreate, gF as TagSort, gE as TagUpdate, gG as TalonOneAccount, gH as TalonOneAccountCreate, gJ as TalonOneAccountSort, gI as TalonOneAccountUpdate, gK as TaxCalculator, gL as TaxCalculatorSort, gM as TaxCategory, gN as TaxCategoryCreate, gP as TaxCategorySort, gO as TaxCategoryUpdate, gQ as TaxRule, gR as TaxRuleCreate, gT as TaxRuleSort, gS as TaxRuleUpdate, gU as TaxjarAccount, gV as TaxjarAccountCreate, gX as TaxjarAccountSort, gW as TaxjarAccountUpdate, gY as Transaction, gZ as TransactionSort, g_ as Version, g$ as VersionSort, h0 as VertexAccount, h1 as VertexAccountCreate, h3 as VertexAccountSort, h2 as VertexAccountUpdate, h4 as Void, h6 as VoidSort, h5 as VoidUpdate, h7 as Webhook, h8 as WebhookCreate, ha as WebhookSort, h9 as WebhookUpdate, hb as WireTransfer, hc as WireTransferCreate, he as WireTransferSort, hd as WireTransferUpdate } from './api-Cknm0QL_.js';
1
+ export { c1 as Address, c2 as AddressCreate, c4 as AddressSort, c3 as AddressUpdate, c5 as Adjustment, c6 as AdjustmentCreate, c8 as AdjustmentSort, c7 as AdjustmentUpdate, c9 as AdyenGateway, ca as AdyenGatewayCreate, cc as AdyenGatewaySort, cb as AdyenGatewayUpdate, cd as AdyenPayment, ce as AdyenPaymentCreate, cg as AdyenPaymentSort, cf as AdyenPaymentUpdate, ch as Application, ci as ApplicationSort, cj as Attachment, ck as AttachmentCreate, cm as AttachmentSort, cl as AttachmentUpdate, cn as Authorization, cp as AuthorizationSort, co as AuthorizationUpdate, cq as AvalaraAccount, cr as AvalaraAccountCreate, ct as AvalaraAccountSort, cs as AvalaraAccountUpdate, cu as AxerveGateway, cv as AxerveGatewayCreate, cx as AxerveGatewaySort, cw as AxerveGatewayUpdate, cy as AxervePayment, cz as AxervePaymentCreate, cB as AxervePaymentSort, cA as AxervePaymentUpdate, cC as BingGeocoder, cD as BingGeocoderCreate, cF as BingGeocoderSort, cE as BingGeocoderUpdate, cG as BraintreeGateway, cH as BraintreeGatewayCreate, cJ as BraintreeGatewaySort, cI as BraintreeGatewayUpdate, cK as BraintreePayment, cL as BraintreePaymentCreate, cN as BraintreePaymentSort, cM as BraintreePaymentUpdate, cO as Bundle, cP as BundleCreate, cR as BundleSort, cQ as BundleUpdate, cS as BuyXPayYPromotion, cT as BuyXPayYPromotionCreate, cV as BuyXPayYPromotionSort, cU as BuyXPayYPromotionUpdate, cW as Capture, cY as CaptureSort, cX as CaptureUpdate, cZ as CarrierAccount, c_ as CarrierAccountCreate, d0 as CarrierAccountSort, c$ as CarrierAccountUpdate, d1 as CheckoutComGateway, d2 as CheckoutComGatewayCreate, d4 as CheckoutComGatewaySort, d3 as CheckoutComGatewayUpdate, d5 as CheckoutComPayment, d6 as CheckoutComPaymentCreate, d8 as CheckoutComPaymentSort, d7 as CheckoutComPaymentUpdate, d9 as Cleanup, da as CleanupCreate, dc as CleanupSort, db as CleanupUpdate, dl as Coupon, dd as CouponCodesPromotionRule, de as CouponCodesPromotionRuleCreate, dg as CouponCodesPromotionRuleSort, df as CouponCodesPromotionRuleUpdate, dm as CouponCreate, dh as CouponRecipient, di as CouponRecipientCreate, dk as CouponRecipientSort, dj as CouponRecipientUpdate, dp as CouponSort, dn as CouponUpdate, dq as CustomPromotionRule, dr as CustomPromotionRuleCreate, dt as CustomPromotionRuleSort, ds as CustomPromotionRuleUpdate, dO as Customer, du as CustomerAddress, dv as CustomerAddressCreate, dx as CustomerAddressSort, dw as CustomerAddressUpdate, dP as CustomerCreate, dy as CustomerGroup, dz as CustomerGroupCreate, dB as CustomerGroupSort, dA as CustomerGroupUpdate, dC as CustomerPasswordReset, dD as CustomerPasswordResetCreate, dF as CustomerPasswordResetSort, dE as CustomerPasswordResetUpdate, dG as CustomerPaymentSource, dH as CustomerPaymentSourceCreate, dJ as CustomerPaymentSourceSort, dI as CustomerPaymentSourceUpdate, dR as CustomerSort, dK as CustomerSubscription, dL as CustomerSubscriptionCreate, dN as CustomerSubscriptionSort, dM as CustomerSubscriptionUpdate, dQ as CustomerUpdate, dS as DeliveryLeadTime, dT as DeliveryLeadTimeCreate, dV as DeliveryLeadTimeSort, dU as DeliveryLeadTimeUpdate, dY as DiscountEngine, dW as DiscountEngineItem, dX as DiscountEngineItemSort, dZ as DiscountEngineSort, d_ as EasypostPickup, d$ as EasypostPickupCreate, e1 as EasypostPickupSort, e0 as EasypostPickupUpdate, e4 as Event, e2 as EventCallback, e3 as EventCallbackSort, e6 as EventSort, e5 as EventUpdate, e7 as Export, e8 as ExportCreate, ea as ExportSort, e9 as ExportUpdate, eb as ExternalGateway, ec as ExternalGatewayCreate, ee as ExternalGatewaySort, ed as ExternalGatewayUpdate, ef as ExternalPayment, eg as ExternalPaymentCreate, ei as ExternalPaymentSort, eh as ExternalPaymentUpdate, ej as ExternalPromotion, ek as ExternalPromotionCreate, em as ExternalPromotionSort, el as ExternalPromotionUpdate, en as ExternalTaxCalculator, eo as ExternalTaxCalculatorCreate, eq as ExternalTaxCalculatorSort, ep as ExternalTaxCalculatorUpdate, er as FixedAmountPromotion, es as FixedAmountPromotionCreate, eu as FixedAmountPromotionSort, et as FixedAmountPromotionUpdate, ev as FixedPricePromotion, ew as FixedPricePromotionCreate, ey as FixedPricePromotionSort, ex as FixedPricePromotionUpdate, ez as FlexPromotion, eA as FlexPromotionCreate, eC as FlexPromotionSort, eB as FlexPromotionUpdate, eD as FreeGiftPromotion, eE as FreeGiftPromotionCreate, eG as FreeGiftPromotionSort, eF as FreeGiftPromotionUpdate, eH as FreeShippingPromotion, eI as FreeShippingPromotionCreate, eK as FreeShippingPromotionSort, eJ as FreeShippingPromotionUpdate, eL as Geocoder, eM as GeocoderSort, eR as GiftCard, eS as GiftCardCreate, eN as GiftCardRecipient, eO as GiftCardRecipientCreate, eQ as GiftCardRecipientSort, eP as GiftCardRecipientUpdate, eU as GiftCardSort, eT as GiftCardUpdate, eV as GoogleGeocoder, eW as GoogleGeocoderCreate, eY as GoogleGeocoderSort, eX as GoogleGeocoderUpdate, eZ as Import, e_ as ImportCreate, f0 as ImportSort, e$ as ImportUpdate, f1 as InStockSubscription, f2 as InStockSubscriptionCreate, f4 as InStockSubscriptionSort, f3 as InStockSubscriptionUpdate, f5 as InventoryModel, f6 as InventoryModelCreate, f8 as InventoryModelSort, f7 as InventoryModelUpdate, f9 as InventoryReturnLocation, fa as InventoryReturnLocationCreate, fc as InventoryReturnLocationSort, fb as InventoryReturnLocationUpdate, fd as InventoryStockLocation, fe as InventoryStockLocationCreate, fg as InventoryStockLocationSort, ff as InventoryStockLocationUpdate, fh as KlarnaGateway, fi as KlarnaGatewayCreate, fk as KlarnaGatewaySort, fj as KlarnaGatewayUpdate, fl as KlarnaPayment, fm as KlarnaPaymentCreate, fo as KlarnaPaymentSort, fn as KlarnaPaymentUpdate, ft as LineItem, fu as LineItemCreate, fp as LineItemOption, fq as LineItemOptionCreate, fs as LineItemOptionSort, fr as LineItemOptionUpdate, fw as LineItemSort, fv as LineItemUpdate, fx as Link, fy as LinkCreate, fA as LinkSort, fz as LinkUpdate, fB as ManualGateway, fC as ManualGatewayCreate, fE as ManualGatewaySort, fD as ManualGatewayUpdate, fF as ManualTaxCalculator, fG as ManualTaxCalculatorCreate, fI as ManualTaxCalculatorSort, fH as ManualTaxCalculatorUpdate, fJ as Market, fK as MarketCreate, fM as MarketSort, fL as MarketUpdate, fN as Merchant, fO as MerchantCreate, fQ as MerchantSort, fP as MerchantUpdate, fR as Notification, fS as NotificationCreate, fU as NotificationSort, fT as NotificationUpdate, gb as Order, fV as OrderAmountPromotionRule, fW as OrderAmountPromotionRuleCreate, fY as OrderAmountPromotionRuleSort, fX as OrderAmountPromotionRuleUpdate, fZ as OrderCopy, f_ as OrderCopyCreate, g0 as OrderCopySort, f$ as OrderCopyUpdate, gc as OrderCreate, g1 as OrderFactory, g2 as OrderFactorySort, ge as OrderSort, g7 as OrderSubscription, g8 as OrderSubscriptionCreate, g3 as OrderSubscriptionItem, g4 as OrderSubscriptionItemCreate, g6 as OrderSubscriptionItemSort, g5 as OrderSubscriptionItemUpdate, ga as OrderSubscriptionSort, g9 as OrderSubscriptionUpdate, gd as OrderUpdate, gf as Organization, gg as OrganizationSort, gh as Package, gi as PackageCreate, gk as PackageSort, gj as PackageUpdate, gp as Parcel, gq as ParcelCreate, gl as ParcelLineItem, gm as ParcelLineItemCreate, go as ParcelLineItemSort, gn as ParcelLineItemUpdate, gs as ParcelSort, gr as ParcelUpdate, gt as PaymentGateway, gu as PaymentGatewaySort, gv as PaymentMethod, gw as PaymentMethodCreate, gy as PaymentMethodSort, gx as PaymentMethodUpdate, gz as PaymentOption, gA as PaymentOptionCreate, gC as PaymentOptionSort, gB as PaymentOptionUpdate, gD as PaypalGateway, gE as PaypalGatewayCreate, gG as PaypalGatewaySort, gF as PaypalGatewayUpdate, gH as PaypalPayment, gI as PaypalPaymentCreate, gK as PaypalPaymentSort, gJ as PaypalPaymentUpdate, gL as PercentageDiscountPromotion, gM as PercentageDiscountPromotionCreate, gO as PercentageDiscountPromotionSort, gN as PercentageDiscountPromotionUpdate, gP as Pickup, gQ as PickupSort, h7 as Price, h8 as PriceCreate, gR as PriceFrequencyTier, gS as PriceFrequencyTierCreate, gU as PriceFrequencyTierSort, gT as PriceFrequencyTierUpdate, gZ as PriceList, g_ as PriceListCreate, gV as PriceListScheduler, gW as PriceListSchedulerCreate, gY as PriceListSchedulerSort, gX as PriceListSchedulerUpdate, h0 as PriceListSort, g$ as PriceListUpdate, ha as PriceSort, h1 as PriceTier, h2 as PriceTierSort, h9 as PriceUpdate, h3 as PriceVolumeTier, h4 as PriceVolumeTierCreate, h6 as PriceVolumeTierSort, h5 as PriceVolumeTierUpdate, hd as Promotion, hb as PromotionRule, hc as PromotionRuleSort, he as PromotionSort, hf as RecurringOrderCopy, hg as RecurringOrderCopyCreate, hi as RecurringOrderCopySort, hh as RecurringOrderCopyUpdate, hj as Refund, hl as RefundSort, hk as RefundUpdate, hm as ReservedStock, hn as ReservedStockSort, ho as ResourceError, hp as ResourceErrorSort, hu as Return, hv as ReturnCreate, hq as ReturnLineItem, hr as ReturnLineItemCreate, ht as ReturnLineItemSort, hs as ReturnLineItemUpdate, hx as ReturnSort, hw as ReturnUpdate, hy as SatispayGateway, hz as SatispayGatewayCreate, hB as SatispayGatewaySort, hA as SatispayGatewayUpdate, hC as SatispayPayment, hD as SatispayPaymentCreate, hF as SatispayPaymentSort, hE as SatispayPaymentUpdate, hG as Shipment, hH as ShipmentCreate, hJ as ShipmentSort, hI as ShipmentUpdate, hK as ShippingCategory, hL as ShippingCategoryCreate, hN as ShippingCategorySort, hM as ShippingCategoryUpdate, hQ as ShippingMethod, hR as ShippingMethodCreate, hT as ShippingMethodSort, hO as ShippingMethodTier, hP as ShippingMethodTierSort, hS as ShippingMethodUpdate, hU as ShippingWeightTier, hV as ShippingWeightTierCreate, hX as ShippingWeightTierSort, hW as ShippingWeightTierUpdate, hY as ShippingZone, hZ as ShippingZoneCreate, h$ as ShippingZoneSort, h_ as ShippingZoneUpdate, ih as Sku, ii as SkuCreate, i8 as SkuList, i9 as SkuListCreate, i0 as SkuListItem, i1 as SkuListItemCreate, i3 as SkuListItemSort, i2 as SkuListItemUpdate, i4 as SkuListPromotionRule, i5 as SkuListPromotionRuleCreate, i7 as SkuListPromotionRuleSort, i6 as SkuListPromotionRuleUpdate, ib as SkuListSort, ia as SkuListUpdate, ic as SkuOption, id as SkuOptionCreate, ig as SkuOptionSort, ie as SkuOptionUpdate, ik as SkuSort, ij as SkuUpdate, il as StockItem, im as StockItemCreate, ip as StockItemSort, io as StockItemUpdate, iq as StockLineItem, ir as StockLineItemCreate, it as StockLineItemSort, is as StockLineItemUpdate, iu as StockLocation, iv as StockLocationCreate, ix as StockLocationSort, iw as StockLocationUpdate, iy as StockReservation, iz as StockReservationCreate, iB as StockReservationSort, iA as StockReservationUpdate, iC as StockTransfer, iD as StockTransferCreate, iF as StockTransferSort, iE as StockTransferUpdate, iG as Store, iH as StoreCreate, iJ as StoreSort, iI as StoreUpdate, iK as StripeGateway, iL as StripeGatewayCreate, iN as StripeGatewaySort, iM as StripeGatewayUpdate, iO as StripePayment, iP as StripePaymentCreate, iR as StripePaymentSort, iQ as StripePaymentUpdate, iS as StripeTaxAccount, iT as StripeTaxAccountCreate, iV as StripeTaxAccountSort, iU as StripeTaxAccountUpdate, iW as SubscriptionModel, iX as SubscriptionModelCreate, iZ as SubscriptionModelSort, iY as SubscriptionModelUpdate, i_ as Tag, i$ as TagCreate, j1 as TagSort, j0 as TagUpdate, j2 as TalonOneAccount, j3 as TalonOneAccountCreate, j5 as TalonOneAccountSort, j4 as TalonOneAccountUpdate, j6 as TaxCalculator, j7 as TaxCalculatorSort, j8 as TaxCategory, j9 as TaxCategoryCreate, jb as TaxCategorySort, ja as TaxCategoryUpdate, jc as TaxRule, jd as TaxRuleCreate, jf as TaxRuleSort, je as TaxRuleUpdate, jg as TaxjarAccount, jh as TaxjarAccountCreate, jj as TaxjarAccountSort, ji as TaxjarAccountUpdate, jk as Transaction, jl as TransactionSort, jm as Version, jn as VersionSort, jo as VertexAccount, jp as VertexAccountCreate, jr as VertexAccountSort, jq as VertexAccountUpdate, js as Void, ju as VoidSort, jt as VoidUpdate, jv as Webhook, jw as WebhookCreate, jy as WebhookSort, jx as WebhookUpdate, jz as WireTransfer, jA as WireTransferCreate, jC as WireTransferSort, jB as WireTransferUpdate } 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/query.cjs CHANGED
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ require('./chunk-JE77HYXB.cjs');
3
4
  var error = require('./error');
4
5
  var Debug = require('./debug');
5
6
 
package/lib/query.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- export { b as QueryArrayFields, f as QueryArraySortable, d as QueryFields, k as QueryFilter, Q as QueryInclude, l as QueryPageNumber, m as QueryPageSize, o as QueryParams, n as QueryParamsList, e as QueryParamsRetrieve, c as QueryRecordFields, h as QueryRecordSortable, j as QuerySort, g as generateQueryStringParams, a as generateSearchString, i as isParamsList } from './api-BYcswOJ0.cjs';
1
+ export { bG as QueryArrayFields, bK as QueryArraySortable, bI as QueryFields, bN as QueryFilter, bF as QueryInclude, bO as QueryPageNumber, bP as QueryPageSize, bR as QueryParams, bQ as QueryParamsList, bJ as QueryParamsRetrieve, bH as QueryRecordFields, bL as QueryRecordSortable, bM as QuerySort, bC as generateQueryStringParams, bE as generateSearchString, bD as isParamsList } from './api-CB5Dy3ZC.cjs';
2
2
  import './types.cjs';
3
3
  import './client.cjs';
4
- import './interceptor-5MISI1yn.cjs';
4
+ import './interceptor-D65i25Y7.cjs';
package/lib/query.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { b as QueryArrayFields, f as QueryArraySortable, d as QueryFields, k as QueryFilter, Q as QueryInclude, l as QueryPageNumber, m as QueryPageSize, o as QueryParams, n as QueryParamsList, e as QueryParamsRetrieve, c as QueryRecordFields, h as QueryRecordSortable, j as QuerySort, g as generateQueryStringParams, a as generateSearchString, i as isParamsList } from './api-Cknm0QL_.js';
1
+ export { bG as QueryArrayFields, bK as QueryArraySortable, bI as QueryFields, bN as QueryFilter, bF as QueryInclude, bO as QueryPageNumber, bP as QueryPageSize, bR as QueryParams, bQ as QueryParamsList, bJ as QueryParamsRetrieve, bH as QueryRecordFields, bL as QueryRecordSortable, bM as QuerySort, bC as generateQueryStringParams, bE as generateSearchString, bD as isParamsList } from './api-C0JL7qFH.js';
2
2
  import './types.js';
3
3
  import './client.js';
4
- import './interceptor-5MISI1yn.js';
4
+ import './interceptor-D65i25Y7.js';
package/lib/query.js CHANGED
@@ -1,3 +1,4 @@
1
+ import './chunk-AQ5VUG5P.js';
1
2
  import { SdkError, ErrorType } from './error';
2
3
  import Debug from './debug';
3
4
 
package/lib/resource.cjs CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var chunkJE77HYXB_cjs = require('./chunk-JE77HYXB.cjs');
5
6
  var ApiClient = require('./client');
6
7
  var jsonapi = require('./jsonapi');
7
8
  var query = require('./query');
@@ -15,22 +16,12 @@ var ApiClient__default = /*#__PURE__*/_interopDefault(ApiClient);
15
16
  var config__default = /*#__PURE__*/_interopDefault(config);
16
17
  var Debug__default = /*#__PURE__*/_interopDefault(Debug);
17
18
 
18
- var __defProp = Object.defineProperty;
19
- var __typeError = (msg) => {
20
- throw TypeError(msg);
21
- };
22
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
23
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
24
- var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
25
- var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
26
- 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);
27
- var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), member.set(obj, value), value);
28
19
  var _client, _config, _resources;
29
20
  const debug = Debug__default.default("resource");
30
21
  class ListResponse extends Array {
31
22
  constructor(meta, data) {
32
23
  super(...data || []);
33
- __publicField(this, "meta");
24
+ chunkJE77HYXB_cjs.__publicField(this, "meta");
34
25
  this.meta = meta;
35
26
  }
36
27
  first() {
@@ -62,6 +53,8 @@ class ListResponse extends Array {
62
53
  }
63
54
  }
64
55
  const _ApiResourceAdapter = class _ApiResourceAdapter {
56
+ constructor() {
57
+ }
65
58
  static init(config2) {
66
59
  return _ApiResourceAdapter.adapter = new ResourceAdapter(config2);
67
60
  }
@@ -69,20 +62,20 @@ const _ApiResourceAdapter = class _ApiResourceAdapter {
69
62
  if (config2) return _ApiResourceAdapter.init(config2);
70
63
  else {
71
64
  if (_ApiResourceAdapter.adapter) return _ApiResourceAdapter.adapter;
72
- else throw new error.SdkError({ message: "RersourceAdapter not initialized" });
65
+ else throw new error.SdkError({ message: "Commerce Layer not initialized" });
73
66
  }
74
67
  }
75
68
  static config(config2) {
76
69
  _ApiResourceAdapter.get().config(config2);
77
70
  }
78
71
  };
79
- __publicField(_ApiResourceAdapter, "adapter");
72
+ chunkJE77HYXB_cjs.__publicField(_ApiResourceAdapter, "adapter");
80
73
  let ApiResourceAdapter = _ApiResourceAdapter;
81
74
  class ResourceAdapter {
82
75
  constructor(config2) {
83
- __privateAdd(this, _client);
84
- __privateAdd(this, _config, {});
85
- __privateSet(this, _client, ApiClient__default.default.create(config2));
76
+ chunkJE77HYXB_cjs.__privateAdd(this, _client);
77
+ chunkJE77HYXB_cjs.__privateAdd(this, _config, {});
78
+ chunkJE77HYXB_cjs.__privateSet(this, _client, ApiClient__default.default.create(config2));
86
79
  this.localConfig(config2);
87
80
  }
88
81
  localConfig(config2) {
@@ -90,17 +83,17 @@ class ResourceAdapter {
90
83
  config(config2) {
91
84
  debug("config %o", config2);
92
85
  this.localConfig(config2);
93
- __privateGet(this, _client).config(config2);
86
+ chunkJE77HYXB_cjs.__privateGet(this, _client).config(config2);
94
87
  return this;
95
88
  }
96
89
  get client() {
97
- return __privateGet(this, _client);
90
+ return chunkJE77HYXB_cjs.__privateGet(this, _client);
98
91
  }
99
92
  async singleton(resource, params, options, path) {
100
93
  debug("singleton: %o, %O, %O", resource, params || {}, options || {});
101
94
  const queryParams = query.generateQueryStringParams(params, resource);
102
95
  if (options?.params) Object.assign(queryParams, options?.params);
103
- const res = await __privateGet(this, _client).request("GET", `${path || resource.type}`, void 0, { ...options, params: queryParams });
96
+ const res = await chunkJE77HYXB_cjs.__privateGet(this, _client).request("GET", `${path || resource.type}`, void 0, { ...options, params: queryParams });
104
97
  const r = jsonapi.denormalize(res);
105
98
  return r;
106
99
  }
@@ -108,7 +101,7 @@ class ResourceAdapter {
108
101
  debug("retrieve: %o, %O, %O", resource, params || {}, options || {});
109
102
  const queryParams = query.generateQueryStringParams(params, resource);
110
103
  if (options?.params) Object.assign(queryParams, options?.params);
111
- const res = await __privateGet(this, _client).request("GET", `${resource.type}/${resource.id}`, void 0, { ...options, params: queryParams });
104
+ const res = await chunkJE77HYXB_cjs.__privateGet(this, _client).request("GET", `${resource.type}/${resource.id}`, void 0, { ...options, params: queryParams });
112
105
  const r = jsonapi.denormalize(res);
113
106
  return r;
114
107
  }
@@ -117,7 +110,7 @@ class ResourceAdapter {
117
110
  const queryParams = query.generateQueryStringParams(params, resource);
118
111
  if (options?.params) Object.assign(queryParams, options?.params);
119
112
  if (!queryParams["page[number]"]) queryParams["page[number]"] = "1";
120
- const res = await __privateGet(this, _client).request("GET", `${resource.type}`, void 0, { ...options, params: queryParams });
113
+ const res = await chunkJE77HYXB_cjs.__privateGet(this, _client).request("GET", `${resource.type}`, void 0, { ...options, params: queryParams });
121
114
  const r = jsonapi.denormalize(res);
122
115
  const meta = {
123
116
  pageCount: Number(res.meta?.page_count),
@@ -132,7 +125,7 @@ class ResourceAdapter {
132
125
  const queryParams = query.generateQueryStringParams(params, resource);
133
126
  if (options?.params) Object.assign(queryParams, options?.params);
134
127
  const data = jsonapi.normalize(resource);
135
- const res = await __privateGet(this, _client).request("POST", resource.type, data, { ...options, params: queryParams });
128
+ const res = await chunkJE77HYXB_cjs.__privateGet(this, _client).request("POST", resource.type, data, { ...options, params: queryParams });
136
129
  const r = jsonapi.denormalize(res);
137
130
  return r;
138
131
  }
@@ -141,19 +134,19 @@ class ResourceAdapter {
141
134
  const queryParams = query.generateQueryStringParams(params, resource);
142
135
  if (options?.params) Object.assign(queryParams, options?.params);
143
136
  const data = jsonapi.normalize(resource);
144
- const res = await __privateGet(this, _client).request("PATCH", `${resource.type}/${resource.id}`, data, { ...options, params: queryParams });
137
+ const res = await chunkJE77HYXB_cjs.__privateGet(this, _client).request("PATCH", `${resource.type}/${resource.id}`, data, { ...options, params: queryParams });
145
138
  const r = jsonapi.denormalize(res);
146
139
  return r;
147
140
  }
148
141
  async delete(resource, options) {
149
142
  debug("delete: %o, %O", resource, options || {});
150
- await __privateGet(this, _client).request("DELETE", `${resource.type}/${resource.id}`, void 0, options);
143
+ await chunkJE77HYXB_cjs.__privateGet(this, _client).request("DELETE", `${resource.type}/${resource.id}`, void 0, options);
151
144
  }
152
145
  async fetch(resource, path, params, options) {
153
146
  debug("fetch: %o, %O, %O", path, params || {}, options || {});
154
147
  const queryParams = query.generateQueryStringParams(params, resource);
155
148
  if (options?.params) Object.assign(queryParams, options?.params);
156
- const res = await __privateGet(this, _client).request("GET", path, void 0, { ...options, params: queryParams });
149
+ const res = await chunkJE77HYXB_cjs.__privateGet(this, _client).request("GET", path, void 0, { ...options, params: queryParams });
157
150
  const r = jsonapi.denormalize(res);
158
151
  if (Array.isArray(r)) {
159
152
  const p = params;
@@ -171,12 +164,12 @@ _client = new WeakMap();
171
164
  _config = new WeakMap();
172
165
  class ApiResourceBase {
173
166
  constructor(adapter) {
174
- __privateAdd(this, _resources);
167
+ chunkJE77HYXB_cjs.__privateAdd(this, _resources);
175
168
  debug("new resource instance: %s", this.type());
176
- __privateSet(this, _resources, adapter);
169
+ chunkJE77HYXB_cjs.__privateSet(this, _resources, adapter);
177
170
  }
178
171
  get resources() {
179
- return __privateGet(this, _resources) || __privateSet(this, _resources, ApiResourceAdapter.get());
172
+ return chunkJE77HYXB_cjs.__privateGet(this, _resources) || chunkJE77HYXB_cjs.__privateSet(this, _resources, ApiResourceAdapter.get());
180
173
  }
181
174
  relationshipOneToOne(id) {
182
175
  return id === null || typeof id === "string" ? { id, type: this.type() } : { id: id.id, type: this.type() };
@@ -195,7 +188,7 @@ class ApiResourceBase {
195
188
  }
196
189
  }
197
190
  _resources = new WeakMap();
198
- __publicField(ApiResourceBase, "TYPE");
191
+ chunkJE77HYXB_cjs.__publicField(ApiResourceBase, "TYPE");
199
192
  class ApiResource extends ApiResourceBase {
200
193
  async retrieve(id, params, options) {
201
194
  return this.resources.retrieve(typeof id === "string" ? { type: this.type(), id } : id, params, options);
@@ -1,4 +1,4 @@
1
1
  import './client.cjs';
2
- export { A as ApiResource, C as ApiResourceAdapter, v as ApiSingleton, t as ListMeta, L as ListResponse, M as Metadata, q as Resource, y as ResourceAdapter, r as ResourceCreate, B as ResourceFilter, p as ResourceId, u as ResourceRel, z as ResourceSort, R as ResourceType, s as ResourceUpdate, w as ResourcesConfig, x as ResourcesInitConfig, y as default } from './api-BYcswOJ0.cjs';
3
- import './interceptor-5MISI1yn.cjs';
2
+ export { bW as ApiResource, c0 as ApiResourceAdapter, bX as ApiSingleton, bU as ListMeta, bT as ListResponse, bS as Metadata, b as Resource, bZ as ResourceAdapter, c as ResourceCreate, b$ as ResourceFilter, R as ResourceId, bV as ResourceRel, b_ as ResourceSort, a as ResourceType, d as ResourceUpdate, bY as ResourcesConfig, e as ResourcesInitConfig, bZ as default } from './api-CB5Dy3ZC.cjs';
3
+ import './interceptor-D65i25Y7.cjs';
4
4
  import './types.cjs';
package/lib/resource.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import './client.js';
2
- export { A as ApiResource, C as ApiResourceAdapter, v as ApiSingleton, t as ListMeta, L as ListResponse, M as Metadata, q as Resource, y as ResourceAdapter, r as ResourceCreate, B as ResourceFilter, p as ResourceId, u as ResourceRel, z as ResourceSort, R as ResourceType, s as ResourceUpdate, w as ResourcesConfig, x as ResourcesInitConfig, y as default } from './api-Cknm0QL_.js';
3
- import './interceptor-5MISI1yn.js';
2
+ export { bW as ApiResource, c0 as ApiResourceAdapter, bX as ApiSingleton, bU as ListMeta, bT as ListResponse, bS as Metadata, b as Resource, bZ as ResourceAdapter, c as ResourceCreate, b$ as ResourceFilter, R as ResourceId, bV as ResourceRel, b_ as ResourceSort, a as ResourceType, d as ResourceUpdate, bY as ResourcesConfig, e as ResourcesInitConfig, bZ as default } from './api-C0JL7qFH.js';
3
+ import './interceptor-D65i25Y7.js';
4
4
  import './types.js';
package/lib/resource.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { __publicField, __privateAdd, __privateSet, __privateGet } from './chunk-AQ5VUG5P.js';
1
2
  import ApiClient from './client';
2
3
  import { denormalize, normalize } from './jsonapi';
3
4
  import { generateQueryStringParams, isParamsList } from './query';
@@ -5,16 +6,6 @@ import config from './config';
5
6
  import { SdkError } from './error';
6
7
  import Debug from './debug';
7
8
 
8
- var __defProp = Object.defineProperty;
9
- var __typeError = (msg) => {
10
- throw TypeError(msg);
11
- };
12
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
14
- var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
15
- var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
16
- 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);
17
- var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), member.set(obj, value), value);
18
9
  var _client, _config, _resources;
19
10
  const debug = Debug("resource");
20
11
  class ListResponse extends Array {
@@ -52,6 +43,8 @@ class ListResponse extends Array {
52
43
  }
53
44
  }
54
45
  const _ApiResourceAdapter = class _ApiResourceAdapter {
46
+ constructor() {
47
+ }
55
48
  static init(config2) {
56
49
  return _ApiResourceAdapter.adapter = new ResourceAdapter(config2);
57
50
  }
@@ -59,7 +52,7 @@ const _ApiResourceAdapter = class _ApiResourceAdapter {
59
52
  if (config2) return _ApiResourceAdapter.init(config2);
60
53
  else {
61
54
  if (_ApiResourceAdapter.adapter) return _ApiResourceAdapter.adapter;
62
- else throw new SdkError({ message: "RersourceAdapter not initialized" });
55
+ else throw new SdkError({ message: "Commerce Layer not initialized" });
63
56
  }
64
57
  }
65
58
  static config(config2) {
@@ -1,10 +1,8 @@
1
1
  'use strict';
2
2
 
3
+ var chunkJE77HYXB_cjs = require('../chunk-JE77HYXB.cjs');
3
4
  var resource = require('../resource');
4
5
 
5
- var __defProp = Object.defineProperty;
6
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7
- var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
8
6
  const _Addresses = class _Addresses extends resource.ApiResource {
9
7
  async create(resource, params, options) {
10
8
  return this.resources.create({ ...resource, type: _Addresses.TYPE }, params, options);
@@ -31,6 +29,12 @@ const _Addresses = class _Addresses extends resource.ApiResource {
31
29
  const _addressId = addressId.id || addressId;
32
30
  return this.resources.fetch({ type: "versions" }, `addresses/${_addressId}/versions`, params, options);
33
31
  }
32
+ async _add_tags(id, triggerValue, params, options) {
33
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Addresses.TYPE, _add_tags: triggerValue }, params, options);
34
+ }
35
+ async _remove_tags(id, triggerValue, params, options) {
36
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Addresses.TYPE, _remove_tags: triggerValue }, params, options);
37
+ }
34
38
  isAddress(resource) {
35
39
  return resource.type && resource.type === _Addresses.TYPE;
36
40
  }
@@ -44,9 +48,10 @@ const _Addresses = class _Addresses extends resource.ApiResource {
44
48
  return _Addresses.TYPE;
45
49
  }
46
50
  };
47
- __publicField(_Addresses, "TYPE", "addresses");
51
+ chunkJE77HYXB_cjs.__publicField(_Addresses, "TYPE", "addresses");
48
52
  let Addresses = _Addresses;
49
- var addresses_default = Addresses;
53
+ const instance = new Addresses();
54
+ var addresses_default = instance;
50
55
 
51
56
  module.exports = addresses_default;
52
57
 
@@ -1,4 +1,4 @@
1
- export { D as Address, E as AddressCreate, G as AddressSort, lk as AddressType, F as AddressUpdate, hy as default } from '../api-BYcswOJ0.cjs';
1
+ export { c1 as Address, c2 as AddressCreate, c4 as AddressSort, lk as AddressType, c3 as AddressUpdate, q as default } from '../api-CB5Dy3ZC.cjs';
2
2
  import '../client.cjs';
3
- import '../interceptor-5MISI1yn.cjs';
3
+ import '../interceptor-D65i25Y7.cjs';
4
4
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { D as Address, E as AddressCreate, G as AddressSort, lk as AddressType, F as AddressUpdate, hy as default } from '../api-Cknm0QL_.js';
1
+ export { c1 as Address, c2 as AddressCreate, c4 as AddressSort, lk as AddressType, c3 as AddressUpdate, q as default } from '../api-C0JL7qFH.js';
2
2
  import '../client.js';
3
- import '../interceptor-5MISI1yn.js';
3
+ import '../interceptor-D65i25Y7.js';
4
4
  import '../types.js';
@@ -1,8 +1,6 @@
1
+ import { __publicField } from '../chunk-AQ5VUG5P.js';
1
2
  import { ApiResource } from '../resource';
2
3
 
3
- var __defProp = Object.defineProperty;
4
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5
- var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
6
4
  const _Addresses = class _Addresses extends ApiResource {
7
5
  async create(resource, params, options) {
8
6
  return this.resources.create({ ...resource, type: _Addresses.TYPE }, params, options);
@@ -29,6 +27,12 @@ const _Addresses = class _Addresses extends ApiResource {
29
27
  const _addressId = addressId.id || addressId;
30
28
  return this.resources.fetch({ type: "versions" }, `addresses/${_addressId}/versions`, params, options);
31
29
  }
30
+ async _add_tags(id, triggerValue, params, options) {
31
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Addresses.TYPE, _add_tags: triggerValue }, params, options);
32
+ }
33
+ async _remove_tags(id, triggerValue, params, options) {
34
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Addresses.TYPE, _remove_tags: triggerValue }, params, options);
35
+ }
32
36
  isAddress(resource) {
33
37
  return resource.type && resource.type === _Addresses.TYPE;
34
38
  }
@@ -44,6 +48,7 @@ const _Addresses = class _Addresses extends ApiResource {
44
48
  };
45
49
  __publicField(_Addresses, "TYPE", "addresses");
46
50
  let Addresses = _Addresses;
47
- var addresses_default = Addresses;
51
+ const instance = new Addresses();
52
+ var addresses_default = instance;
48
53
 
49
54
  export { addresses_default as default };
@@ -1,10 +1,8 @@
1
1
  'use strict';
2
2
 
3
+ var chunkJE77HYXB_cjs = require('../chunk-JE77HYXB.cjs');
3
4
  var resource = require('../resource');
4
5
 
5
- var __defProp = Object.defineProperty;
6
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7
- var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
8
6
  const _Adjustments = class _Adjustments extends resource.ApiResource {
9
7
  async create(resource, params, options) {
10
8
  return this.resources.create({ ...resource, type: _Adjustments.TYPE }, params, options);
@@ -32,9 +30,10 @@ const _Adjustments = class _Adjustments extends resource.ApiResource {
32
30
  return _Adjustments.TYPE;
33
31
  }
34
32
  };
35
- __publicField(_Adjustments, "TYPE", "adjustments");
33
+ chunkJE77HYXB_cjs.__publicField(_Adjustments, "TYPE", "adjustments");
36
34
  let Adjustments = _Adjustments;
37
- var adjustments_default = Adjustments;
35
+ const instance = new Adjustments();
36
+ var adjustments_default = instance;
38
37
 
39
38
  module.exports = adjustments_default;
40
39
 
@@ -1,4 +1,4 @@
1
- export { H as Adjustment, I as AdjustmentCreate, K as AdjustmentSort, kq as AdjustmentType, J as AdjustmentUpdate, hz as default } from '../api-BYcswOJ0.cjs';
1
+ export { c5 as Adjustment, c6 as AdjustmentCreate, c8 as AdjustmentSort, kq as AdjustmentType, c7 as AdjustmentUpdate, t as default } from '../api-CB5Dy3ZC.cjs';
2
2
  import '../client.cjs';
3
- import '../interceptor-5MISI1yn.cjs';
3
+ import '../interceptor-D65i25Y7.cjs';
4
4
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { H as Adjustment, I as AdjustmentCreate, K as AdjustmentSort, kq as AdjustmentType, J as AdjustmentUpdate, hz as default } from '../api-Cknm0QL_.js';
1
+ export { c5 as Adjustment, c6 as AdjustmentCreate, c8 as AdjustmentSort, kq as AdjustmentType, c7 as AdjustmentUpdate, t as default } from '../api-C0JL7qFH.js';
2
2
  import '../client.js';
3
- import '../interceptor-5MISI1yn.js';
3
+ import '../interceptor-D65i25Y7.js';
4
4
  import '../types.js';
@@ -1,8 +1,6 @@
1
+ import { __publicField } from '../chunk-AQ5VUG5P.js';
1
2
  import { ApiResource } from '../resource';
2
3
 
3
- var __defProp = Object.defineProperty;
4
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5
- var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
6
4
  const _Adjustments = class _Adjustments extends ApiResource {
7
5
  async create(resource, params, options) {
8
6
  return this.resources.create({ ...resource, type: _Adjustments.TYPE }, params, options);
@@ -32,6 +30,7 @@ const _Adjustments = class _Adjustments extends ApiResource {
32
30
  };
33
31
  __publicField(_Adjustments, "TYPE", "adjustments");
34
32
  let Adjustments = _Adjustments;
35
- var adjustments_default = Adjustments;
33
+ const instance = new Adjustments();
34
+ var adjustments_default = instance;
36
35
 
37
36
  export { adjustments_default as default };
@@ -1,10 +1,8 @@
1
1
  'use strict';
2
2
 
3
+ var chunkJE77HYXB_cjs = require('../chunk-JE77HYXB.cjs');
3
4
  var resource = require('../resource');
4
5
 
5
- var __defProp = Object.defineProperty;
6
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7
- var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
8
6
  const _AdyenGateways = class _AdyenGateways extends resource.ApiResource {
9
7
  async create(resource, params, options) {
10
8
  return this.resources.create({ ...resource, type: _AdyenGateways.TYPE }, params, options);
@@ -40,9 +38,10 @@ const _AdyenGateways = class _AdyenGateways extends resource.ApiResource {
40
38
  return _AdyenGateways.TYPE;
41
39
  }
42
40
  };
43
- __publicField(_AdyenGateways, "TYPE", "adyen_gateways");
41
+ chunkJE77HYXB_cjs.__publicField(_AdyenGateways, "TYPE", "adyen_gateways");
44
42
  let AdyenGateways = _AdyenGateways;
45
- var adyen_gateways_default = AdyenGateways;
43
+ const instance = new AdyenGateways();
44
+ var adyen_gateways_default = instance;
46
45
 
47
46
  module.exports = adyen_gateways_default;
48
47
 
@@ -1,4 +1,4 @@
1
- export { N as AdyenGateway, O as AdyenGatewayCreate, S as AdyenGatewaySort, ll as AdyenGatewayType, P as AdyenGatewayUpdate, hA as default } from '../api-BYcswOJ0.cjs';
1
+ export { c9 as AdyenGateway, ca as AdyenGatewayCreate, cc as AdyenGatewaySort, ll as AdyenGatewayType, cb as AdyenGatewayUpdate, u as default } from '../api-CB5Dy3ZC.cjs';
2
2
  import '../client.cjs';
3
- import '../interceptor-5MISI1yn.cjs';
3
+ import '../interceptor-D65i25Y7.cjs';
4
4
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { N as AdyenGateway, O as AdyenGatewayCreate, S as AdyenGatewaySort, ll as AdyenGatewayType, P as AdyenGatewayUpdate, hA as default } from '../api-Cknm0QL_.js';
1
+ export { c9 as AdyenGateway, ca as AdyenGatewayCreate, cc as AdyenGatewaySort, ll as AdyenGatewayType, cb as AdyenGatewayUpdate, u as default } from '../api-C0JL7qFH.js';
2
2
  import '../client.js';
3
- import '../interceptor-5MISI1yn.js';
3
+ import '../interceptor-D65i25Y7.js';
4
4
  import '../types.js';
@@ -1,8 +1,6 @@
1
+ import { __publicField } from '../chunk-AQ5VUG5P.js';
1
2
  import { ApiResource } from '../resource';
2
3
 
3
- var __defProp = Object.defineProperty;
4
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5
- var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
6
4
  const _AdyenGateways = class _AdyenGateways extends ApiResource {
7
5
  async create(resource, params, options) {
8
6
  return this.resources.create({ ...resource, type: _AdyenGateways.TYPE }, params, options);
@@ -40,6 +38,7 @@ const _AdyenGateways = class _AdyenGateways extends ApiResource {
40
38
  };
41
39
  __publicField(_AdyenGateways, "TYPE", "adyen_gateways");
42
40
  let AdyenGateways = _AdyenGateways;
43
- var adyen_gateways_default = AdyenGateways;
41
+ const instance = new AdyenGateways();
42
+ var adyen_gateways_default = instance;
44
43
 
45
44
  export { adyen_gateways_default as default };
@@ -1,10 +1,8 @@
1
1
  'use strict';
2
2
 
3
+ var chunkJE77HYXB_cjs = require('../chunk-JE77HYXB.cjs');
3
4
  var resource = require('../resource');
4
5
 
5
- var __defProp = Object.defineProperty;
6
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7
- var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
8
6
  const _AdyenPayments = class _AdyenPayments extends resource.ApiResource {
9
7
  async create(resource, params, options) {
10
8
  return this.resources.create({ ...resource, type: _AdyenPayments.TYPE }, params, options);
@@ -46,9 +44,10 @@ const _AdyenPayments = class _AdyenPayments extends resource.ApiResource {
46
44
  return _AdyenPayments.TYPE;
47
45
  }
48
46
  };
49
- __publicField(_AdyenPayments, "TYPE", "adyen_payments");
47
+ chunkJE77HYXB_cjs.__publicField(_AdyenPayments, "TYPE", "adyen_payments");
50
48
  let AdyenPayments = _AdyenPayments;
51
- var adyen_payments_default = AdyenPayments;
49
+ const instance = new AdyenPayments();
50
+ var adyen_payments_default = instance;
52
51
 
53
52
  module.exports = adyen_payments_default;
54
53
 
@@ -1,4 +1,4 @@
1
- export { T as AdyenPayment, U as AdyenPaymentCreate, W as AdyenPaymentSort, jR as AdyenPaymentType, V as AdyenPaymentUpdate, hB as default } from '../api-BYcswOJ0.cjs';
1
+ export { cd as AdyenPayment, ce as AdyenPaymentCreate, cg as AdyenPaymentSort, jR as AdyenPaymentType, cf as AdyenPaymentUpdate, v as default } from '../api-CB5Dy3ZC.cjs';
2
2
  import '../client.cjs';
3
- import '../interceptor-5MISI1yn.cjs';
3
+ import '../interceptor-D65i25Y7.cjs';
4
4
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { T as AdyenPayment, U as AdyenPaymentCreate, W as AdyenPaymentSort, jR as AdyenPaymentType, V as AdyenPaymentUpdate, hB as default } from '../api-Cknm0QL_.js';
1
+ export { cd as AdyenPayment, ce as AdyenPaymentCreate, cg as AdyenPaymentSort, jR as AdyenPaymentType, cf as AdyenPaymentUpdate, v as default } from '../api-C0JL7qFH.js';
2
2
  import '../client.js';
3
- import '../interceptor-5MISI1yn.js';
3
+ import '../interceptor-D65i25Y7.js';
4
4
  import '../types.js';
@@ -1,8 +1,6 @@
1
+ import { __publicField } from '../chunk-AQ5VUG5P.js';
1
2
  import { ApiResource } from '../resource';
2
3
 
3
- var __defProp = Object.defineProperty;
4
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5
- var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
6
4
  const _AdyenPayments = class _AdyenPayments extends ApiResource {
7
5
  async create(resource, params, options) {
8
6
  return this.resources.create({ ...resource, type: _AdyenPayments.TYPE }, params, options);
@@ -46,6 +44,7 @@ const _AdyenPayments = class _AdyenPayments extends ApiResource {
46
44
  };
47
45
  __publicField(_AdyenPayments, "TYPE", "adyen_payments");
48
46
  let AdyenPayments = _AdyenPayments;
49
- var adyen_payments_default = AdyenPayments;
47
+ const instance = new AdyenPayments();
48
+ var adyen_payments_default = instance;
50
49
 
51
50
  export { adyen_payments_default as default };
@@ -1,10 +1,8 @@
1
1
  'use strict';
2
2
 
3
+ var chunkJE77HYXB_cjs = require('../chunk-JE77HYXB.cjs');
3
4
  var resource = require('../resource');
4
5
 
5
- var __defProp = Object.defineProperty;
6
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7
- var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
8
6
  const _Applications = class _Applications extends resource.ApiSingleton {
9
7
  isApplication(resource) {
10
8
  return resource.type && resource.type === _Applications.TYPE;
@@ -22,9 +20,10 @@ const _Applications = class _Applications extends resource.ApiSingleton {
22
20
  return "application";
23
21
  }
24
22
  };
25
- __publicField(_Applications, "TYPE", "applications");
23
+ chunkJE77HYXB_cjs.__publicField(_Applications, "TYPE", "applications");
26
24
  let Applications = _Applications;
27
- var applications_default = Applications;
25
+ const instance = new Applications();
26
+ var applications_default = instance;
28
27
 
29
28
  module.exports = applications_default;
30
29
 
@@ -1,4 +1,4 @@
1
- export { X as Application, Y as ApplicationSort, lm as ApplicationType, hC as default } from '../api-BYcswOJ0.cjs';
1
+ export { ch as Application, ci as ApplicationSort, lm as ApplicationType, w as default } from '../api-CB5Dy3ZC.cjs';
2
2
  import '../client.cjs';
3
- import '../interceptor-5MISI1yn.cjs';
3
+ import '../interceptor-D65i25Y7.cjs';
4
4
  import '../types.cjs';