@commercelayer/sdk 4.6.0 → 4.7.1

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 (387) hide show
  1. package/README.md +4 -4
  2. package/lib/cjs/commercelayer.js +1 -1
  3. package/lib/cjs/index.js +1 -1
  4. package/lib/cjs/query.d.ts +1 -1
  5. package/lib/cjs/query.js +1 -1
  6. package/lib/cjs/resource.d.ts +1 -1
  7. package/lib/cjs/resources/addresses.d.ts +3 -3
  8. package/lib/cjs/resources/addresses.js +1 -1
  9. package/lib/cjs/resources/adjustments.d.ts +1 -1
  10. package/lib/cjs/resources/adyen_gateways.d.ts +5 -5
  11. package/lib/cjs/resources/adyen_gateways.js +1 -1
  12. package/lib/cjs/resources/adyen_payments.d.ts +5 -5
  13. package/lib/cjs/resources/adyen_payments.js +1 -1
  14. package/lib/cjs/resources/application.d.ts +1 -1
  15. package/lib/cjs/resources/attachments.d.ts +31 -31
  16. package/lib/cjs/resources/authorizations.d.ts +7 -7
  17. package/lib/cjs/resources/authorizations.js +1 -1
  18. package/lib/cjs/resources/avalara_accounts.d.ts +7 -7
  19. package/lib/cjs/resources/avalara_accounts.js +1 -1
  20. package/lib/cjs/resources/billing_info_validation_rules.d.ts +3 -3
  21. package/lib/cjs/resources/billing_info_validation_rules.js +1 -1
  22. package/lib/cjs/resources/bing_geocoders.d.ts +5 -5
  23. package/lib/cjs/resources/bing_geocoders.js +1 -1
  24. package/lib/cjs/resources/braintree_gateways.d.ts +5 -5
  25. package/lib/cjs/resources/braintree_gateways.js +1 -1
  26. package/lib/cjs/resources/braintree_payments.d.ts +5 -5
  27. package/lib/cjs/resources/braintree_payments.js +1 -1
  28. package/lib/cjs/resources/bundles.d.ts +9 -9
  29. package/lib/cjs/resources/bundles.js +1 -1
  30. package/lib/cjs/resources/captures.d.ts +7 -7
  31. package/lib/cjs/resources/captures.js +1 -1
  32. package/lib/cjs/resources/carrier_accounts.d.ts +5 -5
  33. package/lib/cjs/resources/carrier_accounts.js +1 -1
  34. package/lib/cjs/resources/checkout_com_gateways.d.ts +5 -5
  35. package/lib/cjs/resources/checkout_com_gateways.js +1 -1
  36. package/lib/cjs/resources/checkout_com_payments.d.ts +5 -5
  37. package/lib/cjs/resources/checkout_com_payments.js +1 -1
  38. package/lib/cjs/resources/coupon_codes_promotion_rules.d.ts +9 -9
  39. package/lib/cjs/resources/coupon_codes_promotion_rules.js +1 -1
  40. package/lib/cjs/resources/coupon_recipients.d.ts +5 -5
  41. package/lib/cjs/resources/coupon_recipients.js +1 -1
  42. package/lib/cjs/resources/coupons.d.ts +3 -3
  43. package/lib/cjs/resources/coupons.js +1 -1
  44. package/lib/cjs/resources/customer_addresses.d.ts +5 -5
  45. package/lib/cjs/resources/customer_addresses.js +1 -1
  46. package/lib/cjs/resources/customer_groups.d.ts +7 -7
  47. package/lib/cjs/resources/customer_groups.js +1 -1
  48. package/lib/cjs/resources/customer_password_resets.d.ts +3 -3
  49. package/lib/cjs/resources/customer_password_resets.js +1 -1
  50. package/lib/cjs/resources/customer_payment_sources.d.ts +11 -11
  51. package/lib/cjs/resources/customer_payment_sources.js +1 -1
  52. package/lib/cjs/resources/customer_subscriptions.d.ts +3 -3
  53. package/lib/cjs/resources/customer_subscriptions.js +1 -1
  54. package/lib/cjs/resources/customers.d.ts +17 -17
  55. package/lib/cjs/resources/customers.js +1 -1
  56. package/lib/cjs/resources/delivery_lead_times.d.ts +7 -7
  57. package/lib/cjs/resources/delivery_lead_times.js +1 -1
  58. package/lib/cjs/resources/event_callbacks.d.ts +3 -3
  59. package/lib/cjs/resources/event_callbacks.js +1 -1
  60. package/lib/cjs/resources/external_gateways.d.ts +5 -5
  61. package/lib/cjs/resources/external_gateways.js +1 -1
  62. package/lib/cjs/resources/external_payments.d.ts +7 -7
  63. package/lib/cjs/resources/external_payments.js +1 -1
  64. package/lib/cjs/resources/external_promotions.d.ts +12 -12
  65. package/lib/cjs/resources/external_promotions.js +1 -1
  66. package/lib/cjs/resources/external_tax_calculators.d.ts +7 -7
  67. package/lib/cjs/resources/external_tax_calculators.js +1 -1
  68. package/lib/cjs/resources/fixed_amount_promotions.d.ts +12 -12
  69. package/lib/cjs/resources/fixed_amount_promotions.js +1 -1
  70. package/lib/cjs/resources/fixed_price_promotions.d.ts +16 -16
  71. package/lib/cjs/resources/fixed_price_promotions.js +1 -1
  72. package/lib/cjs/resources/free_gift_promotions.d.ts +16 -16
  73. package/lib/cjs/resources/free_gift_promotions.js +1 -1
  74. package/lib/cjs/resources/free_shipping_promotions.d.ts +12 -12
  75. package/lib/cjs/resources/free_shipping_promotions.js +1 -1
  76. package/lib/cjs/resources/geocoders.d.ts +5 -5
  77. package/lib/cjs/resources/geocoders.js +1 -1
  78. package/lib/cjs/resources/gift_card_recipients.d.ts +5 -5
  79. package/lib/cjs/resources/gift_card_recipients.js +1 -1
  80. package/lib/cjs/resources/gift_cards.d.ts +7 -7
  81. package/lib/cjs/resources/gift_cards.js +1 -1
  82. package/lib/cjs/resources/google_geocoders.d.ts +5 -5
  83. package/lib/cjs/resources/google_geocoders.js +1 -1
  84. package/lib/cjs/resources/imports.d.ts +1 -1
  85. package/lib/cjs/resources/in_stock_subscriptions.d.ts +7 -7
  86. package/lib/cjs/resources/in_stock_subscriptions.js +1 -1
  87. package/lib/cjs/resources/inventory_models.d.ts +7 -7
  88. package/lib/cjs/resources/inventory_models.js +1 -1
  89. package/lib/cjs/resources/inventory_return_locations.d.ts +5 -5
  90. package/lib/cjs/resources/inventory_return_locations.js +1 -1
  91. package/lib/cjs/resources/inventory_stock_locations.d.ts +5 -5
  92. package/lib/cjs/resources/inventory_stock_locations.js +1 -1
  93. package/lib/cjs/resources/klarna_gateways.d.ts +5 -5
  94. package/lib/cjs/resources/klarna_gateways.js +1 -1
  95. package/lib/cjs/resources/klarna_payments.d.ts +5 -5
  96. package/lib/cjs/resources/klarna_payments.js +1 -1
  97. package/lib/cjs/resources/line_item_options.d.ts +5 -5
  98. package/lib/cjs/resources/line_item_options.js +1 -1
  99. package/lib/cjs/resources/line_items.d.ts +19 -19
  100. package/lib/cjs/resources/line_items.js +1 -1
  101. package/lib/cjs/resources/manual_gateways.d.ts +3 -3
  102. package/lib/cjs/resources/manual_gateways.js +1 -1
  103. package/lib/cjs/resources/manual_tax_calculators.d.ts +9 -9
  104. package/lib/cjs/resources/manual_tax_calculators.js +1 -1
  105. package/lib/cjs/resources/markets.d.ts +13 -13
  106. package/lib/cjs/resources/markets.js +1 -1
  107. package/lib/cjs/resources/merchants.d.ts +5 -5
  108. package/lib/cjs/resources/merchants.js +1 -1
  109. package/lib/cjs/resources/order_amount_promotion_rules.d.ts +7 -7
  110. package/lib/cjs/resources/order_copies.d.ts +6 -6
  111. package/lib/cjs/resources/order_copies.js +1 -1
  112. package/lib/cjs/resources/order_subscriptions.d.ts +10 -10
  113. package/lib/cjs/resources/order_subscriptions.js +1 -1
  114. package/lib/cjs/resources/order_validation_rules.d.ts +3 -3
  115. package/lib/cjs/resources/order_validation_rules.js +1 -1
  116. package/lib/cjs/resources/orders.d.ts +39 -39
  117. package/lib/cjs/resources/orders.js +1 -1
  118. package/lib/cjs/resources/organization.d.ts +1 -1
  119. package/lib/cjs/resources/packages.d.ts +7 -7
  120. package/lib/cjs/resources/packages.js +1 -1
  121. package/lib/cjs/resources/parcel_line_items.d.ts +5 -5
  122. package/lib/cjs/resources/parcel_line_items.js +1 -1
  123. package/lib/cjs/resources/parcels.d.ts +9 -9
  124. package/lib/cjs/resources/parcels.js +1 -1
  125. package/lib/cjs/resources/payment_gateways.d.ts +3 -3
  126. package/lib/cjs/resources/payment_gateways.js +1 -1
  127. package/lib/cjs/resources/payment_methods.d.ts +7 -7
  128. package/lib/cjs/resources/payment_methods.js +1 -1
  129. package/lib/cjs/resources/paypal_gateways.d.ts +5 -5
  130. package/lib/cjs/resources/paypal_gateways.js +1 -1
  131. package/lib/cjs/resources/paypal_payments.d.ts +5 -5
  132. package/lib/cjs/resources/paypal_payments.js +1 -1
  133. package/lib/cjs/resources/percentage_discount_promotions.d.ts +16 -16
  134. package/lib/cjs/resources/percentage_discount_promotions.js +1 -1
  135. package/lib/cjs/resources/price_lists.d.ts +5 -5
  136. package/lib/cjs/resources/price_lists.js +1 -1
  137. package/lib/cjs/resources/prices.d.ts +7 -7
  138. package/lib/cjs/resources/prices.js +1 -1
  139. package/lib/cjs/resources/promotion_rules.d.ts +7 -7
  140. package/lib/cjs/resources/promotions.d.ts +12 -12
  141. package/lib/cjs/resources/promotions.js +1 -1
  142. package/lib/cjs/resources/refunds.d.ts +5 -5
  143. package/lib/cjs/resources/refunds.js +1 -1
  144. package/lib/cjs/resources/return_line_items.d.ts +5 -5
  145. package/lib/cjs/resources/return_line_items.js +1 -1
  146. package/lib/cjs/resources/returns.d.ts +14 -14
  147. package/lib/cjs/resources/returns.js +1 -1
  148. package/lib/cjs/resources/shipments.d.ts +25 -25
  149. package/lib/cjs/resources/shipments.js +1 -1
  150. package/lib/cjs/resources/shipping_categories.d.ts +5 -5
  151. package/lib/cjs/resources/shipping_categories.js +1 -1
  152. package/lib/cjs/resources/shipping_methods.d.ts +11 -11
  153. package/lib/cjs/resources/shipping_methods.js +1 -1
  154. package/lib/cjs/resources/shipping_zones.d.ts +3 -3
  155. package/lib/cjs/resources/shipping_zones.js +1 -1
  156. package/lib/cjs/resources/sku_list_items.d.ts +5 -5
  157. package/lib/cjs/resources/sku_list_items.js +1 -1
  158. package/lib/cjs/resources/sku_list_promotion_rules.d.ts +11 -11
  159. package/lib/cjs/resources/sku_list_promotion_rules.js +1 -1
  160. package/lib/cjs/resources/sku_lists.d.ts +7 -7
  161. package/lib/cjs/resources/sku_lists.js +1 -1
  162. package/lib/cjs/resources/sku_options.d.ts +5 -5
  163. package/lib/cjs/resources/sku_options.js +1 -1
  164. package/lib/cjs/resources/skus.d.ts +13 -13
  165. package/lib/cjs/resources/skus.js +1 -1
  166. package/lib/cjs/resources/stock_items.d.ts +7 -7
  167. package/lib/cjs/resources/stock_items.js +1 -1
  168. package/lib/cjs/resources/stock_line_items.d.ts +7 -7
  169. package/lib/cjs/resources/stock_line_items.js +1 -1
  170. package/lib/cjs/resources/stock_locations.d.ts +13 -13
  171. package/lib/cjs/resources/stock_locations.js +1 -1
  172. package/lib/cjs/resources/stock_transfers.d.ts +10 -10
  173. package/lib/cjs/resources/stock_transfers.js +1 -1
  174. package/lib/cjs/resources/stripe_gateways.d.ts +5 -5
  175. package/lib/cjs/resources/stripe_gateways.js +1 -1
  176. package/lib/cjs/resources/stripe_payments.d.ts +5 -5
  177. package/lib/cjs/resources/stripe_payments.js +1 -1
  178. package/lib/cjs/resources/tax_calculators.d.ts +7 -7
  179. package/lib/cjs/resources/tax_calculators.js +1 -1
  180. package/lib/cjs/resources/tax_categories.d.ts +9 -9
  181. package/lib/cjs/resources/tax_categories.js +1 -1
  182. package/lib/cjs/resources/tax_rules.d.ts +3 -3
  183. package/lib/cjs/resources/tax_rules.js +1 -1
  184. package/lib/cjs/resources/taxjar_accounts.d.ts +7 -7
  185. package/lib/cjs/resources/taxjar_accounts.js +1 -1
  186. package/lib/cjs/resources/transactions.d.ts +3 -3
  187. package/lib/cjs/resources/transactions.js +1 -1
  188. package/lib/cjs/resources/voids.d.ts +5 -5
  189. package/lib/cjs/resources/voids.js +1 -1
  190. package/lib/cjs/resources/webhooks.d.ts +3 -3
  191. package/lib/cjs/resources/webhooks.js +1 -1
  192. package/lib/cjs/resources/wire_transfers.d.ts +3 -3
  193. package/lib/cjs/resources/wire_transfers.js +1 -1
  194. package/lib/cjs/static.js +1 -1
  195. package/lib/esm/query.d.ts +1 -1
  196. package/lib/esm/query.js +1 -1
  197. package/lib/esm/resource.d.ts +1 -1
  198. package/lib/esm/resources/addresses.d.ts +3 -3
  199. package/lib/esm/resources/addresses.js +1 -1
  200. package/lib/esm/resources/adjustments.d.ts +1 -1
  201. package/lib/esm/resources/adyen_gateways.d.ts +5 -5
  202. package/lib/esm/resources/adyen_gateways.js +1 -1
  203. package/lib/esm/resources/adyen_payments.d.ts +5 -5
  204. package/lib/esm/resources/adyen_payments.js +1 -1
  205. package/lib/esm/resources/application.d.ts +1 -1
  206. package/lib/esm/resources/attachments.d.ts +31 -31
  207. package/lib/esm/resources/authorizations.d.ts +7 -7
  208. package/lib/esm/resources/authorizations.js +1 -1
  209. package/lib/esm/resources/avalara_accounts.d.ts +7 -7
  210. package/lib/esm/resources/avalara_accounts.js +1 -1
  211. package/lib/esm/resources/billing_info_validation_rules.d.ts +3 -3
  212. package/lib/esm/resources/billing_info_validation_rules.js +1 -1
  213. package/lib/esm/resources/bing_geocoders.d.ts +5 -5
  214. package/lib/esm/resources/bing_geocoders.js +1 -1
  215. package/lib/esm/resources/braintree_gateways.d.ts +5 -5
  216. package/lib/esm/resources/braintree_gateways.js +1 -1
  217. package/lib/esm/resources/braintree_payments.d.ts +5 -5
  218. package/lib/esm/resources/braintree_payments.js +1 -1
  219. package/lib/esm/resources/bundles.d.ts +9 -9
  220. package/lib/esm/resources/bundles.js +1 -1
  221. package/lib/esm/resources/captures.d.ts +7 -7
  222. package/lib/esm/resources/captures.js +1 -1
  223. package/lib/esm/resources/carrier_accounts.d.ts +5 -5
  224. package/lib/esm/resources/carrier_accounts.js +1 -1
  225. package/lib/esm/resources/checkout_com_gateways.d.ts +5 -5
  226. package/lib/esm/resources/checkout_com_gateways.js +1 -1
  227. package/lib/esm/resources/checkout_com_payments.d.ts +5 -5
  228. package/lib/esm/resources/checkout_com_payments.js +1 -1
  229. package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +9 -9
  230. package/lib/esm/resources/coupon_codes_promotion_rules.js +1 -1
  231. package/lib/esm/resources/coupon_recipients.d.ts +5 -5
  232. package/lib/esm/resources/coupon_recipients.js +1 -1
  233. package/lib/esm/resources/coupons.d.ts +3 -3
  234. package/lib/esm/resources/coupons.js +1 -1
  235. package/lib/esm/resources/customer_addresses.d.ts +5 -5
  236. package/lib/esm/resources/customer_addresses.js +1 -1
  237. package/lib/esm/resources/customer_groups.d.ts +7 -7
  238. package/lib/esm/resources/customer_groups.js +1 -1
  239. package/lib/esm/resources/customer_password_resets.d.ts +3 -3
  240. package/lib/esm/resources/customer_password_resets.js +1 -1
  241. package/lib/esm/resources/customer_payment_sources.d.ts +11 -11
  242. package/lib/esm/resources/customer_payment_sources.js +1 -1
  243. package/lib/esm/resources/customer_subscriptions.d.ts +3 -3
  244. package/lib/esm/resources/customer_subscriptions.js +1 -1
  245. package/lib/esm/resources/customers.d.ts +17 -17
  246. package/lib/esm/resources/customers.js +1 -1
  247. package/lib/esm/resources/delivery_lead_times.d.ts +7 -7
  248. package/lib/esm/resources/delivery_lead_times.js +1 -1
  249. package/lib/esm/resources/event_callbacks.d.ts +3 -3
  250. package/lib/esm/resources/event_callbacks.js +1 -1
  251. package/lib/esm/resources/external_gateways.d.ts +5 -5
  252. package/lib/esm/resources/external_gateways.js +1 -1
  253. package/lib/esm/resources/external_payments.d.ts +7 -7
  254. package/lib/esm/resources/external_payments.js +1 -1
  255. package/lib/esm/resources/external_promotions.d.ts +12 -12
  256. package/lib/esm/resources/external_promotions.js +1 -1
  257. package/lib/esm/resources/external_tax_calculators.d.ts +7 -7
  258. package/lib/esm/resources/external_tax_calculators.js +1 -1
  259. package/lib/esm/resources/fixed_amount_promotions.d.ts +12 -12
  260. package/lib/esm/resources/fixed_amount_promotions.js +1 -1
  261. package/lib/esm/resources/fixed_price_promotions.d.ts +16 -16
  262. package/lib/esm/resources/fixed_price_promotions.js +1 -1
  263. package/lib/esm/resources/free_gift_promotions.d.ts +16 -16
  264. package/lib/esm/resources/free_gift_promotions.js +1 -1
  265. package/lib/esm/resources/free_shipping_promotions.d.ts +12 -12
  266. package/lib/esm/resources/free_shipping_promotions.js +1 -1
  267. package/lib/esm/resources/geocoders.d.ts +5 -5
  268. package/lib/esm/resources/geocoders.js +1 -1
  269. package/lib/esm/resources/gift_card_recipients.d.ts +5 -5
  270. package/lib/esm/resources/gift_card_recipients.js +1 -1
  271. package/lib/esm/resources/gift_cards.d.ts +7 -7
  272. package/lib/esm/resources/gift_cards.js +1 -1
  273. package/lib/esm/resources/google_geocoders.d.ts +5 -5
  274. package/lib/esm/resources/google_geocoders.js +1 -1
  275. package/lib/esm/resources/imports.d.ts +1 -1
  276. package/lib/esm/resources/in_stock_subscriptions.d.ts +7 -7
  277. package/lib/esm/resources/in_stock_subscriptions.js +1 -1
  278. package/lib/esm/resources/inventory_models.d.ts +7 -7
  279. package/lib/esm/resources/inventory_models.js +1 -1
  280. package/lib/esm/resources/inventory_return_locations.d.ts +5 -5
  281. package/lib/esm/resources/inventory_return_locations.js +1 -1
  282. package/lib/esm/resources/inventory_stock_locations.d.ts +5 -5
  283. package/lib/esm/resources/inventory_stock_locations.js +1 -1
  284. package/lib/esm/resources/klarna_gateways.d.ts +5 -5
  285. package/lib/esm/resources/klarna_gateways.js +1 -1
  286. package/lib/esm/resources/klarna_payments.d.ts +5 -5
  287. package/lib/esm/resources/klarna_payments.js +1 -1
  288. package/lib/esm/resources/line_item_options.d.ts +5 -5
  289. package/lib/esm/resources/line_item_options.js +1 -1
  290. package/lib/esm/resources/line_items.d.ts +19 -19
  291. package/lib/esm/resources/line_items.js +1 -1
  292. package/lib/esm/resources/manual_gateways.d.ts +3 -3
  293. package/lib/esm/resources/manual_gateways.js +1 -1
  294. package/lib/esm/resources/manual_tax_calculators.d.ts +9 -9
  295. package/lib/esm/resources/manual_tax_calculators.js +1 -1
  296. package/lib/esm/resources/markets.d.ts +13 -13
  297. package/lib/esm/resources/markets.js +1 -1
  298. package/lib/esm/resources/merchants.d.ts +5 -5
  299. package/lib/esm/resources/merchants.js +1 -1
  300. package/lib/esm/resources/order_amount_promotion_rules.d.ts +7 -7
  301. package/lib/esm/resources/order_copies.d.ts +6 -6
  302. package/lib/esm/resources/order_copies.js +1 -1
  303. package/lib/esm/resources/order_subscriptions.d.ts +10 -10
  304. package/lib/esm/resources/order_subscriptions.js +1 -1
  305. package/lib/esm/resources/order_validation_rules.d.ts +3 -3
  306. package/lib/esm/resources/order_validation_rules.js +1 -1
  307. package/lib/esm/resources/orders.d.ts +39 -39
  308. package/lib/esm/resources/orders.js +1 -1
  309. package/lib/esm/resources/organization.d.ts +1 -1
  310. package/lib/esm/resources/packages.d.ts +7 -7
  311. package/lib/esm/resources/packages.js +1 -1
  312. package/lib/esm/resources/parcel_line_items.d.ts +5 -5
  313. package/lib/esm/resources/parcel_line_items.js +1 -1
  314. package/lib/esm/resources/parcels.d.ts +9 -9
  315. package/lib/esm/resources/parcels.js +1 -1
  316. package/lib/esm/resources/payment_gateways.d.ts +3 -3
  317. package/lib/esm/resources/payment_gateways.js +1 -1
  318. package/lib/esm/resources/payment_methods.d.ts +7 -7
  319. package/lib/esm/resources/payment_methods.js +1 -1
  320. package/lib/esm/resources/paypal_gateways.d.ts +5 -5
  321. package/lib/esm/resources/paypal_gateways.js +1 -1
  322. package/lib/esm/resources/paypal_payments.d.ts +5 -5
  323. package/lib/esm/resources/paypal_payments.js +1 -1
  324. package/lib/esm/resources/percentage_discount_promotions.d.ts +16 -16
  325. package/lib/esm/resources/percentage_discount_promotions.js +1 -1
  326. package/lib/esm/resources/price_lists.d.ts +5 -5
  327. package/lib/esm/resources/price_lists.js +1 -1
  328. package/lib/esm/resources/prices.d.ts +7 -7
  329. package/lib/esm/resources/prices.js +1 -1
  330. package/lib/esm/resources/promotion_rules.d.ts +7 -7
  331. package/lib/esm/resources/promotions.d.ts +12 -12
  332. package/lib/esm/resources/promotions.js +1 -1
  333. package/lib/esm/resources/refunds.d.ts +5 -5
  334. package/lib/esm/resources/refunds.js +1 -1
  335. package/lib/esm/resources/return_line_items.d.ts +5 -5
  336. package/lib/esm/resources/return_line_items.js +1 -1
  337. package/lib/esm/resources/returns.d.ts +14 -14
  338. package/lib/esm/resources/returns.js +1 -1
  339. package/lib/esm/resources/shipments.d.ts +25 -25
  340. package/lib/esm/resources/shipments.js +1 -1
  341. package/lib/esm/resources/shipping_categories.d.ts +5 -5
  342. package/lib/esm/resources/shipping_categories.js +1 -1
  343. package/lib/esm/resources/shipping_methods.d.ts +11 -11
  344. package/lib/esm/resources/shipping_methods.js +1 -1
  345. package/lib/esm/resources/shipping_zones.d.ts +3 -3
  346. package/lib/esm/resources/shipping_zones.js +1 -1
  347. package/lib/esm/resources/sku_list_items.d.ts +5 -5
  348. package/lib/esm/resources/sku_list_items.js +1 -1
  349. package/lib/esm/resources/sku_list_promotion_rules.d.ts +11 -11
  350. package/lib/esm/resources/sku_list_promotion_rules.js +1 -1
  351. package/lib/esm/resources/sku_lists.d.ts +7 -7
  352. package/lib/esm/resources/sku_lists.js +1 -1
  353. package/lib/esm/resources/sku_options.d.ts +5 -5
  354. package/lib/esm/resources/sku_options.js +1 -1
  355. package/lib/esm/resources/skus.d.ts +13 -13
  356. package/lib/esm/resources/skus.js +1 -1
  357. package/lib/esm/resources/stock_items.d.ts +7 -7
  358. package/lib/esm/resources/stock_items.js +1 -1
  359. package/lib/esm/resources/stock_line_items.d.ts +7 -7
  360. package/lib/esm/resources/stock_line_items.js +1 -1
  361. package/lib/esm/resources/stock_locations.d.ts +13 -13
  362. package/lib/esm/resources/stock_locations.js +1 -1
  363. package/lib/esm/resources/stock_transfers.d.ts +10 -10
  364. package/lib/esm/resources/stock_transfers.js +1 -1
  365. package/lib/esm/resources/stripe_gateways.d.ts +5 -5
  366. package/lib/esm/resources/stripe_gateways.js +1 -1
  367. package/lib/esm/resources/stripe_payments.d.ts +5 -5
  368. package/lib/esm/resources/stripe_payments.js +1 -1
  369. package/lib/esm/resources/tax_calculators.d.ts +7 -7
  370. package/lib/esm/resources/tax_calculators.js +1 -1
  371. package/lib/esm/resources/tax_categories.d.ts +9 -9
  372. package/lib/esm/resources/tax_categories.js +1 -1
  373. package/lib/esm/resources/tax_rules.d.ts +3 -3
  374. package/lib/esm/resources/tax_rules.js +1 -1
  375. package/lib/esm/resources/taxjar_accounts.d.ts +7 -7
  376. package/lib/esm/resources/taxjar_accounts.js +1 -1
  377. package/lib/esm/resources/transactions.d.ts +3 -3
  378. package/lib/esm/resources/transactions.js +1 -1
  379. package/lib/esm/resources/voids.d.ts +5 -5
  380. package/lib/esm/resources/voids.js +1 -1
  381. package/lib/esm/resources/webhooks.d.ts +3 -3
  382. package/lib/esm/resources/webhooks.js +1 -1
  383. package/lib/esm/resources/wire_transfers.d.ts +3 -3
  384. package/lib/esm/resources/wire_transfers.js +1 -1
  385. package/lib/tsconfig.esm.tsbuildinfo +1 -1
  386. package/lib/tsconfig.tsbuildinfo +1 -1
  387. package/package.json +18 -11
@@ -1,7 +1,7 @@
1
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import { Return } from './returns';
4
- import { LineItem } from './line_items';
2
+ import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
+ import type { Return } from './returns';
4
+ import type { LineItem } from './line_items';
5
5
  declare type ReturnLineItemRel = ResourceRel & {
6
6
  type: typeof ReturnLineItems.TYPE;
7
7
  };
@@ -39,8 +39,8 @@ declare class ReturnLineItems extends ApiResource {
39
39
  retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ReturnLineItem>;
40
40
  update(resource: ReturnLineItemUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ReturnLineItem>;
41
41
  delete(id: string, options?: ResourcesConfig): Promise<void>;
42
- return(returnLineItemId: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Return>;
43
- line_item(returnLineItemId: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<LineItem>;
42
+ return(returnLineItemId: string | ReturnLineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Return>;
43
+ line_item(returnLineItemId: string | ReturnLineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<LineItem>;
44
44
  isReturnLineItem(resource: any): resource is ReturnLineItem;
45
45
  relationship(id: string | ResourceId | null): ReturnLineItemRel;
46
46
  type(): string;
@@ -1 +1 @@
1
- import{ApiResource as i}from"../resource";class r extends i{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:r.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:r.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}async return(e,t,s){return this.resources.fetch({type:"returns"},`return_line_items/${e}/return`,t,s)}async line_item(e,t,s){return this.resources.fetch({type:"line_items"},`return_line_items/${e}/line_item`,t,s)}isReturnLineItem(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="return_line_items";export default r;
1
+ import{ApiResource as n}from"../resource";class r extends n{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:r.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:r.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}async return(e,t,s){const i=e.id||e;return this.resources.fetch({type:"returns"},`return_line_items/${i}/return`,t,s)}async line_item(e,t,s){const i=e.id||e;return this.resources.fetch({type:"line_items"},`return_line_items/${i}/line_item`,t,s)}isReturnLineItem(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="return_line_items";export default r;
@@ -1,11 +1,11 @@
1
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import { Order } from './orders';
4
- import { Customer } from './customers';
5
- import { StockLocation } from './stock_locations';
6
- import { Address } from './addresses';
7
- import { ReturnLineItem } from './return_line_items';
8
- import { Attachment } from './attachments';
2
+ import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
+ import type { Order } from './orders';
4
+ import type { Customer } from './customers';
5
+ import type { StockLocation } from './stock_locations';
6
+ import type { Address } from './addresses';
7
+ import type { ReturnLineItem } from './return_line_items';
8
+ import type { Attachment } from './attachments';
9
9
  declare type ReturnRel = ResourceRel & {
10
10
  type: typeof Returns.TYPE;
11
11
  };
@@ -57,13 +57,13 @@ declare class Returns extends ApiResource {
57
57
  retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Return>;
58
58
  update(resource: ReturnUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Return>;
59
59
  delete(id: string, options?: ResourcesConfig): Promise<void>;
60
- order(returnId: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
61
- customer(returnId: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Customer>;
62
- stock_location(returnId: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockLocation>;
63
- origin_address(returnId: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Address>;
64
- destination_address(returnId: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Address>;
65
- return_line_items(returnId: string, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ReturnLineItem>>;
66
- attachments(returnId: string, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
60
+ order(returnId: string | Return, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
61
+ customer(returnId: string | Return, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Customer>;
62
+ stock_location(returnId: string | Return, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockLocation>;
63
+ origin_address(returnId: string | Return, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Address>;
64
+ destination_address(returnId: string | Return, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Address>;
65
+ return_line_items(returnId: string | Return, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ReturnLineItem>>;
66
+ attachments(returnId: string | Return, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
67
67
  isReturn(resource: any): resource is Return;
68
68
  relationship(id: string | ResourceId | null): ReturnRel;
69
69
  type(): string;
@@ -1 +1 @@
1
- import{ApiResource as n}from"../resource";class r extends n{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:r.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:r.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}async order(e,t,s){return this.resources.fetch({type:"orders"},`returns/${e}/order`,t,s)}async customer(e,t,s){return this.resources.fetch({type:"customers"},`returns/${e}/customer`,t,s)}async stock_location(e,t,s){return this.resources.fetch({type:"stock_locations"},`returns/${e}/stock_location`,t,s)}async origin_address(e,t,s){return this.resources.fetch({type:"addresses"},`returns/${e}/origin_address`,t,s)}async destination_address(e,t,s){return this.resources.fetch({type:"addresses"},`returns/${e}/destination_address`,t,s)}async return_line_items(e,t,s){return this.resources.fetch({type:"return_line_items"},`returns/${e}/return_line_items`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`returns/${e}/attachments`,t,s)}isReturn(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="returns";export default r;
1
+ import{ApiResource as c}from"../resource";class n extends c{async list(e,t){return this.resources.list({type:n.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:n.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:n.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:n.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:n.TYPE,id:e},t)}async order(e,t,s){const r=e.id||e;return this.resources.fetch({type:"orders"},`returns/${r}/order`,t,s)}async customer(e,t,s){const r=e.id||e;return this.resources.fetch({type:"customers"},`returns/${r}/customer`,t,s)}async stock_location(e,t,s){const r=e.id||e;return this.resources.fetch({type:"stock_locations"},`returns/${r}/stock_location`,t,s)}async origin_address(e,t,s){const r=e.id||e;return this.resources.fetch({type:"addresses"},`returns/${r}/origin_address`,t,s)}async destination_address(e,t,s){const r=e.id||e;return this.resources.fetch({type:"addresses"},`returns/${r}/destination_address`,t,s)}async return_line_items(e,t,s){const r=e.id||e;return this.resources.fetch({type:"return_line_items"},`returns/${r}/return_line_items`,t,s)}async attachments(e,t,s){const r=e.id||e;return this.resources.fetch({type:"attachments"},`returns/${r}/attachments`,t,s)}isReturn(e){return e.type&&e.type===n.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:n.TYPE}:{id:e.id,type:n.TYPE}}type(){return n.TYPE}}n.TYPE="returns";export default n;
@@ -1,16 +1,16 @@
1
1
  import { ApiResource, Resource, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import { Order } from './orders';
4
- import { ShippingCategory } from './shipping_categories';
5
- import { StockLocation } from './stock_locations';
6
- import { Address } from './addresses';
7
- import { ShippingMethod } from './shipping_methods';
8
- import { DeliveryLeadTime } from './delivery_lead_times';
9
- import { StockLineItem } from './stock_line_items';
10
- import { StockTransfer } from './stock_transfers';
11
- import { CarrierAccount } from './carrier_accounts';
12
- import { Parcel } from './parcels';
13
- import { Attachment } from './attachments';
2
+ import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
+ import type { Order } from './orders';
4
+ import type { ShippingCategory } from './shipping_categories';
5
+ import type { StockLocation } from './stock_locations';
6
+ import type { Address } from './addresses';
7
+ import type { ShippingMethod } from './shipping_methods';
8
+ import type { DeliveryLeadTime } from './delivery_lead_times';
9
+ import type { StockLineItem } from './stock_line_items';
10
+ import type { StockTransfer } from './stock_transfers';
11
+ import type { CarrierAccount } from './carrier_accounts';
12
+ import type { Parcel } from './parcels';
13
+ import type { Attachment } from './attachments';
14
14
  declare type ShipmentRel = ResourceRel & {
15
15
  type: typeof Shipments.TYPE;
16
16
  };
@@ -68,19 +68,19 @@ declare class Shipments extends ApiResource {
68
68
  list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Shipment>>;
69
69
  retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Shipment>;
70
70
  update(resource: ShipmentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Shipment>;
71
- order(shipmentId: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
72
- shipping_category(shipmentId: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ShippingCategory>;
73
- stock_location(shipmentId: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockLocation>;
74
- origin_address(shipmentId: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Address>;
75
- shipping_address(shipmentId: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Address>;
76
- shipping_method(shipmentId: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ShippingMethod>;
77
- delivery_lead_time(shipmentId: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<DeliveryLeadTime>;
78
- stock_line_items(shipmentId: string, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StockLineItem>>;
79
- stock_transfers(shipmentId: string, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StockTransfer>>;
80
- available_shipping_methods(shipmentId: string, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ShippingMethod>>;
81
- carrier_accounts(shipmentId: string, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CarrierAccount>>;
82
- parcels(shipmentId: string, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Parcel>>;
83
- attachments(shipmentId: string, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
71
+ order(shipmentId: string | Shipment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
72
+ shipping_category(shipmentId: string | Shipment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ShippingCategory>;
73
+ stock_location(shipmentId: string | Shipment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockLocation>;
74
+ origin_address(shipmentId: string | Shipment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Address>;
75
+ shipping_address(shipmentId: string | Shipment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Address>;
76
+ shipping_method(shipmentId: string | Shipment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ShippingMethod>;
77
+ delivery_lead_time(shipmentId: string | Shipment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<DeliveryLeadTime>;
78
+ stock_line_items(shipmentId: string | Shipment, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StockLineItem>>;
79
+ stock_transfers(shipmentId: string | Shipment, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StockTransfer>>;
80
+ available_shipping_methods(shipmentId: string | Shipment, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ShippingMethod>>;
81
+ carrier_accounts(shipmentId: string | Shipment, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CarrierAccount>>;
82
+ parcels(shipmentId: string | Shipment, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Parcel>>;
83
+ attachments(shipmentId: string | Shipment, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
84
84
  isShipment(resource: any): resource is Shipment;
85
85
  relationship(id: string | ResourceId | null): ShipmentRel;
86
86
  type(): string;
@@ -1 +1 @@
1
- import{ApiResource as i}from"../resource";class r extends i{async list(e,s){return this.resources.list({type:r.TYPE},e,s)}async retrieve(e,s,t){return this.resources.retrieve({type:r.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async order(e,s,t){return this.resources.fetch({type:"orders"},`shipments/${e}/order`,s,t)}async shipping_category(e,s,t){return this.resources.fetch({type:"shipping_categories"},`shipments/${e}/shipping_category`,s,t)}async stock_location(e,s,t){return this.resources.fetch({type:"stock_locations"},`shipments/${e}/stock_location`,s,t)}async origin_address(e,s,t){return this.resources.fetch({type:"addresses"},`shipments/${e}/origin_address`,s,t)}async shipping_address(e,s,t){return this.resources.fetch({type:"addresses"},`shipments/${e}/shipping_address`,s,t)}async shipping_method(e,s,t){return this.resources.fetch({type:"shipping_methods"},`shipments/${e}/shipping_method`,s,t)}async delivery_lead_time(e,s,t){return this.resources.fetch({type:"delivery_lead_times"},`shipments/${e}/delivery_lead_time`,s,t)}async stock_line_items(e,s,t){return this.resources.fetch({type:"stock_line_items"},`shipments/${e}/stock_line_items`,s,t)}async stock_transfers(e,s,t){return this.resources.fetch({type:"stock_transfers"},`shipments/${e}/stock_transfers`,s,t)}async available_shipping_methods(e,s,t){return this.resources.fetch({type:"shipping_methods"},`shipments/${e}/available_shipping_methods`,s,t)}async carrier_accounts(e,s,t){return this.resources.fetch({type:"carrier_accounts"},`shipments/${e}/carrier_accounts`,s,t)}async parcels(e,s,t){return this.resources.fetch({type:"parcels"},`shipments/${e}/parcels`,s,t)}async attachments(e,s,t){return this.resources.fetch({type:"attachments"},`shipments/${e}/attachments`,s,t)}isShipment(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="shipments";export default r;
1
+ import{ApiResource as n}from"../resource";class i extends n{async list(s,e){return this.resources.list({type:i.TYPE},s,e)}async retrieve(s,e,t){return this.resources.retrieve({type:i.TYPE,id:s},e,t)}async update(s,e,t){return this.resources.update(Object.assign(Object.assign({},s),{type:i.TYPE}),e,t)}async order(s,e,t){const r=s.id||s;return this.resources.fetch({type:"orders"},`shipments/${r}/order`,e,t)}async shipping_category(s,e,t){const r=s.id||s;return this.resources.fetch({type:"shipping_categories"},`shipments/${r}/shipping_category`,e,t)}async stock_location(s,e,t){const r=s.id||s;return this.resources.fetch({type:"stock_locations"},`shipments/${r}/stock_location`,e,t)}async origin_address(s,e,t){const r=s.id||s;return this.resources.fetch({type:"addresses"},`shipments/${r}/origin_address`,e,t)}async shipping_address(s,e,t){const r=s.id||s;return this.resources.fetch({type:"addresses"},`shipments/${r}/shipping_address`,e,t)}async shipping_method(s,e,t){const r=s.id||s;return this.resources.fetch({type:"shipping_methods"},`shipments/${r}/shipping_method`,e,t)}async delivery_lead_time(s,e,t){const r=s.id||s;return this.resources.fetch({type:"delivery_lead_times"},`shipments/${r}/delivery_lead_time`,e,t)}async stock_line_items(s,e,t){const r=s.id||s;return this.resources.fetch({type:"stock_line_items"},`shipments/${r}/stock_line_items`,e,t)}async stock_transfers(s,e,t){const r=s.id||s;return this.resources.fetch({type:"stock_transfers"},`shipments/${r}/stock_transfers`,e,t)}async available_shipping_methods(s,e,t){const r=s.id||s;return this.resources.fetch({type:"shipping_methods"},`shipments/${r}/available_shipping_methods`,e,t)}async carrier_accounts(s,e,t){const r=s.id||s;return this.resources.fetch({type:"carrier_accounts"},`shipments/${r}/carrier_accounts`,e,t)}async parcels(s,e,t){const r=s.id||s;return this.resources.fetch({type:"parcels"},`shipments/${r}/parcels`,e,t)}async attachments(s,e,t){const r=s.id||s;return this.resources.fetch({type:"attachments"},`shipments/${r}/attachments`,e,t)}isShipment(s){return s.type&&s.type===i.TYPE}relationship(s){return s===null||typeof s=="string"?{id:s,type:i.TYPE}:{id:s.id,type:i.TYPE}}type(){return i.TYPE}}i.TYPE="shipments";export default i;
@@ -1,7 +1,7 @@
1
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import { Sku } from './skus';
4
- import { Attachment } from './attachments';
2
+ import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
+ import type { Sku } from './skus';
4
+ import type { Attachment } from './attachments';
5
5
  declare type ShippingCategoryRel = ResourceRel & {
6
6
  type: typeof ShippingCategories.TYPE;
7
7
  };
@@ -23,8 +23,8 @@ declare class ShippingCategories extends ApiResource {
23
23
  retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ShippingCategory>;
24
24
  update(resource: ShippingCategoryUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ShippingCategory>;
25
25
  delete(id: string, options?: ResourcesConfig): Promise<void>;
26
- skus(shippingCategoryId: string, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Sku>>;
27
- attachments(shippingCategoryId: string, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
26
+ skus(shippingCategoryId: string | ShippingCategory, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Sku>>;
27
+ attachments(shippingCategoryId: string | ShippingCategory, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
28
28
  isShippingCategory(resource: any): resource is ShippingCategory;
29
29
  relationship(id: string | ResourceId | null): ShippingCategoryRel;
30
30
  type(): string;
@@ -1 +1 @@
1
- import{ApiResource as i}from"../resource";class s extends i{async list(e,t){return this.resources.list({type:s.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:s.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:s.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:s.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:s.TYPE,id:e},t)}async skus(e,t,r){return this.resources.fetch({type:"skus"},`shipping_categories/${e}/skus`,t,r)}async attachments(e,t,r){return this.resources.fetch({type:"attachments"},`shipping_categories/${e}/attachments`,t,r)}isShippingCategory(e){return e.type&&e.type===s.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="shipping_categories";export default s;
1
+ import{ApiResource as c}from"../resource";class s extends c{async list(e,t){return this.resources.list({type:s.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:s.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:s.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:s.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:s.TYPE,id:e},t)}async skus(e,t,r){const i=e.id||e;return this.resources.fetch({type:"skus"},`shipping_categories/${i}/skus`,t,r)}async attachments(e,t,r){const i=e.id||e;return this.resources.fetch({type:"attachments"},`shipping_categories/${i}/attachments`,t,r)}isShippingCategory(e){return e.type&&e.type===s.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="shipping_categories";export default s;
@@ -1,10 +1,10 @@
1
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import { Market } from './markets';
4
- import { ShippingZone } from './shipping_zones';
5
- import { ShippingCategory } from './shipping_categories';
6
- import { DeliveryLeadTime } from './delivery_lead_times';
7
- import { Attachment } from './attachments';
2
+ import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
+ import type { Market } from './markets';
4
+ import type { ShippingZone } from './shipping_zones';
5
+ import type { ShippingCategory } from './shipping_categories';
6
+ import type { DeliveryLeadTime } from './delivery_lead_times';
7
+ import type { Attachment } from './attachments';
8
8
  declare type ShippingMethodRel = ResourceRel & {
9
9
  type: typeof ShippingMethods.TYPE;
10
10
  };
@@ -61,11 +61,11 @@ declare class ShippingMethods extends ApiResource {
61
61
  retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ShippingMethod>;
62
62
  update(resource: ShippingMethodUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ShippingMethod>;
63
63
  delete(id: string, options?: ResourcesConfig): Promise<void>;
64
- market(shippingMethodId: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Market>;
65
- shipping_zone(shippingMethodId: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ShippingZone>;
66
- shipping_category(shippingMethodId: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ShippingCategory>;
67
- delivery_lead_time_for_shipment(shippingMethodId: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<DeliveryLeadTime>;
68
- attachments(shippingMethodId: string, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
64
+ market(shippingMethodId: string | ShippingMethod, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Market>;
65
+ shipping_zone(shippingMethodId: string | ShippingMethod, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ShippingZone>;
66
+ shipping_category(shippingMethodId: string | ShippingMethod, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ShippingCategory>;
67
+ delivery_lead_time_for_shipment(shippingMethodId: string | ShippingMethod, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<DeliveryLeadTime>;
68
+ attachments(shippingMethodId: string | ShippingMethod, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
69
69
  isShippingMethod(resource: any): resource is ShippingMethod;
70
70
  relationship(id: string | ResourceId | null): ShippingMethodRel;
71
71
  type(): string;
@@ -1 +1 @@
1
- import{ApiResource as i}from"../resource";class r extends i{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:r.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:r.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}async market(e,t,s){return this.resources.fetch({type:"markets"},`shipping_methods/${e}/market`,t,s)}async shipping_zone(e,t,s){return this.resources.fetch({type:"shipping_zones"},`shipping_methods/${e}/shipping_zone`,t,s)}async shipping_category(e,t,s){return this.resources.fetch({type:"shipping_categories"},`shipping_methods/${e}/shipping_category`,t,s)}async delivery_lead_time_for_shipment(e,t,s){return this.resources.fetch({type:"delivery_lead_times"},`shipping_methods/${e}/delivery_lead_time_for_shipment`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`shipping_methods/${e}/attachments`,t,s)}isShippingMethod(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="shipping_methods";export default r;
1
+ import{ApiResource as n}from"../resource";class r extends n{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:r.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:r.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}async market(e,t,s){const i=e.id||e;return this.resources.fetch({type:"markets"},`shipping_methods/${i}/market`,t,s)}async shipping_zone(e,t,s){const i=e.id||e;return this.resources.fetch({type:"shipping_zones"},`shipping_methods/${i}/shipping_zone`,t,s)}async shipping_category(e,t,s){const i=e.id||e;return this.resources.fetch({type:"shipping_categories"},`shipping_methods/${i}/shipping_category`,t,s)}async delivery_lead_time_for_shipment(e,t,s){const i=e.id||e;return this.resources.fetch({type:"delivery_lead_times"},`shipping_methods/${i}/delivery_lead_time_for_shipment`,t,s)}async attachments(e,t,s){const i=e.id||e;return this.resources.fetch({type:"attachments"},`shipping_methods/${i}/attachments`,t,s)}isShippingMethod(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="shipping_methods";export default r;
@@ -1,6 +1,6 @@
1
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import { Attachment } from './attachments';
2
+ import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
+ import type { Attachment } from './attachments';
4
4
  declare type ShippingZoneRel = ResourceRel & {
5
5
  type: typeof ShippingZones.TYPE;
6
6
  };
@@ -39,7 +39,7 @@ declare class ShippingZones extends ApiResource {
39
39
  retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ShippingZone>;
40
40
  update(resource: ShippingZoneUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ShippingZone>;
41
41
  delete(id: string, options?: ResourcesConfig): Promise<void>;
42
- attachments(shippingZoneId: string, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
42
+ attachments(shippingZoneId: string | ShippingZone, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
43
43
  isShippingZone(resource: any): resource is ShippingZone;
44
44
  relationship(id: string | ResourceId | null): ShippingZoneRel;
45
45
  type(): string;
@@ -1 +1 @@
1
- import{ApiResource as i}from"../resource";class t extends i{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}async attachments(e,s,r){return this.resources.fetch({type:"attachments"},`shipping_zones/${e}/attachments`,s,r)}isShippingZone(e){return e.type&&e.type===t.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="shipping_zones";export default t;
1
+ import{ApiResource as n}from"../resource";class t extends n{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}async attachments(e,s,r){const i=e.id||e;return this.resources.fetch({type:"attachments"},`shipping_zones/${i}/attachments`,s,r)}isShippingZone(e){return e.type&&e.type===t.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="shipping_zones";export default t;
@@ -1,7 +1,7 @@
1
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import { SkuList } from './sku_lists';
4
- import { Sku } from './skus';
2
+ import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
+ import type { SkuList } from './sku_lists';
4
+ import type { Sku } from './skus';
5
5
  declare type SkuListItemRel = ResourceRel & {
6
6
  type: typeof SkuListItems.TYPE;
7
7
  };
@@ -37,8 +37,8 @@ declare class SkuListItems extends ApiResource {
37
37
  retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuListItem>;
38
38
  update(resource: SkuListItemUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuListItem>;
39
39
  delete(id: string, options?: ResourcesConfig): Promise<void>;
40
- sku_list(skuListItemId: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>;
41
- sku(skuListItemId: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Sku>;
40
+ sku_list(skuListItemId: string | SkuListItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>;
41
+ sku(skuListItemId: string | SkuListItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Sku>;
42
42
  isSkuListItem(resource: any): resource is SkuListItem;
43
43
  relationship(id: string | ResourceId | null): SkuListItemRel;
44
44
  type(): string;
@@ -1 +1 @@
1
- import{ApiResource as i}from"../resource";class t extends i{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}async sku_list(e,s,r){return this.resources.fetch({type:"sku_lists"},`sku_list_items/${e}/sku_list`,s,r)}async sku(e,s,r){return this.resources.fetch({type:"skus"},`sku_list_items/${e}/sku`,s,r)}isSkuListItem(e){return e.type&&e.type===t.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="sku_list_items";export default t;
1
+ import{ApiResource as u}from"../resource";class t extends u{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}async sku_list(e,s,r){const i=e.id||e;return this.resources.fetch({type:"sku_lists"},`sku_list_items/${i}/sku_list`,s,r)}async sku(e,s,r){const i=e.id||e;return this.resources.fetch({type:"skus"},`sku_list_items/${i}/sku`,s,r)}isSkuListItem(e){return e.type&&e.type===t.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="sku_list_items";export default t;
@@ -1,13 +1,13 @@
1
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import { PercentageDiscountPromotion } from './percentage_discount_promotions';
4
- import { FreeShippingPromotion } from './free_shipping_promotions';
5
- import { FixedAmountPromotion } from './fixed_amount_promotions';
6
- import { FreeGiftPromotion } from './free_gift_promotions';
7
- import { FixedPricePromotion } from './fixed_price_promotions';
8
- import { ExternalPromotion } from './external_promotions';
9
- import { SkuList } from './sku_lists';
10
- import { Sku } from './skus';
2
+ import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
+ import type { PercentageDiscountPromotion } from './percentage_discount_promotions';
4
+ import type { FreeShippingPromotion } from './free_shipping_promotions';
5
+ import type { FixedAmountPromotion } from './fixed_amount_promotions';
6
+ import type { FreeGiftPromotion } from './free_gift_promotions';
7
+ import type { FixedPricePromotion } from './fixed_price_promotions';
8
+ import type { ExternalPromotion } from './external_promotions';
9
+ import type { SkuList } from './sku_lists';
10
+ import type { Sku } from './skus';
11
11
  declare type SkuListPromotionRuleRel = ResourceRel & {
12
12
  type: typeof SkuListPromotionRules.TYPE;
13
13
  };
@@ -58,8 +58,8 @@ declare class SkuListPromotionRules extends ApiResource {
58
58
  retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuListPromotionRule>;
59
59
  update(resource: SkuListPromotionRuleUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuListPromotionRule>;
60
60
  delete(id: string, options?: ResourcesConfig): Promise<void>;
61
- sku_list(skuListPromotionRuleId: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>;
62
- skus(skuListPromotionRuleId: string, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Sku>>;
61
+ sku_list(skuListPromotionRuleId: string | SkuListPromotionRule, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>;
62
+ skus(skuListPromotionRuleId: string | SkuListPromotionRule, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Sku>>;
63
63
  isSkuListPromotionRule(resource: any): resource is SkuListPromotionRule;
64
64
  relationship(id: string | ResourceId | null): SkuListPromotionRuleRel;
65
65
  type(): string;
@@ -1 +1 @@
1
- import{ApiResource as i}from"../resource";class t extends i{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}async sku_list(e,s,r){return this.resources.fetch({type:"sku_lists"},`sku_list_promotion_rules/${e}/sku_list`,s,r)}async skus(e,s,r){return this.resources.fetch({type:"skus"},`sku_list_promotion_rules/${e}/skus`,s,r)}isSkuListPromotionRule(e){return e.type&&e.type===t.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="sku_list_promotion_rules";export default t;
1
+ import{ApiResource as u}from"../resource";class t extends u{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}async sku_list(e,s,r){const i=e.id||e;return this.resources.fetch({type:"sku_lists"},`sku_list_promotion_rules/${i}/sku_list`,s,r)}async skus(e,s,r){const i=e.id||e;return this.resources.fetch({type:"skus"},`sku_list_promotion_rules/${i}/skus`,s,r)}isSkuListPromotionRule(e){return e.type&&e.type===t.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="sku_list_promotion_rules";export default t;
@@ -1,8 +1,8 @@
1
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import { Sku } from './skus';
4
- import { SkuListItem } from './sku_list_items';
5
- import { Bundle } from './bundles';
2
+ import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
+ import type { Sku } from './skus';
4
+ import type { SkuListItem } from './sku_list_items';
5
+ import type { Bundle } from './bundles';
6
6
  declare type SkuListRel = ResourceRel & {
7
7
  type: typeof SkuLists.TYPE;
8
8
  };
@@ -38,9 +38,9 @@ declare class SkuLists extends ApiResource {
38
38
  retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>;
39
39
  update(resource: SkuListUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>;
40
40
  delete(id: string, options?: ResourcesConfig): Promise<void>;
41
- skus(skuListId: string, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Sku>>;
42
- sku_list_items(skuListId: string, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<SkuListItem>>;
43
- bundles(skuListId: string, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Bundle>>;
41
+ skus(skuListId: string | SkuList, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Sku>>;
42
+ sku_list_items(skuListId: string | SkuList, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<SkuListItem>>;
43
+ bundles(skuListId: string | SkuList, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Bundle>>;
44
44
  isSkuList(resource: any): resource is SkuList;
45
45
  relationship(id: string | ResourceId | null): SkuListRel;
46
46
  type(): string;
@@ -1 +1 @@
1
- import{ApiResource as i}from"../resource";class t extends i{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}async skus(e,s,r){return this.resources.fetch({type:"skus"},`sku_lists/${e}/skus`,s,r)}async sku_list_items(e,s,r){return this.resources.fetch({type:"sku_list_items"},`sku_lists/${e}/sku_list_items`,s,r)}async bundles(e,s,r){return this.resources.fetch({type:"bundles"},`sku_lists/${e}/bundles`,s,r)}isSkuList(e){return e.type&&e.type===t.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="sku_lists";export default t;
1
+ import{ApiResource as u}from"../resource";class t extends u{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}async skus(e,s,r){const i=e.id||e;return this.resources.fetch({type:"skus"},`sku_lists/${i}/skus`,s,r)}async sku_list_items(e,s,r){const i=e.id||e;return this.resources.fetch({type:"sku_list_items"},`sku_lists/${i}/sku_list_items`,s,r)}async bundles(e,s,r){const i=e.id||e;return this.resources.fetch({type:"bundles"},`sku_lists/${i}/bundles`,s,r)}isSkuList(e){return e.type&&e.type===t.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="sku_lists";export default t;
@@ -1,7 +1,7 @@
1
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import { Market } from './markets';
4
- import { Attachment } from './attachments';
2
+ import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
+ import type { Market } from './markets';
4
+ import type { Attachment } from './attachments';
5
5
  declare type SkuOptionRel = ResourceRel & {
6
6
  type: typeof SkuOptions.TYPE;
7
7
  };
@@ -46,8 +46,8 @@ declare class SkuOptions extends ApiResource {
46
46
  retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuOption>;
47
47
  update(resource: SkuOptionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuOption>;
48
48
  delete(id: string, options?: ResourcesConfig): Promise<void>;
49
- market(skuOptionId: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Market>;
50
- attachments(skuOptionId: string, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
49
+ market(skuOptionId: string | SkuOption, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Market>;
50
+ attachments(skuOptionId: string | SkuOption, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
51
51
  isSkuOption(resource: any): resource is SkuOption;
52
52
  relationship(id: string | ResourceId | null): SkuOptionRel;
53
53
  type(): string;
@@ -1 +1 @@
1
- import{ApiResource as a}from"../resource";class s extends a{async list(e,t){return this.resources.list({type:s.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:s.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:s.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:s.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:s.TYPE,id:e},t)}async market(e,t,r){return this.resources.fetch({type:"markets"},`sku_options/${e}/market`,t,r)}async attachments(e,t,r){return this.resources.fetch({type:"attachments"},`sku_options/${e}/attachments`,t,r)}isSkuOption(e){return e.type&&e.type===s.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="sku_options";export default s;
1
+ import{ApiResource as n}from"../resource";class s extends n{async list(e,t){return this.resources.list({type:s.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:s.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:s.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:s.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:s.TYPE,id:e},t)}async market(e,t,r){const i=e.id||e;return this.resources.fetch({type:"markets"},`sku_options/${i}/market`,t,r)}async attachments(e,t,r){const i=e.id||e;return this.resources.fetch({type:"attachments"},`sku_options/${i}/attachments`,t,r)}isSkuOption(e){return e.type&&e.type===s.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="sku_options";export default s;
@@ -1,11 +1,11 @@
1
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import { ShippingCategory } from './shipping_categories';
4
- import { Price } from './prices';
5
- import { StockItem } from './stock_items';
6
- import { DeliveryLeadTime } from './delivery_lead_times';
7
- import { SkuOption } from './sku_options';
8
- import { Attachment } from './attachments';
2
+ import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
+ import type { ShippingCategory } from './shipping_categories';
4
+ import type { Price } from './prices';
5
+ import type { StockItem } from './stock_items';
6
+ import type { DeliveryLeadTime } from './delivery_lead_times';
7
+ import type { SkuOption } from './sku_options';
8
+ import type { Attachment } from './attachments';
9
9
  declare type SkuRel = ResourceRel & {
10
10
  type: typeof Skus.TYPE;
11
11
  };
@@ -64,12 +64,12 @@ declare class Skus extends ApiResource {
64
64
  retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Sku>;
65
65
  update(resource: SkuUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Sku>;
66
66
  delete(id: string, options?: ResourcesConfig): Promise<void>;
67
- shipping_category(skuId: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ShippingCategory>;
68
- prices(skuId: string, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Price>>;
69
- stock_items(skuId: string, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StockItem>>;
70
- delivery_lead_times(skuId: string, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<DeliveryLeadTime>>;
71
- sku_options(skuId: string, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<SkuOption>>;
72
- attachments(skuId: string, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
67
+ shipping_category(skuId: string | Sku, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ShippingCategory>;
68
+ prices(skuId: string | Sku, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Price>>;
69
+ stock_items(skuId: string | Sku, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StockItem>>;
70
+ delivery_lead_times(skuId: string | Sku, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<DeliveryLeadTime>>;
71
+ sku_options(skuId: string | Sku, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<SkuOption>>;
72
+ attachments(skuId: string | Sku, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
73
73
  isSku(resource: any): resource is Sku;
74
74
  relationship(id: string | ResourceId | null): SkuRel;
75
75
  type(): string;
@@ -1 +1 @@
1
- import{ApiResource as i}from"../resource";class r extends i{async list(e,s){return this.resources.list({type:r.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:r.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:r.TYPE,id:e},s)}async shipping_category(e,s,t){return this.resources.fetch({type:"shipping_categories"},`skus/${e}/shipping_category`,s,t)}async prices(e,s,t){return this.resources.fetch({type:"prices"},`skus/${e}/prices`,s,t)}async stock_items(e,s,t){return this.resources.fetch({type:"stock_items"},`skus/${e}/stock_items`,s,t)}async delivery_lead_times(e,s,t){return this.resources.fetch({type:"delivery_lead_times"},`skus/${e}/delivery_lead_times`,s,t)}async sku_options(e,s,t){return this.resources.fetch({type:"sku_options"},`skus/${e}/sku_options`,s,t)}async attachments(e,s,t){return this.resources.fetch({type:"attachments"},`skus/${e}/attachments`,s,t)}isSku(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="skus";export default r;
1
+ import{ApiResource as i}from"../resource";class r extends i{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:r.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:r.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}async shipping_category(e,t,s){const c=e.id||e;return this.resources.fetch({type:"shipping_categories"},`skus/${c}/shipping_category`,t,s)}async prices(e,t,s){const c=e.id||e;return this.resources.fetch({type:"prices"},`skus/${c}/prices`,t,s)}async stock_items(e,t,s){const c=e.id||e;return this.resources.fetch({type:"stock_items"},`skus/${c}/stock_items`,t,s)}async delivery_lead_times(e,t,s){const c=e.id||e;return this.resources.fetch({type:"delivery_lead_times"},`skus/${c}/delivery_lead_times`,t,s)}async sku_options(e,t,s){const c=e.id||e;return this.resources.fetch({type:"sku_options"},`skus/${c}/sku_options`,t,s)}async attachments(e,t,s){const c=e.id||e;return this.resources.fetch({type:"attachments"},`skus/${c}/attachments`,t,s)}isSku(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="skus";export default r;
@@ -1,8 +1,8 @@
1
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import { StockLocation } from './stock_locations';
4
- import { Sku } from './skus';
5
- import { Attachment } from './attachments';
2
+ import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
+ import type { StockLocation } from './stock_locations';
4
+ import type { Sku } from './skus';
5
+ import type { Attachment } from './attachments';
6
6
  declare type StockItemRel = ResourceRel & {
7
7
  type: typeof StockItems.TYPE;
8
8
  };
@@ -38,9 +38,9 @@ declare class StockItems extends ApiResource {
38
38
  retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockItem>;
39
39
  update(resource: StockItemUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockItem>;
40
40
  delete(id: string, options?: ResourcesConfig): Promise<void>;
41
- stock_location(stockItemId: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockLocation>;
42
- sku(stockItemId: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Sku>;
43
- attachments(stockItemId: string, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
41
+ stock_location(stockItemId: string | StockItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockLocation>;
42
+ sku(stockItemId: string | StockItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Sku>;
43
+ attachments(stockItemId: string | StockItem, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
44
44
  isStockItem(resource: any): resource is StockItem;
45
45
  relationship(id: string | ResourceId | null): StockItemRel;
46
46
  type(): string;
@@ -1 +1 @@
1
- import{ApiResource as c}from"../resource";class s extends c{async list(e,t){return this.resources.list({type:s.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:s.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:s.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:s.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:s.TYPE,id:e},t)}async stock_location(e,t,r){return this.resources.fetch({type:"stock_locations"},`stock_items/${e}/stock_location`,t,r)}async sku(e,t,r){return this.resources.fetch({type:"skus"},`stock_items/${e}/sku`,t,r)}async attachments(e,t,r){return this.resources.fetch({type:"attachments"},`stock_items/${e}/attachments`,t,r)}isStockItem(e){return e.type&&e.type===s.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="stock_items";export default s;
1
+ import{ApiResource as i}from"../resource";class s extends i{async list(e,t){return this.resources.list({type:s.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:s.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:s.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:s.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:s.TYPE,id:e},t)}async stock_location(e,t,r){const c=e.id||e;return this.resources.fetch({type:"stock_locations"},`stock_items/${c}/stock_location`,t,r)}async sku(e,t,r){const c=e.id||e;return this.resources.fetch({type:"skus"},`stock_items/${c}/sku`,t,r)}async attachments(e,t,r){const c=e.id||e;return this.resources.fetch({type:"attachments"},`stock_items/${c}/attachments`,t,r)}isStockItem(e){return e.type&&e.type===s.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="stock_items";export default s;
@@ -1,8 +1,8 @@
1
1
  import { ApiResource, Resource, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import { Shipment } from './shipments';
4
- import { LineItem } from './line_items';
5
- import { StockItem } from './stock_items';
2
+ import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
+ import type { Shipment } from './shipments';
4
+ import type { LineItem } from './line_items';
5
+ import type { StockItem } from './stock_items';
6
6
  declare type StockLineItemRel = ResourceRel & {
7
7
  type: typeof StockLineItems.TYPE;
8
8
  };
@@ -18,9 +18,9 @@ declare class StockLineItems extends ApiResource {
18
18
  static readonly TYPE: 'stock_line_items';
19
19
  list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StockLineItem>>;
20
20
  retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockLineItem>;
21
- shipment(stockLineItemId: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Shipment>;
22
- line_item(stockLineItemId: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<LineItem>;
23
- stock_item(stockLineItemId: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockItem>;
21
+ shipment(stockLineItemId: string | StockLineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Shipment>;
22
+ line_item(stockLineItemId: string | StockLineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<LineItem>;
23
+ stock_item(stockLineItemId: string | StockLineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockItem>;
24
24
  isStockLineItem(resource: any): resource is StockLineItem;
25
25
  relationship(id: string | ResourceId | null): StockLineItemRel;
26
26
  type(): string;
@@ -1 +1 @@
1
- import{ApiResource as r}from"../resource";class s extends r{async list(e,t){return this.resources.list({type:s.TYPE},e,t)}async retrieve(e,t,i){return this.resources.retrieve({type:s.TYPE,id:e},t,i)}async shipment(e,t,i){return this.resources.fetch({type:"shipments"},`stock_line_items/${e}/shipment`,t,i)}async line_item(e,t,i){return this.resources.fetch({type:"line_items"},`stock_line_items/${e}/line_item`,t,i)}async stock_item(e,t,i){return this.resources.fetch({type:"stock_items"},`stock_line_items/${e}/stock_item`,t,i)}isStockLineItem(e){return e.type&&e.type===s.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="stock_line_items";export default s;
1
+ import{ApiResource as n}from"../resource";class s extends n{async list(e,t){return this.resources.list({type:s.TYPE},e,t)}async retrieve(e,t,r){return this.resources.retrieve({type:s.TYPE,id:e},t,r)}async shipment(e,t,r){const i=e.id||e;return this.resources.fetch({type:"shipments"},`stock_line_items/${i}/shipment`,t,r)}async line_item(e,t,r){const i=e.id||e;return this.resources.fetch({type:"line_items"},`stock_line_items/${i}/line_item`,t,r)}async stock_item(e,t,r){const i=e.id||e;return this.resources.fetch({type:"stock_items"},`stock_line_items/${i}/stock_item`,t,r)}isStockLineItem(e){return e.type&&e.type===s.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="stock_line_items";export default s;
@@ -1,11 +1,11 @@
1
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import { Address } from './addresses';
4
- import { InventoryStockLocation } from './inventory_stock_locations';
5
- import { InventoryReturnLocation } from './inventory_return_locations';
6
- import { StockItem } from './stock_items';
7
- import { StockTransfer } from './stock_transfers';
8
- import { Attachment } from './attachments';
2
+ import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
+ import type { Address } from './addresses';
4
+ import type { InventoryStockLocation } from './inventory_stock_locations';
5
+ import type { InventoryReturnLocation } from './inventory_return_locations';
6
+ import type { StockItem } from './stock_items';
7
+ import type { StockTransfer } from './stock_transfers';
8
+ import type { Attachment } from './attachments';
9
9
  declare type StockLocationRel = ResourceRel & {
10
10
  type: typeof StockLocations.TYPE;
11
11
  };
@@ -43,12 +43,12 @@ declare class StockLocations extends ApiResource {
43
43
  retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockLocation>;
44
44
  update(resource: StockLocationUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockLocation>;
45
45
  delete(id: string, options?: ResourcesConfig): Promise<void>;
46
- address(stockLocationId: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Address>;
47
- inventory_stock_locations(stockLocationId: string, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<InventoryStockLocation>>;
48
- inventory_return_locations(stockLocationId: string, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<InventoryReturnLocation>>;
49
- stock_items(stockLocationId: string, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StockItem>>;
50
- stock_transfers(stockLocationId: string, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StockTransfer>>;
51
- attachments(stockLocationId: string, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
46
+ address(stockLocationId: string | StockLocation, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Address>;
47
+ inventory_stock_locations(stockLocationId: string | StockLocation, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<InventoryStockLocation>>;
48
+ inventory_return_locations(stockLocationId: string | StockLocation, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<InventoryReturnLocation>>;
49
+ stock_items(stockLocationId: string | StockLocation, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StockItem>>;
50
+ stock_transfers(stockLocationId: string | StockLocation, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StockTransfer>>;
51
+ attachments(stockLocationId: string | StockLocation, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
52
52
  isStockLocation(resource: any): resource is StockLocation;
53
53
  relationship(id: string | ResourceId | null): StockLocationRel;
54
54
  type(): string;
@@ -1 +1 @@
1
- import{ApiResource as c}from"../resource";class r extends c{async list(t,s){return this.resources.list({type:r.TYPE},t,s)}async create(t,s,e){return this.resources.create(Object.assign(Object.assign({},t),{type:r.TYPE}),s,e)}async retrieve(t,s,e){return this.resources.retrieve({type:r.TYPE,id:t},s,e)}async update(t,s,e){return this.resources.update(Object.assign(Object.assign({},t),{type:r.TYPE}),s,e)}async delete(t,s){await this.resources.delete({type:r.TYPE,id:t},s)}async address(t,s,e){return this.resources.fetch({type:"addresses"},`stock_locations/${t}/address`,s,e)}async inventory_stock_locations(t,s,e){return this.resources.fetch({type:"inventory_stock_locations"},`stock_locations/${t}/inventory_stock_locations`,s,e)}async inventory_return_locations(t,s,e){return this.resources.fetch({type:"inventory_return_locations"},`stock_locations/${t}/inventory_return_locations`,s,e)}async stock_items(t,s,e){return this.resources.fetch({type:"stock_items"},`stock_locations/${t}/stock_items`,s,e)}async stock_transfers(t,s,e){return this.resources.fetch({type:"stock_transfers"},`stock_locations/${t}/stock_transfers`,s,e)}async attachments(t,s,e){return this.resources.fetch({type:"attachments"},`stock_locations/${t}/attachments`,s,e)}isStockLocation(t){return t.type&&t.type===r.TYPE}relationship(t){return t===null||typeof t=="string"?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="stock_locations";export default r;
1
+ import{ApiResource as o}from"../resource";class c extends o{async list(t,s){return this.resources.list({type:c.TYPE},t,s)}async create(t,s,e){return this.resources.create(Object.assign(Object.assign({},t),{type:c.TYPE}),s,e)}async retrieve(t,s,e){return this.resources.retrieve({type:c.TYPE,id:t},s,e)}async update(t,s,e){return this.resources.update(Object.assign(Object.assign({},t),{type:c.TYPE}),s,e)}async delete(t,s){await this.resources.delete({type:c.TYPE,id:t},s)}async address(t,s,e){const r=t.id||t;return this.resources.fetch({type:"addresses"},`stock_locations/${r}/address`,s,e)}async inventory_stock_locations(t,s,e){const r=t.id||t;return this.resources.fetch({type:"inventory_stock_locations"},`stock_locations/${r}/inventory_stock_locations`,s,e)}async inventory_return_locations(t,s,e){const r=t.id||t;return this.resources.fetch({type:"inventory_return_locations"},`stock_locations/${r}/inventory_return_locations`,s,e)}async stock_items(t,s,e){const r=t.id||t;return this.resources.fetch({type:"stock_items"},`stock_locations/${r}/stock_items`,s,e)}async stock_transfers(t,s,e){const r=t.id||t;return this.resources.fetch({type:"stock_transfers"},`stock_locations/${r}/stock_transfers`,s,e)}async attachments(t,s,e){const r=t.id||t;return this.resources.fetch({type:"attachments"},`stock_locations/${r}/attachments`,s,e)}isStockLocation(t){return t.type&&t.type===c.TYPE}relationship(t){return t===null||typeof t=="string"?{id:t,type:c.TYPE}:{id:t.id,type:c.TYPE}}type(){return c.TYPE}}c.TYPE="stock_locations";export default c;