@commercelayer/sdk 7.0.0-beta.11 → 7.0.0-beta.13
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/README.md +48 -35
- package/lib/{api-BYcswOJ0.d.cts → api-Bq9emZm-.d.cts} +553 -43
- package/lib/{api-Cknm0QL_.d.ts → api-C5qyxFpD.d.ts} +553 -43
- package/lib/api.cjs +134 -132
- package/lib/api.d.cts +2 -2
- package/lib/api.d.ts +2 -2
- package/lib/api.js +134 -132
- package/lib/chunk-AQ5VUG5P.js +12 -0
- package/lib/chunk-JE77HYXB.cjs +17 -0
- package/lib/client.cjs +36 -39
- package/lib/client.d.cts +1 -1
- package/lib/client.d.ts +1 -1
- package/lib/client.js +7 -10
- package/lib/commercelayer.cjs +30 -705
- package/lib/commercelayer.d.cts +9 -137
- package/lib/commercelayer.d.ts +9 -137
- package/lib/commercelayer.js +29 -684
- package/lib/common.cjs +1 -0
- package/lib/common.d.cts +2 -2
- package/lib/common.d.ts +2 -2
- package/lib/common.js +1 -0
- package/lib/config.cjs +2 -0
- package/lib/config.d.cts +1 -1
- package/lib/config.d.ts +1 -1
- package/lib/config.js +2 -0
- package/lib/debug.cjs +2 -0
- package/lib/debug.js +2 -0
- package/lib/error.cjs +9 -12
- package/lib/error.js +1 -4
- package/lib/fetch.cjs +14 -23
- package/lib/fetch.d.cts +1 -1
- package/lib/fetch.d.ts +1 -1
- package/lib/fetch.js +1 -10
- package/lib/index.cjs +4 -3
- package/lib/index.d.cts +2 -3
- package/lib/index.d.ts +2 -3
- package/lib/index.js +2 -1
- package/lib/{interceptor-5MISI1yn.d.cts → interceptor-D65i25Y7.d.cts} +1 -1
- package/lib/{interceptor-5MISI1yn.d.ts → interceptor-D65i25Y7.d.ts} +1 -1
- package/lib/interceptor.d.cts +1 -1
- package/lib/interceptor.d.ts +1 -1
- package/lib/jsonapi.cjs +1 -0
- package/lib/jsonapi.d.cts +2 -2
- package/lib/jsonapi.d.ts +2 -2
- package/lib/jsonapi.js +1 -0
- package/lib/model.d.cts +2 -2
- package/lib/model.d.ts +2 -2
- package/lib/query.cjs +1 -0
- package/lib/query.d.cts +2 -2
- package/lib/query.d.ts +2 -2
- package/lib/query.js +1 -0
- package/lib/resource.cjs +25 -34
- package/lib/resource.d.cts +2 -2
- package/lib/resource.d.ts +2 -2
- package/lib/resource.js +10 -19
- package/lib/resources/addresses.cjs +10 -5
- package/lib/resources/addresses.d.cts +2 -2
- package/lib/resources/addresses.d.ts +2 -2
- package/lib/resources/addresses.js +9 -4
- package/lib/resources/adjustments.cjs +4 -5
- package/lib/resources/adjustments.d.cts +2 -2
- package/lib/resources/adjustments.d.ts +2 -2
- package/lib/resources/adjustments.js +3 -4
- package/lib/resources/adyen_gateways.cjs +4 -5
- package/lib/resources/adyen_gateways.d.cts +2 -2
- package/lib/resources/adyen_gateways.d.ts +2 -2
- package/lib/resources/adyen_gateways.js +3 -4
- package/lib/resources/adyen_payments.cjs +4 -5
- package/lib/resources/adyen_payments.d.cts +2 -2
- package/lib/resources/adyen_payments.d.ts +2 -2
- package/lib/resources/adyen_payments.js +3 -4
- package/lib/resources/applications.cjs +4 -5
- package/lib/resources/applications.d.cts +2 -2
- package/lib/resources/applications.d.ts +2 -2
- package/lib/resources/applications.js +3 -4
- package/lib/resources/attachments.cjs +4 -5
- package/lib/resources/attachments.d.cts +2 -2
- package/lib/resources/attachments.d.ts +2 -2
- package/lib/resources/attachments.js +3 -4
- package/lib/resources/authorizations.cjs +4 -5
- package/lib/resources/authorizations.d.cts +2 -2
- package/lib/resources/authorizations.d.ts +2 -2
- package/lib/resources/authorizations.js +3 -4
- package/lib/resources/avalara_accounts.cjs +4 -5
- package/lib/resources/avalara_accounts.d.cts +2 -2
- package/lib/resources/avalara_accounts.d.ts +2 -2
- package/lib/resources/avalara_accounts.js +3 -4
- package/lib/resources/axerve_gateways.cjs +4 -5
- package/lib/resources/axerve_gateways.d.cts +2 -2
- package/lib/resources/axerve_gateways.d.ts +2 -2
- package/lib/resources/axerve_gateways.js +3 -4
- package/lib/resources/axerve_payments.cjs +4 -5
- package/lib/resources/axerve_payments.d.cts +2 -2
- package/lib/resources/axerve_payments.d.ts +2 -2
- package/lib/resources/axerve_payments.js +3 -4
- package/lib/resources/bing_geocoders.cjs +4 -5
- package/lib/resources/bing_geocoders.d.cts +2 -2
- package/lib/resources/bing_geocoders.d.ts +2 -2
- package/lib/resources/bing_geocoders.js +3 -4
- package/lib/resources/braintree_gateways.cjs +4 -5
- package/lib/resources/braintree_gateways.d.cts +2 -2
- package/lib/resources/braintree_gateways.d.ts +2 -2
- package/lib/resources/braintree_gateways.js +3 -4
- package/lib/resources/braintree_payments.cjs +4 -5
- package/lib/resources/braintree_payments.d.cts +2 -2
- package/lib/resources/braintree_payments.d.ts +2 -2
- package/lib/resources/braintree_payments.js +3 -4
- package/lib/resources/bundles.cjs +10 -5
- package/lib/resources/bundles.d.cts +2 -2
- package/lib/resources/bundles.d.ts +2 -2
- package/lib/resources/bundles.js +9 -4
- package/lib/resources/buy_x_pay_y_promotions.cjs +10 -5
- 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/buy_x_pay_y_promotions.js +9 -4
- package/lib/resources/captures.cjs +4 -5
- package/lib/resources/captures.d.cts +2 -2
- package/lib/resources/captures.d.ts +2 -2
- package/lib/resources/captures.js +3 -4
- package/lib/resources/carrier_accounts.cjs +4 -5
- package/lib/resources/carrier_accounts.d.cts +2 -2
- package/lib/resources/carrier_accounts.d.ts +2 -2
- package/lib/resources/carrier_accounts.js +3 -4
- package/lib/resources/checkout_com_gateways.cjs +4 -5
- 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_gateways.js +3 -4
- package/lib/resources/checkout_com_payments.cjs +4 -5
- package/lib/resources/checkout_com_payments.d.cts +2 -2
- package/lib/resources/checkout_com_payments.d.ts +2 -2
- package/lib/resources/checkout_com_payments.js +3 -4
- package/lib/resources/cleanups.cjs +4 -5
- package/lib/resources/cleanups.d.cts +2 -2
- package/lib/resources/cleanups.d.ts +2 -2
- package/lib/resources/cleanups.js +3 -4
- package/lib/resources/coupon_codes_promotion_rules.cjs +4 -5
- 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_codes_promotion_rules.js +3 -4
- package/lib/resources/coupon_recipients.cjs +4 -5
- package/lib/resources/coupon_recipients.d.cts +2 -2
- package/lib/resources/coupon_recipients.d.ts +2 -2
- package/lib/resources/coupon_recipients.js +3 -4
- package/lib/resources/coupons.cjs +10 -5
- package/lib/resources/coupons.d.cts +2 -2
- package/lib/resources/coupons.d.ts +2 -2
- package/lib/resources/coupons.js +9 -4
- package/lib/resources/custom_promotion_rules.cjs +4 -5
- package/lib/resources/custom_promotion_rules.d.cts +2 -2
- package/lib/resources/custom_promotion_rules.d.ts +2 -2
- package/lib/resources/custom_promotion_rules.js +3 -4
- package/lib/resources/customer_addresses.cjs +4 -5
- package/lib/resources/customer_addresses.d.cts +2 -2
- package/lib/resources/customer_addresses.d.ts +2 -2
- package/lib/resources/customer_addresses.js +3 -4
- package/lib/resources/customer_groups.cjs +4 -5
- package/lib/resources/customer_groups.d.cts +2 -2
- package/lib/resources/customer_groups.d.ts +2 -2
- package/lib/resources/customer_groups.js +3 -4
- package/lib/resources/customer_password_resets.cjs +4 -5
- package/lib/resources/customer_password_resets.d.cts +2 -2
- package/lib/resources/customer_password_resets.d.ts +2 -2
- package/lib/resources/customer_password_resets.js +3 -4
- package/lib/resources/customer_payment_sources.cjs +4 -5
- package/lib/resources/customer_payment_sources.d.cts +2 -2
- package/lib/resources/customer_payment_sources.d.ts +2 -2
- package/lib/resources/customer_payment_sources.js +3 -4
- package/lib/resources/customer_subscriptions.cjs +4 -5
- package/lib/resources/customer_subscriptions.d.cts +2 -2
- package/lib/resources/customer_subscriptions.d.ts +2 -2
- package/lib/resources/customer_subscriptions.js +3 -4
- package/lib/resources/customers.cjs +10 -5
- package/lib/resources/customers.d.cts +2 -2
- package/lib/resources/customers.d.ts +2 -2
- package/lib/resources/customers.js +9 -4
- package/lib/resources/delivery_lead_times.cjs +4 -5
- package/lib/resources/delivery_lead_times.d.cts +2 -2
- package/lib/resources/delivery_lead_times.d.ts +2 -2
- package/lib/resources/delivery_lead_times.js +3 -4
- package/lib/resources/discount_engine_items.cjs +4 -5
- package/lib/resources/discount_engine_items.d.cts +2 -2
- package/lib/resources/discount_engine_items.d.ts +2 -2
- package/lib/resources/discount_engine_items.js +3 -4
- package/lib/resources/discount_engines.cjs +4 -5
- package/lib/resources/discount_engines.d.cts +2 -2
- package/lib/resources/discount_engines.d.ts +2 -2
- package/lib/resources/discount_engines.js +3 -4
- package/lib/resources/easypost_pickups.cjs +4 -5
- package/lib/resources/easypost_pickups.d.cts +2 -2
- package/lib/resources/easypost_pickups.d.ts +2 -2
- package/lib/resources/easypost_pickups.js +3 -4
- package/lib/resources/event_callbacks.cjs +4 -5
- package/lib/resources/event_callbacks.d.cts +2 -2
- package/lib/resources/event_callbacks.d.ts +2 -2
- package/lib/resources/event_callbacks.js +3 -4
- package/lib/resources/events.cjs +4 -5
- package/lib/resources/events.d.cts +2 -2
- package/lib/resources/events.d.ts +2 -2
- package/lib/resources/events.js +3 -4
- package/lib/resources/exports.cjs +4 -5
- package/lib/resources/exports.d.cts +2 -2
- package/lib/resources/exports.d.ts +2 -2
- package/lib/resources/exports.js +3 -4
- package/lib/resources/external_gateways.cjs +4 -5
- package/lib/resources/external_gateways.d.cts +2 -2
- package/lib/resources/external_gateways.d.ts +2 -2
- package/lib/resources/external_gateways.js +3 -4
- package/lib/resources/external_payments.cjs +4 -5
- package/lib/resources/external_payments.d.cts +2 -2
- package/lib/resources/external_payments.d.ts +2 -2
- package/lib/resources/external_payments.js +3 -4
- package/lib/resources/external_promotions.cjs +10 -5
- package/lib/resources/external_promotions.d.cts +2 -2
- package/lib/resources/external_promotions.d.ts +2 -2
- package/lib/resources/external_promotions.js +9 -4
- package/lib/resources/external_tax_calculators.cjs +4 -5
- package/lib/resources/external_tax_calculators.d.cts +2 -2
- package/lib/resources/external_tax_calculators.d.ts +2 -2
- package/lib/resources/external_tax_calculators.js +3 -4
- package/lib/resources/fixed_amount_promotions.cjs +10 -5
- package/lib/resources/fixed_amount_promotions.d.cts +2 -2
- package/lib/resources/fixed_amount_promotions.d.ts +2 -2
- package/lib/resources/fixed_amount_promotions.js +9 -4
- package/lib/resources/fixed_price_promotions.cjs +10 -5
- package/lib/resources/fixed_price_promotions.d.cts +2 -2
- package/lib/resources/fixed_price_promotions.d.ts +2 -2
- package/lib/resources/fixed_price_promotions.js +9 -4
- package/lib/resources/flex_promotions.cjs +10 -5
- package/lib/resources/flex_promotions.d.cts +2 -2
- package/lib/resources/flex_promotions.d.ts +2 -2
- package/lib/resources/flex_promotions.js +9 -4
- package/lib/resources/free_gift_promotions.cjs +10 -5
- package/lib/resources/free_gift_promotions.d.cts +2 -2
- package/lib/resources/free_gift_promotions.d.ts +2 -2
- package/lib/resources/free_gift_promotions.js +9 -4
- package/lib/resources/free_shipping_promotions.cjs +10 -5
- package/lib/resources/free_shipping_promotions.d.cts +2 -2
- package/lib/resources/free_shipping_promotions.d.ts +2 -2
- package/lib/resources/free_shipping_promotions.js +9 -4
- package/lib/resources/geocoders.cjs +4 -5
- package/lib/resources/geocoders.d.cts +2 -2
- package/lib/resources/geocoders.d.ts +2 -2
- package/lib/resources/geocoders.js +3 -4
- package/lib/resources/gift_card_recipients.cjs +4 -5
- package/lib/resources/gift_card_recipients.d.cts +2 -2
- package/lib/resources/gift_card_recipients.d.ts +2 -2
- package/lib/resources/gift_card_recipients.js +3 -4
- package/lib/resources/gift_cards.cjs +10 -5
- package/lib/resources/gift_cards.d.cts +2 -2
- package/lib/resources/gift_cards.d.ts +2 -2
- package/lib/resources/gift_cards.js +9 -4
- package/lib/resources/google_geocoders.cjs +4 -5
- package/lib/resources/google_geocoders.d.cts +2 -2
- package/lib/resources/google_geocoders.d.ts +2 -2
- package/lib/resources/google_geocoders.js +3 -4
- package/lib/resources/imports.cjs +4 -5
- package/lib/resources/imports.d.cts +2 -2
- package/lib/resources/imports.d.ts +2 -2
- package/lib/resources/imports.js +3 -4
- package/lib/resources/in_stock_subscriptions.cjs +4 -5
- package/lib/resources/in_stock_subscriptions.d.cts +2 -2
- package/lib/resources/in_stock_subscriptions.d.ts +2 -2
- package/lib/resources/in_stock_subscriptions.js +3 -4
- package/lib/resources/inventory_models.cjs +4 -5
- package/lib/resources/inventory_models.d.cts +2 -2
- package/lib/resources/inventory_models.d.ts +2 -2
- package/lib/resources/inventory_models.js +3 -4
- package/lib/resources/inventory_return_locations.cjs +4 -5
- package/lib/resources/inventory_return_locations.d.cts +2 -2
- package/lib/resources/inventory_return_locations.d.ts +2 -2
- package/lib/resources/inventory_return_locations.js +3 -4
- package/lib/resources/inventory_stock_locations.cjs +4 -5
- package/lib/resources/inventory_stock_locations.d.cts +2 -2
- package/lib/resources/inventory_stock_locations.d.ts +2 -2
- package/lib/resources/inventory_stock_locations.js +3 -4
- package/lib/resources/klarna_gateways.cjs +4 -5
- package/lib/resources/klarna_gateways.d.cts +2 -2
- package/lib/resources/klarna_gateways.d.ts +2 -2
- package/lib/resources/klarna_gateways.js +3 -4
- package/lib/resources/klarna_payments.cjs +4 -5
- package/lib/resources/klarna_payments.d.cts +2 -2
- package/lib/resources/klarna_payments.d.ts +2 -2
- package/lib/resources/klarna_payments.js +3 -4
- package/lib/resources/line_item_options.cjs +10 -5
- package/lib/resources/line_item_options.d.cts +2 -2
- package/lib/resources/line_item_options.d.ts +2 -2
- package/lib/resources/line_item_options.js +9 -4
- package/lib/resources/line_items.cjs +10 -5
- package/lib/resources/line_items.d.cts +2 -2
- package/lib/resources/line_items.d.ts +2 -2
- package/lib/resources/line_items.js +9 -4
- package/lib/resources/links.cjs +4 -5
- package/lib/resources/links.d.cts +2 -2
- package/lib/resources/links.d.ts +2 -2
- package/lib/resources/links.js +3 -4
- package/lib/resources/manual_gateways.cjs +4 -5
- package/lib/resources/manual_gateways.d.cts +2 -2
- package/lib/resources/manual_gateways.d.ts +2 -2
- package/lib/resources/manual_gateways.js +3 -4
- package/lib/resources/manual_tax_calculators.cjs +4 -5
- package/lib/resources/manual_tax_calculators.d.cts +2 -2
- package/lib/resources/manual_tax_calculators.d.ts +2 -2
- package/lib/resources/manual_tax_calculators.js +3 -4
- package/lib/resources/markets.cjs +12 -5
- package/lib/resources/markets.d.cts +2 -2
- package/lib/resources/markets.d.ts +2 -2
- package/lib/resources/markets.js +11 -4
- package/lib/resources/merchants.cjs +4 -5
- package/lib/resources/merchants.d.cts +2 -2
- package/lib/resources/merchants.d.ts +2 -2
- package/lib/resources/merchants.js +3 -4
- package/lib/resources/notifications.cjs +4 -5
- package/lib/resources/notifications.d.cts +2 -2
- package/lib/resources/notifications.d.ts +2 -2
- package/lib/resources/notifications.js +3 -4
- package/lib/resources/order_amount_promotion_rules.cjs +4 -5
- 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_amount_promotion_rules.js +3 -4
- package/lib/resources/order_copies.cjs +4 -5
- package/lib/resources/order_copies.d.cts +2 -2
- package/lib/resources/order_copies.d.ts +2 -2
- package/lib/resources/order_copies.js +3 -4
- package/lib/resources/order_factories.cjs +4 -5
- package/lib/resources/order_factories.d.cts +2 -2
- package/lib/resources/order_factories.d.ts +2 -2
- package/lib/resources/order_factories.js +3 -4
- package/lib/resources/order_subscription_items.cjs +4 -5
- package/lib/resources/order_subscription_items.d.cts +2 -2
- package/lib/resources/order_subscription_items.d.ts +2 -2
- package/lib/resources/order_subscription_items.js +3 -4
- package/lib/resources/order_subscriptions.cjs +10 -5
- package/lib/resources/order_subscriptions.d.cts +2 -2
- package/lib/resources/order_subscriptions.d.ts +2 -2
- package/lib/resources/order_subscriptions.js +9 -4
- package/lib/resources/orders.cjs +18 -5
- package/lib/resources/orders.d.cts +2 -2
- package/lib/resources/orders.d.ts +2 -2
- package/lib/resources/orders.js +17 -4
- package/lib/resources/organizations.cjs +4 -5
- package/lib/resources/organizations.d.cts +2 -2
- package/lib/resources/organizations.d.ts +2 -2
- package/lib/resources/organizations.js +3 -4
- package/lib/resources/packages.cjs +4 -5
- package/lib/resources/packages.d.cts +2 -2
- package/lib/resources/packages.d.ts +2 -2
- package/lib/resources/packages.js +3 -4
- package/lib/resources/parcel_line_items.cjs +4 -5
- package/lib/resources/parcel_line_items.d.cts +2 -2
- package/lib/resources/parcel_line_items.d.ts +2 -2
- package/lib/resources/parcel_line_items.js +3 -4
- package/lib/resources/parcels.cjs +4 -5
- package/lib/resources/parcels.d.cts +2 -2
- package/lib/resources/parcels.d.ts +2 -2
- package/lib/resources/parcels.js +3 -4
- package/lib/resources/payment_gateways.cjs +4 -5
- package/lib/resources/payment_gateways.d.cts +2 -2
- package/lib/resources/payment_gateways.d.ts +2 -2
- package/lib/resources/payment_gateways.js +3 -4
- package/lib/resources/payment_methods.cjs +4 -5
- package/lib/resources/payment_methods.d.cts +2 -2
- package/lib/resources/payment_methods.d.ts +2 -2
- package/lib/resources/payment_methods.js +3 -4
- package/lib/resources/payment_options.cjs +4 -5
- package/lib/resources/payment_options.d.cts +2 -2
- package/lib/resources/payment_options.d.ts +2 -2
- package/lib/resources/payment_options.js +3 -4
- package/lib/resources/paypal_gateways.cjs +4 -5
- package/lib/resources/paypal_gateways.d.cts +2 -2
- package/lib/resources/paypal_gateways.d.ts +2 -2
- package/lib/resources/paypal_gateways.js +3 -4
- package/lib/resources/paypal_payments.cjs +4 -5
- package/lib/resources/paypal_payments.d.cts +2 -2
- package/lib/resources/paypal_payments.d.ts +2 -2
- package/lib/resources/paypal_payments.js +3 -4
- package/lib/resources/percentage_discount_promotions.cjs +10 -5
- package/lib/resources/percentage_discount_promotions.d.cts +2 -2
- package/lib/resources/percentage_discount_promotions.d.ts +2 -2
- package/lib/resources/percentage_discount_promotions.js +9 -4
- package/lib/resources/pickups.cjs +4 -5
- package/lib/resources/pickups.d.cts +2 -2
- package/lib/resources/pickups.d.ts +2 -2
- package/lib/resources/pickups.js +3 -4
- package/lib/resources/price_frequency_tiers.cjs +4 -5
- package/lib/resources/price_frequency_tiers.d.cts +2 -2
- package/lib/resources/price_frequency_tiers.d.ts +2 -2
- package/lib/resources/price_frequency_tiers.js +3 -4
- package/lib/resources/price_list_schedulers.cjs +4 -5
- package/lib/resources/price_list_schedulers.d.cts +2 -2
- package/lib/resources/price_list_schedulers.d.ts +2 -2
- package/lib/resources/price_list_schedulers.js +3 -4
- package/lib/resources/price_lists.cjs +4 -5
- package/lib/resources/price_lists.d.cts +2 -2
- package/lib/resources/price_lists.d.ts +2 -2
- package/lib/resources/price_lists.js +3 -4
- package/lib/resources/price_tiers.cjs +4 -5
- package/lib/resources/price_tiers.d.cts +2 -2
- package/lib/resources/price_tiers.d.ts +2 -2
- package/lib/resources/price_tiers.js +3 -4
- package/lib/resources/price_volume_tiers.cjs +4 -5
- package/lib/resources/price_volume_tiers.d.cts +2 -2
- package/lib/resources/price_volume_tiers.d.ts +2 -2
- package/lib/resources/price_volume_tiers.js +3 -4
- package/lib/resources/prices.cjs +4 -5
- package/lib/resources/prices.d.cts +2 -2
- package/lib/resources/prices.d.ts +2 -2
- package/lib/resources/prices.js +3 -4
- package/lib/resources/promotion_rules.cjs +4 -5
- package/lib/resources/promotion_rules.d.cts +2 -2
- package/lib/resources/promotion_rules.d.ts +2 -2
- package/lib/resources/promotion_rules.js +3 -4
- package/lib/resources/promotions.cjs +4 -5
- package/lib/resources/promotions.d.cts +2 -2
- package/lib/resources/promotions.d.ts +2 -2
- package/lib/resources/promotions.js +3 -4
- package/lib/resources/recurring_order_copies.cjs +4 -5
- package/lib/resources/recurring_order_copies.d.cts +2 -2
- package/lib/resources/recurring_order_copies.d.ts +2 -2
- package/lib/resources/recurring_order_copies.js +3 -4
- package/lib/resources/refunds.cjs +4 -5
- package/lib/resources/refunds.d.cts +2 -2
- package/lib/resources/refunds.d.ts +2 -2
- package/lib/resources/refunds.js +3 -4
- package/lib/resources/reserved_stocks.cjs +4 -5
- package/lib/resources/reserved_stocks.d.cts +2 -2
- package/lib/resources/reserved_stocks.d.ts +2 -2
- package/lib/resources/reserved_stocks.js +3 -4
- package/lib/resources/resource_errors.cjs +4 -5
- package/lib/resources/resource_errors.d.cts +2 -2
- package/lib/resources/resource_errors.d.ts +2 -2
- package/lib/resources/resource_errors.js +3 -4
- package/lib/resources/return_line_items.cjs +4 -5
- package/lib/resources/return_line_items.d.cts +2 -2
- package/lib/resources/return_line_items.d.ts +2 -2
- package/lib/resources/return_line_items.js +3 -4
- package/lib/resources/returns.cjs +10 -5
- package/lib/resources/returns.d.cts +2 -2
- package/lib/resources/returns.d.ts +2 -2
- package/lib/resources/returns.js +9 -4
- package/lib/resources/satispay_gateways.cjs +4 -5
- package/lib/resources/satispay_gateways.d.cts +2 -2
- package/lib/resources/satispay_gateways.d.ts +2 -2
- package/lib/resources/satispay_gateways.js +3 -4
- package/lib/resources/satispay_payments.cjs +4 -5
- package/lib/resources/satispay_payments.d.cts +2 -2
- package/lib/resources/satispay_payments.d.ts +2 -2
- package/lib/resources/satispay_payments.js +3 -4
- package/lib/resources/shipments.cjs +10 -5
- package/lib/resources/shipments.d.cts +2 -2
- package/lib/resources/shipments.d.ts +2 -2
- package/lib/resources/shipments.js +9 -4
- package/lib/resources/shipping_categories.cjs +4 -5
- package/lib/resources/shipping_categories.d.cts +2 -2
- package/lib/resources/shipping_categories.d.ts +2 -2
- package/lib/resources/shipping_categories.js +3 -4
- package/lib/resources/shipping_method_tiers.cjs +4 -5
- package/lib/resources/shipping_method_tiers.d.cts +2 -2
- package/lib/resources/shipping_method_tiers.d.ts +2 -2
- package/lib/resources/shipping_method_tiers.js +3 -4
- package/lib/resources/shipping_methods.cjs +4 -5
- package/lib/resources/shipping_methods.d.cts +2 -2
- package/lib/resources/shipping_methods.d.ts +2 -2
- package/lib/resources/shipping_methods.js +3 -4
- package/lib/resources/shipping_weight_tiers.cjs +4 -5
- package/lib/resources/shipping_weight_tiers.d.cts +2 -2
- package/lib/resources/shipping_weight_tiers.d.ts +2 -2
- package/lib/resources/shipping_weight_tiers.js +3 -4
- package/lib/resources/shipping_zones.cjs +4 -5
- package/lib/resources/shipping_zones.d.cts +2 -2
- package/lib/resources/shipping_zones.d.ts +2 -2
- package/lib/resources/shipping_zones.js +3 -4
- package/lib/resources/sku_list_items.cjs +4 -5
- 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_items.js +3 -4
- package/lib/resources/sku_list_promotion_rules.cjs +4 -5
- 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_list_promotion_rules.js +3 -4
- package/lib/resources/sku_lists.cjs +4 -5
- package/lib/resources/sku_lists.d.cts +2 -2
- package/lib/resources/sku_lists.d.ts +2 -2
- package/lib/resources/sku_lists.js +3 -4
- package/lib/resources/sku_options.cjs +10 -5
- package/lib/resources/sku_options.d.cts +2 -2
- package/lib/resources/sku_options.d.ts +2 -2
- package/lib/resources/sku_options.js +9 -4
- package/lib/resources/skus.cjs +10 -5
- package/lib/resources/skus.d.cts +2 -2
- package/lib/resources/skus.d.ts +2 -2
- package/lib/resources/skus.js +9 -4
- package/lib/resources/stock_items.cjs +4 -5
- package/lib/resources/stock_items.d.cts +2 -2
- package/lib/resources/stock_items.d.ts +2 -2
- package/lib/resources/stock_items.js +3 -4
- package/lib/resources/stock_line_items.cjs +4 -5
- package/lib/resources/stock_line_items.d.cts +2 -2
- package/lib/resources/stock_line_items.d.ts +2 -2
- package/lib/resources/stock_line_items.js +3 -4
- package/lib/resources/stock_locations.cjs +4 -5
- package/lib/resources/stock_locations.d.cts +2 -2
- package/lib/resources/stock_locations.d.ts +2 -2
- package/lib/resources/stock_locations.js +3 -4
- package/lib/resources/stock_reservations.cjs +4 -5
- package/lib/resources/stock_reservations.d.cts +2 -2
- package/lib/resources/stock_reservations.d.ts +2 -2
- package/lib/resources/stock_reservations.js +3 -4
- package/lib/resources/stock_transfers.cjs +4 -5
- package/lib/resources/stock_transfers.d.cts +2 -2
- package/lib/resources/stock_transfers.d.ts +2 -2
- package/lib/resources/stock_transfers.js +3 -4
- package/lib/resources/stores.cjs +4 -5
- package/lib/resources/stores.d.cts +2 -2
- package/lib/resources/stores.d.ts +2 -2
- package/lib/resources/stores.js +3 -4
- package/lib/resources/stripe_gateways.cjs +4 -5
- package/lib/resources/stripe_gateways.d.cts +2 -2
- package/lib/resources/stripe_gateways.d.ts +2 -2
- package/lib/resources/stripe_gateways.js +3 -4
- package/lib/resources/stripe_payments.cjs +4 -5
- package/lib/resources/stripe_payments.d.cts +2 -2
- package/lib/resources/stripe_payments.d.ts +2 -2
- package/lib/resources/stripe_payments.js +3 -4
- package/lib/resources/stripe_tax_accounts.cjs +4 -5
- package/lib/resources/stripe_tax_accounts.d.cts +2 -2
- package/lib/resources/stripe_tax_accounts.d.ts +2 -2
- package/lib/resources/stripe_tax_accounts.js +3 -4
- package/lib/resources/subscription_models.cjs +4 -5
- package/lib/resources/subscription_models.d.cts +2 -2
- package/lib/resources/subscription_models.d.ts +2 -2
- package/lib/resources/subscription_models.js +3 -4
- package/lib/resources/tags.cjs +4 -5
- package/lib/resources/tags.d.cts +2 -2
- package/lib/resources/tags.d.ts +2 -2
- package/lib/resources/tags.js +3 -4
- package/lib/resources/talon_one_accounts.cjs +4 -5
- package/lib/resources/talon_one_accounts.d.cts +2 -2
- package/lib/resources/talon_one_accounts.d.ts +2 -2
- package/lib/resources/talon_one_accounts.js +3 -4
- package/lib/resources/tax_calculators.cjs +4 -5
- package/lib/resources/tax_calculators.d.cts +2 -2
- package/lib/resources/tax_calculators.d.ts +2 -2
- package/lib/resources/tax_calculators.js +3 -4
- package/lib/resources/tax_categories.cjs +4 -5
- package/lib/resources/tax_categories.d.cts +2 -2
- package/lib/resources/tax_categories.d.ts +2 -2
- package/lib/resources/tax_categories.js +3 -4
- package/lib/resources/tax_rules.cjs +4 -5
- package/lib/resources/tax_rules.d.cts +2 -2
- package/lib/resources/tax_rules.d.ts +2 -2
- package/lib/resources/tax_rules.js +3 -4
- package/lib/resources/taxjar_accounts.cjs +4 -5
- package/lib/resources/taxjar_accounts.d.cts +2 -2
- package/lib/resources/taxjar_accounts.d.ts +2 -2
- package/lib/resources/taxjar_accounts.js +3 -4
- package/lib/resources/transactions.cjs +4 -5
- package/lib/resources/transactions.d.cts +2 -2
- package/lib/resources/transactions.d.ts +2 -2
- package/lib/resources/transactions.js +3 -4
- package/lib/resources/versions.cjs +4 -5
- package/lib/resources/versions.d.cts +2 -2
- package/lib/resources/versions.d.ts +2 -2
- package/lib/resources/versions.js +3 -4
- package/lib/resources/vertex_accounts.cjs +4 -5
- package/lib/resources/vertex_accounts.d.cts +2 -2
- package/lib/resources/vertex_accounts.d.ts +2 -2
- package/lib/resources/vertex_accounts.js +3 -4
- package/lib/resources/voids.cjs +4 -5
- package/lib/resources/voids.d.cts +2 -2
- package/lib/resources/voids.d.ts +2 -2
- package/lib/resources/voids.js +3 -4
- package/lib/resources/webhooks.cjs +4 -5
- package/lib/resources/webhooks.d.cts +2 -2
- package/lib/resources/webhooks.d.ts +2 -2
- package/lib/resources/webhooks.js +3 -4
- package/lib/resources/wire_transfers.cjs +4 -5
- package/lib/resources/wire_transfers.d.cts +2 -2
- package/lib/resources/wire_transfers.d.ts +2 -2
- package/lib/resources/wire_transfers.js +3 -4
- package/lib/static.cjs +1 -0
- package/lib/static.d.cts +3 -3
- package/lib/static.d.ts +3 -3
- package/lib/static.js +1 -0
- package/lib/util.cjs +2 -0
- package/lib/util.js +2 -0
- package/package.json +7 -7
- package/lib/instance.cjs +0 -272
- package/lib/instance.d.cts +0 -141
- package/lib/instance.d.ts +0 -141
- package/lib/instance.js +0 -139
package/lib/api.d.cts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
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-Bq9emZm-.cjs';
|
2
2
|
import './client.cjs';
|
3
|
-
import './interceptor-
|
3
|
+
import './interceptor-D65i25Y7.cjs';
|
4
4
|
import './types.cjs';
|
package/lib/api.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
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-C5qyxFpD.js';
|
2
2
|
import './client.js';
|
3
|
-
import './interceptor-
|
3
|
+
import './interceptor-D65i25Y7.js';
|
4
4
|
import './types.js';
|
package/lib/api.js
CHANGED
@@ -1,136 +1,137 @@
|
|
1
|
-
|
2
|
-
export { default as
|
3
|
-
export { default as
|
4
|
-
export { default as
|
5
|
-
export { default as
|
6
|
-
export { default as
|
7
|
-
export { default as
|
8
|
-
export { default as
|
9
|
-
export { default as
|
10
|
-
export { default as
|
11
|
-
export { default as
|
12
|
-
export { default as
|
13
|
-
export { default as
|
14
|
-
export { default as
|
15
|
-
export { default as
|
16
|
-
export { default as
|
17
|
-
export { default as
|
18
|
-
export { default as
|
19
|
-
export { default as
|
20
|
-
export { default as
|
21
|
-
export { default as
|
22
|
-
export { default as
|
23
|
-
export { default as
|
24
|
-
export { default as
|
25
|
-
export { default as
|
26
|
-
export { default as
|
27
|
-
export { default as
|
28
|
-
export { default as
|
29
|
-
export { default as
|
30
|
-
export { default as
|
31
|
-
export { default as
|
32
|
-
export { default as
|
33
|
-
export { default as
|
34
|
-
export { default as
|
35
|
-
export { default as
|
36
|
-
export { default as
|
37
|
-
export { default as
|
38
|
-
export { default as
|
39
|
-
export { default as
|
40
|
-
export { default as
|
41
|
-
export { default as
|
42
|
-
export { default as
|
43
|
-
export { default as
|
44
|
-
export { default as
|
45
|
-
export { default as
|
46
|
-
export { default as
|
47
|
-
export { default as
|
48
|
-
export { default as
|
49
|
-
export { default as
|
50
|
-
export { default as
|
51
|
-
export { default as
|
52
|
-
export { default as
|
53
|
-
export { default as
|
54
|
-
export { default as
|
55
|
-
export { default as
|
56
|
-
export { default as
|
57
|
-
export { default as
|
58
|
-
export { default as
|
59
|
-
export { default as
|
60
|
-
export { default as
|
61
|
-
export { default as
|
62
|
-
export { default as
|
63
|
-
export { default as
|
64
|
-
export { default as
|
65
|
-
export { default as
|
66
|
-
export { default as
|
67
|
-
export { default as
|
68
|
-
export { default as
|
69
|
-
export { default as
|
70
|
-
export { default as
|
71
|
-
export { default as
|
72
|
-
export { default as
|
73
|
-
export { default as
|
74
|
-
export { default as
|
75
|
-
export { default as
|
76
|
-
export { default as
|
77
|
-
export { default as
|
78
|
-
export { default as
|
79
|
-
export { default as
|
80
|
-
export { default as
|
81
|
-
export { default as
|
82
|
-
export { default as
|
83
|
-
export { default as
|
84
|
-
export { default as
|
85
|
-
export { default as
|
86
|
-
export { default as
|
87
|
-
export { default as
|
88
|
-
export { default as
|
89
|
-
export { default as
|
90
|
-
export { default as
|
91
|
-
export { default as
|
92
|
-
export { default as
|
93
|
-
export { default as
|
94
|
-
export { default as
|
95
|
-
export { default as
|
96
|
-
export { default as
|
97
|
-
export { default as
|
98
|
-
export { default as
|
99
|
-
export { default as
|
100
|
-
export { default as
|
101
|
-
export { default as
|
102
|
-
export { default as
|
103
|
-
export { default as
|
104
|
-
export { default as
|
105
|
-
export { default as
|
106
|
-
export { default as
|
107
|
-
export { default as
|
108
|
-
export { default as
|
109
|
-
export { default as
|
110
|
-
export { default as
|
111
|
-
export { default as
|
112
|
-
export { default as
|
113
|
-
export { default as
|
114
|
-
export { default as
|
115
|
-
export { default as
|
116
|
-
export { default as
|
117
|
-
export { default as
|
118
|
-
export { default as
|
119
|
-
export { default as
|
120
|
-
export { default as
|
121
|
-
export { default as
|
122
|
-
export { default as
|
123
|
-
export { default as
|
124
|
-
export { default as
|
125
|
-
export { default as
|
126
|
-
export { default as
|
127
|
-
export { default as
|
128
|
-
export { default as
|
129
|
-
export { default as
|
130
|
-
export { default as
|
131
|
-
export { default as
|
1
|
+
import './chunk-AQ5VUG5P.js';
|
2
|
+
export { default as addresses } from './resources/addresses';
|
3
|
+
export { default as adjustments } from './resources/adjustments';
|
4
|
+
export { default as adyen_gateways } from './resources/adyen_gateways';
|
5
|
+
export { default as adyen_payments } from './resources/adyen_payments';
|
6
|
+
export { default as application } from './resources/applications';
|
7
|
+
export { default as attachments } from './resources/attachments';
|
8
|
+
export { default as authorizations } from './resources/authorizations';
|
9
|
+
export { default as avalara_accounts } from './resources/avalara_accounts';
|
10
|
+
export { default as axerve_gateways } from './resources/axerve_gateways';
|
11
|
+
export { default as axerve_payments } from './resources/axerve_payments';
|
12
|
+
export { default as bing_geocoders } from './resources/bing_geocoders';
|
13
|
+
export { default as braintree_gateways } from './resources/braintree_gateways';
|
14
|
+
export { default as braintree_payments } from './resources/braintree_payments';
|
15
|
+
export { default as bundles } from './resources/bundles';
|
16
|
+
export { default as buy_x_pay_y_promotions } from './resources/buy_x_pay_y_promotions';
|
17
|
+
export { default as captures } from './resources/captures';
|
18
|
+
export { default as carrier_accounts } from './resources/carrier_accounts';
|
19
|
+
export { default as checkout_com_gateways } from './resources/checkout_com_gateways';
|
20
|
+
export { default as checkout_com_payments } from './resources/checkout_com_payments';
|
21
|
+
export { default as cleanups } from './resources/cleanups';
|
22
|
+
export { default as coupon_codes_promotion_rules } from './resources/coupon_codes_promotion_rules';
|
23
|
+
export { default as coupon_recipients } from './resources/coupon_recipients';
|
24
|
+
export { default as coupons } from './resources/coupons';
|
25
|
+
export { default as custom_promotion_rules } from './resources/custom_promotion_rules';
|
26
|
+
export { default as customer_addresses } from './resources/customer_addresses';
|
27
|
+
export { default as customer_groups } from './resources/customer_groups';
|
28
|
+
export { default as customer_password_resets } from './resources/customer_password_resets';
|
29
|
+
export { default as customer_payment_sources } from './resources/customer_payment_sources';
|
30
|
+
export { default as customer_subscriptions } from './resources/customer_subscriptions';
|
31
|
+
export { default as customers } from './resources/customers';
|
32
|
+
export { default as delivery_lead_times } from './resources/delivery_lead_times';
|
33
|
+
export { default as discount_engine_items } from './resources/discount_engine_items';
|
34
|
+
export { default as discount_engines } from './resources/discount_engines';
|
35
|
+
export { default as easypost_pickups } from './resources/easypost_pickups';
|
36
|
+
export { default as event_callbacks } from './resources/event_callbacks';
|
37
|
+
export { default as events } from './resources/events';
|
38
|
+
export { default as exports } from './resources/exports';
|
39
|
+
export { default as external_gateways } from './resources/external_gateways';
|
40
|
+
export { default as external_payments } from './resources/external_payments';
|
41
|
+
export { default as external_promotions } from './resources/external_promotions';
|
42
|
+
export { default as external_tax_calculators } from './resources/external_tax_calculators';
|
43
|
+
export { default as fixed_amount_promotions } from './resources/fixed_amount_promotions';
|
44
|
+
export { default as fixed_price_promotions } from './resources/fixed_price_promotions';
|
45
|
+
export { default as flex_promotions } from './resources/flex_promotions';
|
46
|
+
export { default as free_gift_promotions } from './resources/free_gift_promotions';
|
47
|
+
export { default as free_shipping_promotions } from './resources/free_shipping_promotions';
|
48
|
+
export { default as geocoders } from './resources/geocoders';
|
49
|
+
export { default as gift_card_recipients } from './resources/gift_card_recipients';
|
50
|
+
export { default as gift_cards } from './resources/gift_cards';
|
51
|
+
export { default as google_geocoders } from './resources/google_geocoders';
|
52
|
+
export { default as imports } from './resources/imports';
|
53
|
+
export { default as in_stock_subscriptions } from './resources/in_stock_subscriptions';
|
54
|
+
export { default as inventory_models } from './resources/inventory_models';
|
55
|
+
export { default as inventory_return_locations } from './resources/inventory_return_locations';
|
56
|
+
export { default as inventory_stock_locations } from './resources/inventory_stock_locations';
|
57
|
+
export { default as klarna_gateways } from './resources/klarna_gateways';
|
58
|
+
export { default as klarna_payments } from './resources/klarna_payments';
|
59
|
+
export { default as line_item_options } from './resources/line_item_options';
|
60
|
+
export { default as line_items } from './resources/line_items';
|
61
|
+
export { default as links } from './resources/links';
|
62
|
+
export { default as manual_gateways } from './resources/manual_gateways';
|
63
|
+
export { default as manual_tax_calculators } from './resources/manual_tax_calculators';
|
64
|
+
export { default as markets } from './resources/markets';
|
65
|
+
export { default as merchants } from './resources/merchants';
|
66
|
+
export { default as notifications } from './resources/notifications';
|
67
|
+
export { default as order_amount_promotion_rules } from './resources/order_amount_promotion_rules';
|
68
|
+
export { default as order_copies } from './resources/order_copies';
|
69
|
+
export { default as order_factories } from './resources/order_factories';
|
70
|
+
export { default as order_subscription_items } from './resources/order_subscription_items';
|
71
|
+
export { default as order_subscriptions } from './resources/order_subscriptions';
|
72
|
+
export { default as orders } from './resources/orders';
|
73
|
+
export { default as organization } from './resources/organizations';
|
74
|
+
export { default as packages } from './resources/packages';
|
75
|
+
export { default as parcel_line_items } from './resources/parcel_line_items';
|
76
|
+
export { default as parcels } from './resources/parcels';
|
77
|
+
export { default as payment_gateways } from './resources/payment_gateways';
|
78
|
+
export { default as payment_methods } from './resources/payment_methods';
|
79
|
+
export { default as payment_options } from './resources/payment_options';
|
80
|
+
export { default as paypal_gateways } from './resources/paypal_gateways';
|
81
|
+
export { default as paypal_payments } from './resources/paypal_payments';
|
82
|
+
export { default as percentage_discount_promotions } from './resources/percentage_discount_promotions';
|
83
|
+
export { default as pickups } from './resources/pickups';
|
84
|
+
export { default as price_frequency_tiers } from './resources/price_frequency_tiers';
|
85
|
+
export { default as price_list_schedulers } from './resources/price_list_schedulers';
|
86
|
+
export { default as price_lists } from './resources/price_lists';
|
87
|
+
export { default as price_tiers } from './resources/price_tiers';
|
88
|
+
export { default as price_volume_tiers } from './resources/price_volume_tiers';
|
89
|
+
export { default as prices } from './resources/prices';
|
90
|
+
export { default as promotion_rules } from './resources/promotion_rules';
|
91
|
+
export { default as promotions } from './resources/promotions';
|
92
|
+
export { default as recurring_order_copies } from './resources/recurring_order_copies';
|
93
|
+
export { default as refunds } from './resources/refunds';
|
94
|
+
export { default as reserved_stocks } from './resources/reserved_stocks';
|
95
|
+
export { default as resource_errors } from './resources/resource_errors';
|
96
|
+
export { default as return_line_items } from './resources/return_line_items';
|
97
|
+
export { default as returns } from './resources/returns';
|
98
|
+
export { default as satispay_gateways } from './resources/satispay_gateways';
|
99
|
+
export { default as satispay_payments } from './resources/satispay_payments';
|
100
|
+
export { default as shipments } from './resources/shipments';
|
101
|
+
export { default as shipping_categories } from './resources/shipping_categories';
|
102
|
+
export { default as shipping_method_tiers } from './resources/shipping_method_tiers';
|
103
|
+
export { default as shipping_methods } from './resources/shipping_methods';
|
104
|
+
export { default as shipping_weight_tiers } from './resources/shipping_weight_tiers';
|
105
|
+
export { default as shipping_zones } from './resources/shipping_zones';
|
106
|
+
export { default as sku_list_items } from './resources/sku_list_items';
|
107
|
+
export { default as sku_list_promotion_rules } from './resources/sku_list_promotion_rules';
|
108
|
+
export { default as sku_lists } from './resources/sku_lists';
|
109
|
+
export { default as sku_options } from './resources/sku_options';
|
110
|
+
export { default as skus } from './resources/skus';
|
111
|
+
export { default as stock_items } from './resources/stock_items';
|
112
|
+
export { default as stock_line_items } from './resources/stock_line_items';
|
113
|
+
export { default as stock_locations } from './resources/stock_locations';
|
114
|
+
export { default as stock_reservations } from './resources/stock_reservations';
|
115
|
+
export { default as stock_transfers } from './resources/stock_transfers';
|
116
|
+
export { default as stores } from './resources/stores';
|
117
|
+
export { default as stripe_gateways } from './resources/stripe_gateways';
|
118
|
+
export { default as stripe_payments } from './resources/stripe_payments';
|
119
|
+
export { default as stripe_tax_accounts } from './resources/stripe_tax_accounts';
|
120
|
+
export { default as subscription_models } from './resources/subscription_models';
|
121
|
+
export { default as tags } from './resources/tags';
|
122
|
+
export { default as talon_one_accounts } from './resources/talon_one_accounts';
|
123
|
+
export { default as tax_calculators } from './resources/tax_calculators';
|
124
|
+
export { default as tax_categories } from './resources/tax_categories';
|
125
|
+
export { default as tax_rules } from './resources/tax_rules';
|
126
|
+
export { default as taxjar_accounts } from './resources/taxjar_accounts';
|
127
|
+
export { default as transactions } from './resources/transactions';
|
128
|
+
export { default as versions } from './resources/versions';
|
129
|
+
export { default as vertex_accounts } from './resources/vertex_accounts';
|
130
|
+
export { default as voids } from './resources/voids';
|
131
|
+
export { default as webhooks } from './resources/webhooks';
|
132
|
+
export { default as wire_transfers } from './resources/wire_transfers';
|
132
133
|
|
133
|
-
const
|
134
|
+
const apiResources = [
|
134
135
|
// ##__API_RESOURCE_LIST_START__##
|
135
136
|
"addresses",
|
136
137
|
"adjustments",
|
@@ -265,6 +266,7 @@ const resourceList = [
|
|
265
266
|
"wire_transfers"
|
266
267
|
// ##__API_RESOURCE_LIST_STOP__##
|
267
268
|
];
|
269
|
+
const resourceList = apiResources;
|
268
270
|
const singletonList = [
|
269
271
|
// ##__API_RESOURCE_SINGLETON_START__##
|
270
272
|
"applications",
|
@@ -0,0 +1,12 @@
|
|
1
|
+
var __defProp = Object.defineProperty;
|
2
|
+
var __typeError = (msg) => {
|
3
|
+
throw TypeError(msg);
|
4
|
+
};
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
6
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
7
|
+
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
8
|
+
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
9
|
+
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
10
|
+
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
11
|
+
|
12
|
+
export { __privateAdd, __privateGet, __privateSet, __publicField };
|
@@ -0,0 +1,17 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
var __defProp = Object.defineProperty;
|
4
|
+
var __typeError = (msg) => {
|
5
|
+
throw TypeError(msg);
|
6
|
+
};
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
8
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
9
|
+
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
10
|
+
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
11
|
+
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
12
|
+
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
13
|
+
|
14
|
+
exports.__privateAdd = __privateAdd;
|
15
|
+
exports.__privateGet = __privateGet;
|
16
|
+
exports.__privateSet = __privateSet;
|
17
|
+
exports.__publicField = __publicField;
|
package/lib/client.cjs
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
+
var chunkJE77HYXB_cjs = require('./chunk-JE77HYXB.cjs');
|
3
4
|
var error = require('./error');
|
4
5
|
var config = require('./config');
|
5
6
|
var fetch = require('./fetch');
|
@@ -11,13 +12,6 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
12
|
var config__default = /*#__PURE__*/_interopDefault(config);
|
12
13
|
var Debug__default = /*#__PURE__*/_interopDefault(Debug);
|
13
14
|
|
14
|
-
var __typeError = (msg) => {
|
15
|
-
throw TypeError(msg);
|
16
|
-
};
|
17
|
-
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
18
|
-
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
19
|
-
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
20
|
-
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), member.set(obj, value), value);
|
21
15
|
var _baseUrl, _accessToken, _organization, _domain, _clientConfig, _interceptors;
|
22
16
|
const debug = Debug__default.default("client");
|
23
17
|
const baseURL = (organization, domain) => {
|
@@ -25,17 +19,17 @@ const baseURL = (organization, domain) => {
|
|
25
19
|
};
|
26
20
|
const _ApiClient = class _ApiClient {
|
27
21
|
constructor(options) {
|
28
|
-
__privateAdd(this, _baseUrl);
|
29
|
-
__privateAdd(this, _accessToken);
|
30
|
-
__privateAdd(this, _organization);
|
31
|
-
__privateAdd(this, _domain);
|
32
|
-
__privateAdd(this, _clientConfig);
|
33
|
-
__privateAdd(this, _interceptors);
|
22
|
+
chunkJE77HYXB_cjs.__privateAdd(this, _baseUrl);
|
23
|
+
chunkJE77HYXB_cjs.__privateAdd(this, _accessToken);
|
24
|
+
chunkJE77HYXB_cjs.__privateAdd(this, _organization);
|
25
|
+
chunkJE77HYXB_cjs.__privateAdd(this, _domain);
|
26
|
+
chunkJE77HYXB_cjs.__privateAdd(this, _clientConfig);
|
27
|
+
chunkJE77HYXB_cjs.__privateAdd(this, _interceptors);
|
34
28
|
debug("new client instance %O", options);
|
35
|
-
__privateSet(this, _baseUrl, baseURL(options.organization ?? "", options.domain));
|
36
|
-
__privateSet(this, _accessToken, options.accessToken);
|
37
|
-
__privateSet(this, _organization, options.organization ?? "");
|
38
|
-
__privateSet(this, _domain, options.domain);
|
29
|
+
chunkJE77HYXB_cjs.__privateSet(this, _baseUrl, baseURL(options.organization ?? "", options.domain));
|
30
|
+
chunkJE77HYXB_cjs.__privateSet(this, _accessToken, options.accessToken);
|
31
|
+
chunkJE77HYXB_cjs.__privateSet(this, _organization, options.organization ?? "");
|
32
|
+
chunkJE77HYXB_cjs.__privateSet(this, _domain, options.domain);
|
39
33
|
const fetchConfig = {
|
40
34
|
timeout: options.timeout || config__default.default.client.timeout,
|
41
35
|
fetch: options.fetch,
|
@@ -46,13 +40,13 @@ const _ApiClient = class _ApiClient {
|
|
46
40
|
...customHeaders,
|
47
41
|
"Accept": "application/vnd.api+json",
|
48
42
|
"Content-Type": "application/vnd.api+json",
|
49
|
-
"Authorization": "Bearer " + __privateGet(this, _accessToken)
|
43
|
+
"Authorization": "Bearer " + chunkJE77HYXB_cjs.__privateGet(this, _accessToken)
|
50
44
|
};
|
51
45
|
if (options.userAgent) headers["User-Agent"] = options.userAgent;
|
52
46
|
fetchConfig.headers = headers;
|
53
|
-
__privateSet(this, _clientConfig, fetchConfig);
|
47
|
+
chunkJE77HYXB_cjs.__privateSet(this, _clientConfig, fetchConfig);
|
54
48
|
debug("fetch config: %O", fetchConfig);
|
55
|
-
__privateSet(this, _interceptors, {});
|
49
|
+
chunkJE77HYXB_cjs.__privateSet(this, _interceptors, {});
|
56
50
|
}
|
57
51
|
static create(options) {
|
58
52
|
if ((!options.organization || !options.domain) && options.accessToken) {
|
@@ -65,11 +59,11 @@ const _ApiClient = class _ApiClient {
|
|
65
59
|
return new _ApiClient(options);
|
66
60
|
}
|
67
61
|
get interceptors() {
|
68
|
-
return __privateGet(this, _interceptors);
|
62
|
+
return chunkJE77HYXB_cjs.__privateGet(this, _interceptors);
|
69
63
|
}
|
70
64
|
get requestHeaders() {
|
71
|
-
if (!__privateGet(this, _clientConfig).headers) __privateGet(this, _clientConfig).headers = {};
|
72
|
-
return __privateGet(this, _clientConfig).headers;
|
65
|
+
if (!chunkJE77HYXB_cjs.__privateGet(this, _clientConfig).headers) chunkJE77HYXB_cjs.__privateGet(this, _clientConfig).headers = {};
|
66
|
+
return chunkJE77HYXB_cjs.__privateGet(this, _clientConfig).headers;
|
73
67
|
}
|
74
68
|
/*
|
75
69
|
set requestHeaders(headers: RequestHeaders) {
|
@@ -78,18 +72,18 @@ const _ApiClient = class _ApiClient {
|
|
78
72
|
*/
|
79
73
|
config(config2) {
|
80
74
|
debug("config %o", config2);
|
81
|
-
const def = __privateGet(this, _clientConfig);
|
75
|
+
const def = chunkJE77HYXB_cjs.__privateGet(this, _clientConfig);
|
82
76
|
if (!def.headers) def.headers = {};
|
83
77
|
if (config2.timeout) def.timeout = config2.timeout;
|
84
78
|
if (config2.userAgent) this.userAgent(config2.userAgent);
|
85
|
-
if (config2.fetch) __privateGet(this, _clientConfig).fetch = config2.fetch;
|
86
|
-
if (config2.refreshToken) __privateGet(this, _clientConfig).refreshToken = config2.refreshToken;
|
87
|
-
if (config2.organization || config2.domain) __privateSet(this, _baseUrl, baseURL(config2.organization || __privateGet(this, _organization), config2.domain || __privateGet(this, _domain)));
|
88
|
-
if (config2.organization) __privateSet(this, _organization, config2.organization);
|
89
|
-
if (config2.domain) __privateSet(this, _domain, config2.domain);
|
79
|
+
if (config2.fetch) chunkJE77HYXB_cjs.__privateGet(this, _clientConfig).fetch = config2.fetch;
|
80
|
+
if (config2.refreshToken) chunkJE77HYXB_cjs.__privateGet(this, _clientConfig).refreshToken = config2.refreshToken;
|
81
|
+
if (config2.organization || config2.domain) chunkJE77HYXB_cjs.__privateSet(this, _baseUrl, baseURL(config2.organization || chunkJE77HYXB_cjs.__privateGet(this, _organization), config2.domain || chunkJE77HYXB_cjs.__privateGet(this, _domain)));
|
82
|
+
if (config2.organization) chunkJE77HYXB_cjs.__privateSet(this, _organization, config2.organization);
|
83
|
+
if (config2.domain) chunkJE77HYXB_cjs.__privateSet(this, _domain, config2.domain);
|
90
84
|
if (config2.accessToken) {
|
91
|
-
__privateSet(this, _accessToken, config2.accessToken);
|
92
|
-
def.headers.Authorization = "Bearer " + __privateGet(this, _accessToken);
|
85
|
+
chunkJE77HYXB_cjs.__privateSet(this, _accessToken, config2.accessToken);
|
86
|
+
def.headers.Authorization = "Bearer " + chunkJE77HYXB_cjs.__privateGet(this, _accessToken);
|
93
87
|
}
|
94
88
|
if (config2.headers) def.headers = { ...def.headers, ...this.customHeaders(config2.headers) };
|
95
89
|
return this;
|
@@ -101,14 +95,16 @@ const _ApiClient = class _ApiClient {
|
|
101
95
|
async request(method, path, body, options) {
|
102
96
|
debug("request %s %s, %O, %O", method, path, body || {}, options || {});
|
103
97
|
if (options?.userAgent) debug("User-Agent header ignored in request config");
|
104
|
-
const baseUrl = options?.organization ? baseURL(options.organization, options.domain) : __privateGet(this, _baseUrl);
|
98
|
+
const baseUrl = options?.organization ? baseURL(options.organization, options.domain) : chunkJE77HYXB_cjs.__privateGet(this, _baseUrl);
|
105
99
|
const url = new URL(`${baseUrl}/${path}`);
|
106
100
|
const bodyData = body ? JSON.stringify({ data: body }) : void 0;
|
107
101
|
const headers = { ...this.requestHeaders, ...this.customHeaders(options?.headers) };
|
108
|
-
const accessToken = options?.accessToken || __privateGet(this, _accessToken);
|
102
|
+
const accessToken = options?.accessToken || chunkJE77HYXB_cjs.__privateGet(this, _accessToken);
|
109
103
|
if (accessToken) headers.Authorization = "Bearer " + accessToken;
|
104
|
+
const refreshToken = options?.refreshToken || chunkJE77HYXB_cjs.__privateGet(this, _clientConfig).refreshToken;
|
105
|
+
const fetchFunction = options?.fetch || chunkJE77HYXB_cjs.__privateGet(this, _clientConfig).fetch;
|
110
106
|
const requestOptions = { method, body: bodyData, headers };
|
111
|
-
const timeout = options?.timeout || __privateGet(this, _clientConfig).timeout;
|
107
|
+
const timeout = options?.timeout || chunkJE77HYXB_cjs.__privateGet(this, _clientConfig).timeout;
|
112
108
|
if (timeout) {
|
113
109
|
if (AbortSignal?.timeout) requestOptions.signal = AbortSignal.timeout(timeout);
|
114
110
|
else debug("Timeout not set. Undefined function: %s", "AbortSignal.timeout");
|
@@ -118,14 +114,14 @@ const _ApiClient = class _ApiClient {
|
|
118
114
|
});
|
119
115
|
const clientOptions = {
|
120
116
|
interceptors: this.interceptors,
|
121
|
-
fetch:
|
117
|
+
fetch: fetchFunction
|
122
118
|
};
|
123
119
|
try {
|
124
120
|
return await fetch.fetchURL(url, requestOptions, clientOptions).catch((error$1) => error.handleError(error$1));
|
125
121
|
} catch (err) {
|
126
|
-
if (error.isExpiredTokenError(err) &&
|
122
|
+
if (error.isExpiredTokenError(err) && refreshToken && util.isTokenExpired(accessToken)) {
|
127
123
|
debug("Access token has expired");
|
128
|
-
const newAccessToken = await
|
124
|
+
const newAccessToken = await refreshToken(chunkJE77HYXB_cjs.__privateGet(this, _accessToken)).catch((e) => {
|
129
125
|
debug("Refresh token error: %s", e.message);
|
130
126
|
const tokenError = new error.SdkError({ message: "Error refreshing access token", type: error.ErrorType.TOKEN_REFRESH });
|
131
127
|
tokenError.source = e;
|
@@ -134,6 +130,7 @@ const _ApiClient = class _ApiClient {
|
|
134
130
|
if (newAccessToken) {
|
135
131
|
debug("Access token refreshed");
|
136
132
|
this.config({ accessToken: newAccessToken });
|
133
|
+
chunkJE77HYXB_cjs.__privateSet(this, _accessToken, newAccessToken);
|
137
134
|
if (requestOptions.headers) requestOptions.headers.Authorization = `Bearer ${newAccessToken}`;
|
138
135
|
const response = await fetch.fetchURL(url, requestOptions, clientOptions).catch((error$1) => error.handleError(error$1));
|
139
136
|
return response;
|
@@ -150,10 +147,10 @@ const _ApiClient = class _ApiClient {
|
|
150
147
|
return customHeaders;
|
151
148
|
}
|
152
149
|
get currentAccessToken() {
|
153
|
-
return __privateGet(this, _accessToken);
|
150
|
+
return chunkJE77HYXB_cjs.__privateGet(this, _accessToken);
|
154
151
|
}
|
155
152
|
get currentOrganization() {
|
156
|
-
return __privateGet(this, _organization);
|
153
|
+
return chunkJE77HYXB_cjs.__privateGet(this, _organization);
|
157
154
|
}
|
158
155
|
};
|
159
156
|
_baseUrl = new WeakMap();
|
package/lib/client.d.cts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { F as Fetch,
|
1
|
+
import { F as Fetch, c as InterceptorManager, d as FetchResponse } from './interceptor-D65i25Y7.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,
|
1
|
+
import { F as Fetch, c as InterceptorManager, d as FetchResponse } from './interceptor-D65i25Y7.js';
|
2
2
|
|
3
3
|
type RequestParams = Record<string, string | number | boolean>;
|
4
4
|
type RequestHeaders = Record<string, string>;
|