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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (335) hide show
  1. package/lib/{api-Cn4znEVC.d.ts → api-DB1n06hG.d.ts} +12 -7
  2. package/lib/{api-1MadbJ5r.d.cts → api-DFBhmbb1.d.cts} +12 -7
  3. package/lib/api.cjs +8 -8
  4. package/lib/api.d.cts +1 -1
  5. package/lib/api.d.ts +1 -1
  6. package/lib/api.js +4 -4
  7. package/lib/bundle.cjs +10 -10
  8. package/lib/bundle.d.cts +1 -1
  9. package/lib/bundle.d.ts +1 -1
  10. package/lib/bundle.js +5 -5
  11. package/lib/{chunk-FAX5NCHT.cjs → chunk-47OW2LZH.cjs} +4 -4
  12. package/lib/{chunk-FAX5NCHT.cjs.map → chunk-47OW2LZH.cjs.map} +1 -1
  13. package/lib/{chunk-HWCQ4G5Z.js → chunk-7GP6774Q.js} +3 -3
  14. package/lib/{chunk-HWCQ4G5Z.js.map → chunk-7GP6774Q.js.map} +1 -1
  15. package/lib/{chunk-DHGTIF6A.cjs → chunk-BRWPB33S.cjs} +2 -2
  16. package/lib/chunk-BRWPB33S.cjs.map +1 -0
  17. package/lib/{chunk-I4EPVSJX.js → chunk-IUGXRDL5.js} +3 -3
  18. package/lib/{chunk-I4EPVSJX.js.map → chunk-IUGXRDL5.js.map} +1 -1
  19. package/lib/{chunk-7LKA7FXN.js → chunk-NV364EJH.js} +2 -2
  20. package/lib/chunk-NV364EJH.js.map +1 -0
  21. package/lib/{chunk-A77RAUIU.cjs → chunk-O3UJT5JJ.cjs} +2 -2
  22. package/lib/chunk-O3UJT5JJ.cjs.map +1 -0
  23. package/lib/{chunk-QIN5DNKJ.cjs → chunk-OF4M6NEX.cjs} +2 -2
  24. package/lib/chunk-OF4M6NEX.cjs.map +1 -0
  25. package/lib/{chunk-WKIAJGJO.js → chunk-RDXEF27B.js} +2 -2
  26. package/lib/chunk-RDXEF27B.js.map +1 -0
  27. package/lib/{chunk-CSCAHLQ3.cjs → chunk-TGINKJDS.cjs} +2 -2
  28. package/lib/chunk-TGINKJDS.cjs.map +1 -0
  29. package/lib/{chunk-FWBO3MH4.js → chunk-UFW7KJWK.js} +2 -2
  30. package/lib/chunk-UFW7KJWK.js.map +1 -0
  31. package/lib/{chunk-KUJFQHAN.js → chunk-Y35I6KPP.js} +2 -2
  32. package/lib/chunk-Y35I6KPP.js.map +1 -0
  33. package/lib/{chunk-I7LHMPOY.cjs → chunk-YEMLHMYR.cjs} +3 -3
  34. package/lib/{chunk-I7LHMPOY.cjs.map → chunk-YEMLHMYR.cjs.map} +1 -1
  35. package/lib/commercelayer.cjs +5 -5
  36. package/lib/commercelayer.d.cts +3 -3
  37. package/lib/commercelayer.d.ts +3 -3
  38. package/lib/commercelayer.js +1 -1
  39. package/lib/enum.d.cts +1 -1
  40. package/lib/enum.d.ts +1 -1
  41. package/lib/index.cjs +13 -13
  42. package/lib/index.d.cts +1 -1
  43. package/lib/index.d.ts +1 -1
  44. package/lib/index.js +6 -6
  45. package/lib/jsonapi.d.cts +1 -1
  46. package/lib/jsonapi.d.ts +1 -1
  47. package/lib/model.d.cts +1 -1
  48. package/lib/model.d.ts +1 -1
  49. package/lib/query.d.cts +1 -1
  50. package/lib/query.d.ts +1 -1
  51. package/lib/resource.d.cts +1 -1
  52. package/lib/resource.d.ts +1 -1
  53. package/lib/resources/addresses.d.cts +2 -2
  54. package/lib/resources/addresses.d.ts +1 -1
  55. package/lib/resources/adjustments.d.cts +2 -2
  56. package/lib/resources/adjustments.d.ts +1 -1
  57. package/lib/resources/adyen_gateways.d.cts +2 -2
  58. package/lib/resources/adyen_gateways.d.ts +1 -1
  59. package/lib/resources/adyen_payments.cjs +2 -2
  60. package/lib/resources/adyen_payments.d.cts +2 -2
  61. package/lib/resources/adyen_payments.d.ts +1 -1
  62. package/lib/resources/adyen_payments.js +1 -1
  63. package/lib/resources/applications.d.cts +2 -2
  64. package/lib/resources/applications.d.ts +1 -1
  65. package/lib/resources/attachments.d.cts +2 -2
  66. package/lib/resources/attachments.d.ts +1 -1
  67. package/lib/resources/authorizations.d.cts +2 -2
  68. package/lib/resources/authorizations.d.ts +1 -1
  69. package/lib/resources/avalara_accounts.d.cts +2 -2
  70. package/lib/resources/avalara_accounts.d.ts +1 -1
  71. package/lib/resources/axerve_gateways.d.cts +2 -2
  72. package/lib/resources/axerve_gateways.d.ts +1 -1
  73. package/lib/resources/axerve_payments.d.cts +2 -2
  74. package/lib/resources/axerve_payments.d.ts +1 -1
  75. package/lib/resources/bing_geocoders.d.cts +2 -2
  76. package/lib/resources/bing_geocoders.d.ts +1 -1
  77. package/lib/resources/braintree_gateways.d.cts +2 -2
  78. package/lib/resources/braintree_gateways.d.ts +1 -1
  79. package/lib/resources/braintree_payments.d.cts +2 -2
  80. package/lib/resources/braintree_payments.d.ts +1 -1
  81. package/lib/resources/bundles.d.cts +2 -2
  82. package/lib/resources/bundles.d.ts +1 -1
  83. package/lib/resources/buy_x_pay_y_promotions.d.cts +2 -2
  84. package/lib/resources/buy_x_pay_y_promotions.d.ts +1 -1
  85. package/lib/resources/captures.d.cts +2 -2
  86. package/lib/resources/captures.d.ts +1 -1
  87. package/lib/resources/carrier_accounts.d.cts +2 -2
  88. package/lib/resources/carrier_accounts.d.ts +1 -1
  89. package/lib/resources/checkout_com_gateways.d.cts +2 -2
  90. package/lib/resources/checkout_com_gateways.d.ts +1 -1
  91. package/lib/resources/checkout_com_payments.d.cts +2 -2
  92. package/lib/resources/checkout_com_payments.d.ts +1 -1
  93. package/lib/resources/cleanups.d.cts +2 -2
  94. package/lib/resources/cleanups.d.ts +1 -1
  95. package/lib/resources/coupon_codes_promotion_rules.d.cts +2 -2
  96. package/lib/resources/coupon_codes_promotion_rules.d.ts +1 -1
  97. package/lib/resources/coupon_recipients.d.cts +2 -2
  98. package/lib/resources/coupon_recipients.d.ts +1 -1
  99. package/lib/resources/coupons.d.cts +2 -2
  100. package/lib/resources/coupons.d.ts +1 -1
  101. package/lib/resources/custom_promotion_rules.d.cts +2 -2
  102. package/lib/resources/custom_promotion_rules.d.ts +1 -1
  103. package/lib/resources/customer_addresses.d.cts +2 -2
  104. package/lib/resources/customer_addresses.d.ts +1 -1
  105. package/lib/resources/customer_groups.d.cts +2 -2
  106. package/lib/resources/customer_groups.d.ts +1 -1
  107. package/lib/resources/customer_password_resets.d.cts +2 -2
  108. package/lib/resources/customer_password_resets.d.ts +1 -1
  109. package/lib/resources/customer_payment_sources.d.cts +2 -2
  110. package/lib/resources/customer_payment_sources.d.ts +1 -1
  111. package/lib/resources/customer_subscriptions.d.cts +2 -2
  112. package/lib/resources/customer_subscriptions.d.ts +1 -1
  113. package/lib/resources/customers.d.cts +2 -2
  114. package/lib/resources/customers.d.ts +1 -1
  115. package/lib/resources/delivery_lead_times.d.cts +2 -2
  116. package/lib/resources/delivery_lead_times.d.ts +1 -1
  117. package/lib/resources/discount_engine_items.d.cts +2 -2
  118. package/lib/resources/discount_engine_items.d.ts +1 -1
  119. package/lib/resources/discount_engines.d.cts +2 -2
  120. package/lib/resources/discount_engines.d.ts +1 -1
  121. package/lib/resources/easypost_pickups.d.cts +2 -2
  122. package/lib/resources/easypost_pickups.d.ts +1 -1
  123. package/lib/resources/event_callbacks.d.cts +2 -2
  124. package/lib/resources/event_callbacks.d.ts +1 -1
  125. package/lib/resources/event_stores.d.cts +2 -2
  126. package/lib/resources/event_stores.d.ts +1 -1
  127. package/lib/resources/events.d.cts +2 -2
  128. package/lib/resources/events.d.ts +1 -1
  129. package/lib/resources/exports.cjs +2 -2
  130. package/lib/resources/exports.d.cts +2 -2
  131. package/lib/resources/exports.d.ts +1 -1
  132. package/lib/resources/exports.js +1 -1
  133. package/lib/resources/external_gateways.d.cts +2 -2
  134. package/lib/resources/external_gateways.d.ts +1 -1
  135. package/lib/resources/external_payments.d.cts +2 -2
  136. package/lib/resources/external_payments.d.ts +1 -1
  137. package/lib/resources/external_promotions.d.cts +2 -2
  138. package/lib/resources/external_promotions.d.ts +1 -1
  139. package/lib/resources/external_tax_calculators.d.cts +2 -2
  140. package/lib/resources/external_tax_calculators.d.ts +1 -1
  141. package/lib/resources/fixed_amount_promotions.d.cts +2 -2
  142. package/lib/resources/fixed_amount_promotions.d.ts +1 -1
  143. package/lib/resources/fixed_price_promotions.d.cts +2 -2
  144. package/lib/resources/fixed_price_promotions.d.ts +1 -1
  145. package/lib/resources/flex_promotions.d.cts +2 -2
  146. package/lib/resources/flex_promotions.d.ts +1 -1
  147. package/lib/resources/free_gift_promotions.d.cts +2 -2
  148. package/lib/resources/free_gift_promotions.d.ts +1 -1
  149. package/lib/resources/free_shipping_promotions.d.cts +2 -2
  150. package/lib/resources/free_shipping_promotions.d.ts +1 -1
  151. package/lib/resources/geocoders.d.cts +2 -2
  152. package/lib/resources/geocoders.d.ts +1 -1
  153. package/lib/resources/gift_card_recipients.d.cts +2 -2
  154. package/lib/resources/gift_card_recipients.d.ts +1 -1
  155. package/lib/resources/gift_cards.d.cts +2 -2
  156. package/lib/resources/gift_cards.d.ts +1 -1
  157. package/lib/resources/google_geocoders.d.cts +2 -2
  158. package/lib/resources/google_geocoders.d.ts +1 -1
  159. package/lib/resources/imports.cjs +2 -2
  160. package/lib/resources/imports.d.cts +2 -2
  161. package/lib/resources/imports.d.ts +1 -1
  162. package/lib/resources/imports.js +1 -1
  163. package/lib/resources/in_stock_subscriptions.d.cts +2 -2
  164. package/lib/resources/in_stock_subscriptions.d.ts +1 -1
  165. package/lib/resources/inventory_models.d.cts +2 -2
  166. package/lib/resources/inventory_models.d.ts +1 -1
  167. package/lib/resources/inventory_return_locations.d.cts +2 -2
  168. package/lib/resources/inventory_return_locations.d.ts +1 -1
  169. package/lib/resources/inventory_stock_locations.d.cts +2 -2
  170. package/lib/resources/inventory_stock_locations.d.ts +1 -1
  171. package/lib/resources/klarna_gateways.d.cts +2 -2
  172. package/lib/resources/klarna_gateways.d.ts +1 -1
  173. package/lib/resources/klarna_payments.d.cts +2 -2
  174. package/lib/resources/klarna_payments.d.ts +1 -1
  175. package/lib/resources/line_item_options.d.cts +2 -2
  176. package/lib/resources/line_item_options.d.ts +1 -1
  177. package/lib/resources/line_items.d.cts +2 -2
  178. package/lib/resources/line_items.d.ts +1 -1
  179. package/lib/resources/links.d.cts +2 -2
  180. package/lib/resources/links.d.ts +1 -1
  181. package/lib/resources/manual_gateways.d.cts +2 -2
  182. package/lib/resources/manual_gateways.d.ts +1 -1
  183. package/lib/resources/manual_tax_calculators.d.cts +2 -2
  184. package/lib/resources/manual_tax_calculators.d.ts +1 -1
  185. package/lib/resources/markets.d.cts +2 -2
  186. package/lib/resources/markets.d.ts +1 -1
  187. package/lib/resources/merchants.d.cts +2 -2
  188. package/lib/resources/merchants.d.ts +1 -1
  189. package/lib/resources/notifications.d.cts +2 -2
  190. package/lib/resources/notifications.d.ts +1 -1
  191. package/lib/resources/order_amount_promotion_rules.d.cts +2 -2
  192. package/lib/resources/order_amount_promotion_rules.d.ts +1 -1
  193. package/lib/resources/order_copies.d.cts +2 -2
  194. package/lib/resources/order_copies.d.ts +1 -1
  195. package/lib/resources/order_factories.d.cts +2 -2
  196. package/lib/resources/order_factories.d.ts +1 -1
  197. package/lib/resources/order_subscription_items.d.cts +2 -2
  198. package/lib/resources/order_subscription_items.d.ts +1 -1
  199. package/lib/resources/order_subscriptions.d.cts +2 -2
  200. package/lib/resources/order_subscriptions.d.ts +1 -1
  201. package/lib/resources/orders.d.cts +2 -2
  202. package/lib/resources/orders.d.ts +1 -1
  203. package/lib/resources/organizations.d.cts +2 -2
  204. package/lib/resources/organizations.d.ts +1 -1
  205. package/lib/resources/packages.d.cts +2 -2
  206. package/lib/resources/packages.d.ts +1 -1
  207. package/lib/resources/parcel_line_items.d.cts +2 -2
  208. package/lib/resources/parcel_line_items.d.ts +1 -1
  209. package/lib/resources/parcels.d.cts +2 -2
  210. package/lib/resources/parcels.d.ts +1 -1
  211. package/lib/resources/payment_gateways.d.cts +2 -2
  212. package/lib/resources/payment_gateways.d.ts +1 -1
  213. package/lib/resources/payment_methods.d.cts +2 -2
  214. package/lib/resources/payment_methods.d.ts +1 -1
  215. package/lib/resources/payment_options.d.cts +2 -2
  216. package/lib/resources/payment_options.d.ts +1 -1
  217. package/lib/resources/paypal_gateways.d.cts +2 -2
  218. package/lib/resources/paypal_gateways.d.ts +1 -1
  219. package/lib/resources/paypal_payments.d.cts +2 -2
  220. package/lib/resources/paypal_payments.d.ts +1 -1
  221. package/lib/resources/percentage_discount_promotions.d.cts +2 -2
  222. package/lib/resources/percentage_discount_promotions.d.ts +1 -1
  223. package/lib/resources/pickups.d.cts +2 -2
  224. package/lib/resources/pickups.d.ts +1 -1
  225. package/lib/resources/price_frequency_tiers.d.cts +2 -2
  226. package/lib/resources/price_frequency_tiers.d.ts +1 -1
  227. package/lib/resources/price_list_schedulers.d.cts +2 -2
  228. package/lib/resources/price_list_schedulers.d.ts +1 -1
  229. package/lib/resources/price_lists.d.cts +2 -2
  230. package/lib/resources/price_lists.d.ts +1 -1
  231. package/lib/resources/price_tiers.d.cts +2 -2
  232. package/lib/resources/price_tiers.d.ts +1 -1
  233. package/lib/resources/price_volume_tiers.d.cts +2 -2
  234. package/lib/resources/price_volume_tiers.d.ts +1 -1
  235. package/lib/resources/prices.d.cts +2 -2
  236. package/lib/resources/prices.d.ts +1 -1
  237. package/lib/resources/promotion_rules.d.cts +2 -2
  238. package/lib/resources/promotion_rules.d.ts +1 -1
  239. package/lib/resources/promotions.d.cts +2 -2
  240. package/lib/resources/promotions.d.ts +1 -1
  241. package/lib/resources/recurring_order_copies.d.cts +2 -2
  242. package/lib/resources/recurring_order_copies.d.ts +1 -1
  243. package/lib/resources/refunds.d.cts +2 -2
  244. package/lib/resources/refunds.d.ts +1 -1
  245. package/lib/resources/reserved_stocks.d.cts +2 -2
  246. package/lib/resources/reserved_stocks.d.ts +1 -1
  247. package/lib/resources/resource_errors.d.cts +2 -2
  248. package/lib/resources/resource_errors.d.ts +1 -1
  249. package/lib/resources/return_line_items.d.cts +2 -2
  250. package/lib/resources/return_line_items.d.ts +1 -1
  251. package/lib/resources/returns.d.cts +2 -2
  252. package/lib/resources/returns.d.ts +1 -1
  253. package/lib/resources/satispay_gateways.d.cts +2 -2
  254. package/lib/resources/satispay_gateways.d.ts +1 -1
  255. package/lib/resources/satispay_payments.d.cts +2 -2
  256. package/lib/resources/satispay_payments.d.ts +1 -1
  257. package/lib/resources/shipments.d.cts +2 -2
  258. package/lib/resources/shipments.d.ts +1 -1
  259. package/lib/resources/shipping_categories.d.cts +2 -2
  260. package/lib/resources/shipping_categories.d.ts +1 -1
  261. package/lib/resources/shipping_method_tiers.d.cts +2 -2
  262. package/lib/resources/shipping_method_tiers.d.ts +1 -1
  263. package/lib/resources/shipping_methods.d.cts +2 -2
  264. package/lib/resources/shipping_methods.d.ts +1 -1
  265. package/lib/resources/shipping_weight_tiers.d.cts +2 -2
  266. package/lib/resources/shipping_weight_tiers.d.ts +1 -1
  267. package/lib/resources/shipping_zones.d.cts +2 -2
  268. package/lib/resources/shipping_zones.d.ts +1 -1
  269. package/lib/resources/sku_list_items.d.cts +2 -2
  270. package/lib/resources/sku_list_items.d.ts +1 -1
  271. package/lib/resources/sku_list_promotion_rules.d.cts +2 -2
  272. package/lib/resources/sku_list_promotion_rules.d.ts +1 -1
  273. package/lib/resources/sku_lists.d.cts +2 -2
  274. package/lib/resources/sku_lists.d.ts +1 -1
  275. package/lib/resources/sku_options.d.cts +2 -2
  276. package/lib/resources/sku_options.d.ts +1 -1
  277. package/lib/resources/skus.d.cts +2 -2
  278. package/lib/resources/skus.d.ts +1 -1
  279. package/lib/resources/stock_items.d.cts +2 -2
  280. package/lib/resources/stock_items.d.ts +1 -1
  281. package/lib/resources/stock_line_items.d.cts +2 -2
  282. package/lib/resources/stock_line_items.d.ts +1 -1
  283. package/lib/resources/stock_locations.d.cts +2 -2
  284. package/lib/resources/stock_locations.d.ts +1 -1
  285. package/lib/resources/stock_reservations.d.cts +2 -2
  286. package/lib/resources/stock_reservations.d.ts +1 -1
  287. package/lib/resources/stock_transfers.d.cts +2 -2
  288. package/lib/resources/stock_transfers.d.ts +1 -1
  289. package/lib/resources/stores.d.cts +2 -2
  290. package/lib/resources/stores.d.ts +1 -1
  291. package/lib/resources/stripe_gateways.d.cts +2 -2
  292. package/lib/resources/stripe_gateways.d.ts +1 -1
  293. package/lib/resources/stripe_payments.d.cts +2 -2
  294. package/lib/resources/stripe_payments.d.ts +1 -1
  295. package/lib/resources/stripe_tax_accounts.d.cts +2 -2
  296. package/lib/resources/stripe_tax_accounts.d.ts +1 -1
  297. package/lib/resources/subscription_models.d.cts +2 -2
  298. package/lib/resources/subscription_models.d.ts +1 -1
  299. package/lib/resources/tags.d.cts +2 -2
  300. package/lib/resources/tags.d.ts +1 -1
  301. package/lib/resources/talon_one_accounts.d.cts +2 -2
  302. package/lib/resources/talon_one_accounts.d.ts +1 -1
  303. package/lib/resources/tax_calculators.d.cts +2 -2
  304. package/lib/resources/tax_calculators.d.ts +1 -1
  305. package/lib/resources/tax_categories.d.cts +2 -2
  306. package/lib/resources/tax_categories.d.ts +1 -1
  307. package/lib/resources/tax_rules.d.cts +2 -2
  308. package/lib/resources/tax_rules.d.ts +1 -1
  309. package/lib/resources/taxjar_accounts.d.cts +2 -2
  310. package/lib/resources/taxjar_accounts.d.ts +1 -1
  311. package/lib/resources/transactions.d.cts +2 -2
  312. package/lib/resources/transactions.d.ts +1 -1
  313. package/lib/resources/vertex_accounts.cjs +2 -2
  314. package/lib/resources/vertex_accounts.d.cts +2 -2
  315. package/lib/resources/vertex_accounts.d.ts +1 -1
  316. package/lib/resources/vertex_accounts.js +1 -1
  317. package/lib/resources/voids.d.cts +2 -2
  318. package/lib/resources/voids.d.ts +1 -1
  319. package/lib/resources/webhooks.d.cts +2 -2
  320. package/lib/resources/webhooks.d.ts +1 -1
  321. package/lib/resources/wire_transfers.d.cts +2 -2
  322. package/lib/resources/wire_transfers.d.ts +1 -1
  323. package/lib/static.cjs +3 -3
  324. package/lib/static.d.cts +1 -1
  325. package/lib/static.d.ts +1 -1
  326. package/lib/static.js +2 -2
  327. package/package.json +2 -2
  328. package/lib/chunk-7LKA7FXN.js.map +0 -1
  329. package/lib/chunk-A77RAUIU.cjs.map +0 -1
  330. package/lib/chunk-CSCAHLQ3.cjs.map +0 -1
  331. package/lib/chunk-DHGTIF6A.cjs.map +0 -1
  332. package/lib/chunk-FWBO3MH4.js.map +0 -1
  333. package/lib/chunk-KUJFQHAN.js.map +0 -1
  334. package/lib/chunk-QIN5DNKJ.cjs.map +0 -1
  335. package/lib/chunk-WKIAJGJO.js.map +0 -1
@@ -1,7 +1,7 @@
1
- import _default from '../api-1MadbJ5r.cjs';
1
+ import _default from '../api-DFBhmbb1.cjs';
2
2
  // @ts-ignore
3
3
  export = _default;
4
- export { l2 as Transaction, l3 as TransactionSort, l4 as TransactionType, l5 as Transactions } from '../api-1MadbJ5r.cjs';
4
+ export { l2 as Transaction, l3 as TransactionSort, l4 as TransactionType, l5 as Transactions } from '../api-DFBhmbb1.cjs';
5
5
  import '../client.cjs';
6
6
  import '../fetch-DQyRNxTg.cjs';
7
7
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { l2 as Transaction, l3 as TransactionSort, l4 as TransactionType, l5 as Transactions, nz as default } from '../api-Cn4znEVC.js';
1
+ export { l2 as Transaction, l3 as TransactionSort, l4 as TransactionType, l5 as Transactions, nz as default } from '../api-DB1n06hG.js';
2
2
  import '../client.js';
3
3
  import '../fetch-DQyRNxTg.js';
4
4
  import '../types.js';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkA77RAUIU_cjs = require('../chunk-A77RAUIU.cjs');
3
+ var chunkO3UJT5JJ_cjs = require('../chunk-O3UJT5JJ.cjs');
4
4
  require('../chunk-L7FT6NDZ.cjs');
5
5
  require('../chunk-3GOADUES.cjs');
6
6
  require('../chunk-UQQTNQX3.cjs');
@@ -13,7 +13,7 @@ require('../chunk-JEQ2X3Z6.cjs');
13
13
 
14
14
 
15
15
 
16
- module.exports = chunkA77RAUIU_cjs.vertex_accounts_default;
16
+ module.exports = chunkO3UJT5JJ_cjs.vertex_accounts_default;
17
17
  //# sourceMappingURL=vertex_accounts.cjs.map
18
18
 
19
19
  module.exports = exports.default;
@@ -1,7 +1,7 @@
1
- import _default from '../api-1MadbJ5r.cjs';
1
+ import _default from '../api-DFBhmbb1.cjs';
2
2
  // @ts-ignore
3
3
  export = _default;
4
- export { l8 as VertexAccount, l9 as VertexAccountCreate, la as VertexAccountSort, lb as VertexAccountType, lc as VertexAccountUpdate, ld as VertexAccounts } from '../api-1MadbJ5r.cjs';
4
+ export { l8 as VertexAccount, l9 as VertexAccountCreate, la as VertexAccountSort, lb as VertexAccountType, lc as VertexAccountUpdate, ld as VertexAccounts } from '../api-DFBhmbb1.cjs';
5
5
  import '../client.cjs';
6
6
  import '../fetch-DQyRNxTg.cjs';
7
7
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { l8 as VertexAccount, l9 as VertexAccountCreate, la as VertexAccountSort, lb as VertexAccountType, lc as VertexAccountUpdate, ld as VertexAccounts, nA as default } from '../api-Cn4znEVC.js';
1
+ export { l8 as VertexAccount, l9 as VertexAccountCreate, la as VertexAccountSort, lb as VertexAccountType, lc as VertexAccountUpdate, ld as VertexAccounts, nA as default } from '../api-DB1n06hG.js';
2
2
  import '../client.js';
3
3
  import '../fetch-DQyRNxTg.js';
4
4
  import '../types.js';
@@ -1,4 +1,4 @@
1
- export { vertex_accounts_default as default } from '../chunk-KUJFQHAN.js';
1
+ export { vertex_accounts_default as default } from '../chunk-Y35I6KPP.js';
2
2
  import '../chunk-YRCCY6RV.js';
3
3
  import '../chunk-2D7XHAVQ.js';
4
4
  import '../chunk-IKCYKGYL.js';
@@ -1,7 +1,7 @@
1
- import _default from '../api-1MadbJ5r.cjs';
1
+ import _default from '../api-DFBhmbb1.cjs';
2
2
  // @ts-ignore
3
3
  export = _default;
4
- export { le as Void, lf as VoidSort, lg as VoidType, lh as VoidUpdate, li as Voids } from '../api-1MadbJ5r.cjs';
4
+ export { le as Void, lf as VoidSort, lg as VoidType, lh as VoidUpdate, li as Voids } from '../api-DFBhmbb1.cjs';
5
5
  import '../client.cjs';
6
6
  import '../fetch-DQyRNxTg.cjs';
7
7
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { le as Void, lf as VoidSort, lg as VoidType, lh as VoidUpdate, li as Voids, nB as default } from '../api-Cn4znEVC.js';
1
+ export { le as Void, lf as VoidSort, lg as VoidType, lh as VoidUpdate, li as Voids, nB as default } from '../api-DB1n06hG.js';
2
2
  import '../client.js';
3
3
  import '../fetch-DQyRNxTg.js';
4
4
  import '../types.js';
@@ -1,7 +1,7 @@
1
- import _default from '../api-1MadbJ5r.cjs';
1
+ import _default from '../api-DFBhmbb1.cjs';
2
2
  // @ts-ignore
3
3
  export = _default;
4
- export { lj as Webhook, lk as WebhookCreate, ll as WebhookSort, lm as WebhookType, ln as WebhookUpdate, lo as Webhooks } from '../api-1MadbJ5r.cjs';
4
+ export { lj as Webhook, lk as WebhookCreate, ll as WebhookSort, lm as WebhookType, ln as WebhookUpdate, lo as Webhooks } from '../api-DFBhmbb1.cjs';
5
5
  import '../client.cjs';
6
6
  import '../fetch-DQyRNxTg.cjs';
7
7
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { lj as Webhook, lk as WebhookCreate, ll as WebhookSort, lm as WebhookType, ln as WebhookUpdate, lo as Webhooks, nC as default } from '../api-Cn4znEVC.js';
1
+ export { lj as Webhook, lk as WebhookCreate, ll as WebhookSort, lm as WebhookType, ln as WebhookUpdate, lo as Webhooks, nC as default } from '../api-DB1n06hG.js';
2
2
  import '../client.js';
3
3
  import '../fetch-DQyRNxTg.js';
4
4
  import '../types.js';
@@ -1,7 +1,7 @@
1
- import _default from '../api-1MadbJ5r.cjs';
1
+ import _default from '../api-DFBhmbb1.cjs';
2
2
  // @ts-ignore
3
3
  export = _default;
4
- export { lp as WireTransfer, lq as WireTransferCreate, lr as WireTransferSort, ls as WireTransferType, lt as WireTransferUpdate, lu as WireTransfers } from '../api-1MadbJ5r.cjs';
4
+ export { lp as WireTransfer, lq as WireTransferCreate, lr as WireTransferSort, ls as WireTransferType, lt as WireTransferUpdate, lu as WireTransfers } from '../api-DFBhmbb1.cjs';
5
5
  import '../client.cjs';
6
6
  import '../fetch-DQyRNxTg.cjs';
7
7
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { lp as WireTransfer, lq as WireTransferCreate, lr as WireTransferSort, ls as WireTransferType, lt as WireTransferUpdate, lu as WireTransfers, nD as default } from '../api-Cn4znEVC.js';
1
+ export { lp as WireTransfer, lq as WireTransferCreate, lr as WireTransferSort, ls as WireTransferType, lt as WireTransferUpdate, lu as WireTransfers, nD as default } from '../api-DB1n06hG.js';
2
2
  import '../client.js';
3
3
  import '../fetch-DQyRNxTg.js';
4
4
  import '../types.js';
package/lib/static.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkFAX5NCHT_cjs = require('./chunk-FAX5NCHT.cjs');
4
- require('./chunk-I7LHMPOY.cjs');
3
+ var chunk47OW2LZH_cjs = require('./chunk-47OW2LZH.cjs');
4
+ require('./chunk-YEMLHMYR.cjs');
5
5
  require('./chunk-L7FT6NDZ.cjs');
6
6
  require('./chunk-3GOADUES.cjs');
7
7
  require('./chunk-UQQTNQX3.cjs');
@@ -16,7 +16,7 @@ require('./chunk-JEQ2X3Z6.cjs');
16
16
 
17
17
  Object.defineProperty(exports, "CommerceLayerStatic", {
18
18
  enumerable: true,
19
- get: function () { return chunkFAX5NCHT_cjs.CommerceLayerStatic; }
19
+ get: function () { return chunk47OW2LZH_cjs.CommerceLayerStatic; }
20
20
  });
21
21
  //# sourceMappingURL=static.cjs.map
22
22
  //# sourceMappingURL=static.cjs.map
package/lib/static.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { i2 as ResourceTypeLock } from './api-1MadbJ5r.cjs';
1
+ import { i2 as ResourceTypeLock } from './api-DFBhmbb1.cjs';
2
2
  import { SdkError, ApiError } from './error.cjs';
3
3
  import './client.cjs';
4
4
  import './fetch-DQyRNxTg.cjs';
package/lib/static.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { i2 as ResourceTypeLock } from './api-Cn4znEVC.js';
1
+ import { i2 as ResourceTypeLock } from './api-DB1n06hG.js';
2
2
  import { SdkError, ApiError } from './error.js';
3
3
  import './client.js';
4
4
  import './fetch-DQyRNxTg.js';
package/lib/static.js CHANGED
@@ -1,5 +1,5 @@
1
- export { CommerceLayerStatic } from './chunk-HWCQ4G5Z.js';
2
- import './chunk-I4EPVSJX.js';
1
+ export { CommerceLayerStatic } from './chunk-7GP6774Q.js';
2
+ import './chunk-IUGXRDL5.js';
3
3
  import './chunk-YRCCY6RV.js';
4
4
  import './chunk-2D7XHAVQ.js';
5
5
  import './chunk-IKCYKGYL.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercelayer/sdk",
3
- "version": "8.0.0-beta.5",
3
+ "version": "8.0.0-beta.6",
4
4
  "main": "lib/index.cjs",
5
5
  "types": "lib/index.d.ts",
6
6
  "module": "lib/index.js",
@@ -57,7 +57,7 @@
57
57
  "node": ">=20"
58
58
  },
59
59
  "devDependencies": {
60
- "@biomejs/biome": "^2.4.15",
60
+ "@biomejs/biome": "^2.4.16",
61
61
  "@commercelayer/js-auth": "^7.4.2",
62
62
  "@semantic-release/changelog": "^6.0.3",
63
63
  "@semantic-release/git": "^10.0.1",
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/resources/exports.ts"],"names":[],"mappings":";;;AAsKA,IAAM,OAAA,GAAN,MAAM,QAAA,SAAgB,WAAA,CAAoB;AAAA,EAEzC,OAAgB,IAAA,GAAmB,SAAA;AAAA,EAEnC,MAAM,MAAA,CAAO,QAAA,EAAwB,MAAA,EAAsC,OAAA,EAA4C;AACtH,IAAA,OAAO,IAAA,CAA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AO,EAAA,EAAqB,MAAA,EAAsC,OAAA,EAA4C;AACnH,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA,CAA6B,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,QAAA,CAAQ,IAAA,EAAM,QAAQ,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA,EAClJ;AAAA,EAEA,MAAM,UAAA,CAAW,EAAA,EAAqB,MAAA,EAAsC,OAAA,EAA4C;AACvH,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA,CAA6B,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,QAAA,CAAQ,IAAA,EAAM,YAAY,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA,EACtJ;AAAA,EAGA,SAAS,QAAA,EAAmC;AAC3C,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,QAAA,CAAQ,IAAA;AAAA,EACpD;AAAA,EAGA,aAAa,EAAA,EAA2C;AACvD,IAAA,OAAO,KAAA,CAAM,qBAAgC,EAAE,CAAA;AAAA,EAChD;AAAA,EAEA,sBAAsB,GAAA,EAA4B;AACjD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAiC,GAAG,GAAG,CAAA;AAAA,EACrD;AAAA,EAGA,IAAA,GAAmB;AAClB,IAAA,OAAO,QAAA,CAAQ,IAAA;AAAA,EAChB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,OAAA,EAAQ;AAC7B,IAAO,eAAA,GAAQ","file":"chunk-7LKA7FXN.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\n\n\ntype ExportType = 'exports'\ntype ExportRel = ResourceRel & { type: ExportType }\n\n\nexport type ExportSort = Pick<Export, 'id' | 'resource_type' | 'format' | 'status' | 'started_at' | 'completed_at' | 'interrupted_at' | 'records_count' | 'processed_count' | 'attachment_url'> & ResourceSort\n// export type ExportFilter = Pick<Export, 'id' | 'resource_type' | 'format' | 'status' | 'started_at' | 'completed_at' | 'interrupted_at' | 'records_count' | 'processed_count' | 'attachment_url' | 'errors_log'> & ResourceFilter\n\n\ninterface Export extends Resource {\n\t\n\treadonly type: ExportType\n\n\t/** \n\t * The type of resource being exported. One of 'applications', 'event_stores', 'organizations', 'addresses', 'geocoders', 'events', 'tags', 'adjustments', 'price_lists', 'payment_gateways', 'payment_methods', 'markets', 'customer_groups', 'line_items', 'discount_engine_items', 'promotions', 'adyen_payments', 'orders', 'transactions', 'order_factories', 'attachments', 'tax_calculators', 'tax_categories', 'skus', 'shipping_categories', 'axerve_payments', 'order_validation_rules', 'braintree_payments', 'bundles', 'sku_lists', 'sku_list_items', 'stock_items', 'stock_locations', 'promotion_rules', 'coupons', 'returns', 'carrier_accounts', 'checkout_com_payments', 'customers', 'customer_addresses', 'customer_payment_sources', 'customer_subscriptions', 'order_subscriptions', 'customer_password_resets', 'delivery_lead_times', 'shipping_methods', 'shipments', 'discount_engines', 'pickups', 'parcels', 'webhooks', 'event_callbacks', 'external_payments', 'gift_cards', 'in_stock_subscriptions', 'inventory_models', 'inventory_stock_locations', 'inventory_return_locations', 'klarna_payments', 'line_item_options', 'return_line_items', 'stock_line_items', 'stock_reservations', 'stock_transfers', 'notifications', 'sku_options', 'links', 'tax_rules', 'merchants', 'subscription_models', 'stores', 'price_list_schedulers', 'order_subscription_items', 'payment_options', 'resource_errors', 'paypal_payments', 'packages', 'parcel_line_items', 'prices', 'price_tiers', 'reserved_stocks', 'satispay_payments', 'shipping_method_tiers', 'shipping_zones', 'stripe_payments', or 'wire_transfers'.\n\t * @example ```\"skus\"```\n\t */\n\tresource_type: 'applications' | 'event_stores' | 'organizations' | 'addresses' | 'geocoders' | 'events' | 'tags' | 'adjustments' | 'price_lists' | 'payment_gateways' | 'payment_methods' | 'markets' | 'customer_groups' | 'line_items' | 'discount_engine_items' | 'promotions' | 'adyen_payments' | 'orders' | 'transactions' | 'order_factories' | 'attachments' | 'tax_calculators' | 'tax_categories' | 'skus' | 'shipping_categories' | 'axerve_payments' | 'order_validation_rules' | 'braintree_payments' | 'bundles' | 'sku_lists' | 'sku_list_items' | 'stock_items' | 'stock_locations' | 'promotion_rules' | 'coupons' | 'returns' | 'carrier_accounts' | 'checkout_com_payments' | 'customers' | 'customer_addresses' | 'customer_payment_sources' | 'customer_subscriptions' | 'order_subscriptions' | 'customer_password_resets' | 'delivery_lead_times' | 'shipping_methods' | 'shipments' | 'discount_engines' | 'pickups' | 'parcels' | 'webhooks' | 'event_callbacks' | 'external_payments' | 'gift_cards' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_stock_locations' | 'inventory_return_locations' | 'klarna_payments' | 'line_item_options' | 'return_line_items' | 'stock_line_items' | 'stock_reservations' | 'stock_transfers' | 'notifications' | 'sku_options' | 'links' | 'tax_rules' | 'merchants' | 'subscription_models' | 'stores' | 'price_list_schedulers' | 'order_subscription_items' | 'payment_options' | 'resource_errors' | 'paypal_payments' | 'packages' | 'parcel_line_items' | 'prices' | 'price_tiers' | 'reserved_stocks' | 'satispay_payments' | 'shipping_method_tiers' | 'shipping_zones' | 'stripe_payments' | 'wire_transfers'\n\t/** \n\t * The format of the export one of 'json' (default) or 'csv'. One of 'csv', or 'json'.\n\t * @example ```\"json\"```\n\t */\n\tformat?: 'csv' | 'json' | null\n\t/** \n\t * The export job status. One of 'pending' (default), 'in_progress', 'interrupted', 'completed', or 'failed'.\n\t * @example ```\"in_progress\"```\n\t */\n\tstatus: 'pending' | 'in_progress' | 'interrupted' | 'completed' | 'failed'\n\t/** \n\t * List of related resources that should be included in the export (redundant when 'fields' are specified).\n\t * @example ```[\"prices.price_tiers\"]```\n\t */\n\tincludes?: string[] | null\n\t/** \n\t * List of fields to export for the main and related resources (automatically included). Pass the asterisk '*' to include all exportable fields for the main and related resources.\n\t * @example ```[\"code\",\"name\",\"prices.*\",\"prices.price_tiers.price_amount_cents\"]```\n\t */\n\tfields?: string[] | null\n\t/** \n\t * The filters used to select the records to be exported.\n\t * @example ```{\"code_eq\":\"AAA\"}```\n\t */\n\tfilters?: Record<string, any> | null\n\t/** \n\t * Send this attribute if you want to skip exporting redundant attributes (IDs, timestamps, blanks, etc.), useful when combining export and import to duplicate your dataset.\n\t */\n\tdry_data?: boolean | null\n\t/** \n\t * Send this attribute to apply JWT scope–based sales channel filtering to the exported data.\n\t * @example ```true```\n\t */\n\tjwt_filters?: boolean | null\n\t/** \n\t * Time at which the export was started.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarted_at?: string | null\n\t/** \n\t * Time at which the export was completed.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tcompleted_at?: string | null\n\t/** \n\t * Estimated time at which the export should complete (dynamically refres^hed).\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\testimated_completion_at?: string | null\n\t/** \n\t * Time at which the export was interrupted.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tinterrupted_at?: string | null\n\t/** \n\t * Indicates the number of records to be exported.\n\t * @example ```300```\n\t */\n\trecords_count?: number | null\n\t/** \n\t * Indicates how many records have been processed in real time.\n\t * @example ```270```\n\t */\n\tprocessed_count?: number | null\n\t/** \n\t * The percentage of progress of the export.\n\t * @example ```30```\n\t */\n\tprogress?: number | null\n\t/** \n\t * The URL to the output file, which will be generated upon export completion.\n\t * @example ```\"http://cl_exports.s3.amazonaws.com/\"```\n\t */\n\tattachment_url?: string | null\n\t/** \n\t * Contains the exports errors, if any.\n\t * @example ```{\"RuntimeError\":\"query timeout\"}```\n\t */\n\terrors_log?: Record<string, any> | null\n\n\tevents?: Event[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface ExportCreate extends ResourceCreate {\n\t\n\t/** \n\t * The type of resource being exported. One of 'applications', 'event_stores', 'organizations', 'addresses', 'geocoders', 'events', 'tags', 'adjustments', 'price_lists', 'payment_gateways', 'payment_methods', 'markets', 'customer_groups', 'line_items', 'discount_engine_items', 'promotions', 'adyen_payments', 'orders', 'transactions', 'order_factories', 'attachments', 'tax_calculators', 'tax_categories', 'skus', 'shipping_categories', 'axerve_payments', 'order_validation_rules', 'braintree_payments', 'bundles', 'sku_lists', 'sku_list_items', 'stock_items', 'stock_locations', 'promotion_rules', 'coupons', 'returns', 'carrier_accounts', 'checkout_com_payments', 'customers', 'customer_addresses', 'customer_payment_sources', 'customer_subscriptions', 'order_subscriptions', 'customer_password_resets', 'delivery_lead_times', 'shipping_methods', 'shipments', 'discount_engines', 'pickups', 'parcels', 'webhooks', 'event_callbacks', 'external_payments', 'gift_cards', 'in_stock_subscriptions', 'inventory_models', 'inventory_stock_locations', 'inventory_return_locations', 'klarna_payments', 'line_item_options', 'return_line_items', 'stock_line_items', 'stock_reservations', 'stock_transfers', 'notifications', 'sku_options', 'links', 'tax_rules', 'merchants', 'subscription_models', 'stores', 'price_list_schedulers', 'order_subscription_items', 'payment_options', 'resource_errors', 'paypal_payments', 'packages', 'parcel_line_items', 'prices', 'price_tiers', 'reserved_stocks', 'satispay_payments', 'shipping_method_tiers', 'shipping_zones', 'stripe_payments', or 'wire_transfers'.\n\t * @example ```\"skus\"```\n\t */\n\tresource_type: 'applications' | 'event_stores' | 'organizations' | 'addresses' | 'geocoders' | 'events' | 'tags' | 'adjustments' | 'price_lists' | 'payment_gateways' | 'payment_methods' | 'markets' | 'customer_groups' | 'line_items' | 'discount_engine_items' | 'promotions' | 'adyen_payments' | 'orders' | 'transactions' | 'order_factories' | 'attachments' | 'tax_calculators' | 'tax_categories' | 'skus' | 'shipping_categories' | 'axerve_payments' | 'order_validation_rules' | 'braintree_payments' | 'bundles' | 'sku_lists' | 'sku_list_items' | 'stock_items' | 'stock_locations' | 'promotion_rules' | 'coupons' | 'returns' | 'carrier_accounts' | 'checkout_com_payments' | 'customers' | 'customer_addresses' | 'customer_payment_sources' | 'customer_subscriptions' | 'order_subscriptions' | 'customer_password_resets' | 'delivery_lead_times' | 'shipping_methods' | 'shipments' | 'discount_engines' | 'pickups' | 'parcels' | 'webhooks' | 'event_callbacks' | 'external_payments' | 'gift_cards' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_stock_locations' | 'inventory_return_locations' | 'klarna_payments' | 'line_item_options' | 'return_line_items' | 'stock_line_items' | 'stock_reservations' | 'stock_transfers' | 'notifications' | 'sku_options' | 'links' | 'tax_rules' | 'merchants' | 'subscription_models' | 'stores' | 'price_list_schedulers' | 'order_subscription_items' | 'payment_options' | 'resource_errors' | 'paypal_payments' | 'packages' | 'parcel_line_items' | 'prices' | 'price_tiers' | 'reserved_stocks' | 'satispay_payments' | 'shipping_method_tiers' | 'shipping_zones' | 'stripe_payments' | 'wire_transfers'\n\t/** \n\t * The format of the export one of 'json' (default) or 'csv'. One of 'csv', or 'json'.\n\t * @example ```\"json\"```\n\t */\n\tformat?: 'csv' | 'json' | null\n\t/** \n\t * List of related resources that should be included in the export (redundant when 'fields' are specified).\n\t * @example ```[\"prices.price_tiers\"]```\n\t */\n\tincludes?: string[] | null\n\t/** \n\t * List of fields to export for the main and related resources (automatically included). Pass the asterisk '*' to include all exportable fields for the main and related resources.\n\t * @example ```[\"code\",\"name\",\"prices.*\",\"prices.price_tiers.price_amount_cents\"]```\n\t */\n\tfields?: string[] | null\n\t/** \n\t * The filters used to select the records to be exported.\n\t * @example ```{\"code_eq\":\"AAA\"}```\n\t */\n\tfilters?: Record<string, any> | null\n\t/** \n\t * Send this attribute if you want to skip exporting redundant attributes (IDs, timestamps, blanks, etc.), useful when combining export and import to duplicate your dataset.\n\t */\n\tdry_data?: boolean | null\n\t/** \n\t * Send this attribute to apply JWT scope–based sales channel filtering to the exported data.\n\t * @example ```true```\n\t */\n\tjwt_filters?: boolean | null\n\t\n}\n\n\ninterface ExportUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Send this attribute if you want to restart an 'interrupted' export.\n\t * @example ```true```\n\t */\n\t_start?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark status as 'interrupted'.\n\t * @example ```true```\n\t */\n\t_interrupt?: boolean | null\n\t\n}\n\n\nclass Exports extends ApiResource<Export> {\n\n\tstatic readonly TYPE: ExportType = 'exports' as const\n\n\tasync create(resource: ExportCreate, params?: QueryParamsRetrieve<Export>, options?: ResourcesConfig): Promise<Export> {\n\t\treturn this.resources.create<ExportCreate, Export>({ ...resource, type: Exports.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ExportUpdate, params?: QueryParamsRetrieve<Export>, options?: ResourcesConfig): Promise<Export> {\n\t\treturn this.resources.update<ExportUpdate, Export>({ ...resource, type: Exports.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: Exports.TYPE } : id, options)\n\t}\n\n\tasync events(exportId: string | Export, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _exportId = (exportId as Export).id || exportId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `exports/${_exportId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync event_stores(exportId: string | Export, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _exportId = (exportId as Export).id || exportId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `exports/${_exportId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _start(id: string | Export, params?: QueryParamsRetrieve<Export>, options?: ResourcesConfig): Promise<Export> {\n\t\treturn this.resources.update<ExportUpdate, Export>({ id: (typeof id === 'string')? id: id.id, type: Exports.TYPE, _start: true }, params, options)\n\t}\n\n\tasync _interrupt(id: string | Export, params?: QueryParamsRetrieve<Export>, options?: ResourcesConfig): Promise<Export> {\n\t\treturn this.resources.update<ExportUpdate, Export>({ id: (typeof id === 'string')? id: id.id, type: Exports.TYPE, _interrupt: true }, params, options)\n\t}\n\n\n\tisExport(resource: any): resource is Export {\n\t\treturn resource.type && (resource.type === Exports.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ExportRel {\n\t\treturn super.relationshipOneToOne<ExportRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ExportRel[] {\n\t\treturn super.relationshipOneToMany<ExportRel>(...ids)\n\t}\n\n\n\ttype(): ExportType {\n\t\treturn Exports.TYPE\n\t}\n\n}\n\n\nconst instance = new Exports()\nexport default instance\n\nexport type { Export, ExportCreate, Exports, ExportType, ExportUpdate }\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/resources/vertex_accounts.ts"],"names":["ApiResource"],"mappings":";;;;;AAyIA,IAAM,cAAA,GAAN,MAAM,eAAA,SAAuBA,6BAAA,CAA2B;AAAA,EAEvD,OAAgB,IAAA,GAA0B,iBAAA;AAAA,EAE1C,MAAM,MAAA,CAAO,QAAA,EAA+B,MAAA,EAA6C,OAAA,EAAmD;AAC3I,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,eAAA,CAAe,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC7H;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAA+B,MAAA,EAA6C,OAAA,EAAmD;AAC3I,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,eAAA,CAAe,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC7H;AAAA,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA,EAA0C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AAM,eAAA;AAClE,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAkB,EAAE,IAAA,EAAM,cAAA,EAAe,EAAG,CAAA,gBAAA,EAAmB,gBAAgB,CAAA,aAAA,CAAA,EAAiB,MAAA,EAAQ,OAAO,CAAA;AAAA,EACtI;AAAA,EAEA,MAAM,cAAA,CAAe,EAAA,EAA4B,MAAA,EAA6C,OAAA,EAAmD;AAChJ,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA,CAA2C,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,eAAA,CAAe,IAAA,EAAM,gBAAgB,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA,EAC/K;AAAA,EAGA,gBAAgB,QAAA,EAA0C;AACzD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,eAAA,CAAe,IAAA;AAAA,EAC3D;AAAA,EAGA,aAAa,EAAA,EAAkD;AAC9D,IAAA,OAAO,KAAA,CAAM,qBAAuC,EAAE,CAAA;AAAA,EACvD;AAAA,EAEA,sBAAsB,GAAA,EAAmC;AACxD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAwC,GAAG,GAAG,CAAA;AAAA,EAC5D;AAAA,EAGA,IAAA,GAA0B;AACzB,IAAA,OAAO,eAAA,CAAe,IAAA;AAAA,EACvB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,cAAA,EAAe;AACpC,IAAO,uBAAA,GAAQ","file":"chunk-A77RAUIU.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { Attachment } from './attachments'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { Market } from './markets'\n\n\ntype VertexAccountType = 'vertex_accounts'\ntype VertexAccountRel = ResourceRel & { type: VertexAccountType }\n\n\nexport type VertexAccountSort = Pick<VertexAccount, 'id' | 'name'> & ResourceSort\n// export type VertexAccountFilter = Pick<VertexAccount, 'id' | 'name'> & ResourceFilter\n\n\ninterface VertexAccount extends Resource {\n\t\n\treadonly type: VertexAccountType\n\n\t/** \n\t * The tax calculator's internal name.\n\t * @example ```\"Personal tax calculator\"```\n\t */\n\tname: string\n\t/** \n\t * The Vertex account kind. One of 'cloud', 'on_demand', or 'on_premise'.\n\t * @example ```\"cloud\"```\n\t */\n\tkind?: 'cloud' | 'on_demand' | 'on_premise' | null\n\t/** \n\t * The Vertex API baseurl, optional for 'cloud' kind.\n\t * @example ```\"yourbaseurl\"```\n\t */\n\tbaseurl?: string | null\n\t/** \n\t * The API endpoint as computed by specified kind and baseurl.\n\t * @example ```\"https://my_baseurl.ondemand.vertexinc.com\"```\n\t */\n\tapi_endpoint?: string | null\n\t/** \n\t * Indicates if the transaction will be recorded and visible on the Vertex website.\n\t * @example ```true```\n\t */\n\tcommit_invoice?: boolean | null\n\t/** \n\t * The expiration date/time of the access token.\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\ttoken_expires_at?: string | null\n\n\tmarkets?: Market[] | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface VertexAccountCreate extends ResourceCreate {\n\t\n\t/** \n\t * The tax calculator's internal name.\n\t * @example ```\"Personal tax calculator\"```\n\t */\n\tname: string\n\t/** \n\t * The Vertex account kind. One of 'cloud', 'on_demand', or 'on_premise'.\n\t * @example ```\"cloud\"```\n\t */\n\tkind?: 'cloud' | 'on_demand' | 'on_premise' | null\n\t/** \n\t * The Vertex API baseurl, optional for 'cloud' kind.\n\t * @example ```\"yourbaseurl\"```\n\t */\n\tbaseurl?: string | null\n\t/** \n\t * The Vertex account client ID.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\tclient_id: string\n\t/** \n\t * The Vertex account client secret.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\tclient_secret: string\n\t/** \n\t * Indicates if the transaction will be recorded and visible on the Vertex website.\n\t * @example ```true```\n\t */\n\tcommit_invoice?: boolean | null\n\t\n}\n\n\ninterface VertexAccountUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The tax calculator's internal name.\n\t * @example ```\"Personal tax calculator\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The Vertex account kind. One of 'cloud', 'on_demand', or 'on_premise'.\n\t * @example ```\"cloud\"```\n\t */\n\tkind?: 'cloud' | 'on_demand' | 'on_premise' | null\n\t/** \n\t * The Vertex API baseurl, optional for 'cloud' kind.\n\t * @example ```\"yourbaseurl\"```\n\t */\n\tbaseurl?: string | null\n\t/** \n\t * The Vertex account client ID.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\tclient_id?: string | null\n\t/** \n\t * The Vertex account client secret.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\tclient_secret?: string | null\n\t/** \n\t * Indicates if the transaction will be recorded and visible on the Vertex website.\n\t * @example ```true```\n\t */\n\tcommit_invoice?: boolean | null\n\t/** \n\t * Send this attribute if you want to manually refresh the access token.\n\t * @example ```true```\n\t */\n\t_refresh_token?: boolean | null\n\t\n}\n\n\nclass VertexAccounts extends ApiResource<VertexAccount> {\n\n\tstatic readonly TYPE: VertexAccountType = 'vertex_accounts' as const\n\n\tasync create(resource: VertexAccountCreate, params?: QueryParamsRetrieve<VertexAccount>, options?: ResourcesConfig): Promise<VertexAccount> {\n\t\treturn this.resources.create<VertexAccountCreate, VertexAccount>({ ...resource, type: VertexAccounts.TYPE }, params, options)\n\t}\n\n\tasync update(resource: VertexAccountUpdate, params?: QueryParamsRetrieve<VertexAccount>, options?: ResourcesConfig): Promise<VertexAccount> {\n\t\treturn this.resources.update<VertexAccountUpdate, VertexAccount>({ ...resource, type: VertexAccounts.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: VertexAccounts.TYPE } : id, options)\n\t}\n\n\tasync markets(vertexAccountId: string | VertexAccount, params?: QueryParamsList<Market>, options?: ResourcesConfig): Promise<ListResponse<Market>> {\n\t\tconst _vertexAccountId = (vertexAccountId as VertexAccount).id || vertexAccountId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `vertex_accounts/${_vertexAccountId}/markets`, params, options) as unknown as ListResponse<Market>\n\t}\n\n\tasync attachments(vertexAccountId: string | VertexAccount, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _vertexAccountId = (vertexAccountId as VertexAccount).id || vertexAccountId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `vertex_accounts/${_vertexAccountId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(vertexAccountId: string | VertexAccount, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _vertexAccountId = (vertexAccountId as VertexAccount).id || vertexAccountId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `vertex_accounts/${_vertexAccountId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync event_stores(vertexAccountId: string | VertexAccount, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _vertexAccountId = (vertexAccountId as VertexAccount).id || vertexAccountId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `vertex_accounts/${_vertexAccountId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _refresh_token(id: string | VertexAccount, params?: QueryParamsRetrieve<VertexAccount>, options?: ResourcesConfig): Promise<VertexAccount> {\n\t\treturn this.resources.update<VertexAccountUpdate, VertexAccount>({ id: (typeof id === 'string')? id: id.id, type: VertexAccounts.TYPE, _refresh_token: true }, params, options)\n\t}\n\n\n\tisVertexAccount(resource: any): resource is VertexAccount {\n\t\treturn resource.type && (resource.type === VertexAccounts.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): VertexAccountRel {\n\t\treturn super.relationshipOneToOne<VertexAccountRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): VertexAccountRel[] {\n\t\treturn super.relationshipOneToMany<VertexAccountRel>(...ids)\n\t}\n\n\n\ttype(): VertexAccountType {\n\t\treturn VertexAccounts.TYPE\n\t}\n\n}\n\n\nconst instance = new VertexAccounts()\nexport default instance\n\nexport type { VertexAccount, VertexAccountCreate, VertexAccounts, VertexAccountType, VertexAccountUpdate }\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/resources/exports.ts"],"names":["ApiResource"],"mappings":";;;;;AAsKA,IAAM,OAAA,GAAN,MAAM,QAAA,SAAgBA,6BAAA,CAAoB;AAAA,EAEzC,OAAgB,IAAA,GAAmB,SAAA;AAAA,EAEnC,MAAM,MAAA,CAAO,QAAA,EAAwB,MAAA,EAAsC,OAAA,EAA4C;AACtH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA6B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,QAAA,CAAQ,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACxG;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAwB,MAAA,EAAsC,OAAA,EAA4C;AACtH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA6B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,QAAA,CAAQ,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACxG;AAAA,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA,EAA0C;AAC/E,IAAA,MAAM,IAAA,CAAK,SAAA,CAAU,MAAA,CAAQ,OAAO,EAAA,KAAO,QAAA,GAAW,EAAE,EAA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AQ,OAAO,CAAA;AAAA,EACtJ;AAAA,EAGA,SAAS,QAAA,EAAmC;AAC3C,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,QAAA,CAAQ,IAAA;AAAA,EACpD;AAAA,EAGA,aAAa,EAAA,EAA2C;AACvD,IAAA,OAAO,KAAA,CAAM,qBAAgC,EAAE,CAAA;AAAA,EAChD;AAAA,EAEA,sBAAsB,GAAA,EAA4B;AACjD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAiC,GAAG,GAAG,CAAA;AAAA,EACrD;AAAA,EAGA,IAAA,GAAmB;AAClB,IAAA,OAAO,QAAA,CAAQ,IAAA;AAAA,EAChB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,OAAA,EAAQ;AAC7B,IAAO,eAAA,GAAQ","file":"chunk-CSCAHLQ3.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\n\n\ntype ExportType = 'exports'\ntype ExportRel = ResourceRel & { type: ExportType }\n\n\nexport type ExportSort = Pick<Export, 'id' | 'resource_type' | 'format' | 'status' | 'started_at' | 'completed_at' | 'interrupted_at' | 'records_count' | 'processed_count' | 'attachment_url'> & ResourceSort\n// export type ExportFilter = Pick<Export, 'id' | 'resource_type' | 'format' | 'status' | 'started_at' | 'completed_at' | 'interrupted_at' | 'records_count' | 'processed_count' | 'attachment_url' | 'errors_log'> & ResourceFilter\n\n\ninterface Export extends Resource {\n\t\n\treadonly type: ExportType\n\n\t/** \n\t * The type of resource being exported. One of 'applications', 'event_stores', 'organizations', 'addresses', 'geocoders', 'events', 'tags', 'adjustments', 'price_lists', 'payment_gateways', 'payment_methods', 'markets', 'customer_groups', 'line_items', 'discount_engine_items', 'promotions', 'adyen_payments', 'orders', 'transactions', 'order_factories', 'attachments', 'tax_calculators', 'tax_categories', 'skus', 'shipping_categories', 'axerve_payments', 'order_validation_rules', 'braintree_payments', 'bundles', 'sku_lists', 'sku_list_items', 'stock_items', 'stock_locations', 'promotion_rules', 'coupons', 'returns', 'carrier_accounts', 'checkout_com_payments', 'customers', 'customer_addresses', 'customer_payment_sources', 'customer_subscriptions', 'order_subscriptions', 'customer_password_resets', 'delivery_lead_times', 'shipping_methods', 'shipments', 'discount_engines', 'pickups', 'parcels', 'webhooks', 'event_callbacks', 'external_payments', 'gift_cards', 'in_stock_subscriptions', 'inventory_models', 'inventory_stock_locations', 'inventory_return_locations', 'klarna_payments', 'line_item_options', 'return_line_items', 'stock_line_items', 'stock_reservations', 'stock_transfers', 'notifications', 'sku_options', 'links', 'tax_rules', 'merchants', 'subscription_models', 'stores', 'price_list_schedulers', 'order_subscription_items', 'payment_options', 'resource_errors', 'paypal_payments', 'packages', 'parcel_line_items', 'prices', 'price_tiers', 'reserved_stocks', 'satispay_payments', 'shipping_method_tiers', 'shipping_zones', 'stripe_payments', or 'wire_transfers'.\n\t * @example ```\"skus\"```\n\t */\n\tresource_type: 'applications' | 'event_stores' | 'organizations' | 'addresses' | 'geocoders' | 'events' | 'tags' | 'adjustments' | 'price_lists' | 'payment_gateways' | 'payment_methods' | 'markets' | 'customer_groups' | 'line_items' | 'discount_engine_items' | 'promotions' | 'adyen_payments' | 'orders' | 'transactions' | 'order_factories' | 'attachments' | 'tax_calculators' | 'tax_categories' | 'skus' | 'shipping_categories' | 'axerve_payments' | 'order_validation_rules' | 'braintree_payments' | 'bundles' | 'sku_lists' | 'sku_list_items' | 'stock_items' | 'stock_locations' | 'promotion_rules' | 'coupons' | 'returns' | 'carrier_accounts' | 'checkout_com_payments' | 'customers' | 'customer_addresses' | 'customer_payment_sources' | 'customer_subscriptions' | 'order_subscriptions' | 'customer_password_resets' | 'delivery_lead_times' | 'shipping_methods' | 'shipments' | 'discount_engines' | 'pickups' | 'parcels' | 'webhooks' | 'event_callbacks' | 'external_payments' | 'gift_cards' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_stock_locations' | 'inventory_return_locations' | 'klarna_payments' | 'line_item_options' | 'return_line_items' | 'stock_line_items' | 'stock_reservations' | 'stock_transfers' | 'notifications' | 'sku_options' | 'links' | 'tax_rules' | 'merchants' | 'subscription_models' | 'stores' | 'price_list_schedulers' | 'order_subscription_items' | 'payment_options' | 'resource_errors' | 'paypal_payments' | 'packages' | 'parcel_line_items' | 'prices' | 'price_tiers' | 'reserved_stocks' | 'satispay_payments' | 'shipping_method_tiers' | 'shipping_zones' | 'stripe_payments' | 'wire_transfers'\n\t/** \n\t * The format of the export one of 'json' (default) or 'csv'. One of 'csv', or 'json'.\n\t * @example ```\"json\"```\n\t */\n\tformat?: 'csv' | 'json' | null\n\t/** \n\t * The export job status. One of 'pending' (default), 'in_progress', 'interrupted', 'completed', or 'failed'.\n\t * @example ```\"in_progress\"```\n\t */\n\tstatus: 'pending' | 'in_progress' | 'interrupted' | 'completed' | 'failed'\n\t/** \n\t * List of related resources that should be included in the export (redundant when 'fields' are specified).\n\t * @example ```[\"prices.price_tiers\"]```\n\t */\n\tincludes?: string[] | null\n\t/** \n\t * List of fields to export for the main and related resources (automatically included). Pass the asterisk '*' to include all exportable fields for the main and related resources.\n\t * @example ```[\"code\",\"name\",\"prices.*\",\"prices.price_tiers.price_amount_cents\"]```\n\t */\n\tfields?: string[] | null\n\t/** \n\t * The filters used to select the records to be exported.\n\t * @example ```{\"code_eq\":\"AAA\"}```\n\t */\n\tfilters?: Record<string, any> | null\n\t/** \n\t * Send this attribute if you want to skip exporting redundant attributes (IDs, timestamps, blanks, etc.), useful when combining export and import to duplicate your dataset.\n\t */\n\tdry_data?: boolean | null\n\t/** \n\t * Send this attribute to apply JWT scope–based sales channel filtering to the exported data.\n\t * @example ```true```\n\t */\n\tjwt_filters?: boolean | null\n\t/** \n\t * Time at which the export was started.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarted_at?: string | null\n\t/** \n\t * Time at which the export was completed.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tcompleted_at?: string | null\n\t/** \n\t * Estimated time at which the export should complete (dynamically refres^hed).\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\testimated_completion_at?: string | null\n\t/** \n\t * Time at which the export was interrupted.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tinterrupted_at?: string | null\n\t/** \n\t * Indicates the number of records to be exported.\n\t * @example ```300```\n\t */\n\trecords_count?: number | null\n\t/** \n\t * Indicates how many records have been processed in real time.\n\t * @example ```270```\n\t */\n\tprocessed_count?: number | null\n\t/** \n\t * The percentage of progress of the export.\n\t * @example ```30```\n\t */\n\tprogress?: number | null\n\t/** \n\t * The URL to the output file, which will be generated upon export completion.\n\t * @example ```\"http://cl_exports.s3.amazonaws.com/\"```\n\t */\n\tattachment_url?: string | null\n\t/** \n\t * Contains the exports errors, if any.\n\t * @example ```{\"RuntimeError\":\"query timeout\"}```\n\t */\n\terrors_log?: Record<string, any> | null\n\n\tevents?: Event[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface ExportCreate extends ResourceCreate {\n\t\n\t/** \n\t * The type of resource being exported. One of 'applications', 'event_stores', 'organizations', 'addresses', 'geocoders', 'events', 'tags', 'adjustments', 'price_lists', 'payment_gateways', 'payment_methods', 'markets', 'customer_groups', 'line_items', 'discount_engine_items', 'promotions', 'adyen_payments', 'orders', 'transactions', 'order_factories', 'attachments', 'tax_calculators', 'tax_categories', 'skus', 'shipping_categories', 'axerve_payments', 'order_validation_rules', 'braintree_payments', 'bundles', 'sku_lists', 'sku_list_items', 'stock_items', 'stock_locations', 'promotion_rules', 'coupons', 'returns', 'carrier_accounts', 'checkout_com_payments', 'customers', 'customer_addresses', 'customer_payment_sources', 'customer_subscriptions', 'order_subscriptions', 'customer_password_resets', 'delivery_lead_times', 'shipping_methods', 'shipments', 'discount_engines', 'pickups', 'parcels', 'webhooks', 'event_callbacks', 'external_payments', 'gift_cards', 'in_stock_subscriptions', 'inventory_models', 'inventory_stock_locations', 'inventory_return_locations', 'klarna_payments', 'line_item_options', 'return_line_items', 'stock_line_items', 'stock_reservations', 'stock_transfers', 'notifications', 'sku_options', 'links', 'tax_rules', 'merchants', 'subscription_models', 'stores', 'price_list_schedulers', 'order_subscription_items', 'payment_options', 'resource_errors', 'paypal_payments', 'packages', 'parcel_line_items', 'prices', 'price_tiers', 'reserved_stocks', 'satispay_payments', 'shipping_method_tiers', 'shipping_zones', 'stripe_payments', or 'wire_transfers'.\n\t * @example ```\"skus\"```\n\t */\n\tresource_type: 'applications' | 'event_stores' | 'organizations' | 'addresses' | 'geocoders' | 'events' | 'tags' | 'adjustments' | 'price_lists' | 'payment_gateways' | 'payment_methods' | 'markets' | 'customer_groups' | 'line_items' | 'discount_engine_items' | 'promotions' | 'adyen_payments' | 'orders' | 'transactions' | 'order_factories' | 'attachments' | 'tax_calculators' | 'tax_categories' | 'skus' | 'shipping_categories' | 'axerve_payments' | 'order_validation_rules' | 'braintree_payments' | 'bundles' | 'sku_lists' | 'sku_list_items' | 'stock_items' | 'stock_locations' | 'promotion_rules' | 'coupons' | 'returns' | 'carrier_accounts' | 'checkout_com_payments' | 'customers' | 'customer_addresses' | 'customer_payment_sources' | 'customer_subscriptions' | 'order_subscriptions' | 'customer_password_resets' | 'delivery_lead_times' | 'shipping_methods' | 'shipments' | 'discount_engines' | 'pickups' | 'parcels' | 'webhooks' | 'event_callbacks' | 'external_payments' | 'gift_cards' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_stock_locations' | 'inventory_return_locations' | 'klarna_payments' | 'line_item_options' | 'return_line_items' | 'stock_line_items' | 'stock_reservations' | 'stock_transfers' | 'notifications' | 'sku_options' | 'links' | 'tax_rules' | 'merchants' | 'subscription_models' | 'stores' | 'price_list_schedulers' | 'order_subscription_items' | 'payment_options' | 'resource_errors' | 'paypal_payments' | 'packages' | 'parcel_line_items' | 'prices' | 'price_tiers' | 'reserved_stocks' | 'satispay_payments' | 'shipping_method_tiers' | 'shipping_zones' | 'stripe_payments' | 'wire_transfers'\n\t/** \n\t * The format of the export one of 'json' (default) or 'csv'. One of 'csv', or 'json'.\n\t * @example ```\"json\"```\n\t */\n\tformat?: 'csv' | 'json' | null\n\t/** \n\t * List of related resources that should be included in the export (redundant when 'fields' are specified).\n\t * @example ```[\"prices.price_tiers\"]```\n\t */\n\tincludes?: string[] | null\n\t/** \n\t * List of fields to export for the main and related resources (automatically included). Pass the asterisk '*' to include all exportable fields for the main and related resources.\n\t * @example ```[\"code\",\"name\",\"prices.*\",\"prices.price_tiers.price_amount_cents\"]```\n\t */\n\tfields?: string[] | null\n\t/** \n\t * The filters used to select the records to be exported.\n\t * @example ```{\"code_eq\":\"AAA\"}```\n\t */\n\tfilters?: Record<string, any> | null\n\t/** \n\t * Send this attribute if you want to skip exporting redundant attributes (IDs, timestamps, blanks, etc.), useful when combining export and import to duplicate your dataset.\n\t */\n\tdry_data?: boolean | null\n\t/** \n\t * Send this attribute to apply JWT scope–based sales channel filtering to the exported data.\n\t * @example ```true```\n\t */\n\tjwt_filters?: boolean | null\n\t\n}\n\n\ninterface ExportUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Send this attribute if you want to restart an 'interrupted' export.\n\t * @example ```true```\n\t */\n\t_start?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark status as 'interrupted'.\n\t * @example ```true```\n\t */\n\t_interrupt?: boolean | null\n\t\n}\n\n\nclass Exports extends ApiResource<Export> {\n\n\tstatic readonly TYPE: ExportType = 'exports' as const\n\n\tasync create(resource: ExportCreate, params?: QueryParamsRetrieve<Export>, options?: ResourcesConfig): Promise<Export> {\n\t\treturn this.resources.create<ExportCreate, Export>({ ...resource, type: Exports.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ExportUpdate, params?: QueryParamsRetrieve<Export>, options?: ResourcesConfig): Promise<Export> {\n\t\treturn this.resources.update<ExportUpdate, Export>({ ...resource, type: Exports.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: Exports.TYPE } : id, options)\n\t}\n\n\tasync events(exportId: string | Export, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _exportId = (exportId as Export).id || exportId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `exports/${_exportId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync event_stores(exportId: string | Export, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _exportId = (exportId as Export).id || exportId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `exports/${_exportId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _start(id: string | Export, params?: QueryParamsRetrieve<Export>, options?: ResourcesConfig): Promise<Export> {\n\t\treturn this.resources.update<ExportUpdate, Export>({ id: (typeof id === 'string')? id: id.id, type: Exports.TYPE, _start: true }, params, options)\n\t}\n\n\tasync _interrupt(id: string | Export, params?: QueryParamsRetrieve<Export>, options?: ResourcesConfig): Promise<Export> {\n\t\treturn this.resources.update<ExportUpdate, Export>({ id: (typeof id === 'string')? id: id.id, type: Exports.TYPE, _interrupt: true }, params, options)\n\t}\n\n\n\tisExport(resource: any): resource is Export {\n\t\treturn resource.type && (resource.type === Exports.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ExportRel {\n\t\treturn super.relationshipOneToOne<ExportRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ExportRel[] {\n\t\treturn super.relationshipOneToMany<ExportRel>(...ids)\n\t}\n\n\n\ttype(): ExportType {\n\t\treturn Exports.TYPE\n\t}\n\n}\n\n\nconst instance = new Exports()\nexport default instance\n\nexport type { Export, ExportCreate, Exports, Ex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AA,OAAO,KAAK,SAAA,CAAU,MAAA,CAAyC,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,cAAA,CAAc,IAAA,EAAM,UAAU,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA,EACtK;AAAA,EAGA,eAAe,QAAA,EAAyC;AACvD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,cAAA,CAAc,IAAA;AAAA,EAC1D;AAAA,EAGA,aAAa,EAAA,EAAiD;AAC7D,IAAA,OAAO,KAAA,CAAM,qBAAsC,EAAE,CAAA;AAAA,EACtD;AAAA,EAEA,sBAAsB,GAAA,EAAkC;AACvD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAuC,GAAG,GAAG,CAAA;AAAA,EAC3D;AAAA,EAGA,IAAA,GAAyB;AACxB,IAAA,OAAO,cAAA,CAAc,IAAA;AAAA,EACtB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,aAAA,EAAc;AACnC,IAAO,sBAAA,GAAQ","file":"chunk-DHGTIF6A.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { EventStore } from './event_stores'\nimport type { Order, OrderType } from './orders'\nimport type { PaymentGateway } from './payment_gateways'\n\n\ntype AdyenPaymentType = 'adyen_payments'\ntype AdyenPaymentRel = ResourceRel & { type: AdyenPaymentType }\ntype OrderRel = ResourceRel & { type: OrderType }\n\n\nexport type AdyenPaymentSort = Pick<AdyenPayment, 'id'> & ResourceSort\n// export type AdyenPaymentFilter = Pick<AdyenPayment, 'id'> & ResourceFilter\n\n\ninterface AdyenPayment extends Resource {\n\t\n\treadonly type: AdyenPaymentType\n\n\t/** \n\t * The public key linked to your API credential.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tpublic_key?: string | null\n\t/** \n\t * The merchant available payment methods for the assoiated order (i.e. country and amount). Required by the Adyen JS SDK.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_methods: Record<string, any>\n\t/** \n\t * The Adyen payment request data, collected by client.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_request_data?: Record<string, any> | null\n\t/** \n\t * The Adyen additional details request data, collected by client.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_request_details?: Record<string, any> | null\n\t/** \n\t * The Adyen payment response, used by client (includes 'resultCode' and 'action').\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_response?: Record<string, any> | null\n\t/** \n\t * Indicates if the order current amount differs form the one of the associated authorization.\n\t */\n\tmismatched_amounts?: boolean | null\n\t/** \n\t * The balance remaining on a shopper's gift card, must be computed by using its related trigger attribute.\n\t * @example ```1000```\n\t */\n\tbalance?: number | null\n\t/** \n\t * The expiration date/time of this Adyen payment (valid for partial payments only).\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at?: string | null\n\t/** \n\t * Information about the payment instrument used in the transaction.\n\t * @example ```{\"issuer\":\"cl bank\",\"card_type\":\"visa\"}```\n\t */\n\tpayment_instrument?: Record<string, any> | null\n\n\torder?: Order | null\n\tpayment_gateway?: PaymentGateway | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface AdyenPaymentCreate extends ResourceCreate {\n\t\n\torder: OrderRel\n\n}\n\n\ninterface AdyenPaymentUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The Adyen payment request data, collected by client.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_request_data?: Record<string, any> | null\n\t/** \n\t * The Adyen additional details request data, collected by client.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_request_details?: Record<string, any> | null\n\t/** \n\t * Send this attribute if you want to authorize the payment.\n\t * @example ```true```\n\t */\n\t_authorize?: boolean | null\n\t/** \n\t * Send this attribute if you want to send additional details the payment request.\n\t * @example ```true```\n\t */\n\t_details?: boolean | null\n\t/** \n\t * Send this attribute if you want retrieve the balance remaining on a shopper's gift card.\n\t * @example ```true```\n\t */\n\t_balance?: boolean | null\n\n\torder?: OrderRel | null\n\n}\n\n\nclass AdyenPayments extends ApiResource<AdyenPayment> {\n\n\tstatic readonly TYPE: AdyenPaymentType = 'adyen_payments' as const\n\n\tasync create(resource: AdyenPaymentCreate, params?: QueryParamsRetrieve<AdyenPayment>, options?: ResourcesConfig): Promise<AdyenPayment> {\n\t\treturn this.resources.create<AdyenPaymentCreate, AdyenPayment>({ ...resource, type: AdyenPayments.TYPE }, params, options)\n\t}\n\n\tasync update(resource: AdyenPaymentUpdate, params?: QueryParamsRetrieve<AdyenPayment>, options?: ResourcesConfig): Promise<AdyenPayment> {\n\t\treturn this.resources.update<AdyenPaymentUpdate, AdyenPayment>({ ...resource, type: AdyenPayments.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: AdyenPayments.TYPE } : id, options)\n\t}\n\n\tasync order(adyenPaymentId: string | AdyenPayment, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _adyenPaymentId = (adyenPaymentId as AdyenPayment).id || adyenPaymentId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `adyen_payments/${_adyenPaymentId}/order`, params, options) as unknown as Order\n\t}\n\n\tasync payment_gateway(adyenPaymentId: string | AdyenPayment, params?: QueryParamsRetrieve<PaymentGateway>, options?: ResourcesConfig): Promise<PaymentGateway> {\n\t\tconst _adyenPaymentId = (adyenPaymentId as AdyenPayment).id || adyenPaymentId as string\n\t\treturn this.resources.fetch<PaymentGateway>({ type: 'payment_gateways' }, `adyen_payments/${_adyenPaymentId}/payment_gateway`, params, options) as unknown as PaymentGateway\n\t}\n\n\tasync event_stores(adyenPaymentId: string | AdyenPayment, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _adyenPaymentId = (adyenPaymentId as AdyenPayment).id || adyenPaymentId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `adyen_payments/${_adyenPaymentId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _authorize(id: string | AdyenPayment, params?: QueryParamsRetrieve<AdyenPayment>, options?: ResourcesConfig): Promise<AdyenPayment> {\n\t\treturn this.resources.update<AdyenPaymentUpdate, AdyenPayment>({ id: (typeof id === 'string')? id: id.id, type: AdyenPayments.TYPE, _authorize: true }, params, options)\n\t}\n\n\tasync _details(id: string | AdyenPayment, params?: QueryParamsRetrieve<AdyenPayment>, options?: ResourcesConfig): Promise<AdyenPayment> {\n\t\treturn this.resources.update<AdyenPaymentUpdate, AdyenPayment>({ id: (typeof id === 'string')? id: id.id, type: AdyenPayments.TYPE, _details: true }, params, options)\n\t}\n\n\tasync _balance(id: string | AdyenPayment, params?: QueryParamsRetrieve<AdyenPayment>, options?: ResourcesConfig): Promise<AdyenPayment> {\n\t\treturn this.resources.update<AdyenPaymentUpdate, AdyenPayment>({ id: (typeof id === 'string')? id: id.id, type: AdyenPayments.TYPE, _balance: true }, params, options)\n\t}\n\n\n\tisAdyenPayment(resource: any): resource is AdyenPayment {\n\t\treturn resource.type && (resource.type === AdyenPayments.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): AdyenPaymentRel {\n\t\treturn super.relationshipOneToOne<AdyenPaymentRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): AdyenPaymentRel[] {\n\t\treturn super.relationshipOneToMany<AdyenPaymentRel>(...ids)\n\t}\n\n\n\ttype(): AdyenPaymentType {\n\t\treturn AdyenPayments.TYPE\n\t}\n\n}\n\n\nconst instance = new AdyenPayments()\nexport default instance\n\nexport type { AdyenPayment, A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4C,OAAA,EAAkD;AACvI,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA,CAAyC,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,cAAA,CAAc,IAAA,EAAM,UAAU,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA,EACtK;AAAA,EAGA,eAAe,QAAA,EAAyC;AACvD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,cAAA,CAAc,IAAA;AAAA,EAC1D;AAAA,EAGA,aAAa,EAAA,EAAiD;AAC7D,IAAA,OAAO,KAAA,CAAM,qBAAsC,EAAE,CAAA;AAAA,EACtD;AAAA,EAEA,sBAAsB,GAAA,EAAkC;AACvD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAuC,GAAG,GAAG,CAAA;AAAA,EAC3D;AAAA,EAGA,IAAA,GAAyB;AACxB,IAAA,OAAO,cAAA,CAAc,IAAA;AAAA,EACtB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,aAAA,EAAc;AACnC,IAAO,sBAAA,GAAQ","file":"chunk-FWBO3MH4.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { EventStore } from './event_stores'\nimport type { Order, OrderType } from './orders'\nimport type { PaymentGateway } from './payment_gateways'\n\n\ntype AdyenPaymentType = 'adyen_payments'\ntype AdyenPaymentRel = ResourceRel & { type: AdyenPaymentType }\ntype OrderRel = ResourceRel & { type: OrderType }\n\n\nexport type AdyenPaymentSort = Pick<AdyenPayment, 'id'> & ResourceSort\n// export type AdyenPaymentFilter = Pick<AdyenPayment, 'id'> & ResourceFilter\n\n\ninterface AdyenPayment extends Resource {\n\t\n\treadonly type: AdyenPaymentType\n\n\t/** \n\t * The public key linked to your API credential.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tpublic_key?: string | null\n\t/** \n\t * The merchant available payment methods for the assoiated order (i.e. country and amount). Required by the Adyen JS SDK.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_methods: Record<string, any>\n\t/** \n\t * The Adyen payment request data, collected by client.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_request_data?: Record<string, any> | null\n\t/** \n\t * The Adyen additional details request data, collected by client.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_request_details?: Record<string, any> | null\n\t/** \n\t * The Adyen payment response, used by client (includes 'resultCode' and 'action').\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_response?: Record<string, any> | null\n\t/** \n\t * Indicates if the order current amount differs form the one of the associated authorization.\n\t */\n\tmismatched_amounts?: boolean | null\n\t/** \n\t * The balance remaining on a shopper's gift card, must be computed by using its related trigger attribute.\n\t * @example ```1000```\n\t */\n\tbalance?: number | null\n\t/** \n\t * The expiration date/time of this Adyen payment (valid for partial payments only).\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at?: string | null\n\t/** \n\t * Information about the payment instrument used in the transaction.\n\t * @example ```{\"issuer\":\"cl bank\",\"card_type\":\"visa\"}```\n\t */\n\tpayment_instrument?: Record<string, any> | null\n\n\torder?: Order | null\n\tpayment_gateway?: PaymentGateway | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface AdyenPaymentCreate extends ResourceCreate {\n\t\n\torder: OrderRel\n\n}\n\n\ninterface AdyenPaymentUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The Adyen payment request data, collected by client.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_request_data?: Record<string, any> | null\n\t/** \n\t * The Adyen additional details request data, collected by client.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_request_details?: Record<string, any> | null\n\t/** \n\t * Send this attribute if you want to authorize the payment.\n\t * @example ```true```\n\t */\n\t_authorize?: boolean | null\n\t/** \n\t * Send this attribute if you want to send additional details the payment request.\n\t * @example ```true```\n\t */\n\t_details?: boolean | null\n\t/** \n\t * Send this attribute if you want retrieve the balance remaining on a shopper's gift card.\n\t * @example ```true```\n\t */\n\t_balance?: boolean | null\n\n\torder?: OrderRel | null\n\n}\n\n\nclass AdyenPayments extends ApiResource<AdyenPayment> {\n\n\tstatic readonly TYPE: AdyenPaymentType = 'adyen_payments' as const\n\n\tasync create(resource: AdyenPaymentCreate, params?: QueryParamsRetrieve<AdyenPayment>, options?: ResourcesConfig): Promise<AdyenPayment> {\n\t\treturn this.resources.create<AdyenPaymentCreate, AdyenPayment>({ ...resource, type: AdyenPayments.TYPE }, params, options)\n\t}\n\n\tasync update(resource: AdyenPaymentUpdate, params?: QueryParamsRetrieve<AdyenPayment>, options?: ResourcesConfig): Promise<AdyenPayment> {\n\t\treturn this.resources.update<AdyenPaymentUpdate, AdyenPayment>({ ...resource, type: AdyenPayments.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: AdyenPayments.TYPE } : id, options)\n\t}\n\n\tasync order(adyenPaymentId: string | AdyenPayment, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _adyenPaymentId = (adyenPaymentId as AdyenPayment).id || adyenPaymentId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `adyen_payments/${_adyenPaymentId}/order`, params, options) as unknown as Order\n\t}\n\n\tasync payment_gateway(adyenPaymentId: string | AdyenPayment, params?: QueryParamsRetrieve<PaymentGateway>, options?: ResourcesConfig): Promise<PaymentGateway> {\n\t\tconst _adyenPaymentId = (adyenPaymentId as AdyenPayment).id || adyenPaymentId as string\n\t\treturn this.resources.fetch<PaymentGateway>({ type: 'payment_gateways' }, `adyen_payments/${_adyenPaymentId}/payment_gateway`, params, options) as unknown as PaymentGateway\n\t}\n\n\tasync event_stores(adyenPaymentId: string | AdyenPayment, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _adyenPaymentId = (adyenPaymentId as AdyenPayment).id || adyenPaymentId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `adyen_payments/${_adyenPaymentId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _authorize(id: string | AdyenPayment, params?: QueryParamsRetrieve<AdyenPayment>, options?: ResourcesConfig): Promise<AdyenPayment> {\n\t\treturn this.resources.update<AdyenPaymentUpdate, AdyenPayment>({ id: (typeof id === 'string')? id: id.id, type: AdyenPayments.TYPE, _authorize: true }, params, options)\n\t}\n\n\tasync _details(id: string | AdyenPayment, params?: QueryParamsRetrieve<AdyenPayment>, options?: ResourcesConfig): Promise<AdyenPayment> {\n\t\treturn this.resources.update<AdyenPaymentUpdate, AdyenPayment>({ id: (typeof id === 'string')? id: id.id, type: AdyenPayments.TYPE, _details: true }, params, options)\n\t}\n\n\tasync _balance(id: string | AdyenPayment, params?: QueryParamsRetrieve<AdyenPayment>, options?: ResourcesConfig): Promise<AdyenPayment> {\n\t\treturn this.resources.update<AdyenPaymentUpdate, AdyenPayment>({ id: (typeof id === 'string')? id: id.id, type: AdyenPayments.TYPE, _balance: true }, params, options)\n\t}\n\n\n\tisAdyenPayment(resource: any): resource is AdyenPayment {\n\t\treturn resource.type && (resource.type === AdyenPayments.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): AdyenPaymentRel {\n\t\treturn super.relationshipOneToOne<AdyenPaymentRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): AdyenPaymentRel[] {\n\t\treturn super.relationshipOneToMany<AdyenPaymentRel>(...ids)\n\t}\n\n\n\ttype(): AdyenPaymentType {\n\t\treturn AdyenPayments.TYPE\n\t}\n\n}\n\n\nconst instance = new AdyenPayments()\nexport default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AAA;AAAA,EAC/K;AAAA,EAGA,gBAAgB,QAAA,EAA0C;AACzD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,eAAA,CAAe,IAAA;AAAA,EAC3D;AAAA,EAGA,aAAa,EAAA,EAAkD;AAC9D,IAAA,OAAO,KAAA,CAAM,qBAAuC,EAAE,CAAA;AAAA,EACvD;AAAA,EAEA,sBAAsB,GAAA,EAAmC;AACxD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAwC,GAAG,GAAG,CAAA;AAAA,EAC5D;AAAA,EAGA,IAAA,GAA0B;AACzB,IAAA,OAAO,eAAA,CAAe,IAAA;AAAA,EACvB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,cAAA,EAAe;AACpC,IAAO,uBAAA,GAAQ","file":"chunk-KUJFQHAN.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { Attachment } from './attachments'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { Market } from './markets'\n\n\ntype VertexAccountType = 'vertex_accounts'\ntype VertexAccountRel = ResourceRel & { type: VertexAccountType }\n\n\nexport type VertexAccountSort = Pick<VertexAccount, 'id' | 'name'> & ResourceSort\n// export type VertexAccountFilter = Pick<VertexAccount, 'id' | 'name'> & ResourceFilter\n\n\ninterface VertexAccount extends Resource {\n\t\n\treadonly type: VertexAccountType\n\n\t/** \n\t * The tax calculator's internal name.\n\t * @example ```\"Personal tax calculator\"```\n\t */\n\tname: string\n\t/** \n\t * The Vertex account kind. One of 'cloud', 'on_demand', or 'on_premise'.\n\t * @example ```\"cloud\"```\n\t */\n\tkind?: 'cloud' | 'on_demand' | 'on_premise' | null\n\t/** \n\t * The Vertex API baseurl, optional for 'cloud' kind.\n\t * @example ```\"yourbaseurl\"```\n\t */\n\tbaseurl?: string | null\n\t/** \n\t * The API endpoint as computed by specified kind and baseurl.\n\t * @example ```\"https://my_baseurl.ondemand.vertexinc.com\"```\n\t */\n\tapi_endpoint?: string | null\n\t/** \n\t * Indicates if the transaction will be recorded and visible on the Vertex website.\n\t * @example ```true```\n\t */\n\tcommit_invoice?: boolean | null\n\t/** \n\t * The expiration date/time of the access token.\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\ttoken_expires_at?: string | null\n\n\tmarkets?: Market[] | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface VertexAccountCreate extends ResourceCreate {\n\t\n\t/** \n\t * The tax calculator's internal name.\n\t * @example ```\"Personal tax calculator\"```\n\t */\n\tname: string\n\t/** \n\t * The Vertex account kind. One of 'cloud', 'on_demand', or 'on_premise'.\n\t * @example ```\"cloud\"```\n\t */\n\tkind?: 'cloud' | 'on_demand' | 'on_premise' | null\n\t/** \n\t * The Vertex API baseurl, optional for 'cloud' kind.\n\t * @example ```\"yourbaseurl\"```\n\t */\n\tbaseurl?: string | null\n\t/** \n\t * The Vertex account client ID.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\tclient_id: string\n\t/** \n\t * The Vertex account client secret.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\tclient_secret: string\n\t/** \n\t * Indicates if the transaction will be recorded and visible on the Vertex website.\n\t * @example ```true```\n\t */\n\tcommit_invoice?: boolean | null\n\t\n}\n\n\ninterface VertexAccountUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The tax calculator's internal name.\n\t * @example ```\"Personal tax calculator\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The Vertex account kind. One of 'cloud', 'on_demand', or 'on_premise'.\n\t * @example ```\"cloud\"```\n\t */\n\tkind?: 'cloud' | 'on_demand' | 'on_premise' | null\n\t/** \n\t * The Vertex API baseurl, optional for 'cloud' kind.\n\t * @example ```\"yourbaseurl\"```\n\t */\n\tbaseurl?: string | null\n\t/** \n\t * The Vertex account client ID.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\tclient_id?: string | null\n\t/** \n\t * The Vertex account client secret.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\tclient_secret?: string | null\n\t/** \n\t * Indicates if the transaction will be recorded and visible on the Vertex website.\n\t * @example ```true```\n\t */\n\tcommit_invoice?: boolean | null\n\t/** \n\t * Send this attribute if you want to manually refresh the access token.\n\t * @example ```true```\n\t */\n\t_refresh_token?: boolean | null\n\t\n}\n\n\nclass VertexAccounts extends ApiResource<VertexAccount> {\n\n\tstatic readonly TYPE: VertexAccountType = 'vertex_accounts' as const\n\n\tasync create(resource: VertexAccountCreate, params?: QueryParamsRetrieve<VertexAccount>, options?: ResourcesConfig): Promise<VertexAccount> {\n\t\treturn this.resources.create<VertexAccountCreate, VertexAccount>({ ...resource, type: VertexAccounts.TYPE }, params, options)\n\t}\n\n\tasync update(resource: VertexAccountUpdate, params?: QueryParamsRetrieve<VertexAccount>, options?: ResourcesConfig): Promise<VertexAccount> {\n\t\treturn this.resources.update<VertexAccountUpdate, VertexAccount>({ ...resource, type: VertexAccounts.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: VertexAccounts.TYPE } : id, options)\n\t}\n\n\tasync markets(vertexAccountId: string | VertexAccount, params?: QueryParamsList<Market>, options?: ResourcesConfig): Promise<ListResponse<Market>> {\n\t\tconst _vertexAccountId = (vertexAccountId as VertexAccount).id || vertexAccountId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `vertex_accounts/${_vertexAccountId}/markets`, params, options) as unknown as ListResponse<Market>\n\t}\n\n\tasync attachments(vertexAccountId: string | VertexAccount, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _vertexAccountId = (vertexAccountId as VertexAccount).id || vertexAccountId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `vertex_accounts/${_vertexAccountId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(vertexAccountId: string | VertexAccount, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _vertexAccountId = (vertexAccountId as VertexAccount).id || vertexAccountId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `vertex_accounts/${_vertexAccountId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync event_stores(vertexAccountId: string | VertexAccount, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _vertexAccountId = (vertexAccountId as VertexAccount).id || vertexAccountId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `vertex_accounts/${_vertexAccountId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _refresh_token(id: string | VertexAccount, params?: QueryParamsRetrieve<VertexAccount>, options?: ResourcesConfig): Promise<VertexAccount> {\n\t\treturn this.resources.update<VertexAccountUpdate, VertexAccount>({ id: (typeof id === 'string')? id: id.id, type: VertexAccounts.TYPE, _refresh_token: true }, params, options)\n\t}\n\n\n\tisVertexAccount(resource: any): resource is VertexAccount {\n\t\treturn resource.type && (resource.type === VertexAccounts.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): VertexAccountRel {\n\t\treturn super.relationshipOneToOne<VertexAccountRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): VertexAccountRel[] {\n\t\treturn super.relationshipOneToMany<VertexAccountRel>(...ids)\n\t}\n\n\n\ttype(): VertexAccountType {\n\t\treturn VertexAccounts.TYPE\n\t}\n\n}\n\n\nconst instance = new VertexAccounts()\nexport default instance\n\nexport type { VertexAccount, VertexAccountCreate, VertexAccounts, VertexAccountType, VertexAccountUpdate }\n"]}
@@ -1 +0,0 @@
1
-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AA,MAAM,SAAA,GAAa,SAAoB,EAAA,IAAM,QAAA;AAC7C,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAkB,EAAE,IAAA,EAAM,cAAA,EAAe,EAAG,CAAA,QAAA,EAAW,SAAS,CAAA,aAAA,CAAA,EAAiB,MAAA,EAAQ,OAAO,CAAA;AAAA,EACvH;AAAA,EAEA,MAAM,UAAA,CAAW,EAAA,EAAqB,MAAA,EAAsC,OAAA,EAA4C;AACvH,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA,CAA6B,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,QAAA,CAAQ,IAAA,EAAM,YAAY,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA,EACtJ;AAAA,EAGA,SAAS,QAAA,EAAmC;AAC3C,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,QAAA,CAAQ,IAAA;AAAA,EACpD;AAAA,EAGA,aAAa,EAAA,EAA2C;AACvD,IAAA,OAAO,KAAA,CAAM,qBAAgC,EAAE,CAAA;AAAA,EAChD;AAAA,EAEA,sBAAsB,GAAA,EAA4B;AACjD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAiC,GAAG,GAAG,CAAA;AAAA,EACrD;AAAA,EAGA,IAAA,GAAmB;AAClB,IAAA,OAAO,QAAA,CAAQ,IAAA;AAAA,EAChB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,OAAA,EAAQ;AAC7B,IAAO,eAAA,GAAQ","file":"chunk-QIN5DNKJ.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\n\n\ntype ImportType = 'imports'\ntype ImportRel = ResourceRel & { type: ImportType }\n\n\nexport type ImportSort = Pick<Import, 'id' | 'resource_type' | 'format' | 'parent_resource_id' | 'status' | 'started_at' | 'completed_at' | 'interrupted_at' | 'inputs_size' | 'errors_count' | 'warnings_count' | 'processed_count' | 'attachment_url'> & ResourceSort\n// export type ImportFilter = Pick<Import, 'id' | 'resource_type' | 'format' | 'parent_resource_id' | 'status' | 'started_at' | 'completed_at' | 'interrupted_at' | 'inputs_size' | 'errors_count' | 'warnings_count' | 'processed_count' | 'errors_log' | 'warnings_log' | 'attachment_url'> & ResourceFilter\n\n\ninterface Import extends Resource {\n\t\n\treadonly type: ImportType\n\n\t/** \n\t * The type of resource being imported. One of 'addresses', 'tags', 'price_lists', 'line_items', 'orders', 'tax_categories', 'skus', 'shipping_categories', 'bundles', 'sku_lists', 'sku_list_items', 'stock_items', 'stock_locations', 'coupons', 'customers', 'customer_addresses', 'customer_payment_sources', 'customer_subscriptions', 'gift_cards', 'line_item_options', 'stock_transfers', 'sku_options', 'prices', or 'price_tiers'.\n\t * @example ```\"skus\"```\n\t */\n\tresource_type: 'addresses' | 'tags' | 'price_lists' | 'line_items' | 'orders' | 'tax_categories' | 'skus' | 'shipping_categories' | 'bundles' | 'sku_lists' | 'sku_list_items' | 'stock_items' | 'stock_locations' | 'coupons' | 'customers' | 'customer_addresses' | 'customer_payment_sources' | 'customer_subscriptions' | 'gift_cards' | 'line_item_options' | 'stock_transfers' | 'sku_options' | 'prices' | 'price_tiers'\n\t/** \n\t * The format of the import inputs one of 'json' (default) or 'csv'. One of 'csv', or 'json'.\n\t * @example ```\"json\"```\n\t */\n\tformat?: 'csv' | 'json' | null\n\t/** \n\t * The ID of the parent resource to be associated with imported data.\n\t * @example ```\"1234\"```\n\t */\n\tparent_resource_id?: string | null\n\t/** \n\t * The import job status. One of 'pending' (default), 'in_progress', 'interrupted', or 'completed'.\n\t * @example ```\"in_progress\"```\n\t */\n\tstatus: 'pending' | 'in_progress' | 'interrupted' | 'completed'\n\t/** \n\t * Time at which the import was started.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarted_at?: string | null\n\t/** \n\t * Time at which the import was completed.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tcompleted_at?: string | null\n\t/** \n\t * Time at which the import was interrupted.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tinterrupted_at?: string | null\n\t/** \n\t * Array of objects representing the resources that are being imported.\n\t * @example ```[{\"code\":\"ABC\",\"name\":\"Foo\"},{\"code\":\"DEF\",\"name\":\"Bar\"}]```\n\t */\n\tinputs: Array<Record<string, any>>\n\t/** \n\t * Indicates the size of the objects to be imported.\n\t * @example ```300```\n\t */\n\tinputs_size?: number | null\n\t/** \n\t * Indicates the number of import errors, if any.\n\t * @example ```30```\n\t */\n\terrors_count?: number | null\n\t/** \n\t * Indicates the number of import warnings, if any.\n\t * @example ```1```\n\t */\n\twarnings_count?: number | null\n\t/** \n\t * Indicates the number of records that have been processed (created or updated).\n\t * @example ```270```\n\t */\n\tprocessed_count?: number | null\n\t/** \n\t * Contains the import errors, if any.\n\t * @example ```{\"ABC\":{\"name\":[\"has already been taken\"]}}```\n\t */\n\terrors_log?: Record<string, any> | null\n\t/** \n\t * Contains the import warnings, if any.\n\t * @example ```{\"ABC\":[\"could not be deleted\"]}```\n\t */\n\twarnings_log?: Record<string, any> | null\n\t/** \n\t * Disables the interruption of the import in case its errors exceeds the 10% threshold.\n\t * @example ```true```\n\t */\n\tskip_errors?: boolean | null\n\t/** \n\t * The URL the the raw inputs file, which will be generated at import start.\n\t * @example ```\"http://cl_imports.s3.amazonaws.com/\"```\n\t */\n\tattachment_url?: string | null\n\n\tevents?: Event[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface ImportCreate extends ResourceCreate {\n\t\n\t/** \n\t * The type of resource being imported. One of 'addresses', 'tags', 'price_lists', 'line_items', 'orders', 'tax_categories', 'skus', 'shipping_categories', 'bundles', 'sku_lists', 'sku_list_items', 'stock_items', 'stock_locations', 'coupons', 'customers', 'customer_addresses', 'customer_payment_sources', 'customer_subscriptions', 'gift_cards', 'line_item_options', 'stock_transfers', 'sku_options', 'prices', or 'price_tiers'.\n\t * @example ```\"skus\"```\n\t */\n\tresource_type: 'addresses' | 'tags' | 'price_lists' | 'line_items' | 'orders' | 'tax_categories' | 'skus' | 'shipping_categories' | 'bundles' | 'sku_lists' | 'sku_list_items' | 'stock_items' | 'stock_locations' | 'coupons' | 'customers' | 'customer_addresses' | 'customer_payment_sources' | 'customer_subscriptions' | 'gift_cards' | 'line_item_options' | 'stock_transfers' | 'sku_options' | 'prices' | 'price_tiers'\n\t/** \n\t * The format of the import inputs one of 'json' (default) or 'csv'. One of 'csv', or 'json'.\n\t * @example ```\"json\"```\n\t */\n\tformat?: 'csv' | 'json' | null\n\t/** \n\t * The ID of the parent resource to be associated with imported data.\n\t * @example ```\"1234\"```\n\t */\n\tparent_resource_id?: string | null\n\t/** \n\t * Array of objects representing the resources that are being imported.\n\t * @example ```[{\"code\":\"ABC\",\"name\":\"Foo\"},{\"code\":\"DEF\",\"name\":\"Bar\"}]```\n\t */\n\tinputs: Array<Record<string, any>>\n\t/** \n\t * Disables the interruption of the import in case its errors exceeds the 10% threshold.\n\t * @example ```true```\n\t */\n\tskip_errors?: boolean | null\n\t\n}\n\n\ninterface ImportUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Send this attribute if you want to mark status as 'interrupted'.\n\t * @example ```true```\n\t */\n\t_interrupt?: boolean | null\n\t\n}\n\n\nclass Imports extends ApiResource<Import> {\n\n\tstatic readonly TYPE: ImportType = 'imports' as const\n\n\tasync create(resource: ImportCreate, params?: QueryParamsRetrieve<Import>, options?: ResourcesConfig): Promise<Import> {\n\t\treturn this.resources.create<ImportCreate, Import>({ ...resource, type: Imports.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ImportUpdate, params?: QueryParamsRetrieve<Import>, options?: ResourcesConfig): Promise<Import> {\n\t\treturn this.resources.update<ImportUpdate, Import>({ ...resource, type: Imports.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: Imports.TYPE } : id, options)\n\t}\n\n\tasync events(importId: string | Import, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _importId = (importId as Import).id || importId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `imports/${_importId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync event_stores(importId: string | Import, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _importId = (importId as Import).id || importId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `imports/${_importId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _interrupt(id: string | Import, params?: QueryParamsRetrieve<Import>, options?: ResourcesConfig): Promise<Import> {\n\t\treturn this.resources.update<ImportUpdate, Import>({ id: (typeof id === 'string')? id: id.id, type: Imports.TYPE, _interrupt: true }, params, options)\n\t}\n\n\n\tisImport(resource: any): resource is Import {\n\t\treturn resource.type && (resource.type === Imports.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ImportRel {\n\t\treturn super.relationshipOneToOne<ImportRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ImportRel[] {\n\t\treturn super.relationshipOneToMany<ImportRel>(...ids)\n\t}\n\n\n\ttype(): ImportType {\n\t\treturn Imports.TYPE\n\t}\n\n}\n\n\nconst instance = new Imports()\nexport default instance\n\nexport type { Import, ImportCreate, Imports, ImportType, ImportUpdate }\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/resources/imports.ts"],"names":[],"mappings":";;;AAoJA,IAAM,OAAA,GAAN,MAAM,QAAA,SAAgB,WAAA,CAAoB;AAAA,EAEzC,OAAgB,IAAA,GA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A,QAAA,EAAW,SAAS,CAAA,aAAA,CAAA,EAAiB,MAAA,EAAQ,OAAO,CAAA;AAAA,EACvH;AAAA,EAEA,MAAM,UAAA,CAAW,EAAA,EAAqB,MAAA,EAAsC,OAAA,EAA4C;AACvH,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA,CAA6B,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,QAAA,CAAQ,IAAA,EAAM,YAAY,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA,EACtJ;AAAA,EAGA,SAAS,QAAA,EAAmC;AAC3C,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,QAAA,CAAQ,IAAA;AAAA,EACpD;AAAA,EAGA,aAAa,EAAA,EAA2C;AACvD,IAAA,OAAO,KAAA,CAAM,qBAAgC,EAAE,CAAA;AAAA,EAChD;AAAA,EAEA,sBAAsB,GAAA,EAA4B;AACjD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAiC,GAAG,GAAG,CAAA;AAAA,EACrD;AAAA,EAGA,IAAA,GAAmB;AAClB,IAAA,OAAO,QAAA,CAAQ,IAAA;AAAA,EAChB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,OAAA,EAAQ;AAC7B,IAAO,eAAA,GAAQ","file":"chunk-WKIAJGJO.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\n\n\ntype ImportType = 'imports'\ntype ImportRel = ResourceRel & { type: ImportType }\n\n\nexport type ImportSort = Pick<Import, 'id' | 'resource_type' | 'format' | 'parent_resource_id' | 'status' | 'started_at' | 'completed_at' | 'interrupted_at' | 'inputs_size' | 'errors_count' | 'warnings_count' | 'processed_count' | 'attachment_url'> & ResourceSort\n// export type ImportFilter = Pick<Import, 'id' | 'resource_type' | 'format' | 'parent_resource_id' | 'status' | 'started_at' | 'completed_at' | 'interrupted_at' | 'inputs_size' | 'errors_count' | 'warnings_count' | 'processed_count' | 'errors_log' | 'warnings_log' | 'attachment_url'> & ResourceFilter\n\n\ninterface Import extends Resource {\n\t\n\treadonly type: ImportType\n\n\t/** \n\t * The type of resource being imported. One of 'addresses', 'tags', 'price_lists', 'line_items', 'orders', 'tax_categories', 'skus', 'shipping_categories', 'bundles', 'sku_lists', 'sku_list_items', 'stock_items', 'stock_locations', 'coupons', 'customers', 'customer_addresses', 'customer_payment_sources', 'customer_subscriptions', 'gift_cards', 'line_item_options', 'stock_transfers', 'sku_options', 'prices', or 'price_tiers'.\n\t * @example ```\"skus\"```\n\t */\n\tresource_type: 'addresses' | 'tags' | 'price_lists' | 'line_items' | 'orders' | 'tax_categories' | 'skus' | 'shipping_categories' | 'bundles' | 'sku_lists' | 'sku_list_items' | 'stock_items' | 'stock_locations' | 'coupons' | 'customers' | 'customer_addresses' | 'customer_payment_sources' | 'customer_subscriptions' | 'gift_cards' | 'line_item_options' | 'stock_transfers' | 'sku_options' | 'prices' | 'price_tiers'\n\t/** \n\t * The format of the import inputs one of 'json' (default) or 'csv'. One of 'csv', or 'json'.\n\t * @example ```\"json\"```\n\t */\n\tformat?: 'csv' | 'json' | null\n\t/** \n\t * The ID of the parent resource to be associated with imported data.\n\t * @example ```\"1234\"```\n\t */\n\tparent_resource_id?: string | null\n\t/** \n\t * The import job status. One of 'pending' (default), 'in_progress', 'interrupted', or 'completed'.\n\t * @example ```\"in_progress\"```\n\t */\n\tstatus: 'pending' | 'in_progress' | 'interrupted' | 'completed'\n\t/** \n\t * Time at which the import was started.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarted_at?: string | null\n\t/** \n\t * Time at which the import was completed.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tcompleted_at?: string | null\n\t/** \n\t * Time at which the import was interrupted.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tinterrupted_at?: string | null\n\t/** \n\t * Array of objects representing the resources that are being imported.\n\t * @example ```[{\"code\":\"ABC\",\"name\":\"Foo\"},{\"code\":\"DEF\",\"name\":\"Bar\"}]```\n\t */\n\tinputs: Array<Record<string, any>>\n\t/** \n\t * Indicates the size of the objects to be imported.\n\t * @example ```300```\n\t */\n\tinputs_size?: number | null\n\t/** \n\t * Indicates the number of import errors, if any.\n\t * @example ```30```\n\t */\n\terrors_count?: number | null\n\t/** \n\t * Indicates the number of import warnings, if any.\n\t * @example ```1```\n\t */\n\twarnings_count?: number | null\n\t/** \n\t * Indicates the number of records that have been processed (created or updated).\n\t * @example ```270```\n\t */\n\tprocessed_count?: number | null\n\t/** \n\t * Contains the import errors, if any.\n\t * @example ```{\"ABC\":{\"name\":[\"has already been taken\"]}}```\n\t */\n\terrors_log?: Record<string, any> | null\n\t/** \n\t * Contains the import warnings, if any.\n\t * @example ```{\"ABC\":[\"could not be deleted\"]}```\n\t */\n\twarnings_log?: Record<string, any> | null\n\t/** \n\t * Disables the interruption of the import in case its errors exceeds the 10% threshold.\n\t * @example ```true```\n\t */\n\tskip_errors?: boolean | null\n\t/** \n\t * The URL the the raw inputs file, which will be generated at import start.\n\t * @example ```\"http://cl_imports.s3.amazonaws.com/\"```\n\t */\n\tattachment_url?: string | null\n\n\tevents?: Event[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface ImportCreate extends ResourceCreate {\n\t\n\t/** \n\t * The type of resource being imported. One of 'addresses', 'tags', 'price_lists', 'line_items', 'orders', 'tax_categories', 'skus', 'shipping_categories', 'bundles', 'sku_lists', 'sku_list_items', 'stock_items', 'stock_locations', 'coupons', 'customers', 'customer_addresses', 'customer_payment_sources', 'customer_subscriptions', 'gift_cards', 'line_item_options', 'stock_transfers', 'sku_options', 'prices', or 'price_tiers'.\n\t * @example ```\"skus\"```\n\t */\n\tresource_type: 'addresses' | 'tags' | 'price_lists' | 'line_items' | 'orders' | 'tax_categories' | 'skus' | 'shipping_categories' | 'bundles' | 'sku_lists' | 'sku_list_items' | 'stock_items' | 'stock_locations' | 'coupons' | 'customers' | 'customer_addresses' | 'customer_payment_sources' | 'customer_subscriptions' | 'gift_cards' | 'line_item_options' | 'stock_transfers' | 'sku_options' | 'prices' | 'price_tiers'\n\t/** \n\t * The format of the import inputs one of 'json' (default) or 'csv'. One of 'csv', or 'json'.\n\t * @example ```\"json\"```\n\t */\n\tformat?: 'csv' | 'json' | null\n\t/** \n\t * The ID of the parent resource to be associated with imported data.\n\t * @example ```\"1234\"```\n\t */\n\tparent_resource_id?: string | null\n\t/** \n\t * Array of objects representing the resources that are being imported.\n\t * @example ```[{\"code\":\"ABC\",\"name\":\"Foo\"},{\"code\":\"DEF\",\"name\":\"Bar\"}]```\n\t */\n\tinputs: Array<Record<string, any>>\n\t/** \n\t * Disables the interruption of the import in case its errors exceeds the 10% threshold.\n\t * @example ```true```\n\t */\n\tskip_errors?: boolean | null\n\t\n}\n\n\ninterface ImportUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Send this attribute if you want to mark status as 'interrupted'.\n\t * @example ```true```\n\t */\n\t_interrupt?: boolean | null\n\t\n}\n\n\nclass Imports extends ApiResource<Import> {\n\n\tstatic readonly TYPE: ImportType = 'imports' as const\n\n\tasync create(resource: ImportCreate, params?: QueryParamsRetrieve<Import>, options?: ResourcesConfig): Promise<Import> {\n\t\treturn this.resources.create<ImportCreate, Import>({ ...resource, type: Imports.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ImportUpdate, params?: QueryParamsRetrieve<Import>, options?: ResourcesConfig): Promise<Import> {\n\t\treturn this.resources.update<ImportUpdate, Import>({ ...resource, type: Imports.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: Imports.TYPE } : id, options)\n\t}\n\n\tasync events(importId: string | Import, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _importId = (importId as Import).id || importId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `imports/${_importId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync event_stores(importId: string | Import, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _importId = (importId as Import).id || importId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `imports/${_importId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _interrupt(id: string | Import, params?: QueryParamsRetrieve<Import>, options?: ResourcesConfig): Promise<Import> {\n\t\treturn this.resources.update<ImportUpdate, Import>({ id: (typeof id === 'string')? id: id.id, type: Imports.TYPE, _interrupt: true }, params, options)\n\t}\n\n\n\tisImport(resource: any): resource is Import {\n\t\treturn resource.type && (resource.type === Imports.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ImportRel {\n\t\treturn super.relationshipOneToOne<ImportRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ImportRel[] {\n\t\treturn super.relationshipOneToMany<ImportRel>(...ids)\n\t}\n\n\n\ttype(): ImportType {\n\t\treturn Imports.TYPE\n\t}\n\n}\n\n\nconst instance = new Imports()\nexport default instance\n\nexport type { Import, ImportCreate, Imports, ImportType, ImportUpdate }\n"]}