@commercelayer/sdk 7.0.0-beta.1 → 7.0.0-beta.10
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-BYcswOJ0.d.cts +16784 -0
- package/lib/api-Cknm0QL_.d.ts +16784 -0
- package/lib/api.cjs +936 -0
- package/lib/api.d.cts +4 -0
- package/lib/api.d.ts +4 -0
- package/lib/api.js +275 -0
- package/lib/client.cjs +170 -0
- package/lib/client.d.cts +36 -0
- package/lib/client.d.ts +36 -0
- package/lib/client.js +161 -0
- package/lib/commercelayer.cjs +798 -0
- package/lib/commercelayer.d.cts +167 -0
- package/lib/commercelayer.d.ts +167 -0
- package/lib/commercelayer.js +768 -0
- package/lib/common.cjs +17 -0
- package/lib/common.d.cts +13 -0
- package/lib/common.d.ts +13 -0
- package/lib/common.js +13 -0
- package/lib/config.cjs +21 -0
- package/lib/config.d.cts +19 -0
- package/lib/config.d.ts +19 -0
- package/lib/config.js +17 -0
- package/lib/debug.cjs +19 -0
- package/lib/debug.d.cts +4 -0
- package/lib/debug.d.ts +4 -0
- package/lib/debug.js +15 -0
- package/lib/error.cjs +97 -0
- package/lib/error.d.cts +35 -0
- package/lib/error.d.ts +35 -0
- package/lib/error.js +91 -0
- package/lib/fetch.cjs +83 -0
- package/lib/fetch.d.cts +1 -0
- package/lib/fetch.d.ts +1 -0
- package/lib/fetch.js +76 -0
- package/lib/index.cjs +32 -2
- package/lib/index.d.cts +8 -16916
- package/lib/index.d.ts +8 -16916
- package/lib/index.js +3 -2
- package/lib/instance.cjs +272 -0
- package/lib/instance.d.cts +141 -0
- package/lib/instance.d.ts +141 -0
- package/lib/instance.js +139 -0
- package/lib/interceptor-5MISI1yn.d.cts +54 -0
- package/lib/interceptor-5MISI1yn.d.ts +54 -0
- package/lib/interceptor.cjs +2 -0
- package/lib/interceptor.d.cts +1 -0
- package/lib/interceptor.d.ts +1 -0
- package/lib/interceptor.js +1 -0
- package/lib/jsonapi.cjs +79 -0
- package/lib/jsonapi.d.cts +11 -0
- package/lib/jsonapi.d.ts +11 -0
- package/lib/jsonapi.js +71 -0
- package/lib/model.cjs +2 -0
- package/lib/model.d.cts +4 -0
- package/lib/model.d.ts +4 -0
- package/lib/model.js +1 -0
- package/lib/query.cjs +64 -0
- package/lib/query.d.cts +4 -0
- package/lib/query.d.ts +4 -0
- package/lib/query.js +56 -0
- package/lib/resource.cjs +222 -0
- package/lib/resource.d.cts +4 -0
- package/lib/resource.d.ts +4 -0
- package/lib/resource.js +209 -0
- package/lib/resources/addresses.cjs +53 -0
- package/lib/resources/addresses.d.cts +4 -0
- package/lib/resources/addresses.d.ts +4 -0
- package/lib/resources/addresses.js +49 -0
- package/lib/resources/adjustments.cjs +41 -0
- package/lib/resources/adjustments.d.cts +4 -0
- package/lib/resources/adjustments.d.ts +4 -0
- package/lib/resources/adjustments.js +37 -0
- package/lib/resources/adyen_gateways.cjs +49 -0
- package/lib/resources/adyen_gateways.d.cts +4 -0
- package/lib/resources/adyen_gateways.d.ts +4 -0
- package/lib/resources/adyen_gateways.js +45 -0
- package/lib/resources/adyen_payments.cjs +55 -0
- package/lib/resources/adyen_payments.d.cts +4 -0
- package/lib/resources/adyen_payments.d.ts +4 -0
- package/lib/resources/adyen_payments.js +51 -0
- package/lib/resources/applications.cjs +31 -0
- package/lib/resources/applications.d.cts +4 -0
- package/lib/resources/applications.d.ts +4 -0
- package/lib/resources/applications.js +27 -0
- package/lib/resources/attachments.cjs +37 -0
- package/lib/resources/attachments.d.cts +4 -0
- package/lib/resources/attachments.d.ts +4 -0
- package/lib/resources/attachments.js +33 -0
- package/lib/resources/authorizations.cjs +70 -0
- package/lib/resources/authorizations.d.cts +4 -0
- package/lib/resources/authorizations.d.ts +4 -0
- package/lib/resources/authorizations.js +66 -0
- package/lib/resources/avalara_accounts.cjs +57 -0
- package/lib/resources/avalara_accounts.d.cts +4 -0
- package/lib/resources/avalara_accounts.d.ts +4 -0
- package/lib/resources/avalara_accounts.js +53 -0
- package/lib/resources/axerve_gateways.cjs +49 -0
- package/lib/resources/axerve_gateways.d.cts +4 -0
- package/lib/resources/axerve_gateways.d.ts +4 -0
- package/lib/resources/axerve_gateways.js +45 -0
- package/lib/resources/axerve_payments.cjs +52 -0
- package/lib/resources/axerve_payments.d.cts +4 -0
- package/lib/resources/axerve_payments.d.ts +4 -0
- package/lib/resources/axerve_payments.js +48 -0
- package/lib/resources/bing_geocoders.cjs +49 -0
- package/lib/resources/bing_geocoders.d.cts +4 -0
- package/lib/resources/bing_geocoders.d.ts +4 -0
- package/lib/resources/bing_geocoders.js +45 -0
- package/lib/resources/braintree_gateways.cjs +49 -0
- package/lib/resources/braintree_gateways.d.cts +4 -0
- package/lib/resources/braintree_gateways.d.ts +4 -0
- package/lib/resources/braintree_gateways.js +45 -0
- package/lib/resources/braintree_payments.cjs +49 -0
- package/lib/resources/braintree_payments.d.cts +4 -0
- package/lib/resources/braintree_payments.d.ts +4 -0
- package/lib/resources/braintree_payments.js +45 -0
- package/lib/resources/bundles.cjs +71 -0
- package/lib/resources/bundles.d.cts +4 -0
- package/lib/resources/bundles.d.ts +4 -0
- package/lib/resources/bundles.js +67 -0
- package/lib/resources/buy_x_pay_y_promotions.cjs +91 -0
- package/lib/resources/buy_x_pay_y_promotions.d.cts +4 -0
- package/lib/resources/buy_x_pay_y_promotions.d.ts +4 -0
- package/lib/resources/buy_x_pay_y_promotions.js +87 -0
- package/lib/resources/captures.cjs +71 -0
- package/lib/resources/captures.d.cts +4 -0
- package/lib/resources/captures.d.ts +4 -0
- package/lib/resources/captures.js +67 -0
- package/lib/resources/carrier_accounts.cjs +49 -0
- package/lib/resources/carrier_accounts.d.cts +4 -0
- package/lib/resources/carrier_accounts.d.ts +4 -0
- package/lib/resources/carrier_accounts.js +45 -0
- package/lib/resources/checkout_com_gateways.cjs +49 -0
- package/lib/resources/checkout_com_gateways.d.cts +4 -0
- package/lib/resources/checkout_com_gateways.d.ts +4 -0
- package/lib/resources/checkout_com_gateways.js +45 -0
- package/lib/resources/checkout_com_payments.cjs +55 -0
- package/lib/resources/checkout_com_payments.d.cts +4 -0
- package/lib/resources/checkout_com_payments.d.ts +4 -0
- package/lib/resources/checkout_com_payments.js +51 -0
- package/lib/resources/cleanups.cjs +48 -0
- package/lib/resources/cleanups.d.cts +4 -0
- package/lib/resources/cleanups.d.ts +4 -0
- package/lib/resources/cleanups.js +44 -0
- package/lib/resources/coupon_codes_promotion_rules.cjs +45 -0
- package/lib/resources/coupon_codes_promotion_rules.d.cts +4 -0
- package/lib/resources/coupon_codes_promotion_rules.d.ts +4 -0
- package/lib/resources/coupon_codes_promotion_rules.js +41 -0
- package/lib/resources/coupon_recipients.cjs +49 -0
- package/lib/resources/coupon_recipients.d.cts +4 -0
- package/lib/resources/coupon_recipients.d.ts +4 -0
- package/lib/resources/coupon_recipients.js +45 -0
- package/lib/resources/coupons.cjs +57 -0
- package/lib/resources/coupons.d.cts +4 -0
- package/lib/resources/coupons.d.ts +4 -0
- package/lib/resources/coupons.js +53 -0
- package/lib/resources/custom_promotion_rules.cjs +41 -0
- package/lib/resources/custom_promotion_rules.d.cts +4 -0
- package/lib/resources/custom_promotion_rules.d.ts +4 -0
- package/lib/resources/custom_promotion_rules.js +37 -0
- package/lib/resources/customer_addresses.cjs +53 -0
- package/lib/resources/customer_addresses.d.cts +4 -0
- package/lib/resources/customer_addresses.d.ts +4 -0
- package/lib/resources/customer_addresses.js +49 -0
- package/lib/resources/customer_groups.cjs +53 -0
- package/lib/resources/customer_groups.d.cts +4 -0
- package/lib/resources/customer_groups.d.ts +4 -0
- package/lib/resources/customer_groups.js +49 -0
- package/lib/resources/customer_password_resets.cjs +48 -0
- package/lib/resources/customer_password_resets.d.cts +4 -0
- package/lib/resources/customer_password_resets.d.ts +4 -0
- package/lib/resources/customer_password_resets.js +44 -0
- package/lib/resources/customer_payment_sources.cjs +49 -0
- package/lib/resources/customer_payment_sources.d.cts +4 -0
- package/lib/resources/customer_payment_sources.d.ts +4 -0
- package/lib/resources/customer_payment_sources.js +45 -0
- package/lib/resources/customer_subscriptions.cjs +49 -0
- package/lib/resources/customer_subscriptions.d.cts +4 -0
- package/lib/resources/customer_subscriptions.d.ts +4 -0
- package/lib/resources/customer_subscriptions.js +45 -0
- package/lib/resources/customers.cjs +81 -0
- package/lib/resources/customers.d.cts +4 -0
- package/lib/resources/customers.d.ts +4 -0
- package/lib/resources/customers.js +77 -0
- package/lib/resources/delivery_lead_times.cjs +53 -0
- package/lib/resources/delivery_lead_times.d.cts +4 -0
- package/lib/resources/delivery_lead_times.d.ts +4 -0
- package/lib/resources/delivery_lead_times.js +49 -0
- package/lib/resources/discount_engine_items.cjs +36 -0
- package/lib/resources/discount_engine_items.d.cts +4 -0
- package/lib/resources/discount_engine_items.d.ts +4 -0
- package/lib/resources/discount_engine_items.js +32 -0
- package/lib/resources/discount_engines.cjs +44 -0
- package/lib/resources/discount_engines.d.cts +4 -0
- package/lib/resources/discount_engines.d.ts +4 -0
- package/lib/resources/discount_engines.js +40 -0
- package/lib/resources/easypost_pickups.cjs +52 -0
- package/lib/resources/easypost_pickups.d.cts +4 -0
- package/lib/resources/easypost_pickups.d.ts +4 -0
- package/lib/resources/easypost_pickups.js +48 -0
- package/lib/resources/event_callbacks.cjs +32 -0
- package/lib/resources/event_callbacks.d.cts +4 -0
- package/lib/resources/event_callbacks.d.ts +4 -0
- package/lib/resources/event_callbacks.js +28 -0
- package/lib/resources/events.cjs +42 -0
- package/lib/resources/events.d.cts +4 -0
- package/lib/resources/events.d.ts +4 -0
- package/lib/resources/events.js +38 -0
- package/lib/resources/exports.cjs +48 -0
- package/lib/resources/exports.d.cts +4 -0
- package/lib/resources/exports.d.ts +4 -0
- package/lib/resources/exports.js +44 -0
- package/lib/resources/external_gateways.cjs +52 -0
- package/lib/resources/external_gateways.d.cts +4 -0
- package/lib/resources/external_gateways.d.ts +4 -0
- package/lib/resources/external_gateways.js +48 -0
- package/lib/resources/external_payments.cjs +53 -0
- package/lib/resources/external_payments.d.cts +4 -0
- package/lib/resources/external_payments.d.ts +4 -0
- package/lib/resources/external_payments.js +49 -0
- package/lib/resources/external_promotions.cjs +94 -0
- package/lib/resources/external_promotions.d.cts +4 -0
- package/lib/resources/external_promotions.d.ts +4 -0
- package/lib/resources/external_promotions.js +90 -0
- package/lib/resources/external_tax_calculators.cjs +56 -0
- package/lib/resources/external_tax_calculators.d.cts +4 -0
- package/lib/resources/external_tax_calculators.d.ts +4 -0
- package/lib/resources/external_tax_calculators.js +52 -0
- package/lib/resources/fixed_amount_promotions.cjs +91 -0
- package/lib/resources/fixed_amount_promotions.d.cts +4 -0
- package/lib/resources/fixed_amount_promotions.d.ts +4 -0
- package/lib/resources/fixed_amount_promotions.js +87 -0
- package/lib/resources/fixed_price_promotions.cjs +91 -0
- package/lib/resources/fixed_price_promotions.d.cts +4 -0
- package/lib/resources/fixed_price_promotions.d.ts +4 -0
- package/lib/resources/fixed_price_promotions.js +87 -0
- package/lib/resources/flex_promotions.cjs +67 -0
- package/lib/resources/flex_promotions.d.cts +4 -0
- package/lib/resources/flex_promotions.d.ts +4 -0
- package/lib/resources/flex_promotions.js +63 -0
- package/lib/resources/free_gift_promotions.cjs +91 -0
- package/lib/resources/free_gift_promotions.d.cts +4 -0
- package/lib/resources/free_gift_promotions.d.ts +4 -0
- package/lib/resources/free_gift_promotions.js +87 -0
- package/lib/resources/free_shipping_promotions.cjs +87 -0
- package/lib/resources/free_shipping_promotions.d.cts +4 -0
- package/lib/resources/free_shipping_promotions.d.ts +4 -0
- package/lib/resources/free_shipping_promotions.js +83 -0
- package/lib/resources/geocoders.cjs +40 -0
- package/lib/resources/geocoders.d.cts +4 -0
- package/lib/resources/geocoders.d.ts +4 -0
- package/lib/resources/geocoders.js +36 -0
- package/lib/resources/gift_card_recipients.cjs +49 -0
- package/lib/resources/gift_card_recipients.d.cts +4 -0
- package/lib/resources/gift_card_recipients.d.ts +4 -0
- package/lib/resources/gift_card_recipients.js +45 -0
- package/lib/resources/gift_cards.cjs +73 -0
- package/lib/resources/gift_cards.d.cts +4 -0
- package/lib/resources/gift_cards.d.ts +4 -0
- package/lib/resources/gift_cards.js +69 -0
- package/lib/resources/google_geocoders.cjs +49 -0
- package/lib/resources/google_geocoders.d.cts +4 -0
- package/lib/resources/google_geocoders.d.ts +4 -0
- package/lib/resources/google_geocoders.js +45 -0
- package/lib/resources/imports.cjs +44 -0
- package/lib/resources/imports.d.cts +4 -0
- package/lib/resources/imports.d.ts +4 -0
- package/lib/resources/imports.js +40 -0
- package/lib/resources/in_stock_subscriptions.cjs +63 -0
- package/lib/resources/in_stock_subscriptions.d.cts +4 -0
- package/lib/resources/in_stock_subscriptions.d.ts +4 -0
- package/lib/resources/in_stock_subscriptions.js +59 -0
- package/lib/resources/inventory_models.cjs +53 -0
- package/lib/resources/inventory_models.d.cts +4 -0
- package/lib/resources/inventory_models.d.ts +4 -0
- package/lib/resources/inventory_models.js +49 -0
- package/lib/resources/inventory_return_locations.cjs +49 -0
- package/lib/resources/inventory_return_locations.d.cts +4 -0
- package/lib/resources/inventory_return_locations.d.ts +4 -0
- package/lib/resources/inventory_return_locations.js +45 -0
- package/lib/resources/inventory_stock_locations.cjs +49 -0
- package/lib/resources/inventory_stock_locations.d.cts +4 -0
- package/lib/resources/inventory_stock_locations.d.ts +4 -0
- package/lib/resources/inventory_stock_locations.js +45 -0
- package/lib/resources/klarna_gateways.cjs +49 -0
- package/lib/resources/klarna_gateways.d.cts +4 -0
- package/lib/resources/klarna_gateways.d.ts +4 -0
- package/lib/resources/klarna_gateways.js +45 -0
- package/lib/resources/klarna_payments.cjs +52 -0
- package/lib/resources/klarna_payments.d.cts +4 -0
- package/lib/resources/klarna_payments.d.ts +4 -0
- package/lib/resources/klarna_payments.js +48 -0
- package/lib/resources/line_item_options.cjs +53 -0
- package/lib/resources/line_item_options.d.cts +4 -0
- package/lib/resources/line_item_options.d.ts +4 -0
- package/lib/resources/line_item_options.js +49 -0
- package/lib/resources/line_items.cjs +82 -0
- package/lib/resources/line_items.d.cts +4 -0
- package/lib/resources/line_items.d.ts +4 -0
- package/lib/resources/line_items.js +78 -0
- package/lib/resources/links.cjs +47 -0
- package/lib/resources/links.d.cts +4 -0
- package/lib/resources/links.d.ts +4 -0
- package/lib/resources/links.js +43 -0
- package/lib/resources/manual_gateways.cjs +45 -0
- package/lib/resources/manual_gateways.d.cts +4 -0
- package/lib/resources/manual_gateways.d.ts +4 -0
- package/lib/resources/manual_gateways.js +41 -0
- package/lib/resources/manual_tax_calculators.cjs +57 -0
- package/lib/resources/manual_tax_calculators.d.cts +4 -0
- package/lib/resources/manual_tax_calculators.d.ts +4 -0
- package/lib/resources/manual_tax_calculators.js +53 -0
- package/lib/resources/markets.cjs +91 -0
- package/lib/resources/markets.d.cts +4 -0
- package/lib/resources/markets.d.ts +4 -0
- package/lib/resources/markets.js +87 -0
- package/lib/resources/merchants.cjs +49 -0
- package/lib/resources/merchants.d.cts +4 -0
- package/lib/resources/merchants.d.ts +4 -0
- package/lib/resources/merchants.js +45 -0
- package/lib/resources/notifications.cjs +37 -0
- package/lib/resources/notifications.d.cts +4 -0
- package/lib/resources/notifications.d.ts +4 -0
- package/lib/resources/notifications.js +33 -0
- package/lib/resources/order_amount_promotion_rules.cjs +41 -0
- package/lib/resources/order_amount_promotion_rules.d.cts +4 -0
- package/lib/resources/order_amount_promotion_rules.d.ts +4 -0
- package/lib/resources/order_amount_promotion_rules.js +37 -0
- package/lib/resources/order_copies.cjs +53 -0
- package/lib/resources/order_copies.d.cts +4 -0
- package/lib/resources/order_copies.d.ts +4 -0
- package/lib/resources/order_copies.js +49 -0
- package/lib/resources/order_factories.cjs +40 -0
- package/lib/resources/order_factories.d.cts +4 -0
- package/lib/resources/order_factories.d.ts +4 -0
- package/lib/resources/order_factories.js +36 -0
- package/lib/resources/order_subscription_items.cjs +45 -0
- package/lib/resources/order_subscription_items.d.cts +4 -0
- package/lib/resources/order_subscription_items.d.ts +4 -0
- package/lib/resources/order_subscription_items.js +41 -0
- package/lib/resources/order_subscriptions.cjs +97 -0
- package/lib/resources/order_subscriptions.d.cts +4 -0
- package/lib/resources/order_subscriptions.d.ts +4 -0
- package/lib/resources/order_subscriptions.js +93 -0
- package/lib/resources/orders.cjs +266 -0
- package/lib/resources/orders.d.cts +4 -0
- package/lib/resources/orders.d.ts +4 -0
- package/lib/resources/orders.js +262 -0
- package/lib/resources/organizations.cjs +31 -0
- package/lib/resources/organizations.d.cts +4 -0
- package/lib/resources/organizations.d.ts +4 -0
- package/lib/resources/organizations.js +27 -0
- package/lib/resources/packages.cjs +53 -0
- package/lib/resources/packages.d.cts +4 -0
- package/lib/resources/packages.d.ts +4 -0
- package/lib/resources/packages.js +49 -0
- package/lib/resources/parcel_line_items.cjs +49 -0
- package/lib/resources/parcel_line_items.d.cts +4 -0
- package/lib/resources/parcel_line_items.d.ts +4 -0
- package/lib/resources/parcel_line_items.js +45 -0
- package/lib/resources/parcels.cjs +61 -0
- package/lib/resources/parcels.d.cts +4 -0
- package/lib/resources/parcels.d.ts +4 -0
- package/lib/resources/parcels.js +57 -0
- package/lib/resources/payment_gateways.cjs +36 -0
- package/lib/resources/payment_gateways.d.cts +4 -0
- package/lib/resources/payment_gateways.d.ts +4 -0
- package/lib/resources/payment_gateways.js +32 -0
- package/lib/resources/payment_methods.cjs +67 -0
- package/lib/resources/payment_methods.d.cts +4 -0
- package/lib/resources/payment_methods.d.ts +4 -0
- package/lib/resources/payment_methods.js +63 -0
- package/lib/resources/payment_options.cjs +45 -0
- package/lib/resources/payment_options.d.cts +4 -0
- package/lib/resources/payment_options.d.ts +4 -0
- package/lib/resources/payment_options.js +41 -0
- package/lib/resources/paypal_gateways.cjs +49 -0
- package/lib/resources/paypal_gateways.d.cts +4 -0
- package/lib/resources/paypal_gateways.d.ts +4 -0
- package/lib/resources/paypal_gateways.js +45 -0
- package/lib/resources/paypal_payments.cjs +49 -0
- package/lib/resources/paypal_payments.d.cts +4 -0
- package/lib/resources/paypal_payments.d.ts +4 -0
- package/lib/resources/paypal_payments.js +45 -0
- package/lib/resources/percentage_discount_promotions.cjs +91 -0
- package/lib/resources/percentage_discount_promotions.d.cts +4 -0
- package/lib/resources/percentage_discount_promotions.d.ts +4 -0
- package/lib/resources/percentage_discount_promotions.js +87 -0
- package/lib/resources/pickups.cjs +40 -0
- package/lib/resources/pickups.d.cts +4 -0
- package/lib/resources/pickups.d.ts +4 -0
- package/lib/resources/pickups.js +36 -0
- package/lib/resources/price_frequency_tiers.cjs +53 -0
- package/lib/resources/price_frequency_tiers.d.cts +4 -0
- package/lib/resources/price_frequency_tiers.d.ts +4 -0
- package/lib/resources/price_frequency_tiers.js +49 -0
- package/lib/resources/price_list_schedulers.cjs +59 -0
- package/lib/resources/price_list_schedulers.d.cts +4 -0
- package/lib/resources/price_list_schedulers.d.ts +4 -0
- package/lib/resources/price_list_schedulers.js +55 -0
- package/lib/resources/price_lists.cjs +53 -0
- package/lib/resources/price_lists.d.cts +4 -0
- package/lib/resources/price_lists.d.ts +4 -0
- package/lib/resources/price_lists.js +49 -0
- package/lib/resources/price_tiers.cjs +40 -0
- package/lib/resources/price_tiers.d.cts +4 -0
- package/lib/resources/price_tiers.d.ts +4 -0
- package/lib/resources/price_tiers.js +36 -0
- package/lib/resources/price_volume_tiers.cjs +53 -0
- package/lib/resources/price_volume_tiers.d.cts +4 -0
- package/lib/resources/price_volume_tiers.d.ts +4 -0
- package/lib/resources/price_volume_tiers.js +49 -0
- package/lib/resources/prices.cjs +77 -0
- package/lib/resources/prices.d.cts +4 -0
- package/lib/resources/prices.d.ts +4 -0
- package/lib/resources/prices.js +73 -0
- package/lib/resources/promotion_rules.cjs +32 -0
- package/lib/resources/promotion_rules.d.cts +4 -0
- package/lib/resources/promotion_rules.d.ts +4 -0
- package/lib/resources/promotion_rules.js +28 -0
- package/lib/resources/promotions.cjs +72 -0
- package/lib/resources/promotions.d.cts +4 -0
- package/lib/resources/promotions.d.ts +4 -0
- package/lib/resources/promotions.js +68 -0
- package/lib/resources/recurring_order_copies.cjs +53 -0
- package/lib/resources/recurring_order_copies.d.cts +4 -0
- package/lib/resources/recurring_order_copies.d.ts +4 -0
- package/lib/resources/recurring_order_copies.js +49 -0
- package/lib/resources/refunds.cjs +58 -0
- package/lib/resources/refunds.d.cts +4 -0
- package/lib/resources/refunds.d.ts +4 -0
- package/lib/resources/refunds.js +54 -0
- package/lib/resources/reserved_stocks.cjs +44 -0
- package/lib/resources/reserved_stocks.d.cts +4 -0
- package/lib/resources/reserved_stocks.d.ts +4 -0
- package/lib/resources/reserved_stocks.js +40 -0
- package/lib/resources/resource_errors.cjs +28 -0
- package/lib/resources/resource_errors.d.cts +4 -0
- package/lib/resources/resource_errors.d.ts +4 -0
- package/lib/resources/resource_errors.js +24 -0
- package/lib/resources/return_line_items.cjs +48 -0
- package/lib/resources/return_line_items.d.cts +4 -0
- package/lib/resources/return_line_items.d.ts +4 -0
- package/lib/resources/return_line_items.js +44 -0
- package/lib/resources/returns.cjs +122 -0
- package/lib/resources/returns.d.cts +4 -0
- package/lib/resources/returns.d.ts +4 -0
- package/lib/resources/returns.js +118 -0
- package/lib/resources/satispay_gateways.cjs +49 -0
- package/lib/resources/satispay_gateways.d.cts +4 -0
- package/lib/resources/satispay_gateways.d.ts +4 -0
- package/lib/resources/satispay_gateways.js +45 -0
- package/lib/resources/satispay_payments.cjs +52 -0
- package/lib/resources/satispay_payments.d.cts +4 -0
- package/lib/resources/satispay_payments.d.ts +4 -0
- package/lib/resources/satispay_payments.js +48 -0
- package/lib/resources/shipments.cjs +152 -0
- package/lib/resources/shipments.d.cts +4 -0
- package/lib/resources/shipments.d.ts +4 -0
- package/lib/resources/shipments.js +148 -0
- package/lib/resources/shipping_categories.cjs +49 -0
- package/lib/resources/shipping_categories.d.cts +4 -0
- package/lib/resources/shipping_categories.d.ts +4 -0
- package/lib/resources/shipping_categories.js +45 -0
- package/lib/resources/shipping_method_tiers.cjs +40 -0
- package/lib/resources/shipping_method_tiers.d.cts +4 -0
- package/lib/resources/shipping_method_tiers.d.ts +4 -0
- package/lib/resources/shipping_method_tiers.js +36 -0
- package/lib/resources/shipping_methods.cjs +86 -0
- package/lib/resources/shipping_methods.d.cts +4 -0
- package/lib/resources/shipping_methods.d.ts +4 -0
- package/lib/resources/shipping_methods.js +82 -0
- package/lib/resources/shipping_weight_tiers.cjs +49 -0
- package/lib/resources/shipping_weight_tiers.d.cts +4 -0
- package/lib/resources/shipping_weight_tiers.d.ts +4 -0
- package/lib/resources/shipping_weight_tiers.js +45 -0
- package/lib/resources/shipping_zones.cjs +45 -0
- package/lib/resources/shipping_zones.d.cts +4 -0
- package/lib/resources/shipping_zones.d.ts +4 -0
- package/lib/resources/shipping_zones.js +41 -0
- package/lib/resources/sku_list_items.cjs +49 -0
- package/lib/resources/sku_list_items.d.cts +4 -0
- package/lib/resources/sku_list_items.d.ts +4 -0
- package/lib/resources/sku_list_items.js +45 -0
- package/lib/resources/sku_list_promotion_rules.cjs +49 -0
- package/lib/resources/sku_list_promotion_rules.d.cts +4 -0
- package/lib/resources/sku_list_promotion_rules.d.ts +4 -0
- package/lib/resources/sku_list_promotion_rules.js +45 -0
- package/lib/resources/sku_lists.cjs +65 -0
- package/lib/resources/sku_lists.d.cts +4 -0
- package/lib/resources/sku_lists.d.ts +4 -0
- package/lib/resources/sku_lists.js +61 -0
- package/lib/resources/sku_options.cjs +57 -0
- package/lib/resources/sku_options.d.cts +4 -0
- package/lib/resources/sku_options.d.ts +4 -0
- package/lib/resources/sku_options.js +53 -0
- package/lib/resources/skus.cjs +101 -0
- package/lib/resources/skus.d.cts +4 -0
- package/lib/resources/skus.d.ts +4 -0
- package/lib/resources/skus.js +97 -0
- package/lib/resources/stock_items.cjs +64 -0
- package/lib/resources/stock_items.d.cts +4 -0
- package/lib/resources/stock_items.d.ts +4 -0
- package/lib/resources/stock_items.js +60 -0
- package/lib/resources/stock_line_items.cjs +70 -0
- package/lib/resources/stock_line_items.d.cts +4 -0
- package/lib/resources/stock_line_items.d.ts +4 -0
- package/lib/resources/stock_line_items.js +66 -0
- package/lib/resources/stock_locations.cjs +69 -0
- package/lib/resources/stock_locations.d.cts +4 -0
- package/lib/resources/stock_locations.d.ts +4 -0
- package/lib/resources/stock_locations.js +65 -0
- package/lib/resources/stock_reservations.cjs +68 -0
- package/lib/resources/stock_reservations.d.cts +4 -0
- package/lib/resources/stock_reservations.d.ts +4 -0
- package/lib/resources/stock_reservations.js +64 -0
- package/lib/resources/stock_transfers.cjs +91 -0
- package/lib/resources/stock_transfers.d.cts +4 -0
- package/lib/resources/stock_transfers.d.ts +4 -0
- package/lib/resources/stock_transfers.js +87 -0
- package/lib/resources/stores.cjs +65 -0
- package/lib/resources/stores.d.cts +4 -0
- package/lib/resources/stores.d.ts +4 -0
- package/lib/resources/stores.js +61 -0
- package/lib/resources/stripe_gateways.cjs +49 -0
- package/lib/resources/stripe_gateways.d.cts +4 -0
- package/lib/resources/stripe_gateways.d.ts +4 -0
- package/lib/resources/stripe_gateways.js +45 -0
- package/lib/resources/stripe_payments.cjs +55 -0
- package/lib/resources/stripe_payments.d.cts +4 -0
- package/lib/resources/stripe_payments.d.ts +4 -0
- package/lib/resources/stripe_payments.js +51 -0
- package/lib/resources/stripe_tax_accounts.cjs +57 -0
- package/lib/resources/stripe_tax_accounts.d.cts +4 -0
- package/lib/resources/stripe_tax_accounts.d.ts +4 -0
- package/lib/resources/stripe_tax_accounts.js +53 -0
- package/lib/resources/subscription_models.cjs +49 -0
- package/lib/resources/subscription_models.d.cts +4 -0
- package/lib/resources/subscription_models.d.ts +4 -0
- package/lib/resources/subscription_models.js +45 -0
- package/lib/resources/tags.cjs +37 -0
- package/lib/resources/tags.d.cts +4 -0
- package/lib/resources/tags.d.ts +4 -0
- package/lib/resources/tags.js +33 -0
- package/lib/resources/talon_one_accounts.cjs +53 -0
- package/lib/resources/talon_one_accounts.d.cts +4 -0
- package/lib/resources/talon_one_accounts.d.ts +4 -0
- package/lib/resources/talon_one_accounts.js +49 -0
- package/lib/resources/tax_calculators.cjs +44 -0
- package/lib/resources/tax_calculators.d.cts +4 -0
- package/lib/resources/tax_calculators.d.ts +4 -0
- package/lib/resources/tax_calculators.js +40 -0
- package/lib/resources/tax_categories.cjs +49 -0
- package/lib/resources/tax_categories.d.cts +4 -0
- package/lib/resources/tax_categories.d.ts +4 -0
- package/lib/resources/tax_categories.js +45 -0
- package/lib/resources/tax_rules.cjs +45 -0
- package/lib/resources/tax_rules.d.cts +4 -0
- package/lib/resources/tax_rules.d.ts +4 -0
- package/lib/resources/tax_rules.js +41 -0
- package/lib/resources/taxjar_accounts.cjs +57 -0
- package/lib/resources/taxjar_accounts.d.cts +4 -0
- package/lib/resources/taxjar_accounts.d.ts +4 -0
- package/lib/resources/taxjar_accounts.js +53 -0
- package/lib/resources/transactions.cjs +44 -0
- package/lib/resources/transactions.d.cts +4 -0
- package/lib/resources/transactions.d.ts +4 -0
- package/lib/resources/transactions.js +40 -0
- package/lib/resources/versions.cjs +28 -0
- package/lib/resources/versions.d.cts +4 -0
- package/lib/resources/versions.d.ts +4 -0
- package/lib/resources/versions.js +24 -0
- package/lib/resources/vertex_accounts.cjs +56 -0
- package/lib/resources/vertex_accounts.d.cts +4 -0
- package/lib/resources/vertex_accounts.d.ts +4 -0
- package/lib/resources/vertex_accounts.js +52 -0
- package/lib/resources/voids.cjs +54 -0
- package/lib/resources/voids.d.cts +4 -0
- package/lib/resources/voids.d.ts +4 -0
- package/lib/resources/voids.js +50 -0
- package/lib/resources/webhooks.cjs +54 -0
- package/lib/resources/webhooks.d.cts +4 -0
- package/lib/resources/webhooks.d.ts +4 -0
- package/lib/resources/webhooks.js +50 -0
- package/lib/resources/wire_transfers.cjs +45 -0
- package/lib/resources/wire_transfers.d.cts +4 -0
- package/lib/resources/wire_transfers.d.ts +4 -0
- package/lib/resources/wire_transfers.js +41 -0
- package/lib/static.cjs +39 -0
- package/lib/static.d.cts +19 -0
- package/lib/static.d.ts +19 -0
- package/lib/static.js +33 -0
- package/lib/types.cjs +2 -0
- package/lib/types.d.cts +7 -0
- package/lib/types.d.ts +7 -0
- package/lib/types.js +1 -0
- package/lib/util.cjs +37 -0
- package/lib/util.d.cts +13 -0
- package/lib/util.d.ts +13 -0
- package/lib/util.js +32 -0
- package/package.json +12 -10
@@ -0,0 +1,167 @@
|
|
1
|
+
import { x as ResourcesInitConfig, hy as Addresses, hz as Adjustments, hA as AdyenGateways, hB as AdyenPayments, hC as Applications, hD as Attachments, hE as Authorizations, hF as AvalaraAccounts, hG as AxerveGateways, hH as AxervePayments, hI as BingGeocoders, hJ as BraintreeGateways, hK as BraintreePayments, hL as Bundles, hM as BuyXPayYPromotions, hN as Captures, hO as CarrierAccounts, hP as CheckoutComGateways, hQ as CheckoutComPayments, hR as Cleanups, hS as CouponCodesPromotionRules, hT as CouponRecipients, hU as Coupons, hV as CustomPromotionRules, hW as CustomerAddresses, hX as CustomerGroups, hY as CustomerPasswordResets, hZ as CustomerPaymentSources, h_ as CustomerSubscriptions, h$ as Customers, i0 as DeliveryLeadTimes, i1 as DiscountEngineItems, i2 as DiscountEngines, i3 as EasypostPickups, i4 as EventCallbacks, i5 as Events, i6 as Exports, i7 as ExternalGateways, i8 as ExternalPayments, i9 as ExternalPromotions, ia as ExternalTaxCalculators, ib as FixedAmountPromotions, ic as FixedPricePromotions, id as FlexPromotions, ie as FreeGiftPromotions, ig as FreeShippingPromotions, ih as Geocoders, ii as GiftCardRecipients, ij as GiftCards, ik as GoogleGeocoders, il as Imports, im as InStockSubscriptions, io as InventoryModels, ip as InventoryReturnLocations, iq as InventoryStockLocations, ir as KlarnaGateways, is as KlarnaPayments, it as LineItemOptions, iu as LineItems, iv as Links, iw as ManualGateways, ix as ManualTaxCalculators, iy as Markets, iz as Merchants, iA as Notifications, iB as OrderAmountPromotionRules, iC as OrderCopies, iD as OrderFactories, iE as OrderSubscriptionItems, iF as OrderSubscriptions, iG as Orders, iH as Organizations, iI as Packages, iJ as ParcelLineItems, iK as Parcels, iL as PaymentGateways, iM as PaymentMethods, iN as PaymentOptions, iO as PaypalGateways, iP as PaypalPayments, iQ as PercentageDiscountPromotions, iR as Pickups, iS as PriceFrequencyTiers, iT as PriceListSchedulers, iU as PriceLists, iV as PriceTiers, iW as PriceVolumeTiers, iX as Prices, iY as PromotionRules, iZ as Promotions, i_ as RecurringOrderCopies, i$ as Refunds, j0 as ReservedStocks, j1 as ResourceErrors, j2 as ReturnLineItems, j3 as Returns, j4 as SatispayGateways, j5 as SatispayPayments, j6 as Shipments, j7 as ShippingCategories, j8 as ShippingMethodTiers, j9 as ShippingMethods, ja as ShippingWeightTiers, jb as ShippingZones, jc as SkuListItems, jd as SkuListPromotionRules, je as SkuLists, jf as SkuOptions, jg as Skus, jh as StockItems, ji as StockLineItems, jj as StockLocations, jk as StockReservations, jl as StockTransfers, jm as Stores, jn as StripeGateways, jo as StripePayments, jp as StripeTaxAccounts, jq as SubscriptionModels, jr as Tags, js as TalonOneAccounts, jt as TaxCalculators, ju as TaxCategories, jv as TaxRules, jw as TaxjarAccounts, jx as Transactions, jy as Versions, jz as VertexAccounts, jA as Voids, jB as Webhooks, jC as WireTransfers, hf as ResourceTypeLock } from './api-BYcswOJ0.cjs';
|
2
|
+
import { ApiError } from './error.cjs';
|
3
|
+
import { b as RequestInterceptor, c as ErrorInterceptor, d as ResponseInterceptor, I as InterceptorType, e as RawResponseReader } from './interceptor-5MISI1yn.cjs';
|
4
|
+
import './client.cjs';
|
5
|
+
import './types.cjs';
|
6
|
+
|
7
|
+
declare const OPEN_API_SCHEMA_VERSION = "7.8.0";
|
8
|
+
|
9
|
+
type SdkConfig = {};
|
10
|
+
type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
|
11
|
+
type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
|
12
|
+
declare class CommerceLayerClient {
|
13
|
+
#private;
|
14
|
+
readonly openApiSchemaVersion = "7.8.0";
|
15
|
+
constructor(config: CommerceLayerInitConfig);
|
16
|
+
get addresses(): Addresses;
|
17
|
+
get adjustments(): Adjustments;
|
18
|
+
get adyen_gateways(): AdyenGateways;
|
19
|
+
get adyen_payments(): AdyenPayments;
|
20
|
+
get application(): Applications;
|
21
|
+
get attachments(): Attachments;
|
22
|
+
get authorizations(): Authorizations;
|
23
|
+
get avalara_accounts(): AvalaraAccounts;
|
24
|
+
get axerve_gateways(): AxerveGateways;
|
25
|
+
get axerve_payments(): AxervePayments;
|
26
|
+
get bing_geocoders(): BingGeocoders;
|
27
|
+
get braintree_gateways(): BraintreeGateways;
|
28
|
+
get braintree_payments(): BraintreePayments;
|
29
|
+
get bundles(): Bundles;
|
30
|
+
get buy_x_pay_y_promotions(): BuyXPayYPromotions;
|
31
|
+
get captures(): Captures;
|
32
|
+
get carrier_accounts(): CarrierAccounts;
|
33
|
+
get checkout_com_gateways(): CheckoutComGateways;
|
34
|
+
get checkout_com_payments(): CheckoutComPayments;
|
35
|
+
get cleanups(): Cleanups;
|
36
|
+
get coupon_codes_promotion_rules(): CouponCodesPromotionRules;
|
37
|
+
get coupon_recipients(): CouponRecipients;
|
38
|
+
get coupons(): Coupons;
|
39
|
+
get custom_promotion_rules(): CustomPromotionRules;
|
40
|
+
get customer_addresses(): CustomerAddresses;
|
41
|
+
get customer_groups(): CustomerGroups;
|
42
|
+
get customer_password_resets(): CustomerPasswordResets;
|
43
|
+
get customer_payment_sources(): CustomerPaymentSources;
|
44
|
+
get customer_subscriptions(): CustomerSubscriptions;
|
45
|
+
get customers(): Customers;
|
46
|
+
get delivery_lead_times(): DeliveryLeadTimes;
|
47
|
+
get discount_engine_items(): DiscountEngineItems;
|
48
|
+
get discount_engines(): DiscountEngines;
|
49
|
+
get easypost_pickups(): EasypostPickups;
|
50
|
+
get event_callbacks(): EventCallbacks;
|
51
|
+
get events(): Events;
|
52
|
+
get exports(): Exports;
|
53
|
+
get external_gateways(): ExternalGateways;
|
54
|
+
get external_payments(): ExternalPayments;
|
55
|
+
get external_promotions(): ExternalPromotions;
|
56
|
+
get external_tax_calculators(): ExternalTaxCalculators;
|
57
|
+
get fixed_amount_promotions(): FixedAmountPromotions;
|
58
|
+
get fixed_price_promotions(): FixedPricePromotions;
|
59
|
+
get flex_promotions(): FlexPromotions;
|
60
|
+
get free_gift_promotions(): FreeGiftPromotions;
|
61
|
+
get free_shipping_promotions(): FreeShippingPromotions;
|
62
|
+
get geocoders(): Geocoders;
|
63
|
+
get gift_card_recipients(): GiftCardRecipients;
|
64
|
+
get gift_cards(): GiftCards;
|
65
|
+
get google_geocoders(): GoogleGeocoders;
|
66
|
+
get imports(): Imports;
|
67
|
+
get in_stock_subscriptions(): InStockSubscriptions;
|
68
|
+
get inventory_models(): InventoryModels;
|
69
|
+
get inventory_return_locations(): InventoryReturnLocations;
|
70
|
+
get inventory_stock_locations(): InventoryStockLocations;
|
71
|
+
get klarna_gateways(): KlarnaGateways;
|
72
|
+
get klarna_payments(): KlarnaPayments;
|
73
|
+
get line_item_options(): LineItemOptions;
|
74
|
+
get line_items(): LineItems;
|
75
|
+
get links(): Links;
|
76
|
+
get manual_gateways(): ManualGateways;
|
77
|
+
get manual_tax_calculators(): ManualTaxCalculators;
|
78
|
+
get markets(): Markets;
|
79
|
+
get merchants(): Merchants;
|
80
|
+
get notifications(): Notifications;
|
81
|
+
get order_amount_promotion_rules(): OrderAmountPromotionRules;
|
82
|
+
get order_copies(): OrderCopies;
|
83
|
+
get order_factories(): OrderFactories;
|
84
|
+
get order_subscription_items(): OrderSubscriptionItems;
|
85
|
+
get order_subscriptions(): OrderSubscriptions;
|
86
|
+
get orders(): Orders;
|
87
|
+
get organization(): Organizations;
|
88
|
+
get packages(): Packages;
|
89
|
+
get parcel_line_items(): ParcelLineItems;
|
90
|
+
get parcels(): Parcels;
|
91
|
+
get payment_gateways(): PaymentGateways;
|
92
|
+
get payment_methods(): PaymentMethods;
|
93
|
+
get payment_options(): PaymentOptions;
|
94
|
+
get paypal_gateways(): PaypalGateways;
|
95
|
+
get paypal_payments(): PaypalPayments;
|
96
|
+
get percentage_discount_promotions(): PercentageDiscountPromotions;
|
97
|
+
get pickups(): Pickups;
|
98
|
+
get price_frequency_tiers(): PriceFrequencyTiers;
|
99
|
+
get price_list_schedulers(): PriceListSchedulers;
|
100
|
+
get price_lists(): PriceLists;
|
101
|
+
get price_tiers(): PriceTiers;
|
102
|
+
get price_volume_tiers(): PriceVolumeTiers;
|
103
|
+
get prices(): Prices;
|
104
|
+
get promotion_rules(): PromotionRules;
|
105
|
+
get promotions(): Promotions;
|
106
|
+
get recurring_order_copies(): RecurringOrderCopies;
|
107
|
+
get refunds(): Refunds;
|
108
|
+
get reserved_stocks(): ReservedStocks;
|
109
|
+
get resource_errors(): ResourceErrors;
|
110
|
+
get return_line_items(): ReturnLineItems;
|
111
|
+
get returns(): Returns;
|
112
|
+
get satispay_gateways(): SatispayGateways;
|
113
|
+
get satispay_payments(): SatispayPayments;
|
114
|
+
get shipments(): Shipments;
|
115
|
+
get shipping_categories(): ShippingCategories;
|
116
|
+
get shipping_method_tiers(): ShippingMethodTiers;
|
117
|
+
get shipping_methods(): ShippingMethods;
|
118
|
+
get shipping_weight_tiers(): ShippingWeightTiers;
|
119
|
+
get shipping_zones(): ShippingZones;
|
120
|
+
get sku_list_items(): SkuListItems;
|
121
|
+
get sku_list_promotion_rules(): SkuListPromotionRules;
|
122
|
+
get sku_lists(): SkuLists;
|
123
|
+
get sku_options(): SkuOptions;
|
124
|
+
get skus(): Skus;
|
125
|
+
get stock_items(): StockItems;
|
126
|
+
get stock_line_items(): StockLineItems;
|
127
|
+
get stock_locations(): StockLocations;
|
128
|
+
get stock_reservations(): StockReservations;
|
129
|
+
get stock_transfers(): StockTransfers;
|
130
|
+
get stores(): Stores;
|
131
|
+
get stripe_gateways(): StripeGateways;
|
132
|
+
get stripe_payments(): StripePayments;
|
133
|
+
get stripe_tax_accounts(): StripeTaxAccounts;
|
134
|
+
get subscription_models(): SubscriptionModels;
|
135
|
+
get tags(): Tags;
|
136
|
+
get talon_one_accounts(): TalonOneAccounts;
|
137
|
+
get tax_calculators(): TaxCalculators;
|
138
|
+
get tax_categories(): TaxCategories;
|
139
|
+
get tax_rules(): TaxRules;
|
140
|
+
get taxjar_accounts(): TaxjarAccounts;
|
141
|
+
get transactions(): Transactions;
|
142
|
+
get versions(): Versions;
|
143
|
+
get vertex_accounts(): VertexAccounts;
|
144
|
+
get voids(): Voids;
|
145
|
+
get webhooks(): Webhooks;
|
146
|
+
get wire_transfers(): WireTransfers;
|
147
|
+
get currentOrganization(): string;
|
148
|
+
get currentAccessToken(): string;
|
149
|
+
private get interceptors();
|
150
|
+
private localConfig;
|
151
|
+
config(config: CommerceLayerConfig): this;
|
152
|
+
resources(): readonly string[];
|
153
|
+
singletons(): readonly string[];
|
154
|
+
isSingleton(resource: ResourceTypeLock): boolean;
|
155
|
+
isApiError(error: any): error is ApiError;
|
156
|
+
addRequestInterceptor(onSuccess?: RequestInterceptor, onFailure?: ErrorInterceptor): number;
|
157
|
+
addResponseInterceptor(onSuccess?: ResponseInterceptor, onFailure?: ErrorInterceptor): number;
|
158
|
+
removeInterceptor(type: InterceptorType, id?: number): void;
|
159
|
+
removeInterceptors(): void;
|
160
|
+
addRawResponseReader(options?: {
|
161
|
+
headers: boolean;
|
162
|
+
}): RawResponseReader;
|
163
|
+
removeRawResponseReader(): void;
|
164
|
+
}
|
165
|
+
declare const CommerceLayer: (config: CommerceLayerInitConfig) => CommerceLayerClient;
|
166
|
+
|
167
|
+
export { CommerceLayer, CommerceLayerClient, type CommerceLayerConfig, type CommerceLayerInitConfig, OPEN_API_SCHEMA_VERSION, CommerceLayer as default };
|
@@ -0,0 +1,167 @@
|
|
1
|
+
import { x as ResourcesInitConfig, hy as Addresses, hz as Adjustments, hA as AdyenGateways, hB as AdyenPayments, hC as Applications, hD as Attachments, hE as Authorizations, hF as AvalaraAccounts, hG as AxerveGateways, hH as AxervePayments, hI as BingGeocoders, hJ as BraintreeGateways, hK as BraintreePayments, hL as Bundles, hM as BuyXPayYPromotions, hN as Captures, hO as CarrierAccounts, hP as CheckoutComGateways, hQ as CheckoutComPayments, hR as Cleanups, hS as CouponCodesPromotionRules, hT as CouponRecipients, hU as Coupons, hV as CustomPromotionRules, hW as CustomerAddresses, hX as CustomerGroups, hY as CustomerPasswordResets, hZ as CustomerPaymentSources, h_ as CustomerSubscriptions, h$ as Customers, i0 as DeliveryLeadTimes, i1 as DiscountEngineItems, i2 as DiscountEngines, i3 as EasypostPickups, i4 as EventCallbacks, i5 as Events, i6 as Exports, i7 as ExternalGateways, i8 as ExternalPayments, i9 as ExternalPromotions, ia as ExternalTaxCalculators, ib as FixedAmountPromotions, ic as FixedPricePromotions, id as FlexPromotions, ie as FreeGiftPromotions, ig as FreeShippingPromotions, ih as Geocoders, ii as GiftCardRecipients, ij as GiftCards, ik as GoogleGeocoders, il as Imports, im as InStockSubscriptions, io as InventoryModels, ip as InventoryReturnLocations, iq as InventoryStockLocations, ir as KlarnaGateways, is as KlarnaPayments, it as LineItemOptions, iu as LineItems, iv as Links, iw as ManualGateways, ix as ManualTaxCalculators, iy as Markets, iz as Merchants, iA as Notifications, iB as OrderAmountPromotionRules, iC as OrderCopies, iD as OrderFactories, iE as OrderSubscriptionItems, iF as OrderSubscriptions, iG as Orders, iH as Organizations, iI as Packages, iJ as ParcelLineItems, iK as Parcels, iL as PaymentGateways, iM as PaymentMethods, iN as PaymentOptions, iO as PaypalGateways, iP as PaypalPayments, iQ as PercentageDiscountPromotions, iR as Pickups, iS as PriceFrequencyTiers, iT as PriceListSchedulers, iU as PriceLists, iV as PriceTiers, iW as PriceVolumeTiers, iX as Prices, iY as PromotionRules, iZ as Promotions, i_ as RecurringOrderCopies, i$ as Refunds, j0 as ReservedStocks, j1 as ResourceErrors, j2 as ReturnLineItems, j3 as Returns, j4 as SatispayGateways, j5 as SatispayPayments, j6 as Shipments, j7 as ShippingCategories, j8 as ShippingMethodTiers, j9 as ShippingMethods, ja as ShippingWeightTiers, jb as ShippingZones, jc as SkuListItems, jd as SkuListPromotionRules, je as SkuLists, jf as SkuOptions, jg as Skus, jh as StockItems, ji as StockLineItems, jj as StockLocations, jk as StockReservations, jl as StockTransfers, jm as Stores, jn as StripeGateways, jo as StripePayments, jp as StripeTaxAccounts, jq as SubscriptionModels, jr as Tags, js as TalonOneAccounts, jt as TaxCalculators, ju as TaxCategories, jv as TaxRules, jw as TaxjarAccounts, jx as Transactions, jy as Versions, jz as VertexAccounts, jA as Voids, jB as Webhooks, jC as WireTransfers, hf as ResourceTypeLock } from './api-Cknm0QL_.js';
|
2
|
+
import { ApiError } from './error.js';
|
3
|
+
import { b as RequestInterceptor, c as ErrorInterceptor, d as ResponseInterceptor, I as InterceptorType, e as RawResponseReader } from './interceptor-5MISI1yn.js';
|
4
|
+
import './client.js';
|
5
|
+
import './types.js';
|
6
|
+
|
7
|
+
declare const OPEN_API_SCHEMA_VERSION = "7.8.0";
|
8
|
+
|
9
|
+
type SdkConfig = {};
|
10
|
+
type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
|
11
|
+
type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
|
12
|
+
declare class CommerceLayerClient {
|
13
|
+
#private;
|
14
|
+
readonly openApiSchemaVersion = "7.8.0";
|
15
|
+
constructor(config: CommerceLayerInitConfig);
|
16
|
+
get addresses(): Addresses;
|
17
|
+
get adjustments(): Adjustments;
|
18
|
+
get adyen_gateways(): AdyenGateways;
|
19
|
+
get adyen_payments(): AdyenPayments;
|
20
|
+
get application(): Applications;
|
21
|
+
get attachments(): Attachments;
|
22
|
+
get authorizations(): Authorizations;
|
23
|
+
get avalara_accounts(): AvalaraAccounts;
|
24
|
+
get axerve_gateways(): AxerveGateways;
|
25
|
+
get axerve_payments(): AxervePayments;
|
26
|
+
get bing_geocoders(): BingGeocoders;
|
27
|
+
get braintree_gateways(): BraintreeGateways;
|
28
|
+
get braintree_payments(): BraintreePayments;
|
29
|
+
get bundles(): Bundles;
|
30
|
+
get buy_x_pay_y_promotions(): BuyXPayYPromotions;
|
31
|
+
get captures(): Captures;
|
32
|
+
get carrier_accounts(): CarrierAccounts;
|
33
|
+
get checkout_com_gateways(): CheckoutComGateways;
|
34
|
+
get checkout_com_payments(): CheckoutComPayments;
|
35
|
+
get cleanups(): Cleanups;
|
36
|
+
get coupon_codes_promotion_rules(): CouponCodesPromotionRules;
|
37
|
+
get coupon_recipients(): CouponRecipients;
|
38
|
+
get coupons(): Coupons;
|
39
|
+
get custom_promotion_rules(): CustomPromotionRules;
|
40
|
+
get customer_addresses(): CustomerAddresses;
|
41
|
+
get customer_groups(): CustomerGroups;
|
42
|
+
get customer_password_resets(): CustomerPasswordResets;
|
43
|
+
get customer_payment_sources(): CustomerPaymentSources;
|
44
|
+
get customer_subscriptions(): CustomerSubscriptions;
|
45
|
+
get customers(): Customers;
|
46
|
+
get delivery_lead_times(): DeliveryLeadTimes;
|
47
|
+
get discount_engine_items(): DiscountEngineItems;
|
48
|
+
get discount_engines(): DiscountEngines;
|
49
|
+
get easypost_pickups(): EasypostPickups;
|
50
|
+
get event_callbacks(): EventCallbacks;
|
51
|
+
get events(): Events;
|
52
|
+
get exports(): Exports;
|
53
|
+
get external_gateways(): ExternalGateways;
|
54
|
+
get external_payments(): ExternalPayments;
|
55
|
+
get external_promotions(): ExternalPromotions;
|
56
|
+
get external_tax_calculators(): ExternalTaxCalculators;
|
57
|
+
get fixed_amount_promotions(): FixedAmountPromotions;
|
58
|
+
get fixed_price_promotions(): FixedPricePromotions;
|
59
|
+
get flex_promotions(): FlexPromotions;
|
60
|
+
get free_gift_promotions(): FreeGiftPromotions;
|
61
|
+
get free_shipping_promotions(): FreeShippingPromotions;
|
62
|
+
get geocoders(): Geocoders;
|
63
|
+
get gift_card_recipients(): GiftCardRecipients;
|
64
|
+
get gift_cards(): GiftCards;
|
65
|
+
get google_geocoders(): GoogleGeocoders;
|
66
|
+
get imports(): Imports;
|
67
|
+
get in_stock_subscriptions(): InStockSubscriptions;
|
68
|
+
get inventory_models(): InventoryModels;
|
69
|
+
get inventory_return_locations(): InventoryReturnLocations;
|
70
|
+
get inventory_stock_locations(): InventoryStockLocations;
|
71
|
+
get klarna_gateways(): KlarnaGateways;
|
72
|
+
get klarna_payments(): KlarnaPayments;
|
73
|
+
get line_item_options(): LineItemOptions;
|
74
|
+
get line_items(): LineItems;
|
75
|
+
get links(): Links;
|
76
|
+
get manual_gateways(): ManualGateways;
|
77
|
+
get manual_tax_calculators(): ManualTaxCalculators;
|
78
|
+
get markets(): Markets;
|
79
|
+
get merchants(): Merchants;
|
80
|
+
get notifications(): Notifications;
|
81
|
+
get order_amount_promotion_rules(): OrderAmountPromotionRules;
|
82
|
+
get order_copies(): OrderCopies;
|
83
|
+
get order_factories(): OrderFactories;
|
84
|
+
get order_subscription_items(): OrderSubscriptionItems;
|
85
|
+
get order_subscriptions(): OrderSubscriptions;
|
86
|
+
get orders(): Orders;
|
87
|
+
get organization(): Organizations;
|
88
|
+
get packages(): Packages;
|
89
|
+
get parcel_line_items(): ParcelLineItems;
|
90
|
+
get parcels(): Parcels;
|
91
|
+
get payment_gateways(): PaymentGateways;
|
92
|
+
get payment_methods(): PaymentMethods;
|
93
|
+
get payment_options(): PaymentOptions;
|
94
|
+
get paypal_gateways(): PaypalGateways;
|
95
|
+
get paypal_payments(): PaypalPayments;
|
96
|
+
get percentage_discount_promotions(): PercentageDiscountPromotions;
|
97
|
+
get pickups(): Pickups;
|
98
|
+
get price_frequency_tiers(): PriceFrequencyTiers;
|
99
|
+
get price_list_schedulers(): PriceListSchedulers;
|
100
|
+
get price_lists(): PriceLists;
|
101
|
+
get price_tiers(): PriceTiers;
|
102
|
+
get price_volume_tiers(): PriceVolumeTiers;
|
103
|
+
get prices(): Prices;
|
104
|
+
get promotion_rules(): PromotionRules;
|
105
|
+
get promotions(): Promotions;
|
106
|
+
get recurring_order_copies(): RecurringOrderCopies;
|
107
|
+
get refunds(): Refunds;
|
108
|
+
get reserved_stocks(): ReservedStocks;
|
109
|
+
get resource_errors(): ResourceErrors;
|
110
|
+
get return_line_items(): ReturnLineItems;
|
111
|
+
get returns(): Returns;
|
112
|
+
get satispay_gateways(): SatispayGateways;
|
113
|
+
get satispay_payments(): SatispayPayments;
|
114
|
+
get shipments(): Shipments;
|
115
|
+
get shipping_categories(): ShippingCategories;
|
116
|
+
get shipping_method_tiers(): ShippingMethodTiers;
|
117
|
+
get shipping_methods(): ShippingMethods;
|
118
|
+
get shipping_weight_tiers(): ShippingWeightTiers;
|
119
|
+
get shipping_zones(): ShippingZones;
|
120
|
+
get sku_list_items(): SkuListItems;
|
121
|
+
get sku_list_promotion_rules(): SkuListPromotionRules;
|
122
|
+
get sku_lists(): SkuLists;
|
123
|
+
get sku_options(): SkuOptions;
|
124
|
+
get skus(): Skus;
|
125
|
+
get stock_items(): StockItems;
|
126
|
+
get stock_line_items(): StockLineItems;
|
127
|
+
get stock_locations(): StockLocations;
|
128
|
+
get stock_reservations(): StockReservations;
|
129
|
+
get stock_transfers(): StockTransfers;
|
130
|
+
get stores(): Stores;
|
131
|
+
get stripe_gateways(): StripeGateways;
|
132
|
+
get stripe_payments(): StripePayments;
|
133
|
+
get stripe_tax_accounts(): StripeTaxAccounts;
|
134
|
+
get subscription_models(): SubscriptionModels;
|
135
|
+
get tags(): Tags;
|
136
|
+
get talon_one_accounts(): TalonOneAccounts;
|
137
|
+
get tax_calculators(): TaxCalculators;
|
138
|
+
get tax_categories(): TaxCategories;
|
139
|
+
get tax_rules(): TaxRules;
|
140
|
+
get taxjar_accounts(): TaxjarAccounts;
|
141
|
+
get transactions(): Transactions;
|
142
|
+
get versions(): Versions;
|
143
|
+
get vertex_accounts(): VertexAccounts;
|
144
|
+
get voids(): Voids;
|
145
|
+
get webhooks(): Webhooks;
|
146
|
+
get wire_transfers(): WireTransfers;
|
147
|
+
get currentOrganization(): string;
|
148
|
+
get currentAccessToken(): string;
|
149
|
+
private get interceptors();
|
150
|
+
private localConfig;
|
151
|
+
config(config: CommerceLayerConfig): this;
|
152
|
+
resources(): readonly string[];
|
153
|
+
singletons(): readonly string[];
|
154
|
+
isSingleton(resource: ResourceTypeLock): boolean;
|
155
|
+
isApiError(error: any): error is ApiError;
|
156
|
+
addRequestInterceptor(onSuccess?: RequestInterceptor, onFailure?: ErrorInterceptor): number;
|
157
|
+
addResponseInterceptor(onSuccess?: ResponseInterceptor, onFailure?: ErrorInterceptor): number;
|
158
|
+
removeInterceptor(type: InterceptorType, id?: number): void;
|
159
|
+
removeInterceptors(): void;
|
160
|
+
addRawResponseReader(options?: {
|
161
|
+
headers: boolean;
|
162
|
+
}): RawResponseReader;
|
163
|
+
removeRawResponseReader(): void;
|
164
|
+
}
|
165
|
+
declare const CommerceLayer: (config: CommerceLayerInitConfig) => CommerceLayerClient;
|
166
|
+
|
167
|
+
export { CommerceLayer, CommerceLayerClient, type CommerceLayerConfig, type CommerceLayerInitConfig, OPEN_API_SCHEMA_VERSION, CommerceLayer as default };
|