@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/api.cjs CHANGED
@@ -267,148 +267,7 @@ var voids__default = /*#__PURE__*/_interopDefault(voids);
267
267
  var webhooks__default = /*#__PURE__*/_interopDefault(webhooks);
268
268
  var wire_transfers__default = /*#__PURE__*/_interopDefault(wire_transfers);
269
269
 
270
- const apiResources = [
271
- // ##__API_RESOURCE_LIST_START__##
272
- "addresses",
273
- "adjustments",
274
- "adyen_gateways",
275
- "adyen_payments",
276
- "applications",
277
- "attachments",
278
- "authorizations",
279
- "avalara_accounts",
280
- "axerve_gateways",
281
- "axerve_payments",
282
- "bing_geocoders",
283
- "braintree_gateways",
284
- "braintree_payments",
285
- "bundles",
286
- "buy_x_pay_y_promotions",
287
- "captures",
288
- "carrier_accounts",
289
- "checkout_com_gateways",
290
- "checkout_com_payments",
291
- "cleanups",
292
- "coupon_codes_promotion_rules",
293
- "coupon_recipients",
294
- "coupons",
295
- "custom_promotion_rules",
296
- "customer_addresses",
297
- "customer_groups",
298
- "customer_password_resets",
299
- "customer_payment_sources",
300
- "customer_subscriptions",
301
- "customers",
302
- "delivery_lead_times",
303
- "discount_engine_items",
304
- "discount_engines",
305
- "easypost_pickups",
306
- "event_callbacks",
307
- "events",
308
- "exports",
309
- "external_gateways",
310
- "external_payments",
311
- "external_promotions",
312
- "external_tax_calculators",
313
- "fixed_amount_promotions",
314
- "fixed_price_promotions",
315
- "flex_promotions",
316
- "free_gift_promotions",
317
- "free_shipping_promotions",
318
- "geocoders",
319
- "gift_card_recipients",
320
- "gift_cards",
321
- "google_geocoders",
322
- "imports",
323
- "in_stock_subscriptions",
324
- "inventory_models",
325
- "inventory_return_locations",
326
- "inventory_stock_locations",
327
- "klarna_gateways",
328
- "klarna_payments",
329
- "line_item_options",
330
- "line_items",
331
- "links",
332
- "manual_gateways",
333
- "manual_tax_calculators",
334
- "markets",
335
- "merchants",
336
- "notifications",
337
- "order_amount_promotion_rules",
338
- "order_copies",
339
- "order_factories",
340
- "order_subscription_items",
341
- "order_subscriptions",
342
- "orders",
343
- "organizations",
344
- "packages",
345
- "parcel_line_items",
346
- "parcels",
347
- "payment_gateways",
348
- "payment_methods",
349
- "payment_options",
350
- "paypal_gateways",
351
- "paypal_payments",
352
- "percentage_discount_promotions",
353
- "pickups",
354
- "price_frequency_tiers",
355
- "price_list_schedulers",
356
- "price_lists",
357
- "price_tiers",
358
- "price_volume_tiers",
359
- "prices",
360
- "promotion_rules",
361
- "promotions",
362
- "recurring_order_copies",
363
- "refunds",
364
- "reserved_stocks",
365
- "resource_errors",
366
- "return_line_items",
367
- "returns",
368
- "satispay_gateways",
369
- "satispay_payments",
370
- "shipments",
371
- "shipping_categories",
372
- "shipping_method_tiers",
373
- "shipping_methods",
374
- "shipping_weight_tiers",
375
- "shipping_zones",
376
- "sku_list_items",
377
- "sku_list_promotion_rules",
378
- "sku_lists",
379
- "sku_options",
380
- "skus",
381
- "stock_items",
382
- "stock_line_items",
383
- "stock_locations",
384
- "stock_reservations",
385
- "stock_transfers",
386
- "stores",
387
- "stripe_gateways",
388
- "stripe_payments",
389
- "stripe_tax_accounts",
390
- "subscription_models",
391
- "tags",
392
- "talon_one_accounts",
393
- "tax_calculators",
394
- "tax_categories",
395
- "tax_rules",
396
- "taxjar_accounts",
397
- "transactions",
398
- "versions",
399
- "vertex_accounts",
400
- "voids",
401
- "webhooks",
402
- "wire_transfers"
403
- // ##__API_RESOURCE_LIST_STOP__##
404
- ];
405
- const resourceList = apiResources;
406
- const singletonList = [
407
- // ##__API_RESOURCE_SINGLETON_START__##
408
- "applications",
409
- "organizations"
410
- // ##__API_RESOURCE_SINGLETON_STOP__##
411
- ];
270
+
412
271
 
413
272
  Object.defineProperty(exports, "addresses", {
414
273
  enumerable: true,
@@ -934,5 +793,3 @@ Object.defineProperty(exports, "wire_transfers", {
934
793
  enumerable: true,
935
794
  get: function () { return wire_transfers__default.default; }
936
795
  });
937
- exports.resourceList = resourceList;
938
- exports.singletonList = singletonList;
package/lib/api.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- export { j as CreatableResource, C as CreatableResourceType, l as DeletableResource, D as DeletableResourceType, i as ListableResource, L as ListableResourceType, o as ResourceFields, p as ResourceSortFields, f as ResourceTypeLock, h as RetrievableResource, g as RetrievableResourceType, m as TaggableResource, T as TaggableResourceType, k as UpdatableResource, U as UpdatableResourceType, n as VersionableResource, V as VersionableResourceType, q as addresses, t as adjustments, u as adyen_gateways, v as adyen_payments, w as application, x as attachments, y as authorizations, z as avalara_accounts, A as axerve_gateways, B as axerve_payments, E as bing_geocoders, F as braintree_gateways, G as braintree_payments, H as bundles, I as buy_x_pay_y_promotions, J as captures, K as carrier_accounts, M as checkout_com_gateways, N as checkout_com_payments, O as cleanups, P as coupon_codes_promotion_rules, Q as coupon_recipients, S as coupons, W as custom_promotion_rules, X as customer_addresses, Y as customer_groups, Z as customer_password_resets, _ as customer_payment_sources, $ as customer_subscriptions, a0 as customers, a1 as delivery_lead_times, a2 as discount_engine_items, a3 as discount_engines, a4 as easypost_pickups, a5 as event_callbacks, a6 as events, a7 as exports, a8 as external_gateways, a9 as external_payments, aa as external_promotions, ab as external_tax_calculators, ac as fixed_amount_promotions, ad as fixed_price_promotions, ae as flex_promotions, af as free_gift_promotions, ag as free_shipping_promotions, ah as geocoders, ai as gift_card_recipients, aj as gift_cards, ak as google_geocoders, al as imports, am as in_stock_subscriptions, an as inventory_models, ao as inventory_return_locations, ap as inventory_stock_locations, aq as klarna_gateways, ar as klarna_payments, as as line_item_options, at as line_items, au as links, av as manual_gateways, aw as manual_tax_calculators, ax as markets, ay as merchants, az as notifications, aA as order_amount_promotion_rules, aB as order_copies, aC as order_factories, aD as order_subscription_items, aE as order_subscriptions, aF as orders, aG as organization, aH as packages, aI as parcel_line_items, aJ as parcels, aK as payment_gateways, aL as payment_methods, aM as payment_options, aN as paypal_gateways, aO as paypal_payments, aP as percentage_discount_promotions, aQ as pickups, aR as price_frequency_tiers, aS as price_list_schedulers, aT as price_lists, aU as price_tiers, aV as price_volume_tiers, aW as prices, aX as promotion_rules, aY as promotions, aZ as recurring_order_copies, a_ as refunds, a$ as reserved_stocks, r as resourceList, b0 as resource_errors, b1 as return_line_items, b2 as returns, b3 as satispay_gateways, b4 as satispay_payments, b5 as shipments, b6 as shipping_categories, b7 as shipping_method_tiers, b8 as shipping_methods, b9 as shipping_weight_tiers, ba as shipping_zones, s as singletonList, bb as sku_list_items, bc as sku_list_promotion_rules, bd as sku_lists, be as sku_options, bf as skus, bg as stock_items, bh as stock_line_items, bi as stock_locations, bj as stock_reservations, bk as stock_transfers, bl as stores, bm as stripe_gateways, bn as stripe_payments, bo as stripe_tax_accounts, bp as subscription_models, bq as tags, br as talon_one_accounts, bs as tax_calculators, bt as tax_categories, bu as tax_rules, bv as taxjar_accounts, bw as transactions, bx as versions, by as vertex_accounts, bz as voids, bA as webhooks, bB as wire_transfers } from './api-BLNq5Jhc.cjs';
1
+ export { i as addresses, j as adjustments, k as adyen_gateways, l as adyen_payments, m as application, n as attachments, o as authorizations, p as avalara_accounts, q as axerve_gateways, r as axerve_payments, s as bing_geocoders, t as braintree_gateways, u as braintree_payments, v as bundles, w as buy_x_pay_y_promotions, x as captures, y as carrier_accounts, z as checkout_com_gateways, A as checkout_com_payments, B as cleanups, E as coupon_codes_promotion_rules, F as coupon_recipients, G as coupons, H as custom_promotion_rules, I as customer_addresses, J as customer_groups, K as customer_password_resets, M as customer_payment_sources, N as customer_subscriptions, O as customers, P as delivery_lead_times, Q as discount_engine_items, S as discount_engines, W as easypost_pickups, X as event_callbacks, Y as events, Z as exports, _ as external_gateways, $ as external_payments, a0 as external_promotions, a1 as external_tax_calculators, a2 as fixed_amount_promotions, a3 as fixed_price_promotions, a4 as flex_promotions, a5 as free_gift_promotions, a6 as free_shipping_promotions, a7 as geocoders, a8 as gift_card_recipients, a9 as gift_cards, aa as google_geocoders, ab as imports, ac as in_stock_subscriptions, ad as inventory_models, ae as inventory_return_locations, af as inventory_stock_locations, ag as klarna_gateways, ah as klarna_payments, ai as line_item_options, aj as line_items, ak as links, al as manual_gateways, am as manual_tax_calculators, an as markets, ao as merchants, ap as notifications, aq as order_amount_promotion_rules, ar as order_copies, as as order_factories, at as order_subscription_items, au as order_subscriptions, av as orders, aw as organization, ax as packages, ay as parcel_line_items, az as parcels, aA as payment_gateways, aB as payment_methods, aC as payment_options, aD as paypal_gateways, aE as paypal_payments, aF as percentage_discount_promotions, aG as pickups, aH as price_frequency_tiers, aI as price_list_schedulers, aJ as price_lists, aK as price_tiers, aL as price_volume_tiers, aM as prices, aN as promotion_rules, aO as promotions, aP as recurring_order_copies, aQ as refunds, aR as reserved_stocks, aS as resource_errors, aT as return_line_items, aU as returns, aV as satispay_gateways, aW as satispay_payments, aX as shipments, aY as shipping_categories, aZ as shipping_method_tiers, a_ as shipping_methods, a$ as shipping_weight_tiers, b0 as shipping_zones, b1 as sku_list_items, b2 as sku_list_promotion_rules, b3 as sku_lists, b4 as sku_options, b5 as skus, b6 as stock_items, b7 as stock_line_items, b8 as stock_locations, b9 as stock_reservations, ba as stock_transfers, bb as stores, bc as stripe_gateways, bd as stripe_payments, be as stripe_tax_accounts, bf as subscription_models, bg as tags, bh as talon_one_accounts, bi as tax_calculators, bj as tax_categories, bk as tax_rules, bl as taxjar_accounts, bm as transactions, bn as versions, bo as vertex_accounts, bp as voids, bq as webhooks, br as wire_transfers } from './api-Cxxi3g4i.cjs';
2
2
  import './client.cjs';
3
- import './interceptor-D65i25Y7.cjs';
3
+ import './interceptor-5MISI1yn.cjs';
4
4
  import './types.cjs';
package/lib/api.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { j as CreatableResource, C as CreatableResourceType, l as DeletableResource, D as DeletableResourceType, i as ListableResource, L as ListableResourceType, o as ResourceFields, p as ResourceSortFields, f as ResourceTypeLock, h as RetrievableResource, g as RetrievableResourceType, m as TaggableResource, T as TaggableResourceType, k as UpdatableResource, U as UpdatableResourceType, n as VersionableResource, V as VersionableResourceType, q as addresses, t as adjustments, u as adyen_gateways, v as adyen_payments, w as application, x as attachments, y as authorizations, z as avalara_accounts, A as axerve_gateways, B as axerve_payments, E as bing_geocoders, F as braintree_gateways, G as braintree_payments, H as bundles, I as buy_x_pay_y_promotions, J as captures, K as carrier_accounts, M as checkout_com_gateways, N as checkout_com_payments, O as cleanups, P as coupon_codes_promotion_rules, Q as coupon_recipients, S as coupons, W as custom_promotion_rules, X as customer_addresses, Y as customer_groups, Z as customer_password_resets, _ as customer_payment_sources, $ as customer_subscriptions, a0 as customers, a1 as delivery_lead_times, a2 as discount_engine_items, a3 as discount_engines, a4 as easypost_pickups, a5 as event_callbacks, a6 as events, a7 as exports, a8 as external_gateways, a9 as external_payments, aa as external_promotions, ab as external_tax_calculators, ac as fixed_amount_promotions, ad as fixed_price_promotions, ae as flex_promotions, af as free_gift_promotions, ag as free_shipping_promotions, ah as geocoders, ai as gift_card_recipients, aj as gift_cards, ak as google_geocoders, al as imports, am as in_stock_subscriptions, an as inventory_models, ao as inventory_return_locations, ap as inventory_stock_locations, aq as klarna_gateways, ar as klarna_payments, as as line_item_options, at as line_items, au as links, av as manual_gateways, aw as manual_tax_calculators, ax as markets, ay as merchants, az as notifications, aA as order_amount_promotion_rules, aB as order_copies, aC as order_factories, aD as order_subscription_items, aE as order_subscriptions, aF as orders, aG as organization, aH as packages, aI as parcel_line_items, aJ as parcels, aK as payment_gateways, aL as payment_methods, aM as payment_options, aN as paypal_gateways, aO as paypal_payments, aP as percentage_discount_promotions, aQ as pickups, aR as price_frequency_tiers, aS as price_list_schedulers, aT as price_lists, aU as price_tiers, aV as price_volume_tiers, aW as prices, aX as promotion_rules, aY as promotions, aZ as recurring_order_copies, a_ as refunds, a$ as reserved_stocks, r as resourceList, b0 as resource_errors, b1 as return_line_items, b2 as returns, b3 as satispay_gateways, b4 as satispay_payments, b5 as shipments, b6 as shipping_categories, b7 as shipping_method_tiers, b8 as shipping_methods, b9 as shipping_weight_tiers, ba as shipping_zones, s as singletonList, bb as sku_list_items, bc as sku_list_promotion_rules, bd as sku_lists, be as sku_options, bf as skus, bg as stock_items, bh as stock_line_items, bi as stock_locations, bj as stock_reservations, bk as stock_transfers, bl as stores, bm as stripe_gateways, bn as stripe_payments, bo as stripe_tax_accounts, bp as subscription_models, bq as tags, br as talon_one_accounts, bs as tax_calculators, bt as tax_categories, bu as tax_rules, bv as taxjar_accounts, bw as transactions, bx as versions, by as vertex_accounts, bz as voids, bA as webhooks, bB as wire_transfers } from './api-BvsFkjzY.js';
1
+ export { i as addresses, j as adjustments, k as adyen_gateways, l as adyen_payments, m as application, n as attachments, o as authorizations, p as avalara_accounts, q as axerve_gateways, r as axerve_payments, s as bing_geocoders, t as braintree_gateways, u as braintree_payments, v as bundles, w as buy_x_pay_y_promotions, x as captures, y as carrier_accounts, z as checkout_com_gateways, A as checkout_com_payments, B as cleanups, E as coupon_codes_promotion_rules, F as coupon_recipients, G as coupons, H as custom_promotion_rules, I as customer_addresses, J as customer_groups, K as customer_password_resets, M as customer_payment_sources, N as customer_subscriptions, O as customers, P as delivery_lead_times, Q as discount_engine_items, S as discount_engines, W as easypost_pickups, X as event_callbacks, Y as events, Z as exports, _ as external_gateways, $ as external_payments, a0 as external_promotions, a1 as external_tax_calculators, a2 as fixed_amount_promotions, a3 as fixed_price_promotions, a4 as flex_promotions, a5 as free_gift_promotions, a6 as free_shipping_promotions, a7 as geocoders, a8 as gift_card_recipients, a9 as gift_cards, aa as google_geocoders, ab as imports, ac as in_stock_subscriptions, ad as inventory_models, ae as inventory_return_locations, af as inventory_stock_locations, ag as klarna_gateways, ah as klarna_payments, ai as line_item_options, aj as line_items, ak as links, al as manual_gateways, am as manual_tax_calculators, an as markets, ao as merchants, ap as notifications, aq as order_amount_promotion_rules, ar as order_copies, as as order_factories, at as order_subscription_items, au as order_subscriptions, av as orders, aw as organization, ax as packages, ay as parcel_line_items, az as parcels, aA as payment_gateways, aB as payment_methods, aC as payment_options, aD as paypal_gateways, aE as paypal_payments, aF as percentage_discount_promotions, aG as pickups, aH as price_frequency_tiers, aI as price_list_schedulers, aJ as price_lists, aK as price_tiers, aL as price_volume_tiers, aM as prices, aN as promotion_rules, aO as promotions, aP as recurring_order_copies, aQ as refunds, aR as reserved_stocks, aS as resource_errors, aT as return_line_items, aU as returns, aV as satispay_gateways, aW as satispay_payments, aX as shipments, aY as shipping_categories, aZ as shipping_method_tiers, a_ as shipping_methods, a$ as shipping_weight_tiers, b0 as shipping_zones, b1 as sku_list_items, b2 as sku_list_promotion_rules, b3 as sku_lists, b4 as sku_options, b5 as skus, b6 as stock_items, b7 as stock_line_items, b8 as stock_locations, b9 as stock_reservations, ba as stock_transfers, bb as stores, bc as stripe_gateways, bd as stripe_payments, be as stripe_tax_accounts, bf as subscription_models, bg as tags, bh as talon_one_accounts, bi as tax_calculators, bj as tax_categories, bk as tax_rules, bl as taxjar_accounts, bm as transactions, bn as versions, bo as vertex_accounts, bp as voids, bq as webhooks, br as wire_transfers } 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/api.js CHANGED
@@ -130,148 +130,3 @@ export { default as vertex_accounts } from './resources/vertex_accounts';
130
130
  export { default as voids } from './resources/voids';
131
131
  export { default as webhooks } from './resources/webhooks';
132
132
  export { default as wire_transfers } from './resources/wire_transfers';
133
-
134
- const apiResources = [
135
- // ##__API_RESOURCE_LIST_START__##
136
- "addresses",
137
- "adjustments",
138
- "adyen_gateways",
139
- "adyen_payments",
140
- "applications",
141
- "attachments",
142
- "authorizations",
143
- "avalara_accounts",
144
- "axerve_gateways",
145
- "axerve_payments",
146
- "bing_geocoders",
147
- "braintree_gateways",
148
- "braintree_payments",
149
- "bundles",
150
- "buy_x_pay_y_promotions",
151
- "captures",
152
- "carrier_accounts",
153
- "checkout_com_gateways",
154
- "checkout_com_payments",
155
- "cleanups",
156
- "coupon_codes_promotion_rules",
157
- "coupon_recipients",
158
- "coupons",
159
- "custom_promotion_rules",
160
- "customer_addresses",
161
- "customer_groups",
162
- "customer_password_resets",
163
- "customer_payment_sources",
164
- "customer_subscriptions",
165
- "customers",
166
- "delivery_lead_times",
167
- "discount_engine_items",
168
- "discount_engines",
169
- "easypost_pickups",
170
- "event_callbacks",
171
- "events",
172
- "exports",
173
- "external_gateways",
174
- "external_payments",
175
- "external_promotions",
176
- "external_tax_calculators",
177
- "fixed_amount_promotions",
178
- "fixed_price_promotions",
179
- "flex_promotions",
180
- "free_gift_promotions",
181
- "free_shipping_promotions",
182
- "geocoders",
183
- "gift_card_recipients",
184
- "gift_cards",
185
- "google_geocoders",
186
- "imports",
187
- "in_stock_subscriptions",
188
- "inventory_models",
189
- "inventory_return_locations",
190
- "inventory_stock_locations",
191
- "klarna_gateways",
192
- "klarna_payments",
193
- "line_item_options",
194
- "line_items",
195
- "links",
196
- "manual_gateways",
197
- "manual_tax_calculators",
198
- "markets",
199
- "merchants",
200
- "notifications",
201
- "order_amount_promotion_rules",
202
- "order_copies",
203
- "order_factories",
204
- "order_subscription_items",
205
- "order_subscriptions",
206
- "orders",
207
- "organizations",
208
- "packages",
209
- "parcel_line_items",
210
- "parcels",
211
- "payment_gateways",
212
- "payment_methods",
213
- "payment_options",
214
- "paypal_gateways",
215
- "paypal_payments",
216
- "percentage_discount_promotions",
217
- "pickups",
218
- "price_frequency_tiers",
219
- "price_list_schedulers",
220
- "price_lists",
221
- "price_tiers",
222
- "price_volume_tiers",
223
- "prices",
224
- "promotion_rules",
225
- "promotions",
226
- "recurring_order_copies",
227
- "refunds",
228
- "reserved_stocks",
229
- "resource_errors",
230
- "return_line_items",
231
- "returns",
232
- "satispay_gateways",
233
- "satispay_payments",
234
- "shipments",
235
- "shipping_categories",
236
- "shipping_method_tiers",
237
- "shipping_methods",
238
- "shipping_weight_tiers",
239
- "shipping_zones",
240
- "sku_list_items",
241
- "sku_list_promotion_rules",
242
- "sku_lists",
243
- "sku_options",
244
- "skus",
245
- "stock_items",
246
- "stock_line_items",
247
- "stock_locations",
248
- "stock_reservations",
249
- "stock_transfers",
250
- "stores",
251
- "stripe_gateways",
252
- "stripe_payments",
253
- "stripe_tax_accounts",
254
- "subscription_models",
255
- "tags",
256
- "talon_one_accounts",
257
- "tax_calculators",
258
- "tax_categories",
259
- "tax_rules",
260
- "taxjar_accounts",
261
- "transactions",
262
- "versions",
263
- "vertex_accounts",
264
- "voids",
265
- "webhooks",
266
- "wire_transfers"
267
- // ##__API_RESOURCE_LIST_STOP__##
268
- ];
269
- const resourceList = apiResources;
270
- const singletonList = [
271
- // ##__API_RESOURCE_SINGLETON_START__##
272
- "applications",
273
- "organizations"
274
- // ##__API_RESOURCE_SINGLETON_STOP__##
275
- ];
276
-
277
- export { resourceList, singletonList };
package/lib/client.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { F as Fetch, c as InterceptorManager, d as FetchResponse } from './interceptor-D65i25Y7.cjs';
1
+ import { F as Fetch, f as InterceptorManager, g as FetchResponse } from './interceptor-5MISI1yn.cjs';
2
2
 
3
3
  type RequestParams = Record<string, string | number | boolean>;
4
4
  type RequestHeaders = Record<string, string>;
package/lib/client.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { F as Fetch, c as InterceptorManager, d as FetchResponse } from './interceptor-D65i25Y7.js';
1
+ import { F as Fetch, f as InterceptorManager, g as FetchResponse } from './interceptor-5MISI1yn.js';
2
2
 
3
3
  type RequestParams = Record<string, string | number | boolean>;
4
4
  type RequestHeaders = Record<string, string>;
@@ -3,7 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var chunkJE77HYXB_cjs = require('./chunk-JE77HYXB.cjs');
6
- var _static = require('./static');
6
+ var _enum = require('./enum');
7
+ var error = require('./error');
7
8
  var resource = require('./resource');
8
9
  var Debug = require('./debug');
9
10
 
@@ -12,7 +13,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
12
13
  var Debug__default = /*#__PURE__*/_interopDefault(Debug);
13
14
 
14
15
  const debug = Debug__default.default("commercelayer");
15
- const OPEN_API_SCHEMA_VERSION = "7.8.2";
16
+ const OPEN_API_SCHEMA_VERSION = "7.8.3";
16
17
  const _CommerceLayerClient = class _CommerceLayerClient {
17
18
  constructor(config) {
18
19
  chunkJE77HYXB_cjs.__publicField(this, "openApiSchemaVersion", OPEN_API_SCHEMA_VERSION);
@@ -53,17 +54,11 @@ const _CommerceLayerClient = class _CommerceLayerClient {
53
54
  this.adapter.config(config);
54
55
  return this;
55
56
  }
56
- resources() {
57
- return _static.CommerceLayerStatic.resources();
57
+ resources(sort) {
58
+ return _enum.getResources(sort);
58
59
  }
59
- singletons() {
60
- return _static.CommerceLayerStatic.singletons();
61
- }
62
- isSingleton(resource) {
63
- return _static.CommerceLayerStatic.isSingleton(resource);
64
- }
65
- isApiError(error) {
66
- return _static.CommerceLayerStatic.isApiError(error);
60
+ isApiError(error$1) {
61
+ return error.isApiError(error$1);
67
62
  }
68
63
  addRequestInterceptor(onSuccess, onFailure) {
69
64
  this.interceptors.request = { onSuccess, onFailure };
@@ -1,17 +1,17 @@
1
- import { e as ResourcesInitConfig, f as ResourceTypeLock } from './api-BLNq5Jhc.cjs';
2
1
  import { ApiError } from './error.cjs';
3
- import { R as RequestInterceptor, E as ErrorInterceptor, a as ResponseInterceptor, I as InterceptorType, b as RawResponseReader } from './interceptor-D65i25Y7.cjs';
2
+ import { b as RequestInterceptor, c as ErrorInterceptor, d as ResponseInterceptor, I as InterceptorType, e as RawResponseReader } from './interceptor-5MISI1yn.cjs';
3
+ import { bV as ResourcesInitConfig } from './api-Cxxi3g4i.cjs';
4
4
  import './client.cjs';
5
5
  import './types.cjs';
6
6
 
7
- declare const OPEN_API_SCHEMA_VERSION = "7.8.2";
7
+ declare const OPEN_API_SCHEMA_VERSION = "7.8.3";
8
8
 
9
9
  type SdkConfig = {};
10
10
  type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
11
11
  type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
12
12
  declare class CommerceLayerClient {
13
13
  static get openApiSchemaVersion(): string;
14
- readonly openApiSchemaVersion = "7.8.2";
14
+ readonly openApiSchemaVersion = "7.8.3";
15
15
  private static cl;
16
16
  static get(config?: CommerceLayerInitConfig): CommerceLayerClient;
17
17
  private constructor();
@@ -21,9 +21,7 @@ declare class CommerceLayerClient {
21
21
  private get interceptors();
22
22
  private localConfig;
23
23
  config(config: CommerceLayerConfig): this;
24
- resources(): readonly string[];
25
- singletons(): readonly string[];
26
- isSingleton(resource: ResourceTypeLock): boolean;
24
+ resources(sort?: boolean): readonly string[];
27
25
  isApiError(error: any): error is ApiError;
28
26
  addRequestInterceptor(onSuccess?: RequestInterceptor, onFailure?: ErrorInterceptor): number;
29
27
  addResponseInterceptor(onSuccess?: ResponseInterceptor, onFailure?: ErrorInterceptor): number;
@@ -1,17 +1,17 @@
1
- import { e as ResourcesInitConfig, f as ResourceTypeLock } from './api-BvsFkjzY.js';
2
1
  import { ApiError } from './error.js';
3
- import { R as RequestInterceptor, E as ErrorInterceptor, a as ResponseInterceptor, I as InterceptorType, b as RawResponseReader } from './interceptor-D65i25Y7.js';
2
+ import { b as RequestInterceptor, c as ErrorInterceptor, d as ResponseInterceptor, I as InterceptorType, e as RawResponseReader } from './interceptor-5MISI1yn.js';
3
+ import { bV as ResourcesInitConfig } from './api-CsxHP9zh.js';
4
4
  import './client.js';
5
5
  import './types.js';
6
6
 
7
- declare const OPEN_API_SCHEMA_VERSION = "7.8.2";
7
+ declare const OPEN_API_SCHEMA_VERSION = "7.8.3";
8
8
 
9
9
  type SdkConfig = {};
10
10
  type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
11
11
  type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
12
12
  declare class CommerceLayerClient {
13
13
  static get openApiSchemaVersion(): string;
14
- readonly openApiSchemaVersion = "7.8.2";
14
+ readonly openApiSchemaVersion = "7.8.3";
15
15
  private static cl;
16
16
  static get(config?: CommerceLayerInitConfig): CommerceLayerClient;
17
17
  private constructor();
@@ -21,9 +21,7 @@ declare class CommerceLayerClient {
21
21
  private get interceptors();
22
22
  private localConfig;
23
23
  config(config: CommerceLayerConfig): this;
24
- resources(): readonly string[];
25
- singletons(): readonly string[];
26
- isSingleton(resource: ResourceTypeLock): boolean;
24
+ resources(sort?: boolean): readonly string[];
27
25
  isApiError(error: any): error is ApiError;
28
26
  addRequestInterceptor(onSuccess?: RequestInterceptor, onFailure?: ErrorInterceptor): number;
29
27
  addResponseInterceptor(onSuccess?: ResponseInterceptor, onFailure?: ErrorInterceptor): number;
@@ -1,10 +1,11 @@
1
1
  import { __publicField } from './chunk-AQ5VUG5P.js';
2
- import { CommerceLayerStatic } from './static';
2
+ import { getResources } from './enum';
3
+ import { isApiError } from './error';
3
4
  import { ApiResourceAdapter } from './resource';
4
5
  import Debug from './debug';
5
6
 
6
7
  const debug = Debug("commercelayer");
7
- const OPEN_API_SCHEMA_VERSION = "7.8.2";
8
+ const OPEN_API_SCHEMA_VERSION = "7.8.3";
8
9
  const _CommerceLayerClient = class _CommerceLayerClient {
9
10
  constructor(config) {
10
11
  __publicField(this, "openApiSchemaVersion", OPEN_API_SCHEMA_VERSION);
@@ -45,17 +46,11 @@ const _CommerceLayerClient = class _CommerceLayerClient {
45
46
  this.adapter.config(config);
46
47
  return this;
47
48
  }
48
- resources() {
49
- return CommerceLayerStatic.resources();
50
- }
51
- singletons() {
52
- return CommerceLayerStatic.singletons();
53
- }
54
- isSingleton(resource) {
55
- return CommerceLayerStatic.isSingleton(resource);
49
+ resources(sort) {
50
+ return getResources(sort);
56
51
  }
57
52
  isApiError(error) {
58
- return CommerceLayerStatic.isApiError(error);
53
+ return isApiError(error);
59
54
  }
60
55
  addRequestInterceptor(onSuccess, onFailure) {
61
56
  this.interceptors.request = { onSuccess, onFailure };
package/lib/common.cjs CHANGED
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
3
  require('./chunk-JE77HYXB.cjs');
4
- var api = require('./api');
4
+ var _enum = require('./enum');
5
5
 
6
6
  const isResourceId = (resource) => {
7
- return resource?.type && resource.id && api.resourceList.includes(resource.type);
7
+ return resource?.type && resource.id && _enum.resourceList.includes(resource.type);
8
8
  };
9
9
  const isResourceType = (resource) => {
10
- return resource && typeof resource.type !== "undefined" && resource.type && api.resourceList.includes(resource.type);
10
+ return resource && typeof resource.type !== "undefined" && resource.type && _enum.resourceList.includes(resource.type);
11
11
  };
12
12
  const DBG = {
13
13
  verbose: false
package/lib/common.d.cts CHANGED
@@ -1,6 +1,6 @@
1
- import { R as ResourceId, a as ResourceType } from './api-BLNq5Jhc.cjs';
1
+ import { bK as ResourceId, bJ as ResourceType } from './api-Cxxi3g4i.cjs';
2
2
  import './client.cjs';
3
- import './interceptor-D65i25Y7.cjs';
3
+ import './interceptor-5MISI1yn.cjs';
4
4
  import './types.cjs';
5
5
 
6
6
  declare const isResourceId: (resource: any) => resource is ResourceId;
package/lib/common.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { R as ResourceId, a as ResourceType } from './api-BvsFkjzY.js';
1
+ import { bK as ResourceId, bJ as ResourceType } from './api-CsxHP9zh.js';
2
2
  import './client.js';
3
- import './interceptor-D65i25Y7.js';
3
+ import './interceptor-5MISI1yn.js';
4
4
  import './types.js';
5
5
 
6
6
  declare const isResourceId: (resource: any) => resource is ResourceId;
package/lib/common.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import './chunk-AQ5VUG5P.js';
2
- import { resourceList } from './api';
2
+ import { resourceList } from './enum';
3
3
 
4
4
  const isResourceId = (resource) => {
5
5
  return resource?.type && resource.id && resourceList.includes(resource.type);
package/lib/config.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ApiClientInitConfig } from './client.cjs';
2
- import './interceptor-D65i25Y7.cjs';
2
+ import './interceptor-5MISI1yn.cjs';
3
3
 
4
4
  declare const config: {
5
5
  readonly default: {
package/lib/config.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ApiClientInitConfig } from './client.js';
2
- import './interceptor-D65i25Y7.js';
2
+ import './interceptor-5MISI1yn.js';
3
3
 
4
4
  declare const config: {
5
5
  readonly default: {