@commercelayer/sdk 7.0.0-beta.13 → 7.0.0-beta.15
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.
- package/lib/{api-C5qyxFpD.d.ts → adapter-BPmdwMhh.d.ts} +1792 -1789
- package/lib/{api-Bq9emZm-.d.cts → adapter-DF63Dunh.d.cts} +1792 -1789
- package/lib/adapter.cjs +795 -0
- package/lib/adapter.d.cts +4 -0
- package/lib/adapter.d.ts +4 -0
- package/lib/adapter.js +132 -0
- package/lib/api.cjs +2 -789
- package/lib/api.d.cts +2 -2
- package/lib/api.d.ts +2 -2
- package/lib/api.js +2 -132
- package/lib/client.d.cts +1 -1
- package/lib/client.d.ts +1 -1
- package/lib/commercelayer.cjs +4 -7
- package/lib/commercelayer.d.cts +3 -5
- package/lib/commercelayer.d.ts +3 -5
- package/lib/commercelayer.js +3 -5
- package/lib/common.d.cts +2 -2
- package/lib/common.d.ts +2 -2
- package/lib/config.d.cts +1 -1
- package/lib/config.d.ts +1 -1
- package/lib/fetch.d.cts +1 -1
- package/lib/fetch.d.ts +1 -1
- package/lib/index.cjs +7 -2
- package/lib/index.d.cts +2 -2
- package/lib/index.d.ts +2 -2
- package/lib/index.js +2 -1
- package/lib/{interceptor-D65i25Y7.d.cts → interceptor-5MISI1yn.d.cts} +1 -1
- package/lib/{interceptor-D65i25Y7.d.ts → interceptor-5MISI1yn.d.ts} +1 -1
- package/lib/interceptor.d.cts +1 -1
- package/lib/interceptor.d.ts +1 -1
- package/lib/jsonapi.d.cts +2 -2
- package/lib/jsonapi.d.ts +2 -2
- package/lib/model.d.cts +2 -2
- package/lib/model.d.ts +2 -2
- package/lib/query.d.cts +2 -2
- package/lib/query.d.ts +2 -2
- package/lib/resource.cjs +4 -5
- package/lib/resource.d.cts +2 -2
- package/lib/resource.d.ts +2 -2
- package/lib/resource.js +5 -3
- package/lib/resources/addresses.d.cts +2 -2
- package/lib/resources/addresses.d.ts +2 -2
- package/lib/resources/adjustments.d.cts +2 -2
- package/lib/resources/adjustments.d.ts +2 -2
- package/lib/resources/adyen_gateways.d.cts +2 -2
- package/lib/resources/adyen_gateways.d.ts +2 -2
- package/lib/resources/adyen_payments.d.cts +2 -2
- package/lib/resources/adyen_payments.d.ts +2 -2
- package/lib/resources/applications.d.cts +2 -2
- package/lib/resources/applications.d.ts +2 -2
- package/lib/resources/attachments.d.cts +2 -2
- package/lib/resources/attachments.d.ts +2 -2
- package/lib/resources/authorizations.d.cts +2 -2
- package/lib/resources/authorizations.d.ts +2 -2
- package/lib/resources/avalara_accounts.d.cts +2 -2
- package/lib/resources/avalara_accounts.d.ts +2 -2
- package/lib/resources/axerve_gateways.d.cts +2 -2
- package/lib/resources/axerve_gateways.d.ts +2 -2
- package/lib/resources/axerve_payments.d.cts +2 -2
- package/lib/resources/axerve_payments.d.ts +2 -2
- package/lib/resources/bing_geocoders.d.cts +2 -2
- package/lib/resources/bing_geocoders.d.ts +2 -2
- package/lib/resources/braintree_gateways.d.cts +2 -2
- package/lib/resources/braintree_gateways.d.ts +2 -2
- package/lib/resources/braintree_payments.d.cts +2 -2
- package/lib/resources/braintree_payments.d.ts +2 -2
- package/lib/resources/bundles.d.cts +2 -2
- package/lib/resources/bundles.d.ts +2 -2
- package/lib/resources/buy_x_pay_y_promotions.d.cts +2 -2
- package/lib/resources/buy_x_pay_y_promotions.d.ts +2 -2
- package/lib/resources/captures.d.cts +2 -2
- package/lib/resources/captures.d.ts +2 -2
- package/lib/resources/carrier_accounts.d.cts +2 -2
- package/lib/resources/carrier_accounts.d.ts +2 -2
- package/lib/resources/checkout_com_gateways.d.cts +2 -2
- package/lib/resources/checkout_com_gateways.d.ts +2 -2
- package/lib/resources/checkout_com_payments.d.cts +2 -2
- package/lib/resources/checkout_com_payments.d.ts +2 -2
- package/lib/resources/cleanups.d.cts +2 -2
- package/lib/resources/cleanups.d.ts +2 -2
- package/lib/resources/coupon_codes_promotion_rules.d.cts +2 -2
- package/lib/resources/coupon_codes_promotion_rules.d.ts +2 -2
- package/lib/resources/coupon_recipients.d.cts +2 -2
- package/lib/resources/coupon_recipients.d.ts +2 -2
- package/lib/resources/coupons.d.cts +2 -2
- package/lib/resources/coupons.d.ts +2 -2
- package/lib/resources/custom_promotion_rules.d.cts +2 -2
- package/lib/resources/custom_promotion_rules.d.ts +2 -2
- package/lib/resources/customer_addresses.d.cts +2 -2
- package/lib/resources/customer_addresses.d.ts +2 -2
- package/lib/resources/customer_groups.d.cts +2 -2
- package/lib/resources/customer_groups.d.ts +2 -2
- package/lib/resources/customer_password_resets.d.cts +2 -2
- package/lib/resources/customer_password_resets.d.ts +2 -2
- package/lib/resources/customer_payment_sources.d.cts +2 -2
- package/lib/resources/customer_payment_sources.d.ts +2 -2
- package/lib/resources/customer_subscriptions.d.cts +2 -2
- package/lib/resources/customer_subscriptions.d.ts +2 -2
- package/lib/resources/customers.d.cts +2 -2
- package/lib/resources/customers.d.ts +2 -2
- package/lib/resources/delivery_lead_times.d.cts +2 -2
- package/lib/resources/delivery_lead_times.d.ts +2 -2
- package/lib/resources/discount_engine_items.d.cts +2 -2
- package/lib/resources/discount_engine_items.d.ts +2 -2
- package/lib/resources/discount_engines.d.cts +2 -2
- package/lib/resources/discount_engines.d.ts +2 -2
- package/lib/resources/easypost_pickups.d.cts +2 -2
- package/lib/resources/easypost_pickups.d.ts +2 -2
- package/lib/resources/event_callbacks.d.cts +2 -2
- package/lib/resources/event_callbacks.d.ts +2 -2
- package/lib/resources/events.d.cts +2 -2
- package/lib/resources/events.d.ts +2 -2
- package/lib/resources/exports.d.cts +2 -2
- package/lib/resources/exports.d.ts +2 -2
- package/lib/resources/external_gateways.d.cts +2 -2
- package/lib/resources/external_gateways.d.ts +2 -2
- package/lib/resources/external_payments.d.cts +2 -2
- package/lib/resources/external_payments.d.ts +2 -2
- package/lib/resources/external_promotions.d.cts +2 -2
- package/lib/resources/external_promotions.d.ts +2 -2
- package/lib/resources/external_tax_calculators.d.cts +2 -2
- package/lib/resources/external_tax_calculators.d.ts +2 -2
- package/lib/resources/fixed_amount_promotions.d.cts +2 -2
- package/lib/resources/fixed_amount_promotions.d.ts +2 -2
- package/lib/resources/fixed_price_promotions.d.cts +2 -2
- package/lib/resources/fixed_price_promotions.d.ts +2 -2
- package/lib/resources/flex_promotions.d.cts +2 -2
- package/lib/resources/flex_promotions.d.ts +2 -2
- package/lib/resources/free_gift_promotions.d.cts +2 -2
- package/lib/resources/free_gift_promotions.d.ts +2 -2
- package/lib/resources/free_shipping_promotions.d.cts +2 -2
- package/lib/resources/free_shipping_promotions.d.ts +2 -2
- package/lib/resources/geocoders.d.cts +2 -2
- package/lib/resources/geocoders.d.ts +2 -2
- package/lib/resources/gift_card_recipients.d.cts +2 -2
- package/lib/resources/gift_card_recipients.d.ts +2 -2
- package/lib/resources/gift_cards.d.cts +2 -2
- package/lib/resources/gift_cards.d.ts +2 -2
- package/lib/resources/google_geocoders.d.cts +2 -2
- package/lib/resources/google_geocoders.d.ts +2 -2
- package/lib/resources/imports.d.cts +2 -2
- package/lib/resources/imports.d.ts +2 -2
- package/lib/resources/in_stock_subscriptions.d.cts +2 -2
- package/lib/resources/in_stock_subscriptions.d.ts +2 -2
- package/lib/resources/inventory_models.d.cts +2 -2
- package/lib/resources/inventory_models.d.ts +2 -2
- package/lib/resources/inventory_return_locations.d.cts +2 -2
- package/lib/resources/inventory_return_locations.d.ts +2 -2
- package/lib/resources/inventory_stock_locations.d.cts +2 -2
- package/lib/resources/inventory_stock_locations.d.ts +2 -2
- package/lib/resources/klarna_gateways.d.cts +2 -2
- package/lib/resources/klarna_gateways.d.ts +2 -2
- package/lib/resources/klarna_payments.d.cts +2 -2
- package/lib/resources/klarna_payments.d.ts +2 -2
- package/lib/resources/line_item_options.d.cts +2 -2
- package/lib/resources/line_item_options.d.ts +2 -2
- package/lib/resources/line_items.d.cts +2 -2
- package/lib/resources/line_items.d.ts +2 -2
- package/lib/resources/links.d.cts +2 -2
- package/lib/resources/links.d.ts +2 -2
- package/lib/resources/manual_gateways.d.cts +2 -2
- package/lib/resources/manual_gateways.d.ts +2 -2
- package/lib/resources/manual_tax_calculators.d.cts +2 -2
- package/lib/resources/manual_tax_calculators.d.ts +2 -2
- package/lib/resources/markets.d.cts +2 -2
- package/lib/resources/markets.d.ts +2 -2
- package/lib/resources/merchants.d.cts +2 -2
- package/lib/resources/merchants.d.ts +2 -2
- package/lib/resources/notifications.d.cts +2 -2
- package/lib/resources/notifications.d.ts +2 -2
- package/lib/resources/order_amount_promotion_rules.d.cts +2 -2
- package/lib/resources/order_amount_promotion_rules.d.ts +2 -2
- package/lib/resources/order_copies.d.cts +2 -2
- package/lib/resources/order_copies.d.ts +2 -2
- package/lib/resources/order_factories.d.cts +2 -2
- package/lib/resources/order_factories.d.ts +2 -2
- package/lib/resources/order_subscription_items.d.cts +2 -2
- package/lib/resources/order_subscription_items.d.ts +2 -2
- package/lib/resources/order_subscriptions.d.cts +2 -2
- package/lib/resources/order_subscriptions.d.ts +2 -2
- package/lib/resources/orders.d.cts +2 -2
- package/lib/resources/orders.d.ts +2 -2
- package/lib/resources/organizations.d.cts +2 -2
- package/lib/resources/organizations.d.ts +2 -2
- package/lib/resources/packages.d.cts +2 -2
- package/lib/resources/packages.d.ts +2 -2
- package/lib/resources/parcel_line_items.d.cts +2 -2
- package/lib/resources/parcel_line_items.d.ts +2 -2
- package/lib/resources/parcels.d.cts +2 -2
- package/lib/resources/parcels.d.ts +2 -2
- package/lib/resources/payment_gateways.d.cts +2 -2
- package/lib/resources/payment_gateways.d.ts +2 -2
- package/lib/resources/payment_methods.d.cts +2 -2
- package/lib/resources/payment_methods.d.ts +2 -2
- package/lib/resources/payment_options.d.cts +2 -2
- package/lib/resources/payment_options.d.ts +2 -2
- package/lib/resources/paypal_gateways.d.cts +2 -2
- package/lib/resources/paypal_gateways.d.ts +2 -2
- package/lib/resources/paypal_payments.d.cts +2 -2
- package/lib/resources/paypal_payments.d.ts +2 -2
- package/lib/resources/percentage_discount_promotions.d.cts +2 -2
- package/lib/resources/percentage_discount_promotions.d.ts +2 -2
- package/lib/resources/pickups.d.cts +2 -2
- package/lib/resources/pickups.d.ts +2 -2
- package/lib/resources/price_frequency_tiers.d.cts +2 -2
- package/lib/resources/price_frequency_tiers.d.ts +2 -2
- package/lib/resources/price_list_schedulers.d.cts +2 -2
- package/lib/resources/price_list_schedulers.d.ts +2 -2
- package/lib/resources/price_lists.d.cts +2 -2
- package/lib/resources/price_lists.d.ts +2 -2
- package/lib/resources/price_tiers.d.cts +2 -2
- package/lib/resources/price_tiers.d.ts +2 -2
- package/lib/resources/price_volume_tiers.d.cts +2 -2
- package/lib/resources/price_volume_tiers.d.ts +2 -2
- package/lib/resources/prices.d.cts +2 -2
- package/lib/resources/prices.d.ts +2 -2
- package/lib/resources/promotion_rules.d.cts +2 -2
- package/lib/resources/promotion_rules.d.ts +2 -2
- package/lib/resources/promotions.d.cts +2 -2
- package/lib/resources/promotions.d.ts +2 -2
- package/lib/resources/recurring_order_copies.d.cts +2 -2
- package/lib/resources/recurring_order_copies.d.ts +2 -2
- package/lib/resources/refunds.d.cts +2 -2
- package/lib/resources/refunds.d.ts +2 -2
- package/lib/resources/reserved_stocks.d.cts +2 -2
- package/lib/resources/reserved_stocks.d.ts +2 -2
- package/lib/resources/resource_errors.d.cts +2 -2
- package/lib/resources/resource_errors.d.ts +2 -2
- package/lib/resources/return_line_items.d.cts +2 -2
- package/lib/resources/return_line_items.d.ts +2 -2
- package/lib/resources/returns.d.cts +2 -2
- package/lib/resources/returns.d.ts +2 -2
- package/lib/resources/satispay_gateways.d.cts +2 -2
- package/lib/resources/satispay_gateways.d.ts +2 -2
- package/lib/resources/satispay_payments.d.cts +2 -2
- package/lib/resources/satispay_payments.d.ts +2 -2
- package/lib/resources/shipments.d.cts +2 -2
- package/lib/resources/shipments.d.ts +2 -2
- package/lib/resources/shipping_categories.d.cts +2 -2
- package/lib/resources/shipping_categories.d.ts +2 -2
- package/lib/resources/shipping_method_tiers.d.cts +2 -2
- package/lib/resources/shipping_method_tiers.d.ts +2 -2
- package/lib/resources/shipping_methods.d.cts +2 -2
- package/lib/resources/shipping_methods.d.ts +2 -2
- package/lib/resources/shipping_weight_tiers.d.cts +2 -2
- package/lib/resources/shipping_weight_tiers.d.ts +2 -2
- package/lib/resources/shipping_zones.d.cts +2 -2
- package/lib/resources/shipping_zones.d.ts +2 -2
- package/lib/resources/sku_list_items.d.cts +2 -2
- package/lib/resources/sku_list_items.d.ts +2 -2
- package/lib/resources/sku_list_promotion_rules.d.cts +2 -2
- package/lib/resources/sku_list_promotion_rules.d.ts +2 -2
- package/lib/resources/sku_lists.d.cts +2 -2
- package/lib/resources/sku_lists.d.ts +2 -2
- package/lib/resources/sku_options.d.cts +2 -2
- package/lib/resources/sku_options.d.ts +2 -2
- package/lib/resources/skus.d.cts +2 -2
- package/lib/resources/skus.d.ts +2 -2
- package/lib/resources/stock_items.d.cts +2 -2
- package/lib/resources/stock_items.d.ts +2 -2
- package/lib/resources/stock_line_items.d.cts +2 -2
- package/lib/resources/stock_line_items.d.ts +2 -2
- package/lib/resources/stock_locations.d.cts +2 -2
- package/lib/resources/stock_locations.d.ts +2 -2
- package/lib/resources/stock_reservations.d.cts +2 -2
- package/lib/resources/stock_reservations.d.ts +2 -2
- package/lib/resources/stock_transfers.d.cts +2 -2
- package/lib/resources/stock_transfers.d.ts +2 -2
- package/lib/resources/stores.d.cts +2 -2
- package/lib/resources/stores.d.ts +2 -2
- package/lib/resources/stripe_gateways.d.cts +2 -2
- package/lib/resources/stripe_gateways.d.ts +2 -2
- package/lib/resources/stripe_payments.d.cts +2 -2
- package/lib/resources/stripe_payments.d.ts +2 -2
- package/lib/resources/stripe_tax_accounts.d.cts +2 -2
- package/lib/resources/stripe_tax_accounts.d.ts +2 -2
- package/lib/resources/subscription_models.d.cts +2 -2
- package/lib/resources/subscription_models.d.ts +2 -2
- package/lib/resources/tags.d.cts +2 -2
- package/lib/resources/tags.d.ts +2 -2
- package/lib/resources/talon_one_accounts.d.cts +2 -2
- package/lib/resources/talon_one_accounts.d.ts +2 -2
- package/lib/resources/tax_calculators.d.cts +2 -2
- package/lib/resources/tax_calculators.d.ts +2 -2
- package/lib/resources/tax_categories.d.cts +2 -2
- package/lib/resources/tax_categories.d.ts +2 -2
- package/lib/resources/tax_rules.d.cts +2 -2
- package/lib/resources/tax_rules.d.ts +2 -2
- package/lib/resources/taxjar_accounts.d.cts +2 -2
- package/lib/resources/taxjar_accounts.d.ts +2 -2
- package/lib/resources/transactions.d.cts +2 -2
- package/lib/resources/transactions.d.ts +2 -2
- package/lib/resources/versions.d.cts +2 -2
- package/lib/resources/versions.d.ts +2 -2
- package/lib/resources/vertex_accounts.d.cts +2 -2
- package/lib/resources/vertex_accounts.d.ts +2 -2
- package/lib/resources/voids.d.cts +2 -2
- package/lib/resources/voids.d.ts +2 -2
- package/lib/resources/webhooks.d.cts +2 -2
- package/lib/resources/webhooks.d.ts +2 -2
- package/lib/resources/wire_transfers.d.cts +2 -2
- package/lib/resources/wire_transfers.d.ts +2 -2
- package/lib/static.cjs +1 -9
- package/lib/static.d.cts +2 -4
- package/lib/static.d.ts +2 -4
- package/lib/static.js +1 -5
- package/package.json +2 -2
package/lib/resources/tags.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { iI as Tag, iJ as TagCreate, iL as TagSort, jE as TagType, iK as TagUpdate, b2 as default } from '../adapter-BPmdwMhh.js';
|
2
2
|
import '../client.js';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-5MISI1yn.js';
|
4
4
|
import '../types.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { iM as TalonOneAccount, iN as TalonOneAccountCreate, iP as TalonOneAccountSort, lF as TalonOneAccountType, iO as TalonOneAccountUpdate, b3 as default } from '../adapter-DF63Dunh.cjs';
|
2
2
|
import '../client.cjs';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-5MISI1yn.cjs';
|
4
4
|
import '../types.cjs';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { iM as TalonOneAccount, iN as TalonOneAccountCreate, iP as TalonOneAccountSort, lF as TalonOneAccountType, iO as TalonOneAccountUpdate, b3 as default } from '../adapter-BPmdwMhh.js';
|
2
2
|
import '../client.js';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-5MISI1yn.js';
|
4
4
|
import '../types.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { iQ as TaxCalculator, iR as TaxCalculatorSort, l8 as TaxCalculatorType, b4 as default } from '../adapter-DF63Dunh.cjs';
|
2
2
|
import '../client.cjs';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-5MISI1yn.cjs';
|
4
4
|
import '../types.cjs';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { iQ as TaxCalculator, iR as TaxCalculatorSort, l8 as TaxCalculatorType, b4 as default } from '../adapter-BPmdwMhh.js';
|
2
2
|
import '../client.js';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-5MISI1yn.js';
|
4
4
|
import '../types.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { iS as TaxCategory, iT as TaxCategoryCreate, iV as TaxCategorySort, lg as TaxCategoryType, iU as TaxCategoryUpdate, b5 as default } from '../adapter-DF63Dunh.cjs';
|
2
2
|
import '../client.cjs';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-5MISI1yn.cjs';
|
4
4
|
import '../types.cjs';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { iS as TaxCategory, iT as TaxCategoryCreate, iV as TaxCategorySort, lg as TaxCategoryType, iU as TaxCategoryUpdate, b5 as default } from '../adapter-BPmdwMhh.js';
|
2
2
|
import '../client.js';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-5MISI1yn.js';
|
4
4
|
import '../types.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { iW as TaxRule, iX as TaxRuleCreate, iZ as TaxRuleSort, ld as TaxRuleType, iY as TaxRuleUpdate, b6 as default } from '../adapter-DF63Dunh.cjs';
|
2
2
|
import '../client.cjs';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-5MISI1yn.cjs';
|
4
4
|
import '../types.cjs';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { iW as TaxRule, iX as TaxRuleCreate, iZ as TaxRuleSort, ld as TaxRuleType, iY as TaxRuleUpdate, b6 as default } from '../adapter-BPmdwMhh.js';
|
2
2
|
import '../client.js';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-5MISI1yn.js';
|
4
4
|
import '../types.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { i_ as TaxjarAccount, i$ as TaxjarAccountCreate, j1 as TaxjarAccountSort, lc as TaxjarAccountType, j0 as TaxjarAccountUpdate, b7 as default } from '../adapter-DF63Dunh.cjs';
|
2
2
|
import '../client.cjs';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-5MISI1yn.cjs';
|
4
4
|
import '../types.cjs';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { i_ as TaxjarAccount, i$ as TaxjarAccountCreate, j1 as TaxjarAccountSort, lc as TaxjarAccountType, j0 as TaxjarAccountUpdate, b7 as default } from '../adapter-BPmdwMhh.js';
|
2
2
|
import '../client.js';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-5MISI1yn.js';
|
4
4
|
import '../types.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { j2 as Transaction, j3 as TransactionSort, l6 as TransactionType, b8 as default } from '../adapter-DF63Dunh.cjs';
|
2
2
|
import '../client.cjs';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-5MISI1yn.cjs';
|
4
4
|
import '../types.cjs';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { j2 as Transaction, j3 as TransactionSort, l6 as TransactionType, b8 as default } from '../adapter-BPmdwMhh.js';
|
2
2
|
import '../client.js';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-5MISI1yn.js';
|
4
4
|
import '../types.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { j4 as Version, j5 as VersionSort, jF as VersionType, b9 as default } from '../adapter-DF63Dunh.cjs';
|
2
2
|
import '../client.cjs';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-5MISI1yn.cjs';
|
4
4
|
import '../types.cjs';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { j4 as Version, j5 as VersionSort, jF as VersionType, b9 as default } from '../adapter-BPmdwMhh.js';
|
2
2
|
import '../client.js';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-5MISI1yn.js';
|
4
4
|
import '../types.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { j6 as VertexAccount, j7 as VertexAccountCreate, j9 as VertexAccountSort, lb as VertexAccountType, j8 as VertexAccountUpdate, ba as default } from '../adapter-DF63Dunh.cjs';
|
2
2
|
import '../client.cjs';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-5MISI1yn.cjs';
|
4
4
|
import '../types.cjs';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { j6 as VertexAccount, j7 as VertexAccountCreate, j9 as VertexAccountSort, lb as VertexAccountType, j8 as VertexAccountUpdate, ba as default } from '../adapter-BPmdwMhh.js';
|
2
2
|
import '../client.js';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-5MISI1yn.js';
|
4
4
|
import '../types.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { ja as Void, jc as VoidSort, k5 as VoidType, jb as VoidUpdate, bb as default } from '../adapter-DF63Dunh.cjs';
|
2
2
|
import '../client.cjs';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-5MISI1yn.cjs';
|
4
4
|
import '../types.cjs';
|
package/lib/resources/voids.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { ja as Void, jc as VoidSort, k5 as VoidType, jb as VoidUpdate, bb as default } from '../adapter-BPmdwMhh.js';
|
2
2
|
import '../client.js';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-5MISI1yn.js';
|
4
4
|
import '../types.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { jd as Webhook, je as WebhookCreate, jg as WebhookSort, jO as WebhookType, jf as WebhookUpdate, bc as default } from '../adapter-DF63Dunh.cjs';
|
2
2
|
import '../client.cjs';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-5MISI1yn.cjs';
|
4
4
|
import '../types.cjs';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { jd as Webhook, je as WebhookCreate, jg as WebhookSort, jO as WebhookType, jf as WebhookUpdate, bc as default } from '../adapter-BPmdwMhh.js';
|
2
2
|
import '../client.js';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-5MISI1yn.js';
|
4
4
|
import '../types.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { jh as WireTransfer, ji as WireTransferCreate, jk as WireTransferSort, j$ as WireTransferType, jj as WireTransferUpdate, bd as default } from '../adapter-DF63Dunh.cjs';
|
2
2
|
import '../client.cjs';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-5MISI1yn.cjs';
|
4
4
|
import '../types.cjs';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { jh as WireTransfer, ji as WireTransferCreate, jk as WireTransferSort, j$ as WireTransferType, jj as WireTransferUpdate, bd as default } from '../adapter-BPmdwMhh.js';
|
2
2
|
import '../client.js';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-5MISI1yn.js';
|
4
4
|
import '../types.js';
|
package/lib/static.cjs
CHANGED
@@ -3,13 +3,8 @@
|
|
3
3
|
require('./chunk-JE77HYXB.cjs');
|
4
4
|
var api = require('./api');
|
5
5
|
var error = require('./error');
|
6
|
-
var CommerceLayer = require('./commercelayer');
|
7
6
|
var util = require('./util');
|
8
7
|
|
9
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
10
|
-
|
11
|
-
var CommerceLayer__default = /*#__PURE__*/_interopDefault(CommerceLayer);
|
12
|
-
|
13
8
|
const CommerceLayerStatic = {
|
14
9
|
resources: (sort) => {
|
15
10
|
return sort ? [...api.resourceList].sort() : api.resourceList;
|
@@ -26,14 +21,11 @@ const CommerceLayerStatic = {
|
|
26
21
|
isApiError: (error$1) => {
|
27
22
|
return error.ApiError.isApiError(error$1);
|
28
23
|
},
|
29
|
-
init: (config) => {
|
30
|
-
return CommerceLayer__default.default(config);
|
31
|
-
},
|
32
24
|
isTokenExpired: (token) => {
|
33
25
|
return util.isTokenExpired(token);
|
34
26
|
},
|
35
27
|
get schemaVersion() {
|
36
|
-
return
|
28
|
+
return api.OPEN_API_SCHEMA_VERSION;
|
37
29
|
}
|
38
30
|
};
|
39
31
|
|
package/lib/static.d.cts
CHANGED
@@ -1,8 +1,7 @@
|
|
1
|
-
import {
|
2
|
-
import { f as ResourceTypeLock } from './api-Bq9emZm-.cjs';
|
1
|
+
import { jl as ResourceTypeLock } from './adapter-DF63Dunh.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: {
|
@@ -11,7 +10,6 @@ declare const CommerceLayerStatic: {
|
|
11
10
|
isSingleton: (resource: ResourceTypeLock) => boolean;
|
12
11
|
isSdkError: (error: unknown) => error is SdkError;
|
13
12
|
isApiError: (error: unknown) => error is ApiError;
|
14
|
-
init: (config: CommerceLayerInitConfig) => CommerceLayerClient;
|
15
13
|
isTokenExpired: (token: string) => boolean;
|
16
14
|
readonly schemaVersion: string;
|
17
15
|
};
|
package/lib/static.d.ts
CHANGED
@@ -1,8 +1,7 @@
|
|
1
|
-
import {
|
2
|
-
import { f as ResourceTypeLock } from './api-C5qyxFpD.js';
|
1
|
+
import { jl as ResourceTypeLock } from './adapter-BPmdwMhh.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: {
|
@@ -11,7 +10,6 @@ declare const CommerceLayerStatic: {
|
|
11
10
|
isSingleton: (resource: ResourceTypeLock) => boolean;
|
12
11
|
isSdkError: (error: unknown) => error is SdkError;
|
13
12
|
isApiError: (error: unknown) => error is ApiError;
|
14
|
-
init: (config: CommerceLayerInitConfig) => CommerceLayerClient;
|
15
13
|
isTokenExpired: (token: string) => boolean;
|
16
14
|
readonly schemaVersion: string;
|
17
15
|
};
|
package/lib/static.js
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import './chunk-AQ5VUG5P.js';
|
2
|
-
import { singletonList, resourceList } from './api';
|
2
|
+
import { OPEN_API_SCHEMA_VERSION, singletonList, resourceList } from './api';
|
3
3
|
import { ApiError, SdkError } from './error';
|
4
|
-
import CommerceLayer, { OPEN_API_SCHEMA_VERSION } from './commercelayer';
|
5
4
|
import { isTokenExpired } from './util';
|
6
5
|
|
7
6
|
const CommerceLayerStatic = {
|
@@ -20,9 +19,6 @@ const CommerceLayerStatic = {
|
|
20
19
|
isApiError: (error) => {
|
21
20
|
return ApiError.isApiError(error);
|
22
21
|
},
|
23
|
-
init: (config) => {
|
24
|
-
return CommerceLayer(config);
|
25
|
-
},
|
26
22
|
isTokenExpired: (token) => {
|
27
23
|
return isTokenExpired(token);
|
28
24
|
},
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@commercelayer/sdk",
|
3
|
-
"version": "7.0.0-beta.
|
3
|
+
"version": "7.0.0-beta.15",
|
4
4
|
"main": "lib/index.cjs",
|
5
5
|
"types": "lib/index.d.ts",
|
6
6
|
"module": "lib/index.js",
|
@@ -52,7 +52,7 @@
|
|
52
52
|
"@semantic-release/changelog": "^6.0.3",
|
53
53
|
"@semantic-release/git": "^10.0.1",
|
54
54
|
"@types/debug": "^4.1.12",
|
55
|
-
"@types/node": "^22.13.
|
55
|
+
"@types/node": "^22.13.14",
|
56
56
|
"@vitest/coverage-v8": "^3.0.9",
|
57
57
|
"@vitest/eslint-plugin": "^1.1.38",
|
58
58
|
"conventional-changelog-conventionalcommits": "^8.0.0",
|