@commercelayer/sdk 5.0.0-alpha.5 → 5.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +201 -123
- package/lib/cjs/api.d.ts +113 -0
- package/lib/cjs/api.js +355 -0
- package/lib/cjs/client.d.ts +33 -0
- package/lib/cjs/client.js +123 -0
- package/lib/cjs/commercelayer.d.ts +139 -0
- package/lib/cjs/commercelayer.js +230 -0
- package/lib/cjs/common.d.ts +4 -0
- package/lib/cjs/common.js +14 -0
- package/lib/cjs/config.d.ts +11 -0
- package/lib/cjs/config.js +13 -0
- package/lib/cjs/debug.d.ts +3 -0
- package/lib/cjs/debug.js +42 -0
- package/lib/cjs/error.d.ts +28 -0
- package/lib/cjs/error.js +43 -0
- package/lib/cjs/index.d.ts +7 -0
- package/lib/cjs/index.js +29 -0
- package/lib/cjs/interceptor.d.ts +25 -0
- package/lib/cjs/interceptor.js +2 -0
- package/lib/cjs/jsonapi.d.ts +5 -0
- package/lib/cjs/jsonapi.js +82 -0
- package/lib/cjs/model.d.ts +111 -0
- package/lib/cjs/model.js +3 -0
- package/lib/cjs/query.d.ts +24 -0
- package/lib/cjs/query.js +51 -0
- package/lib/cjs/resource.d.ts +90 -0
- package/lib/cjs/resource.js +167 -0
- package/lib/cjs/resources/addresses.d.ts +89 -0
- package/lib/cjs/resources/addresses.js +33 -0
- package/lib/cjs/resources/adjustments.d.ts +36 -0
- package/lib/cjs/resources/adjustments.js +29 -0
- package/lib/cjs/resources/adyen_gateways.d.ts +57 -0
- package/lib/cjs/resources/adyen_gateways.js +37 -0
- package/lib/cjs/resources/adyen_payments.d.ts +47 -0
- package/lib/cjs/resources/adyen_payments.js +37 -0
- package/lib/cjs/resources/application.d.ts +21 -0
- package/lib/cjs/resources/application.js +17 -0
- package/lib/cjs/resources/attachments.d.ts +157 -0
- package/lib/cjs/resources/attachments.js +29 -0
- package/lib/cjs/resources/authorizations.d.ts +61 -0
- package/lib/cjs/resources/authorizations.js +39 -0
- package/lib/cjs/resources/avalara_accounts.d.ts +56 -0
- package/lib/cjs/resources/avalara_accounts.js +41 -0
- package/lib/cjs/resources/axerve_gateways.d.ts +44 -0
- package/lib/cjs/resources/axerve_gateways.js +37 -0
- package/lib/cjs/resources/axerve_payments.d.ts +47 -0
- package/lib/cjs/resources/axerve_payments.js +37 -0
- package/lib/cjs/resources/billing_info_validation_rules.d.ts +36 -0
- package/lib/cjs/resources/billing_info_validation_rules.js +37 -0
- package/lib/cjs/resources/bing_geocoders.d.ts +36 -0
- package/lib/cjs/resources/bing_geocoders.js +37 -0
- package/lib/cjs/resources/braintree_gateways.d.ts +57 -0
- package/lib/cjs/resources/braintree_gateways.js +37 -0
- package/lib/cjs/resources/braintree_payments.d.ts +49 -0
- package/lib/cjs/resources/braintree_payments.js +37 -0
- package/lib/cjs/resources/bundles.d.ts +77 -0
- package/lib/cjs/resources/bundles.js +45 -0
- package/lib/cjs/resources/captures.d.ts +52 -0
- package/lib/cjs/resources/captures.js +39 -0
- package/lib/cjs/resources/carrier_accounts.d.ts +27 -0
- package/lib/cjs/resources/carrier_accounts.js +28 -0
- package/lib/cjs/resources/checkout_com_gateways.d.ts +46 -0
- package/lib/cjs/resources/checkout_com_gateways.js +37 -0
- package/lib/cjs/resources/checkout_com_payments.d.ts +60 -0
- package/lib/cjs/resources/checkout_com_payments.js +37 -0
- package/lib/cjs/resources/cleanups.d.ts +37 -0
- package/lib/cjs/resources/cleanups.js +30 -0
- package/lib/cjs/resources/coupon_codes_promotion_rules.d.ts +60 -0
- package/lib/cjs/resources/coupon_codes_promotion_rules.js +33 -0
- package/lib/cjs/resources/coupon_recipients.d.ts +45 -0
- package/lib/cjs/resources/coupon_recipients.js +37 -0
- package/lib/cjs/resources/coupons.d.ts +46 -0
- package/lib/cjs/resources/coupons.js +33 -0
- package/lib/cjs/resources/customer_addresses.d.ts +45 -0
- package/lib/cjs/resources/customer_addresses.js +41 -0
- package/lib/cjs/resources/customer_groups.d.ts +37 -0
- package/lib/cjs/resources/customer_groups.js +41 -0
- package/lib/cjs/resources/customer_password_resets.d.ts +37 -0
- package/lib/cjs/resources/customer_password_resets.js +37 -0
- package/lib/cjs/resources/customer_payment_sources.d.ts +79 -0
- package/lib/cjs/resources/customer_payment_sources.js +33 -0
- package/lib/cjs/resources/customer_subscriptions.d.ts +32 -0
- package/lib/cjs/resources/customer_subscriptions.js +37 -0
- package/lib/cjs/resources/customers.d.ts +67 -0
- package/lib/cjs/resources/customers.js +69 -0
- package/lib/cjs/resources/delivery_lead_times.d.ts +52 -0
- package/lib/cjs/resources/delivery_lead_times.js +41 -0
- package/lib/cjs/resources/event_callbacks.d.ts +25 -0
- package/lib/cjs/resources/event_callbacks.js +24 -0
- package/lib/cjs/resources/events.d.ts +25 -0
- package/lib/cjs/resources/events.js +28 -0
- package/lib/cjs/resources/exports.d.ts +41 -0
- package/lib/cjs/resources/exports.js +30 -0
- package/lib/cjs/resources/external_gateways.d.ts +50 -0
- package/lib/cjs/resources/external_gateways.js +37 -0
- package/lib/cjs/resources/external_payments.d.ts +45 -0
- package/lib/cjs/resources/external_payments.js +41 -0
- package/lib/cjs/resources/external_promotions.d.ts +91 -0
- package/lib/cjs/resources/external_promotions.js +53 -0
- package/lib/cjs/resources/external_tax_calculators.d.ts +38 -0
- package/lib/cjs/resources/external_tax_calculators.js +37 -0
- package/lib/cjs/resources/fixed_amount_promotions.d.ts +92 -0
- package/lib/cjs/resources/fixed_amount_promotions.js +53 -0
- package/lib/cjs/resources/fixed_price_promotions.d.ts +103 -0
- package/lib/cjs/resources/fixed_price_promotions.js +61 -0
- package/lib/cjs/resources/free_gift_promotions.d.ts +101 -0
- package/lib/cjs/resources/free_gift_promotions.js +61 -0
- package/lib/cjs/resources/free_shipping_promotions.d.ts +84 -0
- package/lib/cjs/resources/free_shipping_promotions.js +49 -0
- package/lib/cjs/resources/geocoders.d.ts +25 -0
- package/lib/cjs/resources/geocoders.js +28 -0
- package/lib/cjs/resources/gift_card_recipients.d.ts +45 -0
- package/lib/cjs/resources/gift_card_recipients.js +37 -0
- package/lib/cjs/resources/gift_cards.d.ts +86 -0
- package/lib/cjs/resources/gift_cards.js +45 -0
- package/lib/cjs/resources/google_geocoders.d.ts +36 -0
- package/lib/cjs/resources/google_geocoders.js +37 -0
- package/lib/cjs/resources/imports.d.ts +46 -0
- package/lib/cjs/resources/imports.js +30 -0
- package/lib/cjs/resources/in_stock_subscriptions.d.ts +63 -0
- package/lib/cjs/resources/in_stock_subscriptions.js +45 -0
- package/lib/cjs/resources/inventory_models.d.ts +43 -0
- package/lib/cjs/resources/inventory_models.js +41 -0
- package/lib/cjs/resources/inventory_return_locations.d.ts +44 -0
- package/lib/cjs/resources/inventory_return_locations.js +37 -0
- package/lib/cjs/resources/inventory_stock_locations.d.ts +47 -0
- package/lib/cjs/resources/inventory_stock_locations.js +37 -0
- package/lib/cjs/resources/klarna_gateways.d.ts +45 -0
- package/lib/cjs/resources/klarna_gateways.js +37 -0
- package/lib/cjs/resources/klarna_payments.d.ts +47 -0
- package/lib/cjs/resources/klarna_payments.js +37 -0
- package/lib/cjs/resources/line_item_options.d.ts +58 -0
- package/lib/cjs/resources/line_item_options.js +37 -0
- package/lib/cjs/resources/line_items.d.ts +127 -0
- package/lib/cjs/resources/line_items.js +45 -0
- package/lib/cjs/resources/manual_gateways.d.ts +31 -0
- package/lib/cjs/resources/manual_gateways.js +33 -0
- package/lib/cjs/resources/manual_tax_calculators.d.ts +42 -0
- package/lib/cjs/resources/manual_tax_calculators.js +41 -0
- package/lib/cjs/resources/markets.d.ts +89 -0
- package/lib/cjs/resources/markets.js +53 -0
- package/lib/cjs/resources/merchants.d.ts +39 -0
- package/lib/cjs/resources/merchants.js +37 -0
- package/lib/cjs/resources/order_amount_promotion_rules.d.ts +57 -0
- package/lib/cjs/resources/order_amount_promotion_rules.js +29 -0
- package/lib/cjs/resources/order_copies.d.ts +49 -0
- package/lib/cjs/resources/order_copies.js +42 -0
- package/lib/cjs/resources/order_subscriptions.d.ts +71 -0
- package/lib/cjs/resources/order_subscriptions.js +53 -0
- package/lib/cjs/resources/order_validation_rules.d.ts +24 -0
- package/lib/cjs/resources/order_validation_rules.js +28 -0
- package/lib/cjs/resources/orders.d.ts +297 -0
- package/lib/cjs/resources/orders.js +109 -0
- package/lib/cjs/resources/organization.d.ts +32 -0
- package/lib/cjs/resources/organization.js +17 -0
- package/lib/cjs/resources/packages.d.ts +57 -0
- package/lib/cjs/resources/packages.js +41 -0
- package/lib/cjs/resources/parcel_line_items.d.ts +52 -0
- package/lib/cjs/resources/parcel_line_items.js +37 -0
- package/lib/cjs/resources/parcels.d.ts +120 -0
- package/lib/cjs/resources/parcels.js +49 -0
- package/lib/cjs/resources/payment_gateways.d.ts +22 -0
- package/lib/cjs/resources/payment_gateways.js +24 -0
- package/lib/cjs/resources/payment_methods.d.ts +73 -0
- package/lib/cjs/resources/payment_methods.js +41 -0
- package/lib/cjs/resources/paypal_gateways.d.ts +38 -0
- package/lib/cjs/resources/paypal_gateways.js +37 -0
- package/lib/cjs/resources/paypal_payments.d.ts +53 -0
- package/lib/cjs/resources/paypal_payments.js +37 -0
- package/lib/cjs/resources/percentage_discount_promotions.d.ts +101 -0
- package/lib/cjs/resources/percentage_discount_promotions.js +61 -0
- package/lib/cjs/resources/price_lists.d.ts +40 -0
- package/lib/cjs/resources/price_lists.js +37 -0
- package/lib/cjs/resources/price_tiers.d.ts +29 -0
- package/lib/cjs/resources/price_tiers.js +28 -0
- package/lib/cjs/resources/price_volume_tiers.d.ts +47 -0
- package/lib/cjs/resources/price_volume_tiers.js +37 -0
- package/lib/cjs/resources/prices.d.ts +69 -0
- package/lib/cjs/resources/prices.js +49 -0
- package/lib/cjs/resources/promotion_rules.d.ts +25 -0
- package/lib/cjs/resources/promotion_rules.js +20 -0
- package/lib/cjs/resources/promotions.d.ts +42 -0
- package/lib/cjs/resources/promotions.js +40 -0
- package/lib/cjs/resources/refunds.d.ts +38 -0
- package/lib/cjs/resources/refunds.js +32 -0
- package/lib/cjs/resources/return_line_items.d.ts +50 -0
- package/lib/cjs/resources/return_line_items.js +37 -0
- package/lib/cjs/resources/returns.d.ts +76 -0
- package/lib/cjs/resources/returns.js +61 -0
- package/lib/cjs/resources/satispay_gateways.d.ts +40 -0
- package/lib/cjs/resources/satispay_gateways.js +37 -0
- package/lib/cjs/resources/satispay_payments.d.ts +44 -0
- package/lib/cjs/resources/satispay_payments.js +37 -0
- package/lib/cjs/resources/shipments.d.ts +94 -0
- package/lib/cjs/resources/shipments.js +79 -0
- package/lib/cjs/resources/shipping_categories.d.ts +34 -0
- package/lib/cjs/resources/shipping_categories.js +37 -0
- package/lib/cjs/resources/shipping_method_tiers.d.ts +29 -0
- package/lib/cjs/resources/shipping_method_tiers.js +28 -0
- package/lib/cjs/resources/shipping_methods.d.ts +108 -0
- package/lib/cjs/resources/shipping_methods.js +61 -0
- package/lib/cjs/resources/shipping_weight_tiers.d.ts +47 -0
- package/lib/cjs/resources/shipping_weight_tiers.js +37 -0
- package/lib/cjs/resources/shipping_zones.d.ts +49 -0
- package/lib/cjs/resources/shipping_zones.js +33 -0
- package/lib/cjs/resources/sku_list_items.d.ts +48 -0
- package/lib/cjs/resources/sku_list_items.js +37 -0
- package/lib/cjs/resources/sku_list_promotion_rules.d.ts +69 -0
- package/lib/cjs/resources/sku_list_promotion_rules.js +37 -0
- package/lib/cjs/resources/sku_lists.d.ts +61 -0
- package/lib/cjs/resources/sku_lists.js +49 -0
- package/lib/cjs/resources/sku_options.d.ts +57 -0
- package/lib/cjs/resources/sku_options.js +37 -0
- package/lib/cjs/resources/skus.d.ts +79 -0
- package/lib/cjs/resources/skus.js +53 -0
- package/lib/cjs/resources/stock_items.d.ts +50 -0
- package/lib/cjs/resources/stock_items.js +41 -0
- package/lib/cjs/resources/stock_line_items.d.ts +30 -0
- package/lib/cjs/resources/stock_line_items.js +32 -0
- package/lib/cjs/resources/stock_locations.d.ts +58 -0
- package/lib/cjs/resources/stock_locations.js +53 -0
- package/lib/cjs/resources/stock_transfers.d.ts +75 -0
- package/lib/cjs/resources/stock_transfers.js +53 -0
- package/lib/cjs/resources/stripe_gateways.d.ts +42 -0
- package/lib/cjs/resources/stripe_gateways.js +37 -0
- package/lib/cjs/resources/stripe_payments.d.ts +48 -0
- package/lib/cjs/resources/stripe_payments.js +37 -0
- package/lib/cjs/resources/tax_calculators.d.ts +25 -0
- package/lib/cjs/resources/tax_calculators.js +28 -0
- package/lib/cjs/resources/tax_categories.d.ts +60 -0
- package/lib/cjs/resources/tax_categories.js +37 -0
- package/lib/cjs/resources/tax_rules.d.ts +70 -0
- package/lib/cjs/resources/tax_rules.js +33 -0
- package/lib/cjs/resources/taxjar_accounts.d.ts +44 -0
- package/lib/cjs/resources/taxjar_accounts.js +41 -0
- package/lib/cjs/resources/transactions.d.ts +32 -0
- package/lib/cjs/resources/transactions.js +24 -0
- package/lib/cjs/resources/voids.d.ts +38 -0
- package/lib/cjs/resources/voids.js +32 -0
- package/lib/cjs/resources/webhooks.d.ts +44 -0
- package/lib/cjs/resources/webhooks.js +33 -0
- package/lib/cjs/resources/wire_transfers.d.ts +34 -0
- package/lib/cjs/resources/wire_transfers.js +33 -0
- package/lib/cjs/static.d.ts +9 -0
- package/lib/cjs/static.js +45 -0
- package/lib/cjs/util.d.ts +10 -0
- package/lib/cjs/util.js +15 -0
- package/lib/esm/api.d.ts +113 -0
- package/lib/esm/api.js +239 -0
- package/lib/esm/client.d.ts +33 -0
- package/lib/esm/client.js +118 -0
- package/lib/esm/commercelayer.d.ts +139 -0
- package/lib/esm/commercelayer.js +201 -0
- package/lib/esm/common.d.ts +4 -0
- package/lib/esm/common.js +10 -0
- package/lib/esm/config.d.ts +11 -0
- package/lib/esm/config.js +11 -0
- package/lib/esm/debug.d.ts +3 -0
- package/lib/esm/debug.js +40 -0
- package/lib/esm/error.d.ts +28 -0
- package/lib/esm/error.js +38 -0
- package/lib/esm/index.d.ts +7 -0
- package/lib/esm/index.js +6 -0
- package/lib/esm/interceptor.d.ts +25 -0
- package/lib/esm/interceptor.js +1 -0
- package/lib/esm/jsonapi.d.ts +5 -0
- package/lib/esm/jsonapi.js +75 -0
- package/lib/esm/model.d.ts +111 -0
- package/lib/esm/model.js +2 -0
- package/lib/esm/query.d.ts +24 -0
- package/lib/esm/query.js +45 -0
- package/lib/esm/resource.d.ts +90 -0
- package/lib/esm/resource.js +160 -0
- package/lib/esm/resources/addresses.d.ts +89 -0
- package/lib/esm/resources/addresses.js +31 -0
- package/lib/esm/resources/adjustments.d.ts +36 -0
- package/lib/esm/resources/adjustments.js +27 -0
- package/lib/esm/resources/adyen_gateways.d.ts +57 -0
- package/lib/esm/resources/adyen_gateways.js +35 -0
- package/lib/esm/resources/adyen_payments.d.ts +47 -0
- package/lib/esm/resources/adyen_payments.js +35 -0
- package/lib/esm/resources/application.d.ts +21 -0
- package/lib/esm/resources/application.js +15 -0
- package/lib/esm/resources/attachments.d.ts +157 -0
- package/lib/esm/resources/attachments.js +27 -0
- package/lib/esm/resources/authorizations.d.ts +61 -0
- package/lib/esm/resources/authorizations.js +37 -0
- package/lib/esm/resources/avalara_accounts.d.ts +56 -0
- package/lib/esm/resources/avalara_accounts.js +39 -0
- package/lib/esm/resources/axerve_gateways.d.ts +44 -0
- package/lib/esm/resources/axerve_gateways.js +35 -0
- package/lib/esm/resources/axerve_payments.d.ts +47 -0
- package/lib/esm/resources/axerve_payments.js +35 -0
- package/lib/esm/resources/billing_info_validation_rules.d.ts +36 -0
- package/lib/esm/resources/billing_info_validation_rules.js +35 -0
- package/lib/esm/resources/bing_geocoders.d.ts +36 -0
- package/lib/esm/resources/bing_geocoders.js +35 -0
- package/lib/esm/resources/braintree_gateways.d.ts +57 -0
- package/lib/esm/resources/braintree_gateways.js +35 -0
- package/lib/esm/resources/braintree_payments.d.ts +49 -0
- package/lib/esm/resources/braintree_payments.js +35 -0
- package/lib/esm/resources/bundles.d.ts +77 -0
- package/lib/esm/resources/bundles.js +43 -0
- package/lib/esm/resources/captures.d.ts +52 -0
- package/lib/esm/resources/captures.js +37 -0
- package/lib/esm/resources/carrier_accounts.d.ts +27 -0
- package/lib/esm/resources/carrier_accounts.js +26 -0
- package/lib/esm/resources/checkout_com_gateways.d.ts +46 -0
- package/lib/esm/resources/checkout_com_gateways.js +35 -0
- package/lib/esm/resources/checkout_com_payments.d.ts +60 -0
- package/lib/esm/resources/checkout_com_payments.js +35 -0
- package/lib/esm/resources/cleanups.d.ts +37 -0
- package/lib/esm/resources/cleanups.js +28 -0
- package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +60 -0
- package/lib/esm/resources/coupon_codes_promotion_rules.js +31 -0
- package/lib/esm/resources/coupon_recipients.d.ts +45 -0
- package/lib/esm/resources/coupon_recipients.js +35 -0
- package/lib/esm/resources/coupons.d.ts +46 -0
- package/lib/esm/resources/coupons.js +31 -0
- package/lib/esm/resources/customer_addresses.d.ts +45 -0
- package/lib/esm/resources/customer_addresses.js +39 -0
- package/lib/esm/resources/customer_groups.d.ts +37 -0
- package/lib/esm/resources/customer_groups.js +39 -0
- package/lib/esm/resources/customer_password_resets.d.ts +37 -0
- package/lib/esm/resources/customer_password_resets.js +35 -0
- package/lib/esm/resources/customer_payment_sources.d.ts +79 -0
- package/lib/esm/resources/customer_payment_sources.js +31 -0
- package/lib/esm/resources/customer_subscriptions.d.ts +32 -0
- package/lib/esm/resources/customer_subscriptions.js +35 -0
- package/lib/esm/resources/customers.d.ts +67 -0
- package/lib/esm/resources/customers.js +67 -0
- package/lib/esm/resources/delivery_lead_times.d.ts +52 -0
- package/lib/esm/resources/delivery_lead_times.js +39 -0
- package/lib/esm/resources/event_callbacks.d.ts +25 -0
- package/lib/esm/resources/event_callbacks.js +22 -0
- package/lib/esm/resources/events.d.ts +25 -0
- package/lib/esm/resources/events.js +26 -0
- package/lib/esm/resources/exports.d.ts +41 -0
- package/lib/esm/resources/exports.js +28 -0
- package/lib/esm/resources/external_gateways.d.ts +50 -0
- package/lib/esm/resources/external_gateways.js +35 -0
- package/lib/esm/resources/external_payments.d.ts +45 -0
- package/lib/esm/resources/external_payments.js +39 -0
- package/lib/esm/resources/external_promotions.d.ts +91 -0
- package/lib/esm/resources/external_promotions.js +51 -0
- package/lib/esm/resources/external_tax_calculators.d.ts +38 -0
- package/lib/esm/resources/external_tax_calculators.js +35 -0
- package/lib/esm/resources/fixed_amount_promotions.d.ts +92 -0
- package/lib/esm/resources/fixed_amount_promotions.js +51 -0
- package/lib/esm/resources/fixed_price_promotions.d.ts +103 -0
- package/lib/esm/resources/fixed_price_promotions.js +59 -0
- package/lib/esm/resources/free_gift_promotions.d.ts +101 -0
- package/lib/esm/resources/free_gift_promotions.js +59 -0
- package/lib/esm/resources/free_shipping_promotions.d.ts +84 -0
- package/lib/esm/resources/free_shipping_promotions.js +47 -0
- package/lib/esm/resources/geocoders.d.ts +25 -0
- package/lib/esm/resources/geocoders.js +26 -0
- package/lib/esm/resources/gift_card_recipients.d.ts +45 -0
- package/lib/esm/resources/gift_card_recipients.js +35 -0
- package/lib/esm/resources/gift_cards.d.ts +86 -0
- package/lib/esm/resources/gift_cards.js +43 -0
- package/lib/esm/resources/google_geocoders.d.ts +36 -0
- package/lib/esm/resources/google_geocoders.js +35 -0
- package/lib/esm/resources/imports.d.ts +46 -0
- package/lib/esm/resources/imports.js +28 -0
- package/lib/esm/resources/in_stock_subscriptions.d.ts +63 -0
- package/lib/esm/resources/in_stock_subscriptions.js +43 -0
- package/lib/esm/resources/inventory_models.d.ts +43 -0
- package/lib/esm/resources/inventory_models.js +39 -0
- package/lib/esm/resources/inventory_return_locations.d.ts +44 -0
- package/lib/esm/resources/inventory_return_locations.js +35 -0
- package/lib/esm/resources/inventory_stock_locations.d.ts +47 -0
- package/lib/esm/resources/inventory_stock_locations.js +35 -0
- package/lib/esm/resources/klarna_gateways.d.ts +45 -0
- package/lib/esm/resources/klarna_gateways.js +35 -0
- package/lib/esm/resources/klarna_payments.d.ts +47 -0
- package/lib/esm/resources/klarna_payments.js +35 -0
- package/lib/esm/resources/line_item_options.d.ts +58 -0
- package/lib/esm/resources/line_item_options.js +35 -0
- package/lib/esm/resources/line_items.d.ts +127 -0
- package/lib/esm/resources/line_items.js +43 -0
- package/lib/esm/resources/manual_gateways.d.ts +31 -0
- package/lib/esm/resources/manual_gateways.js +31 -0
- package/lib/esm/resources/manual_tax_calculators.d.ts +42 -0
- package/lib/esm/resources/manual_tax_calculators.js +39 -0
- package/lib/esm/resources/markets.d.ts +89 -0
- package/lib/esm/resources/markets.js +51 -0
- package/lib/esm/resources/merchants.d.ts +39 -0
- package/lib/esm/resources/merchants.js +35 -0
- package/lib/esm/resources/order_amount_promotion_rules.d.ts +57 -0
- package/lib/esm/resources/order_amount_promotion_rules.js +27 -0
- package/lib/esm/resources/order_copies.d.ts +49 -0
- package/lib/esm/resources/order_copies.js +40 -0
- package/lib/esm/resources/order_subscriptions.d.ts +71 -0
- package/lib/esm/resources/order_subscriptions.js +51 -0
- package/lib/esm/resources/order_validation_rules.d.ts +24 -0
- package/lib/esm/resources/order_validation_rules.js +26 -0
- package/lib/esm/resources/orders.d.ts +297 -0
- package/lib/esm/resources/orders.js +107 -0
- package/lib/esm/resources/organization.d.ts +32 -0
- package/lib/esm/resources/organization.js +15 -0
- package/lib/esm/resources/packages.d.ts +57 -0
- package/lib/esm/resources/packages.js +39 -0
- package/lib/esm/resources/parcel_line_items.d.ts +52 -0
- package/lib/esm/resources/parcel_line_items.js +35 -0
- package/lib/esm/resources/parcels.d.ts +120 -0
- package/lib/esm/resources/parcels.js +47 -0
- package/lib/esm/resources/payment_gateways.d.ts +22 -0
- package/lib/esm/resources/payment_gateways.js +22 -0
- package/lib/esm/resources/payment_methods.d.ts +73 -0
- package/lib/esm/resources/payment_methods.js +39 -0
- package/lib/esm/resources/paypal_gateways.d.ts +38 -0
- package/lib/esm/resources/paypal_gateways.js +35 -0
- package/lib/esm/resources/paypal_payments.d.ts +53 -0
- package/lib/esm/resources/paypal_payments.js +35 -0
- package/lib/esm/resources/percentage_discount_promotions.d.ts +101 -0
- package/lib/esm/resources/percentage_discount_promotions.js +59 -0
- package/lib/esm/resources/price_lists.d.ts +40 -0
- package/lib/esm/resources/price_lists.js +35 -0
- package/lib/esm/resources/price_tiers.d.ts +29 -0
- package/lib/esm/resources/price_tiers.js +26 -0
- package/lib/esm/resources/price_volume_tiers.d.ts +47 -0
- package/lib/esm/resources/price_volume_tiers.js +35 -0
- package/lib/esm/resources/prices.d.ts +69 -0
- package/lib/esm/resources/prices.js +47 -0
- package/lib/esm/resources/promotion_rules.d.ts +25 -0
- package/lib/esm/resources/promotion_rules.js +18 -0
- package/lib/esm/resources/promotions.d.ts +42 -0
- package/lib/esm/resources/promotions.js +38 -0
- package/lib/esm/resources/refunds.d.ts +38 -0
- package/lib/esm/resources/refunds.js +30 -0
- package/lib/esm/resources/return_line_items.d.ts +50 -0
- package/lib/esm/resources/return_line_items.js +35 -0
- package/lib/esm/resources/returns.d.ts +76 -0
- package/lib/esm/resources/returns.js +59 -0
- package/lib/esm/resources/satispay_gateways.d.ts +40 -0
- package/lib/esm/resources/satispay_gateways.js +35 -0
- package/lib/esm/resources/satispay_payments.d.ts +44 -0
- package/lib/esm/resources/satispay_payments.js +35 -0
- package/lib/esm/resources/shipments.d.ts +94 -0
- package/lib/esm/resources/shipments.js +77 -0
- package/lib/esm/resources/shipping_categories.d.ts +34 -0
- package/lib/esm/resources/shipping_categories.js +35 -0
- package/lib/esm/resources/shipping_method_tiers.d.ts +29 -0
- package/lib/esm/resources/shipping_method_tiers.js +26 -0
- package/lib/esm/resources/shipping_methods.d.ts +108 -0
- package/lib/esm/resources/shipping_methods.js +59 -0
- package/lib/esm/resources/shipping_weight_tiers.d.ts +47 -0
- package/lib/esm/resources/shipping_weight_tiers.js +35 -0
- package/lib/esm/resources/shipping_zones.d.ts +49 -0
- package/lib/esm/resources/shipping_zones.js +31 -0
- package/lib/esm/resources/sku_list_items.d.ts +48 -0
- package/lib/esm/resources/sku_list_items.js +35 -0
- package/lib/esm/resources/sku_list_promotion_rules.d.ts +69 -0
- package/lib/esm/resources/sku_list_promotion_rules.js +35 -0
- package/lib/esm/resources/sku_lists.d.ts +61 -0
- package/lib/esm/resources/sku_lists.js +47 -0
- package/lib/esm/resources/sku_options.d.ts +57 -0
- package/lib/esm/resources/sku_options.js +35 -0
- package/lib/esm/resources/skus.d.ts +79 -0
- package/lib/esm/resources/skus.js +51 -0
- package/lib/esm/resources/stock_items.d.ts +50 -0
- package/lib/esm/resources/stock_items.js +39 -0
- package/lib/esm/resources/stock_line_items.d.ts +30 -0
- package/lib/esm/resources/stock_line_items.js +30 -0
- package/lib/esm/resources/stock_locations.d.ts +58 -0
- package/lib/esm/resources/stock_locations.js +51 -0
- package/lib/esm/resources/stock_transfers.d.ts +75 -0
- package/lib/esm/resources/stock_transfers.js +51 -0
- package/lib/esm/resources/stripe_gateways.d.ts +42 -0
- package/lib/esm/resources/stripe_gateways.js +35 -0
- package/lib/esm/resources/stripe_payments.d.ts +48 -0
- package/lib/esm/resources/stripe_payments.js +35 -0
- package/lib/esm/resources/tax_calculators.d.ts +25 -0
- package/lib/esm/resources/tax_calculators.js +26 -0
- package/lib/esm/resources/tax_categories.d.ts +60 -0
- package/lib/esm/resources/tax_categories.js +35 -0
- package/lib/esm/resources/tax_rules.d.ts +70 -0
- package/lib/esm/resources/tax_rules.js +31 -0
- package/lib/esm/resources/taxjar_accounts.d.ts +44 -0
- package/lib/esm/resources/taxjar_accounts.js +39 -0
- package/lib/esm/resources/transactions.d.ts +32 -0
- package/lib/esm/resources/transactions.js +22 -0
- package/lib/esm/resources/voids.d.ts +38 -0
- package/lib/esm/resources/voids.js +30 -0
- package/lib/esm/resources/webhooks.d.ts +44 -0
- package/lib/esm/resources/webhooks.js +31 -0
- package/lib/esm/resources/wire_transfers.d.ts +34 -0
- package/lib/esm/resources/wire_transfers.js +31 -0
- package/lib/esm/static.d.ts +9 -0
- package/lib/esm/static.js +19 -0
- package/lib/esm/util.d.ts +10 -0
- package/lib/esm/util.js +11 -0
- package/lib/tsconfig.esm.tsbuildinfo +1 -0
- package/lib/tsconfig.tsbuildinfo +1 -0
- package/package.json +27 -36
- package/lib/api.d.ts +0 -1
- package/lib/api.js +0 -1
- package/lib/client.d.ts +0 -2
- package/lib/client.js +0 -1
- package/lib/commercelayer.d.ts +0 -1
- package/lib/commercelayer.js +0 -1
- package/lib/common.d.ts +0 -1
- package/lib/common.js +0 -1
- package/lib/config.d.ts +0 -1
- package/lib/config.js +0 -1
- package/lib/debug.d.ts +0 -1
- package/lib/debug.js +0 -1
- package/lib/error.d.ts +0 -1
- package/lib/error.js +0 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -1
- package/lib/interceptor.d.ts +0 -1
- package/lib/interceptor.js +0 -1
- package/lib/jsonapi.d.ts +0 -1
- package/lib/jsonapi.js +0 -1
- package/lib/model.d.ts +0 -1
- package/lib/model.js +0 -1
- package/lib/query.d.ts +0 -1
- package/lib/query.js +0 -1
- package/lib/resource.d.ts +0 -1
- package/lib/resource.js +0 -1
- package/lib/resources/addresses.d.ts +0 -1
- package/lib/resources/addresses.js +0 -1
- package/lib/resources/adjustments.d.ts +0 -1
- package/lib/resources/adjustments.js +0 -1
- package/lib/resources/adyen_gateways.d.ts +0 -1
- package/lib/resources/adyen_gateways.js +0 -1
- package/lib/resources/adyen_payments.d.ts +0 -1
- package/lib/resources/adyen_payments.js +0 -1
- package/lib/resources/application.d.ts +0 -1
- package/lib/resources/application.js +0 -1
- package/lib/resources/attachments.d.ts +0 -1
- package/lib/resources/attachments.js +0 -1
- package/lib/resources/authorizations.d.ts +0 -1
- package/lib/resources/authorizations.js +0 -1
- package/lib/resources/avalara_accounts.d.ts +0 -1
- package/lib/resources/avalara_accounts.js +0 -1
- package/lib/resources/billing_info_validation_rules.d.ts +0 -1
- package/lib/resources/billing_info_validation_rules.js +0 -1
- package/lib/resources/bing_geocoders.d.ts +0 -1
- package/lib/resources/bing_geocoders.js +0 -1
- package/lib/resources/braintree_gateways.d.ts +0 -1
- package/lib/resources/braintree_gateways.js +0 -1
- package/lib/resources/braintree_payments.d.ts +0 -1
- package/lib/resources/braintree_payments.js +0 -1
- package/lib/resources/bundles.d.ts +0 -1
- package/lib/resources/bundles.js +0 -1
- package/lib/resources/captures.d.ts +0 -1
- package/lib/resources/captures.js +0 -1
- package/lib/resources/carrier_accounts.d.ts +0 -1
- package/lib/resources/carrier_accounts.js +0 -1
- package/lib/resources/checkout_com_gateways.d.ts +0 -1
- package/lib/resources/checkout_com_gateways.js +0 -1
- package/lib/resources/checkout_com_payments.d.ts +0 -1
- package/lib/resources/checkout_com_payments.js +0 -1
- package/lib/resources/coupon_codes_promotion_rules.d.ts +0 -1
- package/lib/resources/coupon_codes_promotion_rules.js +0 -1
- package/lib/resources/coupon_recipients.d.ts +0 -1
- package/lib/resources/coupon_recipients.js +0 -1
- package/lib/resources/coupons.d.ts +0 -1
- package/lib/resources/coupons.js +0 -1
- package/lib/resources/customer_addresses.d.ts +0 -1
- package/lib/resources/customer_addresses.js +0 -1
- package/lib/resources/customer_groups.d.ts +0 -1
- package/lib/resources/customer_groups.js +0 -1
- package/lib/resources/customer_password_resets.d.ts +0 -1
- package/lib/resources/customer_password_resets.js +0 -1
- package/lib/resources/customer_payment_sources.d.ts +0 -1
- package/lib/resources/customer_payment_sources.js +0 -1
- package/lib/resources/customer_subscriptions.d.ts +0 -1
- package/lib/resources/customer_subscriptions.js +0 -1
- package/lib/resources/customers.d.ts +0 -1
- package/lib/resources/customers.js +0 -1
- package/lib/resources/delivery_lead_times.d.ts +0 -1
- package/lib/resources/delivery_lead_times.js +0 -1
- package/lib/resources/event_callbacks.d.ts +0 -1
- package/lib/resources/event_callbacks.js +0 -1
- package/lib/resources/external_gateways.d.ts +0 -1
- package/lib/resources/external_gateways.js +0 -1
- package/lib/resources/external_payments.d.ts +0 -1
- package/lib/resources/external_payments.js +0 -1
- package/lib/resources/external_promotions.d.ts +0 -1
- package/lib/resources/external_promotions.js +0 -1
- package/lib/resources/external_tax_calculators.d.ts +0 -1
- package/lib/resources/external_tax_calculators.js +0 -1
- package/lib/resources/fixed_amount_promotions.d.ts +0 -1
- package/lib/resources/fixed_amount_promotions.js +0 -1
- package/lib/resources/fixed_price_promotions.d.ts +0 -1
- package/lib/resources/fixed_price_promotions.js +0 -1
- package/lib/resources/free_gift_promotions.d.ts +0 -1
- package/lib/resources/free_gift_promotions.js +0 -1
- package/lib/resources/free_shipping_promotions.d.ts +0 -1
- package/lib/resources/free_shipping_promotions.js +0 -1
- package/lib/resources/geocoders.d.ts +0 -1
- package/lib/resources/geocoders.js +0 -1
- package/lib/resources/gift_card_recipients.d.ts +0 -1
- package/lib/resources/gift_card_recipients.js +0 -1
- package/lib/resources/gift_cards.d.ts +0 -1
- package/lib/resources/gift_cards.js +0 -1
- package/lib/resources/google_geocoders.d.ts +0 -1
- package/lib/resources/google_geocoders.js +0 -1
- package/lib/resources/imports.d.ts +0 -1
- package/lib/resources/imports.js +0 -1
- package/lib/resources/in_stock_subscriptions.d.ts +0 -1
- package/lib/resources/in_stock_subscriptions.js +0 -1
- package/lib/resources/inventory_models.d.ts +0 -1
- package/lib/resources/inventory_models.js +0 -1
- package/lib/resources/inventory_return_locations.d.ts +0 -1
- package/lib/resources/inventory_return_locations.js +0 -1
- package/lib/resources/inventory_stock_locations.d.ts +0 -1
- package/lib/resources/inventory_stock_locations.js +0 -1
- package/lib/resources/klarna_gateways.d.ts +0 -1
- package/lib/resources/klarna_gateways.js +0 -1
- package/lib/resources/klarna_payments.d.ts +0 -1
- package/lib/resources/klarna_payments.js +0 -1
- package/lib/resources/line_item_options.d.ts +0 -1
- package/lib/resources/line_item_options.js +0 -1
- package/lib/resources/line_items.d.ts +0 -1
- package/lib/resources/line_items.js +0 -1
- package/lib/resources/manual_gateways.d.ts +0 -1
- package/lib/resources/manual_gateways.js +0 -1
- package/lib/resources/manual_tax_calculators.d.ts +0 -1
- package/lib/resources/manual_tax_calculators.js +0 -1
- package/lib/resources/markets.d.ts +0 -1
- package/lib/resources/markets.js +0 -1
- package/lib/resources/merchants.d.ts +0 -1
- package/lib/resources/merchants.js +0 -1
- package/lib/resources/order_amount_promotion_rules.d.ts +0 -1
- package/lib/resources/order_amount_promotion_rules.js +0 -1
- package/lib/resources/order_copies.d.ts +0 -1
- package/lib/resources/order_copies.js +0 -1
- package/lib/resources/order_subscriptions.d.ts +0 -1
- package/lib/resources/order_subscriptions.js +0 -1
- package/lib/resources/order_validation_rules.d.ts +0 -1
- package/lib/resources/order_validation_rules.js +0 -1
- package/lib/resources/orders.d.ts +0 -1
- package/lib/resources/orders.js +0 -1
- package/lib/resources/organization.d.ts +0 -1
- package/lib/resources/organization.js +0 -1
- package/lib/resources/packages.d.ts +0 -1
- package/lib/resources/packages.js +0 -1
- package/lib/resources/parcel_line_items.d.ts +0 -1
- package/lib/resources/parcel_line_items.js +0 -1
- package/lib/resources/parcels.d.ts +0 -1
- package/lib/resources/parcels.js +0 -1
- package/lib/resources/payment_gateways.d.ts +0 -1
- package/lib/resources/payment_gateways.js +0 -1
- package/lib/resources/payment_methods.d.ts +0 -1
- package/lib/resources/payment_methods.js +0 -1
- package/lib/resources/paypal_gateways.d.ts +0 -1
- package/lib/resources/paypal_gateways.js +0 -1
- package/lib/resources/paypal_payments.d.ts +0 -1
- package/lib/resources/paypal_payments.js +0 -1
- package/lib/resources/percentage_discount_promotions.d.ts +0 -1
- package/lib/resources/percentage_discount_promotions.js +0 -1
- package/lib/resources/price_lists.d.ts +0 -1
- package/lib/resources/price_lists.js +0 -1
- package/lib/resources/prices.d.ts +0 -1
- package/lib/resources/prices.js +0 -1
- package/lib/resources/promotion_rules.d.ts +0 -1
- package/lib/resources/promotion_rules.js +0 -1
- package/lib/resources/promotions.d.ts +0 -1
- package/lib/resources/promotions.js +0 -1
- package/lib/resources/refunds.d.ts +0 -1
- package/lib/resources/refunds.js +0 -1
- package/lib/resources/return_line_items.d.ts +0 -1
- package/lib/resources/return_line_items.js +0 -1
- package/lib/resources/returns.d.ts +0 -1
- package/lib/resources/returns.js +0 -1
- package/lib/resources/shipments.d.ts +0 -1
- package/lib/resources/shipments.js +0 -1
- package/lib/resources/shipping_categories.d.ts +0 -1
- package/lib/resources/shipping_categories.js +0 -1
- package/lib/resources/shipping_methods.d.ts +0 -1
- package/lib/resources/shipping_methods.js +0 -1
- package/lib/resources/shipping_zones.d.ts +0 -1
- package/lib/resources/shipping_zones.js +0 -1
- package/lib/resources/sku_list_items.d.ts +0 -1
- package/lib/resources/sku_list_items.js +0 -1
- package/lib/resources/sku_list_promotion_rules.d.ts +0 -1
- package/lib/resources/sku_list_promotion_rules.js +0 -1
- package/lib/resources/sku_lists.d.ts +0 -1
- package/lib/resources/sku_lists.js +0 -1
- package/lib/resources/sku_options.d.ts +0 -1
- package/lib/resources/sku_options.js +0 -1
- package/lib/resources/skus.d.ts +0 -1
- package/lib/resources/skus.js +0 -1
- package/lib/resources/stock_items.d.ts +0 -1
- package/lib/resources/stock_items.js +0 -1
- package/lib/resources/stock_line_items.d.ts +0 -1
- package/lib/resources/stock_line_items.js +0 -1
- package/lib/resources/stock_locations.d.ts +0 -1
- package/lib/resources/stock_locations.js +0 -1
- package/lib/resources/stock_transfers.d.ts +0 -1
- package/lib/resources/stock_transfers.js +0 -1
- package/lib/resources/stripe_gateways.d.ts +0 -1
- package/lib/resources/stripe_gateways.js +0 -1
- package/lib/resources/stripe_payments.d.ts +0 -1
- package/lib/resources/stripe_payments.js +0 -1
- package/lib/resources/tax_calculators.d.ts +0 -1
- package/lib/resources/tax_calculators.js +0 -1
- package/lib/resources/tax_categories.d.ts +0 -1
- package/lib/resources/tax_categories.js +0 -1
- package/lib/resources/tax_rules.d.ts +0 -1
- package/lib/resources/tax_rules.js +0 -1
- package/lib/resources/taxjar_accounts.d.ts +0 -1
- package/lib/resources/taxjar_accounts.js +0 -1
- package/lib/resources/transactions.d.ts +0 -1
- package/lib/resources/transactions.js +0 -1
- package/lib/resources/voids.d.ts +0 -1
- package/lib/resources/voids.js +0 -1
- package/lib/resources/webhooks.d.ts +0 -1
- package/lib/resources/webhooks.js +0 -1
- package/lib/resources/wire_transfers.d.ts +0 -1
- package/lib/resources/wire_transfers.js +0 -1
- package/lib/static.d.ts +0 -1
- package/lib/static.js +0 -1
- package/lib/util.d.ts +0 -2
- package/lib/util.js +0 -1
package/lib/cjs/api.js
ADDED
@@ -0,0 +1,355 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.InventoryStockLocations = exports.InventoryReturnLocations = exports.InventoryModels = exports.InStockSubscriptions = exports.Imports = exports.GoogleGeocoders = exports.GiftCards = exports.GiftCardRecipients = exports.Geocoders = exports.FreeShippingPromotions = exports.FreeGiftPromotions = exports.FixedPricePromotions = exports.FixedAmountPromotions = exports.ExternalTaxCalculators = exports.ExternalPromotions = exports.ExternalPayments = exports.ExternalGateways = exports.Exports = exports.Events = exports.EventCallbacks = exports.DeliveryLeadTimes = exports.Customers = exports.CustomerSubscriptions = exports.CustomerPaymentSources = exports.CustomerPasswordResets = exports.CustomerGroups = exports.CustomerAddresses = exports.Coupons = exports.CouponRecipients = exports.CouponCodesPromotionRules = exports.Cleanups = exports.CheckoutComPayments = exports.CheckoutComGateways = exports.CarrierAccounts = exports.Captures = exports.Bundles = exports.BraintreePayments = exports.BraintreeGateways = exports.BingGeocoders = exports.BillingInfoValidationRules = exports.AxervePayments = exports.AxerveGateways = exports.AvalaraAccounts = exports.Authorizations = exports.Attachments = exports.Applications = exports.AdyenPayments = exports.AdyenGateways = exports.Adjustments = exports.Addresses = void 0;
|
7
|
+
exports.StripePayments = exports.StripeGateways = exports.StockTransfers = exports.StockLocations = exports.StockLineItems = exports.StockItems = exports.Skus = exports.SkuOptions = exports.SkuLists = exports.SkuListPromotionRules = exports.SkuListItems = exports.ShippingZones = exports.ShippingWeightTiers = exports.ShippingMethods = exports.ShippingMethodTiers = exports.ShippingCategories = exports.Shipments = exports.SatispayPayments = exports.SatispayGateways = exports.Returns = exports.ReturnLineItems = exports.Refunds = exports.Promotions = exports.PromotionRules = exports.Prices = exports.PriceVolumeTiers = exports.PriceTiers = exports.PriceLists = exports.PercentageDiscountPromotions = exports.PaypalPayments = exports.PaypalGateways = exports.PaymentMethods = exports.PaymentGateways = exports.Parcels = exports.ParcelLineItems = exports.Packages = exports.Organizations = exports.Orders = exports.OrderValidationRules = exports.OrderSubscriptions = exports.OrderCopies = exports.OrderAmountPromotionRules = exports.Merchants = exports.Markets = exports.ManualTaxCalculators = exports.ManualGateways = exports.LineItems = exports.LineItemOptions = exports.KlarnaPayments = exports.KlarnaGateways = void 0;
|
8
|
+
exports.resourceList = exports.WireTransfers = exports.Webhooks = exports.Voids = exports.Transactions = exports.TaxjarAccounts = exports.TaxRules = exports.TaxCategories = exports.TaxCalculators = void 0;
|
9
|
+
// ##__API_RESOURCES_START__##
|
10
|
+
// ##__API_RESOURCES_TEMPLATE:: export { default as ##__RESOURCE_CLASS__## } from './resources/##__RESOURCE_TYPE__##'
|
11
|
+
/**
|
12
|
+
* ©2023 Commerce Layer Inc.
|
13
|
+
**/
|
14
|
+
var addresses_1 = require("./resources/addresses");
|
15
|
+
Object.defineProperty(exports, "Addresses", { enumerable: true, get: function () { return __importDefault(addresses_1).default; } });
|
16
|
+
var adjustments_1 = require("./resources/adjustments");
|
17
|
+
Object.defineProperty(exports, "Adjustments", { enumerable: true, get: function () { return __importDefault(adjustments_1).default; } });
|
18
|
+
var adyen_gateways_1 = require("./resources/adyen_gateways");
|
19
|
+
Object.defineProperty(exports, "AdyenGateways", { enumerable: true, get: function () { return __importDefault(adyen_gateways_1).default; } });
|
20
|
+
var adyen_payments_1 = require("./resources/adyen_payments");
|
21
|
+
Object.defineProperty(exports, "AdyenPayments", { enumerable: true, get: function () { return __importDefault(adyen_payments_1).default; } });
|
22
|
+
var application_1 = require("./resources/application");
|
23
|
+
Object.defineProperty(exports, "Applications", { enumerable: true, get: function () { return __importDefault(application_1).default; } });
|
24
|
+
var attachments_1 = require("./resources/attachments");
|
25
|
+
Object.defineProperty(exports, "Attachments", { enumerable: true, get: function () { return __importDefault(attachments_1).default; } });
|
26
|
+
var authorizations_1 = require("./resources/authorizations");
|
27
|
+
Object.defineProperty(exports, "Authorizations", { enumerable: true, get: function () { return __importDefault(authorizations_1).default; } });
|
28
|
+
var avalara_accounts_1 = require("./resources/avalara_accounts");
|
29
|
+
Object.defineProperty(exports, "AvalaraAccounts", { enumerable: true, get: function () { return __importDefault(avalara_accounts_1).default; } });
|
30
|
+
var axerve_gateways_1 = require("./resources/axerve_gateways");
|
31
|
+
Object.defineProperty(exports, "AxerveGateways", { enumerable: true, get: function () { return __importDefault(axerve_gateways_1).default; } });
|
32
|
+
var axerve_payments_1 = require("./resources/axerve_payments");
|
33
|
+
Object.defineProperty(exports, "AxervePayments", { enumerable: true, get: function () { return __importDefault(axerve_payments_1).default; } });
|
34
|
+
var billing_info_validation_rules_1 = require("./resources/billing_info_validation_rules");
|
35
|
+
Object.defineProperty(exports, "BillingInfoValidationRules", { enumerable: true, get: function () { return __importDefault(billing_info_validation_rules_1).default; } });
|
36
|
+
var bing_geocoders_1 = require("./resources/bing_geocoders");
|
37
|
+
Object.defineProperty(exports, "BingGeocoders", { enumerable: true, get: function () { return __importDefault(bing_geocoders_1).default; } });
|
38
|
+
var braintree_gateways_1 = require("./resources/braintree_gateways");
|
39
|
+
Object.defineProperty(exports, "BraintreeGateways", { enumerable: true, get: function () { return __importDefault(braintree_gateways_1).default; } });
|
40
|
+
var braintree_payments_1 = require("./resources/braintree_payments");
|
41
|
+
Object.defineProperty(exports, "BraintreePayments", { enumerable: true, get: function () { return __importDefault(braintree_payments_1).default; } });
|
42
|
+
var bundles_1 = require("./resources/bundles");
|
43
|
+
Object.defineProperty(exports, "Bundles", { enumerable: true, get: function () { return __importDefault(bundles_1).default; } });
|
44
|
+
var captures_1 = require("./resources/captures");
|
45
|
+
Object.defineProperty(exports, "Captures", { enumerable: true, get: function () { return __importDefault(captures_1).default; } });
|
46
|
+
var carrier_accounts_1 = require("./resources/carrier_accounts");
|
47
|
+
Object.defineProperty(exports, "CarrierAccounts", { enumerable: true, get: function () { return __importDefault(carrier_accounts_1).default; } });
|
48
|
+
var checkout_com_gateways_1 = require("./resources/checkout_com_gateways");
|
49
|
+
Object.defineProperty(exports, "CheckoutComGateways", { enumerable: true, get: function () { return __importDefault(checkout_com_gateways_1).default; } });
|
50
|
+
var checkout_com_payments_1 = require("./resources/checkout_com_payments");
|
51
|
+
Object.defineProperty(exports, "CheckoutComPayments", { enumerable: true, get: function () { return __importDefault(checkout_com_payments_1).default; } });
|
52
|
+
var cleanups_1 = require("./resources/cleanups");
|
53
|
+
Object.defineProperty(exports, "Cleanups", { enumerable: true, get: function () { return __importDefault(cleanups_1).default; } });
|
54
|
+
var coupon_codes_promotion_rules_1 = require("./resources/coupon_codes_promotion_rules");
|
55
|
+
Object.defineProperty(exports, "CouponCodesPromotionRules", { enumerable: true, get: function () { return __importDefault(coupon_codes_promotion_rules_1).default; } });
|
56
|
+
var coupon_recipients_1 = require("./resources/coupon_recipients");
|
57
|
+
Object.defineProperty(exports, "CouponRecipients", { enumerable: true, get: function () { return __importDefault(coupon_recipients_1).default; } });
|
58
|
+
var coupons_1 = require("./resources/coupons");
|
59
|
+
Object.defineProperty(exports, "Coupons", { enumerable: true, get: function () { return __importDefault(coupons_1).default; } });
|
60
|
+
var customer_addresses_1 = require("./resources/customer_addresses");
|
61
|
+
Object.defineProperty(exports, "CustomerAddresses", { enumerable: true, get: function () { return __importDefault(customer_addresses_1).default; } });
|
62
|
+
var customer_groups_1 = require("./resources/customer_groups");
|
63
|
+
Object.defineProperty(exports, "CustomerGroups", { enumerable: true, get: function () { return __importDefault(customer_groups_1).default; } });
|
64
|
+
var customer_password_resets_1 = require("./resources/customer_password_resets");
|
65
|
+
Object.defineProperty(exports, "CustomerPasswordResets", { enumerable: true, get: function () { return __importDefault(customer_password_resets_1).default; } });
|
66
|
+
var customer_payment_sources_1 = require("./resources/customer_payment_sources");
|
67
|
+
Object.defineProperty(exports, "CustomerPaymentSources", { enumerable: true, get: function () { return __importDefault(customer_payment_sources_1).default; } });
|
68
|
+
var customer_subscriptions_1 = require("./resources/customer_subscriptions");
|
69
|
+
Object.defineProperty(exports, "CustomerSubscriptions", { enumerable: true, get: function () { return __importDefault(customer_subscriptions_1).default; } });
|
70
|
+
var customers_1 = require("./resources/customers");
|
71
|
+
Object.defineProperty(exports, "Customers", { enumerable: true, get: function () { return __importDefault(customers_1).default; } });
|
72
|
+
var delivery_lead_times_1 = require("./resources/delivery_lead_times");
|
73
|
+
Object.defineProperty(exports, "DeliveryLeadTimes", { enumerable: true, get: function () { return __importDefault(delivery_lead_times_1).default; } });
|
74
|
+
var event_callbacks_1 = require("./resources/event_callbacks");
|
75
|
+
Object.defineProperty(exports, "EventCallbacks", { enumerable: true, get: function () { return __importDefault(event_callbacks_1).default; } });
|
76
|
+
var events_1 = require("./resources/events");
|
77
|
+
Object.defineProperty(exports, "Events", { enumerable: true, get: function () { return __importDefault(events_1).default; } });
|
78
|
+
var exports_1 = require("./resources/exports");
|
79
|
+
Object.defineProperty(exports, "Exports", { enumerable: true, get: function () { return __importDefault(exports_1).default; } });
|
80
|
+
var external_gateways_1 = require("./resources/external_gateways");
|
81
|
+
Object.defineProperty(exports, "ExternalGateways", { enumerable: true, get: function () { return __importDefault(external_gateways_1).default; } });
|
82
|
+
var external_payments_1 = require("./resources/external_payments");
|
83
|
+
Object.defineProperty(exports, "ExternalPayments", { enumerable: true, get: function () { return __importDefault(external_payments_1).default; } });
|
84
|
+
var external_promotions_1 = require("./resources/external_promotions");
|
85
|
+
Object.defineProperty(exports, "ExternalPromotions", { enumerable: true, get: function () { return __importDefault(external_promotions_1).default; } });
|
86
|
+
var external_tax_calculators_1 = require("./resources/external_tax_calculators");
|
87
|
+
Object.defineProperty(exports, "ExternalTaxCalculators", { enumerable: true, get: function () { return __importDefault(external_tax_calculators_1).default; } });
|
88
|
+
var fixed_amount_promotions_1 = require("./resources/fixed_amount_promotions");
|
89
|
+
Object.defineProperty(exports, "FixedAmountPromotions", { enumerable: true, get: function () { return __importDefault(fixed_amount_promotions_1).default; } });
|
90
|
+
var fixed_price_promotions_1 = require("./resources/fixed_price_promotions");
|
91
|
+
Object.defineProperty(exports, "FixedPricePromotions", { enumerable: true, get: function () { return __importDefault(fixed_price_promotions_1).default; } });
|
92
|
+
var free_gift_promotions_1 = require("./resources/free_gift_promotions");
|
93
|
+
Object.defineProperty(exports, "FreeGiftPromotions", { enumerable: true, get: function () { return __importDefault(free_gift_promotions_1).default; } });
|
94
|
+
var free_shipping_promotions_1 = require("./resources/free_shipping_promotions");
|
95
|
+
Object.defineProperty(exports, "FreeShippingPromotions", { enumerable: true, get: function () { return __importDefault(free_shipping_promotions_1).default; } });
|
96
|
+
var geocoders_1 = require("./resources/geocoders");
|
97
|
+
Object.defineProperty(exports, "Geocoders", { enumerable: true, get: function () { return __importDefault(geocoders_1).default; } });
|
98
|
+
var gift_card_recipients_1 = require("./resources/gift_card_recipients");
|
99
|
+
Object.defineProperty(exports, "GiftCardRecipients", { enumerable: true, get: function () { return __importDefault(gift_card_recipients_1).default; } });
|
100
|
+
var gift_cards_1 = require("./resources/gift_cards");
|
101
|
+
Object.defineProperty(exports, "GiftCards", { enumerable: true, get: function () { return __importDefault(gift_cards_1).default; } });
|
102
|
+
var google_geocoders_1 = require("./resources/google_geocoders");
|
103
|
+
Object.defineProperty(exports, "GoogleGeocoders", { enumerable: true, get: function () { return __importDefault(google_geocoders_1).default; } });
|
104
|
+
var imports_1 = require("./resources/imports");
|
105
|
+
Object.defineProperty(exports, "Imports", { enumerable: true, get: function () { return __importDefault(imports_1).default; } });
|
106
|
+
var in_stock_subscriptions_1 = require("./resources/in_stock_subscriptions");
|
107
|
+
Object.defineProperty(exports, "InStockSubscriptions", { enumerable: true, get: function () { return __importDefault(in_stock_subscriptions_1).default; } });
|
108
|
+
var inventory_models_1 = require("./resources/inventory_models");
|
109
|
+
Object.defineProperty(exports, "InventoryModels", { enumerable: true, get: function () { return __importDefault(inventory_models_1).default; } });
|
110
|
+
var inventory_return_locations_1 = require("./resources/inventory_return_locations");
|
111
|
+
Object.defineProperty(exports, "InventoryReturnLocations", { enumerable: true, get: function () { return __importDefault(inventory_return_locations_1).default; } });
|
112
|
+
var inventory_stock_locations_1 = require("./resources/inventory_stock_locations");
|
113
|
+
Object.defineProperty(exports, "InventoryStockLocations", { enumerable: true, get: function () { return __importDefault(inventory_stock_locations_1).default; } });
|
114
|
+
var klarna_gateways_1 = require("./resources/klarna_gateways");
|
115
|
+
Object.defineProperty(exports, "KlarnaGateways", { enumerable: true, get: function () { return __importDefault(klarna_gateways_1).default; } });
|
116
|
+
var klarna_payments_1 = require("./resources/klarna_payments");
|
117
|
+
Object.defineProperty(exports, "KlarnaPayments", { enumerable: true, get: function () { return __importDefault(klarna_payments_1).default; } });
|
118
|
+
var line_item_options_1 = require("./resources/line_item_options");
|
119
|
+
Object.defineProperty(exports, "LineItemOptions", { enumerable: true, get: function () { return __importDefault(line_item_options_1).default; } });
|
120
|
+
var line_items_1 = require("./resources/line_items");
|
121
|
+
Object.defineProperty(exports, "LineItems", { enumerable: true, get: function () { return __importDefault(line_items_1).default; } });
|
122
|
+
var manual_gateways_1 = require("./resources/manual_gateways");
|
123
|
+
Object.defineProperty(exports, "ManualGateways", { enumerable: true, get: function () { return __importDefault(manual_gateways_1).default; } });
|
124
|
+
var manual_tax_calculators_1 = require("./resources/manual_tax_calculators");
|
125
|
+
Object.defineProperty(exports, "ManualTaxCalculators", { enumerable: true, get: function () { return __importDefault(manual_tax_calculators_1).default; } });
|
126
|
+
var markets_1 = require("./resources/markets");
|
127
|
+
Object.defineProperty(exports, "Markets", { enumerable: true, get: function () { return __importDefault(markets_1).default; } });
|
128
|
+
var merchants_1 = require("./resources/merchants");
|
129
|
+
Object.defineProperty(exports, "Merchants", { enumerable: true, get: function () { return __importDefault(merchants_1).default; } });
|
130
|
+
var order_amount_promotion_rules_1 = require("./resources/order_amount_promotion_rules");
|
131
|
+
Object.defineProperty(exports, "OrderAmountPromotionRules", { enumerable: true, get: function () { return __importDefault(order_amount_promotion_rules_1).default; } });
|
132
|
+
var order_copies_1 = require("./resources/order_copies");
|
133
|
+
Object.defineProperty(exports, "OrderCopies", { enumerable: true, get: function () { return __importDefault(order_copies_1).default; } });
|
134
|
+
var order_subscriptions_1 = require("./resources/order_subscriptions");
|
135
|
+
Object.defineProperty(exports, "OrderSubscriptions", { enumerable: true, get: function () { return __importDefault(order_subscriptions_1).default; } });
|
136
|
+
var order_validation_rules_1 = require("./resources/order_validation_rules");
|
137
|
+
Object.defineProperty(exports, "OrderValidationRules", { enumerable: true, get: function () { return __importDefault(order_validation_rules_1).default; } });
|
138
|
+
var orders_1 = require("./resources/orders");
|
139
|
+
Object.defineProperty(exports, "Orders", { enumerable: true, get: function () { return __importDefault(orders_1).default; } });
|
140
|
+
var organization_1 = require("./resources/organization");
|
141
|
+
Object.defineProperty(exports, "Organizations", { enumerable: true, get: function () { return __importDefault(organization_1).default; } });
|
142
|
+
var packages_1 = require("./resources/packages");
|
143
|
+
Object.defineProperty(exports, "Packages", { enumerable: true, get: function () { return __importDefault(packages_1).default; } });
|
144
|
+
var parcel_line_items_1 = require("./resources/parcel_line_items");
|
145
|
+
Object.defineProperty(exports, "ParcelLineItems", { enumerable: true, get: function () { return __importDefault(parcel_line_items_1).default; } });
|
146
|
+
var parcels_1 = require("./resources/parcels");
|
147
|
+
Object.defineProperty(exports, "Parcels", { enumerable: true, get: function () { return __importDefault(parcels_1).default; } });
|
148
|
+
var payment_gateways_1 = require("./resources/payment_gateways");
|
149
|
+
Object.defineProperty(exports, "PaymentGateways", { enumerable: true, get: function () { return __importDefault(payment_gateways_1).default; } });
|
150
|
+
var payment_methods_1 = require("./resources/payment_methods");
|
151
|
+
Object.defineProperty(exports, "PaymentMethods", { enumerable: true, get: function () { return __importDefault(payment_methods_1).default; } });
|
152
|
+
var paypal_gateways_1 = require("./resources/paypal_gateways");
|
153
|
+
Object.defineProperty(exports, "PaypalGateways", { enumerable: true, get: function () { return __importDefault(paypal_gateways_1).default; } });
|
154
|
+
var paypal_payments_1 = require("./resources/paypal_payments");
|
155
|
+
Object.defineProperty(exports, "PaypalPayments", { enumerable: true, get: function () { return __importDefault(paypal_payments_1).default; } });
|
156
|
+
var percentage_discount_promotions_1 = require("./resources/percentage_discount_promotions");
|
157
|
+
Object.defineProperty(exports, "PercentageDiscountPromotions", { enumerable: true, get: function () { return __importDefault(percentage_discount_promotions_1).default; } });
|
158
|
+
var price_lists_1 = require("./resources/price_lists");
|
159
|
+
Object.defineProperty(exports, "PriceLists", { enumerable: true, get: function () { return __importDefault(price_lists_1).default; } });
|
160
|
+
var price_tiers_1 = require("./resources/price_tiers");
|
161
|
+
Object.defineProperty(exports, "PriceTiers", { enumerable: true, get: function () { return __importDefault(price_tiers_1).default; } });
|
162
|
+
var price_volume_tiers_1 = require("./resources/price_volume_tiers");
|
163
|
+
Object.defineProperty(exports, "PriceVolumeTiers", { enumerable: true, get: function () { return __importDefault(price_volume_tiers_1).default; } });
|
164
|
+
var prices_1 = require("./resources/prices");
|
165
|
+
Object.defineProperty(exports, "Prices", { enumerable: true, get: function () { return __importDefault(prices_1).default; } });
|
166
|
+
var promotion_rules_1 = require("./resources/promotion_rules");
|
167
|
+
Object.defineProperty(exports, "PromotionRules", { enumerable: true, get: function () { return __importDefault(promotion_rules_1).default; } });
|
168
|
+
var promotions_1 = require("./resources/promotions");
|
169
|
+
Object.defineProperty(exports, "Promotions", { enumerable: true, get: function () { return __importDefault(promotions_1).default; } });
|
170
|
+
var refunds_1 = require("./resources/refunds");
|
171
|
+
Object.defineProperty(exports, "Refunds", { enumerable: true, get: function () { return __importDefault(refunds_1).default; } });
|
172
|
+
var return_line_items_1 = require("./resources/return_line_items");
|
173
|
+
Object.defineProperty(exports, "ReturnLineItems", { enumerable: true, get: function () { return __importDefault(return_line_items_1).default; } });
|
174
|
+
var returns_1 = require("./resources/returns");
|
175
|
+
Object.defineProperty(exports, "Returns", { enumerable: true, get: function () { return __importDefault(returns_1).default; } });
|
176
|
+
var satispay_gateways_1 = require("./resources/satispay_gateways");
|
177
|
+
Object.defineProperty(exports, "SatispayGateways", { enumerable: true, get: function () { return __importDefault(satispay_gateways_1).default; } });
|
178
|
+
var satispay_payments_1 = require("./resources/satispay_payments");
|
179
|
+
Object.defineProperty(exports, "SatispayPayments", { enumerable: true, get: function () { return __importDefault(satispay_payments_1).default; } });
|
180
|
+
var shipments_1 = require("./resources/shipments");
|
181
|
+
Object.defineProperty(exports, "Shipments", { enumerable: true, get: function () { return __importDefault(shipments_1).default; } });
|
182
|
+
var shipping_categories_1 = require("./resources/shipping_categories");
|
183
|
+
Object.defineProperty(exports, "ShippingCategories", { enumerable: true, get: function () { return __importDefault(shipping_categories_1).default; } });
|
184
|
+
var shipping_method_tiers_1 = require("./resources/shipping_method_tiers");
|
185
|
+
Object.defineProperty(exports, "ShippingMethodTiers", { enumerable: true, get: function () { return __importDefault(shipping_method_tiers_1).default; } });
|
186
|
+
var shipping_methods_1 = require("./resources/shipping_methods");
|
187
|
+
Object.defineProperty(exports, "ShippingMethods", { enumerable: true, get: function () { return __importDefault(shipping_methods_1).default; } });
|
188
|
+
var shipping_weight_tiers_1 = require("./resources/shipping_weight_tiers");
|
189
|
+
Object.defineProperty(exports, "ShippingWeightTiers", { enumerable: true, get: function () { return __importDefault(shipping_weight_tiers_1).default; } });
|
190
|
+
var shipping_zones_1 = require("./resources/shipping_zones");
|
191
|
+
Object.defineProperty(exports, "ShippingZones", { enumerable: true, get: function () { return __importDefault(shipping_zones_1).default; } });
|
192
|
+
var sku_list_items_1 = require("./resources/sku_list_items");
|
193
|
+
Object.defineProperty(exports, "SkuListItems", { enumerable: true, get: function () { return __importDefault(sku_list_items_1).default; } });
|
194
|
+
var sku_list_promotion_rules_1 = require("./resources/sku_list_promotion_rules");
|
195
|
+
Object.defineProperty(exports, "SkuListPromotionRules", { enumerable: true, get: function () { return __importDefault(sku_list_promotion_rules_1).default; } });
|
196
|
+
var sku_lists_1 = require("./resources/sku_lists");
|
197
|
+
Object.defineProperty(exports, "SkuLists", { enumerable: true, get: function () { return __importDefault(sku_lists_1).default; } });
|
198
|
+
var sku_options_1 = require("./resources/sku_options");
|
199
|
+
Object.defineProperty(exports, "SkuOptions", { enumerable: true, get: function () { return __importDefault(sku_options_1).default; } });
|
200
|
+
var skus_1 = require("./resources/skus");
|
201
|
+
Object.defineProperty(exports, "Skus", { enumerable: true, get: function () { return __importDefault(skus_1).default; } });
|
202
|
+
var stock_items_1 = require("./resources/stock_items");
|
203
|
+
Object.defineProperty(exports, "StockItems", { enumerable: true, get: function () { return __importDefault(stock_items_1).default; } });
|
204
|
+
var stock_line_items_1 = require("./resources/stock_line_items");
|
205
|
+
Object.defineProperty(exports, "StockLineItems", { enumerable: true, get: function () { return __importDefault(stock_line_items_1).default; } });
|
206
|
+
var stock_locations_1 = require("./resources/stock_locations");
|
207
|
+
Object.defineProperty(exports, "StockLocations", { enumerable: true, get: function () { return __importDefault(stock_locations_1).default; } });
|
208
|
+
var stock_transfers_1 = require("./resources/stock_transfers");
|
209
|
+
Object.defineProperty(exports, "StockTransfers", { enumerable: true, get: function () { return __importDefault(stock_transfers_1).default; } });
|
210
|
+
var stripe_gateways_1 = require("./resources/stripe_gateways");
|
211
|
+
Object.defineProperty(exports, "StripeGateways", { enumerable: true, get: function () { return __importDefault(stripe_gateways_1).default; } });
|
212
|
+
var stripe_payments_1 = require("./resources/stripe_payments");
|
213
|
+
Object.defineProperty(exports, "StripePayments", { enumerable: true, get: function () { return __importDefault(stripe_payments_1).default; } });
|
214
|
+
var tax_calculators_1 = require("./resources/tax_calculators");
|
215
|
+
Object.defineProperty(exports, "TaxCalculators", { enumerable: true, get: function () { return __importDefault(tax_calculators_1).default; } });
|
216
|
+
var tax_categories_1 = require("./resources/tax_categories");
|
217
|
+
Object.defineProperty(exports, "TaxCategories", { enumerable: true, get: function () { return __importDefault(tax_categories_1).default; } });
|
218
|
+
var tax_rules_1 = require("./resources/tax_rules");
|
219
|
+
Object.defineProperty(exports, "TaxRules", { enumerable: true, get: function () { return __importDefault(tax_rules_1).default; } });
|
220
|
+
var taxjar_accounts_1 = require("./resources/taxjar_accounts");
|
221
|
+
Object.defineProperty(exports, "TaxjarAccounts", { enumerable: true, get: function () { return __importDefault(taxjar_accounts_1).default; } });
|
222
|
+
var transactions_1 = require("./resources/transactions");
|
223
|
+
Object.defineProperty(exports, "Transactions", { enumerable: true, get: function () { return __importDefault(transactions_1).default; } });
|
224
|
+
var voids_1 = require("./resources/voids");
|
225
|
+
Object.defineProperty(exports, "Voids", { enumerable: true, get: function () { return __importDefault(voids_1).default; } });
|
226
|
+
var webhooks_1 = require("./resources/webhooks");
|
227
|
+
Object.defineProperty(exports, "Webhooks", { enumerable: true, get: function () { return __importDefault(webhooks_1).default; } });
|
228
|
+
var wire_transfers_1 = require("./resources/wire_transfers");
|
229
|
+
Object.defineProperty(exports, "WireTransfers", { enumerable: true, get: function () { return __importDefault(wire_transfers_1).default; } });
|
230
|
+
// ##__API_RESOURCE_TYPES_STOP__##
|
231
|
+
exports.resourceList = [
|
232
|
+
// ##__API_RESOURCE_LIST_START__##
|
233
|
+
'addresses',
|
234
|
+
'adjustments',
|
235
|
+
'adyen_gateways',
|
236
|
+
'adyen_payments',
|
237
|
+
'application',
|
238
|
+
'attachments',
|
239
|
+
'authorizations',
|
240
|
+
'avalara_accounts',
|
241
|
+
'axerve_gateways',
|
242
|
+
'axerve_payments',
|
243
|
+
'billing_info_validation_rules',
|
244
|
+
'bing_geocoders',
|
245
|
+
'braintree_gateways',
|
246
|
+
'braintree_payments',
|
247
|
+
'bundles',
|
248
|
+
'captures',
|
249
|
+
'carrier_accounts',
|
250
|
+
'checkout_com_gateways',
|
251
|
+
'checkout_com_payments',
|
252
|
+
'cleanups',
|
253
|
+
'coupon_codes_promotion_rules',
|
254
|
+
'coupon_recipients',
|
255
|
+
'coupons',
|
256
|
+
'customer_addresses',
|
257
|
+
'customer_groups',
|
258
|
+
'customer_password_resets',
|
259
|
+
'customer_payment_sources',
|
260
|
+
'customer_subscriptions',
|
261
|
+
'customers',
|
262
|
+
'delivery_lead_times',
|
263
|
+
'event_callbacks',
|
264
|
+
'events',
|
265
|
+
'exports',
|
266
|
+
'external_gateways',
|
267
|
+
'external_payments',
|
268
|
+
'external_promotions',
|
269
|
+
'external_tax_calculators',
|
270
|
+
'fixed_amount_promotions',
|
271
|
+
'fixed_price_promotions',
|
272
|
+
'free_gift_promotions',
|
273
|
+
'free_shipping_promotions',
|
274
|
+
'geocoders',
|
275
|
+
'gift_card_recipients',
|
276
|
+
'gift_cards',
|
277
|
+
'google_geocoders',
|
278
|
+
'imports',
|
279
|
+
'in_stock_subscriptions',
|
280
|
+
'inventory_models',
|
281
|
+
'inventory_return_locations',
|
282
|
+
'inventory_stock_locations',
|
283
|
+
'klarna_gateways',
|
284
|
+
'klarna_payments',
|
285
|
+
'line_item_options',
|
286
|
+
'line_items',
|
287
|
+
'manual_gateways',
|
288
|
+
'manual_tax_calculators',
|
289
|
+
'markets',
|
290
|
+
'merchants',
|
291
|
+
'order_amount_promotion_rules',
|
292
|
+
'order_copies',
|
293
|
+
'order_subscriptions',
|
294
|
+
'order_validation_rules',
|
295
|
+
'orders',
|
296
|
+
'organization',
|
297
|
+
'packages',
|
298
|
+
'parcel_line_items',
|
299
|
+
'parcels',
|
300
|
+
'payment_gateways',
|
301
|
+
'payment_methods',
|
302
|
+
'paypal_gateways',
|
303
|
+
'paypal_payments',
|
304
|
+
'percentage_discount_promotions',
|
305
|
+
'price_lists',
|
306
|
+
'price_tiers',
|
307
|
+
'price_volume_tiers',
|
308
|
+
'prices',
|
309
|
+
'promotion_rules',
|
310
|
+
'promotions',
|
311
|
+
'refunds',
|
312
|
+
'return_line_items',
|
313
|
+
'returns',
|
314
|
+
'satispay_gateways',
|
315
|
+
'satispay_payments',
|
316
|
+
'shipments',
|
317
|
+
'shipping_categories',
|
318
|
+
'shipping_method_tiers',
|
319
|
+
'shipping_methods',
|
320
|
+
'shipping_weight_tiers',
|
321
|
+
'shipping_zones',
|
322
|
+
'sku_list_items',
|
323
|
+
'sku_list_promotion_rules',
|
324
|
+
'sku_lists',
|
325
|
+
'sku_options',
|
326
|
+
'skus',
|
327
|
+
'stock_items',
|
328
|
+
'stock_line_items',
|
329
|
+
'stock_locations',
|
330
|
+
'stock_transfers',
|
331
|
+
'stripe_gateways',
|
332
|
+
'stripe_payments',
|
333
|
+
'tax_calculators',
|
334
|
+
'tax_categories',
|
335
|
+
'tax_rules',
|
336
|
+
'taxjar_accounts',
|
337
|
+
'transactions',
|
338
|
+
'voids',
|
339
|
+
'webhooks',
|
340
|
+
'wire_transfers'
|
341
|
+
// ##__API_RESOURCE_LIST_STOP__##
|
342
|
+
];
|
343
|
+
/*
|
344
|
+
type ResourceInfo = {
|
345
|
+
name: string;
|
346
|
+
type: string;
|
347
|
+
api: string;
|
348
|
+
}
|
349
|
+
|
350
|
+
|
351
|
+
export const resourceMap: { [res: string]: ResourceInfo } = {
|
352
|
+
// ##__API_RESOURCE_MAP_START__##
|
353
|
+
// ##__API_RESOURCE_MAP_STOP__##
|
354
|
+
} as const
|
355
|
+
*/
|
@@ -0,0 +1,33 @@
|
|
1
|
+
/// <reference types="node" />
|
2
|
+
/// <reference types="node" />
|
3
|
+
import { AxiosProxyConfig, Method } from 'axios';
|
4
|
+
import type { InterceptorManager } from './interceptor';
|
5
|
+
import type { Agent as HttpAgent } from 'http';
|
6
|
+
import type { Agent as HttpsAgent } from 'https';
|
7
|
+
type ProxyConfig = AxiosProxyConfig | false;
|
8
|
+
type RequestConfig = {
|
9
|
+
timeout?: number;
|
10
|
+
params?: {
|
11
|
+
[key: string]: string | number | boolean;
|
12
|
+
};
|
13
|
+
httpAgent?: HttpAgent;
|
14
|
+
httpsAgent?: HttpsAgent;
|
15
|
+
proxy?: ProxyConfig;
|
16
|
+
};
|
17
|
+
type ApiClientInitConfig = {
|
18
|
+
organization: string;
|
19
|
+
domain?: string;
|
20
|
+
accessToken: string;
|
21
|
+
} & RequestConfig;
|
22
|
+
type ApiClientConfig = Partial<ApiClientInitConfig>;
|
23
|
+
declare class ApiClient {
|
24
|
+
#private;
|
25
|
+
static create(options: ApiClientInitConfig): ApiClient;
|
26
|
+
baseUrl: string;
|
27
|
+
interceptors: InterceptorManager;
|
28
|
+
private constructor();
|
29
|
+
config(config: ApiClientConfig): void;
|
30
|
+
request(method: Method, path: string, body?: any, options?: ApiClientConfig): Promise<any>;
|
31
|
+
}
|
32
|
+
export default ApiClient;
|
33
|
+
export { ApiClientInitConfig, ApiClientConfig, RequestConfig };
|
@@ -0,0 +1,123 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
3
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
4
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
5
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
6
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
7
|
+
};
|
8
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
9
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
10
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
11
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
12
|
+
};
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
15
|
+
};
|
16
|
+
var _ApiClient_accessToken, _ApiClient_client;
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
18
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
19
|
+
const axios_1 = __importDefault(require("axios"));
|
20
|
+
const error_1 = require("./error");
|
21
|
+
const config_1 = __importDefault(require("./config"));
|
22
|
+
const debug_1 = __importDefault(require("./debug"));
|
23
|
+
const debug = (0, debug_1.default)('client');
|
24
|
+
const baseURL = (organization, domain) => {
|
25
|
+
return `https://${organization.toLowerCase()}.${domain || config_1.default.default.domain}/api`;
|
26
|
+
};
|
27
|
+
const handleError = (error) => {
|
28
|
+
let sdkError = new error_1.SdkError({ message: error.message });
|
29
|
+
if (axios_1.default.isAxiosError(error)) {
|
30
|
+
if (error.response) {
|
31
|
+
// The request was made and the server responded with a status code that falls out of the range of 2xx
|
32
|
+
const apiError = new error_1.ApiError(sdkError);
|
33
|
+
apiError.type = error_1.ErrorType.RESPONSE;
|
34
|
+
apiError.status = error.response.status;
|
35
|
+
apiError.code = String(apiError.status);
|
36
|
+
apiError.errors = error.response.data.errors;
|
37
|
+
sdkError = apiError;
|
38
|
+
}
|
39
|
+
else if (error.request) {
|
40
|
+
// The request was made but no response was received
|
41
|
+
// `error.request` is an instance of XMLHttpRequest in the browser and an instance of http.ClientRequest in node.js
|
42
|
+
sdkError.type = error_1.ErrorType.REQUEST;
|
43
|
+
sdkError.request = error.request;
|
44
|
+
}
|
45
|
+
else {
|
46
|
+
// Something happened in setting up the request that triggered an Error
|
47
|
+
sdkError.type = error_1.ErrorType.CLIENT;
|
48
|
+
}
|
49
|
+
}
|
50
|
+
else if (axios_1.default.isCancel(error))
|
51
|
+
sdkError.type = error_1.ErrorType.CANCEL;
|
52
|
+
else
|
53
|
+
sdkError.source = error;
|
54
|
+
throw sdkError;
|
55
|
+
};
|
56
|
+
class ApiClient {
|
57
|
+
static create(options) {
|
58
|
+
if (!(options === null || options === void 0 ? void 0 : options.organization))
|
59
|
+
throw new Error("Undefined 'organization' parameter");
|
60
|
+
if (!(options === null || options === void 0 ? void 0 : options.accessToken))
|
61
|
+
throw new Error("Undefined 'accessToken' parameter");
|
62
|
+
return new ApiClient(options);
|
63
|
+
}
|
64
|
+
constructor(options) {
|
65
|
+
_ApiClient_accessToken.set(this, void 0);
|
66
|
+
_ApiClient_client.set(this, void 0);
|
67
|
+
debug('new client instance %O', options);
|
68
|
+
this.baseUrl = baseURL(options.organization, options.domain);
|
69
|
+
__classPrivateFieldSet(this, _ApiClient_accessToken, options.accessToken, "f");
|
70
|
+
const axiosConfig = {
|
71
|
+
timeout: options.timeout || config_1.default.client.timeout,
|
72
|
+
proxy: options.proxy,
|
73
|
+
httpAgent: options.httpAgent,
|
74
|
+
httpsAgent: options.httpsAgent,
|
75
|
+
};
|
76
|
+
const axiosOptions = Object.assign({ baseURL: this.baseUrl, timeout: config_1.default.client.timeout, headers: {
|
77
|
+
'Accept': 'application/vnd.api+json',
|
78
|
+
'Content-Type': 'application/vnd.api+json',
|
79
|
+
'Authorization': 'Bearer ' + __classPrivateFieldGet(this, _ApiClient_accessToken, "f"),
|
80
|
+
} }, axiosConfig);
|
81
|
+
debug('axios options: %O', axiosOptions);
|
82
|
+
__classPrivateFieldSet(this, _ApiClient_client, axios_1.default.create(axiosOptions), "f");
|
83
|
+
this.interceptors = __classPrivateFieldGet(this, _ApiClient_client, "f").interceptors;
|
84
|
+
}
|
85
|
+
config(config) {
|
86
|
+
debug('config %o', config);
|
87
|
+
const def = __classPrivateFieldGet(this, _ApiClient_client, "f").defaults;
|
88
|
+
// Axios config
|
89
|
+
if (config.timeout)
|
90
|
+
def.timeout = config.timeout;
|
91
|
+
if (config.proxy)
|
92
|
+
def.proxy = config.proxy;
|
93
|
+
if (config.httpAgent)
|
94
|
+
def.httpAgent = config.httpAgent;
|
95
|
+
if (config.httpsAgent)
|
96
|
+
def.httpsAgent = config.httpsAgent;
|
97
|
+
// API Client config
|
98
|
+
if (config.organization)
|
99
|
+
this.baseUrl = baseURL(config.organization, config.domain);
|
100
|
+
if (config.accessToken) {
|
101
|
+
__classPrivateFieldSet(this, _ApiClient_accessToken, config.accessToken, "f");
|
102
|
+
def.headers.common.Authorization = 'Bearer ' + __classPrivateFieldGet(this, _ApiClient_accessToken, "f");
|
103
|
+
}
|
104
|
+
}
|
105
|
+
async request(method, path, body, options) {
|
106
|
+
debug('request %s %s, %O, %O', method, path, body || {}, options || {});
|
107
|
+
const data = body ? { data: body } : undefined;
|
108
|
+
const url = path;
|
109
|
+
// Runtime request parameters
|
110
|
+
const baseUrl = (options === null || options === void 0 ? void 0 : options.organization) ? baseURL(options.organization, options.domain) : undefined;
|
111
|
+
const accessToken = (options === null || options === void 0 ? void 0 : options.accessToken) || __classPrivateFieldGet(this, _ApiClient_accessToken, "f");
|
112
|
+
const headers = accessToken ? { 'Authorization': 'Bearer ' + accessToken } : undefined;
|
113
|
+
const requestParams = Object.assign({ method, baseURL: baseUrl, url, data, headers }, options);
|
114
|
+
debug('request params: %O', requestParams);
|
115
|
+
// const start = Date.now()
|
116
|
+
return __classPrivateFieldGet(this, _ApiClient_client, "f").request(requestParams)
|
117
|
+
.then(response => response.data)
|
118
|
+
.catch(error => handleError(error));
|
119
|
+
// .finally(() => console.log(`<<-- ${method} ${path} ${Date.now() - start}`))
|
120
|
+
}
|
121
|
+
}
|
122
|
+
_ApiClient_accessToken = new WeakMap(), _ApiClient_client = new WeakMap();
|
123
|
+
exports.default = ApiClient;
|