@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
@@ -1,4 +1,4 @@
1
- export { iq as StockLineItem, ir as StockLineItemCreate, it as StockLineItemSort, kb as StockLineItemType, is as StockLineItemUpdate, bh as default } from '../api-BLNq5Jhc.cjs';
1
+ export { il as StockLineItem, im as StockLineItemCreate, ip as StockLineItemSort, k7 as StockLineItemType, io as StockLineItemUpdate, b7 as default } from '../api-Cxxi3g4i.cjs';
2
2
  import '../client.cjs';
3
- import '../interceptor-D65i25Y7.cjs';
3
+ import '../interceptor-5MISI1yn.cjs';
4
4
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { iq as StockLineItem, ir as StockLineItemCreate, it as StockLineItemSort, kb as StockLineItemType, is as StockLineItemUpdate, bh as default } from '../api-BvsFkjzY.js';
1
+ export { il as StockLineItem, im as StockLineItemCreate, ip as StockLineItemSort, k7 as StockLineItemType, io as StockLineItemUpdate, b7 as default } from '../api-CsxHP9zh.js';
2
2
  import '../client.js';
3
- import '../interceptor-D65i25Y7.js';
3
+ import '../interceptor-5MISI1yn.js';
4
4
  import '../types.js';
@@ -1,4 +1,4 @@
1
- export { iu as StockLocation, iv as StockLocationCreate, ix as StockLocationSort, kY as StockLocationType, iw as StockLocationUpdate, bi as default } from '../api-BLNq5Jhc.cjs';
1
+ export { iq as StockLocation, ir as StockLocationCreate, it as StockLocationSort, kU as StockLocationType, is as StockLocationUpdate, b8 as default } from '../api-Cxxi3g4i.cjs';
2
2
  import '../client.cjs';
3
- import '../interceptor-D65i25Y7.cjs';
3
+ import '../interceptor-5MISI1yn.cjs';
4
4
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { iu as StockLocation, iv as StockLocationCreate, ix as StockLocationSort, kY as StockLocationType, iw as StockLocationUpdate, bi as default } from '../api-BvsFkjzY.js';
1
+ export { iq as StockLocation, ir as StockLocationCreate, it as StockLocationSort, kU as StockLocationType, is as StockLocationUpdate, b8 as default } from '../api-CsxHP9zh.js';
2
2
  import '../client.js';
3
- import '../interceptor-D65i25Y7.js';
3
+ import '../interceptor-5MISI1yn.js';
4
4
  import '../types.js';
@@ -1,4 +1,4 @@
1
- export { iy as StockReservation, iz as StockReservationCreate, iB as StockReservationSort, kd as StockReservationType, iA as StockReservationUpdate, bj as default } from '../api-BLNq5Jhc.cjs';
1
+ export { iu as StockReservation, iv as StockReservationCreate, ix as StockReservationSort, k9 as StockReservationType, iw as StockReservationUpdate, b9 as default } from '../api-Cxxi3g4i.cjs';
2
2
  import '../client.cjs';
3
- import '../interceptor-D65i25Y7.cjs';
3
+ import '../interceptor-5MISI1yn.cjs';
4
4
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { iy as StockReservation, iz as StockReservationCreate, iB as StockReservationSort, kd as StockReservationType, iA as StockReservationUpdate, bj as default } from '../api-BvsFkjzY.js';
1
+ export { iu as StockReservation, iv as StockReservationCreate, ix as StockReservationSort, k9 as StockReservationType, iw as StockReservationUpdate, b9 as default } from '../api-CsxHP9zh.js';
2
2
  import '../client.js';
3
- import '../interceptor-D65i25Y7.js';
3
+ import '../interceptor-5MISI1yn.js';
4
4
  import '../types.js';
@@ -1,4 +1,4 @@
1
- export { iC as StockTransfer, iD as StockTransferCreate, iF as StockTransferSort, kX as StockTransferType, iE as StockTransferUpdate, bk as default } from '../api-BLNq5Jhc.cjs';
1
+ export { iy as StockTransfer, iz as StockTransferCreate, iB as StockTransferSort, kT as StockTransferType, iA as StockTransferUpdate, ba as default } from '../api-Cxxi3g4i.cjs';
2
2
  import '../client.cjs';
3
- import '../interceptor-D65i25Y7.cjs';
3
+ import '../interceptor-5MISI1yn.cjs';
4
4
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { iC as StockTransfer, iD as StockTransferCreate, iF as StockTransferSort, kX as StockTransferType, iE as StockTransferUpdate, bk as default } from '../api-BvsFkjzY.js';
1
+ export { iy as StockTransfer, iz as StockTransferCreate, iB as StockTransferSort, kT as StockTransferType, iA as StockTransferUpdate, ba as default } from '../api-CsxHP9zh.js';
2
2
  import '../client.js';
3
- import '../interceptor-D65i25Y7.js';
3
+ import '../interceptor-5MISI1yn.js';
4
4
  import '../types.js';
@@ -1,4 +1,4 @@
1
- export { iG as Store, iH as StoreCreate, iJ as StoreSort, jP as StoreType, iI as StoreUpdate, bl as default } from '../api-BLNq5Jhc.cjs';
1
+ export { iC as Store, iD as StoreCreate, iF as StoreSort, kJ as StoreType, iE as StoreUpdate, bb as default } from '../api-Cxxi3g4i.cjs';
2
2
  import '../client.cjs';
3
- import '../interceptor-D65i25Y7.cjs';
3
+ import '../interceptor-5MISI1yn.cjs';
4
4
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { iG as Store, iH as StoreCreate, iJ as StoreSort, jP as StoreType, iI as StoreUpdate, bl as default } from '../api-BvsFkjzY.js';
1
+ export { iC as Store, iD as StoreCreate, iF as StoreSort, kJ as StoreType, iE as StoreUpdate, bb as default } from '../api-CsxHP9zh.js';
2
2
  import '../client.js';
3
- import '../interceptor-D65i25Y7.js';
3
+ import '../interceptor-5MISI1yn.js';
4
4
  import '../types.js';
@@ -1,4 +1,4 @@
1
- export { iK as StripeGateway, iL as StripeGatewayCreate, iN as StripeGatewaySort, lE as StripeGatewayType, iM as StripeGatewayUpdate, bm as default } from '../api-BLNq5Jhc.cjs';
1
+ export { iG as StripeGateway, iH as StripeGatewayCreate, iJ as StripeGatewaySort, lz as StripeGatewayType, iI as StripeGatewayUpdate, bc as default } from '../api-Cxxi3g4i.cjs';
2
2
  import '../client.cjs';
3
- import '../interceptor-D65i25Y7.cjs';
3
+ import '../interceptor-5MISI1yn.cjs';
4
4
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { iK as StripeGateway, iL as StripeGatewayCreate, iN as StripeGatewaySort, lE as StripeGatewayType, iM as StripeGatewayUpdate, bm as default } from '../api-BvsFkjzY.js';
1
+ export { iG as StripeGateway, iH as StripeGatewayCreate, iJ as StripeGatewaySort, lz as StripeGatewayType, iI as StripeGatewayUpdate, bc as default } from '../api-CsxHP9zh.js';
2
2
  import '../client.js';
3
- import '../interceptor-D65i25Y7.js';
3
+ import '../interceptor-5MISI1yn.js';
4
4
  import '../types.js';
@@ -1,4 +1,4 @@
1
- export { iO as StripePayment, iP as StripePaymentCreate, iR as StripePaymentSort, jZ as StripePaymentType, iQ as StripePaymentUpdate, bn as default } from '../api-BLNq5Jhc.cjs';
1
+ export { iK as StripePayment, iL as StripePaymentCreate, iN as StripePaymentSort, jV as StripePaymentType, iM as StripePaymentUpdate, bd as default } from '../api-Cxxi3g4i.cjs';
2
2
  import '../client.cjs';
3
- import '../interceptor-D65i25Y7.cjs';
3
+ import '../interceptor-5MISI1yn.cjs';
4
4
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { iO as StripePayment, iP as StripePaymentCreate, iR as StripePaymentSort, jZ as StripePaymentType, iQ as StripePaymentUpdate, bn as default } from '../api-BvsFkjzY.js';
1
+ export { iK as StripePayment, iL as StripePaymentCreate, iN as StripePaymentSort, jV as StripePaymentType, iM as StripePaymentUpdate, bd as default } from '../api-CsxHP9zh.js';
2
2
  import '../client.js';
3
- import '../interceptor-D65i25Y7.js';
3
+ import '../interceptor-5MISI1yn.js';
4
4
  import '../types.js';
@@ -1,4 +1,4 @@
1
- export { iS as StripeTaxAccount, iT as StripeTaxAccountCreate, iV as StripeTaxAccountSort, l9 as StripeTaxAccountType, iU as StripeTaxAccountUpdate, bo as default } from '../api-BLNq5Jhc.cjs';
1
+ export { iO as StripeTaxAccount, iP as StripeTaxAccountCreate, iR as StripeTaxAccountSort, l5 as StripeTaxAccountType, iQ as StripeTaxAccountUpdate, be as default } from '../api-Cxxi3g4i.cjs';
2
2
  import '../client.cjs';
3
- import '../interceptor-D65i25Y7.cjs';
3
+ import '../interceptor-5MISI1yn.cjs';
4
4
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { iS as StripeTaxAccount, iT as StripeTaxAccountCreate, iV as StripeTaxAccountSort, l9 as StripeTaxAccountType, iU as StripeTaxAccountUpdate, bo as default } from '../api-BvsFkjzY.js';
1
+ export { iO as StripeTaxAccount, iP as StripeTaxAccountCreate, iR as StripeTaxAccountSort, l5 as StripeTaxAccountType, iQ as StripeTaxAccountUpdate, be as default } from '../api-CsxHP9zh.js';
2
2
  import '../client.js';
3
- import '../interceptor-D65i25Y7.js';
3
+ import '../interceptor-5MISI1yn.js';
4
4
  import '../types.js';
@@ -1,4 +1,4 @@
1
- export { iW as SubscriptionModel, iX as SubscriptionModelCreate, iZ as SubscriptionModelSort, k1 as SubscriptionModelType, iY as SubscriptionModelUpdate, bp as default } from '../api-BLNq5Jhc.cjs';
1
+ export { iS as SubscriptionModel, iT as SubscriptionModelCreate, iV as SubscriptionModelSort, jZ as SubscriptionModelType, iU as SubscriptionModelUpdate, bf as default } from '../api-Cxxi3g4i.cjs';
2
2
  import '../client.cjs';
3
- import '../interceptor-D65i25Y7.cjs';
3
+ import '../interceptor-5MISI1yn.cjs';
4
4
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { iW as SubscriptionModel, iX as SubscriptionModelCreate, iZ as SubscriptionModelSort, k1 as SubscriptionModelType, iY as SubscriptionModelUpdate, bp as default } from '../api-BvsFkjzY.js';
1
+ export { iS as SubscriptionModel, iT as SubscriptionModelCreate, iV as SubscriptionModelSort, jZ as SubscriptionModelType, iU as SubscriptionModelUpdate, bf as default } from '../api-CsxHP9zh.js';
2
2
  import '../client.js';
3
- import '../interceptor-D65i25Y7.js';
3
+ import '../interceptor-5MISI1yn.js';
4
4
  import '../types.js';
@@ -1,4 +1,4 @@
1
- export { i_ as Tag, i$ as TagCreate, j1 as TagSort, jD as TagType, j0 as TagUpdate, bq as default } from '../api-BLNq5Jhc.cjs';
1
+ export { iW as Tag, iX as TagCreate, iZ as TagSort, jz as TagType, iY as TagUpdate, bg as default } from '../api-Cxxi3g4i.cjs';
2
2
  import '../client.cjs';
3
- import '../interceptor-D65i25Y7.cjs';
3
+ import '../interceptor-5MISI1yn.cjs';
4
4
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { i_ as Tag, i$ as TagCreate, j1 as TagSort, jD as TagType, j0 as TagUpdate, bq as default } from '../api-BvsFkjzY.js';
1
+ export { iW as Tag, iX as TagCreate, iZ as TagSort, jz as TagType, iY as TagUpdate, bg as default } from '../api-CsxHP9zh.js';
2
2
  import '../client.js';
3
- import '../interceptor-D65i25Y7.js';
3
+ import '../interceptor-5MISI1yn.js';
4
4
  import '../types.js';
@@ -1,4 +1,4 @@
1
- export { j2 as TalonOneAccount, j3 as TalonOneAccountCreate, j5 as TalonOneAccountSort, lF as TalonOneAccountType, j4 as TalonOneAccountUpdate, br as default } from '../api-BLNq5Jhc.cjs';
1
+ export { i_ as TalonOneAccount, i$ as TalonOneAccountCreate, j1 as TalonOneAccountSort, lA as TalonOneAccountType, j0 as TalonOneAccountUpdate, bh as default } from '../api-Cxxi3g4i.cjs';
2
2
  import '../client.cjs';
3
- import '../interceptor-D65i25Y7.cjs';
3
+ import '../interceptor-5MISI1yn.cjs';
4
4
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { j2 as TalonOneAccount, j3 as TalonOneAccountCreate, j5 as TalonOneAccountSort, lF as TalonOneAccountType, j4 as TalonOneAccountUpdate, br as default } from '../api-BvsFkjzY.js';
1
+ export { i_ as TalonOneAccount, i$ as TalonOneAccountCreate, j1 as TalonOneAccountSort, lA as TalonOneAccountType, j0 as TalonOneAccountUpdate, bh as default } from '../api-CsxHP9zh.js';
2
2
  import '../client.js';
3
- import '../interceptor-D65i25Y7.js';
3
+ import '../interceptor-5MISI1yn.js';
4
4
  import '../types.js';
@@ -1,4 +1,4 @@
1
- export { j6 as TaxCalculator, j7 as TaxCalculatorSort, l7 as TaxCalculatorType, bs as default } from '../api-BLNq5Jhc.cjs';
1
+ export { j2 as TaxCalculator, j3 as TaxCalculatorSort, l3 as TaxCalculatorType, bi as default } from '../api-Cxxi3g4i.cjs';
2
2
  import '../client.cjs';
3
- import '../interceptor-D65i25Y7.cjs';
3
+ import '../interceptor-5MISI1yn.cjs';
4
4
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { j6 as TaxCalculator, j7 as TaxCalculatorSort, l7 as TaxCalculatorType, bs as default } from '../api-BvsFkjzY.js';
1
+ export { j2 as TaxCalculator, j3 as TaxCalculatorSort, l3 as TaxCalculatorType, bi as default } from '../api-CsxHP9zh.js';
2
2
  import '../client.js';
3
- import '../interceptor-D65i25Y7.js';
3
+ import '../interceptor-5MISI1yn.js';
4
4
  import '../types.js';
@@ -1,4 +1,4 @@
1
- export { j8 as TaxCategory, j9 as TaxCategoryCreate, jb as TaxCategorySort, lf as TaxCategoryType, ja as TaxCategoryUpdate, bt as default } from '../api-BLNq5Jhc.cjs';
1
+ export { j4 as TaxCategory, j5 as TaxCategoryCreate, j7 as TaxCategorySort, lb as TaxCategoryType, j6 as TaxCategoryUpdate, bj as default } from '../api-Cxxi3g4i.cjs';
2
2
  import '../client.cjs';
3
- import '../interceptor-D65i25Y7.cjs';
3
+ import '../interceptor-5MISI1yn.cjs';
4
4
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { j8 as TaxCategory, j9 as TaxCategoryCreate, jb as TaxCategorySort, lf as TaxCategoryType, ja as TaxCategoryUpdate, bt as default } from '../api-BvsFkjzY.js';
1
+ export { j4 as TaxCategory, j5 as TaxCategoryCreate, j7 as TaxCategorySort, lb as TaxCategoryType, j6 as TaxCategoryUpdate, bj as default } from '../api-CsxHP9zh.js';
2
2
  import '../client.js';
3
- import '../interceptor-D65i25Y7.js';
3
+ import '../interceptor-5MISI1yn.js';
4
4
  import '../types.js';
@@ -1,4 +1,4 @@
1
- export { jc as TaxRule, jd as TaxRuleCreate, jf as TaxRuleSort, lc as TaxRuleType, je as TaxRuleUpdate, bu as default } from '../api-BLNq5Jhc.cjs';
1
+ export { j8 as TaxRule, j9 as TaxRuleCreate, jb as TaxRuleSort, l8 as TaxRuleType, ja as TaxRuleUpdate, bk as default } from '../api-Cxxi3g4i.cjs';
2
2
  import '../client.cjs';
3
- import '../interceptor-D65i25Y7.cjs';
3
+ import '../interceptor-5MISI1yn.cjs';
4
4
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { jc as TaxRule, jd as TaxRuleCreate, jf as TaxRuleSort, lc as TaxRuleType, je as TaxRuleUpdate, bu as default } from '../api-BvsFkjzY.js';
1
+ export { j8 as TaxRule, j9 as TaxRuleCreate, jb as TaxRuleSort, l8 as TaxRuleType, ja as TaxRuleUpdate, bk as default } from '../api-CsxHP9zh.js';
2
2
  import '../client.js';
3
- import '../interceptor-D65i25Y7.js';
3
+ import '../interceptor-5MISI1yn.js';
4
4
  import '../types.js';
@@ -1,4 +1,4 @@
1
- export { jg as TaxjarAccount, jh as TaxjarAccountCreate, jj as TaxjarAccountSort, lb as TaxjarAccountType, ji as TaxjarAccountUpdate, bv as default } from '../api-BLNq5Jhc.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
- import '../interceptor-D65i25Y7.cjs';
3
+ import '../interceptor-5MISI1yn.cjs';
4
4
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { jg as TaxjarAccount, jh as TaxjarAccountCreate, jj as TaxjarAccountSort, lb as TaxjarAccountType, ji as TaxjarAccountUpdate, bv as default } from '../api-BvsFkjzY.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
- import '../interceptor-D65i25Y7.js';
3
+ import '../interceptor-5MISI1yn.js';
4
4
  import '../types.js';
@@ -1,4 +1,4 @@
1
- export { jk as Transaction, jl as TransactionSort, l5 as TransactionType, bw as default } from '../api-BLNq5Jhc.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
- import '../interceptor-D65i25Y7.cjs';
3
+ import '../interceptor-5MISI1yn.cjs';
4
4
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { jk as Transaction, jl as TransactionSort, l5 as TransactionType, bw as default } from '../api-BvsFkjzY.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
- import '../interceptor-D65i25Y7.js';
3
+ import '../interceptor-5MISI1yn.js';
4
4
  import '../types.js';
@@ -1,4 +1,4 @@
1
- export { jm as Version, jn as VersionSort, jE as VersionType, bx as default } from '../api-BLNq5Jhc.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
- import '../interceptor-D65i25Y7.cjs';
3
+ import '../interceptor-5MISI1yn.cjs';
4
4
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { jm as Version, jn as VersionSort, jE as VersionType, bx as default } from '../api-BvsFkjzY.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
- import '../interceptor-D65i25Y7.js';
3
+ import '../interceptor-5MISI1yn.js';
4
4
  import '../types.js';
@@ -1,4 +1,4 @@
1
- export { jo as VertexAccount, jp as VertexAccountCreate, jr as VertexAccountSort, la as VertexAccountType, jq as VertexAccountUpdate, by as default } from '../api-BLNq5Jhc.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
- import '../interceptor-D65i25Y7.cjs';
3
+ import '../interceptor-5MISI1yn.cjs';
4
4
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { jo as VertexAccount, jp as VertexAccountCreate, jr as VertexAccountSort, la as VertexAccountType, jq as VertexAccountUpdate, by as default } from '../api-BvsFkjzY.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
- import '../interceptor-D65i25Y7.js';
3
+ import '../interceptor-5MISI1yn.js';
4
4
  import '../types.js';
@@ -1,4 +1,4 @@
1
- export { js as Void, ju as VoidSort, k4 as VoidType, jt as VoidUpdate, bz as default } from '../api-BLNq5Jhc.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
- import '../interceptor-D65i25Y7.cjs';
3
+ import '../interceptor-5MISI1yn.cjs';
4
4
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { js as Void, ju as VoidSort, k4 as VoidType, jt as VoidUpdate, bz as default } from '../api-BvsFkjzY.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
- import '../interceptor-D65i25Y7.js';
3
+ import '../interceptor-5MISI1yn.js';
4
4
  import '../types.js';
@@ -1,4 +1,4 @@
1
- export { jv as Webhook, jw as WebhookCreate, jy as WebhookSort, jL as WebhookType, jx as WebhookUpdate, bA as default } from '../api-BLNq5Jhc.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
- import '../interceptor-D65i25Y7.cjs';
3
+ import '../interceptor-5MISI1yn.cjs';
4
4
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { jv as Webhook, jw as WebhookCreate, jy as WebhookSort, jL as WebhookType, jx as WebhookUpdate, bA as default } from '../api-BvsFkjzY.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
- import '../interceptor-D65i25Y7.js';
3
+ import '../interceptor-5MISI1yn.js';
4
4
  import '../types.js';
@@ -1,4 +1,4 @@
1
- export { jz as WireTransfer, jA as WireTransferCreate, jC as WireTransferSort, j_ as WireTransferType, jB as WireTransferUpdate, bB as default } from '../api-BLNq5Jhc.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
- import '../interceptor-D65i25Y7.cjs';
3
+ import '../interceptor-5MISI1yn.cjs';
4
4
  import '../types.cjs';
@@ -1,4 +1,4 @@
1
- export { jz as WireTransfer, jA as WireTransferCreate, jC as WireTransferSort, j_ as WireTransferType, jB as WireTransferUpdate, bB as default } from '../api-BvsFkjzY.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
- import '../interceptor-D65i25Y7.js';
3
+ import '../interceptor-5MISI1yn.js';
4
4
  import '../types.js';
package/lib/static.cjs CHANGED
@@ -1,39 +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
- var CommerceLayer = require('./commercelayer');
7
7
  var util = require('./util');
8
8
 
9
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
10
-
11
- var CommerceLayer__default = /*#__PURE__*/_interopDefault(CommerceLayer);
12
-
13
9
  const CommerceLayerStatic = {
14
10
  resources: (sort) => {
15
- return sort ? [...api.resourceList].sort() : api.resourceList;
11
+ return _enum.getResources(sort);
16
12
  },
17
13
  singletons: (sort) => {
18
- return sort ? [...api.singletonList].sort() : api.singletonList;
14
+ return _enum.getSingletons(sort);
19
15
  },
20
16
  isSingleton: (resource) => {
21
- 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);
22
33
  },
23
34
  isSdkError: (error$1) => {
24
- return error.SdkError.isSdkError(error$1);
35
+ return error.isSdkError(error$1);
25
36
  },
26
37
  isApiError: (error$1) => {
27
- return error.ApiError.isApiError(error$1);
28
- },
29
- init: (config) => {
30
- return CommerceLayer__default.default(config);
38
+ return error.isApiError(error$1);
31
39
  },
32
40
  isTokenExpired: (token) => {
33
41
  return util.isTokenExpired(token);
34
42
  },
35
43
  get schemaVersion() {
36
- return CommerceLayer.OPEN_API_SCHEMA_VERSION;
44
+ return commercelayer.OPEN_API_SCHEMA_VERSION;
37
45
  }
38
46
  };
39
47
 
package/lib/static.d.cts CHANGED
@@ -1,17 +1,20 @@
1
- import { CommerceLayerInitConfig, CommerceLayerClient } from './commercelayer.cjs';
2
- import { f as ResourceTypeLock } from './api-BLNq5Jhc.cjs';
1
+ import { R as ResourceTypeLock } from './api-Cxxi3g4i.cjs';
3
2
  import { SdkError, ApiError } from './error.cjs';
4
- import './interceptor-D65i25Y7.cjs';
5
3
  import './client.cjs';
4
+ import './interceptor-5MISI1yn.cjs';
6
5
  import './types.cjs';
7
6
 
8
7
  declare const CommerceLayerStatic: {
9
8
  resources: (sort?: boolean) => readonly string[];
10
9
  singletons: (sort?: boolean) => readonly string[];
11
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;
12
16
  isSdkError: (error: unknown) => error is SdkError;
13
17
  isApiError: (error: unknown) => error is ApiError;
14
- init: (config: CommerceLayerInitConfig) => CommerceLayerClient;
15
18
  isTokenExpired: (token: string) => boolean;
16
19
  readonly schemaVersion: string;
17
20
  };
package/lib/static.d.ts CHANGED
@@ -1,17 +1,20 @@
1
- import { CommerceLayerInitConfig, CommerceLayerClient } from './commercelayer.js';
2
- import { f as ResourceTypeLock } from './api-BvsFkjzY.js';
1
+ import { R as ResourceTypeLock } from './api-CsxHP9zh.js';
3
2
  import { SdkError, ApiError } from './error.js';
4
- import './interceptor-D65i25Y7.js';
5
3
  import './client.js';
4
+ import './interceptor-5MISI1yn.js';
6
5
  import './types.js';
7
6
 
8
7
  declare const CommerceLayerStatic: {
9
8
  resources: (sort?: boolean) => readonly string[];
10
9
  singletons: (sort?: boolean) => readonly string[];
11
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;
12
16
  isSdkError: (error: unknown) => error is SdkError;
13
17
  isApiError: (error: unknown) => error is ApiError;
14
- init: (config: CommerceLayerInitConfig) => CommerceLayerClient;
15
18
  isTokenExpired: (token: string) => boolean;
16
19
  readonly schemaVersion: string;
17
20
  };
package/lib/static.js CHANGED
@@ -1,27 +1,39 @@
1
1
  import './chunk-AQ5VUG5P.js';
2
- import { singletonList, resourceList } from './api';
3
- import { ApiError, SdkError } from './error';
4
- import CommerceLayer, { OPEN_API_SCHEMA_VERSION } from './commercelayer';
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';
5
5
  import { isTokenExpired } from './util';
6
6
 
7
7
  const CommerceLayerStatic = {
8
8
  resources: (sort) => {
9
- return sort ? [...resourceList].sort() : resourceList;
9
+ return getResources(sort);
10
10
  },
11
11
  singletons: (sort) => {
12
- return sort ? [...singletonList].sort() : singletonList;
12
+ return getSingletons(sort);
13
13
  },
14
14
  isSingleton: (resource) => {
15
- 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);
16
31
  },
17
32
  isSdkError: (error) => {
18
- return SdkError.isSdkError(error);
33
+ return isSdkError(error);
19
34
  },
20
35
  isApiError: (error) => {
21
- return ApiError.isApiError(error);
22
- },
23
- init: (config) => {
24
- return CommerceLayer(config);
36
+ return isApiError(error);
25
37
  },
26
38
  isTokenExpired: (token) => {
27
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.14",
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",