@commercelayer/sdk 7.0.0-beta.19 → 7.0.0-beta.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{api-CUXmETkx.d.ts → api-DDgIE2i8.d.ts} +6 -3
- package/lib/{api-CRmSToGa.d.cts → api-DmIZO_Np.d.cts} +6 -3
- package/lib/api.cjs +2 -0
- package/lib/api.cjs.map +1 -0
- package/lib/api.d.cts +1 -1
- package/lib/api.d.ts +1 -1
- package/lib/api.js +2 -0
- package/lib/api.js.map +1 -0
- package/lib/client.cjs +2 -0
- package/lib/client.cjs.map +1 -0
- package/lib/client.js +2 -0
- package/lib/client.js.map +1 -0
- package/lib/commercelayer.cjs +2 -0
- package/lib/commercelayer.cjs.map +1 -0
- package/lib/commercelayer.d.cts +1 -1
- package/lib/commercelayer.d.ts +1 -1
- package/lib/commercelayer.js +2 -0
- package/lib/commercelayer.js.map +1 -0
- package/lib/config.cjs +2 -0
- package/lib/config.cjs.map +1 -0
- package/lib/config.js +2 -0
- package/lib/config.js.map +1 -0
- package/lib/debug.cjs +2 -0
- package/lib/debug.cjs.map +1 -0
- package/lib/debug.js +2 -0
- package/lib/debug.js.map +1 -0
- package/lib/enum.cjs +2 -0
- package/lib/enum.cjs.map +1 -0
- package/lib/enum.d.cts +1 -1
- package/lib/enum.d.ts +1 -1
- package/lib/enum.js +2 -0
- package/lib/enum.js.map +1 -0
- package/lib/error.cjs +2 -0
- package/lib/error.cjs.map +1 -0
- package/lib/error.js +2 -0
- package/lib/error.js.map +1 -0
- package/lib/fetch.cjs +2 -0
- package/lib/fetch.cjs.map +1 -0
- package/lib/fetch.js +2 -0
- package/lib/fetch.js.map +1 -0
- package/lib/index.cjs +2 -0
- package/lib/index.cjs.map +1 -0
- package/lib/index.d.cts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -0
- package/lib/interceptor.cjs +2 -0
- package/lib/interceptor.cjs.map +1 -0
- package/lib/interceptor.js +2 -0
- package/lib/interceptor.js.map +1 -0
- package/lib/jsonapi.cjs +12 -10
- package/lib/jsonapi.cjs.map +1 -0
- package/lib/jsonapi.d.cts +1 -1
- package/lib/jsonapi.d.ts +1 -1
- package/lib/jsonapi.js +3 -1
- package/lib/jsonapi.js.map +1 -0
- package/lib/model.cjs +2 -0
- package/lib/model.cjs.map +1 -0
- package/lib/model.d.cts +1 -1
- package/lib/model.d.ts +1 -1
- package/lib/model.js +2 -0
- package/lib/model.js.map +1 -0
- package/lib/query.cjs +2 -0
- package/lib/query.cjs.map +1 -0
- package/lib/query.d.cts +1 -1
- package/lib/query.d.ts +1 -1
- package/lib/query.js +2 -0
- package/lib/query.js.map +1 -0
- package/lib/resource.cjs +11 -0
- package/lib/resource.cjs.map +1 -0
- package/lib/resource.d.cts +2 -2
- package/lib/resource.d.ts +2 -2
- package/lib/resource.js +10 -1
- package/lib/resource.js.map +1 -0
- package/lib/resources/addresses.cjs +2 -0
- package/lib/resources/addresses.cjs.map +1 -0
- package/lib/resources/addresses.d.cts +1 -1
- package/lib/resources/addresses.d.ts +1 -1
- package/lib/resources/addresses.js +2 -0
- package/lib/resources/addresses.js.map +1 -0
- package/lib/resources/adjustments.cjs +2 -0
- package/lib/resources/adjustments.cjs.map +1 -0
- package/lib/resources/adjustments.d.cts +1 -1
- package/lib/resources/adjustments.d.ts +1 -1
- package/lib/resources/adjustments.js +2 -0
- package/lib/resources/adjustments.js.map +1 -0
- package/lib/resources/adyen_gateways.cjs +2 -0
- package/lib/resources/adyen_gateways.cjs.map +1 -0
- package/lib/resources/adyen_gateways.d.cts +1 -1
- package/lib/resources/adyen_gateways.d.ts +1 -1
- package/lib/resources/adyen_gateways.js +2 -0
- package/lib/resources/adyen_gateways.js.map +1 -0
- package/lib/resources/adyen_payments.cjs +2 -0
- package/lib/resources/adyen_payments.cjs.map +1 -0
- package/lib/resources/adyen_payments.d.cts +1 -1
- package/lib/resources/adyen_payments.d.ts +1 -1
- package/lib/resources/adyen_payments.js +2 -0
- package/lib/resources/adyen_payments.js.map +1 -0
- package/lib/resources/applications.cjs +2 -0
- package/lib/resources/applications.cjs.map +1 -0
- package/lib/resources/applications.d.cts +1 -1
- package/lib/resources/applications.d.ts +1 -1
- package/lib/resources/applications.js +2 -0
- package/lib/resources/applications.js.map +1 -0
- package/lib/resources/attachments.cjs +2 -0
- package/lib/resources/attachments.cjs.map +1 -0
- package/lib/resources/attachments.d.cts +1 -1
- package/lib/resources/attachments.d.ts +1 -1
- package/lib/resources/attachments.js +2 -0
- package/lib/resources/attachments.js.map +1 -0
- package/lib/resources/authorizations.cjs +2 -0
- package/lib/resources/authorizations.cjs.map +1 -0
- package/lib/resources/authorizations.d.cts +1 -1
- package/lib/resources/authorizations.d.ts +1 -1
- package/lib/resources/authorizations.js +2 -0
- package/lib/resources/authorizations.js.map +1 -0
- package/lib/resources/avalara_accounts.cjs +2 -0
- package/lib/resources/avalara_accounts.cjs.map +1 -0
- package/lib/resources/avalara_accounts.d.cts +1 -1
- package/lib/resources/avalara_accounts.d.ts +1 -1
- package/lib/resources/avalara_accounts.js +2 -0
- package/lib/resources/avalara_accounts.js.map +1 -0
- package/lib/resources/axerve_gateways.cjs +2 -0
- package/lib/resources/axerve_gateways.cjs.map +1 -0
- package/lib/resources/axerve_gateways.d.cts +1 -1
- package/lib/resources/axerve_gateways.d.ts +1 -1
- package/lib/resources/axerve_gateways.js +2 -0
- package/lib/resources/axerve_gateways.js.map +1 -0
- package/lib/resources/axerve_payments.cjs +2 -0
- package/lib/resources/axerve_payments.cjs.map +1 -0
- package/lib/resources/axerve_payments.d.cts +1 -1
- package/lib/resources/axerve_payments.d.ts +1 -1
- package/lib/resources/axerve_payments.js +2 -0
- package/lib/resources/axerve_payments.js.map +1 -0
- package/lib/resources/bing_geocoders.cjs +2 -0
- package/lib/resources/bing_geocoders.cjs.map +1 -0
- package/lib/resources/bing_geocoders.d.cts +1 -1
- package/lib/resources/bing_geocoders.d.ts +1 -1
- package/lib/resources/bing_geocoders.js +2 -0
- package/lib/resources/bing_geocoders.js.map +1 -0
- package/lib/resources/braintree_gateways.cjs +2 -0
- package/lib/resources/braintree_gateways.cjs.map +1 -0
- package/lib/resources/braintree_gateways.d.cts +1 -1
- package/lib/resources/braintree_gateways.d.ts +1 -1
- package/lib/resources/braintree_gateways.js +2 -0
- package/lib/resources/braintree_gateways.js.map +1 -0
- package/lib/resources/braintree_payments.cjs +2 -0
- package/lib/resources/braintree_payments.cjs.map +1 -0
- package/lib/resources/braintree_payments.d.cts +1 -1
- package/lib/resources/braintree_payments.d.ts +1 -1
- package/lib/resources/braintree_payments.js +2 -0
- package/lib/resources/braintree_payments.js.map +1 -0
- package/lib/resources/bundles.cjs +2 -0
- package/lib/resources/bundles.cjs.map +1 -0
- package/lib/resources/bundles.d.cts +1 -1
- package/lib/resources/bundles.d.ts +1 -1
- package/lib/resources/bundles.js +2 -0
- package/lib/resources/bundles.js.map +1 -0
- package/lib/resources/buy_x_pay_y_promotions.cjs +2 -0
- package/lib/resources/buy_x_pay_y_promotions.cjs.map +1 -0
- package/lib/resources/buy_x_pay_y_promotions.d.cts +1 -1
- package/lib/resources/buy_x_pay_y_promotions.d.ts +1 -1
- package/lib/resources/buy_x_pay_y_promotions.js +2 -0
- package/lib/resources/buy_x_pay_y_promotions.js.map +1 -0
- package/lib/resources/captures.cjs +2 -0
- package/lib/resources/captures.cjs.map +1 -0
- package/lib/resources/captures.d.cts +1 -1
- package/lib/resources/captures.d.ts +1 -1
- package/lib/resources/captures.js +2 -0
- package/lib/resources/captures.js.map +1 -0
- package/lib/resources/carrier_accounts.cjs +2 -0
- package/lib/resources/carrier_accounts.cjs.map +1 -0
- package/lib/resources/carrier_accounts.d.cts +1 -1
- package/lib/resources/carrier_accounts.d.ts +1 -1
- package/lib/resources/carrier_accounts.js +2 -0
- package/lib/resources/carrier_accounts.js.map +1 -0
- package/lib/resources/checkout_com_gateways.cjs +2 -0
- package/lib/resources/checkout_com_gateways.cjs.map +1 -0
- package/lib/resources/checkout_com_gateways.d.cts +1 -1
- package/lib/resources/checkout_com_gateways.d.ts +1 -1
- package/lib/resources/checkout_com_gateways.js +2 -0
- package/lib/resources/checkout_com_gateways.js.map +1 -0
- package/lib/resources/checkout_com_payments.cjs +2 -0
- package/lib/resources/checkout_com_payments.cjs.map +1 -0
- package/lib/resources/checkout_com_payments.d.cts +1 -1
- package/lib/resources/checkout_com_payments.d.ts +1 -1
- package/lib/resources/checkout_com_payments.js +2 -0
- package/lib/resources/checkout_com_payments.js.map +1 -0
- package/lib/resources/cleanups.cjs +2 -0
- package/lib/resources/cleanups.cjs.map +1 -0
- package/lib/resources/cleanups.d.cts +1 -1
- package/lib/resources/cleanups.d.ts +1 -1
- package/lib/resources/cleanups.js +2 -0
- package/lib/resources/cleanups.js.map +1 -0
- package/lib/resources/coupon_codes_promotion_rules.cjs +2 -0
- package/lib/resources/coupon_codes_promotion_rules.cjs.map +1 -0
- package/lib/resources/coupon_codes_promotion_rules.d.cts +1 -1
- package/lib/resources/coupon_codes_promotion_rules.d.ts +1 -1
- package/lib/resources/coupon_codes_promotion_rules.js +2 -0
- package/lib/resources/coupon_codes_promotion_rules.js.map +1 -0
- package/lib/resources/coupon_recipients.cjs +2 -0
- package/lib/resources/coupon_recipients.cjs.map +1 -0
- package/lib/resources/coupon_recipients.d.cts +1 -1
- package/lib/resources/coupon_recipients.d.ts +1 -1
- package/lib/resources/coupon_recipients.js +2 -0
- package/lib/resources/coupon_recipients.js.map +1 -0
- package/lib/resources/coupons.cjs +2 -0
- package/lib/resources/coupons.cjs.map +1 -0
- package/lib/resources/coupons.d.cts +1 -1
- package/lib/resources/coupons.d.ts +1 -1
- package/lib/resources/coupons.js +2 -0
- package/lib/resources/coupons.js.map +1 -0
- package/lib/resources/custom_promotion_rules.cjs +2 -0
- package/lib/resources/custom_promotion_rules.cjs.map +1 -0
- package/lib/resources/custom_promotion_rules.d.cts +1 -1
- package/lib/resources/custom_promotion_rules.d.ts +1 -1
- package/lib/resources/custom_promotion_rules.js +2 -0
- package/lib/resources/custom_promotion_rules.js.map +1 -0
- package/lib/resources/customer_addresses.cjs +2 -0
- package/lib/resources/customer_addresses.cjs.map +1 -0
- package/lib/resources/customer_addresses.d.cts +1 -1
- package/lib/resources/customer_addresses.d.ts +1 -1
- package/lib/resources/customer_addresses.js +2 -0
- package/lib/resources/customer_addresses.js.map +1 -0
- package/lib/resources/customer_groups.cjs +2 -0
- package/lib/resources/customer_groups.cjs.map +1 -0
- package/lib/resources/customer_groups.d.cts +1 -1
- package/lib/resources/customer_groups.d.ts +1 -1
- package/lib/resources/customer_groups.js +2 -0
- package/lib/resources/customer_groups.js.map +1 -0
- package/lib/resources/customer_password_resets.cjs +2 -0
- package/lib/resources/customer_password_resets.cjs.map +1 -0
- package/lib/resources/customer_password_resets.d.cts +1 -1
- package/lib/resources/customer_password_resets.d.ts +1 -1
- package/lib/resources/customer_password_resets.js +2 -0
- package/lib/resources/customer_password_resets.js.map +1 -0
- package/lib/resources/customer_payment_sources.cjs +2 -0
- package/lib/resources/customer_payment_sources.cjs.map +1 -0
- package/lib/resources/customer_payment_sources.d.cts +1 -1
- package/lib/resources/customer_payment_sources.d.ts +1 -1
- package/lib/resources/customer_payment_sources.js +2 -0
- package/lib/resources/customer_payment_sources.js.map +1 -0
- package/lib/resources/customer_subscriptions.cjs +2 -0
- package/lib/resources/customer_subscriptions.cjs.map +1 -0
- package/lib/resources/customer_subscriptions.d.cts +1 -1
- package/lib/resources/customer_subscriptions.d.ts +1 -1
- package/lib/resources/customer_subscriptions.js +2 -0
- package/lib/resources/customer_subscriptions.js.map +1 -0
- package/lib/resources/customers.cjs +2 -0
- package/lib/resources/customers.cjs.map +1 -0
- package/lib/resources/customers.d.cts +1 -1
- package/lib/resources/customers.d.ts +1 -1
- package/lib/resources/customers.js +2 -0
- package/lib/resources/customers.js.map +1 -0
- package/lib/resources/delivery_lead_times.cjs +2 -0
- package/lib/resources/delivery_lead_times.cjs.map +1 -0
- package/lib/resources/delivery_lead_times.d.cts +1 -1
- package/lib/resources/delivery_lead_times.d.ts +1 -1
- package/lib/resources/delivery_lead_times.js +2 -0
- package/lib/resources/delivery_lead_times.js.map +1 -0
- package/lib/resources/discount_engine_items.cjs +2 -0
- package/lib/resources/discount_engine_items.cjs.map +1 -0
- package/lib/resources/discount_engine_items.d.cts +1 -1
- package/lib/resources/discount_engine_items.d.ts +1 -1
- package/lib/resources/discount_engine_items.js +2 -0
- package/lib/resources/discount_engine_items.js.map +1 -0
- package/lib/resources/discount_engines.cjs +2 -0
- package/lib/resources/discount_engines.cjs.map +1 -0
- package/lib/resources/discount_engines.d.cts +1 -1
- package/lib/resources/discount_engines.d.ts +1 -1
- package/lib/resources/discount_engines.js +2 -0
- package/lib/resources/discount_engines.js.map +1 -0
- package/lib/resources/easypost_pickups.cjs +2 -0
- package/lib/resources/easypost_pickups.cjs.map +1 -0
- package/lib/resources/easypost_pickups.d.cts +1 -1
- package/lib/resources/easypost_pickups.d.ts +1 -1
- package/lib/resources/easypost_pickups.js +2 -0
- package/lib/resources/easypost_pickups.js.map +1 -0
- package/lib/resources/event_callbacks.cjs +2 -0
- package/lib/resources/event_callbacks.cjs.map +1 -0
- package/lib/resources/event_callbacks.d.cts +1 -1
- package/lib/resources/event_callbacks.d.ts +1 -1
- package/lib/resources/event_callbacks.js +2 -0
- package/lib/resources/event_callbacks.js.map +1 -0
- package/lib/resources/events.cjs +2 -0
- package/lib/resources/events.cjs.map +1 -0
- package/lib/resources/events.d.cts +1 -1
- package/lib/resources/events.d.ts +1 -1
- package/lib/resources/events.js +2 -0
- package/lib/resources/events.js.map +1 -0
- package/lib/resources/exports.cjs +2 -0
- package/lib/resources/exports.cjs.map +1 -0
- package/lib/resources/exports.d.cts +1 -1
- package/lib/resources/exports.d.ts +1 -1
- package/lib/resources/exports.js +2 -0
- package/lib/resources/exports.js.map +1 -0
- package/lib/resources/external_gateways.cjs +2 -0
- package/lib/resources/external_gateways.cjs.map +1 -0
- package/lib/resources/external_gateways.d.cts +1 -1
- package/lib/resources/external_gateways.d.ts +1 -1
- package/lib/resources/external_gateways.js +2 -0
- package/lib/resources/external_gateways.js.map +1 -0
- package/lib/resources/external_payments.cjs +2 -0
- package/lib/resources/external_payments.cjs.map +1 -0
- package/lib/resources/external_payments.d.cts +1 -1
- package/lib/resources/external_payments.d.ts +1 -1
- package/lib/resources/external_payments.js +2 -0
- package/lib/resources/external_payments.js.map +1 -0
- package/lib/resources/external_promotions.cjs +2 -0
- package/lib/resources/external_promotions.cjs.map +1 -0
- package/lib/resources/external_promotions.d.cts +1 -1
- package/lib/resources/external_promotions.d.ts +1 -1
- package/lib/resources/external_promotions.js +2 -0
- package/lib/resources/external_promotions.js.map +1 -0
- package/lib/resources/external_tax_calculators.cjs +2 -0
- package/lib/resources/external_tax_calculators.cjs.map +1 -0
- package/lib/resources/external_tax_calculators.d.cts +1 -1
- package/lib/resources/external_tax_calculators.d.ts +1 -1
- package/lib/resources/external_tax_calculators.js +2 -0
- package/lib/resources/external_tax_calculators.js.map +1 -0
- package/lib/resources/fixed_amount_promotions.cjs +2 -0
- package/lib/resources/fixed_amount_promotions.cjs.map +1 -0
- package/lib/resources/fixed_amount_promotions.d.cts +1 -1
- package/lib/resources/fixed_amount_promotions.d.ts +1 -1
- package/lib/resources/fixed_amount_promotions.js +2 -0
- package/lib/resources/fixed_amount_promotions.js.map +1 -0
- package/lib/resources/fixed_price_promotions.cjs +2 -0
- package/lib/resources/fixed_price_promotions.cjs.map +1 -0
- package/lib/resources/fixed_price_promotions.d.cts +1 -1
- package/lib/resources/fixed_price_promotions.d.ts +1 -1
- package/lib/resources/fixed_price_promotions.js +2 -0
- package/lib/resources/fixed_price_promotions.js.map +1 -0
- package/lib/resources/flex_promotions.cjs +2 -0
- package/lib/resources/flex_promotions.cjs.map +1 -0
- package/lib/resources/flex_promotions.d.cts +1 -1
- package/lib/resources/flex_promotions.d.ts +1 -1
- package/lib/resources/flex_promotions.js +2 -0
- package/lib/resources/flex_promotions.js.map +1 -0
- package/lib/resources/free_gift_promotions.cjs +2 -0
- package/lib/resources/free_gift_promotions.cjs.map +1 -0
- package/lib/resources/free_gift_promotions.d.cts +1 -1
- package/lib/resources/free_gift_promotions.d.ts +1 -1
- package/lib/resources/free_gift_promotions.js +2 -0
- package/lib/resources/free_gift_promotions.js.map +1 -0
- package/lib/resources/free_shipping_promotions.cjs +2 -0
- package/lib/resources/free_shipping_promotions.cjs.map +1 -0
- package/lib/resources/free_shipping_promotions.d.cts +1 -1
- package/lib/resources/free_shipping_promotions.d.ts +1 -1
- package/lib/resources/free_shipping_promotions.js +2 -0
- package/lib/resources/free_shipping_promotions.js.map +1 -0
- package/lib/resources/geocoders.cjs +2 -0
- package/lib/resources/geocoders.cjs.map +1 -0
- package/lib/resources/geocoders.d.cts +1 -1
- package/lib/resources/geocoders.d.ts +1 -1
- package/lib/resources/geocoders.js +2 -0
- package/lib/resources/geocoders.js.map +1 -0
- package/lib/resources/gift_card_recipients.cjs +2 -0
- package/lib/resources/gift_card_recipients.cjs.map +1 -0
- package/lib/resources/gift_card_recipients.d.cts +1 -1
- package/lib/resources/gift_card_recipients.d.ts +1 -1
- package/lib/resources/gift_card_recipients.js +2 -0
- package/lib/resources/gift_card_recipients.js.map +1 -0
- package/lib/resources/gift_cards.cjs +2 -0
- package/lib/resources/gift_cards.cjs.map +1 -0
- package/lib/resources/gift_cards.d.cts +1 -1
- package/lib/resources/gift_cards.d.ts +1 -1
- package/lib/resources/gift_cards.js +2 -0
- package/lib/resources/gift_cards.js.map +1 -0
- package/lib/resources/google_geocoders.cjs +2 -0
- package/lib/resources/google_geocoders.cjs.map +1 -0
- package/lib/resources/google_geocoders.d.cts +1 -1
- package/lib/resources/google_geocoders.d.ts +1 -1
- package/lib/resources/google_geocoders.js +2 -0
- package/lib/resources/google_geocoders.js.map +1 -0
- package/lib/resources/imports.cjs +2 -0
- package/lib/resources/imports.cjs.map +1 -0
- package/lib/resources/imports.d.cts +1 -1
- package/lib/resources/imports.d.ts +1 -1
- package/lib/resources/imports.js +2 -0
- package/lib/resources/imports.js.map +1 -0
- package/lib/resources/in_stock_subscriptions.cjs +2 -0
- package/lib/resources/in_stock_subscriptions.cjs.map +1 -0
- package/lib/resources/in_stock_subscriptions.d.cts +1 -1
- package/lib/resources/in_stock_subscriptions.d.ts +1 -1
- package/lib/resources/in_stock_subscriptions.js +2 -0
- package/lib/resources/in_stock_subscriptions.js.map +1 -0
- package/lib/resources/inventory_models.cjs +2 -0
- package/lib/resources/inventory_models.cjs.map +1 -0
- package/lib/resources/inventory_models.d.cts +1 -1
- package/lib/resources/inventory_models.d.ts +1 -1
- package/lib/resources/inventory_models.js +2 -0
- package/lib/resources/inventory_models.js.map +1 -0
- package/lib/resources/inventory_return_locations.cjs +2 -0
- package/lib/resources/inventory_return_locations.cjs.map +1 -0
- package/lib/resources/inventory_return_locations.d.cts +1 -1
- package/lib/resources/inventory_return_locations.d.ts +1 -1
- package/lib/resources/inventory_return_locations.js +2 -0
- package/lib/resources/inventory_return_locations.js.map +1 -0
- package/lib/resources/inventory_stock_locations.cjs +2 -0
- package/lib/resources/inventory_stock_locations.cjs.map +1 -0
- package/lib/resources/inventory_stock_locations.d.cts +1 -1
- package/lib/resources/inventory_stock_locations.d.ts +1 -1
- package/lib/resources/inventory_stock_locations.js +2 -0
- package/lib/resources/inventory_stock_locations.js.map +1 -0
- package/lib/resources/klarna_gateways.cjs +2 -0
- package/lib/resources/klarna_gateways.cjs.map +1 -0
- package/lib/resources/klarna_gateways.d.cts +1 -1
- package/lib/resources/klarna_gateways.d.ts +1 -1
- package/lib/resources/klarna_gateways.js +2 -0
- package/lib/resources/klarna_gateways.js.map +1 -0
- package/lib/resources/klarna_payments.cjs +2 -0
- package/lib/resources/klarna_payments.cjs.map +1 -0
- package/lib/resources/klarna_payments.d.cts +1 -1
- package/lib/resources/klarna_payments.d.ts +1 -1
- package/lib/resources/klarna_payments.js +2 -0
- package/lib/resources/klarna_payments.js.map +1 -0
- package/lib/resources/line_item_options.cjs +2 -0
- package/lib/resources/line_item_options.cjs.map +1 -0
- package/lib/resources/line_item_options.d.cts +1 -1
- package/lib/resources/line_item_options.d.ts +1 -1
- package/lib/resources/line_item_options.js +2 -0
- package/lib/resources/line_item_options.js.map +1 -0
- package/lib/resources/line_items.cjs +2 -0
- package/lib/resources/line_items.cjs.map +1 -0
- package/lib/resources/line_items.d.cts +1 -1
- package/lib/resources/line_items.d.ts +1 -1
- package/lib/resources/line_items.js +2 -0
- package/lib/resources/line_items.js.map +1 -0
- package/lib/resources/links.cjs +2 -0
- package/lib/resources/links.cjs.map +1 -0
- package/lib/resources/links.d.cts +1 -1
- package/lib/resources/links.d.ts +1 -1
- package/lib/resources/links.js +2 -0
- package/lib/resources/links.js.map +1 -0
- package/lib/resources/manual_gateways.cjs +2 -0
- package/lib/resources/manual_gateways.cjs.map +1 -0
- package/lib/resources/manual_gateways.d.cts +1 -1
- package/lib/resources/manual_gateways.d.ts +1 -1
- package/lib/resources/manual_gateways.js +2 -0
- package/lib/resources/manual_gateways.js.map +1 -0
- package/lib/resources/manual_tax_calculators.cjs +2 -0
- package/lib/resources/manual_tax_calculators.cjs.map +1 -0
- package/lib/resources/manual_tax_calculators.d.cts +1 -1
- package/lib/resources/manual_tax_calculators.d.ts +1 -1
- package/lib/resources/manual_tax_calculators.js +2 -0
- package/lib/resources/manual_tax_calculators.js.map +1 -0
- package/lib/resources/markets.cjs +2 -0
- package/lib/resources/markets.cjs.map +1 -0
- package/lib/resources/markets.d.cts +1 -1
- package/lib/resources/markets.d.ts +1 -1
- package/lib/resources/markets.js +2 -0
- package/lib/resources/markets.js.map +1 -0
- package/lib/resources/merchants.cjs +2 -0
- package/lib/resources/merchants.cjs.map +1 -0
- package/lib/resources/merchants.d.cts +1 -1
- package/lib/resources/merchants.d.ts +1 -1
- package/lib/resources/merchants.js +2 -0
- package/lib/resources/merchants.js.map +1 -0
- package/lib/resources/notifications.cjs +2 -0
- package/lib/resources/notifications.cjs.map +1 -0
- package/lib/resources/notifications.d.cts +1 -1
- package/lib/resources/notifications.d.ts +1 -1
- package/lib/resources/notifications.js +2 -0
- package/lib/resources/notifications.js.map +1 -0
- package/lib/resources/order_amount_promotion_rules.cjs +2 -0
- package/lib/resources/order_amount_promotion_rules.cjs.map +1 -0
- package/lib/resources/order_amount_promotion_rules.d.cts +1 -1
- package/lib/resources/order_amount_promotion_rules.d.ts +1 -1
- package/lib/resources/order_amount_promotion_rules.js +2 -0
- package/lib/resources/order_amount_promotion_rules.js.map +1 -0
- package/lib/resources/order_copies.cjs +2 -0
- package/lib/resources/order_copies.cjs.map +1 -0
- package/lib/resources/order_copies.d.cts +1 -1
- package/lib/resources/order_copies.d.ts +1 -1
- package/lib/resources/order_copies.js +2 -0
- package/lib/resources/order_copies.js.map +1 -0
- package/lib/resources/order_factories.cjs +2 -0
- package/lib/resources/order_factories.cjs.map +1 -0
- package/lib/resources/order_factories.d.cts +1 -1
- package/lib/resources/order_factories.d.ts +1 -1
- package/lib/resources/order_factories.js +2 -0
- package/lib/resources/order_factories.js.map +1 -0
- package/lib/resources/order_subscription_items.cjs +2 -0
- package/lib/resources/order_subscription_items.cjs.map +1 -0
- package/lib/resources/order_subscription_items.d.cts +1 -1
- package/lib/resources/order_subscription_items.d.ts +1 -1
- package/lib/resources/order_subscription_items.js +2 -0
- package/lib/resources/order_subscription_items.js.map +1 -0
- package/lib/resources/order_subscriptions.cjs +2 -0
- package/lib/resources/order_subscriptions.cjs.map +1 -0
- package/lib/resources/order_subscriptions.d.cts +1 -1
- package/lib/resources/order_subscriptions.d.ts +1 -1
- package/lib/resources/order_subscriptions.js +2 -0
- package/lib/resources/order_subscriptions.js.map +1 -0
- package/lib/resources/orders.cjs +2 -0
- package/lib/resources/orders.cjs.map +1 -0
- package/lib/resources/orders.d.cts +1 -1
- package/lib/resources/orders.d.ts +1 -1
- package/lib/resources/orders.js +2 -0
- package/lib/resources/orders.js.map +1 -0
- package/lib/resources/organizations.cjs +2 -0
- package/lib/resources/organizations.cjs.map +1 -0
- package/lib/resources/organizations.d.cts +1 -1
- package/lib/resources/organizations.d.ts +1 -1
- package/lib/resources/organizations.js +2 -0
- package/lib/resources/organizations.js.map +1 -0
- package/lib/resources/packages.cjs +2 -0
- package/lib/resources/packages.cjs.map +1 -0
- package/lib/resources/packages.d.cts +1 -1
- package/lib/resources/packages.d.ts +1 -1
- package/lib/resources/packages.js +2 -0
- package/lib/resources/packages.js.map +1 -0
- package/lib/resources/parcel_line_items.cjs +2 -0
- package/lib/resources/parcel_line_items.cjs.map +1 -0
- package/lib/resources/parcel_line_items.d.cts +1 -1
- package/lib/resources/parcel_line_items.d.ts +1 -1
- package/lib/resources/parcel_line_items.js +2 -0
- package/lib/resources/parcel_line_items.js.map +1 -0
- package/lib/resources/parcels.cjs +2 -0
- package/lib/resources/parcels.cjs.map +1 -0
- package/lib/resources/parcels.d.cts +1 -1
- package/lib/resources/parcels.d.ts +1 -1
- package/lib/resources/parcels.js +2 -0
- package/lib/resources/parcels.js.map +1 -0
- package/lib/resources/payment_gateways.cjs +2 -0
- package/lib/resources/payment_gateways.cjs.map +1 -0
- package/lib/resources/payment_gateways.d.cts +1 -1
- package/lib/resources/payment_gateways.d.ts +1 -1
- package/lib/resources/payment_gateways.js +2 -0
- package/lib/resources/payment_gateways.js.map +1 -0
- package/lib/resources/payment_methods.cjs +2 -0
- package/lib/resources/payment_methods.cjs.map +1 -0
- package/lib/resources/payment_methods.d.cts +1 -1
- package/lib/resources/payment_methods.d.ts +1 -1
- package/lib/resources/payment_methods.js +2 -0
- package/lib/resources/payment_methods.js.map +1 -0
- package/lib/resources/payment_options.cjs +2 -0
- package/lib/resources/payment_options.cjs.map +1 -0
- package/lib/resources/payment_options.d.cts +1 -1
- package/lib/resources/payment_options.d.ts +1 -1
- package/lib/resources/payment_options.js +2 -0
- package/lib/resources/payment_options.js.map +1 -0
- package/lib/resources/paypal_gateways.cjs +2 -0
- package/lib/resources/paypal_gateways.cjs.map +1 -0
- package/lib/resources/paypal_gateways.d.cts +1 -1
- package/lib/resources/paypal_gateways.d.ts +1 -1
- package/lib/resources/paypal_gateways.js +2 -0
- package/lib/resources/paypal_gateways.js.map +1 -0
- package/lib/resources/paypal_payments.cjs +2 -0
- package/lib/resources/paypal_payments.cjs.map +1 -0
- package/lib/resources/paypal_payments.d.cts +1 -1
- package/lib/resources/paypal_payments.d.ts +1 -1
- package/lib/resources/paypal_payments.js +2 -0
- package/lib/resources/paypal_payments.js.map +1 -0
- package/lib/resources/percentage_discount_promotions.cjs +2 -0
- package/lib/resources/percentage_discount_promotions.cjs.map +1 -0
- package/lib/resources/percentage_discount_promotions.d.cts +1 -1
- package/lib/resources/percentage_discount_promotions.d.ts +1 -1
- package/lib/resources/percentage_discount_promotions.js +2 -0
- package/lib/resources/percentage_discount_promotions.js.map +1 -0
- package/lib/resources/pickups.cjs +2 -0
- package/lib/resources/pickups.cjs.map +1 -0
- package/lib/resources/pickups.d.cts +1 -1
- package/lib/resources/pickups.d.ts +1 -1
- package/lib/resources/pickups.js +2 -0
- package/lib/resources/pickups.js.map +1 -0
- package/lib/resources/price_frequency_tiers.cjs +2 -0
- package/lib/resources/price_frequency_tiers.cjs.map +1 -0
- package/lib/resources/price_frequency_tiers.d.cts +1 -1
- package/lib/resources/price_frequency_tiers.d.ts +1 -1
- package/lib/resources/price_frequency_tiers.js +2 -0
- package/lib/resources/price_frequency_tiers.js.map +1 -0
- package/lib/resources/price_list_schedulers.cjs +2 -0
- package/lib/resources/price_list_schedulers.cjs.map +1 -0
- package/lib/resources/price_list_schedulers.d.cts +1 -1
- package/lib/resources/price_list_schedulers.d.ts +1 -1
- package/lib/resources/price_list_schedulers.js +2 -0
- package/lib/resources/price_list_schedulers.js.map +1 -0
- package/lib/resources/price_lists.cjs +2 -0
- package/lib/resources/price_lists.cjs.map +1 -0
- package/lib/resources/price_lists.d.cts +1 -1
- package/lib/resources/price_lists.d.ts +1 -1
- package/lib/resources/price_lists.js +2 -0
- package/lib/resources/price_lists.js.map +1 -0
- package/lib/resources/price_tiers.cjs +2 -0
- package/lib/resources/price_tiers.cjs.map +1 -0
- package/lib/resources/price_tiers.d.cts +1 -1
- package/lib/resources/price_tiers.d.ts +1 -1
- package/lib/resources/price_tiers.js +2 -0
- package/lib/resources/price_tiers.js.map +1 -0
- package/lib/resources/price_volume_tiers.cjs +2 -0
- package/lib/resources/price_volume_tiers.cjs.map +1 -0
- package/lib/resources/price_volume_tiers.d.cts +1 -1
- package/lib/resources/price_volume_tiers.d.ts +1 -1
- package/lib/resources/price_volume_tiers.js +2 -0
- package/lib/resources/price_volume_tiers.js.map +1 -0
- package/lib/resources/prices.cjs +2 -0
- package/lib/resources/prices.cjs.map +1 -0
- package/lib/resources/prices.d.cts +1 -1
- package/lib/resources/prices.d.ts +1 -1
- package/lib/resources/prices.js +2 -0
- package/lib/resources/prices.js.map +1 -0
- package/lib/resources/promotion_rules.cjs +2 -0
- package/lib/resources/promotion_rules.cjs.map +1 -0
- package/lib/resources/promotion_rules.d.cts +1 -1
- package/lib/resources/promotion_rules.d.ts +1 -1
- package/lib/resources/promotion_rules.js +2 -0
- package/lib/resources/promotion_rules.js.map +1 -0
- package/lib/resources/promotions.cjs +2 -0
- package/lib/resources/promotions.cjs.map +1 -0
- package/lib/resources/promotions.d.cts +1 -1
- package/lib/resources/promotions.d.ts +1 -1
- package/lib/resources/promotions.js +2 -0
- package/lib/resources/promotions.js.map +1 -0
- package/lib/resources/recurring_order_copies.cjs +2 -0
- package/lib/resources/recurring_order_copies.cjs.map +1 -0
- package/lib/resources/recurring_order_copies.d.cts +1 -1
- package/lib/resources/recurring_order_copies.d.ts +1 -1
- package/lib/resources/recurring_order_copies.js +2 -0
- package/lib/resources/recurring_order_copies.js.map +1 -0
- package/lib/resources/refunds.cjs +2 -0
- package/lib/resources/refunds.cjs.map +1 -0
- package/lib/resources/refunds.d.cts +1 -1
- package/lib/resources/refunds.d.ts +1 -1
- package/lib/resources/refunds.js +2 -0
- package/lib/resources/refunds.js.map +1 -0
- package/lib/resources/reserved_stocks.cjs +2 -0
- package/lib/resources/reserved_stocks.cjs.map +1 -0
- package/lib/resources/reserved_stocks.d.cts +1 -1
- package/lib/resources/reserved_stocks.d.ts +1 -1
- package/lib/resources/reserved_stocks.js +2 -0
- package/lib/resources/reserved_stocks.js.map +1 -0
- package/lib/resources/resource_errors.cjs +2 -0
- package/lib/resources/resource_errors.cjs.map +1 -0
- package/lib/resources/resource_errors.d.cts +1 -1
- package/lib/resources/resource_errors.d.ts +1 -1
- package/lib/resources/resource_errors.js +2 -0
- package/lib/resources/resource_errors.js.map +1 -0
- package/lib/resources/return_line_items.cjs +2 -0
- package/lib/resources/return_line_items.cjs.map +1 -0
- package/lib/resources/return_line_items.d.cts +1 -1
- package/lib/resources/return_line_items.d.ts +1 -1
- package/lib/resources/return_line_items.js +2 -0
- package/lib/resources/return_line_items.js.map +1 -0
- package/lib/resources/returns.cjs +2 -0
- package/lib/resources/returns.cjs.map +1 -0
- package/lib/resources/returns.d.cts +1 -1
- package/lib/resources/returns.d.ts +1 -1
- package/lib/resources/returns.js +2 -0
- package/lib/resources/returns.js.map +1 -0
- package/lib/resources/satispay_gateways.cjs +2 -0
- package/lib/resources/satispay_gateways.cjs.map +1 -0
- package/lib/resources/satispay_gateways.d.cts +1 -1
- package/lib/resources/satispay_gateways.d.ts +1 -1
- package/lib/resources/satispay_gateways.js +2 -0
- package/lib/resources/satispay_gateways.js.map +1 -0
- package/lib/resources/satispay_payments.cjs +2 -0
- package/lib/resources/satispay_payments.cjs.map +1 -0
- package/lib/resources/satispay_payments.d.cts +1 -1
- package/lib/resources/satispay_payments.d.ts +1 -1
- package/lib/resources/satispay_payments.js +2 -0
- package/lib/resources/satispay_payments.js.map +1 -0
- package/lib/resources/shipments.cjs +2 -0
- package/lib/resources/shipments.cjs.map +1 -0
- package/lib/resources/shipments.d.cts +1 -1
- package/lib/resources/shipments.d.ts +1 -1
- package/lib/resources/shipments.js +2 -0
- package/lib/resources/shipments.js.map +1 -0
- package/lib/resources/shipping_categories.cjs +2 -0
- package/lib/resources/shipping_categories.cjs.map +1 -0
- package/lib/resources/shipping_categories.d.cts +1 -1
- package/lib/resources/shipping_categories.d.ts +1 -1
- package/lib/resources/shipping_categories.js +2 -0
- package/lib/resources/shipping_categories.js.map +1 -0
- package/lib/resources/shipping_method_tiers.cjs +2 -0
- package/lib/resources/shipping_method_tiers.cjs.map +1 -0
- package/lib/resources/shipping_method_tiers.d.cts +1 -1
- package/lib/resources/shipping_method_tiers.d.ts +1 -1
- package/lib/resources/shipping_method_tiers.js +2 -0
- package/lib/resources/shipping_method_tiers.js.map +1 -0
- package/lib/resources/shipping_methods.cjs +2 -0
- package/lib/resources/shipping_methods.cjs.map +1 -0
- package/lib/resources/shipping_methods.d.cts +1 -1
- package/lib/resources/shipping_methods.d.ts +1 -1
- package/lib/resources/shipping_methods.js +2 -0
- package/lib/resources/shipping_methods.js.map +1 -0
- package/lib/resources/shipping_weight_tiers.cjs +2 -0
- package/lib/resources/shipping_weight_tiers.cjs.map +1 -0
- package/lib/resources/shipping_weight_tiers.d.cts +1 -1
- package/lib/resources/shipping_weight_tiers.d.ts +1 -1
- package/lib/resources/shipping_weight_tiers.js +2 -0
- package/lib/resources/shipping_weight_tiers.js.map +1 -0
- package/lib/resources/shipping_zones.cjs +2 -0
- package/lib/resources/shipping_zones.cjs.map +1 -0
- package/lib/resources/shipping_zones.d.cts +1 -1
- package/lib/resources/shipping_zones.d.ts +1 -1
- package/lib/resources/shipping_zones.js +2 -0
- package/lib/resources/shipping_zones.js.map +1 -0
- package/lib/resources/sku_list_items.cjs +2 -0
- package/lib/resources/sku_list_items.cjs.map +1 -0
- package/lib/resources/sku_list_items.d.cts +1 -1
- package/lib/resources/sku_list_items.d.ts +1 -1
- package/lib/resources/sku_list_items.js +2 -0
- package/lib/resources/sku_list_items.js.map +1 -0
- package/lib/resources/sku_list_promotion_rules.cjs +2 -0
- package/lib/resources/sku_list_promotion_rules.cjs.map +1 -0
- package/lib/resources/sku_list_promotion_rules.d.cts +1 -1
- package/lib/resources/sku_list_promotion_rules.d.ts +1 -1
- package/lib/resources/sku_list_promotion_rules.js +2 -0
- package/lib/resources/sku_list_promotion_rules.js.map +1 -0
- package/lib/resources/sku_lists.cjs +2 -0
- package/lib/resources/sku_lists.cjs.map +1 -0
- package/lib/resources/sku_lists.d.cts +1 -1
- package/lib/resources/sku_lists.d.ts +1 -1
- package/lib/resources/sku_lists.js +2 -0
- package/lib/resources/sku_lists.js.map +1 -0
- package/lib/resources/sku_options.cjs +2 -0
- package/lib/resources/sku_options.cjs.map +1 -0
- package/lib/resources/sku_options.d.cts +1 -1
- package/lib/resources/sku_options.d.ts +1 -1
- package/lib/resources/sku_options.js +2 -0
- package/lib/resources/sku_options.js.map +1 -0
- package/lib/resources/skus.cjs +2 -0
- package/lib/resources/skus.cjs.map +1 -0
- package/lib/resources/skus.d.cts +1 -1
- package/lib/resources/skus.d.ts +1 -1
- package/lib/resources/skus.js +2 -0
- package/lib/resources/skus.js.map +1 -0
- package/lib/resources/stock_items.cjs +2 -0
- package/lib/resources/stock_items.cjs.map +1 -0
- package/lib/resources/stock_items.d.cts +1 -1
- package/lib/resources/stock_items.d.ts +1 -1
- package/lib/resources/stock_items.js +2 -0
- package/lib/resources/stock_items.js.map +1 -0
- package/lib/resources/stock_line_items.cjs +2 -0
- package/lib/resources/stock_line_items.cjs.map +1 -0
- package/lib/resources/stock_line_items.d.cts +1 -1
- package/lib/resources/stock_line_items.d.ts +1 -1
- package/lib/resources/stock_line_items.js +2 -0
- package/lib/resources/stock_line_items.js.map +1 -0
- package/lib/resources/stock_locations.cjs +2 -0
- package/lib/resources/stock_locations.cjs.map +1 -0
- package/lib/resources/stock_locations.d.cts +1 -1
- package/lib/resources/stock_locations.d.ts +1 -1
- package/lib/resources/stock_locations.js +2 -0
- package/lib/resources/stock_locations.js.map +1 -0
- package/lib/resources/stock_reservations.cjs +2 -0
- package/lib/resources/stock_reservations.cjs.map +1 -0
- package/lib/resources/stock_reservations.d.cts +1 -1
- package/lib/resources/stock_reservations.d.ts +1 -1
- package/lib/resources/stock_reservations.js +2 -0
- package/lib/resources/stock_reservations.js.map +1 -0
- package/lib/resources/stock_transfers.cjs +2 -0
- package/lib/resources/stock_transfers.cjs.map +1 -0
- package/lib/resources/stock_transfers.d.cts +1 -1
- package/lib/resources/stock_transfers.d.ts +1 -1
- package/lib/resources/stock_transfers.js +2 -0
- package/lib/resources/stock_transfers.js.map +1 -0
- package/lib/resources/stores.cjs +2 -0
- package/lib/resources/stores.cjs.map +1 -0
- package/lib/resources/stores.d.cts +1 -1
- package/lib/resources/stores.d.ts +1 -1
- package/lib/resources/stores.js +2 -0
- package/lib/resources/stores.js.map +1 -0
- package/lib/resources/stripe_gateways.cjs +2 -0
- package/lib/resources/stripe_gateways.cjs.map +1 -0
- package/lib/resources/stripe_gateways.d.cts +1 -1
- package/lib/resources/stripe_gateways.d.ts +1 -1
- package/lib/resources/stripe_gateways.js +2 -0
- package/lib/resources/stripe_gateways.js.map +1 -0
- package/lib/resources/stripe_payments.cjs +2 -0
- package/lib/resources/stripe_payments.cjs.map +1 -0
- package/lib/resources/stripe_payments.d.cts +1 -1
- package/lib/resources/stripe_payments.d.ts +1 -1
- package/lib/resources/stripe_payments.js +2 -0
- package/lib/resources/stripe_payments.js.map +1 -0
- package/lib/resources/stripe_tax_accounts.cjs +2 -0
- package/lib/resources/stripe_tax_accounts.cjs.map +1 -0
- package/lib/resources/stripe_tax_accounts.d.cts +1 -1
- package/lib/resources/stripe_tax_accounts.d.ts +1 -1
- package/lib/resources/stripe_tax_accounts.js +2 -0
- package/lib/resources/stripe_tax_accounts.js.map +1 -0
- package/lib/resources/subscription_models.cjs +2 -0
- package/lib/resources/subscription_models.cjs.map +1 -0
- package/lib/resources/subscription_models.d.cts +1 -1
- package/lib/resources/subscription_models.d.ts +1 -1
- package/lib/resources/subscription_models.js +2 -0
- package/lib/resources/subscription_models.js.map +1 -0
- package/lib/resources/tags.cjs +2 -0
- package/lib/resources/tags.cjs.map +1 -0
- package/lib/resources/tags.d.cts +1 -1
- package/lib/resources/tags.d.ts +1 -1
- package/lib/resources/tags.js +2 -0
- package/lib/resources/tags.js.map +1 -0
- package/lib/resources/talon_one_accounts.cjs +2 -0
- package/lib/resources/talon_one_accounts.cjs.map +1 -0
- package/lib/resources/talon_one_accounts.d.cts +1 -1
- package/lib/resources/talon_one_accounts.d.ts +1 -1
- package/lib/resources/talon_one_accounts.js +2 -0
- package/lib/resources/talon_one_accounts.js.map +1 -0
- package/lib/resources/tax_calculators.cjs +2 -0
- package/lib/resources/tax_calculators.cjs.map +1 -0
- package/lib/resources/tax_calculators.d.cts +1 -1
- package/lib/resources/tax_calculators.d.ts +1 -1
- package/lib/resources/tax_calculators.js +2 -0
- package/lib/resources/tax_calculators.js.map +1 -0
- package/lib/resources/tax_categories.cjs +2 -0
- package/lib/resources/tax_categories.cjs.map +1 -0
- package/lib/resources/tax_categories.d.cts +1 -1
- package/lib/resources/tax_categories.d.ts +1 -1
- package/lib/resources/tax_categories.js +2 -0
- package/lib/resources/tax_categories.js.map +1 -0
- package/lib/resources/tax_rules.cjs +2 -0
- package/lib/resources/tax_rules.cjs.map +1 -0
- package/lib/resources/tax_rules.d.cts +1 -1
- package/lib/resources/tax_rules.d.ts +1 -1
- package/lib/resources/tax_rules.js +2 -0
- package/lib/resources/tax_rules.js.map +1 -0
- package/lib/resources/taxjar_accounts.cjs +2 -0
- package/lib/resources/taxjar_accounts.cjs.map +1 -0
- package/lib/resources/taxjar_accounts.d.cts +1 -1
- package/lib/resources/taxjar_accounts.d.ts +1 -1
- package/lib/resources/taxjar_accounts.js +2 -0
- package/lib/resources/taxjar_accounts.js.map +1 -0
- package/lib/resources/transactions.cjs +2 -0
- package/lib/resources/transactions.cjs.map +1 -0
- package/lib/resources/transactions.d.cts +1 -1
- package/lib/resources/transactions.d.ts +1 -1
- package/lib/resources/transactions.js +2 -0
- package/lib/resources/transactions.js.map +1 -0
- package/lib/resources/versions.cjs +2 -0
- package/lib/resources/versions.cjs.map +1 -0
- package/lib/resources/versions.d.cts +1 -1
- package/lib/resources/versions.d.ts +1 -1
- package/lib/resources/versions.js +2 -0
- package/lib/resources/versions.js.map +1 -0
- package/lib/resources/vertex_accounts.cjs +2 -0
- package/lib/resources/vertex_accounts.cjs.map +1 -0
- package/lib/resources/vertex_accounts.d.cts +1 -1
- package/lib/resources/vertex_accounts.d.ts +1 -1
- package/lib/resources/vertex_accounts.js +2 -0
- package/lib/resources/vertex_accounts.js.map +1 -0
- package/lib/resources/voids.cjs +2 -0
- package/lib/resources/voids.cjs.map +1 -0
- package/lib/resources/voids.d.cts +1 -1
- package/lib/resources/voids.d.ts +1 -1
- package/lib/resources/voids.js +2 -0
- package/lib/resources/voids.js.map +1 -0
- package/lib/resources/webhooks.cjs +2 -0
- package/lib/resources/webhooks.cjs.map +1 -0
- package/lib/resources/webhooks.d.cts +1 -1
- package/lib/resources/webhooks.d.ts +1 -1
- package/lib/resources/webhooks.js +2 -0
- package/lib/resources/webhooks.js.map +1 -0
- package/lib/resources/wire_transfers.cjs +2 -0
- package/lib/resources/wire_transfers.cjs.map +1 -0
- package/lib/resources/wire_transfers.d.cts +1 -1
- package/lib/resources/wire_transfers.d.ts +1 -1
- package/lib/resources/wire_transfers.js +2 -0
- package/lib/resources/wire_transfers.js.map +1 -0
- package/lib/static.cjs +2 -0
- package/lib/static.cjs.map +1 -0
- package/lib/static.d.cts +1 -1
- package/lib/static.d.ts +1 -1
- package/lib/static.js +2 -0
- package/lib/static.js.map +1 -0
- package/lib/types.cjs +2 -0
- package/lib/types.cjs.map +1 -0
- package/lib/types.js +2 -0
- package/lib/types.js.map +1 -0
- package/lib/util.cjs +2 -0
- package/lib/util.cjs.map +1 -0
- package/lib/util.js +2 -0
- package/lib/util.js.map +1 -0
- package/package.json +1 -1
- package/lib/common.cjs +0 -17
- package/lib/common.d.cts +0 -13
- package/lib/common.d.ts +0 -13
- package/lib/common.js +0 -13
@@ -1,5 +1,5 @@
|
|
1
1
|
import ApiClient, { ApiClientInitConfig } from './client.js';
|
2
|
-
import { StringKey, PositiveNumberRange } from './types.js';
|
2
|
+
import { StringKey, PositiveNumberRange, ObjectType } from './types.js';
|
3
3
|
|
4
4
|
type TagType = 'tags';
|
5
5
|
type TagRel$l = ResourceRel & {
|
@@ -16753,7 +16753,7 @@ type ResourceNull = {
|
|
16753
16753
|
id: null;
|
16754
16754
|
} & ResourceType;
|
16755
16755
|
type ResourceRel = ResourceId | ResourceNull;
|
16756
|
-
type Metadata =
|
16756
|
+
type Metadata = ObjectType;
|
16757
16757
|
interface ResourceType {
|
16758
16758
|
readonly type: ResourceTypeLock;
|
16759
16759
|
}
|
@@ -16840,6 +16840,9 @@ declare abstract class ApiSingleton<R extends Resource> extends ApiResourceBase<
|
|
16840
16840
|
retrieve(params?: QueryParamsRetrieve<R>, options?: ResourcesConfig): Promise<R>;
|
16841
16841
|
}
|
16842
16842
|
|
16843
|
+
declare const isResourceId: (resource: any) => resource is ResourceId;
|
16844
|
+
declare const isResourceType: (resource: any) => resource is ResourceType;
|
16845
|
+
|
16843
16846
|
type AddressType = 'addresses';
|
16844
16847
|
type AddressRel = ResourceRel & {
|
16845
16848
|
type: AddressType;
|
@@ -17169,4 +17172,4 @@ declare class Addresses extends ApiResource<Address> {
|
|
17169
17172
|
}
|
17170
17173
|
declare const instance: Addresses;
|
17171
17174
|
|
17172
|
-
export { instance$M as $, type TaggableResource as A, type VersionableResource as B, type CreatableResourceType as C, type DeletableResourceType as D, instance as E, instance$20 as F, instance$l as G, instance$1Q as H, instance$k as I, instance$p as J, instance$1A as K, ListResponse as L, type Metadata as M, instance$x as N, instance$j as O, instance$1P as P, type QueryInclude as Q, type ResourceType as R, instance$i as S, type TaggableResourceType as T, type UpdatableResourceType as U, type VersionableResourceType as V, instance$h as W, instance$1O as X, instance$1i as Y, instance$13 as Z, instance$1y as _, type QueryFields as a, instance$$ as a$, instance$g as a0, instance$1N as a1, instance$f as a2, instance$14 as a3, instance$1d as a4, instance$1c as a5, instance$16 as a6, instance$1S as a7, instance$1W as a8, instance$e as a9, instance$1Z as aA, instance$1X as aB, instance$7 as aC, instance$1L as aD, instance$1C as aE, instance$_ as aF, instance$1k as aG, instance$6 as aH, instance$s as aI, instance$n as aJ, instance$o as aK, instance$1m as aL, instance$10 as aM, instance$S as aN, instance$Y as aO, instance$Z as aP, instance$W as aQ, instance$R as aR, instance$5 as aS, instance$Q as aT, instance$P as aU, instance$O as aV, instance$1R as aW, instance$m as aX, instance$T as aY, instance$4 as aZ, instance$1K as a_, instance$1G as aa, instance$1F as ab, instance$V as ac, instance$1q as ad, instance$1e as ae, instance$1f as af, instance$d as ag, instance$1V as ah, instance$1T as ai, instance$c as aj, instance$b as ak, instance$1M as al, instance$1b as am, instance$r as an, instance$1a as ao, instance$17 as ap, instance$19 as aq, instance$15 as ar, instance$11 as as, instance$1$ as at, instance$1h as au, instance$1g as av, instance$a as aw, instance$9 as ax, instance$8 as ay, instance$1Y as az, type QueryParamsRetrieve as b, type AdyenPaymentCreate as b$, instance$N as b0, instance$E as b1, instance$C as b2, instance$B as b3, instance$G as b4, instance$F as b5, instance$D as b6, instance$18 as b7, instance$z as b8, instance$X as b9, instance$w as bA, instance$1E as bB, instance$22 as bC, instance$1 as bD, instance$y as bE, instance$q as bF, instance$t as bG, instance$u as bH, instance$A as bI, instance$21 as bJ, instance$v as bK, instance$1B as bL, instance$1U as bM, instance$1H as bN, type Address as bO, type AddressCreate as bP, type AddressUpdate as bQ, type AddressSort as bR, type Adjustment as bS, type AdjustmentCreate as bT, type AdjustmentUpdate as bU, type AdjustmentSort as bV, type AdyenGateway as bW, type AdyenGatewayCreate as bX, type AdyenGatewayUpdate as bY, type AdyenGatewaySort as bZ, type AdyenPayment as b_, instance$1z as ba, instance$1t as bb, instance$1x as bc, instance$1v as bd, instance$1w as be, instance$3 as bf, instance$1J as bg, instance$L as bh, instance$1_ as bi, instance$1p as bj, instance$1n as bk, instance$1o as bl, instance$1r as bm, instance$1l as bn, instance$12 as bo, instance$1j as bp, instance$1D as bq, instance$H as br, instance$I as bs, instance$1u as bt, instance$J as bu, instance$1s as bv, instance$K as bw, instance$U as bx, instance$2 as by, instance$1I as bz, type QueryParamsList as c, type CouponCodesPromotionRuleCreate as c$, type AdyenPaymentUpdate as c0, type AdyenPaymentSort as c1, type Application as c2, type ApplicationSort as c3, type Attachment as c4, type AttachmentCreate as c5, type AttachmentUpdate as c6, type AttachmentSort as c7, type Authorization as c8, type AuthorizationUpdate as c9, type BundleCreate as cA, type BundleUpdate as cB, type BundleSort as cC, type BuyXPayYPromotion as cD, type BuyXPayYPromotionCreate as cE, type BuyXPayYPromotionUpdate as cF, type BuyXPayYPromotionSort as cG, type Capture as cH, type CaptureUpdate as cI, type CaptureSort as cJ, type CarrierAccount as cK, type CarrierAccountCreate as cL, type CarrierAccountUpdate as cM, type CarrierAccountSort as cN, type CheckoutComGateway as cO, type CheckoutComGatewayCreate as cP, type CheckoutComGatewayUpdate as cQ, type CheckoutComGatewaySort as cR, type CheckoutComPayment as cS, type CheckoutComPaymentCreate as cT, type CheckoutComPaymentUpdate as cU, type CheckoutComPaymentSort as cV, type Cleanup as cW, type CleanupCreate as cX, type CleanupUpdate as cY, type CleanupSort as cZ, type CouponCodesPromotionRule as c_, type AuthorizationSort as ca, type AvalaraAccount as cb, type AvalaraAccountCreate as cc, type AvalaraAccountUpdate as cd, type AvalaraAccountSort as ce, type AxerveGateway as cf, type AxerveGatewayCreate as cg, type AxerveGatewayUpdate as ch, type AxerveGatewaySort as ci, type AxervePayment as cj, type AxervePaymentCreate as ck, type AxervePaymentUpdate as cl, type AxervePaymentSort as cm, type BingGeocoder as cn, type BingGeocoderCreate as co, type BingGeocoderUpdate as cp, type BingGeocoderSort as cq, type BraintreeGateway as cr, type BraintreeGatewayCreate as cs, type BraintreeGatewayUpdate as ct, type BraintreeGatewaySort as cu, type BraintreePayment as cv, type BraintreePaymentCreate as cw, type BraintreePaymentUpdate as cx, type BraintreePaymentSort as cy, type Bundle as cz, type QueryParams as d, type ExternalGatewaySort as d$, type CouponCodesPromotionRuleUpdate as d0, type CouponCodesPromotionRuleSort as d1, type CouponRecipient as d2, type CouponRecipientCreate as d3, type CouponRecipientUpdate as d4, type CouponRecipientSort as d5, type Coupon as d6, type CouponCreate as d7, type CouponUpdate as d8, type CouponSort as d9, type CustomerCreate as dA, type CustomerUpdate as dB, type CustomerSort as dC, type DeliveryLeadTime as dD, type DeliveryLeadTimeCreate as dE, type DeliveryLeadTimeUpdate as dF, type DeliveryLeadTimeSort as dG, type DiscountEngineItem as dH, type DiscountEngineItemSort as dI, type DiscountEngine as dJ, type DiscountEngineSort as dK, type EasypostPickup as dL, type EasypostPickupCreate as dM, type EasypostPickupUpdate as dN, type EasypostPickupSort as dO, type EventCallback as dP, type EventCallbackSort as dQ, type Event as dR, type EventUpdate as dS, type EventSort as dT, type Export as dU, type ExportCreate as dV, type ExportUpdate as dW, type ExportSort as dX, type ExternalGateway as dY, type ExternalGatewayCreate as dZ, type ExternalGatewayUpdate as d_, type CustomPromotionRule as da, type CustomPromotionRuleCreate as db, type CustomPromotionRuleUpdate as dc, type CustomPromotionRuleSort as dd, type CustomerAddress as de, type CustomerAddressCreate as df, type CustomerAddressUpdate as dg, type CustomerAddressSort as dh, type CustomerGroup as di, type CustomerGroupCreate as dj, type CustomerGroupUpdate as dk, type CustomerGroupSort as dl, type CustomerPasswordReset as dm, type CustomerPasswordResetCreate as dn, type CustomerPasswordResetUpdate as dp, type CustomerPasswordResetSort as dq, type CustomerPaymentSource as dr, type CustomerPaymentSourceCreate as ds, type CustomerPaymentSourceUpdate as dt, type CustomerPaymentSourceSort as du, type CustomerSubscription as dv, type CustomerSubscriptionCreate as dw, type CustomerSubscriptionUpdate as dx, type CustomerSubscriptionSort as dy, type Customer as dz, type QueryPageNumber as e, type InventoryStockLocationCreate as e$, type ExternalPayment as e0, type ExternalPaymentCreate as e1, type ExternalPaymentUpdate as e2, type ExternalPaymentSort as e3, type ExternalPromotion as e4, type ExternalPromotionCreate as e5, type ExternalPromotionUpdate as e6, type ExternalPromotionSort as e7, type ExternalTaxCalculator as e8, type ExternalTaxCalculatorCreate as e9, type GiftCardRecipientUpdate as eA, type GiftCardRecipientSort as eB, type GiftCard as eC, type GiftCardCreate as eD, type GiftCardUpdate as eE, type GiftCardSort as eF, type GoogleGeocoder as eG, type GoogleGeocoderCreate as eH, type GoogleGeocoderUpdate as eI, type GoogleGeocoderSort as eJ, type Import as eK, type ImportCreate as eL, type ImportUpdate as eM, type ImportSort as eN, type InStockSubscription as eO, type InStockSubscriptionCreate as eP, type InStockSubscriptionUpdate as eQ, type InStockSubscriptionSort as eR, type InventoryModel as eS, type InventoryModelCreate as eT, type InventoryModelUpdate as eU, type InventoryModelSort as eV, type InventoryReturnLocation as eW, type InventoryReturnLocationCreate as eX, type InventoryReturnLocationUpdate as eY, type InventoryReturnLocationSort as eZ, type InventoryStockLocation as e_, type ExternalTaxCalculatorUpdate as ea, type ExternalTaxCalculatorSort as eb, type FixedAmountPromotion as ec, type FixedAmountPromotionCreate as ed, type FixedAmountPromotionUpdate as ee, type FixedAmountPromotionSort as ef, type FixedPricePromotion as eg, type FixedPricePromotionCreate as eh, type FixedPricePromotionUpdate as ei, type FixedPricePromotionSort as ej, type FlexPromotion as ek, type FlexPromotionCreate as el, type FlexPromotionUpdate as em, type FlexPromotionSort as en, type FreeGiftPromotion as eo, type FreeGiftPromotionCreate as ep, type FreeGiftPromotionUpdate as eq, type FreeGiftPromotionSort as er, type FreeShippingPromotion as es, type FreeShippingPromotionCreate as et, type FreeShippingPromotionUpdate as eu, type FreeShippingPromotionSort as ev, type Geocoder as ew, type GeocoderSort as ex, type GiftCardRecipient as ey, type GiftCardRecipientCreate as ez, type QueryPageSize as f, type OrderSort as f$, type InventoryStockLocationUpdate as f0, type InventoryStockLocationSort as f1, type KlarnaGateway as f2, type KlarnaGatewayCreate as f3, type KlarnaGatewayUpdate as f4, type KlarnaGatewaySort as f5, type KlarnaPayment as f6, type KlarnaPaymentCreate as f7, type KlarnaPaymentUpdate as f8, type KlarnaPaymentSort as f9, type MerchantUpdate as fA, type MerchantSort as fB, type Notification as fC, type NotificationCreate as fD, type NotificationUpdate as fE, type NotificationSort as fF, type OrderAmountPromotionRule as fG, type OrderAmountPromotionRuleCreate as fH, type OrderAmountPromotionRuleUpdate as fI, type OrderAmountPromotionRuleSort as fJ, type OrderCopy as fK, type OrderCopyCreate as fL, type OrderCopyUpdate as fM, type OrderCopySort as fN, type OrderFactory as fO, type OrderFactorySort as fP, type OrderSubscriptionItem as fQ, type OrderSubscriptionItemCreate as fR, type OrderSubscriptionItemUpdate as fS, type OrderSubscriptionItemSort as fT, type OrderSubscription as fU, type OrderSubscriptionCreate as fV, type OrderSubscriptionUpdate as fW, type OrderSubscriptionSort as fX, type Order as fY, type OrderCreate as fZ, type OrderUpdate as f_, type LineItemOption as fa, type LineItemOptionCreate as fb, type LineItemOptionUpdate as fc, type LineItemOptionSort as fd, type LineItem as fe, type LineItemCreate as ff, type LineItemUpdate as fg, type LineItemSort as fh, type Link as fi, type LinkCreate as fj, type LinkUpdate as fk, type LinkSort as fl, type ManualGateway as fm, type ManualGatewayCreate as fn, type ManualGatewayUpdate as fo, type ManualGatewaySort as fp, type ManualTaxCalculator as fq, type ManualTaxCalculatorCreate as fr, type ManualTaxCalculatorUpdate as fs, type ManualTaxCalculatorSort as ft, type Market as fu, type MarketCreate as fv, type MarketUpdate as fw, type MarketSort as fx, type Merchant as fy, type MerchantCreate as fz, type QuerySort as g, type PromotionSort as g$, type Organization as g0, type OrganizationSort as g1, type Package as g2, type PackageCreate as g3, type PackageUpdate as g4, type PackageSort as g5, type ParcelLineItem as g6, type ParcelLineItemCreate as g7, type ParcelLineItemUpdate as g8, type ParcelLineItemSort as g9, type Pickup as gA, type PickupSort as gB, type PriceFrequencyTier as gC, type PriceFrequencyTierCreate as gD, type PriceFrequencyTierUpdate as gE, type PriceFrequencyTierSort as gF, type PriceListScheduler as gG, type PriceListSchedulerCreate as gH, type PriceListSchedulerUpdate as gI, type PriceListSchedulerSort as gJ, type PriceList as gK, type PriceListCreate as gL, type PriceListUpdate as gM, type PriceListSort as gN, type PriceTier as gO, type PriceTierSort as gP, type PriceVolumeTier as gQ, type PriceVolumeTierCreate as gR, type PriceVolumeTierUpdate as gS, type PriceVolumeTierSort as gT, type Price as gU, type PriceCreate as gV, type PriceUpdate as gW, type PriceSort as gX, type PromotionRule as gY, type PromotionRuleSort as gZ, type Promotion as g_, type Parcel as ga, type ParcelCreate as gb, type ParcelUpdate as gc, type ParcelSort as gd, type PaymentGateway as ge, type PaymentGatewaySort as gf, type PaymentMethod as gg, type PaymentMethodCreate as gh, type PaymentMethodUpdate as gi, type PaymentMethodSort as gj, type PaymentOption as gk, type PaymentOptionCreate as gl, type PaymentOptionUpdate as gm, type PaymentOptionSort as gn, type PaypalGateway as go, type PaypalGatewayCreate as gp, type PaypalGatewayUpdate as gq, type PaypalGatewaySort as gr, type PaypalPayment as gs, type PaypalPaymentCreate as gt, type PaypalPaymentUpdate as gu, type PaypalPaymentSort as gv, type PercentageDiscountPromotion as gw, type PercentageDiscountPromotionCreate as gx, type PercentageDiscountPromotionUpdate as gy, type PercentageDiscountPromotionSort as gz, type QueryFilter as h, type SkuOptionUpdate as h$, type RecurringOrderCopy as h0, type RecurringOrderCopyCreate as h1, type RecurringOrderCopyUpdate as h2, type RecurringOrderCopySort as h3, type Refund as h4, type RefundUpdate as h5, type RefundSort as h6, type ReservedStock as h7, type ReservedStockSort as h8, type ResourceError as h9, type ShippingMethodTierSort as hA, type ShippingMethod as hB, type ShippingMethodCreate as hC, type ShippingMethodUpdate as hD, type ShippingMethodSort as hE, type ShippingWeightTier as hF, type ShippingWeightTierCreate as hG, type ShippingWeightTierUpdate as hH, type ShippingWeightTierSort as hI, type ShippingZone as hJ, type ShippingZoneCreate as hK, type ShippingZoneUpdate as hL, type ShippingZoneSort as hM, type SkuListItem as hN, type SkuListItemCreate as hO, type SkuListItemUpdate as hP, type SkuListItemSort as hQ, type SkuListPromotionRule as hR, type SkuListPromotionRuleCreate as hS, type SkuListPromotionRuleUpdate as hT, type SkuListPromotionRuleSort as hU, type SkuList as hV, type SkuListCreate as hW, type SkuListUpdate as hX, type SkuListSort as hY, type SkuOption as hZ, type SkuOptionCreate as h_, type ResourceErrorSort as ha, type ReturnLineItem as hb, type ReturnLineItemCreate as hc, type ReturnLineItemUpdate as hd, type ReturnLineItemSort as he, type Return as hf, type ReturnCreate as hg, type ReturnUpdate as hh, type ReturnSort as hi, type SatispayGateway as hj, type SatispayGatewayCreate as hk, type SatispayGatewayUpdate as hl, type SatispayGatewaySort as hm, type SatispayPayment as hn, type SatispayPaymentCreate as ho, type SatispayPaymentUpdate as hp, type SatispayPaymentSort as hq, type Shipment as hr, type ShipmentCreate as hs, type ShipmentUpdate as ht, type ShipmentSort as hu, type ShippingCategory as hv, type ShippingCategoryCreate as hw, type ShippingCategoryUpdate as hx, type ShippingCategorySort as hy, type ShippingMethodTier as hz, type ResourceId as i, type TaxRuleUpdate as i$, type SkuOptionSort as i0, type Sku as i1, type SkuCreate as i2, type SkuUpdate as i3, type SkuSort as i4, type StockItem as i5, type StockItemCreate as i6, type StockItemUpdate as i7, type StockItemSort as i8, type StockLineItem as i9, type StripePaymentCreate as iA, type StripePaymentUpdate as iB, type StripePaymentSort as iC, type StripeTaxAccount as iD, type StripeTaxAccountCreate as iE, type StripeTaxAccountUpdate as iF, type StripeTaxAccountSort as iG, type SubscriptionModel as iH, type SubscriptionModelCreate as iI, type SubscriptionModelUpdate as iJ, type SubscriptionModelSort as iK, type Tag as iL, type TagCreate as iM, type TagUpdate as iN, type TagSort as iO, type TalonOneAccount as iP, type TalonOneAccountCreate as iQ, type TalonOneAccountUpdate as iR, type TalonOneAccountSort as iS, type TaxCalculator as iT, type TaxCalculatorSort as iU, type TaxCategory as iV, type TaxCategoryCreate as iW, type TaxCategoryUpdate as iX, type TaxCategorySort as iY, type TaxRule as iZ, type TaxRuleCreate as i_, type StockLineItemCreate as ia, type StockLineItemUpdate as ib, type StockLineItemSort as ic, type StockLocation as id, type StockLocationCreate as ie, type StockLocationUpdate as ig, type StockLocationSort as ih, type StockReservation as ii, type StockReservationCreate as ij, type StockReservationUpdate as ik, type StockReservationSort as il, type StockTransfer as im, type StockTransferCreate as io, type StockTransferUpdate as ip, type StockTransferSort as iq, type Store as ir, type StoreCreate as is, type StoreUpdate as it, type StoreSort as iu, type StripeGateway as iv, type StripeGatewayCreate as iw, type StripeGatewayUpdate as ix, type StripeGatewaySort as iy, type StripePayment as iz, type Resource as j, type ShippingZoneType as j$, type TaxRuleSort as j0, type TaxjarAccount as j1, type TaxjarAccountCreate as j2, type TaxjarAccountUpdate as j3, type TaxjarAccountSort as j4, type Transaction as j5, type TransactionSort as j6, type Version as j7, type VersionSort as j8, type VertexAccount as j9, type CustomerAddressType as jA, type PaymentGatewayType as jB, type AdyenPaymentType as jC, type AxervePaymentType as jD, type BraintreePaymentType as jE, type CheckoutComPaymentType as jF, type ExternalPaymentType as jG, type KlarnaPaymentType as jH, type PaypalPaymentType as jI, type SatispayPaymentType as jJ, type StripePaymentType as jK, type WireTransferType as jL, type CustomerPaymentSourceType as jM, type CustomerSubscriptionType as jN, type SubscriptionModelType as jO, type SkuOptionType as jP, type LineItemOptionType as jQ, type VoidType as jR, type AuthorizationType as jS, type RefundType as jT, type CaptureType as jU, type ResourceErrorType as jV, type ReturnType as jW, type ReturnLineItemType as jX, type StockLineItemType as jY, type ReservedStockType as jZ, type StockReservationType as j_, type VertexAccountCreate as ja, type VertexAccountUpdate as jb, type VertexAccountSort as jc, type Void as jd, type VoidUpdate as je, type VoidSort as jf, type Webhook as jg, type WebhookCreate as jh, type WebhookUpdate as ji, type WebhookSort as jj, type WireTransfer as jk, type WireTransferCreate as jl, type WireTransferUpdate as jm, type WireTransferSort as jn, type TagType as jo, type VersionType as jp, type AdjustmentType as jq, type GeocoderType as jr, type ShippingCategoryType as js, type InventoryReturnLocationType as jt, type InventoryModelType as ju, type InventoryStockLocationType as jv, type CustomerGroupType as jw, type EventCallbackType as jx, type WebhookType as jy, type EventType as jz, type ResourceCreate as k, type ExternalTaxCalculatorType as k$, type DeliveryLeadTimeType as k0, type ShippingMethodTierType as k1, type ShippingWeightTierType as k2, type ShippingMethodType as k3, type NotificationType as k4, type SkuListItemType as k5, type LinkType as k6, type SkuListType as k7, type BundleType as k8, type GiftCardRecipientType as k9, type OrderCopyType as kA, type OrderType as kB, type PackageType as kC, type ParcelLineItemType as kD, type ParcelType as kE, type PickupType as kF, type CarrierAccountType as kG, type ShipmentType as kH, type StockTransferType as kI, type StockLocationType as kJ, type StockItemType as kK, type SkuType as kL, type PriceTierType as kM, type PriceVolumeTierType as kN, type PriceFrequencyTierType as kO, type PriceType as kP, type PriceListSchedulerType as kQ, type PriceListType as kR, type TransactionType as kS, type PromotionType as kT, type TaxCalculatorType as kU, type AvalaraAccountType as kV, type StripeTaxAccountType as kW, type VertexAccountType as kX, type TaxjarAccountType as kY, type TaxRuleType as kZ, type ManualTaxCalculatorType as k_, type GiftCardType as ka, type DiscountEngineType as kb, type DiscountEngineItemType as kc, type CouponRecipientType as kd, type CouponType as ke, type ExternalPromotionType as kf, type FixedAmountPromotionType as kg, type FlexPromotionType as kh, type PromotionRuleType as ki, type FixedPricePromotionType as kj, type CustomPromotionRuleType as kk, type FreeGiftPromotionType as kl, type CouponCodesPromotionRuleType as km, type BuyXPayYPromotionType as kn, type SkuListPromotionRuleType as ko, type FreeShippingPromotionType as kp, type OrderAmountPromotionRuleType as kq, type PercentageDiscountPromotionType as kr, type LineItemType as ks, type OrderSubscriptionItemType as kt, type OrderFactoryType as ku, type RecurringOrderCopyType as kv, type OrderSubscriptionType as kw, type CustomerType as kx, type StoreType as ky, type PaymentOptionType as kz, type ResourceUpdate as l, type TaxCategoryType as l0, type AttachmentType as l1, type MerchantType as l2, type MarketType as l3, type PaymentMethodType as l4, type AdyenGatewayType as l5, type ApplicationType as l6, type AxerveGatewayType as l7, type BingGeocoderType as l8, type BraintreeGatewayType as l9, isCreatable as lA, isUpdatable as lB, isDeletable as lC, isTaggable as lD, isVersionable as lE, type ResourceFields as lF, type ResourceSortFields as lG, generateQueryStringParams as lH, isParamsList as lI, generateSearchString as lJ, ApiResourceAdapter as lK, ApiResource as lL, ApiSingleton as lM, type AddressType as lN, type CheckoutComGatewayType as la, type CleanupType as lb, type CustomerPasswordResetType as lc, type EasypostPickupType as ld, type ExportType as le, type ExternalGatewayType as lf, type GoogleGeocoderType as lg, type ImportType as lh, type InStockSubscriptionType as li, type KlarnaGatewayType as lj, type ManualGatewayType as lk, type OrganizationType as ll, type PaypalGatewayType as lm, type SatispayGatewayType as ln, type StripeGatewayType as lo, type TalonOneAccountType as lp, resourceList as lq, singletonList as lr, creatableResources as ls, updatableResources as lt, deletableResources as lu, taggableResources as lv, versionableResources as lw, getResources as lx, getSingletons as ly, isSingleton as lz, type ListMeta as m, type ResourceRel as n, type ResourceSort as o, type ResourceFilter as p, type ResourcesConfig as q, type ResourcesInitConfig as r, type ResourceTypeLock as s, type RetrievableResourceType as t, type RetrievableResource as u, type ListableResourceType as v, type ListableResource as w, type CreatableResource as x, type UpdatableResource as y, type DeletableResource as z };
|
17175
|
+
export { instance$M as $, type TaggableResource as A, type VersionableResource as B, type CreatableResourceType as C, type DeletableResourceType as D, instance as E, instance$20 as F, instance$l as G, instance$1Q as H, instance$k as I, instance$p as J, instance$1A as K, ListResponse as L, type Metadata as M, instance$x as N, instance$j as O, instance$1P as P, type QueryInclude as Q, type ResourceType as R, instance$i as S, type TaggableResourceType as T, type UpdatableResourceType as U, type VersionableResourceType as V, instance$h as W, instance$1O as X, instance$1i as Y, instance$13 as Z, instance$1y as _, type QueryFields as a, instance$$ as a$, instance$g as a0, instance$1N as a1, instance$f as a2, instance$14 as a3, instance$1d as a4, instance$1c as a5, instance$16 as a6, instance$1S as a7, instance$1W as a8, instance$e as a9, instance$1Z as aA, instance$1X as aB, instance$7 as aC, instance$1L as aD, instance$1C as aE, instance$_ as aF, instance$1k as aG, instance$6 as aH, instance$s as aI, instance$n as aJ, instance$o as aK, instance$1m as aL, instance$10 as aM, instance$S as aN, instance$Y as aO, instance$Z as aP, instance$W as aQ, instance$R as aR, instance$5 as aS, instance$Q as aT, instance$P as aU, instance$O as aV, instance$1R as aW, instance$m as aX, instance$T as aY, instance$4 as aZ, instance$1K as a_, instance$1G as aa, instance$1F as ab, instance$V as ac, instance$1q as ad, instance$1e as ae, instance$1f as af, instance$d as ag, instance$1V as ah, instance$1T as ai, instance$c as aj, instance$b as ak, instance$1M as al, instance$1b as am, instance$r as an, instance$1a as ao, instance$17 as ap, instance$19 as aq, instance$15 as ar, instance$11 as as, instance$1$ as at, instance$1h as au, instance$1g as av, instance$a as aw, instance$9 as ax, instance$8 as ay, instance$1Y as az, type QueryParamsRetrieve as b, type AdyenPaymentCreate as b$, instance$N as b0, instance$E as b1, instance$C as b2, instance$B as b3, instance$G as b4, instance$F as b5, instance$D as b6, instance$18 as b7, instance$z as b8, instance$X as b9, instance$w as bA, instance$1E as bB, instance$22 as bC, instance$1 as bD, instance$y as bE, instance$q as bF, instance$t as bG, instance$u as bH, instance$A as bI, instance$21 as bJ, instance$v as bK, instance$1B as bL, instance$1U as bM, instance$1H as bN, type Address as bO, type AddressCreate as bP, type AddressUpdate as bQ, type AddressSort as bR, type Adjustment as bS, type AdjustmentCreate as bT, type AdjustmentUpdate as bU, type AdjustmentSort as bV, type AdyenGateway as bW, type AdyenGatewayCreate as bX, type AdyenGatewayUpdate as bY, type AdyenGatewaySort as bZ, type AdyenPayment as b_, instance$1z as ba, instance$1t as bb, instance$1x as bc, instance$1v as bd, instance$1w as be, instance$3 as bf, instance$1J as bg, instance$L as bh, instance$1_ as bi, instance$1p as bj, instance$1n as bk, instance$1o as bl, instance$1r as bm, instance$1l as bn, instance$12 as bo, instance$1j as bp, instance$1D as bq, instance$H as br, instance$I as bs, instance$1u as bt, instance$J as bu, instance$1s as bv, instance$K as bw, instance$U as bx, instance$2 as by, instance$1I as bz, type QueryParamsList as c, type CouponCodesPromotionRuleCreate as c$, type AdyenPaymentUpdate as c0, type AdyenPaymentSort as c1, type Application as c2, type ApplicationSort as c3, type Attachment as c4, type AttachmentCreate as c5, type AttachmentUpdate as c6, type AttachmentSort as c7, type Authorization as c8, type AuthorizationUpdate as c9, type BundleCreate as cA, type BundleUpdate as cB, type BundleSort as cC, type BuyXPayYPromotion as cD, type BuyXPayYPromotionCreate as cE, type BuyXPayYPromotionUpdate as cF, type BuyXPayYPromotionSort as cG, type Capture as cH, type CaptureUpdate as cI, type CaptureSort as cJ, type CarrierAccount as cK, type CarrierAccountCreate as cL, type CarrierAccountUpdate as cM, type CarrierAccountSort as cN, type CheckoutComGateway as cO, type CheckoutComGatewayCreate as cP, type CheckoutComGatewayUpdate as cQ, type CheckoutComGatewaySort as cR, type CheckoutComPayment as cS, type CheckoutComPaymentCreate as cT, type CheckoutComPaymentUpdate as cU, type CheckoutComPaymentSort as cV, type Cleanup as cW, type CleanupCreate as cX, type CleanupUpdate as cY, type CleanupSort as cZ, type CouponCodesPromotionRule as c_, type AuthorizationSort as ca, type AvalaraAccount as cb, type AvalaraAccountCreate as cc, type AvalaraAccountUpdate as cd, type AvalaraAccountSort as ce, type AxerveGateway as cf, type AxerveGatewayCreate as cg, type AxerveGatewayUpdate as ch, type AxerveGatewaySort as ci, type AxervePayment as cj, type AxervePaymentCreate as ck, type AxervePaymentUpdate as cl, type AxervePaymentSort as cm, type BingGeocoder as cn, type BingGeocoderCreate as co, type BingGeocoderUpdate as cp, type BingGeocoderSort as cq, type BraintreeGateway as cr, type BraintreeGatewayCreate as cs, type BraintreeGatewayUpdate as ct, type BraintreeGatewaySort as cu, type BraintreePayment as cv, type BraintreePaymentCreate as cw, type BraintreePaymentUpdate as cx, type BraintreePaymentSort as cy, type Bundle as cz, type QueryParams as d, type ExternalGatewaySort as d$, type CouponCodesPromotionRuleUpdate as d0, type CouponCodesPromotionRuleSort as d1, type CouponRecipient as d2, type CouponRecipientCreate as d3, type CouponRecipientUpdate as d4, type CouponRecipientSort as d5, type Coupon as d6, type CouponCreate as d7, type CouponUpdate as d8, type CouponSort as d9, type CustomerCreate as dA, type CustomerUpdate as dB, type CustomerSort as dC, type DeliveryLeadTime as dD, type DeliveryLeadTimeCreate as dE, type DeliveryLeadTimeUpdate as dF, type DeliveryLeadTimeSort as dG, type DiscountEngineItem as dH, type DiscountEngineItemSort as dI, type DiscountEngine as dJ, type DiscountEngineSort as dK, type EasypostPickup as dL, type EasypostPickupCreate as dM, type EasypostPickupUpdate as dN, type EasypostPickupSort as dO, type EventCallback as dP, type EventCallbackSort as dQ, type Event as dR, type EventUpdate as dS, type EventSort as dT, type Export as dU, type ExportCreate as dV, type ExportUpdate as dW, type ExportSort as dX, type ExternalGateway as dY, type ExternalGatewayCreate as dZ, type ExternalGatewayUpdate as d_, type CustomPromotionRule as da, type CustomPromotionRuleCreate as db, type CustomPromotionRuleUpdate as dc, type CustomPromotionRuleSort as dd, type CustomerAddress as de, type CustomerAddressCreate as df, type CustomerAddressUpdate as dg, type CustomerAddressSort as dh, type CustomerGroup as di, type CustomerGroupCreate as dj, type CustomerGroupUpdate as dk, type CustomerGroupSort as dl, type CustomerPasswordReset as dm, type CustomerPasswordResetCreate as dn, type CustomerPasswordResetUpdate as dp, type CustomerPasswordResetSort as dq, type CustomerPaymentSource as dr, type CustomerPaymentSourceCreate as ds, type CustomerPaymentSourceUpdate as dt, type CustomerPaymentSourceSort as du, type CustomerSubscription as dv, type CustomerSubscriptionCreate as dw, type CustomerSubscriptionUpdate as dx, type CustomerSubscriptionSort as dy, type Customer as dz, type QueryPageNumber as e, type InventoryStockLocationCreate as e$, type ExternalPayment as e0, type ExternalPaymentCreate as e1, type ExternalPaymentUpdate as e2, type ExternalPaymentSort as e3, type ExternalPromotion as e4, type ExternalPromotionCreate as e5, type ExternalPromotionUpdate as e6, type ExternalPromotionSort as e7, type ExternalTaxCalculator as e8, type ExternalTaxCalculatorCreate as e9, type GiftCardRecipientUpdate as eA, type GiftCardRecipientSort as eB, type GiftCard as eC, type GiftCardCreate as eD, type GiftCardUpdate as eE, type GiftCardSort as eF, type GoogleGeocoder as eG, type GoogleGeocoderCreate as eH, type GoogleGeocoderUpdate as eI, type GoogleGeocoderSort as eJ, type Import as eK, type ImportCreate as eL, type ImportUpdate as eM, type ImportSort as eN, type InStockSubscription as eO, type InStockSubscriptionCreate as eP, type InStockSubscriptionUpdate as eQ, type InStockSubscriptionSort as eR, type InventoryModel as eS, type InventoryModelCreate as eT, type InventoryModelUpdate as eU, type InventoryModelSort as eV, type InventoryReturnLocation as eW, type InventoryReturnLocationCreate as eX, type InventoryReturnLocationUpdate as eY, type InventoryReturnLocationSort as eZ, type InventoryStockLocation as e_, type ExternalTaxCalculatorUpdate as ea, type ExternalTaxCalculatorSort as eb, type FixedAmountPromotion as ec, type FixedAmountPromotionCreate as ed, type FixedAmountPromotionUpdate as ee, type FixedAmountPromotionSort as ef, type FixedPricePromotion as eg, type FixedPricePromotionCreate as eh, type FixedPricePromotionUpdate as ei, type FixedPricePromotionSort as ej, type FlexPromotion as ek, type FlexPromotionCreate as el, type FlexPromotionUpdate as em, type FlexPromotionSort as en, type FreeGiftPromotion as eo, type FreeGiftPromotionCreate as ep, type FreeGiftPromotionUpdate as eq, type FreeGiftPromotionSort as er, type FreeShippingPromotion as es, type FreeShippingPromotionCreate as et, type FreeShippingPromotionUpdate as eu, type FreeShippingPromotionSort as ev, type Geocoder as ew, type GeocoderSort as ex, type GiftCardRecipient as ey, type GiftCardRecipientCreate as ez, type QueryPageSize as f, type OrderSort as f$, type InventoryStockLocationUpdate as f0, type InventoryStockLocationSort as f1, type KlarnaGateway as f2, type KlarnaGatewayCreate as f3, type KlarnaGatewayUpdate as f4, type KlarnaGatewaySort as f5, type KlarnaPayment as f6, type KlarnaPaymentCreate as f7, type KlarnaPaymentUpdate as f8, type KlarnaPaymentSort as f9, type MerchantUpdate as fA, type MerchantSort as fB, type Notification as fC, type NotificationCreate as fD, type NotificationUpdate as fE, type NotificationSort as fF, type OrderAmountPromotionRule as fG, type OrderAmountPromotionRuleCreate as fH, type OrderAmountPromotionRuleUpdate as fI, type OrderAmountPromotionRuleSort as fJ, type OrderCopy as fK, type OrderCopyCreate as fL, type OrderCopyUpdate as fM, type OrderCopySort as fN, type OrderFactory as fO, type OrderFactorySort as fP, type OrderSubscriptionItem as fQ, type OrderSubscriptionItemCreate as fR, type OrderSubscriptionItemUpdate as fS, type OrderSubscriptionItemSort as fT, type OrderSubscription as fU, type OrderSubscriptionCreate as fV, type OrderSubscriptionUpdate as fW, type OrderSubscriptionSort as fX, type Order as fY, type OrderCreate as fZ, type OrderUpdate as f_, type LineItemOption as fa, type LineItemOptionCreate as fb, type LineItemOptionUpdate as fc, type LineItemOptionSort as fd, type LineItem as fe, type LineItemCreate as ff, type LineItemUpdate as fg, type LineItemSort as fh, type Link as fi, type LinkCreate as fj, type LinkUpdate as fk, type LinkSort as fl, type ManualGateway as fm, type ManualGatewayCreate as fn, type ManualGatewayUpdate as fo, type ManualGatewaySort as fp, type ManualTaxCalculator as fq, type ManualTaxCalculatorCreate as fr, type ManualTaxCalculatorUpdate as fs, type ManualTaxCalculatorSort as ft, type Market as fu, type MarketCreate as fv, type MarketUpdate as fw, type MarketSort as fx, type Merchant as fy, type MerchantCreate as fz, type QuerySort as g, type PromotionSort as g$, type Organization as g0, type OrganizationSort as g1, type Package as g2, type PackageCreate as g3, type PackageUpdate as g4, type PackageSort as g5, type ParcelLineItem as g6, type ParcelLineItemCreate as g7, type ParcelLineItemUpdate as g8, type ParcelLineItemSort as g9, type Pickup as gA, type PickupSort as gB, type PriceFrequencyTier as gC, type PriceFrequencyTierCreate as gD, type PriceFrequencyTierUpdate as gE, type PriceFrequencyTierSort as gF, type PriceListScheduler as gG, type PriceListSchedulerCreate as gH, type PriceListSchedulerUpdate as gI, type PriceListSchedulerSort as gJ, type PriceList as gK, type PriceListCreate as gL, type PriceListUpdate as gM, type PriceListSort as gN, type PriceTier as gO, type PriceTierSort as gP, type PriceVolumeTier as gQ, type PriceVolumeTierCreate as gR, type PriceVolumeTierUpdate as gS, type PriceVolumeTierSort as gT, type Price as gU, type PriceCreate as gV, type PriceUpdate as gW, type PriceSort as gX, type PromotionRule as gY, type PromotionRuleSort as gZ, type Promotion as g_, type Parcel as ga, type ParcelCreate as gb, type ParcelUpdate as gc, type ParcelSort as gd, type PaymentGateway as ge, type PaymentGatewaySort as gf, type PaymentMethod as gg, type PaymentMethodCreate as gh, type PaymentMethodUpdate as gi, type PaymentMethodSort as gj, type PaymentOption as gk, type PaymentOptionCreate as gl, type PaymentOptionUpdate as gm, type PaymentOptionSort as gn, type PaypalGateway as go, type PaypalGatewayCreate as gp, type PaypalGatewayUpdate as gq, type PaypalGatewaySort as gr, type PaypalPayment as gs, type PaypalPaymentCreate as gt, type PaypalPaymentUpdate as gu, type PaypalPaymentSort as gv, type PercentageDiscountPromotion as gw, type PercentageDiscountPromotionCreate as gx, type PercentageDiscountPromotionUpdate as gy, type PercentageDiscountPromotionSort as gz, type QueryFilter as h, type SkuOptionUpdate as h$, type RecurringOrderCopy as h0, type RecurringOrderCopyCreate as h1, type RecurringOrderCopyUpdate as h2, type RecurringOrderCopySort as h3, type Refund as h4, type RefundUpdate as h5, type RefundSort as h6, type ReservedStock as h7, type ReservedStockSort as h8, type ResourceError as h9, type ShippingMethodTierSort as hA, type ShippingMethod as hB, type ShippingMethodCreate as hC, type ShippingMethodUpdate as hD, type ShippingMethodSort as hE, type ShippingWeightTier as hF, type ShippingWeightTierCreate as hG, type ShippingWeightTierUpdate as hH, type ShippingWeightTierSort as hI, type ShippingZone as hJ, type ShippingZoneCreate as hK, type ShippingZoneUpdate as hL, type ShippingZoneSort as hM, type SkuListItem as hN, type SkuListItemCreate as hO, type SkuListItemUpdate as hP, type SkuListItemSort as hQ, type SkuListPromotionRule as hR, type SkuListPromotionRuleCreate as hS, type SkuListPromotionRuleUpdate as hT, type SkuListPromotionRuleSort as hU, type SkuList as hV, type SkuListCreate as hW, type SkuListUpdate as hX, type SkuListSort as hY, type SkuOption as hZ, type SkuOptionCreate as h_, type ResourceErrorSort as ha, type ReturnLineItem as hb, type ReturnLineItemCreate as hc, type ReturnLineItemUpdate as hd, type ReturnLineItemSort as he, type Return as hf, type ReturnCreate as hg, type ReturnUpdate as hh, type ReturnSort as hi, type SatispayGateway as hj, type SatispayGatewayCreate as hk, type SatispayGatewayUpdate as hl, type SatispayGatewaySort as hm, type SatispayPayment as hn, type SatispayPaymentCreate as ho, type SatispayPaymentUpdate as hp, type SatispayPaymentSort as hq, type Shipment as hr, type ShipmentCreate as hs, type ShipmentUpdate as ht, type ShipmentSort as hu, type ShippingCategory as hv, type ShippingCategoryCreate as hw, type ShippingCategoryUpdate as hx, type ShippingCategorySort as hy, type ShippingMethodTier as hz, type ResourceId as i, type TaxRuleUpdate as i$, type SkuOptionSort as i0, type Sku as i1, type SkuCreate as i2, type SkuUpdate as i3, type SkuSort as i4, type StockItem as i5, type StockItemCreate as i6, type StockItemUpdate as i7, type StockItemSort as i8, type StockLineItem as i9, type StripePaymentCreate as iA, type StripePaymentUpdate as iB, type StripePaymentSort as iC, type StripeTaxAccount as iD, type StripeTaxAccountCreate as iE, type StripeTaxAccountUpdate as iF, type StripeTaxAccountSort as iG, type SubscriptionModel as iH, type SubscriptionModelCreate as iI, type SubscriptionModelUpdate as iJ, type SubscriptionModelSort as iK, type Tag as iL, type TagCreate as iM, type TagUpdate as iN, type TagSort as iO, type TalonOneAccount as iP, type TalonOneAccountCreate as iQ, type TalonOneAccountUpdate as iR, type TalonOneAccountSort as iS, type TaxCalculator as iT, type TaxCalculatorSort as iU, type TaxCategory as iV, type TaxCategoryCreate as iW, type TaxCategoryUpdate as iX, type TaxCategorySort as iY, type TaxRule as iZ, type TaxRuleCreate as i_, type StockLineItemCreate as ia, type StockLineItemUpdate as ib, type StockLineItemSort as ic, type StockLocation as id, type StockLocationCreate as ie, type StockLocationUpdate as ig, type StockLocationSort as ih, type StockReservation as ii, type StockReservationCreate as ij, type StockReservationUpdate as ik, type StockReservationSort as il, type StockTransfer as im, type StockTransferCreate as io, type StockTransferUpdate as ip, type StockTransferSort as iq, type Store as ir, type StoreCreate as is, type StoreUpdate as it, type StoreSort as iu, type StripeGateway as iv, type StripeGatewayCreate as iw, type StripeGatewayUpdate as ix, type StripeGatewaySort as iy, type StripePayment as iz, type Resource as j, type ShippingZoneType as j$, type TaxRuleSort as j0, type TaxjarAccount as j1, type TaxjarAccountCreate as j2, type TaxjarAccountUpdate as j3, type TaxjarAccountSort as j4, type Transaction as j5, type TransactionSort as j6, type Version as j7, type VersionSort as j8, type VertexAccount as j9, type CustomerAddressType as jA, type PaymentGatewayType as jB, type AdyenPaymentType as jC, type AxervePaymentType as jD, type BraintreePaymentType as jE, type CheckoutComPaymentType as jF, type ExternalPaymentType as jG, type KlarnaPaymentType as jH, type PaypalPaymentType as jI, type SatispayPaymentType as jJ, type StripePaymentType as jK, type WireTransferType as jL, type CustomerPaymentSourceType as jM, type CustomerSubscriptionType as jN, type SubscriptionModelType as jO, type SkuOptionType as jP, type LineItemOptionType as jQ, type VoidType as jR, type AuthorizationType as jS, type RefundType as jT, type CaptureType as jU, type ResourceErrorType as jV, type ReturnType as jW, type ReturnLineItemType as jX, type StockLineItemType as jY, type ReservedStockType as jZ, type StockReservationType as j_, type VertexAccountCreate as ja, type VertexAccountUpdate as jb, type VertexAccountSort as jc, type Void as jd, type VoidUpdate as je, type VoidSort as jf, type Webhook as jg, type WebhookCreate as jh, type WebhookUpdate as ji, type WebhookSort as jj, type WireTransfer as jk, type WireTransferCreate as jl, type WireTransferUpdate as jm, type WireTransferSort as jn, type TagType as jo, type VersionType as jp, type AdjustmentType as jq, type GeocoderType as jr, type ShippingCategoryType as js, type InventoryReturnLocationType as jt, type InventoryModelType as ju, type InventoryStockLocationType as jv, type CustomerGroupType as jw, type EventCallbackType as jx, type WebhookType as jy, type EventType as jz, type ResourceCreate as k, type ExternalTaxCalculatorType as k$, type DeliveryLeadTimeType as k0, type ShippingMethodTierType as k1, type ShippingWeightTierType as k2, type ShippingMethodType as k3, type NotificationType as k4, type SkuListItemType as k5, type LinkType as k6, type SkuListType as k7, type BundleType as k8, type GiftCardRecipientType as k9, type OrderCopyType as kA, type OrderType as kB, type PackageType as kC, type ParcelLineItemType as kD, type ParcelType as kE, type PickupType as kF, type CarrierAccountType as kG, type ShipmentType as kH, type StockTransferType as kI, type StockLocationType as kJ, type StockItemType as kK, type SkuType as kL, type PriceTierType as kM, type PriceVolumeTierType as kN, type PriceFrequencyTierType as kO, type PriceType as kP, type PriceListSchedulerType as kQ, type PriceListType as kR, type TransactionType as kS, type PromotionType as kT, type TaxCalculatorType as kU, type AvalaraAccountType as kV, type StripeTaxAccountType as kW, type VertexAccountType as kX, type TaxjarAccountType as kY, type TaxRuleType as kZ, type ManualTaxCalculatorType as k_, type GiftCardType as ka, type DiscountEngineType as kb, type DiscountEngineItemType as kc, type CouponRecipientType as kd, type CouponType as ke, type ExternalPromotionType as kf, type FixedAmountPromotionType as kg, type FlexPromotionType as kh, type PromotionRuleType as ki, type FixedPricePromotionType as kj, type CustomPromotionRuleType as kk, type FreeGiftPromotionType as kl, type CouponCodesPromotionRuleType as km, type BuyXPayYPromotionType as kn, type SkuListPromotionRuleType as ko, type FreeShippingPromotionType as kp, type OrderAmountPromotionRuleType as kq, type PercentageDiscountPromotionType as kr, type LineItemType as ks, type OrderSubscriptionItemType as kt, type OrderFactoryType as ku, type RecurringOrderCopyType as kv, type OrderSubscriptionType as kw, type CustomerType as kx, type StoreType as ky, type PaymentOptionType as kz, type ResourceUpdate as l, type TaxCategoryType as l0, type AttachmentType as l1, type MerchantType as l2, type MarketType as l3, type PaymentMethodType as l4, type AdyenGatewayType as l5, type ApplicationType as l6, type AxerveGatewayType as l7, type BingGeocoderType as l8, type BraintreeGatewayType as l9, isCreatable as lA, isUpdatable as lB, isDeletable as lC, isTaggable as lD, isVersionable as lE, type ResourceFields as lF, type ResourceSortFields as lG, generateQueryStringParams as lH, isParamsList as lI, generateSearchString as lJ, ApiResourceAdapter as lK, ApiResource as lL, ApiSingleton as lM, isResourceId as lN, isResourceType as lO, type AddressType as lP, type CheckoutComGatewayType as la, type CleanupType as lb, type CustomerPasswordResetType as lc, type EasypostPickupType as ld, type ExportType as le, type ExternalGatewayType as lf, type GoogleGeocoderType as lg, type ImportType as lh, type InStockSubscriptionType as li, type KlarnaGatewayType as lj, type ManualGatewayType as lk, type OrganizationType as ll, type PaypalGatewayType as lm, type SatispayGatewayType as ln, type StripeGatewayType as lo, type TalonOneAccountType as lp, resourceList as lq, singletonList as lr, creatableResources as ls, updatableResources as lt, deletableResources as lu, taggableResources as lv, versionableResources as lw, getResources as lx, getSingletons as ly, isSingleton as lz, type ListMeta as m, type ResourceRel as n, type ResourceSort as o, type ResourceFilter as p, type ResourcesConfig as q, type ResourcesInitConfig as r, type ResourceTypeLock as s, type RetrievableResourceType as t, type RetrievableResource as u, type ListableResourceType as v, type ListableResource as w, type CreatableResource as x, type UpdatableResource as y, type DeletableResource as z };
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import ApiClient, { ApiClientInitConfig } from './client.cjs';
|
2
|
-
import { StringKey, PositiveNumberRange } from './types.cjs';
|
2
|
+
import { StringKey, PositiveNumberRange, ObjectType } from './types.cjs';
|
3
3
|
|
4
4
|
type TagType = 'tags';
|
5
5
|
type TagRel$l = ResourceRel & {
|
@@ -16753,7 +16753,7 @@ type ResourceNull = {
|
|
16753
16753
|
id: null;
|
16754
16754
|
} & ResourceType;
|
16755
16755
|
type ResourceRel = ResourceId | ResourceNull;
|
16756
|
-
type Metadata =
|
16756
|
+
type Metadata = ObjectType;
|
16757
16757
|
interface ResourceType {
|
16758
16758
|
readonly type: ResourceTypeLock;
|
16759
16759
|
}
|
@@ -16840,6 +16840,9 @@ declare abstract class ApiSingleton<R extends Resource> extends ApiResourceBase<
|
|
16840
16840
|
retrieve(params?: QueryParamsRetrieve<R>, options?: ResourcesConfig): Promise<R>;
|
16841
16841
|
}
|
16842
16842
|
|
16843
|
+
declare const isResourceId: (resource: any) => resource is ResourceId;
|
16844
|
+
declare const isResourceType: (resource: any) => resource is ResourceType;
|
16845
|
+
|
16843
16846
|
type AddressType = 'addresses';
|
16844
16847
|
type AddressRel = ResourceRel & {
|
16845
16848
|
type: AddressType;
|
@@ -17169,4 +17172,4 @@ declare class Addresses extends ApiResource<Address> {
|
|
17169
17172
|
}
|
17170
17173
|
declare const instance: Addresses;
|
17171
17174
|
|
17172
|
-
export { instance$M as $, type TaggableResource as A, type VersionableResource as B, type CreatableResourceType as C, type DeletableResourceType as D, instance as E, instance$20 as F, instance$l as G, instance$1Q as H, instance$k as I, instance$p as J, instance$1A as K, ListResponse as L, type Metadata as M, instance$x as N, instance$j as O, instance$1P as P, type QueryInclude as Q, type ResourceType as R, instance$i as S, type TaggableResourceType as T, type UpdatableResourceType as U, type VersionableResourceType as V, instance$h as W, instance$1O as X, instance$1i as Y, instance$13 as Z, instance$1y as _, type QueryFields as a, instance$$ as a$, instance$g as a0, instance$1N as a1, instance$f as a2, instance$14 as a3, instance$1d as a4, instance$1c as a5, instance$16 as a6, instance$1S as a7, instance$1W as a8, instance$e as a9, instance$1Z as aA, instance$1X as aB, instance$7 as aC, instance$1L as aD, instance$1C as aE, instance$_ as aF, instance$1k as aG, instance$6 as aH, instance$s as aI, instance$n as aJ, instance$o as aK, instance$1m as aL, instance$10 as aM, instance$S as aN, instance$Y as aO, instance$Z as aP, instance$W as aQ, instance$R as aR, instance$5 as aS, instance$Q as aT, instance$P as aU, instance$O as aV, instance$1R as aW, instance$m as aX, instance$T as aY, instance$4 as aZ, instance$1K as a_, instance$1G as aa, instance$1F as ab, instance$V as ac, instance$1q as ad, instance$1e as ae, instance$1f as af, instance$d as ag, instance$1V as ah, instance$1T as ai, instance$c as aj, instance$b as ak, instance$1M as al, instance$1b as am, instance$r as an, instance$1a as ao, instance$17 as ap, instance$19 as aq, instance$15 as ar, instance$11 as as, instance$1$ as at, instance$1h as au, instance$1g as av, instance$a as aw, instance$9 as ax, instance$8 as ay, instance$1Y as az, type QueryParamsRetrieve as b, type AdyenPaymentCreate as b$, instance$N as b0, instance$E as b1, instance$C as b2, instance$B as b3, instance$G as b4, instance$F as b5, instance$D as b6, instance$18 as b7, instance$z as b8, instance$X as b9, instance$w as bA, instance$1E as bB, instance$22 as bC, instance$1 as bD, instance$y as bE, instance$q as bF, instance$t as bG, instance$u as bH, instance$A as bI, instance$21 as bJ, instance$v as bK, instance$1B as bL, instance$1U as bM, instance$1H as bN, type Address as bO, type AddressCreate as bP, type AddressUpdate as bQ, type AddressSort as bR, type Adjustment as bS, type AdjustmentCreate as bT, type AdjustmentUpdate as bU, type AdjustmentSort as bV, type AdyenGateway as bW, type AdyenGatewayCreate as bX, type AdyenGatewayUpdate as bY, type AdyenGatewaySort as bZ, type AdyenPayment as b_, instance$1z as ba, instance$1t as bb, instance$1x as bc, instance$1v as bd, instance$1w as be, instance$3 as bf, instance$1J as bg, instance$L as bh, instance$1_ as bi, instance$1p as bj, instance$1n as bk, instance$1o as bl, instance$1r as bm, instance$1l as bn, instance$12 as bo, instance$1j as bp, instance$1D as bq, instance$H as br, instance$I as bs, instance$1u as bt, instance$J as bu, instance$1s as bv, instance$K as bw, instance$U as bx, instance$2 as by, instance$1I as bz, type QueryParamsList as c, type CouponCodesPromotionRuleCreate as c$, type AdyenPaymentUpdate as c0, type AdyenPaymentSort as c1, type Application as c2, type ApplicationSort as c3, type Attachment as c4, type AttachmentCreate as c5, type AttachmentUpdate as c6, type AttachmentSort as c7, type Authorization as c8, type AuthorizationUpdate as c9, type BundleCreate as cA, type BundleUpdate as cB, type BundleSort as cC, type BuyXPayYPromotion as cD, type BuyXPayYPromotionCreate as cE, type BuyXPayYPromotionUpdate as cF, type BuyXPayYPromotionSort as cG, type Capture as cH, type CaptureUpdate as cI, type CaptureSort as cJ, type CarrierAccount as cK, type CarrierAccountCreate as cL, type CarrierAccountUpdate as cM, type CarrierAccountSort as cN, type CheckoutComGateway as cO, type CheckoutComGatewayCreate as cP, type CheckoutComGatewayUpdate as cQ, type CheckoutComGatewaySort as cR, type CheckoutComPayment as cS, type CheckoutComPaymentCreate as cT, type CheckoutComPaymentUpdate as cU, type CheckoutComPaymentSort as cV, type Cleanup as cW, type CleanupCreate as cX, type CleanupUpdate as cY, type CleanupSort as cZ, type CouponCodesPromotionRule as c_, type AuthorizationSort as ca, type AvalaraAccount as cb, type AvalaraAccountCreate as cc, type AvalaraAccountUpdate as cd, type AvalaraAccountSort as ce, type AxerveGateway as cf, type AxerveGatewayCreate as cg, type AxerveGatewayUpdate as ch, type AxerveGatewaySort as ci, type AxervePayment as cj, type AxervePaymentCreate as ck, type AxervePaymentUpdate as cl, type AxervePaymentSort as cm, type BingGeocoder as cn, type BingGeocoderCreate as co, type BingGeocoderUpdate as cp, type BingGeocoderSort as cq, type BraintreeGateway as cr, type BraintreeGatewayCreate as cs, type BraintreeGatewayUpdate as ct, type BraintreeGatewaySort as cu, type BraintreePayment as cv, type BraintreePaymentCreate as cw, type BraintreePaymentUpdate as cx, type BraintreePaymentSort as cy, type Bundle as cz, type QueryParams as d, type ExternalGatewaySort as d$, type CouponCodesPromotionRuleUpdate as d0, type CouponCodesPromotionRuleSort as d1, type CouponRecipient as d2, type CouponRecipientCreate as d3, type CouponRecipientUpdate as d4, type CouponRecipientSort as d5, type Coupon as d6, type CouponCreate as d7, type CouponUpdate as d8, type CouponSort as d9, type CustomerCreate as dA, type CustomerUpdate as dB, type CustomerSort as dC, type DeliveryLeadTime as dD, type DeliveryLeadTimeCreate as dE, type DeliveryLeadTimeUpdate as dF, type DeliveryLeadTimeSort as dG, type DiscountEngineItem as dH, type DiscountEngineItemSort as dI, type DiscountEngine as dJ, type DiscountEngineSort as dK, type EasypostPickup as dL, type EasypostPickupCreate as dM, type EasypostPickupUpdate as dN, type EasypostPickupSort as dO, type EventCallback as dP, type EventCallbackSort as dQ, type Event as dR, type EventUpdate as dS, type EventSort as dT, type Export as dU, type ExportCreate as dV, type ExportUpdate as dW, type ExportSort as dX, type ExternalGateway as dY, type ExternalGatewayCreate as dZ, type ExternalGatewayUpdate as d_, type CustomPromotionRule as da, type CustomPromotionRuleCreate as db, type CustomPromotionRuleUpdate as dc, type CustomPromotionRuleSort as dd, type CustomerAddress as de, type CustomerAddressCreate as df, type CustomerAddressUpdate as dg, type CustomerAddressSort as dh, type CustomerGroup as di, type CustomerGroupCreate as dj, type CustomerGroupUpdate as dk, type CustomerGroupSort as dl, type CustomerPasswordReset as dm, type CustomerPasswordResetCreate as dn, type CustomerPasswordResetUpdate as dp, type CustomerPasswordResetSort as dq, type CustomerPaymentSource as dr, type CustomerPaymentSourceCreate as ds, type CustomerPaymentSourceUpdate as dt, type CustomerPaymentSourceSort as du, type CustomerSubscription as dv, type CustomerSubscriptionCreate as dw, type CustomerSubscriptionUpdate as dx, type CustomerSubscriptionSort as dy, type Customer as dz, type QueryPageNumber as e, type InventoryStockLocationCreate as e$, type ExternalPayment as e0, type ExternalPaymentCreate as e1, type ExternalPaymentUpdate as e2, type ExternalPaymentSort as e3, type ExternalPromotion as e4, type ExternalPromotionCreate as e5, type ExternalPromotionUpdate as e6, type ExternalPromotionSort as e7, type ExternalTaxCalculator as e8, type ExternalTaxCalculatorCreate as e9, type GiftCardRecipientUpdate as eA, type GiftCardRecipientSort as eB, type GiftCard as eC, type GiftCardCreate as eD, type GiftCardUpdate as eE, type GiftCardSort as eF, type GoogleGeocoder as eG, type GoogleGeocoderCreate as eH, type GoogleGeocoderUpdate as eI, type GoogleGeocoderSort as eJ, type Import as eK, type ImportCreate as eL, type ImportUpdate as eM, type ImportSort as eN, type InStockSubscription as eO, type InStockSubscriptionCreate as eP, type InStockSubscriptionUpdate as eQ, type InStockSubscriptionSort as eR, type InventoryModel as eS, type InventoryModelCreate as eT, type InventoryModelUpdate as eU, type InventoryModelSort as eV, type InventoryReturnLocation as eW, type InventoryReturnLocationCreate as eX, type InventoryReturnLocationUpdate as eY, type InventoryReturnLocationSort as eZ, type InventoryStockLocation as e_, type ExternalTaxCalculatorUpdate as ea, type ExternalTaxCalculatorSort as eb, type FixedAmountPromotion as ec, type FixedAmountPromotionCreate as ed, type FixedAmountPromotionUpdate as ee, type FixedAmountPromotionSort as ef, type FixedPricePromotion as eg, type FixedPricePromotionCreate as eh, type FixedPricePromotionUpdate as ei, type FixedPricePromotionSort as ej, type FlexPromotion as ek, type FlexPromotionCreate as el, type FlexPromotionUpdate as em, type FlexPromotionSort as en, type FreeGiftPromotion as eo, type FreeGiftPromotionCreate as ep, type FreeGiftPromotionUpdate as eq, type FreeGiftPromotionSort as er, type FreeShippingPromotion as es, type FreeShippingPromotionCreate as et, type FreeShippingPromotionUpdate as eu, type FreeShippingPromotionSort as ev, type Geocoder as ew, type GeocoderSort as ex, type GiftCardRecipient as ey, type GiftCardRecipientCreate as ez, type QueryPageSize as f, type OrderSort as f$, type InventoryStockLocationUpdate as f0, type InventoryStockLocationSort as f1, type KlarnaGateway as f2, type KlarnaGatewayCreate as f3, type KlarnaGatewayUpdate as f4, type KlarnaGatewaySort as f5, type KlarnaPayment as f6, type KlarnaPaymentCreate as f7, type KlarnaPaymentUpdate as f8, type KlarnaPaymentSort as f9, type MerchantUpdate as fA, type MerchantSort as fB, type Notification as fC, type NotificationCreate as fD, type NotificationUpdate as fE, type NotificationSort as fF, type OrderAmountPromotionRule as fG, type OrderAmountPromotionRuleCreate as fH, type OrderAmountPromotionRuleUpdate as fI, type OrderAmountPromotionRuleSort as fJ, type OrderCopy as fK, type OrderCopyCreate as fL, type OrderCopyUpdate as fM, type OrderCopySort as fN, type OrderFactory as fO, type OrderFactorySort as fP, type OrderSubscriptionItem as fQ, type OrderSubscriptionItemCreate as fR, type OrderSubscriptionItemUpdate as fS, type OrderSubscriptionItemSort as fT, type OrderSubscription as fU, type OrderSubscriptionCreate as fV, type OrderSubscriptionUpdate as fW, type OrderSubscriptionSort as fX, type Order as fY, type OrderCreate as fZ, type OrderUpdate as f_, type LineItemOption as fa, type LineItemOptionCreate as fb, type LineItemOptionUpdate as fc, type LineItemOptionSort as fd, type LineItem as fe, type LineItemCreate as ff, type LineItemUpdate as fg, type LineItemSort as fh, type Link as fi, type LinkCreate as fj, type LinkUpdate as fk, type LinkSort as fl, type ManualGateway as fm, type ManualGatewayCreate as fn, type ManualGatewayUpdate as fo, type ManualGatewaySort as fp, type ManualTaxCalculator as fq, type ManualTaxCalculatorCreate as fr, type ManualTaxCalculatorUpdate as fs, type ManualTaxCalculatorSort as ft, type Market as fu, type MarketCreate as fv, type MarketUpdate as fw, type MarketSort as fx, type Merchant as fy, type MerchantCreate as fz, type QuerySort as g, type PromotionSort as g$, type Organization as g0, type OrganizationSort as g1, type Package as g2, type PackageCreate as g3, type PackageUpdate as g4, type PackageSort as g5, type ParcelLineItem as g6, type ParcelLineItemCreate as g7, type ParcelLineItemUpdate as g8, type ParcelLineItemSort as g9, type Pickup as gA, type PickupSort as gB, type PriceFrequencyTier as gC, type PriceFrequencyTierCreate as gD, type PriceFrequencyTierUpdate as gE, type PriceFrequencyTierSort as gF, type PriceListScheduler as gG, type PriceListSchedulerCreate as gH, type PriceListSchedulerUpdate as gI, type PriceListSchedulerSort as gJ, type PriceList as gK, type PriceListCreate as gL, type PriceListUpdate as gM, type PriceListSort as gN, type PriceTier as gO, type PriceTierSort as gP, type PriceVolumeTier as gQ, type PriceVolumeTierCreate as gR, type PriceVolumeTierUpdate as gS, type PriceVolumeTierSort as gT, type Price as gU, type PriceCreate as gV, type PriceUpdate as gW, type PriceSort as gX, type PromotionRule as gY, type PromotionRuleSort as gZ, type Promotion as g_, type Parcel as ga, type ParcelCreate as gb, type ParcelUpdate as gc, type ParcelSort as gd, type PaymentGateway as ge, type PaymentGatewaySort as gf, type PaymentMethod as gg, type PaymentMethodCreate as gh, type PaymentMethodUpdate as gi, type PaymentMethodSort as gj, type PaymentOption as gk, type PaymentOptionCreate as gl, type PaymentOptionUpdate as gm, type PaymentOptionSort as gn, type PaypalGateway as go, type PaypalGatewayCreate as gp, type PaypalGatewayUpdate as gq, type PaypalGatewaySort as gr, type PaypalPayment as gs, type PaypalPaymentCreate as gt, type PaypalPaymentUpdate as gu, type PaypalPaymentSort as gv, type PercentageDiscountPromotion as gw, type PercentageDiscountPromotionCreate as gx, type PercentageDiscountPromotionUpdate as gy, type PercentageDiscountPromotionSort as gz, type QueryFilter as h, type SkuOptionUpdate as h$, type RecurringOrderCopy as h0, type RecurringOrderCopyCreate as h1, type RecurringOrderCopyUpdate as h2, type RecurringOrderCopySort as h3, type Refund as h4, type RefundUpdate as h5, type RefundSort as h6, type ReservedStock as h7, type ReservedStockSort as h8, type ResourceError as h9, type ShippingMethodTierSort as hA, type ShippingMethod as hB, type ShippingMethodCreate as hC, type ShippingMethodUpdate as hD, type ShippingMethodSort as hE, type ShippingWeightTier as hF, type ShippingWeightTierCreate as hG, type ShippingWeightTierUpdate as hH, type ShippingWeightTierSort as hI, type ShippingZone as hJ, type ShippingZoneCreate as hK, type ShippingZoneUpdate as hL, type ShippingZoneSort as hM, type SkuListItem as hN, type SkuListItemCreate as hO, type SkuListItemUpdate as hP, type SkuListItemSort as hQ, type SkuListPromotionRule as hR, type SkuListPromotionRuleCreate as hS, type SkuListPromotionRuleUpdate as hT, type SkuListPromotionRuleSort as hU, type SkuList as hV, type SkuListCreate as hW, type SkuListUpdate as hX, type SkuListSort as hY, type SkuOption as hZ, type SkuOptionCreate as h_, type ResourceErrorSort as ha, type ReturnLineItem as hb, type ReturnLineItemCreate as hc, type ReturnLineItemUpdate as hd, type ReturnLineItemSort as he, type Return as hf, type ReturnCreate as hg, type ReturnUpdate as hh, type ReturnSort as hi, type SatispayGateway as hj, type SatispayGatewayCreate as hk, type SatispayGatewayUpdate as hl, type SatispayGatewaySort as hm, type SatispayPayment as hn, type SatispayPaymentCreate as ho, type SatispayPaymentUpdate as hp, type SatispayPaymentSort as hq, type Shipment as hr, type ShipmentCreate as hs, type ShipmentUpdate as ht, type ShipmentSort as hu, type ShippingCategory as hv, type ShippingCategoryCreate as hw, type ShippingCategoryUpdate as hx, type ShippingCategorySort as hy, type ShippingMethodTier as hz, type ResourceId as i, type TaxRuleUpdate as i$, type SkuOptionSort as i0, type Sku as i1, type SkuCreate as i2, type SkuUpdate as i3, type SkuSort as i4, type StockItem as i5, type StockItemCreate as i6, type StockItemUpdate as i7, type StockItemSort as i8, type StockLineItem as i9, type StripePaymentCreate as iA, type StripePaymentUpdate as iB, type StripePaymentSort as iC, type StripeTaxAccount as iD, type StripeTaxAccountCreate as iE, type StripeTaxAccountUpdate as iF, type StripeTaxAccountSort as iG, type SubscriptionModel as iH, type SubscriptionModelCreate as iI, type SubscriptionModelUpdate as iJ, type SubscriptionModelSort as iK, type Tag as iL, type TagCreate as iM, type TagUpdate as iN, type TagSort as iO, type TalonOneAccount as iP, type TalonOneAccountCreate as iQ, type TalonOneAccountUpdate as iR, type TalonOneAccountSort as iS, type TaxCalculator as iT, type TaxCalculatorSort as iU, type TaxCategory as iV, type TaxCategoryCreate as iW, type TaxCategoryUpdate as iX, type TaxCategorySort as iY, type TaxRule as iZ, type TaxRuleCreate as i_, type StockLineItemCreate as ia, type StockLineItemUpdate as ib, type StockLineItemSort as ic, type StockLocation as id, type StockLocationCreate as ie, type StockLocationUpdate as ig, type StockLocationSort as ih, type StockReservation as ii, type StockReservationCreate as ij, type StockReservationUpdate as ik, type StockReservationSort as il, type StockTransfer as im, type StockTransferCreate as io, type StockTransferUpdate as ip, type StockTransferSort as iq, type Store as ir, type StoreCreate as is, type StoreUpdate as it, type StoreSort as iu, type StripeGateway as iv, type StripeGatewayCreate as iw, type StripeGatewayUpdate as ix, type StripeGatewaySort as iy, type StripePayment as iz, type Resource as j, type ShippingZoneType as j$, type TaxRuleSort as j0, type TaxjarAccount as j1, type TaxjarAccountCreate as j2, type TaxjarAccountUpdate as j3, type TaxjarAccountSort as j4, type Transaction as j5, type TransactionSort as j6, type Version as j7, type VersionSort as j8, type VertexAccount as j9, type CustomerAddressType as jA, type PaymentGatewayType as jB, type AdyenPaymentType as jC, type AxervePaymentType as jD, type BraintreePaymentType as jE, type CheckoutComPaymentType as jF, type ExternalPaymentType as jG, type KlarnaPaymentType as jH, type PaypalPaymentType as jI, type SatispayPaymentType as jJ, type StripePaymentType as jK, type WireTransferType as jL, type CustomerPaymentSourceType as jM, type CustomerSubscriptionType as jN, type SubscriptionModelType as jO, type SkuOptionType as jP, type LineItemOptionType as jQ, type VoidType as jR, type AuthorizationType as jS, type RefundType as jT, type CaptureType as jU, type ResourceErrorType as jV, type ReturnType as jW, type ReturnLineItemType as jX, type StockLineItemType as jY, type ReservedStockType as jZ, type StockReservationType as j_, type VertexAccountCreate as ja, type VertexAccountUpdate as jb, type VertexAccountSort as jc, type Void as jd, type VoidUpdate as je, type VoidSort as jf, type Webhook as jg, type WebhookCreate as jh, type WebhookUpdate as ji, type WebhookSort as jj, type WireTransfer as jk, type WireTransferCreate as jl, type WireTransferUpdate as jm, type WireTransferSort as jn, type TagType as jo, type VersionType as jp, type AdjustmentType as jq, type GeocoderType as jr, type ShippingCategoryType as js, type InventoryReturnLocationType as jt, type InventoryModelType as ju, type InventoryStockLocationType as jv, type CustomerGroupType as jw, type EventCallbackType as jx, type WebhookType as jy, type EventType as jz, type ResourceCreate as k, type ExternalTaxCalculatorType as k$, type DeliveryLeadTimeType as k0, type ShippingMethodTierType as k1, type ShippingWeightTierType as k2, type ShippingMethodType as k3, type NotificationType as k4, type SkuListItemType as k5, type LinkType as k6, type SkuListType as k7, type BundleType as k8, type GiftCardRecipientType as k9, type OrderCopyType as kA, type OrderType as kB, type PackageType as kC, type ParcelLineItemType as kD, type ParcelType as kE, type PickupType as kF, type CarrierAccountType as kG, type ShipmentType as kH, type StockTransferType as kI, type StockLocationType as kJ, type StockItemType as kK, type SkuType as kL, type PriceTierType as kM, type PriceVolumeTierType as kN, type PriceFrequencyTierType as kO, type PriceType as kP, type PriceListSchedulerType as kQ, type PriceListType as kR, type TransactionType as kS, type PromotionType as kT, type TaxCalculatorType as kU, type AvalaraAccountType as kV, type StripeTaxAccountType as kW, type VertexAccountType as kX, type TaxjarAccountType as kY, type TaxRuleType as kZ, type ManualTaxCalculatorType as k_, type GiftCardType as ka, type DiscountEngineType as kb, type DiscountEngineItemType as kc, type CouponRecipientType as kd, type CouponType as ke, type ExternalPromotionType as kf, type FixedAmountPromotionType as kg, type FlexPromotionType as kh, type PromotionRuleType as ki, type FixedPricePromotionType as kj, type CustomPromotionRuleType as kk, type FreeGiftPromotionType as kl, type CouponCodesPromotionRuleType as km, type BuyXPayYPromotionType as kn, type SkuListPromotionRuleType as ko, type FreeShippingPromotionType as kp, type OrderAmountPromotionRuleType as kq, type PercentageDiscountPromotionType as kr, type LineItemType as ks, type OrderSubscriptionItemType as kt, type OrderFactoryType as ku, type RecurringOrderCopyType as kv, type OrderSubscriptionType as kw, type CustomerType as kx, type StoreType as ky, type PaymentOptionType as kz, type ResourceUpdate as l, type TaxCategoryType as l0, type AttachmentType as l1, type MerchantType as l2, type MarketType as l3, type PaymentMethodType as l4, type AdyenGatewayType as l5, type ApplicationType as l6, type AxerveGatewayType as l7, type BingGeocoderType as l8, type BraintreeGatewayType as l9, isCreatable as lA, isUpdatable as lB, isDeletable as lC, isTaggable as lD, isVersionable as lE, type ResourceFields as lF, type ResourceSortFields as lG, generateQueryStringParams as lH, isParamsList as lI, generateSearchString as lJ, ApiResourceAdapter as lK, ApiResource as lL, ApiSingleton as lM, type AddressType as lN, type CheckoutComGatewayType as la, type CleanupType as lb, type CustomerPasswordResetType as lc, type EasypostPickupType as ld, type ExportType as le, type ExternalGatewayType as lf, type GoogleGeocoderType as lg, type ImportType as lh, type InStockSubscriptionType as li, type KlarnaGatewayType as lj, type ManualGatewayType as lk, type OrganizationType as ll, type PaypalGatewayType as lm, type SatispayGatewayType as ln, type StripeGatewayType as lo, type TalonOneAccountType as lp, resourceList as lq, singletonList as lr, creatableResources as ls, updatableResources as lt, deletableResources as lu, taggableResources as lv, versionableResources as lw, getResources as lx, getSingletons as ly, isSingleton as lz, type ListMeta as m, type ResourceRel as n, type ResourceSort as o, type ResourceFilter as p, type ResourcesConfig as q, type ResourcesInitConfig as r, type ResourceTypeLock as s, type RetrievableResourceType as t, type RetrievableResource as u, type ListableResourceType as v, type ListableResource as w, type CreatableResource as x, type UpdatableResource as y, type DeletableResource as z };
|
17175
|
+
export { instance$M as $, type TaggableResource as A, type VersionableResource as B, type CreatableResourceType as C, type DeletableResourceType as D, instance as E, instance$20 as F, instance$l as G, instance$1Q as H, instance$k as I, instance$p as J, instance$1A as K, ListResponse as L, type Metadata as M, instance$x as N, instance$j as O, instance$1P as P, type QueryInclude as Q, type ResourceType as R, instance$i as S, type TaggableResourceType as T, type UpdatableResourceType as U, type VersionableResourceType as V, instance$h as W, instance$1O as X, instance$1i as Y, instance$13 as Z, instance$1y as _, type QueryFields as a, instance$$ as a$, instance$g as a0, instance$1N as a1, instance$f as a2, instance$14 as a3, instance$1d as a4, instance$1c as a5, instance$16 as a6, instance$1S as a7, instance$1W as a8, instance$e as a9, instance$1Z as aA, instance$1X as aB, instance$7 as aC, instance$1L as aD, instance$1C as aE, instance$_ as aF, instance$1k as aG, instance$6 as aH, instance$s as aI, instance$n as aJ, instance$o as aK, instance$1m as aL, instance$10 as aM, instance$S as aN, instance$Y as aO, instance$Z as aP, instance$W as aQ, instance$R as aR, instance$5 as aS, instance$Q as aT, instance$P as aU, instance$O as aV, instance$1R as aW, instance$m as aX, instance$T as aY, instance$4 as aZ, instance$1K as a_, instance$1G as aa, instance$1F as ab, instance$V as ac, instance$1q as ad, instance$1e as ae, instance$1f as af, instance$d as ag, instance$1V as ah, instance$1T as ai, instance$c as aj, instance$b as ak, instance$1M as al, instance$1b as am, instance$r as an, instance$1a as ao, instance$17 as ap, instance$19 as aq, instance$15 as ar, instance$11 as as, instance$1$ as at, instance$1h as au, instance$1g as av, instance$a as aw, instance$9 as ax, instance$8 as ay, instance$1Y as az, type QueryParamsRetrieve as b, type AdyenPaymentCreate as b$, instance$N as b0, instance$E as b1, instance$C as b2, instance$B as b3, instance$G as b4, instance$F as b5, instance$D as b6, instance$18 as b7, instance$z as b8, instance$X as b9, instance$w as bA, instance$1E as bB, instance$22 as bC, instance$1 as bD, instance$y as bE, instance$q as bF, instance$t as bG, instance$u as bH, instance$A as bI, instance$21 as bJ, instance$v as bK, instance$1B as bL, instance$1U as bM, instance$1H as bN, type Address as bO, type AddressCreate as bP, type AddressUpdate as bQ, type AddressSort as bR, type Adjustment as bS, type AdjustmentCreate as bT, type AdjustmentUpdate as bU, type AdjustmentSort as bV, type AdyenGateway as bW, type AdyenGatewayCreate as bX, type AdyenGatewayUpdate as bY, type AdyenGatewaySort as bZ, type AdyenPayment as b_, instance$1z as ba, instance$1t as bb, instance$1x as bc, instance$1v as bd, instance$1w as be, instance$3 as bf, instance$1J as bg, instance$L as bh, instance$1_ as bi, instance$1p as bj, instance$1n as bk, instance$1o as bl, instance$1r as bm, instance$1l as bn, instance$12 as bo, instance$1j as bp, instance$1D as bq, instance$H as br, instance$I as bs, instance$1u as bt, instance$J as bu, instance$1s as bv, instance$K as bw, instance$U as bx, instance$2 as by, instance$1I as bz, type QueryParamsList as c, type CouponCodesPromotionRuleCreate as c$, type AdyenPaymentUpdate as c0, type AdyenPaymentSort as c1, type Application as c2, type ApplicationSort as c3, type Attachment as c4, type AttachmentCreate as c5, type AttachmentUpdate as c6, type AttachmentSort as c7, type Authorization as c8, type AuthorizationUpdate as c9, type BundleCreate as cA, type BundleUpdate as cB, type BundleSort as cC, type BuyXPayYPromotion as cD, type BuyXPayYPromotionCreate as cE, type BuyXPayYPromotionUpdate as cF, type BuyXPayYPromotionSort as cG, type Capture as cH, type CaptureUpdate as cI, type CaptureSort as cJ, type CarrierAccount as cK, type CarrierAccountCreate as cL, type CarrierAccountUpdate as cM, type CarrierAccountSort as cN, type CheckoutComGateway as cO, type CheckoutComGatewayCreate as cP, type CheckoutComGatewayUpdate as cQ, type CheckoutComGatewaySort as cR, type CheckoutComPayment as cS, type CheckoutComPaymentCreate as cT, type CheckoutComPaymentUpdate as cU, type CheckoutComPaymentSort as cV, type Cleanup as cW, type CleanupCreate as cX, type CleanupUpdate as cY, type CleanupSort as cZ, type CouponCodesPromotionRule as c_, type AuthorizationSort as ca, type AvalaraAccount as cb, type AvalaraAccountCreate as cc, type AvalaraAccountUpdate as cd, type AvalaraAccountSort as ce, type AxerveGateway as cf, type AxerveGatewayCreate as cg, type AxerveGatewayUpdate as ch, type AxerveGatewaySort as ci, type AxervePayment as cj, type AxervePaymentCreate as ck, type AxervePaymentUpdate as cl, type AxervePaymentSort as cm, type BingGeocoder as cn, type BingGeocoderCreate as co, type BingGeocoderUpdate as cp, type BingGeocoderSort as cq, type BraintreeGateway as cr, type BraintreeGatewayCreate as cs, type BraintreeGatewayUpdate as ct, type BraintreeGatewaySort as cu, type BraintreePayment as cv, type BraintreePaymentCreate as cw, type BraintreePaymentUpdate as cx, type BraintreePaymentSort as cy, type Bundle as cz, type QueryParams as d, type ExternalGatewaySort as d$, type CouponCodesPromotionRuleUpdate as d0, type CouponCodesPromotionRuleSort as d1, type CouponRecipient as d2, type CouponRecipientCreate as d3, type CouponRecipientUpdate as d4, type CouponRecipientSort as d5, type Coupon as d6, type CouponCreate as d7, type CouponUpdate as d8, type CouponSort as d9, type CustomerCreate as dA, type CustomerUpdate as dB, type CustomerSort as dC, type DeliveryLeadTime as dD, type DeliveryLeadTimeCreate as dE, type DeliveryLeadTimeUpdate as dF, type DeliveryLeadTimeSort as dG, type DiscountEngineItem as dH, type DiscountEngineItemSort as dI, type DiscountEngine as dJ, type DiscountEngineSort as dK, type EasypostPickup as dL, type EasypostPickupCreate as dM, type EasypostPickupUpdate as dN, type EasypostPickupSort as dO, type EventCallback as dP, type EventCallbackSort as dQ, type Event as dR, type EventUpdate as dS, type EventSort as dT, type Export as dU, type ExportCreate as dV, type ExportUpdate as dW, type ExportSort as dX, type ExternalGateway as dY, type ExternalGatewayCreate as dZ, type ExternalGatewayUpdate as d_, type CustomPromotionRule as da, type CustomPromotionRuleCreate as db, type CustomPromotionRuleUpdate as dc, type CustomPromotionRuleSort as dd, type CustomerAddress as de, type CustomerAddressCreate as df, type CustomerAddressUpdate as dg, type CustomerAddressSort as dh, type CustomerGroup as di, type CustomerGroupCreate as dj, type CustomerGroupUpdate as dk, type CustomerGroupSort as dl, type CustomerPasswordReset as dm, type CustomerPasswordResetCreate as dn, type CustomerPasswordResetUpdate as dp, type CustomerPasswordResetSort as dq, type CustomerPaymentSource as dr, type CustomerPaymentSourceCreate as ds, type CustomerPaymentSourceUpdate as dt, type CustomerPaymentSourceSort as du, type CustomerSubscription as dv, type CustomerSubscriptionCreate as dw, type CustomerSubscriptionUpdate as dx, type CustomerSubscriptionSort as dy, type Customer as dz, type QueryPageNumber as e, type InventoryStockLocationCreate as e$, type ExternalPayment as e0, type ExternalPaymentCreate as e1, type ExternalPaymentUpdate as e2, type ExternalPaymentSort as e3, type ExternalPromotion as e4, type ExternalPromotionCreate as e5, type ExternalPromotionUpdate as e6, type ExternalPromotionSort as e7, type ExternalTaxCalculator as e8, type ExternalTaxCalculatorCreate as e9, type GiftCardRecipientUpdate as eA, type GiftCardRecipientSort as eB, type GiftCard as eC, type GiftCardCreate as eD, type GiftCardUpdate as eE, type GiftCardSort as eF, type GoogleGeocoder as eG, type GoogleGeocoderCreate as eH, type GoogleGeocoderUpdate as eI, type GoogleGeocoderSort as eJ, type Import as eK, type ImportCreate as eL, type ImportUpdate as eM, type ImportSort as eN, type InStockSubscription as eO, type InStockSubscriptionCreate as eP, type InStockSubscriptionUpdate as eQ, type InStockSubscriptionSort as eR, type InventoryModel as eS, type InventoryModelCreate as eT, type InventoryModelUpdate as eU, type InventoryModelSort as eV, type InventoryReturnLocation as eW, type InventoryReturnLocationCreate as eX, type InventoryReturnLocationUpdate as eY, type InventoryReturnLocationSort as eZ, type InventoryStockLocation as e_, type ExternalTaxCalculatorUpdate as ea, type ExternalTaxCalculatorSort as eb, type FixedAmountPromotion as ec, type FixedAmountPromotionCreate as ed, type FixedAmountPromotionUpdate as ee, type FixedAmountPromotionSort as ef, type FixedPricePromotion as eg, type FixedPricePromotionCreate as eh, type FixedPricePromotionUpdate as ei, type FixedPricePromotionSort as ej, type FlexPromotion as ek, type FlexPromotionCreate as el, type FlexPromotionUpdate as em, type FlexPromotionSort as en, type FreeGiftPromotion as eo, type FreeGiftPromotionCreate as ep, type FreeGiftPromotionUpdate as eq, type FreeGiftPromotionSort as er, type FreeShippingPromotion as es, type FreeShippingPromotionCreate as et, type FreeShippingPromotionUpdate as eu, type FreeShippingPromotionSort as ev, type Geocoder as ew, type GeocoderSort as ex, type GiftCardRecipient as ey, type GiftCardRecipientCreate as ez, type QueryPageSize as f, type OrderSort as f$, type InventoryStockLocationUpdate as f0, type InventoryStockLocationSort as f1, type KlarnaGateway as f2, type KlarnaGatewayCreate as f3, type KlarnaGatewayUpdate as f4, type KlarnaGatewaySort as f5, type KlarnaPayment as f6, type KlarnaPaymentCreate as f7, type KlarnaPaymentUpdate as f8, type KlarnaPaymentSort as f9, type MerchantUpdate as fA, type MerchantSort as fB, type Notification as fC, type NotificationCreate as fD, type NotificationUpdate as fE, type NotificationSort as fF, type OrderAmountPromotionRule as fG, type OrderAmountPromotionRuleCreate as fH, type OrderAmountPromotionRuleUpdate as fI, type OrderAmountPromotionRuleSort as fJ, type OrderCopy as fK, type OrderCopyCreate as fL, type OrderCopyUpdate as fM, type OrderCopySort as fN, type OrderFactory as fO, type OrderFactorySort as fP, type OrderSubscriptionItem as fQ, type OrderSubscriptionItemCreate as fR, type OrderSubscriptionItemUpdate as fS, type OrderSubscriptionItemSort as fT, type OrderSubscription as fU, type OrderSubscriptionCreate as fV, type OrderSubscriptionUpdate as fW, type OrderSubscriptionSort as fX, type Order as fY, type OrderCreate as fZ, type OrderUpdate as f_, type LineItemOption as fa, type LineItemOptionCreate as fb, type LineItemOptionUpdate as fc, type LineItemOptionSort as fd, type LineItem as fe, type LineItemCreate as ff, type LineItemUpdate as fg, type LineItemSort as fh, type Link as fi, type LinkCreate as fj, type LinkUpdate as fk, type LinkSort as fl, type ManualGateway as fm, type ManualGatewayCreate as fn, type ManualGatewayUpdate as fo, type ManualGatewaySort as fp, type ManualTaxCalculator as fq, type ManualTaxCalculatorCreate as fr, type ManualTaxCalculatorUpdate as fs, type ManualTaxCalculatorSort as ft, type Market as fu, type MarketCreate as fv, type MarketUpdate as fw, type MarketSort as fx, type Merchant as fy, type MerchantCreate as fz, type QuerySort as g, type PromotionSort as g$, type Organization as g0, type OrganizationSort as g1, type Package as g2, type PackageCreate as g3, type PackageUpdate as g4, type PackageSort as g5, type ParcelLineItem as g6, type ParcelLineItemCreate as g7, type ParcelLineItemUpdate as g8, type ParcelLineItemSort as g9, type Pickup as gA, type PickupSort as gB, type PriceFrequencyTier as gC, type PriceFrequencyTierCreate as gD, type PriceFrequencyTierUpdate as gE, type PriceFrequencyTierSort as gF, type PriceListScheduler as gG, type PriceListSchedulerCreate as gH, type PriceListSchedulerUpdate as gI, type PriceListSchedulerSort as gJ, type PriceList as gK, type PriceListCreate as gL, type PriceListUpdate as gM, type PriceListSort as gN, type PriceTier as gO, type PriceTierSort as gP, type PriceVolumeTier as gQ, type PriceVolumeTierCreate as gR, type PriceVolumeTierUpdate as gS, type PriceVolumeTierSort as gT, type Price as gU, type PriceCreate as gV, type PriceUpdate as gW, type PriceSort as gX, type PromotionRule as gY, type PromotionRuleSort as gZ, type Promotion as g_, type Parcel as ga, type ParcelCreate as gb, type ParcelUpdate as gc, type ParcelSort as gd, type PaymentGateway as ge, type PaymentGatewaySort as gf, type PaymentMethod as gg, type PaymentMethodCreate as gh, type PaymentMethodUpdate as gi, type PaymentMethodSort as gj, type PaymentOption as gk, type PaymentOptionCreate as gl, type PaymentOptionUpdate as gm, type PaymentOptionSort as gn, type PaypalGateway as go, type PaypalGatewayCreate as gp, type PaypalGatewayUpdate as gq, type PaypalGatewaySort as gr, type PaypalPayment as gs, type PaypalPaymentCreate as gt, type PaypalPaymentUpdate as gu, type PaypalPaymentSort as gv, type PercentageDiscountPromotion as gw, type PercentageDiscountPromotionCreate as gx, type PercentageDiscountPromotionUpdate as gy, type PercentageDiscountPromotionSort as gz, type QueryFilter as h, type SkuOptionUpdate as h$, type RecurringOrderCopy as h0, type RecurringOrderCopyCreate as h1, type RecurringOrderCopyUpdate as h2, type RecurringOrderCopySort as h3, type Refund as h4, type RefundUpdate as h5, type RefundSort as h6, type ReservedStock as h7, type ReservedStockSort as h8, type ResourceError as h9, type ShippingMethodTierSort as hA, type ShippingMethod as hB, type ShippingMethodCreate as hC, type ShippingMethodUpdate as hD, type ShippingMethodSort as hE, type ShippingWeightTier as hF, type ShippingWeightTierCreate as hG, type ShippingWeightTierUpdate as hH, type ShippingWeightTierSort as hI, type ShippingZone as hJ, type ShippingZoneCreate as hK, type ShippingZoneUpdate as hL, type ShippingZoneSort as hM, type SkuListItem as hN, type SkuListItemCreate as hO, type SkuListItemUpdate as hP, type SkuListItemSort as hQ, type SkuListPromotionRule as hR, type SkuListPromotionRuleCreate as hS, type SkuListPromotionRuleUpdate as hT, type SkuListPromotionRuleSort as hU, type SkuList as hV, type SkuListCreate as hW, type SkuListUpdate as hX, type SkuListSort as hY, type SkuOption as hZ, type SkuOptionCreate as h_, type ResourceErrorSort as ha, type ReturnLineItem as hb, type ReturnLineItemCreate as hc, type ReturnLineItemUpdate as hd, type ReturnLineItemSort as he, type Return as hf, type ReturnCreate as hg, type ReturnUpdate as hh, type ReturnSort as hi, type SatispayGateway as hj, type SatispayGatewayCreate as hk, type SatispayGatewayUpdate as hl, type SatispayGatewaySort as hm, type SatispayPayment as hn, type SatispayPaymentCreate as ho, type SatispayPaymentUpdate as hp, type SatispayPaymentSort as hq, type Shipment as hr, type ShipmentCreate as hs, type ShipmentUpdate as ht, type ShipmentSort as hu, type ShippingCategory as hv, type ShippingCategoryCreate as hw, type ShippingCategoryUpdate as hx, type ShippingCategorySort as hy, type ShippingMethodTier as hz, type ResourceId as i, type TaxRuleUpdate as i$, type SkuOptionSort as i0, type Sku as i1, type SkuCreate as i2, type SkuUpdate as i3, type SkuSort as i4, type StockItem as i5, type StockItemCreate as i6, type StockItemUpdate as i7, type StockItemSort as i8, type StockLineItem as i9, type StripePaymentCreate as iA, type StripePaymentUpdate as iB, type StripePaymentSort as iC, type StripeTaxAccount as iD, type StripeTaxAccountCreate as iE, type StripeTaxAccountUpdate as iF, type StripeTaxAccountSort as iG, type SubscriptionModel as iH, type SubscriptionModelCreate as iI, type SubscriptionModelUpdate as iJ, type SubscriptionModelSort as iK, type Tag as iL, type TagCreate as iM, type TagUpdate as iN, type TagSort as iO, type TalonOneAccount as iP, type TalonOneAccountCreate as iQ, type TalonOneAccountUpdate as iR, type TalonOneAccountSort as iS, type TaxCalculator as iT, type TaxCalculatorSort as iU, type TaxCategory as iV, type TaxCategoryCreate as iW, type TaxCategoryUpdate as iX, type TaxCategorySort as iY, type TaxRule as iZ, type TaxRuleCreate as i_, type StockLineItemCreate as ia, type StockLineItemUpdate as ib, type StockLineItemSort as ic, type StockLocation as id, type StockLocationCreate as ie, type StockLocationUpdate as ig, type StockLocationSort as ih, type StockReservation as ii, type StockReservationCreate as ij, type StockReservationUpdate as ik, type StockReservationSort as il, type StockTransfer as im, type StockTransferCreate as io, type StockTransferUpdate as ip, type StockTransferSort as iq, type Store as ir, type StoreCreate as is, type StoreUpdate as it, type StoreSort as iu, type StripeGateway as iv, type StripeGatewayCreate as iw, type StripeGatewayUpdate as ix, type StripeGatewaySort as iy, type StripePayment as iz, type Resource as j, type ShippingZoneType as j$, type TaxRuleSort as j0, type TaxjarAccount as j1, type TaxjarAccountCreate as j2, type TaxjarAccountUpdate as j3, type TaxjarAccountSort as j4, type Transaction as j5, type TransactionSort as j6, type Version as j7, type VersionSort as j8, type VertexAccount as j9, type CustomerAddressType as jA, type PaymentGatewayType as jB, type AdyenPaymentType as jC, type AxervePaymentType as jD, type BraintreePaymentType as jE, type CheckoutComPaymentType as jF, type ExternalPaymentType as jG, type KlarnaPaymentType as jH, type PaypalPaymentType as jI, type SatispayPaymentType as jJ, type StripePaymentType as jK, type WireTransferType as jL, type CustomerPaymentSourceType as jM, type CustomerSubscriptionType as jN, type SubscriptionModelType as jO, type SkuOptionType as jP, type LineItemOptionType as jQ, type VoidType as jR, type AuthorizationType as jS, type RefundType as jT, type CaptureType as jU, type ResourceErrorType as jV, type ReturnType as jW, type ReturnLineItemType as jX, type StockLineItemType as jY, type ReservedStockType as jZ, type StockReservationType as j_, type VertexAccountCreate as ja, type VertexAccountUpdate as jb, type VertexAccountSort as jc, type Void as jd, type VoidUpdate as je, type VoidSort as jf, type Webhook as jg, type WebhookCreate as jh, type WebhookUpdate as ji, type WebhookSort as jj, type WireTransfer as jk, type WireTransferCreate as jl, type WireTransferUpdate as jm, type WireTransferSort as jn, type TagType as jo, type VersionType as jp, type AdjustmentType as jq, type GeocoderType as jr, type ShippingCategoryType as js, type InventoryReturnLocationType as jt, type InventoryModelType as ju, type InventoryStockLocationType as jv, type CustomerGroupType as jw, type EventCallbackType as jx, type WebhookType as jy, type EventType as jz, type ResourceCreate as k, type ExternalTaxCalculatorType as k$, type DeliveryLeadTimeType as k0, type ShippingMethodTierType as k1, type ShippingWeightTierType as k2, type ShippingMethodType as k3, type NotificationType as k4, type SkuListItemType as k5, type LinkType as k6, type SkuListType as k7, type BundleType as k8, type GiftCardRecipientType as k9, type OrderCopyType as kA, type OrderType as kB, type PackageType as kC, type ParcelLineItemType as kD, type ParcelType as kE, type PickupType as kF, type CarrierAccountType as kG, type ShipmentType as kH, type StockTransferType as kI, type StockLocationType as kJ, type StockItemType as kK, type SkuType as kL, type PriceTierType as kM, type PriceVolumeTierType as kN, type PriceFrequencyTierType as kO, type PriceType as kP, type PriceListSchedulerType as kQ, type PriceListType as kR, type TransactionType as kS, type PromotionType as kT, type TaxCalculatorType as kU, type AvalaraAccountType as kV, type StripeTaxAccountType as kW, type VertexAccountType as kX, type TaxjarAccountType as kY, type TaxRuleType as kZ, type ManualTaxCalculatorType as k_, type GiftCardType as ka, type DiscountEngineType as kb, type DiscountEngineItemType as kc, type CouponRecipientType as kd, type CouponType as ke, type ExternalPromotionType as kf, type FixedAmountPromotionType as kg, type FlexPromotionType as kh, type PromotionRuleType as ki, type FixedPricePromotionType as kj, type CustomPromotionRuleType as kk, type FreeGiftPromotionType as kl, type CouponCodesPromotionRuleType as km, type BuyXPayYPromotionType as kn, type SkuListPromotionRuleType as ko, type FreeShippingPromotionType as kp, type OrderAmountPromotionRuleType as kq, type PercentageDiscountPromotionType as kr, type LineItemType as ks, type OrderSubscriptionItemType as kt, type OrderFactoryType as ku, type RecurringOrderCopyType as kv, type OrderSubscriptionType as kw, type CustomerType as kx, type StoreType as ky, type PaymentOptionType as kz, type ResourceUpdate as l, type TaxCategoryType as l0, type AttachmentType as l1, type MerchantType as l2, type MarketType as l3, type PaymentMethodType as l4, type AdyenGatewayType as l5, type ApplicationType as l6, type AxerveGatewayType as l7, type BingGeocoderType as l8, type BraintreeGatewayType as l9, isCreatable as lA, isUpdatable as lB, isDeletable as lC, isTaggable as lD, isVersionable as lE, type ResourceFields as lF, type ResourceSortFields as lG, generateQueryStringParams as lH, isParamsList as lI, generateSearchString as lJ, ApiResourceAdapter as lK, ApiResource as lL, ApiSingleton as lM, isResourceId as lN, isResourceType as lO, type AddressType as lP, type CheckoutComGatewayType as la, type CleanupType as lb, type CustomerPasswordResetType as lc, type EasypostPickupType as ld, type ExportType as le, type ExternalGatewayType as lf, type GoogleGeocoderType as lg, type ImportType as lh, type InStockSubscriptionType as li, type KlarnaGatewayType as lj, type ManualGatewayType as lk, type OrganizationType as ll, type PaypalGatewayType as lm, type SatispayGatewayType as ln, type StripeGatewayType as lo, type TalonOneAccountType as lp, resourceList as lq, singletonList as lr, creatableResources as ls, updatableResources as lt, deletableResources as lu, taggableResources as lv, versionableResources as lw, getResources as lx, getSingletons as ly, isSingleton as lz, type ListMeta as m, type ResourceRel as n, type ResourceSort as o, type ResourceFilter as p, type ResourcesConfig as q, type ResourcesInitConfig as r, type ResourceTypeLock as s, type RetrievableResourceType as t, type RetrievableResource as u, type ListableResourceType as v, type ListableResource as w, type CreatableResource as x, type UpdatableResource as y, type DeletableResource as z };
|
package/lib/api.cjs
CHANGED
package/lib/api.cjs.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"api.cjs","sourcesContent":[]}
|
package/lib/api.d.cts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export { E as addresses, F as adjustments, G as adyen_gateways, H as adyen_payments, I as application, J as attachments, K as authorizations, N as avalara_accounts, O as axerve_gateways, P as axerve_payments, S as bing_geocoders, W as braintree_gateways, X as braintree_payments, Y as bundles, Z as buy_x_pay_y_promotions, _ as captures, $ as carrier_accounts, a0 as checkout_com_gateways, a1 as checkout_com_payments, a2 as cleanups, a3 as coupon_codes_promotion_rules, a4 as coupon_recipients, a5 as coupons, a6 as custom_promotion_rules, a7 as customer_addresses, a8 as customer_groups, a9 as customer_password_resets, aa as customer_payment_sources, ab as customer_subscriptions, ac as customers, ad as delivery_lead_times, ae as discount_engine_items, af as discount_engines, ag as easypost_pickups, ah as event_callbacks, ai as events, aj as exports, ak as external_gateways, al as external_payments, am as external_promotions, an as external_tax_calculators, ao as fixed_amount_promotions, ap as fixed_price_promotions, aq as flex_promotions, ar as free_gift_promotions, as as free_shipping_promotions, at as geocoders, au as gift_card_recipients, av as gift_cards, aw as google_geocoders, ax as imports, ay as in_stock_subscriptions, az as inventory_models, aA as inventory_return_locations, aB as inventory_stock_locations, aC as klarna_gateways, aD as klarna_payments, aE as line_item_options, aF as line_items, aG as links, aH as manual_gateways, aI as manual_tax_calculators, aJ as markets, aK as merchants, aL as notifications, aM as order_amount_promotion_rules, aN as order_copies, aO as order_factories, aP as order_subscription_items, aQ as order_subscriptions, aR as orders, aS as organization, aT as packages, aU as parcel_line_items, aV as parcels, aW as payment_gateways, aX as payment_methods, aY as payment_options, aZ as paypal_gateways, a_ as paypal_payments, a$ as percentage_discount_promotions, b0 as pickups, b1 as price_frequency_tiers, b2 as price_list_schedulers, b3 as price_lists, b4 as price_tiers, b5 as price_volume_tiers, b6 as prices, b7 as promotion_rules, b8 as promotions, b9 as recurring_order_copies, ba as refunds, bb as reserved_stocks, bc as resource_errors, bd as return_line_items, be as returns, bf as satispay_gateways, bg as satispay_payments, bh as shipments, bi as shipping_categories, bj as shipping_method_tiers, bk as shipping_methods, bl as shipping_weight_tiers, bm as shipping_zones, bn as sku_list_items, bo as sku_list_promotion_rules, bp as sku_lists, bq as sku_options, br as skus, bs as stock_items, bt as stock_line_items, bu as stock_locations, bv as stock_reservations, bw as stock_transfers, bx as stores, by as stripe_gateways, bz as stripe_payments, bA as stripe_tax_accounts, bB as subscription_models, bC as tags, bD as talon_one_accounts, bE as tax_calculators, bF as tax_categories, bG as tax_rules, bH as taxjar_accounts, bI as transactions, bJ as versions, bK as vertex_accounts, bL as voids, bM as webhooks, bN as wire_transfers } from './api-
|
1
|
+
export { E as addresses, F as adjustments, G as adyen_gateways, H as adyen_payments, I as application, J as attachments, K as authorizations, N as avalara_accounts, O as axerve_gateways, P as axerve_payments, S as bing_geocoders, W as braintree_gateways, X as braintree_payments, Y as bundles, Z as buy_x_pay_y_promotions, _ as captures, $ as carrier_accounts, a0 as checkout_com_gateways, a1 as checkout_com_payments, a2 as cleanups, a3 as coupon_codes_promotion_rules, a4 as coupon_recipients, a5 as coupons, a6 as custom_promotion_rules, a7 as customer_addresses, a8 as customer_groups, a9 as customer_password_resets, aa as customer_payment_sources, ab as customer_subscriptions, ac as customers, ad as delivery_lead_times, ae as discount_engine_items, af as discount_engines, ag as easypost_pickups, ah as event_callbacks, ai as events, aj as exports, ak as external_gateways, al as external_payments, am as external_promotions, an as external_tax_calculators, ao as fixed_amount_promotions, ap as fixed_price_promotions, aq as flex_promotions, ar as free_gift_promotions, as as free_shipping_promotions, at as geocoders, au as gift_card_recipients, av as gift_cards, aw as google_geocoders, ax as imports, ay as in_stock_subscriptions, az as inventory_models, aA as inventory_return_locations, aB as inventory_stock_locations, aC as klarna_gateways, aD as klarna_payments, aE as line_item_options, aF as line_items, aG as links, aH as manual_gateways, aI as manual_tax_calculators, aJ as markets, aK as merchants, aL as notifications, aM as order_amount_promotion_rules, aN as order_copies, aO as order_factories, aP as order_subscription_items, aQ as order_subscriptions, aR as orders, aS as organization, aT as packages, aU as parcel_line_items, aV as parcels, aW as payment_gateways, aX as payment_methods, aY as payment_options, aZ as paypal_gateways, a_ as paypal_payments, a$ as percentage_discount_promotions, b0 as pickups, b1 as price_frequency_tiers, b2 as price_list_schedulers, b3 as price_lists, b4 as price_tiers, b5 as price_volume_tiers, b6 as prices, b7 as promotion_rules, b8 as promotions, b9 as recurring_order_copies, ba as refunds, bb as reserved_stocks, bc as resource_errors, bd as return_line_items, be as returns, bf as satispay_gateways, bg as satispay_payments, bh as shipments, bi as shipping_categories, bj as shipping_method_tiers, bk as shipping_methods, bl as shipping_weight_tiers, bm as shipping_zones, bn as sku_list_items, bo as sku_list_promotion_rules, bp as sku_lists, bq as sku_options, br as skus, bs as stock_items, bt as stock_line_items, bu as stock_locations, bv as stock_reservations, bw as stock_transfers, bx as stores, by as stripe_gateways, bz as stripe_payments, bA as stripe_tax_accounts, bB as subscription_models, bC as tags, bD as talon_one_accounts, bE as tax_calculators, bF as tax_categories, bG as tax_rules, bH as taxjar_accounts, bI as transactions, bJ as versions, bK as vertex_accounts, bL as voids, bM as webhooks, bN as wire_transfers } from './api-DmIZO_Np.cjs';
|
2
2
|
import './client.cjs';
|
3
3
|
import './interceptor-5MISI1yn.cjs';
|
4
4
|
import './types.cjs';
|
package/lib/api.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export { E as addresses, F as adjustments, G as adyen_gateways, H as adyen_payments, I as application, J as attachments, K as authorizations, N as avalara_accounts, O as axerve_gateways, P as axerve_payments, S as bing_geocoders, W as braintree_gateways, X as braintree_payments, Y as bundles, Z as buy_x_pay_y_promotions, _ as captures, $ as carrier_accounts, a0 as checkout_com_gateways, a1 as checkout_com_payments, a2 as cleanups, a3 as coupon_codes_promotion_rules, a4 as coupon_recipients, a5 as coupons, a6 as custom_promotion_rules, a7 as customer_addresses, a8 as customer_groups, a9 as customer_password_resets, aa as customer_payment_sources, ab as customer_subscriptions, ac as customers, ad as delivery_lead_times, ae as discount_engine_items, af as discount_engines, ag as easypost_pickups, ah as event_callbacks, ai as events, aj as exports, ak as external_gateways, al as external_payments, am as external_promotions, an as external_tax_calculators, ao as fixed_amount_promotions, ap as fixed_price_promotions, aq as flex_promotions, ar as free_gift_promotions, as as free_shipping_promotions, at as geocoders, au as gift_card_recipients, av as gift_cards, aw as google_geocoders, ax as imports, ay as in_stock_subscriptions, az as inventory_models, aA as inventory_return_locations, aB as inventory_stock_locations, aC as klarna_gateways, aD as klarna_payments, aE as line_item_options, aF as line_items, aG as links, aH as manual_gateways, aI as manual_tax_calculators, aJ as markets, aK as merchants, aL as notifications, aM as order_amount_promotion_rules, aN as order_copies, aO as order_factories, aP as order_subscription_items, aQ as order_subscriptions, aR as orders, aS as organization, aT as packages, aU as parcel_line_items, aV as parcels, aW as payment_gateways, aX as payment_methods, aY as payment_options, aZ as paypal_gateways, a_ as paypal_payments, a$ as percentage_discount_promotions, b0 as pickups, b1 as price_frequency_tiers, b2 as price_list_schedulers, b3 as price_lists, b4 as price_tiers, b5 as price_volume_tiers, b6 as prices, b7 as promotion_rules, b8 as promotions, b9 as recurring_order_copies, ba as refunds, bb as reserved_stocks, bc as resource_errors, bd as return_line_items, be as returns, bf as satispay_gateways, bg as satispay_payments, bh as shipments, bi as shipping_categories, bj as shipping_method_tiers, bk as shipping_methods, bl as shipping_weight_tiers, bm as shipping_zones, bn as sku_list_items, bo as sku_list_promotion_rules, bp as sku_lists, bq as sku_options, br as skus, bs as stock_items, bt as stock_line_items, bu as stock_locations, bv as stock_reservations, bw as stock_transfers, bx as stores, by as stripe_gateways, bz as stripe_payments, bA as stripe_tax_accounts, bB as subscription_models, bC as tags, bD as talon_one_accounts, bE as tax_calculators, bF as tax_categories, bG as tax_rules, bH as taxjar_accounts, bI as transactions, bJ as versions, bK as vertex_accounts, bL as voids, bM as webhooks, bN as wire_transfers } from './api-
|
1
|
+
export { E as addresses, F as adjustments, G as adyen_gateways, H as adyen_payments, I as application, J as attachments, K as authorizations, N as avalara_accounts, O as axerve_gateways, P as axerve_payments, S as bing_geocoders, W as braintree_gateways, X as braintree_payments, Y as bundles, Z as buy_x_pay_y_promotions, _ as captures, $ as carrier_accounts, a0 as checkout_com_gateways, a1 as checkout_com_payments, a2 as cleanups, a3 as coupon_codes_promotion_rules, a4 as coupon_recipients, a5 as coupons, a6 as custom_promotion_rules, a7 as customer_addresses, a8 as customer_groups, a9 as customer_password_resets, aa as customer_payment_sources, ab as customer_subscriptions, ac as customers, ad as delivery_lead_times, ae as discount_engine_items, af as discount_engines, ag as easypost_pickups, ah as event_callbacks, ai as events, aj as exports, ak as external_gateways, al as external_payments, am as external_promotions, an as external_tax_calculators, ao as fixed_amount_promotions, ap as fixed_price_promotions, aq as flex_promotions, ar as free_gift_promotions, as as free_shipping_promotions, at as geocoders, au as gift_card_recipients, av as gift_cards, aw as google_geocoders, ax as imports, ay as in_stock_subscriptions, az as inventory_models, aA as inventory_return_locations, aB as inventory_stock_locations, aC as klarna_gateways, aD as klarna_payments, aE as line_item_options, aF as line_items, aG as links, aH as manual_gateways, aI as manual_tax_calculators, aJ as markets, aK as merchants, aL as notifications, aM as order_amount_promotion_rules, aN as order_copies, aO as order_factories, aP as order_subscription_items, aQ as order_subscriptions, aR as orders, aS as organization, aT as packages, aU as parcel_line_items, aV as parcels, aW as payment_gateways, aX as payment_methods, aY as payment_options, aZ as paypal_gateways, a_ as paypal_payments, a$ as percentage_discount_promotions, b0 as pickups, b1 as price_frequency_tiers, b2 as price_list_schedulers, b3 as price_lists, b4 as price_tiers, b5 as price_volume_tiers, b6 as prices, b7 as promotion_rules, b8 as promotions, b9 as recurring_order_copies, ba as refunds, bb as reserved_stocks, bc as resource_errors, bd as return_line_items, be as returns, bf as satispay_gateways, bg as satispay_payments, bh as shipments, bi as shipping_categories, bj as shipping_method_tiers, bk as shipping_methods, bl as shipping_weight_tiers, bm as shipping_zones, bn as sku_list_items, bo as sku_list_promotion_rules, bp as sku_lists, bq as sku_options, br as skus, bs as stock_items, bt as stock_line_items, bu as stock_locations, bv as stock_reservations, bw as stock_transfers, bx as stores, by as stripe_gateways, bz as stripe_payments, bA as stripe_tax_accounts, bB as subscription_models, bC as tags, bD as talon_one_accounts, bE as tax_calculators, bF as tax_categories, bG as tax_rules, bH as taxjar_accounts, bI as transactions, bJ as versions, bK as vertex_accounts, bL as voids, bM as webhooks, bN as wire_transfers } from './api-DDgIE2i8.js';
|
2
2
|
import './client.js';
|
3
3
|
import './interceptor-5MISI1yn.js';
|
4
4
|
import './types.js';
|
package/lib/api.js
CHANGED
@@ -129,3 +129,5 @@ export { default as vertex_accounts } from './resources/vertex_accounts';
|
|
129
129
|
export { default as voids } from './resources/voids';
|
130
130
|
export { default as webhooks } from './resources/webhooks';
|
131
131
|
export { default as wire_transfers } from './resources/wire_transfers';
|
132
|
+
//# sourceMappingURL=api.js.map
|
133
|
+
//# sourceMappingURL=api.js.map
|
package/lib/api.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"api.js","sourcesContent":[]}
|
package/lib/client.cjs
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/client.ts"],"names":["Debug","config","extractTokenData","SdkError","fetchURL","error","handleError","isExpiredTokenError","isTokenExpired","ErrorType"],"mappings":";;;;;;;;;;;;;AASA,MAAM,KAAA,GAAQA,uBAAM,QAAQ,CAAA;AAI5B,MAAM,OAAA,GAAU,CAAC,YAAA,EAAsB,MAA4B,KAAA;AAClE,EAAO,OAAA,CAAA,QAAA,EAAW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A;AACnB,UAAA,KAAA,CAAM,wBAAwB,CAAA;AAC9B,UAAA,IAAA,CAAK,MAAO,CAAA,EAAE,WAAa,EAAA,cAAA,EAAgB,CAAA;AAC3C,UAAA,IAAA,CAAK,YAAe,GAAA,cAAA;AACpB,UAAA,IAAI,eAAe,OAAS,EAAC,eAAe,OAAmC,CAAA,aAAA,GAAgB,UAAU,cAAc,CAAA,CAAA;AACvH,UAAA,MAAM,QAAW,GAAA,MAAML,cAAS,CAAA,GAAA,EAAK,cAAgB,EAAA,aAAa,CAAE,CAAA,KAAA,CAAM,CAACC,OAAA,KAAiBC,iBAAY,CAAAD,OAAK,CAAC,CAAA;AAC9G,UAAO,OAAA,QAAA;AAAA;AACR,aAEY,MAAA,GAAA;AAAA;AAEd;AAGD,EAGQ,cAAc,OAA0C,EAAA;AAC/D,IAAA,MAAM,gBAAgC,EAAC;AACvC,IAAA,IAAI,OAAS,EAAA;AACZ,MAAA,KAAA,MAAW,CAAC,IAAM,EAAA,KAAK,CAAK,IAAA,MAAA,CAAO,QAAQ,OAAO,CAAA;AACjD,QAAA,IAAI,CAAC,CAAC,QAAU,EAAA,cAAA,EAAgB,iBAAiB,YAAY,CAAA,CAAE,QAAS,CAAA,IAAA,CAAK,WAAY,EAAC,CAAG,EAAA,aAAA,CAAc,IAAI,CAAI,GAAA,KAAA;AAAA;AAErH,IAAO,OAAA,aAAA;AAAA;AACR,EAGA,IAAI,kBAA6B,GAAA;AAChC,IAAA,OAAO,IAAK,CAAA,YAAA;AAAA;AACb,EAEA,IAAI,mBAA8B,GAAA;AACjC,IAAA,OAAO,IAAK,CAAA,aAAA;AAAA;AAGd;AAIA,IAAO,cAAQ,GAAA","file":"client.cjs","sourcesContent":["import { ErrorType, SdkError, handleError, isExpiredTokenError } from './error'\nimport type { InterceptorManager } from './interceptor'\nimport config from './config'\nimport type { FetchResponse, FetchRequestOptions, FetchClientOptions, Fetch } from './fetch'\nimport { fetchURL } from './fetch'\nimport { extractTokenData, isTokenExpired } from './util'\n\n\nimport Debug from './debug'\nconst debug = Debug('client')\n\n\n\nconst baseURL = (organization: string, domain?: string): string => {\n\treturn `https://${organization.toLowerCase()}.${domain || config.default.domain}/api`\n}\n\n\n\ntype RequestParams = Record<string, string | number | boolean>\ntype RequestHeaders = Record<string, string>\n\n\nexport type RefreshToken = (expiredToken: string) => Promise<string>\n\ntype RequestConfig = {\n\ttimeout?: number\n\tparams?: RequestParams\n\theaders?: RequestHeaders\n\tuserAgent?: string\n\tfetch?: Fetch\n\trefreshToken?: RefreshToken\n}\n\n\ntype ApiConfig = {\n\torganization?: string\n\tdomain?: string\n\taccessToken: string\n}\n\ntype ApiClientInitConfig = ApiConfig & RequestConfig\ntype ApiClientConfig = Partial<ApiClientInitConfig>\n\n\nexport type Method = 'GET' | 'DELETE' | 'POST' | 'PUT' | 'PATCH'\n\n\n\nclass ApiClient {\n\n\tstatic create(options: ApiClientInitConfig): ApiClient {\n\n\t\t// Take organization and domain from access token if not defined by user\n\t\tif ((!options.organization || !options.domain) && options.accessToken) {\n\t\t\tconst tokenData = extractTokenData(options.accessToken)\n\t\t\tif (!options.organization && tokenData?.organization) options.organization = tokenData.organization\n\t\t\tif (!options.domain && tokenData?.domain) options.domain = tokenData.domain\n\t\t}\n\n\t\tfor (const attr of config.client.requiredAttributes)\n\t\t\tif (!options[attr]) throw new SdkError({ message: `Undefined '${attr}' parameter` })\n\t\treturn new ApiClient(options)\n\n\t}\n\n\n\t#baseUrl: string\n\t#accessToken: string\n\t#organization: string\n\t#domain?: string\n\treadonly #clientConfig: RequestConfig\n\treadonly #interceptors: InterceptorManager\n\n\n\tprivate constructor(options: ApiClientInitConfig) {\n\n\t\tdebug('new client instance %O', options)\n\n\t\tthis.#baseUrl = baseURL(options.organization ?? '', options.domain)\n\t\tthis.#accessToken = options.accessToken\n\t\tthis.#organization = options.organization ?? ''\t// organization is always defined\n\t\tthis.#domain = options.domain\n\n\t\tconst fetchConfig: RequestConfig = {\n\t\t\ttimeout: options.timeout || config.client.timeout,\n\t\t\tfetch: options.fetch,\n\t\t\trefreshToken: options.refreshToken\n\t\t}\n\n\t\t// Set custom headers\n\t\tconst customHeaders = this.customHeaders(options.headers)\n\n\t\t// Set headers\n\t\tconst headers: RequestHeaders = {\n\t\t\t...customHeaders,\n\t\t\t'Accept': 'application/vnd.api+json',\n\t\t\t'Content-Type': 'application/vnd.api+json',\n\t\t\t'Authorization': 'Bearer ' + this.#accessToken\n\t\t}\n\n\t\t// Set User-Agent\n\t\tif (options.userAgent) headers['User-Agent'] = options.userAgent\n\n\t\tfetchConfig.headers = headers\n\n\t\tthis.#clientConfig = fetchConfig\n\n\t\tdebug('fetch config: %O', fetchConfig)\n\n\t\t// Interceptors\n\t\tthis.#interceptors = {}\n\n\t}\n\n\n\tget interceptors(): InterceptorManager { return this.#interceptors }\n\n\tget requestHeaders(): RequestHeaders {\n\t\tif (!this.#clientConfig.headers) this.#clientConfig.headers = {}\n\t\treturn this.#clientConfig.headers\n\t}\n\n\n\t/*\n\tset requestHeaders(headers: RequestHeaders) {\n\t\tthis.#clientConfig.headers = { ...this.#clientConfig.headers, ...headers }\n\t}\n\t*/\n\n\n\tconfig(config: ApiClientConfig): this {\n\n\t\tdebug('config %o', config)\n\n\t\tconst def = this.#clientConfig\n\t\tif (!def.headers) def.headers = {}\n\n\t\t// Client config\n\t\tif (config.timeout) def.timeout = config.timeout\n\n\t\tif (config.userAgent) this.userAgent(config.userAgent)\n\t\tif (config.fetch) this.#clientConfig.fetch = config.fetch\n\t\tif (config.refreshToken) this.#clientConfig.refreshToken = config.refreshToken\n\n\t\t// API Client config\n\t\tif (config.organization || config.domain) this.#baseUrl = baseURL(config.organization || this.#organization, config.domain || this.#domain)\n\t\tif (config.organization) this.#organization = config.organization\n\t\tif (config.domain) this.#domain = config.domain\n\t\tif (config.accessToken) {\n\t\t\tthis.#accessToken = config.accessToken\n\t\t\tdef.headers.Authorization = 'Bearer ' + this.#accessToken\n\t\t}\n\t\tif (config.headers) def.headers = { ...def.headers, ...this.customHeaders(config.headers) }\n\n\t\treturn this\n\n\t}\n\n\n\tuserAgent(userAgent: string): this {\n\t\tif (userAgent) this.requestHeaders['User-Agent'] = userAgent\n\t\treturn this\n\t}\n\n\n\tasync request(method: Method, path: string, body?: any, options?: ApiClientConfig): Promise<FetchResponse> {\n\n\t\tdebug('request %s %s, %O, %O', method, path, body || {}, options || {})\n\n\t\t// Ignored params (in debug mode)\n\t\tif (options?.userAgent) debug('User-Agent header ignored in request config')\n\n\t\t// URL\n\t\tconst baseUrl = options?.organization ? baseURL(options.organization, options.domain) : this.#baseUrl\n\t\tconst url = new URL(`${baseUrl}/${path}`)\n\n\t\t// Body\n\t\tconst bodyData = body ? JSON.stringify({ data: body }) : undefined\n\n\t\t// Headers\n\t\tconst headers = { ...this.requestHeaders, ...this.customHeaders(options?.headers) }\n\n\t\t// Access token\n\t\tconst accessToken = options?.accessToken || this.#accessToken\n\t\tif (accessToken) headers.Authorization = 'Bearer ' + accessToken\n\n\t\tconst refreshToken = options?.refreshToken || this.#clientConfig.refreshToken\n\t\tconst fetchFunction = options?.fetch || this.#clientConfig.fetch\n\n\t\tconst requestOptions: FetchRequestOptions = { method, body: bodyData, headers }\n\n\t\t// Timeout\n\t\tconst timeout = options?.timeout || this.#clientConfig.timeout\n\t\tif (timeout) {\n\t\t\tif (AbortSignal?.timeout) requestOptions.signal = AbortSignal.timeout(timeout)\n\t\t\telse debug('Timeout not set. Undefined function: %s', 'AbortSignal.timeout')\n\t\t}\n\n\t\tif (options?.params) Object.entries(options?.params).forEach(([name, value]) => { url.searchParams.append(name, String(value)) })\n\n\t\tconst clientOptions: FetchClientOptions = {\n\t\t\tinterceptors: this.interceptors,\n\t\t\tfetch: fetchFunction\n\t\t}\n\n\t\t// const start = Date.now()\n\t\ttry {\t// Execute api call\n\t\t\treturn await fetchURL(url, requestOptions, clientOptions).catch((error: Error) => handleError(error))\n\t\t} catch (err: any) {\t// Error executing api call\n\n\t\t\tif (isExpiredTokenError(err) && refreshToken && isTokenExpired(accessToken)) {\t// If token has expired and must be refreshed\n\n\t\t\t\tdebug('Access token has expired')\n\t\t\t\tconst newAccessToken = await refreshToken(this.#accessToken)\t// Refresh access token ...\n\t\t\t\t\t.catch((e: any) => {\t// Error refreshing access token\n\t\t\t\t\t\tdebug('Refresh token error: %s', e.message)\n\t\t\t\t\t\tconst tokenError = new SdkError({ message: 'Error refreshing access token', type: ErrorType.TOKEN_REFRESH })\n\t\t\t\t\t\ttokenError.source = e\n\t\t\t\t\t\tthrow tokenError\n\t\t\t\t\t})\n\n\t\t\t\tif (newAccessToken) {\t// ... set new access token in current config and repeat call\n\t\t\t\t\tdebug('Access token refreshed')\n\t\t\t\t\tthis.config({ accessToken: newAccessToken })\n\t\t\t\t\tthis.#accessToken = newAccessToken\n\t\t\t\t\tif (requestOptions.headers) (requestOptions.headers as Record<string, string>).Authorization = `Bearer ${newAccessToken}`\n\t\t\t\t\tconst response = await fetchURL(url, requestOptions, clientOptions).catch((error: Error) => handleError(error))\n\t\t\t\t\treturn response\n\t\t\t\t}\n\n\t\t\t} else throw err\n\n\t\t}\n\t\t// .finally(() => { console.log(`<<-- ${method} ${path} ${Date.now() - start}`) })\n\n\t}\n\n\n\tprivate customHeaders(headers?: RequestHeaders): RequestHeaders {\n\t\tconst customHeaders: RequestHeaders = {}\n\t\tif (headers) {\n\t\t\tfor (const [name, value] of Object.entries(headers))\n\t\t\t\tif (!['accept', 'content-type', 'authorization', 'user-agent'].includes(name.toLowerCase())) customHeaders[name] = value\n\t\t}\n\t\treturn customHeaders\n\t}\n\n\n\tget currentAccessToken(): string {\n\t\treturn this.#accessToken\n\t}\n\n\tget currentOrganization(): string {\n\t\treturn this.#organization\n\t}\n\n}\n\n\n\nexport default ApiClient\n\nexport type { ApiClientInitConfig, ApiClientConfig, RequestConfig }\n"]}
|
package/lib/client.js
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/client.ts"],"names":["config"],"mappings":";;;;;;AAS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;AAC3G,UAAA,UAAA,CAAW,MAAS,GAAA,CAAA;AACpB,UAAM,MAAA,UAAA;AAAA,SACN,CAAA;AAEF,QAAA,IAAI,cAAgB,EAAA;AACnB,UAAA,KAAA,CAAM,wBAAwB,CAAA;AAC9B,UAAA,IAAA,CAAK,MAAO,CAAA,EAAE,WAAa,EAAA,cAAA,EAAgB,CAAA;AAC3C,UAAA,IAAA,CAAK,YAAe,GAAA,cAAA;AACpB,UAAA,IAAI,eAAe,OAAS,EAAC,eAAe,OAAmC,CAAA,aAAA,GAAgB,UAAU,cAAc,CAAA,CAAA;AACvH,UAAA,MAAM,QAAW,GAAA,MAAM,QAAS,CAAA,GAAA,EAAK,cAAgB,EAAA,aAAa,CAAE,CAAA,KAAA,CAAM,CAAC,KAAA,KAAiB,WAAY,CAAA,KAAK,CAAC,CAAA;AAC9G,UAAO,OAAA,QAAA;AAAA;AACR,aAEY,MAAA,GAAA;AAAA;AAEd;AAGD,EAGQ,cAAc,OAA0C,EAAA;AAC/D,IAAA,MAAM,gBAAgC,EAAC;AACvC,IAAA,IAAI,OAAS,EAAA;AACZ,MAAA,KAAA,MAAW,CAAC,IAAM,EAAA,KAAK,CAAK,IAAA,MAAA,CAAO,QAAQ,OAAO,CAAA;AACjD,QAAA,IAAI,CAAC,CAAC,QAAU,EAAA,cAAA,EAAgB,iBAAiB,YAAY,CAAA,CAAE,QAAS,CAAA,IAAA,CAAK,WAAY,EAAC,CAAG,EAAA,aAAA,CAAc,IAAI,CAAI,GAAA,KAAA;AAAA;AAErH,IAAO,OAAA,aAAA;AAAA;AACR,EAGA,IAAI,kBAA6B,GAAA;AAChC,IAAA,OAAO,IAAK,CAAA,YAAA;AAAA;AACb,EAEA,IAAI,mBAA8B,GAAA;AACjC,IAAA,OAAO,IAAK,CAAA,aAAA;AAAA;AAGd;AAIA,IAAO,cAAQ,GAAA","file":"client.js","sourcesContent":["import { ErrorType, SdkError, handleError, isExpiredTokenError } from './error'\nimport type { InterceptorManager } from './interceptor'\nimport config from './config'\nimport type { FetchResponse, FetchRequestOptions, FetchClientOptions, Fetch } from './fetch'\nimport { fetchURL } from './fetch'\nimport { extractTokenData, isTokenExpired } from './util'\n\n\nimport Debug from './debug'\nconst debug = Debug('client')\n\n\n\nconst baseURL = (organization: string, domain?: string): string => {\n\treturn `https://${organization.toLowerCase()}.${domain || config.default.domain}/api`\n}\n\n\n\ntype RequestParams = Record<string, string | number | boolean>\ntype RequestHeaders = Record<string, string>\n\n\nexport type RefreshToken = (expiredToken: string) => Promise<string>\n\ntype RequestConfig = {\n\ttimeout?: number\n\tparams?: RequestParams\n\theaders?: RequestHeaders\n\tuserAgent?: string\n\tfetch?: Fetch\n\trefreshToken?: RefreshToken\n}\n\n\ntype ApiConfig = {\n\torganization?: string\n\tdomain?: string\n\taccessToken: string\n}\n\ntype ApiClientInitConfig = ApiConfig & RequestConfig\ntype ApiClientConfig = Partial<ApiClientInitConfig>\n\n\nexport type Method = 'GET' | 'DELETE' | 'POST' | 'PUT' | 'PATCH'\n\n\n\nclass ApiClient {\n\n\tstatic create(options: ApiClientInitConfig): ApiClient {\n\n\t\t// Take organization and domain from access token if not defined by user\n\t\tif ((!options.organization || !options.domain) && options.accessToken) {\n\t\t\tconst tokenData = extractTokenData(options.accessToken)\n\t\t\tif (!options.organization && tokenData?.organization) options.organization = tokenData.organization\n\t\t\tif (!options.domain && tokenData?.domain) options.domain = tokenData.domain\n\t\t}\n\n\t\tfor (const attr of config.client.requiredAttributes)\n\t\t\tif (!options[attr]) throw new SdkError({ message: `Undefined '${attr}' parameter` })\n\t\treturn new ApiClient(options)\n\n\t}\n\n\n\t#baseUrl: string\n\t#accessToken: string\n\t#organization: string\n\t#domain?: string\n\treadonly #clientConfig: RequestConfig\n\treadonly #interceptors: InterceptorManager\n\n\n\tprivate constructor(options: ApiClientInitConfig) {\n\n\t\tdebug('new client instance %O', options)\n\n\t\tthis.#baseUrl = baseURL(options.organization ?? '', options.domain)\n\t\tthis.#accessToken = options.accessToken\n\t\tthis.#organization = options.organization ?? ''\t// organization is always defined\n\t\tthis.#domain = options.domain\n\n\t\tconst fetchConfig: RequestConfig = {\n\t\t\ttimeout: options.timeout || config.client.timeout,\n\t\t\tfetch: options.fetch,\n\t\t\trefreshToken: options.refreshToken\n\t\t}\n\n\t\t// Set custom headers\n\t\tconst customHeaders = this.customHeaders(options.headers)\n\n\t\t// Set headers\n\t\tconst headers: RequestHeaders = {\n\t\t\t...customHeaders,\n\t\t\t'Accept': 'application/vnd.api+json',\n\t\t\t'Content-Type': 'application/vnd.api+json',\n\t\t\t'Authorization': 'Bearer ' + this.#accessToken\n\t\t}\n\n\t\t// Set User-Agent\n\t\tif (options.userAgent) headers['User-Agent'] = options.userAgent\n\n\t\tfetchConfig.headers = headers\n\n\t\tthis.#clientConfig = fetchConfig\n\n\t\tdebug('fetch config: %O', fetchConfig)\n\n\t\t// Interceptors\n\t\tthis.#interceptors = {}\n\n\t}\n\n\n\tget interceptors(): InterceptorManager { return this.#interceptors }\n\n\tget requestHeaders(): RequestHeaders {\n\t\tif (!this.#clientConfig.headers) this.#clientConfig.headers = {}\n\t\treturn this.#clientConfig.headers\n\t}\n\n\n\t/*\n\tset requestHeaders(headers: RequestHeaders) {\n\t\tthis.#clientConfig.headers = { ...this.#clientConfig.headers, ...headers }\n\t}\n\t*/\n\n\n\tconfig(config: ApiClientConfig): this {\n\n\t\tdebug('config %o', config)\n\n\t\tconst def = this.#clientConfig\n\t\tif (!def.headers) def.headers = {}\n\n\t\t// Client config\n\t\tif (config.timeout) def.timeout = config.timeout\n\n\t\tif (config.userAgent) this.userAgent(config.userAgent)\n\t\tif (config.fetch) this.#clientConfig.fetch = config.fetch\n\t\tif (config.refreshToken) this.#clientConfig.refreshToken = config.refreshToken\n\n\t\t// API Client config\n\t\tif (config.organization || config.domain) this.#baseUrl = baseURL(config.organization || this.#organization, config.domain || this.#domain)\n\t\tif (config.organization) this.#organization = config.organization\n\t\tif (config.domain) this.#domain = config.domain\n\t\tif (config.accessToken) {\n\t\t\tthis.#accessToken = config.accessToken\n\t\t\tdef.headers.Authorization = 'Bearer ' + this.#accessToken\n\t\t}\n\t\tif (config.headers) def.headers = { ...def.headers, ...this.customHeaders(config.headers) }\n\n\t\treturn this\n\n\t}\n\n\n\tuserAgent(userAgent: string): this {\n\t\tif (userAgent) this.requestHeaders['User-Agent'] = userAgent\n\t\treturn this\n\t}\n\n\n\tasync request(method: Method, path: string, body?: any, options?: ApiClientConfig): Promise<FetchResponse> {\n\n\t\tdebug('request %s %s, %O, %O', method, path, body || {}, options || {})\n\n\t\t// Ignored params (in debug mode)\n\t\tif (options?.userAgent) debug('User-Agent header ignored in request config')\n\n\t\t// URL\n\t\tconst baseUrl = options?.organization ? baseURL(options.organization, options.domain) : this.#baseUrl\n\t\tconst url = new URL(`${baseUrl}/${path}`)\n\n\t\t// Body\n\t\tconst bodyData = body ? JSON.stringify({ data: body }) : undefined\n\n\t\t// Headers\n\t\tconst headers = { ...this.requestHeaders, ...this.customHeaders(options?.headers) }\n\n\t\t// Access token\n\t\tconst accessToken = options?.accessToken || this.#accessToken\n\t\tif (accessToken) headers.Authorization = 'Bearer ' + accessToken\n\n\t\tconst refreshToken = options?.refreshToken || this.#clientConfig.refreshToken\n\t\tconst fetchFunction = options?.fetch || this.#clientConfig.fetch\n\n\t\tconst requestOptions: FetchRequestOptions = { method, body: bodyData, headers }\n\n\t\t// Timeout\n\t\tconst timeout = options?.timeout || this.#clientConfig.timeout\n\t\tif (timeout) {\n\t\t\tif (AbortSignal?.timeout) requestOptions.signal = AbortSignal.timeout(timeout)\n\t\t\telse debug('Timeout not set. Undefined function: %s', 'AbortSignal.timeout')\n\t\t}\n\n\t\tif (options?.params) Object.entries(options?.params).forEach(([name, value]) => { url.searchParams.append(name, String(value)) })\n\n\t\tconst clientOptions: FetchClientOptions = {\n\t\t\tinterceptors: this.interceptors,\n\t\t\tfetch: fetchFunction\n\t\t}\n\n\t\t// const start = Date.now()\n\t\ttry {\t// Execute api call\n\t\t\treturn await fetchURL(url, requestOptions, clientOptions).catch((error: Error) => handleError(error))\n\t\t} catch (err: any) {\t// Error executing api call\n\n\t\t\tif (isExpiredTokenError(err) && refreshToken && isTokenExpired(accessToken)) {\t// If token has expired and must be refreshed\n\n\t\t\t\tdebug('Access token has expired')\n\t\t\t\tconst newAccessToken = await refreshToken(this.#accessToken)\t// Refresh access token ...\n\t\t\t\t\t.catch((e: any) => {\t// Error refreshing access token\n\t\t\t\t\t\tdebug('Refresh token error: %s', e.message)\n\t\t\t\t\t\tconst tokenError = new SdkError({ message: 'Error refreshing access token', type: ErrorType.TOKEN_REFRESH })\n\t\t\t\t\t\ttokenError.source = e\n\t\t\t\t\t\tthrow tokenError\n\t\t\t\t\t})\n\n\t\t\t\tif (newAccessToken) {\t// ... set new access token in current config and repeat call\n\t\t\t\t\tdebug('Access token refreshed')\n\t\t\t\t\tthis.config({ accessToken: newAccessToken })\n\t\t\t\t\tthis.#accessToken = newAccessToken\n\t\t\t\t\tif (requestOptions.headers) (requestOptions.headers as Record<string, string>).Authorization = `Bearer ${newAccessToken}`\n\t\t\t\t\tconst response = await fetchURL(url, requestOptions, clientOptions).catch((error: Error) => handleError(error))\n\t\t\t\t\treturn response\n\t\t\t\t}\n\n\t\t\t} else throw err\n\n\t\t}\n\t\t// .finally(() => { console.log(`<<-- ${method} ${path} ${Date.now() - start}`) })\n\n\t}\n\n\n\tprivate customHeaders(headers?: RequestHeaders): RequestHeaders {\n\t\tconst customHeaders: RequestHeaders = {}\n\t\tif (headers) {\n\t\t\tfor (const [name, value] of Object.entries(headers))\n\t\t\t\tif (!['accept', 'content-type', 'authorization', 'user-agent'].includes(name.toLowerCase())) customHeaders[name] = value\n\t\t}\n\t\treturn customHeaders\n\t}\n\n\n\tget currentAccessToken(): string {\n\t\treturn this.#accessToken\n\t}\n\n\tget currentOrganization(): string {\n\t\treturn this.#organization\n\t}\n\n}\n\n\n\nexport default ApiClient\n\nexport type { ApiClientInitConfig, ApiClientConfig, RequestConfig }\n"]}
|
package/lib/commercelayer.cjs
CHANGED
@@ -110,3 +110,5 @@ var commercelayer_default = CommerceLayer;
|
|
110
110
|
exports.CommerceLayer = CommerceLayer;
|
111
111
|
exports.OPEN_API_SCHEMA_VERSION = OPEN_API_SCHEMA_VERSION;
|
112
112
|
exports.default = commercelayer_default;
|
113
|
+
//# sourceMappingURL=commercelayer.cjs.map
|
114
|
+
//# sourceMappingURL=commercelayer.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/commercelayer.ts"],"names":["Debug","ApiResourceAdapter","getResources","error","isApiError"],"mappings":";;;;;;;;;;;;;AASA,MAAM,KAAA,GAAQA,uBAAM,eAAe,CAAA;AAInC,MAAM,uBAA0B,GAAA;AAchC,MAAM,mBAAoB,CAAA;AAAA,EAEzB,WAAW,oBAA+B,GAAA;AAAE,IAAO,OAAA,uBAAA;AAAA;AAAwB,EAClE,oBAAuB,GAAA,uBAAA;AAAA,EAEhC,OAAe,EAAA;AAAA;AAAA;AAAA;AAAA,EAOf,OAAO,IAAK,MAAuD,EAAA;AAClE,IAAA,IAAI,QAAgB,OAAA,mBAAA,CAAoB,EAAK,GAAA,IAAI,oBAAoB,MAAM,CAAA;AAAA,SAAA,IAEvE,CAAC,mBAAoB,CAAA,EAAA,EAAU,MAAA,IAAI,MAAM,sCAAsC,CAAA;AACnF,IAAA,OAAO,mBAAoB,CAAA,EAAA;AAAA;AAC5B,EAGQ,YAAY,MAAiC,EAAA;AAEpD,IAAA,KAAA,CAAM,iCAAiC,MAAM,CAAA;AAE7C,IAAAC,2BAAA,CAAmB,KAAK,MAAM,CAAA;AAAA;AAM/B;AAAA;AAAA;AAAA;AAAA,EAOA,IAAI,mBAA8B,GAAA;AAAE,IAAO,OAAAA,2BAAA,CAAmB,GAAI,EAAA,CAAE,MAAQ,EAAA,mBAAA;AAAA;AAAoB,EAChG,IAAI,kBAA6B,GAAA;AAAE,IAAO,OAAAA,2BAAA,CAAmB,GAAI,EAAA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AA;AAAA,MACJ,WAAa,EAAA,MAAA;AAAA,MACb,OAAS,EAAA,MAAA;AAAA,MACT,EAAI,EAAA;AAAA,KACL;AAEA,IAAA,eAAe,uBAAuB,QAA6C,EAAA;AAClF,MAAO,MAAA,CAAA,WAAA,GAAc,MAAM,QAAU,EAAA,KAAA,GAAQ,IAAK,EAAA,CAAE,MAAM,MAAM;AAAA,OAAE,CAAA;AAClE,MAAA,MAAA,CAAO,KAAK,QAAS,CAAA,EAAA;AACrB,MAAA,IAAI,SAAS,OAAS,EAAA;AACrB,QAAA,MAAM,KAAiB,EAAC;AACxB,QAAA,QAAA,CAAS,OAAQ,CAAA,OAAA,CAAQ,CAAC,KAAA,EAAO,GAAQ,KAAA;AAAE,UAAA,EAAA,CAAG,GAAG,CAAI,GAAA,KAAA;AAAA,SAAO,CAAA;AAC5D,QAAA,MAAA,CAAO,OAAU,GAAA,EAAA;AAAA;AAElB,MAAO,OAAA,QAAA;AAAA;AAGiB,IAAA,IAAA,CAAK,aAAa,SAAY,GAAA,EAAE,SAAW,EAAA,sBAAA,EAAwB,WAAW,sBAAuB,EAAA;AAC9H,IAAA,MAAA,CAAO,EAAK,GAAA,CAAA;AAEZ,IAAO,OAAA,MAAA;AAAA;AAER,EAEA,uBAAwE,GAAA;AAKvE,IAAA,IAAA,CAAK,aAAa,SAAY,GAAA,MAAA;AAAA;AAGhC;AAIM,MAAA,aAAA,GAAgB,CAAC,MAAyD,KAAA;AAC/E,EAAO,OAAA,mBAAA,CAAoB,IAAI,MAAM,CAAA;AACtC;AAGA,IAAO,qBAAQ,GAAA","file":"commercelayer.cjs","sourcesContent":["\n// import * as api from './api'\nimport { getResources } from './enum'\nimport { isApiError, type ApiError } from './error'\nimport type { ErrorInterceptor, InterceptorType, RawResponseReader, RequestInterceptor, ResponseInterceptor, ResponseObj, HeadersObj, InterceptorManager } from './interceptor'\nimport { ApiResourceAdapter, type ResourcesInitConfig } from './resource'\n\n\nimport Debug from './debug'\nconst debug = Debug('commercelayer')\n\n\n// Autogenerated schema version number, do not remove this line\nconst OPEN_API_SCHEMA_VERSION = '7.8.3'\nexport { OPEN_API_SCHEMA_VERSION }\n\n\n// SDK local configuration\ntype SdkConfig = {\n\t// abc?: string\n}\n\ntype CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig\ntype CommerceLayerConfig = Partial<CommerceLayerInitConfig>\n\n\n\nclass CommerceLayerClient {\n\n\tstatic get openApiSchemaVersion(): string { return OPEN_API_SCHEMA_VERSION }\n\treadonly openApiSchemaVersion = OPEN_API_SCHEMA_VERSION\n\n\tprivate static cl: CommerceLayerClient\n\n\t// ##__CL_RESOURCES_DEF_START__##\n\t// ##__CL_RESOURCES_DEF_TEMPLATE:: ##__TAB__#####__RESOURCE_TYPE__##?: api.##__RESOURCE_CLASS__##\n\t// ##__CL_RESOURCES_DEF_STOP__##\n\n\n\tstatic get (config?: CommerceLayerInitConfig): CommerceLayerClient {\n\t\tif (config) return (CommerceLayerClient.cl = new CommerceLayerClient(config))\n\t\telse\n\t\tif (!CommerceLayerClient.cl) throw new Error('CommerceLayer client not initialized')\n\t\treturn CommerceLayerClient.cl\n\t}\n\n\n\tprivate constructor(config: CommerceLayerInitConfig) {\n\n\t\tdebug('new commercelayer instance %O', config)\n\n\t\tApiResourceAdapter.init(config)\n\n\t\t// ##__CL_RESOURCES_INIT_START__##\n\t\t// ##__CL_RESOURCES_INIT_TEMPLATE:: ##__TAB__####__TAB__##this.##__RESOURCE_TYPE__## = new api.##__RESOURCE_CLASS__##(this.#adapter)\n\t\t// ##__CL_RESOURCES_INIT_STOP__##\n\n\t}\n\n\t// ##__CL_RESOURCES_LEAZY_LOADING_START__##\n\t// ##__CL_RESOURCES_LEAZY_LOADING_TEMPLATE:: ##__TAB__##get ##__RESOURCE_TYPE__##(): api.##__RESOURCE_CLASS__## { return this.###__RESOURCE_TYPE__## || (this.###__RESOURCE_TYPE__## = new api.##__RESOURCE_CLASS__##(this.#adapter)) }\n\t// ##__CL_RESOURCES_LEAZY_LOADING_STOP__##\n\n\t// private get adapter(): ResourceAdapter { return ApiResourceAdapter.get() }\n\tget currentOrganization(): string { return ApiResourceAdapter.get().client?.currentOrganization }\n\tget currentAccessToken(): string { return ApiResourceAdapter.get().client?.currentAccessToken }\n\tprivate get interceptors(): InterceptorManager { return ApiResourceAdapter.get().client?.interceptors }\n\n\n\tprivate localConfig(config: Partial<SdkConfig>): void {\n\t\t// if (config.abc) this.abc = config.abc\n\t}\n\n\n\tconfig(config: CommerceLayerConfig): this {\n\n\t\tdebug('config %o', config)\n\n\t\t// CommerceLayer config\n\t\tthis.localConfig(config)\n\t\t// ResourceAdapter config\n\t\tApiResourceAdapter.config(config)\n\n\t\treturn this\n\n\t}\n\n\t\n\tresources(sort?: boolean): readonly string[] {\n\t\treturn getResources(sort)\n\t}\n\n\tisApiError(error: any): error is ApiError {\n\t\treturn isApiError(error)\n\t}\n\n\n\taddRequestInterceptor(onSuccess?: RequestInterceptor, onFailure?: ErrorInterceptor): number {\n\t\tthis.interceptors.request = { onSuccess, onFailure }\n\t\treturn 1\n\t}\n\n\taddResponseInterceptor(onSuccess?: ResponseInterceptor, onFailure?: ErrorInterceptor): number {\n\t\tthis.interceptors.response = { onSuccess, onFailure }\n\t\treturn 1\n\t}\n\n\tremoveInterceptor(type: InterceptorType, id: number = 1): void {\n\t\tthis.interceptors[type] = undefined\n\t}\n\n\tremoveInterceptors(): void {\n\t\tthis.removeInterceptor('request')\n\t\tthis.removeInterceptor('response')\n\t\tthis.removeRawResponseReader()\n\t}\n\n\taddRawResponseReader(options?: { headers: boolean }): RawResponseReader {\n\n\t\tconst reader: RawResponseReader = {\n\t\t\tid: 0,\n\t\t\trawResponse: undefined,\n\t\t\theaders: undefined,\n\t\t\tok: true\n\t\t}\n\n\t\tasync function rawResponseInterceptor(response: ResponseObj): Promise<ResponseObj> {\n\t\t\treader.rawResponse = await response?.clone().json().catch(() => {})\n\t\t\treader.ok = response.ok\n\t\t\tif (options?.headers) {\n\t\t\t\tconst ho: HeadersObj = {}\n\t\t\t\tresponse.headers.forEach((value, key) => { ho[key] = value })\n\t\t\t\treader.headers = ho\n\t\t\t}\n\t\t\treturn response\n\t\t}\n\t\t\n\t\t/* const interceptor = */this.interceptors.rawReader = { onSuccess: rawResponseInterceptor, onFailure: rawResponseInterceptor }\n\t\treader.id = 1 // interceptor\n\n\t\treturn reader\n\n\t}\n\n\tremoveRawResponseReader(/* reader: number | RawResponseReader */): void {\n\t\t/*\n\t\tconst id = (typeof reader === 'number') ? reader : reader?.id\n\t\tif (id && (id >= 0)) this.removeInterceptor('response', id)\n\t\t*/\n\t\tthis.interceptors.rawReader = undefined\n\t}\n\n}\n\n\n\nconst CommerceLayer = (config: CommerceLayerInitConfig): CommerceLayerClient => {\n\treturn CommerceLayerClient.get(config)\n}\n\n\nexport default CommerceLayer\nexport { CommerceLayer }\n\nexport type { CommerceLayerClient, CommerceLayerConfig, CommerceLayerInitConfig }\n"]}
|
package/lib/commercelayer.d.cts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ApiError } from './error.cjs';
|
2
2
|
import { b as RequestInterceptor, c as ErrorInterceptor, d as ResponseInterceptor, I as InterceptorType, e as RawResponseReader } from './interceptor-5MISI1yn.cjs';
|
3
|
-
import { r as ResourcesInitConfig } from './api-
|
3
|
+
import { r as ResourcesInitConfig } from './api-DmIZO_Np.cjs';
|
4
4
|
import './client.cjs';
|
5
5
|
import './types.cjs';
|
6
6
|
|
package/lib/commercelayer.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ApiError } from './error.js';
|
2
2
|
import { b as RequestInterceptor, c as ErrorInterceptor, d as ResponseInterceptor, I as InterceptorType, e as RawResponseReader } from './interceptor-5MISI1yn.js';
|
3
|
-
import { r as ResourcesInitConfig } from './api-
|
3
|
+
import { r as ResourcesInitConfig } from './api-DDgIE2i8.js';
|
4
4
|
import './client.js';
|
5
5
|
import './types.js';
|
6
6
|
|
package/lib/commercelayer.js
CHANGED
@@ -100,3 +100,5 @@ const CommerceLayer = (config) => {
|
|
100
100
|
var commercelayer_default = CommerceLayer;
|
101
101
|
|
102
102
|
export { CommerceLayer, OPEN_API_SCHEMA_VERSION, commercelayer_default as default };
|
103
|
+
//# sourceMappingURL=commercelayer.js.map
|
104
|
+
//# sourceMappingURL=commercelayer.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/commercelayer.ts"],"names":[],"mappings":";;;;;AASA,MAAM,KAAA,GAAQ,MAAM,eAAe,CAAA;AAInC,MAAM,uBAA0B,GAAA;AAchC,MAAM,mBAAoB,CAAA;AAAA,EAEzB,WAAW,oBAA+B,GAAA;AAAE,IAAO,OAAA,uBAAA;AAAA;AAAwB,EAClE,oBAAuB,GAAA,uBAAA;AAAA,EAEhC,OAAe,EAAA;AAAA;AAAA;AAAA;AAAA,EAOf,OAAO,IAAK,MAAuD,EAAA;AAClE,IAAA,IAAI,QAAgB,OAAA,mBAAA,CAAoB,EAAK,GAAA,IAAI,oBAAoB,MAAM,CAAA;AAAA,SAAA,IAEvE,CAAC,mBAAoB,CAAA,EAAA,EAAU,MAAA,IAAI,MAAM,sCAAsC,CAAA;AACnF,IAAA,OAAO,mBAAoB,CAAA,EAAA;AAAA;AAC5B,EAGQ,YAAY,MAAiC,EAAA;AAEpD,IAAA,KAAA,CAAM,iCAAiC,MAAM,CAAA;AAE7C,IAAA,kBAAA,CAAmB,KAAK,MAAM,CAAA;AAAA;AAM/B;AAAA;AAAA;AAAA;AAAA,EAOA,IAAI,mBAA8B,GAAA;AAAE,IAAO,OAAA,kBAAA,CAAmB,GAAI,EAAA,CAAE,MAAQ,EAAA,mBAAA;AAAA;AAAoB,EAChG,IAAI,kBAA6B,GAAA;AAAE,IAAO,OAAA,kBAAA,CAAmB,GAAI,EAAA,CAAE,MAAQ,EAAA,kBAAA;AAAA;AAAmB,EAC9F,IAAY,YAAmC,GAAA;AAAE,IAAO,OAAA,kBAAA,CAAmB,GAAI,EAAA,CAAE,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C,EAAA;AAClF,MAAO,MAAA,CAAA,WAAA,GAAc,MAAM,QAAU,EAAA,KAAA,GAAQ,IAAK,EAAA,CAAE,MAAM,MAAM;AAAA,OAAE,CAAA;AAClE,MAAA,MAAA,CAAO,KAAK,QAAS,CAAA,EAAA;AACrB,MAAA,IAAI,SAAS,OAAS,EAAA;AACrB,QAAA,MAAM,KAAiB,EAAC;AACxB,QAAA,QAAA,CAAS,OAAQ,CAAA,OAAA,CAAQ,CAAC,KAAA,EAAO,GAAQ,KAAA;AAAE,UAAA,EAAA,CAAG,GAAG,CAAI,GAAA,KAAA;AAAA,SAAO,CAAA;AAC5D,QAAA,MAAA,CAAO,OAAU,GAAA,EAAA;AAAA;AAElB,MAAO,OAAA,QAAA;AAAA;AAGiB,IAAA,IAAA,CAAK,aAAa,SAAY,GAAA,EAAE,SAAW,EAAA,sBAAA,EAAwB,WAAW,sBAAuB,EAAA;AAC9H,IAAA,MAAA,CAAO,EAAK,GAAA,CAAA;AAEZ,IAAO,OAAA,MAAA;AAAA;AAER,EAEA,uBAAwE,GAAA;AAKvE,IAAA,IAAA,CAAK,aAAa,SAAY,GAAA,MAAA;AAAA;AAGhC;AAIM,MAAA,aAAA,GAAgB,CAAC,MAAyD,KAAA;AAC/E,EAAO,OAAA,mBAAA,CAAoB,IAAI,MAAM,CAAA;AACtC;AAGA,IAAO,qBAAQ,GAAA","file":"commercelayer.js","sourcesContent":["\n// import * as api from './api'\nimport { getResources } from './enum'\nimport { isApiError, type ApiError } from './error'\nimport type { ErrorInterceptor, InterceptorType, RawResponseReader, RequestInterceptor, ResponseInterceptor, ResponseObj, HeadersObj, InterceptorManager } from './interceptor'\nimport { ApiResourceAdapter, type ResourcesInitConfig } from './resource'\n\n\nimport Debug from './debug'\nconst debug = Debug('commercelayer')\n\n\n// Autogenerated schema version number, do not remove this line\nconst OPEN_API_SCHEMA_VERSION = '7.8.3'\nexport { OPEN_API_SCHEMA_VERSION }\n\n\n// SDK local configuration\ntype SdkConfig = {\n\t// abc?: string\n}\n\ntype CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig\ntype CommerceLayerConfig = Partial<CommerceLayerInitConfig>\n\n\n\nclass CommerceLayerClient {\n\n\tstatic get openApiSchemaVersion(): string { return OPEN_API_SCHEMA_VERSION }\n\treadonly openApiSchemaVersion = OPEN_API_SCHEMA_VERSION\n\n\tprivate static cl: CommerceLayerClient\n\n\t// ##__CL_RESOURCES_DEF_START__##\n\t// ##__CL_RESOURCES_DEF_TEMPLATE:: ##__TAB__#####__RESOURCE_TYPE__##?: api.##__RESOURCE_CLASS__##\n\t// ##__CL_RESOURCES_DEF_STOP__##\n\n\n\tstatic get (config?: CommerceLayerInitConfig): CommerceLayerClient {\n\t\tif (config) return (CommerceLayerClient.cl = new CommerceLayerClient(config))\n\t\telse\n\t\tif (!CommerceLayerClient.cl) throw new Error('CommerceLayer client not initialized')\n\t\treturn CommerceLayerClient.cl\n\t}\n\n\n\tprivate constructor(config: CommerceLayerInitConfig) {\n\n\t\tdebug('new commercelayer instance %O', config)\n\n\t\tApiResourceAdapter.init(config)\n\n\t\t// ##__CL_RESOURCES_INIT_START__##\n\t\t// ##__CL_RESOURCES_INIT_TEMPLATE:: ##__TAB__####__TAB__##this.##__RESOURCE_TYPE__## = new api.##__RESOURCE_CLASS__##(this.#adapter)\n\t\t// ##__CL_RESOURCES_INIT_STOP__##\n\n\t}\n\n\t// ##__CL_RESOURCES_LEAZY_LOADING_START__##\n\t// ##__CL_RESOURCES_LEAZY_LOADING_TEMPLATE:: ##__TAB__##get ##__RESOURCE_TYPE__##(): api.##__RESOURCE_CLASS__## { return this.###__RESOURCE_TYPE__## || (this.###__RESOURCE_TYPE__## = new api.##__RESOURCE_CLASS__##(this.#adapter)) }\n\t// ##__CL_RESOURCES_LEAZY_LOADING_STOP__##\n\n\t// private get adapter(): ResourceAdapter { return ApiResourceAdapter.get() }\n\tget currentOrganization(): string { return ApiResourceAdapter.get().client?.currentOrganization }\n\tget currentAccessToken(): string { return ApiResourceAdapter.get().client?.currentAccessToken }\n\tprivate get interceptors(): InterceptorManager { return ApiResourceAdapter.get().client?.interceptors }\n\n\n\tprivate localConfig(config: Partial<SdkConfig>): void {\n\t\t// if (config.abc) this.abc = config.abc\n\t}\n\n\n\tconfig(config: CommerceLayerConfig): this {\n\n\t\tdebug('config %o', config)\n\n\t\t// CommerceLayer config\n\t\tthis.localConfig(config)\n\t\t// ResourceAdapter config\n\t\tApiResourceAdapter.config(config)\n\n\t\treturn this\n\n\t}\n\n\t\n\tresources(sort?: boolean): readonly string[] {\n\t\treturn getResources(sort)\n\t}\n\n\tisApiError(error: any): error is ApiError {\n\t\treturn isApiError(error)\n\t}\n\n\n\taddRequestInterceptor(onSuccess?: RequestInterceptor, onFailure?: ErrorInterceptor): number {\n\t\tthis.interceptors.request = { onSuccess, onFailure }\n\t\treturn 1\n\t}\n\n\taddResponseInterceptor(onSuccess?: ResponseInterceptor, onFailure?: ErrorInterceptor): number {\n\t\tthis.interceptors.response = { onSuccess, onFailure }\n\t\treturn 1\n\t}\n\n\tremoveInterceptor(type: InterceptorType, id: number = 1): void {\n\t\tthis.interceptors[type] = undefined\n\t}\n\n\tremoveInterceptors(): void {\n\t\tthis.removeInterceptor('request')\n\t\tthis.removeInterceptor('response')\n\t\tthis.removeRawResponseReader()\n\t}\n\n\taddRawResponseReader(options?: { headers: boolean }): RawResponseReader {\n\n\t\tconst reader: RawResponseReader = {\n\t\t\tid: 0,\n\t\t\trawResponse: undefined,\n\t\t\theaders: undefined,\n\t\t\tok: true\n\t\t}\n\n\t\tasync function rawResponseInterceptor(response: ResponseObj): Promise<ResponseObj> {\n\t\t\treader.rawResponse = await response?.clone().json().catch(() => {})\n\t\t\treader.ok = response.ok\n\t\t\tif (options?.headers) {\n\t\t\t\tconst ho: HeadersObj = {}\n\t\t\t\tresponse.headers.forEach((value, key) => { ho[key] = value })\n\t\t\t\treader.headers = ho\n\t\t\t}\n\t\t\treturn response\n\t\t}\n\t\t\n\t\t/* const interceptor = */this.interceptors.rawReader = { onSuccess: rawResponseInterceptor, onFailure: rawResponseInterceptor }\n\t\treader.id = 1 // interceptor\n\n\t\treturn reader\n\n\t}\n\n\tremoveRawResponseReader(/* reader: number | RawResponseReader */): void {\n\t\t/*\n\t\tconst id = (typeof reader === 'number') ? reader : reader?.id\n\t\tif (id && (id >= 0)) this.removeInterceptor('response', id)\n\t\t*/\n\t\tthis.interceptors.rawReader = undefined\n\t}\n\n}\n\n\n\nconst CommerceLayer = (config: CommerceLayerInitConfig): CommerceLayerClient => {\n\treturn CommerceLayerClient.get(config)\n}\n\n\nexport default CommerceLayer\nexport { CommerceLayer }\n\nexport type { CommerceLayerClient, CommerceLayerConfig, CommerceLayerInitConfig }\n"]}
|
package/lib/config.cjs
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/config.ts"],"names":[],"mappings":";;AAEA,MAAM,MAAS,GAAA;AAAA,EACd,OAAS,EAAA;AAAA,IACR,MAAQ,EAAA,kBAAA;AAAA,IACR,UAAY,EAAA,CAAA;AAAA,IACZ,QAAU,EAAA;AAAA,GACX;AAAA,EACA,MAAQ,EAAA;AAAA,IACP,OAAS,EAAA,IAAA;AAAA,IACT,kBAAA,EAAoB,CAAC,cAAA,EAAgB,aAAa;AAAA,GACnD;AAAA,EACA,OAAS,EAAA;AAAA,IACR,mBAAqB,EAAA;AAAA;AAEvB,CAAA;AAGA,IAAO,cAAQ,GAAA","file":"config.cjs","sourcesContent":["import { ApiClientInitConfig } from \"./client\"\n\nconst config = {\n\tdefault: {\n\t\tdomain: 'commercelayer.io',\n\t\tpageNumber: 1,\n\t\tpageSize: 10,\n\t},\n\tclient: {\n\t\ttimeout: 15000,\n\t\trequiredAttributes: ['organization', 'accessToken'] as Array<keyof ApiClientInitConfig>,\n\t},\n\tjsonapi: {\n\t\tmaxResourceIncluded: 2\n\t}\n} as const\n\n\nexport default config\n"]}
|
package/lib/config.js
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/config.ts"],"names":[],"mappings":"AAEA,MAAM,MAAS,GAAA;AAAA,EACd,OAAS,EAAA;AAAA,IACR,MAAQ,EAAA,kBAAA;AAAA,IACR,UAAY,EAAA,CAAA;AAAA,IACZ,QAAU,EAAA;AAAA,GACX;AAAA,EACA,MAAQ,EAAA;AAAA,IACP,OAAS,EAAA,IAAA;AAAA,IACT,kBAAA,EAAoB,CAAC,cAAA,EAAgB,aAAa;AAAA,GACnD;AAAA,EACA,OAAS,EAAA;AAAA,IACR,mBAAqB,EAAA;AAAA;AAEvB,CAAA;AAGA,IAAO,cAAQ,GAAA","file":"config.js","sourcesContent":["import { ApiClientInitConfig } from \"./client\"\n\nconst config = {\n\tdefault: {\n\t\tdomain: 'commercelayer.io',\n\t\tpageNumber: 1,\n\t\tpageSize: 10,\n\t},\n\tclient: {\n\t\ttimeout: 15000,\n\t\trequiredAttributes: ['organization', 'accessToken'] as Array<keyof ApiClientInitConfig>,\n\t},\n\tjsonapi: {\n\t\tmaxResourceIncluded: 2\n\t}\n} as const\n\n\nexport default config\n"]}
|
package/lib/debug.cjs
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/debug.ts"],"names":[],"mappings":";;AAOA,MAAM,gBAAA,GAAmB,CAAC,QAAA,EAAA,GAAqB,KAAuB,KAAA;AAEtE,CAAA;AAEA,IAAI,eAAA,GAAmC,CAAC,UAAiC,KAAA,gBAAA;AAIzE,IAAI;AACH,EAAM,MAAA,WAAA,GAAc,QAAQ,OAAO,CAAA;AACnC,EAAA,IAAI,WAAgB,IAAA,OAAO,WAAgB,KAAA,UAAA,EAA+B,eAAA,GAAA,WAAA;AAC3E,CAAA,CAAA,OAAS,KAAO,EAAA;AAEhB;AAGA,MAAM,WAAc,GAAA,OAAA;AAsBpB,MAAM,KAAA,GAAQ,CAAC,SAAgC,KAAA;AAC9C,EAAA,OAAO,eAAgB,CAAA,CAAA,EAAG,WAAW,CAAA,CAAA,EAAI,SAAS,CAAE,CAAA,CAAA;AACrD,CAAA;AAGA,IAAO,aAAQ,GAAA","file":"debug.cjs","sourcesContent":["\ntype Debugger = (pattern: string, ...args: any[]) => void\n\ntype DebuggerFactory = (namespace: string) => Debugger\n\n\n/* Nope debugger */\nconst debuggerFunction = (_pattern: string, ..._args: any[]): void => {\n\t// console.log(_pattern)\n}\n\nlet debuggerFactory: DebuggerFactory = (_namespace: string): Debugger => debuggerFunction\n\n\n/* Try loading 'debug' module */\ntry {\n\tconst debugModule = require('debug')\n\tif (debugModule && (typeof debugModule === 'function')) debuggerFactory = debugModule\n} catch (error) {\n\t//\n}\n\n\nconst debugPrefix = 'clsdk'\n\n\n/* Retrieve the name of the caller 'module' */\n/*\nconst caller = (): string => {\n\n\tconst err = new Error()\n\n\tError.prepareStackTrace = (_, stack) => stack\n\tconst stack = err.stack as unknown as NodeJS.CallSite[]\n\tError.prepareStackTrace = undefined\n\n\tconst fileName = stack[2].getFileName() || '/'\n\n\treturn fileName.replace(/^.*[\\\\/]/, '').replace('.ts', '')\n\n}\n*/\n\n\n/* Return a debugger for the defined namespace */\nconst debug = (namespace: string): Debugger => {\n\treturn debuggerFactory(`${debugPrefix}:${namespace}`)\n}\n\n\nexport default debug\n"]}
|
package/lib/debug.js
CHANGED
package/lib/debug.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/debug.ts"],"names":[],"mappings":"AAOA,MAAM,gBAAA,GAAmB,CAAC,QAAA,EAAA,GAAqB,KAAuB,KAAA;AAEtE,CAAA;AAEA,IAAI,eAAA,GAAmC,CAAC,UAAiC,KAAA,gBAAA;AAIzE,IAAI;AACH,EAAM,MAAA,WAAA,GAAc,QAAQ,OAAO,CAAA;AACnC,EAAA,IAAI,WAAgB,IAAA,OAAO,WAAgB,KAAA,UAAA,EAA+B,eAAA,GAAA,WAAA;AAC3E,CAAA,CAAA,OAAS,KAAO,EAAA;AAEhB;AAGA,MAAM,WAAc,GAAA,OAAA;AAsBpB,MAAM,KAAA,GAAQ,CAAC,SAAgC,KAAA;AAC9C,EAAA,OAAO,eAAgB,CAAA,CAAA,EAAG,WAAW,CAAA,CAAA,EAAI,SAAS,CAAE,CAAA,CAAA;AACrD,CAAA;AAGA,IAAO,aAAQ,GAAA","file":"debug.js","sourcesContent":["\ntype Debugger = (pattern: string, ...args: any[]) => void\n\ntype DebuggerFactory = (namespace: string) => Debugger\n\n\n/* Nope debugger */\nconst debuggerFunction = (_pattern: string, ..._args: any[]): void => {\n\t// console.log(_pattern)\n}\n\nlet debuggerFactory: DebuggerFactory = (_namespace: string): Debugger => debuggerFunction\n\n\n/* Try loading 'debug' module */\ntry {\n\tconst debugModule = require('debug')\n\tif (debugModule && (typeof debugModule === 'function')) debuggerFactory = debugModule\n} catch (error) {\n\t//\n}\n\n\nconst debugPrefix = 'clsdk'\n\n\n/* Retrieve the name of the caller 'module' */\n/*\nconst caller = (): string => {\n\n\tconst err = new Error()\n\n\tError.prepareStackTrace = (_, stack) => stack\n\tconst stack = err.stack as unknown as NodeJS.CallSite[]\n\tError.prepareStackTrace = undefined\n\n\tconst fileName = stack[2].getFileName() || '/'\n\n\treturn fileName.replace(/^.*[\\\\/]/, '').replace('.ts', '')\n\n}\n*/\n\n\n/* Return a debugger for the defined namespace */\nconst debug = (namespace: string): Debugger => {\n\treturn debuggerFactory(`${debugPrefix}:${namespace}`)\n}\n\n\nexport default debug\n"]}
|
package/lib/enum.cjs
CHANGED
@@ -655,3 +655,5 @@ exports.singletonList = singletonList;
|
|
655
655
|
exports.taggableResources = taggableResources;
|
656
656
|
exports.updatableResources = updatableResources;
|
657
657
|
exports.versionableResources = versionableResources;
|
658
|
+
//# sourceMappingURL=enum.cjs.map
|
659
|
+
//# sourceMappingURL=enum.cjs.map
|