@commercelayer/sdk 7.0.0-beta.15 → 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 (305) hide show
  1. package/lib/{adapter-BPmdwMhh.d.ts → api-CsxHP9zh.d.ts} +25 -150
  2. package/lib/{adapter-DF63Dunh.d.cts → api-Cxxi3g4i.d.cts} +25 -150
  3. package/lib/api.cjs +790 -146
  4. package/lib/api.d.cts +1 -1
  5. package/lib/api.d.ts +1 -1
  6. package/lib/api.js +131 -146
  7. package/lib/commercelayer.cjs +10 -14
  8. package/lib/commercelayer.d.cts +6 -6
  9. package/lib/commercelayer.d.ts +6 -6
  10. package/lib/commercelayer.js +7 -12
  11. package/lib/common.cjs +3 -3
  12. package/lib/common.d.cts +1 -1
  13. package/lib/common.d.ts +1 -1
  14. package/lib/common.js +1 -1
  15. package/lib/enum.cjs +659 -0
  16. package/lib/enum.d.cts +4 -0
  17. package/lib/enum.d.ts +4 -0
  18. package/lib/enum.js +643 -0
  19. package/lib/error.cjs +8 -0
  20. package/lib/error.d.cts +4 -1
  21. package/lib/error.d.ts +4 -1
  22. package/lib/error.js +7 -1
  23. package/lib/index.cjs +2 -7
  24. package/lib/index.d.cts +1 -1
  25. package/lib/index.d.ts +1 -1
  26. package/lib/index.js +1 -2
  27. package/lib/jsonapi.d.cts +1 -1
  28. package/lib/jsonapi.d.ts +1 -1
  29. package/lib/model.d.cts +1 -1
  30. package/lib/model.d.ts +1 -1
  31. package/lib/query.d.cts +1 -1
  32. package/lib/query.d.ts +1 -1
  33. package/lib/resource.d.cts +1 -1
  34. package/lib/resource.d.ts +1 -1
  35. package/lib/resources/addresses.d.cts +1 -1
  36. package/lib/resources/addresses.d.ts +1 -1
  37. package/lib/resources/adjustments.d.cts +1 -1
  38. package/lib/resources/adjustments.d.ts +1 -1
  39. package/lib/resources/adyen_gateways.d.cts +1 -1
  40. package/lib/resources/adyen_gateways.d.ts +1 -1
  41. package/lib/resources/adyen_payments.d.cts +1 -1
  42. package/lib/resources/adyen_payments.d.ts +1 -1
  43. package/lib/resources/applications.d.cts +1 -1
  44. package/lib/resources/applications.d.ts +1 -1
  45. package/lib/resources/attachments.d.cts +1 -1
  46. package/lib/resources/attachments.d.ts +1 -1
  47. package/lib/resources/authorizations.d.cts +1 -1
  48. package/lib/resources/authorizations.d.ts +1 -1
  49. package/lib/resources/avalara_accounts.d.cts +1 -1
  50. package/lib/resources/avalara_accounts.d.ts +1 -1
  51. package/lib/resources/axerve_gateways.d.cts +1 -1
  52. package/lib/resources/axerve_gateways.d.ts +1 -1
  53. package/lib/resources/axerve_payments.d.cts +1 -1
  54. package/lib/resources/axerve_payments.d.ts +1 -1
  55. package/lib/resources/bing_geocoders.d.cts +1 -1
  56. package/lib/resources/bing_geocoders.d.ts +1 -1
  57. package/lib/resources/braintree_gateways.d.cts +1 -1
  58. package/lib/resources/braintree_gateways.d.ts +1 -1
  59. package/lib/resources/braintree_payments.d.cts +1 -1
  60. package/lib/resources/braintree_payments.d.ts +1 -1
  61. package/lib/resources/bundles.d.cts +1 -1
  62. package/lib/resources/bundles.d.ts +1 -1
  63. package/lib/resources/buy_x_pay_y_promotions.d.cts +1 -1
  64. package/lib/resources/buy_x_pay_y_promotions.d.ts +1 -1
  65. package/lib/resources/captures.d.cts +1 -1
  66. package/lib/resources/captures.d.ts +1 -1
  67. package/lib/resources/carrier_accounts.d.cts +1 -1
  68. package/lib/resources/carrier_accounts.d.ts +1 -1
  69. package/lib/resources/checkout_com_gateways.d.cts +1 -1
  70. package/lib/resources/checkout_com_gateways.d.ts +1 -1
  71. package/lib/resources/checkout_com_payments.d.cts +1 -1
  72. package/lib/resources/checkout_com_payments.d.ts +1 -1
  73. package/lib/resources/cleanups.d.cts +1 -1
  74. package/lib/resources/cleanups.d.ts +1 -1
  75. package/lib/resources/coupon_codes_promotion_rules.d.cts +1 -1
  76. package/lib/resources/coupon_codes_promotion_rules.d.ts +1 -1
  77. package/lib/resources/coupon_recipients.d.cts +1 -1
  78. package/lib/resources/coupon_recipients.d.ts +1 -1
  79. package/lib/resources/coupons.d.cts +1 -1
  80. package/lib/resources/coupons.d.ts +1 -1
  81. package/lib/resources/custom_promotion_rules.d.cts +1 -1
  82. package/lib/resources/custom_promotion_rules.d.ts +1 -1
  83. package/lib/resources/customer_addresses.d.cts +1 -1
  84. package/lib/resources/customer_addresses.d.ts +1 -1
  85. package/lib/resources/customer_groups.d.cts +1 -1
  86. package/lib/resources/customer_groups.d.ts +1 -1
  87. package/lib/resources/customer_password_resets.d.cts +1 -1
  88. package/lib/resources/customer_password_resets.d.ts +1 -1
  89. package/lib/resources/customer_payment_sources.d.cts +1 -1
  90. package/lib/resources/customer_payment_sources.d.ts +1 -1
  91. package/lib/resources/customer_subscriptions.d.cts +1 -1
  92. package/lib/resources/customer_subscriptions.d.ts +1 -1
  93. package/lib/resources/customers.d.cts +1 -1
  94. package/lib/resources/customers.d.ts +1 -1
  95. package/lib/resources/delivery_lead_times.d.cts +1 -1
  96. package/lib/resources/delivery_lead_times.d.ts +1 -1
  97. package/lib/resources/discount_engine_items.d.cts +1 -1
  98. package/lib/resources/discount_engine_items.d.ts +1 -1
  99. package/lib/resources/discount_engines.d.cts +1 -1
  100. package/lib/resources/discount_engines.d.ts +1 -1
  101. package/lib/resources/easypost_pickups.d.cts +1 -1
  102. package/lib/resources/easypost_pickups.d.ts +1 -1
  103. package/lib/resources/event_callbacks.d.cts +1 -1
  104. package/lib/resources/event_callbacks.d.ts +1 -1
  105. package/lib/resources/events.d.cts +1 -1
  106. package/lib/resources/events.d.ts +1 -1
  107. package/lib/resources/exports.d.cts +1 -1
  108. package/lib/resources/exports.d.ts +1 -1
  109. package/lib/resources/external_gateways.d.cts +1 -1
  110. package/lib/resources/external_gateways.d.ts +1 -1
  111. package/lib/resources/external_payments.d.cts +1 -1
  112. package/lib/resources/external_payments.d.ts +1 -1
  113. package/lib/resources/external_promotions.d.cts +1 -1
  114. package/lib/resources/external_promotions.d.ts +1 -1
  115. package/lib/resources/external_tax_calculators.d.cts +1 -1
  116. package/lib/resources/external_tax_calculators.d.ts +1 -1
  117. package/lib/resources/fixed_amount_promotions.d.cts +1 -1
  118. package/lib/resources/fixed_amount_promotions.d.ts +1 -1
  119. package/lib/resources/fixed_price_promotions.d.cts +1 -1
  120. package/lib/resources/fixed_price_promotions.d.ts +1 -1
  121. package/lib/resources/flex_promotions.d.cts +1 -1
  122. package/lib/resources/flex_promotions.d.ts +1 -1
  123. package/lib/resources/free_gift_promotions.d.cts +1 -1
  124. package/lib/resources/free_gift_promotions.d.ts +1 -1
  125. package/lib/resources/free_shipping_promotions.d.cts +1 -1
  126. package/lib/resources/free_shipping_promotions.d.ts +1 -1
  127. package/lib/resources/geocoders.d.cts +1 -1
  128. package/lib/resources/geocoders.d.ts +1 -1
  129. package/lib/resources/gift_card_recipients.d.cts +1 -1
  130. package/lib/resources/gift_card_recipients.d.ts +1 -1
  131. package/lib/resources/gift_cards.d.cts +1 -1
  132. package/lib/resources/gift_cards.d.ts +1 -1
  133. package/lib/resources/google_geocoders.d.cts +1 -1
  134. package/lib/resources/google_geocoders.d.ts +1 -1
  135. package/lib/resources/imports.d.cts +1 -1
  136. package/lib/resources/imports.d.ts +1 -1
  137. package/lib/resources/in_stock_subscriptions.d.cts +1 -1
  138. package/lib/resources/in_stock_subscriptions.d.ts +1 -1
  139. package/lib/resources/inventory_models.d.cts +1 -1
  140. package/lib/resources/inventory_models.d.ts +1 -1
  141. package/lib/resources/inventory_return_locations.d.cts +1 -1
  142. package/lib/resources/inventory_return_locations.d.ts +1 -1
  143. package/lib/resources/inventory_stock_locations.d.cts +1 -1
  144. package/lib/resources/inventory_stock_locations.d.ts +1 -1
  145. package/lib/resources/klarna_gateways.d.cts +1 -1
  146. package/lib/resources/klarna_gateways.d.ts +1 -1
  147. package/lib/resources/klarna_payments.d.cts +1 -1
  148. package/lib/resources/klarna_payments.d.ts +1 -1
  149. package/lib/resources/line_item_options.d.cts +1 -1
  150. package/lib/resources/line_item_options.d.ts +1 -1
  151. package/lib/resources/line_items.d.cts +1 -1
  152. package/lib/resources/line_items.d.ts +1 -1
  153. package/lib/resources/links.d.cts +1 -1
  154. package/lib/resources/links.d.ts +1 -1
  155. package/lib/resources/manual_gateways.d.cts +1 -1
  156. package/lib/resources/manual_gateways.d.ts +1 -1
  157. package/lib/resources/manual_tax_calculators.d.cts +1 -1
  158. package/lib/resources/manual_tax_calculators.d.ts +1 -1
  159. package/lib/resources/markets.d.cts +1 -1
  160. package/lib/resources/markets.d.ts +1 -1
  161. package/lib/resources/merchants.d.cts +1 -1
  162. package/lib/resources/merchants.d.ts +1 -1
  163. package/lib/resources/notifications.d.cts +1 -1
  164. package/lib/resources/notifications.d.ts +1 -1
  165. package/lib/resources/order_amount_promotion_rules.d.cts +1 -1
  166. package/lib/resources/order_amount_promotion_rules.d.ts +1 -1
  167. package/lib/resources/order_copies.d.cts +1 -1
  168. package/lib/resources/order_copies.d.ts +1 -1
  169. package/lib/resources/order_factories.d.cts +1 -1
  170. package/lib/resources/order_factories.d.ts +1 -1
  171. package/lib/resources/order_subscription_items.d.cts +1 -1
  172. package/lib/resources/order_subscription_items.d.ts +1 -1
  173. package/lib/resources/order_subscriptions.d.cts +1 -1
  174. package/lib/resources/order_subscriptions.d.ts +1 -1
  175. package/lib/resources/orders.d.cts +1 -1
  176. package/lib/resources/orders.d.ts +1 -1
  177. package/lib/resources/organizations.d.cts +1 -1
  178. package/lib/resources/organizations.d.ts +1 -1
  179. package/lib/resources/packages.d.cts +1 -1
  180. package/lib/resources/packages.d.ts +1 -1
  181. package/lib/resources/parcel_line_items.d.cts +1 -1
  182. package/lib/resources/parcel_line_items.d.ts +1 -1
  183. package/lib/resources/parcels.d.cts +1 -1
  184. package/lib/resources/parcels.d.ts +1 -1
  185. package/lib/resources/payment_gateways.d.cts +1 -1
  186. package/lib/resources/payment_gateways.d.ts +1 -1
  187. package/lib/resources/payment_methods.d.cts +1 -1
  188. package/lib/resources/payment_methods.d.ts +1 -1
  189. package/lib/resources/payment_options.d.cts +1 -1
  190. package/lib/resources/payment_options.d.ts +1 -1
  191. package/lib/resources/paypal_gateways.d.cts +1 -1
  192. package/lib/resources/paypal_gateways.d.ts +1 -1
  193. package/lib/resources/paypal_payments.d.cts +1 -1
  194. package/lib/resources/paypal_payments.d.ts +1 -1
  195. package/lib/resources/percentage_discount_promotions.d.cts +1 -1
  196. package/lib/resources/percentage_discount_promotions.d.ts +1 -1
  197. package/lib/resources/pickups.d.cts +1 -1
  198. package/lib/resources/pickups.d.ts +1 -1
  199. package/lib/resources/price_frequency_tiers.d.cts +1 -1
  200. package/lib/resources/price_frequency_tiers.d.ts +1 -1
  201. package/lib/resources/price_list_schedulers.d.cts +1 -1
  202. package/lib/resources/price_list_schedulers.d.ts +1 -1
  203. package/lib/resources/price_lists.d.cts +1 -1
  204. package/lib/resources/price_lists.d.ts +1 -1
  205. package/lib/resources/price_tiers.d.cts +1 -1
  206. package/lib/resources/price_tiers.d.ts +1 -1
  207. package/lib/resources/price_volume_tiers.d.cts +1 -1
  208. package/lib/resources/price_volume_tiers.d.ts +1 -1
  209. package/lib/resources/prices.d.cts +1 -1
  210. package/lib/resources/prices.d.ts +1 -1
  211. package/lib/resources/promotion_rules.d.cts +1 -1
  212. package/lib/resources/promotion_rules.d.ts +1 -1
  213. package/lib/resources/promotions.d.cts +1 -1
  214. package/lib/resources/promotions.d.ts +1 -1
  215. package/lib/resources/recurring_order_copies.d.cts +1 -1
  216. package/lib/resources/recurring_order_copies.d.ts +1 -1
  217. package/lib/resources/refunds.d.cts +1 -1
  218. package/lib/resources/refunds.d.ts +1 -1
  219. package/lib/resources/reserved_stocks.d.cts +1 -1
  220. package/lib/resources/reserved_stocks.d.ts +1 -1
  221. package/lib/resources/resource_errors.d.cts +1 -1
  222. package/lib/resources/resource_errors.d.ts +1 -1
  223. package/lib/resources/return_line_items.d.cts +1 -1
  224. package/lib/resources/return_line_items.d.ts +1 -1
  225. package/lib/resources/returns.d.cts +1 -1
  226. package/lib/resources/returns.d.ts +1 -1
  227. package/lib/resources/satispay_gateways.d.cts +1 -1
  228. package/lib/resources/satispay_gateways.d.ts +1 -1
  229. package/lib/resources/satispay_payments.d.cts +1 -1
  230. package/lib/resources/satispay_payments.d.ts +1 -1
  231. package/lib/resources/shipments.d.cts +1 -1
  232. package/lib/resources/shipments.d.ts +1 -1
  233. package/lib/resources/shipping_categories.d.cts +1 -1
  234. package/lib/resources/shipping_categories.d.ts +1 -1
  235. package/lib/resources/shipping_method_tiers.d.cts +1 -1
  236. package/lib/resources/shipping_method_tiers.d.ts +1 -1
  237. package/lib/resources/shipping_methods.d.cts +1 -1
  238. package/lib/resources/shipping_methods.d.ts +1 -1
  239. package/lib/resources/shipping_weight_tiers.d.cts +1 -1
  240. package/lib/resources/shipping_weight_tiers.d.ts +1 -1
  241. package/lib/resources/shipping_zones.d.cts +1 -1
  242. package/lib/resources/shipping_zones.d.ts +1 -1
  243. package/lib/resources/sku_list_items.d.cts +1 -1
  244. package/lib/resources/sku_list_items.d.ts +1 -1
  245. package/lib/resources/sku_list_promotion_rules.d.cts +1 -1
  246. package/lib/resources/sku_list_promotion_rules.d.ts +1 -1
  247. package/lib/resources/sku_lists.d.cts +1 -1
  248. package/lib/resources/sku_lists.d.ts +1 -1
  249. package/lib/resources/sku_options.d.cts +1 -1
  250. package/lib/resources/sku_options.d.ts +1 -1
  251. package/lib/resources/skus.d.cts +1 -1
  252. package/lib/resources/skus.d.ts +1 -1
  253. package/lib/resources/stock_items.d.cts +1 -1
  254. package/lib/resources/stock_items.d.ts +1 -1
  255. package/lib/resources/stock_line_items.d.cts +1 -1
  256. package/lib/resources/stock_line_items.d.ts +1 -1
  257. package/lib/resources/stock_locations.d.cts +1 -1
  258. package/lib/resources/stock_locations.d.ts +1 -1
  259. package/lib/resources/stock_reservations.d.cts +1 -1
  260. package/lib/resources/stock_reservations.d.ts +1 -1
  261. package/lib/resources/stock_transfers.d.cts +1 -1
  262. package/lib/resources/stock_transfers.d.ts +1 -1
  263. package/lib/resources/stores.d.cts +1 -1
  264. package/lib/resources/stores.d.ts +1 -1
  265. package/lib/resources/stripe_gateways.d.cts +1 -1
  266. package/lib/resources/stripe_gateways.d.ts +1 -1
  267. package/lib/resources/stripe_payments.d.cts +1 -1
  268. package/lib/resources/stripe_payments.d.ts +1 -1
  269. package/lib/resources/stripe_tax_accounts.d.cts +1 -1
  270. package/lib/resources/stripe_tax_accounts.d.ts +1 -1
  271. package/lib/resources/subscription_models.d.cts +1 -1
  272. package/lib/resources/subscription_models.d.ts +1 -1
  273. package/lib/resources/tags.d.cts +1 -1
  274. package/lib/resources/tags.d.ts +1 -1
  275. package/lib/resources/talon_one_accounts.d.cts +1 -1
  276. package/lib/resources/talon_one_accounts.d.ts +1 -1
  277. package/lib/resources/tax_calculators.d.cts +1 -1
  278. package/lib/resources/tax_calculators.d.ts +1 -1
  279. package/lib/resources/tax_categories.d.cts +1 -1
  280. package/lib/resources/tax_categories.d.ts +1 -1
  281. package/lib/resources/tax_rules.d.cts +1 -1
  282. package/lib/resources/tax_rules.d.ts +1 -1
  283. package/lib/resources/taxjar_accounts.d.cts +1 -1
  284. package/lib/resources/taxjar_accounts.d.ts +1 -1
  285. package/lib/resources/transactions.d.cts +1 -1
  286. package/lib/resources/transactions.d.ts +1 -1
  287. package/lib/resources/versions.d.cts +1 -1
  288. package/lib/resources/versions.d.ts +1 -1
  289. package/lib/resources/vertex_accounts.d.cts +1 -1
  290. package/lib/resources/vertex_accounts.d.ts +1 -1
  291. package/lib/resources/voids.d.cts +1 -1
  292. package/lib/resources/voids.d.ts +1 -1
  293. package/lib/resources/webhooks.d.cts +1 -1
  294. package/lib/resources/webhooks.d.ts +1 -1
  295. package/lib/resources/wire_transfers.d.cts +1 -1
  296. package/lib/resources/wire_transfers.d.ts +1 -1
  297. package/lib/static.cjs +23 -7
  298. package/lib/static.d.cts +6 -1
  299. package/lib/static.d.ts +6 -1
  300. package/lib/static.js +23 -7
  301. package/package.json +1 -1
  302. package/lib/adapter.cjs +0 -795
  303. package/lib/adapter.d.cts +0 -4
  304. package/lib/adapter.d.ts +0 -4
  305. package/lib/adapter.js +0 -132
@@ -1,4 +1,4 @@
1
- export { i_ as TaxjarAccount, i$ as TaxjarAccountCreate, j1 as TaxjarAccountSort, lc as TaxjarAccountType, j0 as TaxjarAccountUpdate, b7 as default } from '../adapter-DF63Dunh.cjs';
1
+ export { jc as TaxjarAccount, jd as TaxjarAccountCreate, jf as TaxjarAccountSort, l7 as TaxjarAccountType, je as TaxjarAccountUpdate, bl as default } from '../api-Cxxi3g4i.cjs';
2
2
  import '../client.cjs';
3
3
  import '../interceptor-5MISI1yn.cjs';
4
4
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { i_ as TaxjarAccount, i$ as TaxjarAccountCreate, j1 as TaxjarAccountSort, lc as TaxjarAccountType, j0 as TaxjarAccountUpdate, b7 as default } from '../adapter-BPmdwMhh.js';
1
+ export { jc as TaxjarAccount, jd as TaxjarAccountCreate, jf as TaxjarAccountSort, l7 as TaxjarAccountType, je as TaxjarAccountUpdate, bl as default } from '../api-CsxHP9zh.js';
2
2
  import '../client.js';
3
3
  import '../interceptor-5MISI1yn.js';
4
4
  import '../types.js';
@@ -1,4 +1,4 @@
1
- export { j2 as Transaction, j3 as TransactionSort, l6 as TransactionType, b8 as default } from '../adapter-DF63Dunh.cjs';
1
+ export { jg as Transaction, jh as TransactionSort, l1 as TransactionType, bm as default } from '../api-Cxxi3g4i.cjs';
2
2
  import '../client.cjs';
3
3
  import '../interceptor-5MISI1yn.cjs';
4
4
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { j2 as Transaction, j3 as TransactionSort, l6 as TransactionType, b8 as default } from '../adapter-BPmdwMhh.js';
1
+ export { jg as Transaction, jh as TransactionSort, l1 as TransactionType, bm as default } from '../api-CsxHP9zh.js';
2
2
  import '../client.js';
3
3
  import '../interceptor-5MISI1yn.js';
4
4
  import '../types.js';
@@ -1,4 +1,4 @@
1
- export { j4 as Version, j5 as VersionSort, jF as VersionType, b9 as default } from '../adapter-DF63Dunh.cjs';
1
+ export { ji as Version, jj as VersionSort, jA as VersionType, bn as default } from '../api-Cxxi3g4i.cjs';
2
2
  import '../client.cjs';
3
3
  import '../interceptor-5MISI1yn.cjs';
4
4
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { j4 as Version, j5 as VersionSort, jF as VersionType, b9 as default } from '../adapter-BPmdwMhh.js';
1
+ export { ji as Version, jj as VersionSort, jA as VersionType, bn as default } from '../api-CsxHP9zh.js';
2
2
  import '../client.js';
3
3
  import '../interceptor-5MISI1yn.js';
4
4
  import '../types.js';
@@ -1,4 +1,4 @@
1
- export { j6 as VertexAccount, j7 as VertexAccountCreate, j9 as VertexAccountSort, lb as VertexAccountType, j8 as VertexAccountUpdate, ba as default } from '../adapter-DF63Dunh.cjs';
1
+ export { jk as VertexAccount, jl as VertexAccountCreate, jn as VertexAccountSort, l6 as VertexAccountType, jm as VertexAccountUpdate, bo as default } from '../api-Cxxi3g4i.cjs';
2
2
  import '../client.cjs';
3
3
  import '../interceptor-5MISI1yn.cjs';
4
4
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { j6 as VertexAccount, j7 as VertexAccountCreate, j9 as VertexAccountSort, lb as VertexAccountType, j8 as VertexAccountUpdate, ba as default } from '../adapter-BPmdwMhh.js';
1
+ export { jk as VertexAccount, jl as VertexAccountCreate, jn as VertexAccountSort, l6 as VertexAccountType, jm as VertexAccountUpdate, bo as default } from '../api-CsxHP9zh.js';
2
2
  import '../client.js';
3
3
  import '../interceptor-5MISI1yn.js';
4
4
  import '../types.js';
@@ -1,4 +1,4 @@
1
- export { ja as Void, jc as VoidSort, k5 as VoidType, jb as VoidUpdate, bb as default } from '../adapter-DF63Dunh.cjs';
1
+ export { jo as Void, jq as VoidSort, k0 as VoidType, jp as VoidUpdate, bp as default } from '../api-Cxxi3g4i.cjs';
2
2
  import '../client.cjs';
3
3
  import '../interceptor-5MISI1yn.cjs';
4
4
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { ja as Void, jc as VoidSort, k5 as VoidType, jb as VoidUpdate, bb as default } from '../adapter-BPmdwMhh.js';
1
+ export { jo as Void, jq as VoidSort, k0 as VoidType, jp as VoidUpdate, bp as default } from '../api-CsxHP9zh.js';
2
2
  import '../client.js';
3
3
  import '../interceptor-5MISI1yn.js';
4
4
  import '../types.js';
@@ -1,4 +1,4 @@
1
- export { jd as Webhook, je as WebhookCreate, jg as WebhookSort, jO as WebhookType, jf as WebhookUpdate, bc as default } from '../adapter-DF63Dunh.cjs';
1
+ export { jr as Webhook, js as WebhookCreate, ju as WebhookSort, jJ as WebhookType, jt as WebhookUpdate, bq as default } from '../api-Cxxi3g4i.cjs';
2
2
  import '../client.cjs';
3
3
  import '../interceptor-5MISI1yn.cjs';
4
4
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { jd as Webhook, je as WebhookCreate, jg as WebhookSort, jO as WebhookType, jf as WebhookUpdate, bc as default } from '../adapter-BPmdwMhh.js';
1
+ export { jr as Webhook, js as WebhookCreate, ju as WebhookSort, jJ as WebhookType, jt as WebhookUpdate, bq as default } from '../api-CsxHP9zh.js';
2
2
  import '../client.js';
3
3
  import '../interceptor-5MISI1yn.js';
4
4
  import '../types.js';
@@ -1,4 +1,4 @@
1
- export { jh as WireTransfer, ji as WireTransferCreate, jk as WireTransferSort, j$ as WireTransferType, jj as WireTransferUpdate, bd as default } from '../adapter-DF63Dunh.cjs';
1
+ export { jv as WireTransfer, jw as WireTransferCreate, jy as WireTransferSort, jW as WireTransferType, jx as WireTransferUpdate, br as default } from '../api-Cxxi3g4i.cjs';
2
2
  import '../client.cjs';
3
3
  import '../interceptor-5MISI1yn.cjs';
4
4
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { jh as WireTransfer, ji as WireTransferCreate, jk as WireTransferSort, j$ as WireTransferType, jj as WireTransferUpdate, bd as default } from '../adapter-BPmdwMhh.js';
1
+ export { jv as WireTransfer, jw as WireTransferCreate, jy as WireTransferSort, jW as WireTransferType, jx as WireTransferUpdate, br as default } from '../api-CsxHP9zh.js';
2
2
  import '../client.js';
3
3
  import '../interceptor-5MISI1yn.js';
4
4
  import '../types.js';
package/lib/static.cjs CHANGED
@@ -1,31 +1,47 @@
1
1
  'use strict';
2
2
 
3
3
  require('./chunk-JE77HYXB.cjs');
4
- var api = require('./api');
4
+ var _enum = require('./enum');
5
+ var commercelayer = require('./commercelayer');
5
6
  var error = require('./error');
6
7
  var util = require('./util');
7
8
 
8
9
  const CommerceLayerStatic = {
9
10
  resources: (sort) => {
10
- return sort ? [...api.resourceList].sort() : api.resourceList;
11
+ return _enum.getResources(sort);
11
12
  },
12
13
  singletons: (sort) => {
13
- return sort ? [...api.singletonList].sort() : api.singletonList;
14
+ return _enum.getSingletons(sort);
14
15
  },
15
16
  isSingleton: (resource) => {
16
- return api.singletonList.includes(resource);
17
+ return _enum.isSingleton(resource);
18
+ },
19
+ isCreatable: (resource) => {
20
+ return _enum.isCreatable(resource);
21
+ },
22
+ isUpdatable: (resource) => {
23
+ return _enum.isUpdatable(resource);
24
+ },
25
+ isDeletable: (resource) => {
26
+ return _enum.isDeletable(resource);
27
+ },
28
+ isTaggable: (resource) => {
29
+ return _enum.isTaggable(resource);
30
+ },
31
+ isVersionable: (resource) => {
32
+ return _enum.isVersionable(resource);
17
33
  },
18
34
  isSdkError: (error$1) => {
19
- return error.SdkError.isSdkError(error$1);
35
+ return error.isSdkError(error$1);
20
36
  },
21
37
  isApiError: (error$1) => {
22
- return error.ApiError.isApiError(error$1);
38
+ return error.isApiError(error$1);
23
39
  },
24
40
  isTokenExpired: (token) => {
25
41
  return util.isTokenExpired(token);
26
42
  },
27
43
  get schemaVersion() {
28
- return api.OPEN_API_SCHEMA_VERSION;
44
+ return commercelayer.OPEN_API_SCHEMA_VERSION;
29
45
  }
30
46
  };
31
47
 
package/lib/static.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { jl as ResourceTypeLock } from './adapter-DF63Dunh.cjs';
1
+ import { R as ResourceTypeLock } from './api-Cxxi3g4i.cjs';
2
2
  import { SdkError, ApiError } from './error.cjs';
3
3
  import './client.cjs';
4
4
  import './interceptor-5MISI1yn.cjs';
@@ -8,6 +8,11 @@ declare const CommerceLayerStatic: {
8
8
  resources: (sort?: boolean) => readonly string[];
9
9
  singletons: (sort?: boolean) => readonly string[];
10
10
  isSingleton: (resource: ResourceTypeLock) => boolean;
11
+ isCreatable: (resource: ResourceTypeLock) => boolean;
12
+ isUpdatable: (resource: ResourceTypeLock) => boolean;
13
+ isDeletable: (resource: ResourceTypeLock) => boolean;
14
+ isTaggable: (resource: ResourceTypeLock) => boolean;
15
+ isVersionable: (resource: ResourceTypeLock) => boolean;
11
16
  isSdkError: (error: unknown) => error is SdkError;
12
17
  isApiError: (error: unknown) => error is ApiError;
13
18
  isTokenExpired: (token: string) => boolean;
package/lib/static.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { jl as ResourceTypeLock } from './adapter-BPmdwMhh.js';
1
+ import { R as ResourceTypeLock } from './api-CsxHP9zh.js';
2
2
  import { SdkError, ApiError } from './error.js';
3
3
  import './client.js';
4
4
  import './interceptor-5MISI1yn.js';
@@ -8,6 +8,11 @@ declare const CommerceLayerStatic: {
8
8
  resources: (sort?: boolean) => readonly string[];
9
9
  singletons: (sort?: boolean) => readonly string[];
10
10
  isSingleton: (resource: ResourceTypeLock) => boolean;
11
+ isCreatable: (resource: ResourceTypeLock) => boolean;
12
+ isUpdatable: (resource: ResourceTypeLock) => boolean;
13
+ isDeletable: (resource: ResourceTypeLock) => boolean;
14
+ isTaggable: (resource: ResourceTypeLock) => boolean;
15
+ isVersionable: (resource: ResourceTypeLock) => boolean;
11
16
  isSdkError: (error: unknown) => error is SdkError;
12
17
  isApiError: (error: unknown) => error is ApiError;
13
18
  isTokenExpired: (token: string) => boolean;
package/lib/static.js CHANGED
@@ -1,23 +1,39 @@
1
1
  import './chunk-AQ5VUG5P.js';
2
- import { OPEN_API_SCHEMA_VERSION, singletonList, resourceList } from './api';
3
- import { ApiError, SdkError } from './error';
2
+ import { isVersionable, isTaggable, isDeletable, isUpdatable, isCreatable, isSingleton, getSingletons, getResources } from './enum';
3
+ import { OPEN_API_SCHEMA_VERSION } from './commercelayer';
4
+ import { isApiError, isSdkError } from './error';
4
5
  import { isTokenExpired } from './util';
5
6
 
6
7
  const CommerceLayerStatic = {
7
8
  resources: (sort) => {
8
- return sort ? [...resourceList].sort() : resourceList;
9
+ return getResources(sort);
9
10
  },
10
11
  singletons: (sort) => {
11
- return sort ? [...singletonList].sort() : singletonList;
12
+ return getSingletons(sort);
12
13
  },
13
14
  isSingleton: (resource) => {
14
- return singletonList.includes(resource);
15
+ return isSingleton(resource);
16
+ },
17
+ isCreatable: (resource) => {
18
+ return isCreatable(resource);
19
+ },
20
+ isUpdatable: (resource) => {
21
+ return isUpdatable(resource);
22
+ },
23
+ isDeletable: (resource) => {
24
+ return isDeletable(resource);
25
+ },
26
+ isTaggable: (resource) => {
27
+ return isTaggable(resource);
28
+ },
29
+ isVersionable: (resource) => {
30
+ return isVersionable(resource);
15
31
  },
16
32
  isSdkError: (error) => {
17
- return SdkError.isSdkError(error);
33
+ return isSdkError(error);
18
34
  },
19
35
  isApiError: (error) => {
20
- return ApiError.isApiError(error);
36
+ return isApiError(error);
21
37
  },
22
38
  isTokenExpired: (token) => {
23
39
  return isTokenExpired(token);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercelayer/sdk",
3
- "version": "7.0.0-beta.15",
3
+ "version": "7.0.0-beta.16",
4
4
  "main": "lib/index.cjs",
5
5
  "types": "lib/index.d.ts",
6
6
  "module": "lib/index.js",