@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
@@ -1,10 +1,8 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
+
var chunkJE77HYXB_cjs = require('../chunk-JE77HYXB.cjs');
|
3
4
|
var resource = require('../resource');
|
4
5
|
|
5
|
-
var __defProp = Object.defineProperty;
|
6
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
7
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
8
6
|
const _SkuListPromotionRules = class _SkuListPromotionRules extends resource.ApiResource {
|
9
7
|
async create(resource, params, options) {
|
10
8
|
return this.resources.create({ ...resource, type: _SkuListPromotionRules.TYPE }, params, options);
|
@@ -40,9 +38,10 @@ const _SkuListPromotionRules = class _SkuListPromotionRules extends resource.Api
|
|
40
38
|
return _SkuListPromotionRules.TYPE;
|
41
39
|
}
|
42
40
|
};
|
43
|
-
__publicField(_SkuListPromotionRules, "TYPE", "sku_list_promotion_rules");
|
41
|
+
chunkJE77HYXB_cjs.__publicField(_SkuListPromotionRules, "TYPE", "sku_list_promotion_rules");
|
44
42
|
let SkuListPromotionRules = _SkuListPromotionRules;
|
45
|
-
|
43
|
+
const instance = new SkuListPromotionRules();
|
44
|
+
var sku_list_promotion_rules_default = instance;
|
46
45
|
|
47
46
|
module.exports = sku_list_promotion_rules_default;
|
48
47
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { i4 as SkuListPromotionRule, i5 as SkuListPromotionRuleCreate, i7 as SkuListPromotionRuleSort, kE as SkuListPromotionRuleType, i6 as SkuListPromotionRuleUpdate, bc as default } from '../api-Bq9emZm-.cjs';
|
2
2
|
import '../client.cjs';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-D65i25Y7.cjs';
|
4
4
|
import '../types.cjs';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { i4 as SkuListPromotionRule, i5 as SkuListPromotionRuleCreate, i7 as SkuListPromotionRuleSort, kE as SkuListPromotionRuleType, i6 as SkuListPromotionRuleUpdate, bc as default } from '../api-C5qyxFpD.js';
|
2
2
|
import '../client.js';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-D65i25Y7.js';
|
4
4
|
import '../types.js';
|
@@ -1,8 +1,6 @@
|
|
1
|
+
import { __publicField } from '../chunk-AQ5VUG5P.js';
|
1
2
|
import { ApiResource } from '../resource';
|
2
3
|
|
3
|
-
var __defProp = Object.defineProperty;
|
4
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
6
4
|
const _SkuListPromotionRules = class _SkuListPromotionRules extends ApiResource {
|
7
5
|
async create(resource, params, options) {
|
8
6
|
return this.resources.create({ ...resource, type: _SkuListPromotionRules.TYPE }, params, options);
|
@@ -40,6 +38,7 @@ const _SkuListPromotionRules = class _SkuListPromotionRules extends ApiResource
|
|
40
38
|
};
|
41
39
|
__publicField(_SkuListPromotionRules, "TYPE", "sku_list_promotion_rules");
|
42
40
|
let SkuListPromotionRules = _SkuListPromotionRules;
|
43
|
-
|
41
|
+
const instance = new SkuListPromotionRules();
|
42
|
+
var sku_list_promotion_rules_default = instance;
|
44
43
|
|
45
44
|
export { sku_list_promotion_rules_default as default };
|
@@ -1,10 +1,8 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
+
var chunkJE77HYXB_cjs = require('../chunk-JE77HYXB.cjs');
|
3
4
|
var resource = require('../resource');
|
4
5
|
|
5
|
-
var __defProp = Object.defineProperty;
|
6
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
7
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
8
6
|
const _SkuLists = class _SkuLists extends resource.ApiResource {
|
9
7
|
async create(resource, params, options) {
|
10
8
|
return this.resources.create({ ...resource, type: _SkuLists.TYPE }, params, options);
|
@@ -56,9 +54,10 @@ const _SkuLists = class _SkuLists extends resource.ApiResource {
|
|
56
54
|
return _SkuLists.TYPE;
|
57
55
|
}
|
58
56
|
};
|
59
|
-
__publicField(_SkuLists, "TYPE", "sku_lists");
|
57
|
+
chunkJE77HYXB_cjs.__publicField(_SkuLists, "TYPE", "sku_lists");
|
60
58
|
let SkuLists = _SkuLists;
|
61
|
-
|
59
|
+
const instance = new SkuLists();
|
60
|
+
var sku_lists_default = instance;
|
62
61
|
|
63
62
|
module.exports = sku_lists_default;
|
64
63
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { i8 as SkuList, i9 as SkuListCreate, ib as SkuListSort, km as SkuListType, ia as SkuListUpdate, bd as default } from '../api-Bq9emZm-.cjs';
|
2
2
|
import '../client.cjs';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-D65i25Y7.cjs';
|
4
4
|
import '../types.cjs';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { i8 as SkuList, i9 as SkuListCreate, ib as SkuListSort, km as SkuListType, ia as SkuListUpdate, bd as default } from '../api-C5qyxFpD.js';
|
2
2
|
import '../client.js';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-D65i25Y7.js';
|
4
4
|
import '../types.js';
|
@@ -1,8 +1,6 @@
|
|
1
|
+
import { __publicField } from '../chunk-AQ5VUG5P.js';
|
1
2
|
import { ApiResource } from '../resource';
|
2
3
|
|
3
|
-
var __defProp = Object.defineProperty;
|
4
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
6
4
|
const _SkuLists = class _SkuLists extends ApiResource {
|
7
5
|
async create(resource, params, options) {
|
8
6
|
return this.resources.create({ ...resource, type: _SkuLists.TYPE }, params, options);
|
@@ -56,6 +54,7 @@ const _SkuLists = class _SkuLists extends ApiResource {
|
|
56
54
|
};
|
57
55
|
__publicField(_SkuLists, "TYPE", "sku_lists");
|
58
56
|
let SkuLists = _SkuLists;
|
59
|
-
|
57
|
+
const instance = new SkuLists();
|
58
|
+
var sku_lists_default = instance;
|
60
59
|
|
61
60
|
export { sku_lists_default as default };
|
@@ -1,10 +1,8 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
+
var chunkJE77HYXB_cjs = require('../chunk-JE77HYXB.cjs');
|
3
4
|
var resource = require('../resource');
|
4
5
|
|
5
|
-
var __defProp = Object.defineProperty;
|
6
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
7
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
8
6
|
const _SkuOptions = class _SkuOptions extends resource.ApiResource {
|
9
7
|
async create(resource, params, options) {
|
10
8
|
return this.resources.create({ ...resource, type: _SkuOptions.TYPE }, params, options);
|
@@ -35,6 +33,12 @@ const _SkuOptions = class _SkuOptions extends resource.ApiResource {
|
|
35
33
|
const _skuOptionId = skuOptionId.id || skuOptionId;
|
36
34
|
return this.resources.fetch({ type: "versions" }, `sku_options/${_skuOptionId}/versions`, params, options);
|
37
35
|
}
|
36
|
+
async _add_tags(id, triggerValue, params, options) {
|
37
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _SkuOptions.TYPE, _add_tags: triggerValue }, params, options);
|
38
|
+
}
|
39
|
+
async _remove_tags(id, triggerValue, params, options) {
|
40
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _SkuOptions.TYPE, _remove_tags: triggerValue }, params, options);
|
41
|
+
}
|
38
42
|
isSkuOption(resource) {
|
39
43
|
return resource.type && resource.type === _SkuOptions.TYPE;
|
40
44
|
}
|
@@ -48,9 +52,10 @@ const _SkuOptions = class _SkuOptions extends resource.ApiResource {
|
|
48
52
|
return _SkuOptions.TYPE;
|
49
53
|
}
|
50
54
|
};
|
51
|
-
__publicField(_SkuOptions, "TYPE", "sku_options");
|
55
|
+
chunkJE77HYXB_cjs.__publicField(_SkuOptions, "TYPE", "sku_options");
|
52
56
|
let SkuOptions = _SkuOptions;
|
53
|
-
|
57
|
+
const instance = new SkuOptions();
|
58
|
+
var sku_options_default = instance;
|
54
59
|
|
55
60
|
module.exports = sku_options_default;
|
56
61
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { ic as SkuOption, id as SkuOptionCreate, ig as SkuOptionSort, k2 as SkuOptionType, ie as SkuOptionUpdate, be as default } from '../api-Bq9emZm-.cjs';
|
2
2
|
import '../client.cjs';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-D65i25Y7.cjs';
|
4
4
|
import '../types.cjs';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { ic as SkuOption, id as SkuOptionCreate, ig as SkuOptionSort, k2 as SkuOptionType, ie as SkuOptionUpdate, be as default } from '../api-C5qyxFpD.js';
|
2
2
|
import '../client.js';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-D65i25Y7.js';
|
4
4
|
import '../types.js';
|
@@ -1,8 +1,6 @@
|
|
1
|
+
import { __publicField } from '../chunk-AQ5VUG5P.js';
|
1
2
|
import { ApiResource } from '../resource';
|
2
3
|
|
3
|
-
var __defProp = Object.defineProperty;
|
4
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
6
4
|
const _SkuOptions = class _SkuOptions extends ApiResource {
|
7
5
|
async create(resource, params, options) {
|
8
6
|
return this.resources.create({ ...resource, type: _SkuOptions.TYPE }, params, options);
|
@@ -33,6 +31,12 @@ const _SkuOptions = class _SkuOptions extends ApiResource {
|
|
33
31
|
const _skuOptionId = skuOptionId.id || skuOptionId;
|
34
32
|
return this.resources.fetch({ type: "versions" }, `sku_options/${_skuOptionId}/versions`, params, options);
|
35
33
|
}
|
34
|
+
async _add_tags(id, triggerValue, params, options) {
|
35
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _SkuOptions.TYPE, _add_tags: triggerValue }, params, options);
|
36
|
+
}
|
37
|
+
async _remove_tags(id, triggerValue, params, options) {
|
38
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _SkuOptions.TYPE, _remove_tags: triggerValue }, params, options);
|
39
|
+
}
|
36
40
|
isSkuOption(resource) {
|
37
41
|
return resource.type && resource.type === _SkuOptions.TYPE;
|
38
42
|
}
|
@@ -48,6 +52,7 @@ const _SkuOptions = class _SkuOptions extends ApiResource {
|
|
48
52
|
};
|
49
53
|
__publicField(_SkuOptions, "TYPE", "sku_options");
|
50
54
|
let SkuOptions = _SkuOptions;
|
51
|
-
|
55
|
+
const instance = new SkuOptions();
|
56
|
+
var sku_options_default = instance;
|
52
57
|
|
53
58
|
export { sku_options_default as default };
|
package/lib/resources/skus.cjs
CHANGED
@@ -1,10 +1,8 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
+
var chunkJE77HYXB_cjs = require('../chunk-JE77HYXB.cjs');
|
3
4
|
var resource = require('../resource');
|
4
5
|
|
5
|
-
var __defProp = Object.defineProperty;
|
6
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
7
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
8
6
|
const _Skus = class _Skus extends resource.ApiResource {
|
9
7
|
async create(resource, params, options) {
|
10
8
|
return this.resources.create({ ...resource, type: _Skus.TYPE }, params, options);
|
@@ -79,6 +77,12 @@ const _Skus = class _Skus extends resource.ApiResource {
|
|
79
77
|
const _skuId = skuId.id || skuId;
|
80
78
|
return this.resources.fetch({ type: "stock_locations" }, `skus/${_skuId}/jwt_stock_locations`, params, options);
|
81
79
|
}
|
80
|
+
async _add_tags(id, triggerValue, params, options) {
|
81
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Skus.TYPE, _add_tags: triggerValue }, params, options);
|
82
|
+
}
|
83
|
+
async _remove_tags(id, triggerValue, params, options) {
|
84
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Skus.TYPE, _remove_tags: triggerValue }, params, options);
|
85
|
+
}
|
82
86
|
isSku(resource) {
|
83
87
|
return resource.type && resource.type === _Skus.TYPE;
|
84
88
|
}
|
@@ -92,9 +96,10 @@ const _Skus = class _Skus extends resource.ApiResource {
|
|
92
96
|
return _Skus.TYPE;
|
93
97
|
}
|
94
98
|
};
|
95
|
-
__publicField(_Skus, "TYPE", "skus");
|
99
|
+
chunkJE77HYXB_cjs.__publicField(_Skus, "TYPE", "skus");
|
96
100
|
let Skus = _Skus;
|
97
|
-
|
101
|
+
const instance = new Skus();
|
102
|
+
var skus_default = instance;
|
98
103
|
|
99
104
|
module.exports = skus_default;
|
100
105
|
|
package/lib/resources/skus.d.cts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { ih as Sku, ii as SkuCreate, ik as SkuSort, k_ as SkuType, ij as SkuUpdate, bf as default } from '../api-Bq9emZm-.cjs';
|
2
2
|
import '../client.cjs';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-D65i25Y7.cjs';
|
4
4
|
import '../types.cjs';
|
package/lib/resources/skus.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { ih as Sku, ii as SkuCreate, ik as SkuSort, k_ as SkuType, ij as SkuUpdate, bf as default } from '../api-C5qyxFpD.js';
|
2
2
|
import '../client.js';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-D65i25Y7.js';
|
4
4
|
import '../types.js';
|
package/lib/resources/skus.js
CHANGED
@@ -1,8 +1,6 @@
|
|
1
|
+
import { __publicField } from '../chunk-AQ5VUG5P.js';
|
1
2
|
import { ApiResource } from '../resource';
|
2
3
|
|
3
|
-
var __defProp = Object.defineProperty;
|
4
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
6
4
|
const _Skus = class _Skus extends ApiResource {
|
7
5
|
async create(resource, params, options) {
|
8
6
|
return this.resources.create({ ...resource, type: _Skus.TYPE }, params, options);
|
@@ -77,6 +75,12 @@ const _Skus = class _Skus extends ApiResource {
|
|
77
75
|
const _skuId = skuId.id || skuId;
|
78
76
|
return this.resources.fetch({ type: "stock_locations" }, `skus/${_skuId}/jwt_stock_locations`, params, options);
|
79
77
|
}
|
78
|
+
async _add_tags(id, triggerValue, params, options) {
|
79
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Skus.TYPE, _add_tags: triggerValue }, params, options);
|
80
|
+
}
|
81
|
+
async _remove_tags(id, triggerValue, params, options) {
|
82
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Skus.TYPE, _remove_tags: triggerValue }, params, options);
|
83
|
+
}
|
80
84
|
isSku(resource) {
|
81
85
|
return resource.type && resource.type === _Skus.TYPE;
|
82
86
|
}
|
@@ -92,6 +96,7 @@ const _Skus = class _Skus extends ApiResource {
|
|
92
96
|
};
|
93
97
|
__publicField(_Skus, "TYPE", "skus");
|
94
98
|
let Skus = _Skus;
|
95
|
-
|
99
|
+
const instance = new Skus();
|
100
|
+
var skus_default = instance;
|
96
101
|
|
97
102
|
export { skus_default as default };
|
@@ -1,10 +1,8 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
+
var chunkJE77HYXB_cjs = require('../chunk-JE77HYXB.cjs');
|
3
4
|
var resource = require('../resource');
|
4
5
|
|
5
|
-
var __defProp = Object.defineProperty;
|
6
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
7
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
8
6
|
const _StockItems = class _StockItems extends resource.ApiResource {
|
9
7
|
async create(resource, params, options) {
|
10
8
|
return this.resources.create({ ...resource, type: _StockItems.TYPE }, params, options);
|
@@ -55,9 +53,10 @@ const _StockItems = class _StockItems extends resource.ApiResource {
|
|
55
53
|
return _StockItems.TYPE;
|
56
54
|
}
|
57
55
|
};
|
58
|
-
__publicField(_StockItems, "TYPE", "stock_items");
|
56
|
+
chunkJE77HYXB_cjs.__publicField(_StockItems, "TYPE", "stock_items");
|
59
57
|
let StockItems = _StockItems;
|
60
|
-
|
58
|
+
const instance = new StockItems();
|
59
|
+
var stock_items_default = instance;
|
61
60
|
|
62
61
|
module.exports = stock_items_default;
|
63
62
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { il as StockItem, im as StockItemCreate, ip as StockItemSort, kZ as StockItemType, io as StockItemUpdate, bg as default } from '../api-Bq9emZm-.cjs';
|
2
2
|
import '../client.cjs';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-D65i25Y7.cjs';
|
4
4
|
import '../types.cjs';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { il as StockItem, im as StockItemCreate, ip as StockItemSort, kZ as StockItemType, io as StockItemUpdate, bg as default } from '../api-C5qyxFpD.js';
|
2
2
|
import '../client.js';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-D65i25Y7.js';
|
4
4
|
import '../types.js';
|
@@ -1,8 +1,6 @@
|
|
1
|
+
import { __publicField } from '../chunk-AQ5VUG5P.js';
|
1
2
|
import { ApiResource } from '../resource';
|
2
3
|
|
3
|
-
var __defProp = Object.defineProperty;
|
4
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
6
4
|
const _StockItems = class _StockItems extends ApiResource {
|
7
5
|
async create(resource, params, options) {
|
8
6
|
return this.resources.create({ ...resource, type: _StockItems.TYPE }, params, options);
|
@@ -55,6 +53,7 @@ const _StockItems = class _StockItems extends ApiResource {
|
|
55
53
|
};
|
56
54
|
__publicField(_StockItems, "TYPE", "stock_items");
|
57
55
|
let StockItems = _StockItems;
|
58
|
-
|
56
|
+
const instance = new StockItems();
|
57
|
+
var stock_items_default = instance;
|
59
58
|
|
60
59
|
export { stock_items_default as default };
|
@@ -1,10 +1,8 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
+
var chunkJE77HYXB_cjs = require('../chunk-JE77HYXB.cjs');
|
3
4
|
var resource = require('../resource');
|
4
5
|
|
5
|
-
var __defProp = Object.defineProperty;
|
6
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
7
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
8
6
|
const _StockLineItems = class _StockLineItems extends resource.ApiResource {
|
9
7
|
async create(resource, params, options) {
|
10
8
|
return this.resources.create({ ...resource, type: _StockLineItems.TYPE }, params, options);
|
@@ -61,9 +59,10 @@ const _StockLineItems = class _StockLineItems extends resource.ApiResource {
|
|
61
59
|
return _StockLineItems.TYPE;
|
62
60
|
}
|
63
61
|
};
|
64
|
-
__publicField(_StockLineItems, "TYPE", "stock_line_items");
|
62
|
+
chunkJE77HYXB_cjs.__publicField(_StockLineItems, "TYPE", "stock_line_items");
|
65
63
|
let StockLineItems = _StockLineItems;
|
66
|
-
|
64
|
+
const instance = new StockLineItems();
|
65
|
+
var stock_line_items_default = instance;
|
67
66
|
|
68
67
|
module.exports = stock_line_items_default;
|
69
68
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { iq as StockLineItem, ir as StockLineItemCreate, it as StockLineItemSort, kb as StockLineItemType, is as StockLineItemUpdate, bh as default } from '../api-Bq9emZm-.cjs';
|
2
2
|
import '../client.cjs';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-D65i25Y7.cjs';
|
4
4
|
import '../types.cjs';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { iq as StockLineItem, ir as StockLineItemCreate, it as StockLineItemSort, kb as StockLineItemType, is as StockLineItemUpdate, bh as default } from '../api-C5qyxFpD.js';
|
2
2
|
import '../client.js';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-D65i25Y7.js';
|
4
4
|
import '../types.js';
|
@@ -1,8 +1,6 @@
|
|
1
|
+
import { __publicField } from '../chunk-AQ5VUG5P.js';
|
1
2
|
import { ApiResource } from '../resource';
|
2
3
|
|
3
|
-
var __defProp = Object.defineProperty;
|
4
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
6
4
|
const _StockLineItems = class _StockLineItems extends ApiResource {
|
7
5
|
async create(resource, params, options) {
|
8
6
|
return this.resources.create({ ...resource, type: _StockLineItems.TYPE }, params, options);
|
@@ -61,6 +59,7 @@ const _StockLineItems = class _StockLineItems extends ApiResource {
|
|
61
59
|
};
|
62
60
|
__publicField(_StockLineItems, "TYPE", "stock_line_items");
|
63
61
|
let StockLineItems = _StockLineItems;
|
64
|
-
|
62
|
+
const instance = new StockLineItems();
|
63
|
+
var stock_line_items_default = instance;
|
65
64
|
|
66
65
|
export { stock_line_items_default as default };
|
@@ -1,10 +1,8 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
+
var chunkJE77HYXB_cjs = require('../chunk-JE77HYXB.cjs');
|
3
4
|
var resource = require('../resource');
|
4
5
|
|
5
|
-
var __defProp = Object.defineProperty;
|
6
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
7
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
8
6
|
const _StockLocations = class _StockLocations extends resource.ApiResource {
|
9
7
|
async create(resource, params, options) {
|
10
8
|
return this.resources.create({ ...resource, type: _StockLocations.TYPE }, params, options);
|
@@ -60,9 +58,10 @@ const _StockLocations = class _StockLocations extends resource.ApiResource {
|
|
60
58
|
return _StockLocations.TYPE;
|
61
59
|
}
|
62
60
|
};
|
63
|
-
__publicField(_StockLocations, "TYPE", "stock_locations");
|
61
|
+
chunkJE77HYXB_cjs.__publicField(_StockLocations, "TYPE", "stock_locations");
|
64
62
|
let StockLocations = _StockLocations;
|
65
|
-
|
63
|
+
const instance = new StockLocations();
|
64
|
+
var stock_locations_default = instance;
|
66
65
|
|
67
66
|
module.exports = stock_locations_default;
|
68
67
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { iu as StockLocation, iv as StockLocationCreate, ix as StockLocationSort, kY as StockLocationType, iw as StockLocationUpdate, bi as default } from '../api-Bq9emZm-.cjs';
|
2
2
|
import '../client.cjs';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-D65i25Y7.cjs';
|
4
4
|
import '../types.cjs';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { iu as StockLocation, iv as StockLocationCreate, ix as StockLocationSort, kY as StockLocationType, iw as StockLocationUpdate, bi as default } from '../api-C5qyxFpD.js';
|
2
2
|
import '../client.js';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-D65i25Y7.js';
|
4
4
|
import '../types.js';
|
@@ -1,8 +1,6 @@
|
|
1
|
+
import { __publicField } from '../chunk-AQ5VUG5P.js';
|
1
2
|
import { ApiResource } from '../resource';
|
2
3
|
|
3
|
-
var __defProp = Object.defineProperty;
|
4
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
6
4
|
const _StockLocations = class _StockLocations extends ApiResource {
|
7
5
|
async create(resource, params, options) {
|
8
6
|
return this.resources.create({ ...resource, type: _StockLocations.TYPE }, params, options);
|
@@ -60,6 +58,7 @@ const _StockLocations = class _StockLocations extends ApiResource {
|
|
60
58
|
};
|
61
59
|
__publicField(_StockLocations, "TYPE", "stock_locations");
|
62
60
|
let StockLocations = _StockLocations;
|
63
|
-
|
61
|
+
const instance = new StockLocations();
|
62
|
+
var stock_locations_default = instance;
|
64
63
|
|
65
64
|
export { stock_locations_default as default };
|
@@ -1,10 +1,8 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
+
var chunkJE77HYXB_cjs = require('../chunk-JE77HYXB.cjs');
|
3
4
|
var resource = require('../resource');
|
4
5
|
|
5
|
-
var __defProp = Object.defineProperty;
|
6
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
7
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
8
6
|
const _StockReservations = class _StockReservations extends resource.ApiResource {
|
9
7
|
async create(resource, params, options) {
|
10
8
|
return this.resources.create({ ...resource, type: _StockReservations.TYPE }, params, options);
|
@@ -59,9 +57,10 @@ const _StockReservations = class _StockReservations extends resource.ApiResource
|
|
59
57
|
return _StockReservations.TYPE;
|
60
58
|
}
|
61
59
|
};
|
62
|
-
__publicField(_StockReservations, "TYPE", "stock_reservations");
|
60
|
+
chunkJE77HYXB_cjs.__publicField(_StockReservations, "TYPE", "stock_reservations");
|
63
61
|
let StockReservations = _StockReservations;
|
64
|
-
|
62
|
+
const instance = new StockReservations();
|
63
|
+
var stock_reservations_default = instance;
|
65
64
|
|
66
65
|
module.exports = stock_reservations_default;
|
67
66
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { iy as StockReservation, iz as StockReservationCreate, iB as StockReservationSort, kd as StockReservationType, iA as StockReservationUpdate, bj as default } from '../api-Bq9emZm-.cjs';
|
2
2
|
import '../client.cjs';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-D65i25Y7.cjs';
|
4
4
|
import '../types.cjs';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { iy as StockReservation, iz as StockReservationCreate, iB as StockReservationSort, kd as StockReservationType, iA as StockReservationUpdate, bj as default } from '../api-C5qyxFpD.js';
|
2
2
|
import '../client.js';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-D65i25Y7.js';
|
4
4
|
import '../types.js';
|
@@ -1,8 +1,6 @@
|
|
1
|
+
import { __publicField } from '../chunk-AQ5VUG5P.js';
|
1
2
|
import { ApiResource } from '../resource';
|
2
3
|
|
3
|
-
var __defProp = Object.defineProperty;
|
4
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
6
4
|
const _StockReservations = class _StockReservations extends ApiResource {
|
7
5
|
async create(resource, params, options) {
|
8
6
|
return this.resources.create({ ...resource, type: _StockReservations.TYPE }, params, options);
|
@@ -59,6 +57,7 @@ const _StockReservations = class _StockReservations extends ApiResource {
|
|
59
57
|
};
|
60
58
|
__publicField(_StockReservations, "TYPE", "stock_reservations");
|
61
59
|
let StockReservations = _StockReservations;
|
62
|
-
|
60
|
+
const instance = new StockReservations();
|
61
|
+
var stock_reservations_default = instance;
|
63
62
|
|
64
63
|
export { stock_reservations_default as default };
|
@@ -1,10 +1,8 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
+
var chunkJE77HYXB_cjs = require('../chunk-JE77HYXB.cjs');
|
3
4
|
var resource = require('../resource');
|
4
5
|
|
5
|
-
var __defProp = Object.defineProperty;
|
6
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
7
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
8
6
|
const _StockTransfers = class _StockTransfers extends resource.ApiResource {
|
9
7
|
async create(resource, params, options) {
|
10
8
|
return this.resources.create({ ...resource, type: _StockTransfers.TYPE }, params, options);
|
@@ -82,9 +80,10 @@ const _StockTransfers = class _StockTransfers extends resource.ApiResource {
|
|
82
80
|
return _StockTransfers.TYPE;
|
83
81
|
}
|
84
82
|
};
|
85
|
-
__publicField(_StockTransfers, "TYPE", "stock_transfers");
|
83
|
+
chunkJE77HYXB_cjs.__publicField(_StockTransfers, "TYPE", "stock_transfers");
|
86
84
|
let StockTransfers = _StockTransfers;
|
87
|
-
|
85
|
+
const instance = new StockTransfers();
|
86
|
+
var stock_transfers_default = instance;
|
88
87
|
|
89
88
|
module.exports = stock_transfers_default;
|
90
89
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { iC as StockTransfer, iD as StockTransferCreate, iF as StockTransferSort, kX as StockTransferType, iE as StockTransferUpdate, bk as default } from '../api-Bq9emZm-.cjs';
|
2
2
|
import '../client.cjs';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-D65i25Y7.cjs';
|
4
4
|
import '../types.cjs';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { iC as StockTransfer, iD as StockTransferCreate, iF as StockTransferSort, kX as StockTransferType, iE as StockTransferUpdate, bk as default } from '../api-C5qyxFpD.js';
|
2
2
|
import '../client.js';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-D65i25Y7.js';
|
4
4
|
import '../types.js';
|
@@ -1,8 +1,6 @@
|
|
1
|
+
import { __publicField } from '../chunk-AQ5VUG5P.js';
|
1
2
|
import { ApiResource } from '../resource';
|
2
3
|
|
3
|
-
var __defProp = Object.defineProperty;
|
4
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
6
4
|
const _StockTransfers = class _StockTransfers extends ApiResource {
|
7
5
|
async create(resource, params, options) {
|
8
6
|
return this.resources.create({ ...resource, type: _StockTransfers.TYPE }, params, options);
|
@@ -82,6 +80,7 @@ const _StockTransfers = class _StockTransfers extends ApiResource {
|
|
82
80
|
};
|
83
81
|
__publicField(_StockTransfers, "TYPE", "stock_transfers");
|
84
82
|
let StockTransfers = _StockTransfers;
|
85
|
-
|
83
|
+
const instance = new StockTransfers();
|
84
|
+
var stock_transfers_default = instance;
|
86
85
|
|
87
86
|
export { stock_transfers_default as default };
|