@commercelayer/sdk 4.4.0 → 5.0.0-alpha.3
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 +12 -10
- package/lib/{cjs/api.d.ts → api.d.ts} +0 -0
- package/lib/{esm/api.js → api.js} +0 -0
- package/lib/{cjs/client.d.ts → client.d.ts} +0 -0
- package/lib/client.js +1 -0
- package/lib/{cjs/commercelayer.d.ts → commercelayer.d.ts} +0 -0
- package/lib/{esm/commercelayer.js → commercelayer.js} +1 -1
- package/lib/{cjs/common.d.ts → common.d.ts} +0 -0
- package/lib/common.js +1 -0
- package/lib/{cjs/config.d.ts → config.d.ts} +0 -0
- package/lib/{esm/config.js → config.js} +0 -0
- package/lib/{cjs/debug.d.ts → debug.d.ts} +0 -0
- package/lib/{esm/debug.js → debug.js} +0 -0
- package/lib/{cjs/error.d.ts → error.d.ts} +0 -0
- package/lib/error.js +1 -0
- package/lib/{cjs/index.d.ts → index.d.ts} +0 -0
- package/lib/{esm/index.js → index.js} +0 -0
- package/lib/{cjs/interceptor.d.ts → interceptor.d.ts} +0 -0
- package/lib/{esm/interceptor.js → interceptor.js} +0 -0
- package/lib/{cjs/jsonapi.d.ts → jsonapi.d.ts} +0 -0
- package/lib/jsonapi.js +1 -0
- package/lib/{cjs/model.d.ts → model.d.ts} +0 -0
- package/lib/{esm/model.js → model.js} +0 -0
- package/lib/{cjs/query.d.ts → query.d.ts} +0 -0
- package/lib/{esm/query.js → query.js} +0 -0
- package/lib/{cjs/resource.d.ts → resource.d.ts} +0 -0
- package/lib/resource.js +1 -0
- package/lib/{cjs/resources → resources}/addresses.d.ts +0 -0
- package/lib/resources/addresses.js +1 -0
- package/lib/{cjs/resources → resources}/adjustments.d.ts +0 -0
- package/lib/resources/adjustments.js +1 -0
- package/lib/{cjs/resources → resources}/adyen_gateways.d.ts +0 -0
- package/lib/resources/adyen_gateways.js +1 -0
- package/lib/{cjs/resources → resources}/adyen_payments.d.ts +0 -0
- package/lib/resources/adyen_payments.js +1 -0
- package/lib/{cjs/resources → resources}/application.d.ts +0 -0
- package/lib/{esm/resources → resources}/application.js +0 -0
- package/lib/{cjs/resources → resources}/attachments.d.ts +0 -0
- package/lib/resources/attachments.js +1 -0
- package/lib/{cjs/resources → resources}/authorizations.d.ts +0 -0
- package/lib/resources/authorizations.js +1 -0
- package/lib/{cjs/resources → resources}/avalara_accounts.d.ts +0 -0
- package/lib/resources/avalara_accounts.js +1 -0
- package/lib/{cjs/resources → resources}/billing_info_validation_rules.d.ts +0 -0
- package/lib/resources/billing_info_validation_rules.js +1 -0
- package/lib/{cjs/resources → resources}/bing_geocoders.d.ts +0 -0
- package/lib/resources/bing_geocoders.js +1 -0
- package/lib/{cjs/resources → resources}/braintree_gateways.d.ts +0 -0
- package/lib/resources/braintree_gateways.js +1 -0
- package/lib/{cjs/resources → resources}/braintree_payments.d.ts +0 -0
- package/lib/resources/braintree_payments.js +1 -0
- package/lib/{cjs/resources → resources}/bundles.d.ts +0 -0
- package/lib/resources/bundles.js +1 -0
- package/lib/{cjs/resources → resources}/captures.d.ts +0 -0
- package/lib/resources/captures.js +1 -0
- package/lib/{cjs/resources → resources}/carrier_accounts.d.ts +0 -0
- package/lib/{esm/resources → resources}/carrier_accounts.js +0 -0
- package/lib/{cjs/resources → resources}/checkout_com_gateways.d.ts +0 -0
- package/lib/resources/checkout_com_gateways.js +1 -0
- package/lib/{cjs/resources → resources}/checkout_com_payments.d.ts +0 -0
- package/lib/resources/checkout_com_payments.js +1 -0
- package/lib/{cjs/resources → resources}/coupon_codes_promotion_rules.d.ts +0 -0
- package/lib/resources/coupon_codes_promotion_rules.js +1 -0
- package/lib/{cjs/resources → resources}/coupon_recipients.d.ts +0 -0
- package/lib/resources/coupon_recipients.js +1 -0
- package/lib/{cjs/resources → resources}/coupons.d.ts +0 -0
- package/lib/resources/coupons.js +1 -0
- package/lib/{cjs/resources → resources}/customer_addresses.d.ts +0 -0
- package/lib/resources/customer_addresses.js +1 -0
- package/lib/{cjs/resources → resources}/customer_groups.d.ts +0 -0
- package/lib/resources/customer_groups.js +1 -0
- package/lib/{cjs/resources → resources}/customer_password_resets.d.ts +0 -0
- package/lib/resources/customer_password_resets.js +1 -0
- package/lib/{cjs/resources → resources}/customer_payment_sources.d.ts +0 -0
- package/lib/resources/customer_payment_sources.js +1 -0
- package/lib/{cjs/resources → resources}/customer_subscriptions.d.ts +0 -0
- package/lib/resources/customer_subscriptions.js +1 -0
- package/lib/{cjs/resources → resources}/customers.d.ts +0 -0
- package/lib/resources/customers.js +1 -0
- package/lib/{cjs/resources → resources}/delivery_lead_times.d.ts +0 -0
- package/lib/resources/delivery_lead_times.js +1 -0
- package/lib/{cjs/resources → resources}/event_callbacks.d.ts +0 -0
- package/lib/{esm/resources → resources}/event_callbacks.js +0 -0
- package/lib/{cjs/resources → resources}/external_gateways.d.ts +0 -0
- package/lib/resources/external_gateways.js +1 -0
- package/lib/{cjs/resources → resources}/external_payments.d.ts +0 -0
- package/lib/resources/external_payments.js +1 -0
- package/lib/{cjs/resources → resources}/external_promotions.d.ts +0 -0
- package/lib/resources/external_promotions.js +1 -0
- package/lib/{cjs/resources → resources}/external_tax_calculators.d.ts +0 -0
- package/lib/resources/external_tax_calculators.js +1 -0
- package/lib/{cjs/resources → resources}/fixed_amount_promotions.d.ts +0 -0
- package/lib/resources/fixed_amount_promotions.js +1 -0
- package/lib/{cjs/resources → resources}/fixed_price_promotions.d.ts +0 -0
- package/lib/resources/fixed_price_promotions.js +1 -0
- package/lib/{cjs/resources → resources}/free_gift_promotions.d.ts +0 -0
- package/lib/resources/free_gift_promotions.js +1 -0
- package/lib/{cjs/resources → resources}/free_shipping_promotions.d.ts +0 -0
- package/lib/resources/free_shipping_promotions.js +1 -0
- package/lib/{cjs/resources → resources}/geocoders.d.ts +0 -0
- package/lib/{esm/resources → resources}/geocoders.js +0 -0
- package/lib/{cjs/resources → resources}/gift_card_recipients.d.ts +0 -0
- package/lib/resources/gift_card_recipients.js +1 -0
- package/lib/{cjs/resources → resources}/gift_cards.d.ts +0 -0
- package/lib/resources/gift_cards.js +1 -0
- package/lib/{cjs/resources → resources}/google_geocoders.d.ts +0 -0
- package/lib/resources/google_geocoders.js +1 -0
- package/lib/{cjs/resources → resources}/imports.d.ts +0 -0
- package/lib/resources/imports.js +1 -0
- package/lib/{cjs/resources → resources}/in_stock_subscriptions.d.ts +0 -0
- package/lib/resources/in_stock_subscriptions.js +1 -0
- package/lib/{cjs/resources → resources}/inventory_models.d.ts +0 -0
- package/lib/resources/inventory_models.js +1 -0
- package/lib/{cjs/resources → resources}/inventory_return_locations.d.ts +0 -0
- package/lib/resources/inventory_return_locations.js +1 -0
- package/lib/{cjs/resources → resources}/inventory_stock_locations.d.ts +0 -0
- package/lib/resources/inventory_stock_locations.js +1 -0
- package/lib/{cjs/resources → resources}/klarna_gateways.d.ts +0 -0
- package/lib/resources/klarna_gateways.js +1 -0
- package/lib/{cjs/resources → resources}/klarna_payments.d.ts +0 -0
- package/lib/resources/klarna_payments.js +1 -0
- package/lib/{cjs/resources → resources}/line_item_options.d.ts +0 -0
- package/lib/resources/line_item_options.js +1 -0
- package/lib/{cjs/resources → resources}/line_items.d.ts +0 -0
- package/lib/resources/line_items.js +1 -0
- package/lib/{cjs/resources → resources}/manual_gateways.d.ts +0 -0
- package/lib/resources/manual_gateways.js +1 -0
- package/lib/{cjs/resources → resources}/manual_tax_calculators.d.ts +0 -0
- package/lib/resources/manual_tax_calculators.js +1 -0
- package/lib/{cjs/resources → resources}/markets.d.ts +0 -0
- package/lib/resources/markets.js +1 -0
- package/lib/{cjs/resources → resources}/merchants.d.ts +0 -0
- package/lib/resources/merchants.js +1 -0
- package/lib/{cjs/resources → resources}/order_amount_promotion_rules.d.ts +0 -0
- package/lib/resources/order_amount_promotion_rules.js +1 -0
- package/lib/{cjs/resources → resources}/order_copies.d.ts +0 -0
- package/lib/resources/order_copies.js +1 -0
- package/lib/{cjs/resources → resources}/order_subscriptions.d.ts +0 -0
- package/lib/resources/order_subscriptions.js +1 -0
- package/lib/{cjs/resources → resources}/order_validation_rules.d.ts +0 -0
- package/lib/{esm/resources → resources}/order_validation_rules.js +0 -0
- package/lib/{cjs/resources → resources}/orders.d.ts +0 -0
- package/lib/resources/orders.js +1 -0
- package/lib/{cjs/resources → resources}/organization.d.ts +0 -0
- package/lib/{esm/resources → resources}/organization.js +0 -0
- package/lib/{cjs/resources → resources}/packages.d.ts +0 -0
- package/lib/resources/packages.js +1 -0
- package/lib/{cjs/resources → resources}/parcel_line_items.d.ts +0 -0
- package/lib/resources/parcel_line_items.js +1 -0
- package/lib/{cjs/resources → resources}/parcels.d.ts +0 -0
- package/lib/resources/parcels.js +1 -0
- package/lib/{cjs/resources → resources}/payment_gateways.d.ts +0 -0
- package/lib/{esm/resources → resources}/payment_gateways.js +0 -0
- package/lib/{cjs/resources → resources}/payment_methods.d.ts +0 -0
- package/lib/resources/payment_methods.js +1 -0
- package/lib/{cjs/resources → resources}/paypal_gateways.d.ts +0 -0
- package/lib/resources/paypal_gateways.js +1 -0
- package/lib/{cjs/resources → resources}/paypal_payments.d.ts +0 -0
- package/lib/resources/paypal_payments.js +1 -0
- package/lib/{cjs/resources → resources}/percentage_discount_promotions.d.ts +0 -0
- package/lib/resources/percentage_discount_promotions.js +1 -0
- package/lib/{cjs/resources → resources}/price_lists.d.ts +0 -0
- package/lib/resources/price_lists.js +1 -0
- package/lib/{cjs/resources → resources}/prices.d.ts +0 -0
- package/lib/resources/prices.js +1 -0
- package/lib/{cjs/resources → resources}/promotion_rules.d.ts +0 -0
- package/lib/{esm/resources → resources}/promotion_rules.js +0 -0
- package/lib/{cjs/resources → resources}/promotions.d.ts +0 -0
- package/lib/{esm/resources → resources}/promotions.js +0 -0
- package/lib/{cjs/resources → resources}/refunds.d.ts +0 -0
- package/lib/{esm/resources → resources}/refunds.js +0 -0
- package/lib/{cjs/resources → resources}/return_line_items.d.ts +0 -0
- package/lib/resources/return_line_items.js +1 -0
- package/lib/{cjs/resources → resources}/returns.d.ts +0 -0
- package/lib/resources/returns.js +1 -0
- package/lib/{cjs/resources → resources}/shipments.d.ts +0 -0
- package/lib/resources/shipments.js +1 -0
- package/lib/{cjs/resources → resources}/shipping_categories.d.ts +0 -0
- package/lib/resources/shipping_categories.js +1 -0
- package/lib/{cjs/resources → resources}/shipping_methods.d.ts +0 -0
- package/lib/resources/shipping_methods.js +1 -0
- package/lib/{cjs/resources → resources}/shipping_zones.d.ts +0 -0
- package/lib/resources/shipping_zones.js +1 -0
- package/lib/{cjs/resources → resources}/sku_list_items.d.ts +0 -0
- package/lib/resources/sku_list_items.js +1 -0
- package/lib/{cjs/resources → resources}/sku_list_promotion_rules.d.ts +0 -0
- package/lib/resources/sku_list_promotion_rules.js +1 -0
- package/lib/{cjs/resources → resources}/sku_lists.d.ts +0 -0
- package/lib/resources/sku_lists.js +1 -0
- package/lib/{cjs/resources → resources}/sku_options.d.ts +0 -0
- package/lib/resources/sku_options.js +1 -0
- package/lib/{cjs/resources → resources}/skus.d.ts +0 -0
- package/lib/resources/skus.js +1 -0
- package/lib/{cjs/resources → resources}/stock_items.d.ts +0 -0
- package/lib/resources/stock_items.js +1 -0
- package/lib/{cjs/resources → resources}/stock_line_items.d.ts +0 -0
- package/lib/{esm/resources → resources}/stock_line_items.js +0 -0
- package/lib/{cjs/resources → resources}/stock_locations.d.ts +0 -0
- package/lib/resources/stock_locations.js +1 -0
- package/lib/{cjs/resources → resources}/stock_transfers.d.ts +0 -0
- package/lib/resources/stock_transfers.js +1 -0
- package/lib/{cjs/resources → resources}/stripe_gateways.d.ts +0 -0
- package/lib/resources/stripe_gateways.js +1 -0
- package/lib/{cjs/resources → resources}/stripe_payments.d.ts +0 -0
- package/lib/resources/stripe_payments.js +1 -0
- package/lib/{cjs/resources → resources}/tax_calculators.d.ts +0 -0
- package/lib/{esm/resources → resources}/tax_calculators.js +0 -0
- package/lib/{cjs/resources → resources}/tax_categories.d.ts +0 -0
- package/lib/resources/tax_categories.js +1 -0
- package/lib/{cjs/resources → resources}/tax_rules.d.ts +0 -0
- package/lib/resources/tax_rules.js +1 -0
- package/lib/{cjs/resources → resources}/taxjar_accounts.d.ts +0 -0
- package/lib/resources/taxjar_accounts.js +1 -0
- package/lib/{cjs/resources → resources}/transactions.d.ts +0 -0
- package/lib/{esm/resources → resources}/transactions.js +0 -0
- package/lib/{cjs/resources → resources}/voids.d.ts +0 -0
- package/lib/{esm/resources → resources}/voids.js +0 -0
- package/lib/{cjs/resources → resources}/webhooks.d.ts +0 -0
- package/lib/resources/webhooks.js +1 -0
- package/lib/{cjs/resources → resources}/wire_transfers.d.ts +0 -0
- package/lib/resources/wire_transfers.js +1 -0
- package/lib/{cjs/static.d.ts → static.d.ts} +0 -0
- package/lib/{esm/static.js → static.js} +0 -0
- package/lib/{cjs/util.d.ts → util.d.ts} +0 -0
- package/lib/{esm/util.js → util.js} +0 -0
- package/package.json +12 -12
- package/lib/cjs/api.js +0 -1
- package/lib/cjs/client.js +0 -1
- package/lib/cjs/commercelayer.js +0 -1
- package/lib/cjs/common.js +0 -1
- package/lib/cjs/config.js +0 -1
- package/lib/cjs/debug.js +0 -1
- package/lib/cjs/error.js +0 -1
- package/lib/cjs/index.js +0 -1
- package/lib/cjs/interceptor.js +0 -1
- package/lib/cjs/jsonapi.js +0 -1
- package/lib/cjs/model.js +0 -1
- package/lib/cjs/query.js +0 -1
- package/lib/cjs/resource.js +0 -1
- package/lib/cjs/resources/addresses.js +0 -1
- package/lib/cjs/resources/adjustments.js +0 -1
- package/lib/cjs/resources/adyen_gateways.js +0 -1
- package/lib/cjs/resources/adyen_payments.js +0 -1
- package/lib/cjs/resources/application.js +0 -1
- package/lib/cjs/resources/attachments.js +0 -1
- package/lib/cjs/resources/authorizations.js +0 -1
- package/lib/cjs/resources/avalara_accounts.js +0 -1
- package/lib/cjs/resources/billing_info_validation_rules.js +0 -1
- package/lib/cjs/resources/bing_geocoders.js +0 -1
- package/lib/cjs/resources/braintree_gateways.js +0 -1
- package/lib/cjs/resources/braintree_payments.js +0 -1
- package/lib/cjs/resources/bundles.js +0 -1
- package/lib/cjs/resources/captures.js +0 -1
- package/lib/cjs/resources/carrier_accounts.js +0 -1
- package/lib/cjs/resources/checkout_com_gateways.js +0 -1
- package/lib/cjs/resources/checkout_com_payments.js +0 -1
- package/lib/cjs/resources/coupon_codes_promotion_rules.js +0 -1
- package/lib/cjs/resources/coupon_recipients.js +0 -1
- package/lib/cjs/resources/coupons.js +0 -1
- package/lib/cjs/resources/customer_addresses.js +0 -1
- package/lib/cjs/resources/customer_groups.js +0 -1
- package/lib/cjs/resources/customer_password_resets.js +0 -1
- package/lib/cjs/resources/customer_payment_sources.js +0 -1
- package/lib/cjs/resources/customer_subscriptions.js +0 -1
- package/lib/cjs/resources/customers.js +0 -1
- package/lib/cjs/resources/delivery_lead_times.js +0 -1
- package/lib/cjs/resources/event_callbacks.js +0 -1
- package/lib/cjs/resources/external_gateways.js +0 -1
- package/lib/cjs/resources/external_payments.js +0 -1
- package/lib/cjs/resources/external_promotions.js +0 -1
- package/lib/cjs/resources/external_tax_calculators.js +0 -1
- package/lib/cjs/resources/fixed_amount_promotions.js +0 -1
- package/lib/cjs/resources/fixed_price_promotions.js +0 -1
- package/lib/cjs/resources/free_gift_promotions.js +0 -1
- package/lib/cjs/resources/free_shipping_promotions.js +0 -1
- package/lib/cjs/resources/geocoders.js +0 -1
- package/lib/cjs/resources/gift_card_recipients.js +0 -1
- package/lib/cjs/resources/gift_cards.js +0 -1
- package/lib/cjs/resources/google_geocoders.js +0 -1
- package/lib/cjs/resources/imports.js +0 -1
- package/lib/cjs/resources/in_stock_subscriptions.js +0 -1
- package/lib/cjs/resources/inventory_models.js +0 -1
- package/lib/cjs/resources/inventory_return_locations.js +0 -1
- package/lib/cjs/resources/inventory_stock_locations.js +0 -1
- package/lib/cjs/resources/klarna_gateways.js +0 -1
- package/lib/cjs/resources/klarna_payments.js +0 -1
- package/lib/cjs/resources/line_item_options.js +0 -1
- package/lib/cjs/resources/line_items.js +0 -1
- package/lib/cjs/resources/manual_gateways.js +0 -1
- package/lib/cjs/resources/manual_tax_calculators.js +0 -1
- package/lib/cjs/resources/markets.js +0 -1
- package/lib/cjs/resources/merchants.js +0 -1
- package/lib/cjs/resources/order_amount_promotion_rules.js +0 -1
- package/lib/cjs/resources/order_copies.js +0 -1
- package/lib/cjs/resources/order_subscriptions.js +0 -1
- package/lib/cjs/resources/order_validation_rules.js +0 -1
- package/lib/cjs/resources/orders.js +0 -1
- package/lib/cjs/resources/organization.js +0 -1
- package/lib/cjs/resources/packages.js +0 -1
- package/lib/cjs/resources/parcel_line_items.js +0 -1
- package/lib/cjs/resources/parcels.js +0 -1
- package/lib/cjs/resources/payment_gateways.js +0 -1
- package/lib/cjs/resources/payment_methods.js +0 -1
- package/lib/cjs/resources/paypal_gateways.js +0 -1
- package/lib/cjs/resources/paypal_payments.js +0 -1
- package/lib/cjs/resources/percentage_discount_promotions.js +0 -1
- package/lib/cjs/resources/price_lists.js +0 -1
- package/lib/cjs/resources/prices.js +0 -1
- package/lib/cjs/resources/promotion_rules.js +0 -1
- package/lib/cjs/resources/promotions.js +0 -1
- package/lib/cjs/resources/refunds.js +0 -1
- package/lib/cjs/resources/return_line_items.js +0 -1
- package/lib/cjs/resources/returns.js +0 -1
- package/lib/cjs/resources/shipments.js +0 -1
- package/lib/cjs/resources/shipping_categories.js +0 -1
- package/lib/cjs/resources/shipping_methods.js +0 -1
- package/lib/cjs/resources/shipping_zones.js +0 -1
- package/lib/cjs/resources/sku_list_items.js +0 -1
- package/lib/cjs/resources/sku_list_promotion_rules.js +0 -1
- package/lib/cjs/resources/sku_lists.js +0 -1
- package/lib/cjs/resources/sku_options.js +0 -1
- package/lib/cjs/resources/skus.js +0 -1
- package/lib/cjs/resources/stock_items.js +0 -1
- package/lib/cjs/resources/stock_line_items.js +0 -1
- package/lib/cjs/resources/stock_locations.js +0 -1
- package/lib/cjs/resources/stock_transfers.js +0 -1
- package/lib/cjs/resources/stripe_gateways.js +0 -1
- package/lib/cjs/resources/stripe_payments.js +0 -1
- package/lib/cjs/resources/tax_calculators.js +0 -1
- package/lib/cjs/resources/tax_categories.js +0 -1
- package/lib/cjs/resources/tax_rules.js +0 -1
- package/lib/cjs/resources/taxjar_accounts.js +0 -1
- package/lib/cjs/resources/transactions.js +0 -1
- package/lib/cjs/resources/voids.js +0 -1
- package/lib/cjs/resources/webhooks.js +0 -1
- package/lib/cjs/resources/wire_transfers.js +0 -1
- package/lib/cjs/static.js +0 -1
- package/lib/cjs/util.js +0 -1
- package/lib/esm/api.d.ts +0 -103
- package/lib/esm/client.d.ts +0 -32
- package/lib/esm/client.js +0 -1
- package/lib/esm/commercelayer.d.ts +0 -122
- package/lib/esm/common.d.ts +0 -4
- package/lib/esm/common.js +0 -1
- package/lib/esm/config.d.ts +0 -11
- package/lib/esm/debug.d.ts +0 -3
- package/lib/esm/error.d.ts +0 -26
- package/lib/esm/error.js +0 -1
- package/lib/esm/index.d.ts +0 -7
- package/lib/esm/interceptor.d.ts +0 -19
- package/lib/esm/jsonapi.d.ts +0 -5
- package/lib/esm/jsonapi.js +0 -1
- package/lib/esm/model.d.ts +0 -101
- package/lib/esm/query.d.ts +0 -23
- package/lib/esm/resource.d.ts +0 -76
- package/lib/esm/resource.js +0 -1
- package/lib/esm/resources/addresses.d.ts +0 -88
- package/lib/esm/resources/addresses.js +0 -1
- package/lib/esm/resources/adjustments.d.ts +0 -35
- package/lib/esm/resources/adjustments.js +0 -1
- package/lib/esm/resources/adyen_gateways.d.ts +0 -47
- package/lib/esm/resources/adyen_gateways.js +0 -1
- package/lib/esm/resources/adyen_payments.d.ts +0 -44
- package/lib/esm/resources/adyen_payments.js +0 -1
- package/lib/esm/resources/application.d.ts +0 -21
- package/lib/esm/resources/attachments.d.ts +0 -156
- package/lib/esm/resources/attachments.js +0 -1
- package/lib/esm/resources/authorizations.d.ts +0 -57
- package/lib/esm/resources/authorizations.js +0 -1
- package/lib/esm/resources/avalara_accounts.d.ts +0 -52
- package/lib/esm/resources/avalara_accounts.js +0 -1
- package/lib/esm/resources/billing_info_validation_rules.d.ts +0 -32
- package/lib/esm/resources/billing_info_validation_rules.js +0 -1
- package/lib/esm/resources/bing_geocoders.d.ts +0 -35
- package/lib/esm/resources/bing_geocoders.js +0 -1
- package/lib/esm/resources/braintree_gateways.d.ts +0 -56
- package/lib/esm/resources/braintree_gateways.js +0 -1
- package/lib/esm/resources/braintree_payments.d.ts +0 -47
- package/lib/esm/resources/braintree_payments.js +0 -1
- package/lib/esm/resources/bundles.d.ts +0 -74
- package/lib/esm/resources/bundles.js +0 -1
- package/lib/esm/resources/captures.d.ts +0 -48
- package/lib/esm/resources/captures.js +0 -1
- package/lib/esm/resources/carrier_accounts.d.ts +0 -26
- package/lib/esm/resources/checkout_com_gateways.d.ts +0 -45
- package/lib/esm/resources/checkout_com_gateways.js +0 -1
- package/lib/esm/resources/checkout_com_payments.d.ts +0 -50
- package/lib/esm/resources/checkout_com_payments.js +0 -1
- package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +0 -59
- package/lib/esm/resources/coupon_codes_promotion_rules.js +0 -1
- package/lib/esm/resources/coupon_recipients.d.ts +0 -44
- package/lib/esm/resources/coupon_recipients.js +0 -1
- package/lib/esm/resources/coupons.d.ts +0 -45
- package/lib/esm/resources/coupons.js +0 -1
- package/lib/esm/resources/customer_addresses.d.ts +0 -41
- package/lib/esm/resources/customer_addresses.js +0 -1
- package/lib/esm/resources/customer_groups.d.ts +0 -36
- package/lib/esm/resources/customer_groups.js +0 -1
- package/lib/esm/resources/customer_password_resets.d.ts +0 -33
- package/lib/esm/resources/customer_password_resets.js +0 -1
- package/lib/esm/resources/customer_payment_sources.d.ts +0 -70
- package/lib/esm/resources/customer_payment_sources.js +0 -1
- package/lib/esm/resources/customer_subscriptions.d.ts +0 -28
- package/lib/esm/resources/customer_subscriptions.js +0 -1
- package/lib/esm/resources/customers.d.ts +0 -60
- package/lib/esm/resources/customers.js +0 -1
- package/lib/esm/resources/delivery_lead_times.d.ts +0 -51
- package/lib/esm/resources/delivery_lead_times.js +0 -1
- package/lib/esm/resources/event_callbacks.d.ts +0 -24
- package/lib/esm/resources/external_gateways.d.ts +0 -49
- package/lib/esm/resources/external_gateways.js +0 -1
- package/lib/esm/resources/external_payments.d.ts +0 -43
- package/lib/esm/resources/external_payments.js +0 -1
- package/lib/esm/resources/external_promotions.d.ts +0 -86
- package/lib/esm/resources/external_promotions.js +0 -1
- package/lib/esm/resources/external_tax_calculators.d.ts +0 -44
- package/lib/esm/resources/external_tax_calculators.js +0 -1
- package/lib/esm/resources/fixed_amount_promotions.d.ts +0 -88
- package/lib/esm/resources/fixed_amount_promotions.js +0 -1
- package/lib/esm/resources/fixed_price_promotions.d.ts +0 -99
- package/lib/esm/resources/fixed_price_promotions.js +0 -1
- package/lib/esm/resources/free_gift_promotions.d.ts +0 -97
- package/lib/esm/resources/free_gift_promotions.js +0 -1
- package/lib/esm/resources/free_shipping_promotions.d.ts +0 -83
- package/lib/esm/resources/free_shipping_promotions.js +0 -1
- package/lib/esm/resources/geocoders.d.ts +0 -24
- package/lib/esm/resources/gift_card_recipients.d.ts +0 -44
- package/lib/esm/resources/gift_card_recipients.js +0 -1
- package/lib/esm/resources/gift_cards.d.ts +0 -82
- package/lib/esm/resources/gift_cards.js +0 -1
- package/lib/esm/resources/google_geocoders.d.ts +0 -35
- package/lib/esm/resources/google_geocoders.js +0 -1
- package/lib/esm/resources/imports.d.ts +0 -40
- package/lib/esm/resources/imports.js +0 -1
- package/lib/esm/resources/in_stock_subscriptions.d.ts +0 -59
- package/lib/esm/resources/in_stock_subscriptions.js +0 -1
- package/lib/esm/resources/inventory_models.d.ts +0 -42
- package/lib/esm/resources/inventory_models.js +0 -1
- package/lib/esm/resources/inventory_return_locations.d.ts +0 -43
- package/lib/esm/resources/inventory_return_locations.js +0 -1
- package/lib/esm/resources/inventory_stock_locations.d.ts +0 -46
- package/lib/esm/resources/inventory_stock_locations.js +0 -1
- package/lib/esm/resources/klarna_gateways.d.ts +0 -44
- package/lib/esm/resources/klarna_gateways.js +0 -1
- package/lib/esm/resources/klarna_payments.d.ts +0 -41
- package/lib/esm/resources/klarna_payments.js +0 -1
- package/lib/esm/resources/line_item_options.d.ts +0 -57
- package/lib/esm/resources/line_item_options.js +0 -1
- package/lib/esm/resources/line_items.d.ts +0 -125
- package/lib/esm/resources/line_items.js +0 -1
- package/lib/esm/resources/manual_gateways.d.ts +0 -33
- package/lib/esm/resources/manual_gateways.js +0 -1
- package/lib/esm/resources/manual_tax_calculators.d.ts +0 -49
- package/lib/esm/resources/manual_tax_calculators.js +0 -1
- package/lib/esm/resources/markets.d.ts +0 -81
- package/lib/esm/resources/markets.js +0 -1
- package/lib/esm/resources/merchants.d.ts +0 -38
- package/lib/esm/resources/merchants.js +0 -1
- package/lib/esm/resources/order_amount_promotion_rules.d.ts +0 -56
- package/lib/esm/resources/order_amount_promotion_rules.js +0 -1
- package/lib/esm/resources/order_copies.d.ts +0 -45
- package/lib/esm/resources/order_copies.js +0 -1
- package/lib/esm/resources/order_subscriptions.d.ts +0 -67
- package/lib/esm/resources/order_subscriptions.js +0 -1
- package/lib/esm/resources/order_validation_rules.d.ts +0 -20
- package/lib/esm/resources/orders.d.ts +0 -271
- package/lib/esm/resources/orders.js +0 -1
- package/lib/esm/resources/organization.d.ts +0 -32
- package/lib/esm/resources/packages.d.ts +0 -56
- package/lib/esm/resources/packages.js +0 -1
- package/lib/esm/resources/parcel_line_items.d.ts +0 -49
- package/lib/esm/resources/parcel_line_items.js +0 -1
- package/lib/esm/resources/parcels.d.ts +0 -108
- package/lib/esm/resources/parcels.js +0 -1
- package/lib/esm/resources/payment_gateways.d.ts +0 -21
- package/lib/esm/resources/payment_methods.d.ts +0 -59
- package/lib/esm/resources/payment_methods.js +0 -1
- package/lib/esm/resources/paypal_gateways.d.ts +0 -39
- package/lib/esm/resources/paypal_gateways.js +0 -1
- package/lib/esm/resources/paypal_payments.d.ts +0 -47
- package/lib/esm/resources/paypal_payments.js +0 -1
- package/lib/esm/resources/percentage_discount_promotions.d.ts +0 -97
- package/lib/esm/resources/percentage_discount_promotions.js +0 -1
- package/lib/esm/resources/price_lists.d.ts +0 -39
- package/lib/esm/resources/price_lists.js +0 -1
- package/lib/esm/resources/prices.d.ts +0 -57
- package/lib/esm/resources/prices.js +0 -1
- package/lib/esm/resources/promotion_rules.d.ts +0 -24
- package/lib/esm/resources/promotions.d.ts +0 -41
- package/lib/esm/resources/refunds.d.ts +0 -34
- package/lib/esm/resources/return_line_items.d.ts +0 -49
- package/lib/esm/resources/return_line_items.js +0 -1
- package/lib/esm/resources/returns.d.ts +0 -72
- package/lib/esm/resources/returns.js +0 -1
- package/lib/esm/resources/shipments.d.ts +0 -89
- package/lib/esm/resources/shipments.js +0 -1
- package/lib/esm/resources/shipping_categories.d.ts +0 -33
- package/lib/esm/resources/shipping_categories.js +0 -1
- package/lib/esm/resources/shipping_methods.d.ts +0 -74
- package/lib/esm/resources/shipping_methods.js +0 -1
- package/lib/esm/resources/shipping_zones.d.ts +0 -48
- package/lib/esm/resources/shipping_zones.js +0 -1
- package/lib/esm/resources/sku_list_items.d.ts +0 -47
- package/lib/esm/resources/sku_list_items.js +0 -1
- package/lib/esm/resources/sku_list_promotion_rules.d.ts +0 -68
- package/lib/esm/resources/sku_list_promotion_rules.js +0 -1
- package/lib/esm/resources/sku_lists.d.ts +0 -49
- package/lib/esm/resources/sku_lists.js +0 -1
- package/lib/esm/resources/sku_options.d.ts +0 -56
- package/lib/esm/resources/sku_options.js +0 -1
- package/lib/esm/resources/skus.d.ts +0 -78
- package/lib/esm/resources/skus.js +0 -1
- package/lib/esm/resources/stock_items.d.ts +0 -49
- package/lib/esm/resources/stock_items.js +0 -1
- package/lib/esm/resources/stock_line_items.d.ts +0 -29
- package/lib/esm/resources/stock_locations.d.ts +0 -57
- package/lib/esm/resources/stock_locations.js +0 -1
- package/lib/esm/resources/stock_transfers.d.ts +0 -71
- package/lib/esm/resources/stock_transfers.js +0 -1
- package/lib/esm/resources/stripe_gateways.d.ts +0 -38
- package/lib/esm/resources/stripe_gateways.js +0 -1
- package/lib/esm/resources/stripe_payments.d.ts +0 -42
- package/lib/esm/resources/stripe_payments.js +0 -1
- package/lib/esm/resources/tax_calculators.d.ts +0 -27
- package/lib/esm/resources/tax_categories.d.ts +0 -59
- package/lib/esm/resources/tax_categories.js +0 -1
- package/lib/esm/resources/tax_rules.d.ts +0 -69
- package/lib/esm/resources/tax_rules.js +0 -1
- package/lib/esm/resources/taxjar_accounts.d.ts +0 -43
- package/lib/esm/resources/taxjar_accounts.js +0 -1
- package/lib/esm/resources/transactions.d.ts +0 -31
- package/lib/esm/resources/voids.d.ts +0 -34
- package/lib/esm/resources/webhooks.d.ts +0 -42
- package/lib/esm/resources/webhooks.js +0 -1
- package/lib/esm/resources/wire_transfers.d.ts +0 -32
- package/lib/esm/resources/wire_transfers.js +0 -1
- package/lib/esm/static.d.ts +0 -6
- package/lib/esm/util.d.ts +0 -3
- package/lib/tsconfig.esm.tsbuildinfo +0 -1
- package/lib/tsconfig.tsbuildinfo +0 -1
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class StockLocations extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:StockLocations.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:StockLocations.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:StockLocations.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:StockLocations.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:StockLocations.TYPE,id:e},t)}async address(e,t,s){return this.resources.fetch({type:"addresses"},`stock_locations/${e}/address`,t,s)}async inventory_stock_locations(e,t,s){return this.resources.fetch({type:"inventory_stock_locations"},`stock_locations/${e}/inventory_stock_locations`,t,s)}async inventory_return_locations(e,t,s){return this.resources.fetch({type:"inventory_return_locations"},`stock_locations/${e}/inventory_return_locations`,t,s)}async stock_items(e,t,s){return this.resources.fetch({type:"stock_items"},`stock_locations/${e}/stock_items`,t,s)}async stock_transfers(e,t,s){return this.resources.fetch({type:"stock_transfers"},`stock_locations/${e}/stock_transfers`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`stock_locations/${e}/attachments`,t,s)}isStockLocation(e){return e.type&&e.type===StockLocations.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:StockLocations.TYPE}:{id:e.id,type:StockLocations.TYPE}}type(){return StockLocations.TYPE}}StockLocations.TYPE="stock_locations",exports.default=StockLocations;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class StockTransfers extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:StockTransfers.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:StockTransfers.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:StockTransfers.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:StockTransfers.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:StockTransfers.TYPE,id:e},t)}async sku(e,t,s){return this.resources.fetch({type:"skus"},`stock_transfers/${e}/sku`,t,s)}async origin_stock_location(e,t,s){return this.resources.fetch({type:"stock_locations"},`stock_transfers/${e}/origin_stock_location`,t,s)}async destination_stock_location(e,t,s){return this.resources.fetch({type:"stock_locations"},`stock_transfers/${e}/destination_stock_location`,t,s)}async shipment(e,t,s){return this.resources.fetch({type:"shipments"},`stock_transfers/${e}/shipment`,t,s)}async line_item(e,t,s){return this.resources.fetch({type:"line_items"},`stock_transfers/${e}/line_item`,t,s)}isStockTransfer(e){return e.type&&e.type===StockTransfers.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:StockTransfers.TYPE}:{id:e.id,type:StockTransfers.TYPE}}type(){return StockTransfers.TYPE}}StockTransfers.TYPE="stock_transfers",exports.default=StockTransfers;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class StripeGateways extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:StripeGateways.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:StripeGateways.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:StripeGateways.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:StripeGateways.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:StripeGateways.TYPE,id:e},t)}async payment_methods(e,t,s){return this.resources.fetch({type:"payment_methods"},`stripe_gateways/${e}/payment_methods`,t,s)}async stripe_payments(e,t,s){return this.resources.fetch({type:"stripe_payments"},`stripe_gateways/${e}/stripe_payments`,t,s)}isStripeGateway(e){return e.type&&e.type===StripeGateways.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:StripeGateways.TYPE}:{id:e.id,type:StripeGateways.TYPE}}type(){return StripeGateways.TYPE}}StripeGateways.TYPE="stripe_gateways",exports.default=StripeGateways;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class StripePayments extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:StripePayments.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:StripePayments.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:StripePayments.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:StripePayments.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:StripePayments.TYPE,id:e},t)}async order(e,t,r){return this.resources.fetch({type:"orders"},`stripe_payments/${e}/order`,t,r)}async payment_gateway(e,t,r){return this.resources.fetch({type:"payment_gateways"},`stripe_payments/${e}/payment_gateway`,t,r)}isStripePayment(e){return e.type&&e.type===StripePayments.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:StripePayments.TYPE}:{id:e.id,type:StripePayments.TYPE}}type(){return StripePayments.TYPE}}StripePayments.TYPE="stripe_payments",exports.default=StripePayments;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class TaxCalculators extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:TaxCalculators.TYPE},e,t)}async retrieve(e,t,r){return this.resources.retrieve({type:TaxCalculators.TYPE,id:e},t,r)}async tax_categories(e,t,r){return this.resources.fetch({type:"tax_categories"},`tax_calculators/${e}/tax_categories`,t,r)}async markets(e,t,r){return this.resources.fetch({type:"markets"},`tax_calculators/${e}/markets`,t,r)}async attachments(e,t,r){return this.resources.fetch({type:"attachments"},`tax_calculators/${e}/attachments`,t,r)}isTaxCalculator(e){return e.type&&e.type===TaxCalculators.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:TaxCalculators.TYPE}:{id:e.id,type:TaxCalculators.TYPE}}type(){return TaxCalculators.TYPE}}TaxCalculators.TYPE="tax_calculators",exports.default=TaxCalculators;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class TaxCategories extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:TaxCategories.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:TaxCategories.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:TaxCategories.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:TaxCategories.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:TaxCategories.TYPE,id:e},t)}async sku(e,t,s){return this.resources.fetch({type:"skus"},`tax_categories/${e}/sku`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`tax_categories/${e}/attachments`,t,s)}isTaxCategory(e){return e.type&&e.type===TaxCategories.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:TaxCategories.TYPE}:{id:e.id,type:TaxCategories.TYPE}}type(){return TaxCategories.TYPE}}TaxCategories.TYPE="tax_categories",exports.default=TaxCategories;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class TaxRules extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:TaxRules.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:TaxRules.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:TaxRules.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:TaxRules.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:TaxRules.TYPE,id:e},t)}async manual_tax_calculator(e,t,r){return this.resources.fetch({type:"manual_tax_calculators"},`tax_rules/${e}/manual_tax_calculator`,t,r)}isTaxRule(e){return e.type&&e.type===TaxRules.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:TaxRules.TYPE}:{id:e.id,type:TaxRules.TYPE}}type(){return TaxRules.TYPE}}TaxRules.TYPE="tax_rules",exports.default=TaxRules;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class TaxjarAccounts extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:TaxjarAccounts.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:TaxjarAccounts.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:TaxjarAccounts.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:TaxjarAccounts.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:TaxjarAccounts.TYPE,id:e},t)}async tax_categories(e,t,s){return this.resources.fetch({type:"tax_categories"},`taxjar_accounts/${e}/tax_categories`,t,s)}async markets(e,t,s){return this.resources.fetch({type:"markets"},`taxjar_accounts/${e}/markets`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`taxjar_accounts/${e}/attachments`,t,s)}isTaxjarAccount(e){return e.type&&e.type===TaxjarAccounts.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:TaxjarAccounts.TYPE}:{id:e.id,type:TaxjarAccounts.TYPE}}type(){return TaxjarAccounts.TYPE}}TaxjarAccounts.TYPE="taxjar_accounts",exports.default=TaxjarAccounts;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Transactions extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:Transactions.TYPE},e,r)}async retrieve(e,r,t){return this.resources.retrieve({type:Transactions.TYPE,id:e},r,t)}async order(e,r,t){return this.resources.fetch({type:"orders"},`transactions/${e}/order`,r,t)}isTransaction(e){return e.type&&e.type===Transactions.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Transactions.TYPE}:{id:e.id,type:Transactions.TYPE}}type(){return Transactions.TYPE}}Transactions.TYPE="transactions",exports.default=Transactions;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Voids extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:Voids.TYPE},e,r)}async retrieve(e,r,t){return this.resources.retrieve({type:Voids.TYPE,id:e},r,t)}async order(e,r,t){return this.resources.fetch({type:"orders"},`voids/${e}/order`,r,t)}async reference_authorization(e,r,t){return this.resources.fetch({type:"authorizations"},`voids/${e}/reference_authorization`,r,t)}isVoid(e){return e.type&&e.type===Voids.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Voids.TYPE}:{id:e.id,type:Voids.TYPE}}type(){return Voids.TYPE}}Voids.TYPE="voids",exports.default=Voids;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Webhooks extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Webhooks.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:Webhooks.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:Webhooks.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:Webhooks.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:Webhooks.TYPE,id:e},t)}async last_event_callbacks(e,t,r){return this.resources.fetch({type:"event_callbacks"},`webhooks/${e}/last_event_callbacks`,t,r)}isWebhook(e){return e.type&&e.type===Webhooks.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Webhooks.TYPE}:{id:e.id,type:Webhooks.TYPE}}type(){return Webhooks.TYPE}}Webhooks.TYPE="webhooks",exports.default=Webhooks;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class WireTransfers extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:WireTransfers.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:WireTransfers.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:WireTransfers.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:WireTransfers.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:WireTransfers.TYPE,id:e},t)}async order(e,t,r){return this.resources.fetch({type:"orders"},`wire_transfers/${e}/order`,t,r)}isWireTransfer(e){return e.type&&e.type===WireTransfers.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:WireTransfers.TYPE}:{id:e.id,type:WireTransfers.TYPE}}type(){return WireTransfers.TYPE}}WireTransfers.TYPE="wire_transfers",exports.default=WireTransfers;
|
package/lib/cjs/static.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,r,t,i){i===void 0&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return r[t]}})}:function(e,r,t,i){i===void 0&&(i=t),e[i]=r[t]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),__importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)t!=="default"&&Object.prototype.hasOwnProperty.call(e,t)&&__createBinding(r,e,t);return __setModuleDefault(r,e),r};Object.defineProperty(exports,"__esModule",{value:!0}),exports.CommerceLayerStatic=void 0;const api=__importStar(require("./api")),error_1=require("./error");exports.CommerceLayerStatic={resources:()=>api.resourceList,isSdkError:e=>error_1.SdkError.isSdkError(e),isApiError:e=>error_1.ApiError.isApiError(e)};
|
package/lib/cjs/util.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.sleep=void 0;const sleep=async e=>new Promise(s=>setTimeout(s,e));exports.sleep=sleep;
|
package/lib/esm/api.d.ts
DELETED
@@ -1,103 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* ©2022 Commerce Layer Inc.
|
3
|
-
* OpenAPI schema, version 2.8.1
|
4
|
-
**/
|
5
|
-
export { default as Addresses } from './resources/addresses';
|
6
|
-
export { default as Adjustments } from './resources/adjustments';
|
7
|
-
export { default as AdyenGateways } from './resources/adyen_gateways';
|
8
|
-
export { default as AdyenPayments } from './resources/adyen_payments';
|
9
|
-
export { default as Applications } from './resources/application';
|
10
|
-
export { default as Attachments } from './resources/attachments';
|
11
|
-
export { default as Authorizations } from './resources/authorizations';
|
12
|
-
export { default as AvalaraAccounts } from './resources/avalara_accounts';
|
13
|
-
export { default as BillingInfoValidationRules } from './resources/billing_info_validation_rules';
|
14
|
-
export { default as BingGeocoders } from './resources/bing_geocoders';
|
15
|
-
export { default as BraintreeGateways } from './resources/braintree_gateways';
|
16
|
-
export { default as BraintreePayments } from './resources/braintree_payments';
|
17
|
-
export { default as Bundles } from './resources/bundles';
|
18
|
-
export { default as Captures } from './resources/captures';
|
19
|
-
export { default as CarrierAccounts } from './resources/carrier_accounts';
|
20
|
-
export { default as CheckoutComGateways } from './resources/checkout_com_gateways';
|
21
|
-
export { default as CheckoutComPayments } from './resources/checkout_com_payments';
|
22
|
-
export { default as CouponCodesPromotionRules } from './resources/coupon_codes_promotion_rules';
|
23
|
-
export { default as CouponRecipients } from './resources/coupon_recipients';
|
24
|
-
export { default as Coupons } from './resources/coupons';
|
25
|
-
export { default as CustomerAddresses } from './resources/customer_addresses';
|
26
|
-
export { default as CustomerGroups } from './resources/customer_groups';
|
27
|
-
export { default as CustomerPasswordResets } from './resources/customer_password_resets';
|
28
|
-
export { default as CustomerPaymentSources } from './resources/customer_payment_sources';
|
29
|
-
export { default as CustomerSubscriptions } from './resources/customer_subscriptions';
|
30
|
-
export { default as Customers } from './resources/customers';
|
31
|
-
export { default as DeliveryLeadTimes } from './resources/delivery_lead_times';
|
32
|
-
export { default as EventCallbacks } from './resources/event_callbacks';
|
33
|
-
export { default as ExternalGateways } from './resources/external_gateways';
|
34
|
-
export { default as ExternalPayments } from './resources/external_payments';
|
35
|
-
export { default as ExternalPromotions } from './resources/external_promotions';
|
36
|
-
export { default as ExternalTaxCalculators } from './resources/external_tax_calculators';
|
37
|
-
export { default as FixedAmountPromotions } from './resources/fixed_amount_promotions';
|
38
|
-
export { default as FixedPricePromotions } from './resources/fixed_price_promotions';
|
39
|
-
export { default as FreeGiftPromotions } from './resources/free_gift_promotions';
|
40
|
-
export { default as FreeShippingPromotions } from './resources/free_shipping_promotions';
|
41
|
-
export { default as Geocoders } from './resources/geocoders';
|
42
|
-
export { default as GiftCardRecipients } from './resources/gift_card_recipients';
|
43
|
-
export { default as GiftCards } from './resources/gift_cards';
|
44
|
-
export { default as GoogleGeocoders } from './resources/google_geocoders';
|
45
|
-
export { default as Imports } from './resources/imports';
|
46
|
-
export { default as InStockSubscriptions } from './resources/in_stock_subscriptions';
|
47
|
-
export { default as InventoryModels } from './resources/inventory_models';
|
48
|
-
export { default as InventoryReturnLocations } from './resources/inventory_return_locations';
|
49
|
-
export { default as InventoryStockLocations } from './resources/inventory_stock_locations';
|
50
|
-
export { default as KlarnaGateways } from './resources/klarna_gateways';
|
51
|
-
export { default as KlarnaPayments } from './resources/klarna_payments';
|
52
|
-
export { default as LineItemOptions } from './resources/line_item_options';
|
53
|
-
export { default as LineItems } from './resources/line_items';
|
54
|
-
export { default as ManualGateways } from './resources/manual_gateways';
|
55
|
-
export { default as ManualTaxCalculators } from './resources/manual_tax_calculators';
|
56
|
-
export { default as Markets } from './resources/markets';
|
57
|
-
export { default as Merchants } from './resources/merchants';
|
58
|
-
export { default as OrderAmountPromotionRules } from './resources/order_amount_promotion_rules';
|
59
|
-
export { default as OrderCopies } from './resources/order_copies';
|
60
|
-
export { default as OrderSubscriptions } from './resources/order_subscriptions';
|
61
|
-
export { default as OrderValidationRules } from './resources/order_validation_rules';
|
62
|
-
export { default as Orders } from './resources/orders';
|
63
|
-
export { default as Organizations } from './resources/organization';
|
64
|
-
export { default as Packages } from './resources/packages';
|
65
|
-
export { default as ParcelLineItems } from './resources/parcel_line_items';
|
66
|
-
export { default as Parcels } from './resources/parcels';
|
67
|
-
export { default as PaymentGateways } from './resources/payment_gateways';
|
68
|
-
export { default as PaymentMethods } from './resources/payment_methods';
|
69
|
-
export { default as PaypalGateways } from './resources/paypal_gateways';
|
70
|
-
export { default as PaypalPayments } from './resources/paypal_payments';
|
71
|
-
export { default as PercentageDiscountPromotions } from './resources/percentage_discount_promotions';
|
72
|
-
export { default as PriceLists } from './resources/price_lists';
|
73
|
-
export { default as Prices } from './resources/prices';
|
74
|
-
export { default as PromotionRules } from './resources/promotion_rules';
|
75
|
-
export { default as Promotions } from './resources/promotions';
|
76
|
-
export { default as Refunds } from './resources/refunds';
|
77
|
-
export { default as ReturnLineItems } from './resources/return_line_items';
|
78
|
-
export { default as Returns } from './resources/returns';
|
79
|
-
export { default as Shipments } from './resources/shipments';
|
80
|
-
export { default as ShippingCategories } from './resources/shipping_categories';
|
81
|
-
export { default as ShippingMethods } from './resources/shipping_methods';
|
82
|
-
export { default as ShippingZones } from './resources/shipping_zones';
|
83
|
-
export { default as SkuListItems } from './resources/sku_list_items';
|
84
|
-
export { default as SkuListPromotionRules } from './resources/sku_list_promotion_rules';
|
85
|
-
export { default as SkuLists } from './resources/sku_lists';
|
86
|
-
export { default as SkuOptions } from './resources/sku_options';
|
87
|
-
export { default as Skus } from './resources/skus';
|
88
|
-
export { default as StockItems } from './resources/stock_items';
|
89
|
-
export { default as StockLineItems } from './resources/stock_line_items';
|
90
|
-
export { default as StockLocations } from './resources/stock_locations';
|
91
|
-
export { default as StockTransfers } from './resources/stock_transfers';
|
92
|
-
export { default as StripeGateways } from './resources/stripe_gateways';
|
93
|
-
export { default as StripePayments } from './resources/stripe_payments';
|
94
|
-
export { default as TaxCalculators } from './resources/tax_calculators';
|
95
|
-
export { default as TaxCategories } from './resources/tax_categories';
|
96
|
-
export { default as TaxRules } from './resources/tax_rules';
|
97
|
-
export { default as TaxjarAccounts } from './resources/taxjar_accounts';
|
98
|
-
export { default as Transactions } from './resources/transactions';
|
99
|
-
export { default as Voids } from './resources/voids';
|
100
|
-
export { default as Webhooks } from './resources/webhooks';
|
101
|
-
export { default as WireTransfers } from './resources/wire_transfers';
|
102
|
-
export declare type ResourceTypeLock = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'application' | 'attachments' | 'authorizations' | 'avalara_accounts' | 'billing_info_validation_rules' | 'bing_geocoders' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'captures' | 'carrier_accounts' | 'checkout_com_gateways' | 'checkout_com_payments' | 'coupon_codes_promotion_rules' | 'coupon_recipients' | 'coupons' | 'customer_addresses' | 'customer_groups' | 'customer_password_resets' | 'customer_payment_sources' | 'customer_subscriptions' | 'customers' | 'delivery_lead_times' | 'event_callbacks' | 'external_gateways' | 'external_payments' | 'external_promotions' | 'external_tax_calculators' | 'fixed_amount_promotions' | 'fixed_price_promotions' | 'free_gift_promotions' | 'free_shipping_promotions' | 'geocoders' | 'gift_card_recipients' | 'gift_cards' | 'google_geocoders' | 'imports' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_return_locations' | 'inventory_stock_locations' | 'klarna_gateways' | 'klarna_payments' | 'line_item_options' | 'line_items' | 'manual_gateways' | 'manual_tax_calculators' | 'markets' | 'merchants' | 'order_amount_promotion_rules' | 'order_copies' | 'order_subscriptions' | 'order_validation_rules' | 'orders' | 'organization' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_gateways' | 'payment_methods' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_lists' | 'prices' | 'promotion_rules' | 'promotions' | 'refunds' | 'return_line_items' | 'returns' | 'shipments' | 'shipping_categories' | 'shipping_methods' | 'shipping_zones' | 'sku_list_items' | 'sku_list_promotion_rules' | 'sku_lists' | 'sku_options' | 'skus' | 'stock_items' | 'stock_line_items' | 'stock_locations' | 'stock_transfers' | 'stripe_gateways' | 'stripe_payments' | 'tax_calculators' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'transactions' | 'voids' | 'webhooks' | 'wire_transfers';
|
103
|
-
export declare const resourceList: readonly ["addresses", "adjustments", "adyen_gateways", "adyen_payments", "application", "attachments", "authorizations", "avalara_accounts", "billing_info_validation_rules", "bing_geocoders", "braintree_gateways", "braintree_payments", "bundles", "captures", "carrier_accounts", "checkout_com_gateways", "checkout_com_payments", "coupon_codes_promotion_rules", "coupon_recipients", "coupons", "customer_addresses", "customer_groups", "customer_password_resets", "customer_payment_sources", "customer_subscriptions", "customers", "delivery_lead_times", "event_callbacks", "external_gateways", "external_payments", "external_promotions", "external_tax_calculators", "fixed_amount_promotions", "fixed_price_promotions", "free_gift_promotions", "free_shipping_promotions", "geocoders", "gift_card_recipients", "gift_cards", "google_geocoders", "imports", "in_stock_subscriptions", "inventory_models", "inventory_return_locations", "inventory_stock_locations", "klarna_gateways", "klarna_payments", "line_item_options", "line_items", "manual_gateways", "manual_tax_calculators", "markets", "merchants", "order_amount_promotion_rules", "order_copies", "order_subscriptions", "order_validation_rules", "orders", "organization", "packages", "parcel_line_items", "parcels", "payment_gateways", "payment_methods", "paypal_gateways", "paypal_payments", "percentage_discount_promotions", "price_lists", "prices", "promotion_rules", "promotions", "refunds", "return_line_items", "returns", "shipments", "shipping_categories", "shipping_methods", "shipping_zones", "sku_list_items", "sku_list_promotion_rules", "sku_lists", "sku_options", "skus", "stock_items", "stock_line_items", "stock_locations", "stock_transfers", "stripe_gateways", "stripe_payments", "tax_calculators", "tax_categories", "tax_rules", "taxjar_accounts", "transactions", "voids", "webhooks", "wire_transfers"];
|
package/lib/esm/client.d.ts
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
/// <reference types="node" />
|
2
|
-
import { AxiosProxyConfig, Method } from 'axios';
|
3
|
-
import type { InterceptorManager } from './interceptor';
|
4
|
-
import type { Agent as HttpAgent } from 'http';
|
5
|
-
import type { Agent as HttpsAgent } from 'https';
|
6
|
-
declare type ProxyConfig = AxiosProxyConfig | false;
|
7
|
-
declare type RequestConfig = {
|
8
|
-
timeout?: number;
|
9
|
-
params?: {
|
10
|
-
[key: string]: string | number | boolean;
|
11
|
-
};
|
12
|
-
httpAgent?: HttpAgent;
|
13
|
-
httpsAgent?: HttpsAgent;
|
14
|
-
proxy?: ProxyConfig;
|
15
|
-
};
|
16
|
-
declare type ApiClientInitConfig = {
|
17
|
-
organization: string;
|
18
|
-
domain?: string;
|
19
|
-
accessToken: string;
|
20
|
-
} & RequestConfig;
|
21
|
-
declare type ApiClientConfig = Partial<ApiClientInitConfig>;
|
22
|
-
declare class ApiClient {
|
23
|
-
#private;
|
24
|
-
static create(options: ApiClientInitConfig): ApiClient;
|
25
|
-
baseUrl: string;
|
26
|
-
interceptors: InterceptorManager;
|
27
|
-
private constructor();
|
28
|
-
config(config: ApiClientConfig): void;
|
29
|
-
request(method: Method, path: string, body?: any, options?: ApiClientConfig): Promise<any>;
|
30
|
-
}
|
31
|
-
export default ApiClient;
|
32
|
-
export { ApiClientInitConfig, ApiClientConfig, RequestConfig };
|
package/lib/esm/client.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
var d=this&&this.__classPrivateFieldSet||function(r,e,t,s,a){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!a:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?a.call(r,t):a?a.value=t:e.set(r,t),t},n=this&&this.__classPrivateFieldGet||function(r,e,t,s){if(t==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!s:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?s:t==="a"?s.call(r):s?s.value:e.get(r)},o,i;import u from"axios";import{SdkError as T,ApiError as b,ErrorType as c}from"./error";import l from"./config";import z from"./debug";const p=z(),f=(r,e)=>`https://${r.toLowerCase()}.${e||l.default.domain}/api`,C=r=>{let e=new T({message:r.message,type:c.GENERIC});if(u.isAxiosError(r))if(r.response){const t=new b(e);t.type=c.RESPONSE,t.status=r.response.status,t.code=String(t.status),t.errors=r.response.data.errors,e=t}else r.request?(e.type=c.REQUEST,e.request=r.request):e.type=c.CLIENT;else u.isCancel(r)?e.type=c.CANCEL:e.source=r;throw e};class m{constructor(e){o.set(this,void 0),i.set(this,void 0),p("new client instance %O",e),this.baseUrl=f(e.organization,e.domain),d(this,o,e.accessToken,"f");const t={timeout:e.timeout||l.client.timeout,proxy:e.proxy,httpAgent:e.httpAgent,httpsAgent:e.httpsAgent},s=Object.assign({baseURL:this.baseUrl,timeout:l.client.timeout,headers:{Accept:"application/vnd.api+json","Content-Type":"application/vnd.api+json",Authorization:"Bearer "+n(this,o,"f")}},t);p("axios options: %O",s),d(this,i,u.create(s),"f"),this.interceptors=n(this,i,"f").interceptors}static create(e){if(!(e==null?void 0:e.organization))throw new Error("Undefined 'organization' parameter");if(!(e==null?void 0:e.accessToken))throw new Error("Undefined 'accessToken' parameter");return new m(e)}config(e){p("config %o",e);const t=n(this,i,"f").defaults;e.timeout&&(t.timeout=e.timeout),e.proxy&&(t.proxy=e.proxy),e.httpAgent&&(t.httpAgent=e.httpAgent),e.httpsAgent&&(t.httpsAgent=e.httpsAgent),e.organization&&(this.baseUrl=f(e.organization,e.domain)),e.accessToken&&(d(this,o,e.accessToken,"f"),t.headers.common.Authorization="Bearer "+n(this,o,"f"))}async request(e,t,s,a){p("request %s %s, %O, %O",e,t,s||{},a||{});const v=s?{data:s}:void 0,y=t,E=(a==null?void 0:a.organization)?f(a.organization,a.domain):void 0,w=(a==null?void 0:a.accessToken)||n(this,o,"f"),A=w?{Authorization:"Bearer "+w}:void 0,g=Object.assign({method:e,baseURL:E,url:y,data:v,headers:A},a);return p("request params: %O",g),n(this,i,"f").request(g).then(h=>h.data).catch(h=>C(h))}}o=new WeakMap,i=new WeakMap;export default m;
|
@@ -1,122 +0,0 @@
|
|
1
|
-
import * as api from './api';
|
2
|
-
import { ApiError } from './error';
|
3
|
-
import type { ErrorInterceptor, InterceptorType, RawResponseReader, RequestInterceptor, ResponseInterceptor } from './interceptor';
|
4
|
-
import { ResourcesInitConfig } from './resource';
|
5
|
-
declare type SdkConfig = {};
|
6
|
-
declare type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
|
7
|
-
declare type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
|
8
|
-
declare class CommerceLayerClient {
|
9
|
-
#private;
|
10
|
-
static get openApiSchemaVersion(): string;
|
11
|
-
addresses: api.Addresses;
|
12
|
-
adjustments: api.Adjustments;
|
13
|
-
adyen_gateways: api.AdyenGateways;
|
14
|
-
adyen_payments: api.AdyenPayments;
|
15
|
-
application: api.Applications;
|
16
|
-
attachments: api.Attachments;
|
17
|
-
authorizations: api.Authorizations;
|
18
|
-
avalara_accounts: api.AvalaraAccounts;
|
19
|
-
billing_info_validation_rules: api.BillingInfoValidationRules;
|
20
|
-
bing_geocoders: api.BingGeocoders;
|
21
|
-
braintree_gateways: api.BraintreeGateways;
|
22
|
-
braintree_payments: api.BraintreePayments;
|
23
|
-
bundles: api.Bundles;
|
24
|
-
captures: api.Captures;
|
25
|
-
carrier_accounts: api.CarrierAccounts;
|
26
|
-
checkout_com_gateways: api.CheckoutComGateways;
|
27
|
-
checkout_com_payments: api.CheckoutComPayments;
|
28
|
-
coupon_codes_promotion_rules: api.CouponCodesPromotionRules;
|
29
|
-
coupon_recipients: api.CouponRecipients;
|
30
|
-
coupons: api.Coupons;
|
31
|
-
customer_addresses: api.CustomerAddresses;
|
32
|
-
customer_groups: api.CustomerGroups;
|
33
|
-
customer_password_resets: api.CustomerPasswordResets;
|
34
|
-
customer_payment_sources: api.CustomerPaymentSources;
|
35
|
-
customer_subscriptions: api.CustomerSubscriptions;
|
36
|
-
customers: api.Customers;
|
37
|
-
delivery_lead_times: api.DeliveryLeadTimes;
|
38
|
-
event_callbacks: api.EventCallbacks;
|
39
|
-
external_gateways: api.ExternalGateways;
|
40
|
-
external_payments: api.ExternalPayments;
|
41
|
-
external_promotions: api.ExternalPromotions;
|
42
|
-
external_tax_calculators: api.ExternalTaxCalculators;
|
43
|
-
fixed_amount_promotions: api.FixedAmountPromotions;
|
44
|
-
fixed_price_promotions: api.FixedPricePromotions;
|
45
|
-
free_gift_promotions: api.FreeGiftPromotions;
|
46
|
-
free_shipping_promotions: api.FreeShippingPromotions;
|
47
|
-
geocoders: api.Geocoders;
|
48
|
-
gift_card_recipients: api.GiftCardRecipients;
|
49
|
-
gift_cards: api.GiftCards;
|
50
|
-
google_geocoders: api.GoogleGeocoders;
|
51
|
-
imports: api.Imports;
|
52
|
-
in_stock_subscriptions: api.InStockSubscriptions;
|
53
|
-
inventory_models: api.InventoryModels;
|
54
|
-
inventory_return_locations: api.InventoryReturnLocations;
|
55
|
-
inventory_stock_locations: api.InventoryStockLocations;
|
56
|
-
klarna_gateways: api.KlarnaGateways;
|
57
|
-
klarna_payments: api.KlarnaPayments;
|
58
|
-
line_item_options: api.LineItemOptions;
|
59
|
-
line_items: api.LineItems;
|
60
|
-
manual_gateways: api.ManualGateways;
|
61
|
-
manual_tax_calculators: api.ManualTaxCalculators;
|
62
|
-
markets: api.Markets;
|
63
|
-
merchants: api.Merchants;
|
64
|
-
order_amount_promotion_rules: api.OrderAmountPromotionRules;
|
65
|
-
order_copies: api.OrderCopies;
|
66
|
-
order_subscriptions: api.OrderSubscriptions;
|
67
|
-
order_validation_rules: api.OrderValidationRules;
|
68
|
-
orders: api.Orders;
|
69
|
-
organization: api.Organizations;
|
70
|
-
packages: api.Packages;
|
71
|
-
parcel_line_items: api.ParcelLineItems;
|
72
|
-
parcels: api.Parcels;
|
73
|
-
payment_gateways: api.PaymentGateways;
|
74
|
-
payment_methods: api.PaymentMethods;
|
75
|
-
paypal_gateways: api.PaypalGateways;
|
76
|
-
paypal_payments: api.PaypalPayments;
|
77
|
-
percentage_discount_promotions: api.PercentageDiscountPromotions;
|
78
|
-
price_lists: api.PriceLists;
|
79
|
-
prices: api.Prices;
|
80
|
-
promotion_rules: api.PromotionRules;
|
81
|
-
promotions: api.Promotions;
|
82
|
-
refunds: api.Refunds;
|
83
|
-
return_line_items: api.ReturnLineItems;
|
84
|
-
returns: api.Returns;
|
85
|
-
shipments: api.Shipments;
|
86
|
-
shipping_categories: api.ShippingCategories;
|
87
|
-
shipping_methods: api.ShippingMethods;
|
88
|
-
shipping_zones: api.ShippingZones;
|
89
|
-
sku_list_items: api.SkuListItems;
|
90
|
-
sku_list_promotion_rules: api.SkuListPromotionRules;
|
91
|
-
sku_lists: api.SkuLists;
|
92
|
-
sku_options: api.SkuOptions;
|
93
|
-
skus: api.Skus;
|
94
|
-
stock_items: api.StockItems;
|
95
|
-
stock_line_items: api.StockLineItems;
|
96
|
-
stock_locations: api.StockLocations;
|
97
|
-
stock_transfers: api.StockTransfers;
|
98
|
-
stripe_gateways: api.StripeGateways;
|
99
|
-
stripe_payments: api.StripePayments;
|
100
|
-
tax_calculators: api.TaxCalculators;
|
101
|
-
tax_categories: api.TaxCategories;
|
102
|
-
tax_rules: api.TaxRules;
|
103
|
-
taxjar_accounts: api.TaxjarAccounts;
|
104
|
-
transactions: api.Transactions;
|
105
|
-
voids: api.Voids;
|
106
|
-
webhooks: api.Webhooks;
|
107
|
-
wire_transfers: api.WireTransfers;
|
108
|
-
constructor(config: CommerceLayerInitConfig);
|
109
|
-
get currentOrganization(): string;
|
110
|
-
private localConfig;
|
111
|
-
config(config: CommerceLayerConfig): void;
|
112
|
-
resources(): readonly string[];
|
113
|
-
isApiError(error: any): error is ApiError;
|
114
|
-
addRequestInterceptor(onFulfilled?: RequestInterceptor, onRejected?: ErrorInterceptor): number;
|
115
|
-
addResponseInterceptor(onFulfilled?: ResponseInterceptor, onRejected?: ErrorInterceptor): number;
|
116
|
-
removeInterceptor(type: InterceptorType, id: number): void;
|
117
|
-
addRawResponseReader(): RawResponseReader;
|
118
|
-
removeRawResponseReader(reader: number | RawResponseReader): void;
|
119
|
-
}
|
120
|
-
declare const CommerceLayer: (config: CommerceLayerInitConfig) => CommerceLayerClient;
|
121
|
-
export default CommerceLayer;
|
122
|
-
export type { CommerceLayerClient, CommerceLayerConfig, CommerceLayerInitConfig };
|
package/lib/esm/common.d.ts
DELETED
package/lib/esm/common.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
import{resourceList as e}from"./api";const p=s=>s&&s.type&&s.id&&e.includes(s.type),t=s=>s&&typeof s.type!="undefined"&&s.type&&e.includes(s.type);export{p as isResourceId,t as isResourceType};
|
package/lib/esm/config.d.ts
DELETED
package/lib/esm/debug.d.ts
DELETED
package/lib/esm/error.d.ts
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
declare enum ErrorType {
|
2
|
-
CLIENT = "client",
|
3
|
-
REQUEST = "request",
|
4
|
-
RESPONSE = "response",
|
5
|
-
GENERIC = "generic",
|
6
|
-
CANCEL = "cancel"
|
7
|
-
}
|
8
|
-
declare class SdkError extends Error {
|
9
|
-
static isSdkError(error: any): error is ApiError;
|
10
|
-
type: string;
|
11
|
-
code?: string;
|
12
|
-
source?: Error;
|
13
|
-
request?: any;
|
14
|
-
constructor(error: {
|
15
|
-
message: string;
|
16
|
-
type?: ErrorType;
|
17
|
-
});
|
18
|
-
}
|
19
|
-
declare class ApiError extends SdkError {
|
20
|
-
static isApiError(error: any): error is ApiError;
|
21
|
-
errors: any[];
|
22
|
-
status?: number;
|
23
|
-
constructor(error: SdkError);
|
24
|
-
first(): any;
|
25
|
-
}
|
26
|
-
export { SdkError, ApiError, ErrorType };
|
package/lib/esm/error.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
var t;(function(s){s.CLIENT="client",s.REQUEST="request",s.RESPONSE="response",s.GENERIC="generic",s.CANCEL="cancel"})(t||(t={}));class e extends Error{constructor(r){super(r.message);this.name=this.constructor.name,this.type=r.type||t.GENERIC}static isSdkError(r){return r&&["SdkError","ApiError"].includes(r.name)&&Object.values(t).includes(r.type)}}class i extends e{constructor(r){super(Object.assign(Object.assign({},r),{type:t.RESPONSE}));this.errors=[],this.name=this.constructor.name}static isApiError(r){return e.isSdkError(r)&&r.name==="ApiError"&&r.type===t.RESPONSE}first(){var r;return((r=this.errors)===null||r===void 0?void 0:r.length)>0?this.errors[0]:void 0}}export{e as SdkError,i as ApiError,t as ErrorType};
|
package/lib/esm/index.d.ts
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
export { default } from './commercelayer';
|
2
|
-
export type { CommerceLayerClient } from './commercelayer';
|
3
|
-
export { CommerceLayerStatic } from './static';
|
4
|
-
export type { QueryParamsRetrieve, QueryParamsList, QueryParams } from './query';
|
5
|
-
export * from './model';
|
6
|
-
export type { RequestObj, ResponseObj, ErrorObj } from './interceptor';
|
7
|
-
export type { SdkError, ApiError, ErrorType } from './error';
|
package/lib/esm/interceptor.d.ts
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
import { AxiosError, AxiosInterceptorManager, AxiosRequestConfig, AxiosResponse } from "axios";
|
2
|
-
declare type InterceptorManager = {
|
3
|
-
request: AxiosInterceptorManager<AxiosRequestConfig>;
|
4
|
-
response: AxiosInterceptorManager<any>;
|
5
|
-
};
|
6
|
-
declare type RequestObj = AxiosRequestConfig;
|
7
|
-
declare type RequestInterceptor = (request: RequestObj) => RequestObj | Promise<RequestObj>;
|
8
|
-
declare type ResponseObj = AxiosResponse;
|
9
|
-
declare type ResponseInterceptor = (response: ResponseObj) => ResponseObj;
|
10
|
-
declare type ErrorObj = AxiosError;
|
11
|
-
declare type ErrorInterceptor = (error: ErrorObj) => ErrorObj;
|
12
|
-
declare type InterceptorType = 'request' | 'response';
|
13
|
-
export type { InterceptorManager, RequestInterceptor, ResponseInterceptor, ErrorInterceptor, InterceptorType };
|
14
|
-
export type { RequestObj, ResponseObj, ErrorObj };
|
15
|
-
declare type RawResponseReader = {
|
16
|
-
id: number | undefined;
|
17
|
-
rawResponse: ResponseObj | undefined;
|
18
|
-
};
|
19
|
-
export type { RawResponseReader };
|
package/lib/esm/jsonapi.d.ts
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
import type { DocWithData, ResourceObject as JSONAPIObject } from 'jsonapi-typescript';
|
2
|
-
import type { ResourceCreate, ResourceUpdate, ResourceId, ResourceType, Resource } from './resource';
|
3
|
-
declare const denormalize: <R extends Resource>(response: DocWithData) => R | R[];
|
4
|
-
declare const normalize: (resource: (ResourceCreate & ResourceType) | (ResourceUpdate & ResourceId)) => JSONAPIObject;
|
5
|
-
export { denormalize, normalize };
|
package/lib/esm/jsonapi.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
import{isResourceId as l,isResourceType as c}from"./common";import u from"./debug";const a=u(),p=r=>{let i;r.links&&delete r.links;const t=r.data,n=r.included;return Array.isArray(t)?i=t.map(s=>e(s,n)):i=e(t,n),i},d=(r,i=[])=>i.find(t=>r.id===t.id&&r.type===t.type)||r,e=(r,i)=>{a("denormalize resource: %O, %o",r,i||{});const t=Object.assign({id:r.id,type:r.type},r.attributes);return r.relationships&&Object.keys(r.relationships).forEach(n=>{const s=r.relationships[n].data;s?Array.isArray(s)?t[n]=s.map(o=>e(d(o,i),i)):t[n]=e(d(s,i),i):s===null&&(t[n]=null)}),a("denormalized resource: %O",t),t},y=r=>{a("normalize resource: %O",r);const i={},t={};for(const s in r){if(["type","id"].includes(s))continue;const o=r[s];o&&c(o)&&o.id===null?t[s]={data:null}:o&&(l(o)||Array.isArray(o)&&l(o[0]))?t[s]={data:o}:i[s]=o}const n={type:r.type,attributes:i,relationships:t};return l(r)&&(n.id=r.id),a("normalized resource: %O",n),n};export{p as denormalize,y as normalize};
|
package/lib/esm/model.d.ts
DELETED
@@ -1,101 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* ©2022 Commerce Layer Inc.
|
3
|
-
* OpenAPI schema, version 2.8.1
|
4
|
-
**/
|
5
|
-
export type { Address, AddressCreate, AddressUpdate } from './resources/addresses';
|
6
|
-
export type { Adjustment, AdjustmentCreate, AdjustmentUpdate } from './resources/adjustments';
|
7
|
-
export type { AdyenGateway, AdyenGatewayCreate, AdyenGatewayUpdate } from './resources/adyen_gateways';
|
8
|
-
export type { AdyenPayment, AdyenPaymentCreate, AdyenPaymentUpdate } from './resources/adyen_payments';
|
9
|
-
export type { Application } from './resources/application';
|
10
|
-
export type { Attachment, AttachmentCreate, AttachmentUpdate } from './resources/attachments';
|
11
|
-
export type { Authorization, AuthorizationUpdate } from './resources/authorizations';
|
12
|
-
export type { AvalaraAccount, AvalaraAccountCreate, AvalaraAccountUpdate } from './resources/avalara_accounts';
|
13
|
-
export type { BillingInfoValidationRule, BillingInfoValidationRuleCreate, BillingInfoValidationRuleUpdate } from './resources/billing_info_validation_rules';
|
14
|
-
export type { BingGeocoder, BingGeocoderCreate, BingGeocoderUpdate } from './resources/bing_geocoders';
|
15
|
-
export type { BraintreeGateway, BraintreeGatewayCreate, BraintreeGatewayUpdate } from './resources/braintree_gateways';
|
16
|
-
export type { BraintreePayment, BraintreePaymentCreate, BraintreePaymentUpdate } from './resources/braintree_payments';
|
17
|
-
export type { Bundle, BundleCreate, BundleUpdate } from './resources/bundles';
|
18
|
-
export type { Capture, CaptureUpdate } from './resources/captures';
|
19
|
-
export type { CarrierAccount } from './resources/carrier_accounts';
|
20
|
-
export type { CheckoutComGateway, CheckoutComGatewayCreate, CheckoutComGatewayUpdate } from './resources/checkout_com_gateways';
|
21
|
-
export type { CheckoutComPayment, CheckoutComPaymentCreate, CheckoutComPaymentUpdate } from './resources/checkout_com_payments';
|
22
|
-
export type { CouponCodesPromotionRule, CouponCodesPromotionRuleCreate, CouponCodesPromotionRuleUpdate } from './resources/coupon_codes_promotion_rules';
|
23
|
-
export type { CouponRecipient, CouponRecipientCreate, CouponRecipientUpdate } from './resources/coupon_recipients';
|
24
|
-
export type { Coupon, CouponCreate, CouponUpdate } from './resources/coupons';
|
25
|
-
export type { CustomerAddress, CustomerAddressCreate, CustomerAddressUpdate } from './resources/customer_addresses';
|
26
|
-
export type { CustomerGroup, CustomerGroupCreate, CustomerGroupUpdate } from './resources/customer_groups';
|
27
|
-
export type { CustomerPasswordReset, CustomerPasswordResetCreate, CustomerPasswordResetUpdate } from './resources/customer_password_resets';
|
28
|
-
export type { CustomerPaymentSource, CustomerPaymentSourceCreate, CustomerPaymentSourceUpdate } from './resources/customer_payment_sources';
|
29
|
-
export type { CustomerSubscription, CustomerSubscriptionCreate, CustomerSubscriptionUpdate } from './resources/customer_subscriptions';
|
30
|
-
export type { Customer, CustomerCreate, CustomerUpdate } from './resources/customers';
|
31
|
-
export type { DeliveryLeadTime, DeliveryLeadTimeCreate, DeliveryLeadTimeUpdate } from './resources/delivery_lead_times';
|
32
|
-
export type { EventCallback } from './resources/event_callbacks';
|
33
|
-
export type { ExternalGateway, ExternalGatewayCreate, ExternalGatewayUpdate } from './resources/external_gateways';
|
34
|
-
export type { ExternalPayment, ExternalPaymentCreate, ExternalPaymentUpdate } from './resources/external_payments';
|
35
|
-
export type { ExternalPromotion, ExternalPromotionCreate, ExternalPromotionUpdate } from './resources/external_promotions';
|
36
|
-
export type { ExternalTaxCalculator, ExternalTaxCalculatorCreate, ExternalTaxCalculatorUpdate } from './resources/external_tax_calculators';
|
37
|
-
export type { FixedAmountPromotion, FixedAmountPromotionCreate, FixedAmountPromotionUpdate } from './resources/fixed_amount_promotions';
|
38
|
-
export type { FixedPricePromotion, FixedPricePromotionCreate, FixedPricePromotionUpdate } from './resources/fixed_price_promotions';
|
39
|
-
export type { FreeGiftPromotion, FreeGiftPromotionCreate, FreeGiftPromotionUpdate } from './resources/free_gift_promotions';
|
40
|
-
export type { FreeShippingPromotion, FreeShippingPromotionCreate, FreeShippingPromotionUpdate } from './resources/free_shipping_promotions';
|
41
|
-
export type { Geocoder } from './resources/geocoders';
|
42
|
-
export type { GiftCardRecipient, GiftCardRecipientCreate, GiftCardRecipientUpdate } from './resources/gift_card_recipients';
|
43
|
-
export type { GiftCard, GiftCardCreate, GiftCardUpdate } from './resources/gift_cards';
|
44
|
-
export type { GoogleGeocoder, GoogleGeocoderCreate, GoogleGeocoderUpdate } from './resources/google_geocoders';
|
45
|
-
export type { Import, ImportCreate } from './resources/imports';
|
46
|
-
export type { InStockSubscription, InStockSubscriptionCreate, InStockSubscriptionUpdate } from './resources/in_stock_subscriptions';
|
47
|
-
export type { InventoryModel, InventoryModelCreate, InventoryModelUpdate } from './resources/inventory_models';
|
48
|
-
export type { InventoryReturnLocation, InventoryReturnLocationCreate, InventoryReturnLocationUpdate } from './resources/inventory_return_locations';
|
49
|
-
export type { InventoryStockLocation, InventoryStockLocationCreate, InventoryStockLocationUpdate } from './resources/inventory_stock_locations';
|
50
|
-
export type { KlarnaGateway, KlarnaGatewayCreate, KlarnaGatewayUpdate } from './resources/klarna_gateways';
|
51
|
-
export type { KlarnaPayment, KlarnaPaymentCreate, KlarnaPaymentUpdate } from './resources/klarna_payments';
|
52
|
-
export type { LineItemOption, LineItemOptionCreate, LineItemOptionUpdate } from './resources/line_item_options';
|
53
|
-
export type { LineItem, LineItemCreate, LineItemUpdate } from './resources/line_items';
|
54
|
-
export type { ManualGateway, ManualGatewayCreate, ManualGatewayUpdate } from './resources/manual_gateways';
|
55
|
-
export type { ManualTaxCalculator, ManualTaxCalculatorCreate, ManualTaxCalculatorUpdate } from './resources/manual_tax_calculators';
|
56
|
-
export type { Market, MarketCreate, MarketUpdate } from './resources/markets';
|
57
|
-
export type { Merchant, MerchantCreate, MerchantUpdate } from './resources/merchants';
|
58
|
-
export type { OrderAmountPromotionRule, OrderAmountPromotionRuleCreate, OrderAmountPromotionRuleUpdate } from './resources/order_amount_promotion_rules';
|
59
|
-
export type { OrderCopy, OrderCopyCreate } from './resources/order_copies';
|
60
|
-
export type { OrderSubscription, OrderSubscriptionCreate, OrderSubscriptionUpdate } from './resources/order_subscriptions';
|
61
|
-
export type { OrderValidationRule } from './resources/order_validation_rules';
|
62
|
-
export type { Order, OrderCreate, OrderUpdate } from './resources/orders';
|
63
|
-
export type { Organization } from './resources/organization';
|
64
|
-
export type { Package, PackageCreate, PackageUpdate } from './resources/packages';
|
65
|
-
export type { ParcelLineItem, ParcelLineItemCreate, ParcelLineItemUpdate } from './resources/parcel_line_items';
|
66
|
-
export type { Parcel, ParcelCreate, ParcelUpdate } from './resources/parcels';
|
67
|
-
export type { PaymentGateway } from './resources/payment_gateways';
|
68
|
-
export type { PaymentMethod, PaymentMethodCreate, PaymentMethodUpdate } from './resources/payment_methods';
|
69
|
-
export type { PaypalGateway, PaypalGatewayCreate, PaypalGatewayUpdate } from './resources/paypal_gateways';
|
70
|
-
export type { PaypalPayment, PaypalPaymentCreate, PaypalPaymentUpdate } from './resources/paypal_payments';
|
71
|
-
export type { PercentageDiscountPromotion, PercentageDiscountPromotionCreate, PercentageDiscountPromotionUpdate } from './resources/percentage_discount_promotions';
|
72
|
-
export type { PriceList, PriceListCreate, PriceListUpdate } from './resources/price_lists';
|
73
|
-
export type { Price, PriceCreate, PriceUpdate } from './resources/prices';
|
74
|
-
export type { PromotionRule } from './resources/promotion_rules';
|
75
|
-
export type { Promotion } from './resources/promotions';
|
76
|
-
export type { Refund } from './resources/refunds';
|
77
|
-
export type { ReturnLineItem, ReturnLineItemCreate, ReturnLineItemUpdate } from './resources/return_line_items';
|
78
|
-
export type { Return, ReturnCreate, ReturnUpdate } from './resources/returns';
|
79
|
-
export type { Shipment, ShipmentUpdate } from './resources/shipments';
|
80
|
-
export type { ShippingCategory, ShippingCategoryCreate, ShippingCategoryUpdate } from './resources/shipping_categories';
|
81
|
-
export type { ShippingMethod, ShippingMethodCreate, ShippingMethodUpdate } from './resources/shipping_methods';
|
82
|
-
export type { ShippingZone, ShippingZoneCreate, ShippingZoneUpdate } from './resources/shipping_zones';
|
83
|
-
export type { SkuListItem, SkuListItemCreate, SkuListItemUpdate } from './resources/sku_list_items';
|
84
|
-
export type { SkuListPromotionRule, SkuListPromotionRuleCreate, SkuListPromotionRuleUpdate } from './resources/sku_list_promotion_rules';
|
85
|
-
export type { SkuList, SkuListCreate, SkuListUpdate } from './resources/sku_lists';
|
86
|
-
export type { SkuOption, SkuOptionCreate, SkuOptionUpdate } from './resources/sku_options';
|
87
|
-
export type { Sku, SkuCreate, SkuUpdate } from './resources/skus';
|
88
|
-
export type { StockItem, StockItemCreate, StockItemUpdate } from './resources/stock_items';
|
89
|
-
export type { StockLineItem } from './resources/stock_line_items';
|
90
|
-
export type { StockLocation, StockLocationCreate, StockLocationUpdate } from './resources/stock_locations';
|
91
|
-
export type { StockTransfer, StockTransferCreate, StockTransferUpdate } from './resources/stock_transfers';
|
92
|
-
export type { StripeGateway, StripeGatewayCreate, StripeGatewayUpdate } from './resources/stripe_gateways';
|
93
|
-
export type { StripePayment, StripePaymentCreate, StripePaymentUpdate } from './resources/stripe_payments';
|
94
|
-
export type { TaxCalculator } from './resources/tax_calculators';
|
95
|
-
export type { TaxCategory, TaxCategoryCreate, TaxCategoryUpdate } from './resources/tax_categories';
|
96
|
-
export type { TaxRule, TaxRuleCreate, TaxRuleUpdate } from './resources/tax_rules';
|
97
|
-
export type { TaxjarAccount, TaxjarAccountCreate, TaxjarAccountUpdate } from './resources/taxjar_accounts';
|
98
|
-
export type { Transaction } from './resources/transactions';
|
99
|
-
export type { Void } from './resources/voids';
|
100
|
-
export type { Webhook, WebhookCreate, WebhookUpdate } from './resources/webhooks';
|
101
|
-
export type { WireTransfer, WireTransferCreate, WireTransferUpdate } from './resources/wire_transfers';
|
package/lib/esm/query.d.ts
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
import { ResourceType } from "./resource";
|
2
|
-
interface QueryParamsRetrieve {
|
3
|
-
include?: string[];
|
4
|
-
fields?: string[] | {
|
5
|
-
[key: string]: string[];
|
6
|
-
};
|
7
|
-
}
|
8
|
-
interface QueryParamsList extends QueryParamsRetrieve {
|
9
|
-
sort?: string[] | {
|
10
|
-
[key: string]: 'asc' | 'desc';
|
11
|
-
};
|
12
|
-
filters?: {
|
13
|
-
[key: string]: string | number | boolean;
|
14
|
-
};
|
15
|
-
pageNumber?: number;
|
16
|
-
pageSize?: number;
|
17
|
-
}
|
18
|
-
declare type QueryParams = QueryParamsRetrieve | QueryParamsList;
|
19
|
-
export { QueryParamsRetrieve, QueryParamsList, QueryParams };
|
20
|
-
declare const generateQueryStringParams: (params: QueryParamsRetrieve | QueryParamsList | undefined, res: ResourceType) => {
|
21
|
-
[key: string]: string;
|
22
|
-
};
|
23
|
-
export { generateQueryStringParams };
|