@commercelayer/sdk 7.0.0-beta.14 → 7.0.0-beta.16

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 (309) hide show
  1. package/lib/{api-BvsFkjzY.d.ts → api-CsxHP9zh.d.ts} +1813 -1936
  2. package/lib/{api-BLNq5Jhc.d.cts → api-Cxxi3g4i.d.cts} +1813 -1936
  3. package/lib/api.cjs +1 -144
  4. package/lib/api.d.cts +2 -2
  5. package/lib/api.d.ts +2 -2
  6. package/lib/api.js +0 -145
  7. package/lib/client.d.cts +1 -1
  8. package/lib/client.d.ts +1 -1
  9. package/lib/commercelayer.cjs +7 -12
  10. package/lib/commercelayer.d.cts +5 -7
  11. package/lib/commercelayer.d.ts +5 -7
  12. package/lib/commercelayer.js +6 -11
  13. package/lib/common.cjs +3 -3
  14. package/lib/common.d.cts +2 -2
  15. package/lib/common.d.ts +2 -2
  16. package/lib/common.js +1 -1
  17. package/lib/config.d.cts +1 -1
  18. package/lib/config.d.ts +1 -1
  19. package/lib/enum.cjs +659 -0
  20. package/lib/enum.d.cts +4 -0
  21. package/lib/enum.d.ts +4 -0
  22. package/lib/enum.js +643 -0
  23. package/lib/error.cjs +8 -0
  24. package/lib/error.d.cts +4 -1
  25. package/lib/error.d.ts +4 -1
  26. package/lib/error.js +7 -1
  27. package/lib/fetch.d.cts +1 -1
  28. package/lib/fetch.d.ts +1 -1
  29. package/lib/index.d.cts +2 -2
  30. package/lib/index.d.ts +2 -2
  31. package/lib/{interceptor-D65i25Y7.d.cts → interceptor-5MISI1yn.d.cts} +1 -1
  32. package/lib/{interceptor-D65i25Y7.d.ts → interceptor-5MISI1yn.d.ts} +1 -1
  33. package/lib/interceptor.d.cts +1 -1
  34. package/lib/interceptor.d.ts +1 -1
  35. package/lib/jsonapi.d.cts +2 -2
  36. package/lib/jsonapi.d.ts +2 -2
  37. package/lib/model.d.cts +2 -2
  38. package/lib/model.d.ts +2 -2
  39. package/lib/query.d.cts +2 -2
  40. package/lib/query.d.ts +2 -2
  41. package/lib/resource.d.cts +2 -2
  42. package/lib/resource.d.ts +2 -2
  43. package/lib/resources/addresses.d.cts +2 -2
  44. package/lib/resources/addresses.d.ts +2 -2
  45. package/lib/resources/adjustments.d.cts +2 -2
  46. package/lib/resources/adjustments.d.ts +2 -2
  47. package/lib/resources/adyen_gateways.d.cts +2 -2
  48. package/lib/resources/adyen_gateways.d.ts +2 -2
  49. package/lib/resources/adyen_payments.d.cts +2 -2
  50. package/lib/resources/adyen_payments.d.ts +2 -2
  51. package/lib/resources/applications.d.cts +2 -2
  52. package/lib/resources/applications.d.ts +2 -2
  53. package/lib/resources/attachments.d.cts +2 -2
  54. package/lib/resources/attachments.d.ts +2 -2
  55. package/lib/resources/authorizations.d.cts +2 -2
  56. package/lib/resources/authorizations.d.ts +2 -2
  57. package/lib/resources/avalara_accounts.d.cts +2 -2
  58. package/lib/resources/avalara_accounts.d.ts +2 -2
  59. package/lib/resources/axerve_gateways.d.cts +2 -2
  60. package/lib/resources/axerve_gateways.d.ts +2 -2
  61. package/lib/resources/axerve_payments.d.cts +2 -2
  62. package/lib/resources/axerve_payments.d.ts +2 -2
  63. package/lib/resources/bing_geocoders.d.cts +2 -2
  64. package/lib/resources/bing_geocoders.d.ts +2 -2
  65. package/lib/resources/braintree_gateways.d.cts +2 -2
  66. package/lib/resources/braintree_gateways.d.ts +2 -2
  67. package/lib/resources/braintree_payments.d.cts +2 -2
  68. package/lib/resources/braintree_payments.d.ts +2 -2
  69. package/lib/resources/bundles.d.cts +2 -2
  70. package/lib/resources/bundles.d.ts +2 -2
  71. package/lib/resources/buy_x_pay_y_promotions.d.cts +2 -2
  72. package/lib/resources/buy_x_pay_y_promotions.d.ts +2 -2
  73. package/lib/resources/captures.d.cts +2 -2
  74. package/lib/resources/captures.d.ts +2 -2
  75. package/lib/resources/carrier_accounts.d.cts +2 -2
  76. package/lib/resources/carrier_accounts.d.ts +2 -2
  77. package/lib/resources/checkout_com_gateways.d.cts +2 -2
  78. package/lib/resources/checkout_com_gateways.d.ts +2 -2
  79. package/lib/resources/checkout_com_payments.d.cts +2 -2
  80. package/lib/resources/checkout_com_payments.d.ts +2 -2
  81. package/lib/resources/cleanups.d.cts +2 -2
  82. package/lib/resources/cleanups.d.ts +2 -2
  83. package/lib/resources/coupon_codes_promotion_rules.d.cts +2 -2
  84. package/lib/resources/coupon_codes_promotion_rules.d.ts +2 -2
  85. package/lib/resources/coupon_recipients.d.cts +2 -2
  86. package/lib/resources/coupon_recipients.d.ts +2 -2
  87. package/lib/resources/coupons.d.cts +2 -2
  88. package/lib/resources/coupons.d.ts +2 -2
  89. package/lib/resources/custom_promotion_rules.d.cts +2 -2
  90. package/lib/resources/custom_promotion_rules.d.ts +2 -2
  91. package/lib/resources/customer_addresses.d.cts +2 -2
  92. package/lib/resources/customer_addresses.d.ts +2 -2
  93. package/lib/resources/customer_groups.d.cts +2 -2
  94. package/lib/resources/customer_groups.d.ts +2 -2
  95. package/lib/resources/customer_password_resets.d.cts +2 -2
  96. package/lib/resources/customer_password_resets.d.ts +2 -2
  97. package/lib/resources/customer_payment_sources.d.cts +2 -2
  98. package/lib/resources/customer_payment_sources.d.ts +2 -2
  99. package/lib/resources/customer_subscriptions.d.cts +2 -2
  100. package/lib/resources/customer_subscriptions.d.ts +2 -2
  101. package/lib/resources/customers.d.cts +2 -2
  102. package/lib/resources/customers.d.ts +2 -2
  103. package/lib/resources/delivery_lead_times.d.cts +2 -2
  104. package/lib/resources/delivery_lead_times.d.ts +2 -2
  105. package/lib/resources/discount_engine_items.d.cts +2 -2
  106. package/lib/resources/discount_engine_items.d.ts +2 -2
  107. package/lib/resources/discount_engines.d.cts +2 -2
  108. package/lib/resources/discount_engines.d.ts +2 -2
  109. package/lib/resources/easypost_pickups.d.cts +2 -2
  110. package/lib/resources/easypost_pickups.d.ts +2 -2
  111. package/lib/resources/event_callbacks.d.cts +2 -2
  112. package/lib/resources/event_callbacks.d.ts +2 -2
  113. package/lib/resources/events.d.cts +2 -2
  114. package/lib/resources/events.d.ts +2 -2
  115. package/lib/resources/exports.d.cts +2 -2
  116. package/lib/resources/exports.d.ts +2 -2
  117. package/lib/resources/external_gateways.d.cts +2 -2
  118. package/lib/resources/external_gateways.d.ts +2 -2
  119. package/lib/resources/external_payments.d.cts +2 -2
  120. package/lib/resources/external_payments.d.ts +2 -2
  121. package/lib/resources/external_promotions.d.cts +2 -2
  122. package/lib/resources/external_promotions.d.ts +2 -2
  123. package/lib/resources/external_tax_calculators.d.cts +2 -2
  124. package/lib/resources/external_tax_calculators.d.ts +2 -2
  125. package/lib/resources/fixed_amount_promotions.d.cts +2 -2
  126. package/lib/resources/fixed_amount_promotions.d.ts +2 -2
  127. package/lib/resources/fixed_price_promotions.d.cts +2 -2
  128. package/lib/resources/fixed_price_promotions.d.ts +2 -2
  129. package/lib/resources/flex_promotions.d.cts +2 -2
  130. package/lib/resources/flex_promotions.d.ts +2 -2
  131. package/lib/resources/free_gift_promotions.d.cts +2 -2
  132. package/lib/resources/free_gift_promotions.d.ts +2 -2
  133. package/lib/resources/free_shipping_promotions.d.cts +2 -2
  134. package/lib/resources/free_shipping_promotions.d.ts +2 -2
  135. package/lib/resources/geocoders.d.cts +2 -2
  136. package/lib/resources/geocoders.d.ts +2 -2
  137. package/lib/resources/gift_card_recipients.d.cts +2 -2
  138. package/lib/resources/gift_card_recipients.d.ts +2 -2
  139. package/lib/resources/gift_cards.d.cts +2 -2
  140. package/lib/resources/gift_cards.d.ts +2 -2
  141. package/lib/resources/google_geocoders.d.cts +2 -2
  142. package/lib/resources/google_geocoders.d.ts +2 -2
  143. package/lib/resources/imports.d.cts +2 -2
  144. package/lib/resources/imports.d.ts +2 -2
  145. package/lib/resources/in_stock_subscriptions.d.cts +2 -2
  146. package/lib/resources/in_stock_subscriptions.d.ts +2 -2
  147. package/lib/resources/inventory_models.d.cts +2 -2
  148. package/lib/resources/inventory_models.d.ts +2 -2
  149. package/lib/resources/inventory_return_locations.d.cts +2 -2
  150. package/lib/resources/inventory_return_locations.d.ts +2 -2
  151. package/lib/resources/inventory_stock_locations.d.cts +2 -2
  152. package/lib/resources/inventory_stock_locations.d.ts +2 -2
  153. package/lib/resources/klarna_gateways.d.cts +2 -2
  154. package/lib/resources/klarna_gateways.d.ts +2 -2
  155. package/lib/resources/klarna_payments.d.cts +2 -2
  156. package/lib/resources/klarna_payments.d.ts +2 -2
  157. package/lib/resources/line_item_options.d.cts +2 -2
  158. package/lib/resources/line_item_options.d.ts +2 -2
  159. package/lib/resources/line_items.d.cts +2 -2
  160. package/lib/resources/line_items.d.ts +2 -2
  161. package/lib/resources/links.d.cts +2 -2
  162. package/lib/resources/links.d.ts +2 -2
  163. package/lib/resources/manual_gateways.d.cts +2 -2
  164. package/lib/resources/manual_gateways.d.ts +2 -2
  165. package/lib/resources/manual_tax_calculators.d.cts +2 -2
  166. package/lib/resources/manual_tax_calculators.d.ts +2 -2
  167. package/lib/resources/markets.d.cts +2 -2
  168. package/lib/resources/markets.d.ts +2 -2
  169. package/lib/resources/merchants.d.cts +2 -2
  170. package/lib/resources/merchants.d.ts +2 -2
  171. package/lib/resources/notifications.d.cts +2 -2
  172. package/lib/resources/notifications.d.ts +2 -2
  173. package/lib/resources/order_amount_promotion_rules.d.cts +2 -2
  174. package/lib/resources/order_amount_promotion_rules.d.ts +2 -2
  175. package/lib/resources/order_copies.d.cts +2 -2
  176. package/lib/resources/order_copies.d.ts +2 -2
  177. package/lib/resources/order_factories.d.cts +2 -2
  178. package/lib/resources/order_factories.d.ts +2 -2
  179. package/lib/resources/order_subscription_items.d.cts +2 -2
  180. package/lib/resources/order_subscription_items.d.ts +2 -2
  181. package/lib/resources/order_subscriptions.d.cts +2 -2
  182. package/lib/resources/order_subscriptions.d.ts +2 -2
  183. package/lib/resources/orders.d.cts +2 -2
  184. package/lib/resources/orders.d.ts +2 -2
  185. package/lib/resources/organizations.d.cts +2 -2
  186. package/lib/resources/organizations.d.ts +2 -2
  187. package/lib/resources/packages.d.cts +2 -2
  188. package/lib/resources/packages.d.ts +2 -2
  189. package/lib/resources/parcel_line_items.d.cts +2 -2
  190. package/lib/resources/parcel_line_items.d.ts +2 -2
  191. package/lib/resources/parcels.d.cts +2 -2
  192. package/lib/resources/parcels.d.ts +2 -2
  193. package/lib/resources/payment_gateways.d.cts +2 -2
  194. package/lib/resources/payment_gateways.d.ts +2 -2
  195. package/lib/resources/payment_methods.d.cts +2 -2
  196. package/lib/resources/payment_methods.d.ts +2 -2
  197. package/lib/resources/payment_options.d.cts +2 -2
  198. package/lib/resources/payment_options.d.ts +2 -2
  199. package/lib/resources/paypal_gateways.d.cts +2 -2
  200. package/lib/resources/paypal_gateways.d.ts +2 -2
  201. package/lib/resources/paypal_payments.d.cts +2 -2
  202. package/lib/resources/paypal_payments.d.ts +2 -2
  203. package/lib/resources/percentage_discount_promotions.d.cts +2 -2
  204. package/lib/resources/percentage_discount_promotions.d.ts +2 -2
  205. package/lib/resources/pickups.d.cts +2 -2
  206. package/lib/resources/pickups.d.ts +2 -2
  207. package/lib/resources/price_frequency_tiers.d.cts +2 -2
  208. package/lib/resources/price_frequency_tiers.d.ts +2 -2
  209. package/lib/resources/price_list_schedulers.d.cts +2 -2
  210. package/lib/resources/price_list_schedulers.d.ts +2 -2
  211. package/lib/resources/price_lists.d.cts +2 -2
  212. package/lib/resources/price_lists.d.ts +2 -2
  213. package/lib/resources/price_tiers.d.cts +2 -2
  214. package/lib/resources/price_tiers.d.ts +2 -2
  215. package/lib/resources/price_volume_tiers.d.cts +2 -2
  216. package/lib/resources/price_volume_tiers.d.ts +2 -2
  217. package/lib/resources/prices.d.cts +2 -2
  218. package/lib/resources/prices.d.ts +2 -2
  219. package/lib/resources/promotion_rules.d.cts +2 -2
  220. package/lib/resources/promotion_rules.d.ts +2 -2
  221. package/lib/resources/promotions.d.cts +2 -2
  222. package/lib/resources/promotions.d.ts +2 -2
  223. package/lib/resources/recurring_order_copies.d.cts +2 -2
  224. package/lib/resources/recurring_order_copies.d.ts +2 -2
  225. package/lib/resources/refunds.d.cts +2 -2
  226. package/lib/resources/refunds.d.ts +2 -2
  227. package/lib/resources/reserved_stocks.d.cts +2 -2
  228. package/lib/resources/reserved_stocks.d.ts +2 -2
  229. package/lib/resources/resource_errors.d.cts +2 -2
  230. package/lib/resources/resource_errors.d.ts +2 -2
  231. package/lib/resources/return_line_items.d.cts +2 -2
  232. package/lib/resources/return_line_items.d.ts +2 -2
  233. package/lib/resources/returns.d.cts +2 -2
  234. package/lib/resources/returns.d.ts +2 -2
  235. package/lib/resources/satispay_gateways.d.cts +2 -2
  236. package/lib/resources/satispay_gateways.d.ts +2 -2
  237. package/lib/resources/satispay_payments.d.cts +2 -2
  238. package/lib/resources/satispay_payments.d.ts +2 -2
  239. package/lib/resources/shipments.d.cts +2 -2
  240. package/lib/resources/shipments.d.ts +2 -2
  241. package/lib/resources/shipping_categories.d.cts +2 -2
  242. package/lib/resources/shipping_categories.d.ts +2 -2
  243. package/lib/resources/shipping_method_tiers.d.cts +2 -2
  244. package/lib/resources/shipping_method_tiers.d.ts +2 -2
  245. package/lib/resources/shipping_methods.d.cts +2 -2
  246. package/lib/resources/shipping_methods.d.ts +2 -2
  247. package/lib/resources/shipping_weight_tiers.d.cts +2 -2
  248. package/lib/resources/shipping_weight_tiers.d.ts +2 -2
  249. package/lib/resources/shipping_zones.d.cts +2 -2
  250. package/lib/resources/shipping_zones.d.ts +2 -2
  251. package/lib/resources/sku_list_items.d.cts +2 -2
  252. package/lib/resources/sku_list_items.d.ts +2 -2
  253. package/lib/resources/sku_list_promotion_rules.d.cts +2 -2
  254. package/lib/resources/sku_list_promotion_rules.d.ts +2 -2
  255. package/lib/resources/sku_lists.d.cts +2 -2
  256. package/lib/resources/sku_lists.d.ts +2 -2
  257. package/lib/resources/sku_options.d.cts +2 -2
  258. package/lib/resources/sku_options.d.ts +2 -2
  259. package/lib/resources/skus.d.cts +2 -2
  260. package/lib/resources/skus.d.ts +2 -2
  261. package/lib/resources/stock_items.d.cts +2 -2
  262. package/lib/resources/stock_items.d.ts +2 -2
  263. package/lib/resources/stock_line_items.d.cts +2 -2
  264. package/lib/resources/stock_line_items.d.ts +2 -2
  265. package/lib/resources/stock_locations.d.cts +2 -2
  266. package/lib/resources/stock_locations.d.ts +2 -2
  267. package/lib/resources/stock_reservations.d.cts +2 -2
  268. package/lib/resources/stock_reservations.d.ts +2 -2
  269. package/lib/resources/stock_transfers.d.cts +2 -2
  270. package/lib/resources/stock_transfers.d.ts +2 -2
  271. package/lib/resources/stores.d.cts +2 -2
  272. package/lib/resources/stores.d.ts +2 -2
  273. package/lib/resources/stripe_gateways.d.cts +2 -2
  274. package/lib/resources/stripe_gateways.d.ts +2 -2
  275. package/lib/resources/stripe_payments.d.cts +2 -2
  276. package/lib/resources/stripe_payments.d.ts +2 -2
  277. package/lib/resources/stripe_tax_accounts.d.cts +2 -2
  278. package/lib/resources/stripe_tax_accounts.d.ts +2 -2
  279. package/lib/resources/subscription_models.d.cts +2 -2
  280. package/lib/resources/subscription_models.d.ts +2 -2
  281. package/lib/resources/tags.d.cts +2 -2
  282. package/lib/resources/tags.d.ts +2 -2
  283. package/lib/resources/talon_one_accounts.d.cts +2 -2
  284. package/lib/resources/talon_one_accounts.d.ts +2 -2
  285. package/lib/resources/tax_calculators.d.cts +2 -2
  286. package/lib/resources/tax_calculators.d.ts +2 -2
  287. package/lib/resources/tax_categories.d.cts +2 -2
  288. package/lib/resources/tax_categories.d.ts +2 -2
  289. package/lib/resources/tax_rules.d.cts +2 -2
  290. package/lib/resources/tax_rules.d.ts +2 -2
  291. package/lib/resources/taxjar_accounts.d.cts +2 -2
  292. package/lib/resources/taxjar_accounts.d.ts +2 -2
  293. package/lib/resources/transactions.d.cts +2 -2
  294. package/lib/resources/transactions.d.ts +2 -2
  295. package/lib/resources/versions.d.cts +2 -2
  296. package/lib/resources/versions.d.ts +2 -2
  297. package/lib/resources/vertex_accounts.d.cts +2 -2
  298. package/lib/resources/vertex_accounts.d.ts +2 -2
  299. package/lib/resources/voids.d.cts +2 -2
  300. package/lib/resources/voids.d.ts +2 -2
  301. package/lib/resources/webhooks.d.cts +2 -2
  302. package/lib/resources/webhooks.d.ts +2 -2
  303. package/lib/resources/wire_transfers.d.cts +2 -2
  304. package/lib/resources/wire_transfers.d.ts +2 -2
  305. package/lib/static.cjs +23 -15
  306. package/lib/static.d.cts +7 -4
  307. package/lib/static.d.ts +7 -4
  308. package/lib/static.js +23 -11
  309. package/package.json +1 -1
package/lib/enum.js ADDED
@@ -0,0 +1,643 @@
1
+ import './chunk-AQ5VUG5P.js';
2
+
3
+ const apiResources = [
4
+ // ##__API_RESOURCE_LIST_START__##
5
+ "addresses",
6
+ "adjustments",
7
+ "adyen_gateways",
8
+ "adyen_payments",
9
+ "applications",
10
+ "attachments",
11
+ "authorizations",
12
+ "avalara_accounts",
13
+ "axerve_gateways",
14
+ "axerve_payments",
15
+ "bing_geocoders",
16
+ "braintree_gateways",
17
+ "braintree_payments",
18
+ "bundles",
19
+ "buy_x_pay_y_promotions",
20
+ "captures",
21
+ "carrier_accounts",
22
+ "checkout_com_gateways",
23
+ "checkout_com_payments",
24
+ "cleanups",
25
+ "coupon_codes_promotion_rules",
26
+ "coupon_recipients",
27
+ "coupons",
28
+ "custom_promotion_rules",
29
+ "customer_addresses",
30
+ "customer_groups",
31
+ "customer_password_resets",
32
+ "customer_payment_sources",
33
+ "customer_subscriptions",
34
+ "customers",
35
+ "delivery_lead_times",
36
+ "discount_engine_items",
37
+ "discount_engines",
38
+ "easypost_pickups",
39
+ "event_callbacks",
40
+ "events",
41
+ "exports",
42
+ "external_gateways",
43
+ "external_payments",
44
+ "external_promotions",
45
+ "external_tax_calculators",
46
+ "fixed_amount_promotions",
47
+ "fixed_price_promotions",
48
+ "flex_promotions",
49
+ "free_gift_promotions",
50
+ "free_shipping_promotions",
51
+ "geocoders",
52
+ "gift_card_recipients",
53
+ "gift_cards",
54
+ "google_geocoders",
55
+ "imports",
56
+ "in_stock_subscriptions",
57
+ "inventory_models",
58
+ "inventory_return_locations",
59
+ "inventory_stock_locations",
60
+ "klarna_gateways",
61
+ "klarna_payments",
62
+ "line_item_options",
63
+ "line_items",
64
+ "links",
65
+ "manual_gateways",
66
+ "manual_tax_calculators",
67
+ "markets",
68
+ "merchants",
69
+ "notifications",
70
+ "order_amount_promotion_rules",
71
+ "order_copies",
72
+ "order_factories",
73
+ "order_subscription_items",
74
+ "order_subscriptions",
75
+ "orders",
76
+ "organizations",
77
+ "packages",
78
+ "parcel_line_items",
79
+ "parcels",
80
+ "payment_gateways",
81
+ "payment_methods",
82
+ "payment_options",
83
+ "paypal_gateways",
84
+ "paypal_payments",
85
+ "percentage_discount_promotions",
86
+ "pickups",
87
+ "price_frequency_tiers",
88
+ "price_list_schedulers",
89
+ "price_lists",
90
+ "price_tiers",
91
+ "price_volume_tiers",
92
+ "prices",
93
+ "promotion_rules",
94
+ "promotions",
95
+ "recurring_order_copies",
96
+ "refunds",
97
+ "reserved_stocks",
98
+ "resource_errors",
99
+ "return_line_items",
100
+ "returns",
101
+ "satispay_gateways",
102
+ "satispay_payments",
103
+ "shipments",
104
+ "shipping_categories",
105
+ "shipping_method_tiers",
106
+ "shipping_methods",
107
+ "shipping_weight_tiers",
108
+ "shipping_zones",
109
+ "sku_list_items",
110
+ "sku_list_promotion_rules",
111
+ "sku_lists",
112
+ "sku_options",
113
+ "skus",
114
+ "stock_items",
115
+ "stock_line_items",
116
+ "stock_locations",
117
+ "stock_reservations",
118
+ "stock_transfers",
119
+ "stores",
120
+ "stripe_gateways",
121
+ "stripe_payments",
122
+ "stripe_tax_accounts",
123
+ "subscription_models",
124
+ "tags",
125
+ "talon_one_accounts",
126
+ "tax_calculators",
127
+ "tax_categories",
128
+ "tax_rules",
129
+ "taxjar_accounts",
130
+ "transactions",
131
+ "versions",
132
+ "vertex_accounts",
133
+ "voids",
134
+ "webhooks",
135
+ "wire_transfers"
136
+ // ##__API_RESOURCE_LIST_STOP__##
137
+ ];
138
+ const resourceList = apiResources;
139
+ const singletonList = [
140
+ // ##__API_RESOURCE_SINGLETON_START__##
141
+ "applications",
142
+ "organizations"
143
+ // ##__API_RESOURCE_SINGLETON_STOP__##
144
+ ];
145
+ const creatableResources = [
146
+ // ##__API_RESOURCE_CREATABLE_START__##
147
+ "addresses",
148
+ "adjustments",
149
+ "adyen_gateways",
150
+ "adyen_payments",
151
+ "attachments",
152
+ "avalara_accounts",
153
+ "axerve_gateways",
154
+ "axerve_payments",
155
+ "bing_geocoders",
156
+ "braintree_gateways",
157
+ "braintree_payments",
158
+ "bundles",
159
+ "buy_x_pay_y_promotions",
160
+ "carrier_accounts",
161
+ "checkout_com_gateways",
162
+ "checkout_com_payments",
163
+ "cleanups",
164
+ "coupon_codes_promotion_rules",
165
+ "coupon_recipients",
166
+ "coupons",
167
+ "custom_promotion_rules",
168
+ "customer_addresses",
169
+ "customer_groups",
170
+ "customer_password_resets",
171
+ "customer_payment_sources",
172
+ "customer_subscriptions",
173
+ "customers",
174
+ "delivery_lead_times",
175
+ "easypost_pickups",
176
+ "exports",
177
+ "external_gateways",
178
+ "external_payments",
179
+ "external_promotions",
180
+ "external_tax_calculators",
181
+ "fixed_amount_promotions",
182
+ "fixed_price_promotions",
183
+ "flex_promotions",
184
+ "free_gift_promotions",
185
+ "free_shipping_promotions",
186
+ "gift_card_recipients",
187
+ "gift_cards",
188
+ "google_geocoders",
189
+ "imports",
190
+ "in_stock_subscriptions",
191
+ "inventory_models",
192
+ "inventory_return_locations",
193
+ "inventory_stock_locations",
194
+ "klarna_gateways",
195
+ "klarna_payments",
196
+ "line_item_options",
197
+ "line_items",
198
+ "links",
199
+ "manual_gateways",
200
+ "manual_tax_calculators",
201
+ "markets",
202
+ "merchants",
203
+ "notifications",
204
+ "order_amount_promotion_rules",
205
+ "order_copies",
206
+ "order_subscription_items",
207
+ "order_subscriptions",
208
+ "orders",
209
+ "packages",
210
+ "parcel_line_items",
211
+ "parcels",
212
+ "payment_methods",
213
+ "payment_options",
214
+ "paypal_gateways",
215
+ "paypal_payments",
216
+ "percentage_discount_promotions",
217
+ "price_frequency_tiers",
218
+ "price_list_schedulers",
219
+ "price_lists",
220
+ "price_volume_tiers",
221
+ "prices",
222
+ "recurring_order_copies",
223
+ "return_line_items",
224
+ "returns",
225
+ "satispay_gateways",
226
+ "satispay_payments",
227
+ "shipments",
228
+ "shipping_categories",
229
+ "shipping_methods",
230
+ "shipping_weight_tiers",
231
+ "shipping_zones",
232
+ "sku_list_items",
233
+ "sku_list_promotion_rules",
234
+ "sku_lists",
235
+ "sku_options",
236
+ "skus",
237
+ "stock_items",
238
+ "stock_line_items",
239
+ "stock_locations",
240
+ "stock_reservations",
241
+ "stock_transfers",
242
+ "stores",
243
+ "stripe_gateways",
244
+ "stripe_payments",
245
+ "stripe_tax_accounts",
246
+ "subscription_models",
247
+ "tags",
248
+ "talon_one_accounts",
249
+ "tax_categories",
250
+ "tax_rules",
251
+ "taxjar_accounts",
252
+ "vertex_accounts",
253
+ "webhooks",
254
+ "wire_transfers"
255
+ // ##__API_RESOURCE_CREATABLE_STOP__##
256
+ ];
257
+ const updatableResources = [
258
+ // ##__API_RESOURCE_UPDATABLE_START__##
259
+ "addresses",
260
+ "adjustments",
261
+ "adyen_gateways",
262
+ "adyen_payments",
263
+ "attachments",
264
+ "authorizations",
265
+ "avalara_accounts",
266
+ "axerve_gateways",
267
+ "axerve_payments",
268
+ "bing_geocoders",
269
+ "braintree_gateways",
270
+ "braintree_payments",
271
+ "bundles",
272
+ "buy_x_pay_y_promotions",
273
+ "captures",
274
+ "carrier_accounts",
275
+ "checkout_com_gateways",
276
+ "checkout_com_payments",
277
+ "cleanups",
278
+ "coupon_codes_promotion_rules",
279
+ "coupon_recipients",
280
+ "coupons",
281
+ "custom_promotion_rules",
282
+ "customer_addresses",
283
+ "customer_groups",
284
+ "customer_password_resets",
285
+ "customer_payment_sources",
286
+ "customer_subscriptions",
287
+ "customers",
288
+ "delivery_lead_times",
289
+ "easypost_pickups",
290
+ "events",
291
+ "exports",
292
+ "external_gateways",
293
+ "external_payments",
294
+ "external_promotions",
295
+ "external_tax_calculators",
296
+ "fixed_amount_promotions",
297
+ "fixed_price_promotions",
298
+ "flex_promotions",
299
+ "free_gift_promotions",
300
+ "free_shipping_promotions",
301
+ "gift_card_recipients",
302
+ "gift_cards",
303
+ "google_geocoders",
304
+ "imports",
305
+ "in_stock_subscriptions",
306
+ "inventory_models",
307
+ "inventory_return_locations",
308
+ "inventory_stock_locations",
309
+ "klarna_gateways",
310
+ "klarna_payments",
311
+ "line_item_options",
312
+ "line_items",
313
+ "links",
314
+ "manual_gateways",
315
+ "manual_tax_calculators",
316
+ "markets",
317
+ "merchants",
318
+ "notifications",
319
+ "order_amount_promotion_rules",
320
+ "order_copies",
321
+ "order_subscription_items",
322
+ "order_subscriptions",
323
+ "orders",
324
+ "packages",
325
+ "parcel_line_items",
326
+ "parcels",
327
+ "payment_methods",
328
+ "payment_options",
329
+ "paypal_gateways",
330
+ "paypal_payments",
331
+ "percentage_discount_promotions",
332
+ "price_frequency_tiers",
333
+ "price_list_schedulers",
334
+ "price_lists",
335
+ "price_volume_tiers",
336
+ "prices",
337
+ "recurring_order_copies",
338
+ "refunds",
339
+ "return_line_items",
340
+ "returns",
341
+ "satispay_gateways",
342
+ "satispay_payments",
343
+ "shipments",
344
+ "shipping_categories",
345
+ "shipping_methods",
346
+ "shipping_weight_tiers",
347
+ "shipping_zones",
348
+ "sku_list_items",
349
+ "sku_list_promotion_rules",
350
+ "sku_lists",
351
+ "sku_options",
352
+ "skus",
353
+ "stock_items",
354
+ "stock_line_items",
355
+ "stock_locations",
356
+ "stock_reservations",
357
+ "stock_transfers",
358
+ "stores",
359
+ "stripe_gateways",
360
+ "stripe_payments",
361
+ "stripe_tax_accounts",
362
+ "subscription_models",
363
+ "tags",
364
+ "talon_one_accounts",
365
+ "tax_categories",
366
+ "tax_rules",
367
+ "taxjar_accounts",
368
+ "vertex_accounts",
369
+ "voids",
370
+ "webhooks",
371
+ "wire_transfers"
372
+ // ##__API_RESOURCE_UPDATABLE_STOP__##
373
+ ];
374
+ const deletableResources = [
375
+ // ##__API_RESOURCE_DELETABLE_START__##
376
+ "addresses",
377
+ "adjustments",
378
+ "adyen_gateways",
379
+ "adyen_payments",
380
+ "attachments",
381
+ "avalara_accounts",
382
+ "axerve_gateways",
383
+ "axerve_payments",
384
+ "bing_geocoders",
385
+ "braintree_gateways",
386
+ "braintree_payments",
387
+ "bundles",
388
+ "buy_x_pay_y_promotions",
389
+ "carrier_accounts",
390
+ "checkout_com_gateways",
391
+ "checkout_com_payments",
392
+ "cleanups",
393
+ "coupon_codes_promotion_rules",
394
+ "coupon_recipients",
395
+ "coupons",
396
+ "custom_promotion_rules",
397
+ "customer_addresses",
398
+ "customer_groups",
399
+ "customer_password_resets",
400
+ "customer_payment_sources",
401
+ "customer_subscriptions",
402
+ "customers",
403
+ "delivery_lead_times",
404
+ "easypost_pickups",
405
+ "exports",
406
+ "external_gateways",
407
+ "external_payments",
408
+ "external_promotions",
409
+ "external_tax_calculators",
410
+ "fixed_amount_promotions",
411
+ "fixed_price_promotions",
412
+ "flex_promotions",
413
+ "free_gift_promotions",
414
+ "free_shipping_promotions",
415
+ "gift_card_recipients",
416
+ "gift_cards",
417
+ "google_geocoders",
418
+ "imports",
419
+ "in_stock_subscriptions",
420
+ "inventory_models",
421
+ "inventory_return_locations",
422
+ "inventory_stock_locations",
423
+ "klarna_gateways",
424
+ "klarna_payments",
425
+ "line_item_options",
426
+ "line_items",
427
+ "links",
428
+ "manual_gateways",
429
+ "manual_tax_calculators",
430
+ "markets",
431
+ "merchants",
432
+ "notifications",
433
+ "order_amount_promotion_rules",
434
+ "order_copies",
435
+ "order_subscription_items",
436
+ "order_subscriptions",
437
+ "orders",
438
+ "packages",
439
+ "parcel_line_items",
440
+ "parcels",
441
+ "payment_methods",
442
+ "payment_options",
443
+ "paypal_gateways",
444
+ "paypal_payments",
445
+ "percentage_discount_promotions",
446
+ "price_frequency_tiers",
447
+ "price_list_schedulers",
448
+ "price_lists",
449
+ "price_volume_tiers",
450
+ "prices",
451
+ "recurring_order_copies",
452
+ "return_line_items",
453
+ "returns",
454
+ "satispay_gateways",
455
+ "satispay_payments",
456
+ "shipments",
457
+ "shipping_categories",
458
+ "shipping_methods",
459
+ "shipping_weight_tiers",
460
+ "shipping_zones",
461
+ "sku_list_items",
462
+ "sku_list_promotion_rules",
463
+ "sku_lists",
464
+ "sku_options",
465
+ "skus",
466
+ "stock_items",
467
+ "stock_line_items",
468
+ "stock_locations",
469
+ "stock_reservations",
470
+ "stock_transfers",
471
+ "stores",
472
+ "stripe_gateways",
473
+ "stripe_payments",
474
+ "stripe_tax_accounts",
475
+ "subscription_models",
476
+ "tags",
477
+ "talon_one_accounts",
478
+ "tax_categories",
479
+ "tax_rules",
480
+ "taxjar_accounts",
481
+ "vertex_accounts",
482
+ "webhooks",
483
+ "wire_transfers"
484
+ // ##__API_RESOURCE_DELETABLE_STOP__##
485
+ ];
486
+ const taggableResources = [
487
+ // ##__API_RESOURCE_TAGGABLE_START__##
488
+ "addresses",
489
+ "bundles",
490
+ "buy_x_pay_y_promotions",
491
+ "coupons",
492
+ "customers",
493
+ "external_promotions",
494
+ "fixed_amount_promotions",
495
+ "fixed_price_promotions",
496
+ "flex_promotions",
497
+ "free_gift_promotions",
498
+ "free_shipping_promotions",
499
+ "gift_cards",
500
+ "line_item_options",
501
+ "line_items",
502
+ "order_subscriptions",
503
+ "orders",
504
+ "percentage_discount_promotions",
505
+ "promotions",
506
+ "returns",
507
+ "shipments",
508
+ "sku_options",
509
+ "skus"
510
+ // ##__API_RESOURCE_TAGGABLE_STOP__##
511
+ ];
512
+ const versionableResources = [
513
+ // ##__API_RESOURCE_VERSIONABLE_START__##
514
+ "addresses",
515
+ "adjustments",
516
+ "adyen_gateways",
517
+ "adyen_payments",
518
+ "authorizations",
519
+ "avalara_accounts",
520
+ "axerve_gateways",
521
+ "axerve_payments",
522
+ "braintree_gateways",
523
+ "braintree_payments",
524
+ "bundles",
525
+ "buy_x_pay_y_promotions",
526
+ "captures",
527
+ "carrier_accounts",
528
+ "checkout_com_gateways",
529
+ "checkout_com_payments",
530
+ "cleanups",
531
+ "coupon_codes_promotion_rules",
532
+ "coupon_recipients",
533
+ "coupons",
534
+ "custom_promotion_rules",
535
+ "customer_addresses",
536
+ "customer_groups",
537
+ "customer_payment_sources",
538
+ "customer_subscriptions",
539
+ "delivery_lead_times",
540
+ "discount_engines",
541
+ "exports",
542
+ "external_gateways",
543
+ "external_payments",
544
+ "external_promotions",
545
+ "external_tax_calculators",
546
+ "fixed_amount_promotions",
547
+ "fixed_price_promotions",
548
+ "flex_promotions",
549
+ "free_gift_promotions",
550
+ "free_shipping_promotions",
551
+ "gift_card_recipients",
552
+ "gift_cards",
553
+ "in_stock_subscriptions",
554
+ "inventory_models",
555
+ "inventory_return_locations",
556
+ "inventory_stock_locations",
557
+ "klarna_gateways",
558
+ "klarna_payments",
559
+ "manual_gateways",
560
+ "manual_tax_calculators",
561
+ "markets",
562
+ "merchants",
563
+ "order_amount_promotion_rules",
564
+ "order_subscriptions",
565
+ "orders",
566
+ "packages",
567
+ "parcel_line_items",
568
+ "parcels",
569
+ "payment_gateways",
570
+ "payment_methods",
571
+ "paypal_gateways",
572
+ "paypal_payments",
573
+ "percentage_discount_promotions",
574
+ "price_frequency_tiers",
575
+ "price_list_schedulers",
576
+ "price_lists",
577
+ "price_tiers",
578
+ "price_volume_tiers",
579
+ "prices",
580
+ "promotion_rules",
581
+ "promotions",
582
+ "refunds",
583
+ "reserved_stocks",
584
+ "returns",
585
+ "satispay_gateways",
586
+ "satispay_payments",
587
+ "shipments",
588
+ "shipping_categories",
589
+ "shipping_method_tiers",
590
+ "shipping_methods",
591
+ "shipping_weight_tiers",
592
+ "shipping_zones",
593
+ "sku_list_items",
594
+ "sku_list_promotion_rules",
595
+ "sku_lists",
596
+ "sku_options",
597
+ "skus",
598
+ "stock_items",
599
+ "stock_line_items",
600
+ "stock_locations",
601
+ "stock_transfers",
602
+ "stores",
603
+ "stripe_gateways",
604
+ "stripe_payments",
605
+ "stripe_tax_accounts",
606
+ "talon_one_accounts",
607
+ "tax_calculators",
608
+ "tax_categories",
609
+ "tax_rules",
610
+ "taxjar_accounts",
611
+ "transactions",
612
+ "vertex_accounts",
613
+ "voids",
614
+ "webhooks",
615
+ "wire_transfers"
616
+ // ##__API_RESOURCE_VERSIONABLE_STOP__##
617
+ ];
618
+ function getResources(sort) {
619
+ return sort ? [...resourceList].sort() : resourceList;
620
+ }
621
+ function getSingletons(sort) {
622
+ return sort ? [...singletonList].sort() : singletonList;
623
+ }
624
+ function isSingleton(resource) {
625
+ return singletonList.includes(resource);
626
+ }
627
+ function isCreatable(resource) {
628
+ return creatableResources.includes(resource);
629
+ }
630
+ function isUpdatable(resource) {
631
+ return updatableResources.includes(resource);
632
+ }
633
+ function isDeletable(resource) {
634
+ return deletableResources.includes(resource);
635
+ }
636
+ function isTaggable(resource) {
637
+ return taggableResources.includes(resource);
638
+ }
639
+ function isVersionable(resource) {
640
+ return versionableResources.includes(resource);
641
+ }
642
+
643
+ export { creatableResources, deletableResources, getResources, getSingletons, isCreatable, isDeletable, isSingleton, isTaggable, isUpdatable, isVersionable, resourceList, singletonList, taggableResources, updatableResources, versionableResources };
package/lib/error.cjs CHANGED
@@ -86,9 +86,17 @@ const handleError = (error) => {
86
86
  }
87
87
  throw sdkError;
88
88
  };
89
+ function isSdkError(error) {
90
+ return SdkError.isSdkError(error);
91
+ }
92
+ function isApiError(error) {
93
+ return ApiError.isApiError(error);
94
+ }
89
95
 
90
96
  exports.ApiError = ApiError;
91
97
  exports.ErrorType = ErrorType;
92
98
  exports.SdkError = SdkError;
93
99
  exports.handleError = handleError;
100
+ exports.isApiError = isApiError;
94
101
  exports.isExpiredTokenError = isExpiredTokenError;
102
+ exports.isSdkError = isSdkError;
package/lib/error.d.cts CHANGED
@@ -32,4 +32,7 @@ declare class ApiError extends SdkError {
32
32
  declare const isExpiredTokenError: (error: any) => boolean;
33
33
  declare const handleError: (error: Error) => never;
34
34
 
35
- export { ApiError, ErrorType, SdkError, handleError, isExpiredTokenError };
35
+ declare function isSdkError(error: unknown): error is SdkError;
36
+ declare function isApiError(error: unknown): error is ApiError;
37
+
38
+ export { ApiError, ErrorType, SdkError, handleError, isApiError, isExpiredTokenError, isSdkError };
package/lib/error.d.ts CHANGED
@@ -32,4 +32,7 @@ declare class ApiError extends SdkError {
32
32
  declare const isExpiredTokenError: (error: any) => boolean;
33
33
  declare const handleError: (error: Error) => never;
34
34
 
35
- export { ApiError, ErrorType, SdkError, handleError, isExpiredTokenError };
35
+ declare function isSdkError(error: unknown): error is SdkError;
36
+ declare function isApiError(error: unknown): error is ApiError;
37
+
38
+ export { ApiError, ErrorType, SdkError, handleError, isApiError, isExpiredTokenError, isSdkError };
package/lib/error.js CHANGED
@@ -84,5 +84,11 @@ const handleError = (error) => {
84
84
  }
85
85
  throw sdkError;
86
86
  };
87
+ function isSdkError(error) {
88
+ return SdkError.isSdkError(error);
89
+ }
90
+ function isApiError(error) {
91
+ return ApiError.isApiError(error);
92
+ }
87
93
 
88
- export { ApiError, ErrorType, SdkError, handleError, isExpiredTokenError };
94
+ export { ApiError, ErrorType, SdkError, handleError, isApiError, isExpiredTokenError, isSdkError };
package/lib/fetch.d.cts CHANGED
@@ -1 +1 @@
1
- export { F as Fetch, i as FetchClientOptions, j as FetchError, h as FetchRequestOptions, d as FetchResponse, k as fetchURL } from './interceptor-D65i25Y7.cjs';
1
+ export { F as Fetch, i as FetchClientOptions, j as FetchError, h as FetchRequestOptions, g as FetchResponse, k as fetchURL } from './interceptor-5MISI1yn.cjs';
package/lib/fetch.d.ts CHANGED
@@ -1 +1 @@
1
- export { F as Fetch, i as FetchClientOptions, j as FetchError, h as FetchRequestOptions, d as FetchResponse, k as fetchURL } from './interceptor-D65i25Y7.js';
1
+ export { F as Fetch, i as FetchClientOptions, j as FetchError, h as FetchRequestOptions, g as FetchResponse, k as fetchURL } from './interceptor-5MISI1yn.js';