@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
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource as a}from"../resource";class r extends a{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,s){return this.resources.create({...e,type:r.TYPE},t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update({...e,type:r.TYPE},t,s)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}async order(e,t,s){return this.resources.fetch({type:"orders"},`klarna_payments/${e}/order`,t,s)}async payment_gateway(e,t,s){return this.resources.fetch({type:"payment_gateways"},`klarna_payments/${e}/payment_gateway`,t,s)}isKlarnaPayment(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="klarna_payments";export default r;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource as s}from"../resource";class r extends s{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,i){return this.resources.create({...e,type:r.TYPE},t,i)}async retrieve(e,t,i){return this.resources.retrieve({type:r.TYPE,id:e},t,i)}async update(e,t,i){return this.resources.update({...e,type:r.TYPE},t,i)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}async line_item(e,t,i){return this.resources.fetch({type:"line_items"},`line_item_options/${e}/line_item`,t,i)}async sku_option(e,t,i){return this.resources.fetch({type:"sku_options"},`line_item_options/${e}/sku_option`,t,i)}isLineItemOption(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="line_item_options";export default r;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource as i}from"../resource";class s extends i{async list(e,t){return this.resources.list({type:s.TYPE},e,t)}async create(e,t,r){return this.resources.create({...e,type:s.TYPE},t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:s.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update({...e,type:s.TYPE},t,r)}async delete(e,t){await this.resources.delete({type:s.TYPE,id:e},t)}async order(e,t,r){return this.resources.fetch({type:"orders"},`line_items/${e}/order`,t,r)}async line_item_options(e,t,r){return this.resources.fetch({type:"line_item_options"},`line_items/${e}/line_item_options`,t,r)}async stock_line_items(e,t,r){return this.resources.fetch({type:"stock_line_items"},`line_items/${e}/stock_line_items`,t,r)}async stock_transfers(e,t,r){return this.resources.fetch({type:"stock_transfers"},`line_items/${e}/stock_transfers`,t,r)}isLineItem(e){return e.type&&e.type===s.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="line_items";export default s;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource as a}from"../resource";class t extends a{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async create(e,r,s){return this.resources.create({...e,type:t.TYPE},r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:t.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update({...e,type:t.TYPE},r,s)}async delete(e,r){await this.resources.delete({type:t.TYPE,id:e},r)}async payment_methods(e,r,s){return this.resources.fetch({type:"payment_methods"},`manual_gateways/${e}/payment_methods`,r,s)}isManualGateway(e){return e.type&&e.type===t.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="manual_gateways";export default t;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource as r}from"../resource";class s extends r{async list(e,t){return this.resources.list({type:s.TYPE},e,t)}async create(e,t,a){return this.resources.create({...e,type:s.TYPE},t,a)}async retrieve(e,t,a){return this.resources.retrieve({type:s.TYPE,id:e},t,a)}async update(e,t,a){return this.resources.update({...e,type:s.TYPE},t,a)}async delete(e,t){await this.resources.delete({type:s.TYPE,id:e},t)}async tax_categories(e,t,a){return this.resources.fetch({type:"tax_categories"},`manual_tax_calculators/${e}/tax_categories`,t,a)}async markets(e,t,a){return this.resources.fetch({type:"markets"},`manual_tax_calculators/${e}/markets`,t,a)}async attachments(e,t,a){return this.resources.fetch({type:"attachments"},`manual_tax_calculators/${e}/attachments`,t,a)}async tax_rules(e,t,a){return this.resources.fetch({type:"tax_rules"},`manual_tax_calculators/${e}/tax_rules`,t,a)}isManualTaxCalculator(e){return e.type&&e.type===s.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="manual_tax_calculators";export default s;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource as c}from"../resource";class s extends c{async list(e,t){return this.resources.list({type:s.TYPE},e,t)}async create(e,t,r){return this.resources.create({...e,type:s.TYPE},t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:s.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update({...e,type:s.TYPE},t,r)}async delete(e,t){await this.resources.delete({type:s.TYPE,id:e},t)}async merchant(e,t,r){return this.resources.fetch({type:"merchants"},`markets/${e}/merchant`,t,r)}async price_list(e,t,r){return this.resources.fetch({type:"price_lists"},`markets/${e}/price_list`,t,r)}async inventory_model(e,t,r){return this.resources.fetch({type:"inventory_models"},`markets/${e}/inventory_model`,t,r)}async tax_calculator(e,t,r){return this.resources.fetch({type:"tax_calculators"},`markets/${e}/tax_calculator`,t,r)}async customer_group(e,t,r){return this.resources.fetch({type:"customer_groups"},`markets/${e}/customer_group`,t,r)}async attachments(e,t,r){return this.resources.fetch({type:"attachments"},`markets/${e}/attachments`,t,r)}isMarket(e){return e.type&&e.type===s.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="markets";export default s;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource as a}from"../resource";class r extends a{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,s){return this.resources.create({...e,type:r.TYPE},t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update({...e,type:r.TYPE},t,s)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}async address(e,t,s){return this.resources.fetch({type:"addresses"},`merchants/${e}/address`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`merchants/${e}/attachments`,t,s)}isMerchant(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="merchants";export default r;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource as i}from"../resource";class t extends i{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async create(e,r,s){return this.resources.create({...e,type:t.TYPE},r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:t.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update({...e,type:t.TYPE},r,s)}async delete(e,r){await this.resources.delete({type:t.TYPE,id:e},r)}isOrderAmountPromotionRule(e){return e.type&&e.type===t.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="order_amount_promotion_rules";export default t;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource as o}from"../resource";class t extends o{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async create(e,r,s){return this.resources.create({...e,type:t.TYPE},r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:t.TYPE,id:e},r,s)}async delete(e,r){await this.resources.delete({type:t.TYPE,id:e},r)}async source_order(e,r,s){return this.resources.fetch({type:"orders"},`order_copies/${e}/source_order`,r,s)}async target_order(e,r,s){return this.resources.fetch({type:"orders"},`order_copies/${e}/target_order`,r,s)}async order_subscription(e,r,s){return this.resources.fetch({type:"order_subscriptions"},`order_copies/${e}/order_subscription`,r,s)}isOrderCopy(e){return e.type&&e.type===t.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="order_copies";export default t;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource as o}from"../resource";class t extends o{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async create(e,r,s){return this.resources.create({...e,type:t.TYPE},r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:t.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update({...e,type:t.TYPE},r,s)}async delete(e,r){await this.resources.delete({type:t.TYPE,id:e},r)}async market(e,r,s){return this.resources.fetch({type:"markets"},`order_subscriptions/${e}/market`,r,s)}async source_order(e,r,s){return this.resources.fetch({type:"orders"},`order_subscriptions/${e}/source_order`,r,s)}async customer(e,r,s){return this.resources.fetch({type:"customers"},`order_subscriptions/${e}/customer`,r,s)}async order_copies(e,r,s){return this.resources.fetch({type:"order_copies"},`order_subscriptions/${e}/order_copies`,r,s)}async orders(e,r,s){return this.resources.fetch({type:"orders"},`order_subscriptions/${e}/orders`,r,s)}isOrderSubscription(e){return e.type&&e.type===t.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="order_subscriptions";export default t;
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource as c}from"../resource";class t extends c{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create({...e,type:t.TYPE},s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update({...e,type:t.TYPE},s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}async market(e,s,r){return this.resources.fetch({type:"markets"},`orders/${e}/market`,s,r)}async customer(e,s,r){return this.resources.fetch({type:"customers"},`orders/${e}/customer`,s,r)}async shipping_address(e,s,r){return this.resources.fetch({type:"addresses"},`orders/${e}/shipping_address`,s,r)}async billing_address(e,s,r){return this.resources.fetch({type:"addresses"},`orders/${e}/billing_address`,s,r)}async available_payment_methods(e,s,r){return this.resources.fetch({type:"payment_methods"},`orders/${e}/available_payment_methods`,s,r)}async available_customer_payment_sources(e,s,r){return this.resources.fetch({type:"customer_payment_sources"},`orders/${e}/available_customer_payment_sources`,s,r)}async payment_method(e,s,r){return this.resources.fetch({type:"payment_methods"},`orders/${e}/payment_method`,s,r)}async line_items(e,s,r){return this.resources.fetch({type:"line_items"},`orders/${e}/line_items`,s,r)}async shipments(e,s,r){return this.resources.fetch({type:"shipments"},`orders/${e}/shipments`,s,r)}async authorizations(e,s,r){return this.resources.fetch({type:"authorizations"},`orders/${e}/authorizations`,s,r)}async captures(e,s,r){return this.resources.fetch({type:"captures"},`orders/${e}/captures`,s,r)}async voids(e,s,r){return this.resources.fetch({type:"voids"},`orders/${e}/voids`,s,r)}async refunds(e,s,r){return this.resources.fetch({type:"refunds"},`orders/${e}/refunds`,s,r)}async order_subscriptions(e,s,r){return this.resources.fetch({type:"order_subscriptions"},`orders/${e}/order_subscriptions`,s,r)}async order_copies(e,s,r){return this.resources.fetch({type:"order_copies"},`orders/${e}/order_copies`,s,r)}async attachments(e,s,r){return this.resources.fetch({type:"attachments"},`orders/${e}/attachments`,s,r)}isOrder(e){return e.type&&e.type===t.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="orders";export default t;
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource as c}from"../resource";class r extends c{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,s){return this.resources.create({...e,type:r.TYPE},t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update({...e,type:r.TYPE},t,s)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}async stock_location(e,t,s){return this.resources.fetch({type:"stock_locations"},`packages/${e}/stock_location`,t,s)}async parcels(e,t,s){return this.resources.fetch({type:"parcels"},`packages/${e}/parcels`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`packages/${e}/attachments`,t,s)}isPackage(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="packages";export default r;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource as i}from"../resource";class r extends i{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,s){return this.resources.create({...e,type:r.TYPE},t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update({...e,type:r.TYPE},t,s)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}async parcel(e,t,s){return this.resources.fetch({type:"parcels"},`parcel_line_items/${e}/parcel`,t,s)}async stock_line_item(e,t,s){return this.resources.fetch({type:"stock_line_items"},`parcel_line_items/${e}/stock_line_item`,t,s)}isParcelLineItem(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="parcel_line_items";export default r;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource as c}from"../resource";class r extends c{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,s){return this.resources.create({...e,type:r.TYPE},t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update({...e,type:r.TYPE},t,s)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}async shipment(e,t,s){return this.resources.fetch({type:"shipments"},`parcels/${e}/shipment`,t,s)}async package(e,t,s){return this.resources.fetch({type:"packages"},`parcels/${e}/package`,t,s)}async parcel_line_items(e,t,s){return this.resources.fetch({type:"parcel_line_items"},`parcels/${e}/parcel_line_items`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`parcels/${e}/attachments`,t,s)}isParcel(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="parcels";export default r;
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource as a}from"../resource";class r extends a{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,s){return this.resources.create({...e,type:r.TYPE},t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update({...e,type:r.TYPE},t,s)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}async market(e,t,s){return this.resources.fetch({type:"markets"},`payment_methods/${e}/market`,t,s)}async payment_gateway(e,t,s){return this.resources.fetch({type:"payment_gateways"},`payment_methods/${e}/payment_gateway`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`payment_methods/${e}/attachments`,t,s)}isPaymentMethod(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="payment_methods";export default r;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource as p}from"../resource";class a extends p{async list(e,t){return this.resources.list({type:a.TYPE},e,t)}async create(e,t,r){return this.resources.create({...e,type:a.TYPE},t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:a.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update({...e,type:a.TYPE},t,r)}async delete(e,t){await this.resources.delete({type:a.TYPE,id:e},t)}async payment_methods(e,t,r){return this.resources.fetch({type:"payment_methods"},`paypal_gateways/${e}/payment_methods`,t,r)}async paypal_payments(e,t,r){return this.resources.fetch({type:"paypal_payments"},`paypal_gateways/${e}/paypal_payments`,t,r)}isPaypalGateway(e){return e.type&&e.type===a.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:a.TYPE}:{id:e.id,type:a.TYPE}}type(){return a.TYPE}}a.TYPE="paypal_gateways";export default a;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource as s}from"../resource";class r extends s{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,a){return this.resources.create({...e,type:r.TYPE},t,a)}async retrieve(e,t,a){return this.resources.retrieve({type:r.TYPE,id:e},t,a)}async update(e,t,a){return this.resources.update({...e,type:r.TYPE},t,a)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}async order(e,t,a){return this.resources.fetch({type:"orders"},`paypal_payments/${e}/order`,t,a)}async payment_gateway(e,t,a){return this.resources.fetch({type:"payment_gateways"},`paypal_payments/${e}/payment_gateway`,t,a)}isPaypalPayment(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="paypal_payments";export default r;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource as o}from"../resource";class s extends o{async list(e,t){return this.resources.list({type:s.TYPE},e,t)}async create(e,t,r){return this.resources.create({...e,type:s.TYPE},t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:s.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update({...e,type:s.TYPE},t,r)}async delete(e,t){await this.resources.delete({type:s.TYPE,id:e},t)}async market(e,t,r){return this.resources.fetch({type:"markets"},`percentage_discount_promotions/${e}/market`,t,r)}async order_amount_promotion_rule(e,t,r){return this.resources.fetch({type:"order_amount_promotion_rules"},`percentage_discount_promotions/${e}/order_amount_promotion_rule`,t,r)}async sku_list_promotion_rule(e,t,r){return this.resources.fetch({type:"sku_list_promotion_rules"},`percentage_discount_promotions/${e}/sku_list_promotion_rule`,t,r)}async coupon_codes_promotion_rule(e,t,r){return this.resources.fetch({type:"coupon_codes_promotion_rules"},`percentage_discount_promotions/${e}/coupon_codes_promotion_rule`,t,r)}async attachments(e,t,r){return this.resources.fetch({type:"attachments"},`percentage_discount_promotions/${e}/attachments`,t,r)}async sku_list(e,t,r){return this.resources.fetch({type:"sku_lists"},`percentage_discount_promotions/${e}/sku_list`,t,r)}async skus(e,t,r){return this.resources.fetch({type:"skus"},`percentage_discount_promotions/${e}/skus`,t,r)}isPercentageDiscountPromotion(e){return e.type&&e.type===s.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="percentage_discount_promotions";export default s;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource as i}from"../resource";class r extends i{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,s){return this.resources.create({...e,type:r.TYPE},t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update({...e,type:r.TYPE},t,s)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}async prices(e,t,s){return this.resources.fetch({type:"prices"},`price_lists/${e}/prices`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`price_lists/${e}/attachments`,t,s)}isPriceList(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="price_lists";export default r;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource as i}from"../resource";class s extends i{async list(e,t){return this.resources.list({type:s.TYPE},e,t)}async create(e,t,r){return this.resources.create({...e,type:s.TYPE},t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:s.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update({...e,type:s.TYPE},t,r)}async delete(e,t){await this.resources.delete({type:s.TYPE,id:e},t)}async price_list(e,t,r){return this.resources.fetch({type:"price_lists"},`prices/${e}/price_list`,t,r)}async sku(e,t,r){return this.resources.fetch({type:"skus"},`prices/${e}/sku`,t,r)}async attachments(e,t,r){return this.resources.fetch({type:"attachments"},`prices/${e}/attachments`,t,r)}isPrice(e){return e.type&&e.type===s.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="prices";export default s;
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource as i}from"../resource";class t extends i{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async create(e,r,s){return this.resources.create({...e,type:t.TYPE},r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:t.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update({...e,type:t.TYPE},r,s)}async delete(e,r){await this.resources.delete({type:t.TYPE,id:e},r)}async return(e,r,s){return this.resources.fetch({type:"returns"},`return_line_items/${e}/return`,r,s)}async line_item(e,r,s){return this.resources.fetch({type:"line_items"},`return_line_items/${e}/line_item`,r,s)}isReturnLineItem(e){return e.type&&e.type===t.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="return_line_items";export default t;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource as n}from"../resource";class s extends n{async list(e,t){return this.resources.list({type:s.TYPE},e,t)}async create(e,t,r){return this.resources.create({...e,type:s.TYPE},t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:s.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update({...e,type:s.TYPE},t,r)}async delete(e,t){await this.resources.delete({type:s.TYPE,id:e},t)}async order(e,t,r){return this.resources.fetch({type:"orders"},`returns/${e}/order`,t,r)}async customer(e,t,r){return this.resources.fetch({type:"customers"},`returns/${e}/customer`,t,r)}async stock_location(e,t,r){return this.resources.fetch({type:"stock_locations"},`returns/${e}/stock_location`,t,r)}async origin_address(e,t,r){return this.resources.fetch({type:"addresses"},`returns/${e}/origin_address`,t,r)}async destination_address(e,t,r){return this.resources.fetch({type:"addresses"},`returns/${e}/destination_address`,t,r)}async return_line_items(e,t,r){return this.resources.fetch({type:"return_line_items"},`returns/${e}/return_line_items`,t,r)}async attachments(e,t,r){return this.resources.fetch({type:"attachments"},`returns/${e}/attachments`,t,r)}isReturn(e){return e.type&&e.type===s.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="returns";export default s;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource as i}from"../resource";class r extends i{async list(e,s){return this.resources.list({type:r.TYPE},e,s)}async retrieve(e,s,t){return this.resources.retrieve({type:r.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update({...e,type:r.TYPE},s,t)}async order(e,s,t){return this.resources.fetch({type:"orders"},`shipments/${e}/order`,s,t)}async shipping_category(e,s,t){return this.resources.fetch({type:"shipping_categories"},`shipments/${e}/shipping_category`,s,t)}async stock_location(e,s,t){return this.resources.fetch({type:"stock_locations"},`shipments/${e}/stock_location`,s,t)}async origin_address(e,s,t){return this.resources.fetch({type:"addresses"},`shipments/${e}/origin_address`,s,t)}async shipping_address(e,s,t){return this.resources.fetch({type:"addresses"},`shipments/${e}/shipping_address`,s,t)}async shipping_method(e,s,t){return this.resources.fetch({type:"shipping_methods"},`shipments/${e}/shipping_method`,s,t)}async delivery_lead_time(e,s,t){return this.resources.fetch({type:"delivery_lead_times"},`shipments/${e}/delivery_lead_time`,s,t)}async stock_line_items(e,s,t){return this.resources.fetch({type:"stock_line_items"},`shipments/${e}/stock_line_items`,s,t)}async stock_transfers(e,s,t){return this.resources.fetch({type:"stock_transfers"},`shipments/${e}/stock_transfers`,s,t)}async available_shipping_methods(e,s,t){return this.resources.fetch({type:"shipping_methods"},`shipments/${e}/available_shipping_methods`,s,t)}async carrier_accounts(e,s,t){return this.resources.fetch({type:"carrier_accounts"},`shipments/${e}/carrier_accounts`,s,t)}async parcels(e,s,t){return this.resources.fetch({type:"parcels"},`shipments/${e}/parcels`,s,t)}async attachments(e,s,t){return this.resources.fetch({type:"attachments"},`shipments/${e}/attachments`,s,t)}isShipment(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="shipments";export default r;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource as i}from"../resource";class s extends i{async list(e,t){return this.resources.list({type:s.TYPE},e,t)}async create(e,t,r){return this.resources.create({...e,type:s.TYPE},t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:s.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update({...e,type:s.TYPE},t,r)}async delete(e,t){await this.resources.delete({type:s.TYPE,id:e},t)}async skus(e,t,r){return this.resources.fetch({type:"skus"},`shipping_categories/${e}/skus`,t,r)}async attachments(e,t,r){return this.resources.fetch({type:"attachments"},`shipping_categories/${e}/attachments`,t,r)}isShippingCategory(e){return e.type&&e.type===s.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="shipping_categories";export default s;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource as i}from"../resource";class r extends i{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,s){return this.resources.create({...e,type:r.TYPE},t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update({...e,type:r.TYPE},t,s)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}async market(e,t,s){return this.resources.fetch({type:"markets"},`shipping_methods/${e}/market`,t,s)}async shipping_zone(e,t,s){return this.resources.fetch({type:"shipping_zones"},`shipping_methods/${e}/shipping_zone`,t,s)}async shipping_category(e,t,s){return this.resources.fetch({type:"shipping_categories"},`shipping_methods/${e}/shipping_category`,t,s)}async delivery_lead_time_for_shipment(e,t,s){return this.resources.fetch({type:"delivery_lead_times"},`shipping_methods/${e}/delivery_lead_time_for_shipment`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`shipping_methods/${e}/attachments`,t,s)}isShippingMethod(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="shipping_methods";export default r;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource as i}from"../resource";class t extends i{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create({...e,type:t.TYPE},s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update({...e,type:t.TYPE},s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}async attachments(e,s,r){return this.resources.fetch({type:"attachments"},`shipping_zones/${e}/attachments`,s,r)}isShippingZone(e){return e.type&&e.type===t.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="shipping_zones";export default t;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource as i}from"../resource";class t extends i{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create({...e,type:t.TYPE},s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update({...e,type:t.TYPE},s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}async sku_list(e,s,r){return this.resources.fetch({type:"sku_lists"},`sku_list_items/${e}/sku_list`,s,r)}async sku(e,s,r){return this.resources.fetch({type:"skus"},`sku_list_items/${e}/sku`,s,r)}isSkuListItem(e){return e.type&&e.type===t.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="sku_list_items";export default t;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource as u}from"../resource";class t extends u{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create({...e,type:t.TYPE},s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update({...e,type:t.TYPE},s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}async sku_list(e,s,r){return this.resources.fetch({type:"sku_lists"},`sku_list_promotion_rules/${e}/sku_list`,s,r)}async skus(e,s,r){return this.resources.fetch({type:"skus"},`sku_list_promotion_rules/${e}/skus`,s,r)}isSkuListPromotionRule(e){return e.type&&e.type===t.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="sku_list_promotion_rules";export default t;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource as u}from"../resource";class t extends u{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create({...e,type:t.TYPE},s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update({...e,type:t.TYPE},s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}async skus(e,s,r){return this.resources.fetch({type:"skus"},`sku_lists/${e}/skus`,s,r)}async sku_list_items(e,s,r){return this.resources.fetch({type:"sku_list_items"},`sku_lists/${e}/sku_list_items`,s,r)}async bundles(e,s,r){return this.resources.fetch({type:"bundles"},`sku_lists/${e}/bundles`,s,r)}isSkuList(e){return e.type&&e.type===t.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="sku_lists";export default t;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource as a}from"../resource";class r extends a{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,s){return this.resources.create({...e,type:r.TYPE},t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update({...e,type:r.TYPE},t,s)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}async market(e,t,s){return this.resources.fetch({type:"markets"},`sku_options/${e}/market`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`sku_options/${e}/attachments`,t,s)}isSkuOption(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="sku_options";export default r;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource as i}from"../resource";class r extends i{async list(e,s){return this.resources.list({type:r.TYPE},e,s)}async create(e,s,t){return this.resources.create({...e,type:r.TYPE},s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:r.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update({...e,type:r.TYPE},s,t)}async delete(e,s){await this.resources.delete({type:r.TYPE,id:e},s)}async shipping_category(e,s,t){return this.resources.fetch({type:"shipping_categories"},`skus/${e}/shipping_category`,s,t)}async prices(e,s,t){return this.resources.fetch({type:"prices"},`skus/${e}/prices`,s,t)}async stock_items(e,s,t){return this.resources.fetch({type:"stock_items"},`skus/${e}/stock_items`,s,t)}async delivery_lead_times(e,s,t){return this.resources.fetch({type:"delivery_lead_times"},`skus/${e}/delivery_lead_times`,s,t)}async sku_options(e,s,t){return this.resources.fetch({type:"sku_options"},`skus/${e}/sku_options`,s,t)}async attachments(e,s,t){return this.resources.fetch({type:"attachments"},`skus/${e}/attachments`,s,t)}isSku(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="skus";export default r;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource as c}from"../resource";class s extends c{async list(e,t){return this.resources.list({type:s.TYPE},e,t)}async create(e,t,r){return this.resources.create({...e,type:s.TYPE},t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:s.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update({...e,type:s.TYPE},t,r)}async delete(e,t){await this.resources.delete({type:s.TYPE,id:e},t)}async stock_location(e,t,r){return this.resources.fetch({type:"stock_locations"},`stock_items/${e}/stock_location`,t,r)}async sku(e,t,r){return this.resources.fetch({type:"skus"},`stock_items/${e}/sku`,t,r)}async attachments(e,t,r){return this.resources.fetch({type:"attachments"},`stock_items/${e}/attachments`,t,r)}isStockItem(e){return e.type&&e.type===s.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="stock_items";export default s;
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource as o}from"../resource";class r extends o{async list(t,e){return this.resources.list({type:r.TYPE},t,e)}async create(t,e,s){return this.resources.create({...t,type:r.TYPE},e,s)}async retrieve(t,e,s){return this.resources.retrieve({type:r.TYPE,id:t},e,s)}async update(t,e,s){return this.resources.update({...t,type:r.TYPE},e,s)}async delete(t,e){await this.resources.delete({type:r.TYPE,id:t},e)}async address(t,e,s){return this.resources.fetch({type:"addresses"},`stock_locations/${t}/address`,e,s)}async inventory_stock_locations(t,e,s){return this.resources.fetch({type:"inventory_stock_locations"},`stock_locations/${t}/inventory_stock_locations`,e,s)}async inventory_return_locations(t,e,s){return this.resources.fetch({type:"inventory_return_locations"},`stock_locations/${t}/inventory_return_locations`,e,s)}async stock_items(t,e,s){return this.resources.fetch({type:"stock_items"},`stock_locations/${t}/stock_items`,e,s)}async stock_transfers(t,e,s){return this.resources.fetch({type:"stock_transfers"},`stock_locations/${t}/stock_transfers`,e,s)}async attachments(t,e,s){return this.resources.fetch({type:"attachments"},`stock_locations/${t}/attachments`,e,s)}isStockLocation(t){return t.type&&t.type===r.TYPE}relationship(t){return t===null||typeof t=="string"?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="stock_locations";export default r;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource as n}from"../resource";class r extends n{async list(t,e){return this.resources.list({type:r.TYPE},t,e)}async create(t,e,s){return this.resources.create({...t,type:r.TYPE},e,s)}async retrieve(t,e,s){return this.resources.retrieve({type:r.TYPE,id:t},e,s)}async update(t,e,s){return this.resources.update({...t,type:r.TYPE},e,s)}async delete(t,e){await this.resources.delete({type:r.TYPE,id:t},e)}async sku(t,e,s){return this.resources.fetch({type:"skus"},`stock_transfers/${t}/sku`,e,s)}async origin_stock_location(t,e,s){return this.resources.fetch({type:"stock_locations"},`stock_transfers/${t}/origin_stock_location`,e,s)}async destination_stock_location(t,e,s){return this.resources.fetch({type:"stock_locations"},`stock_transfers/${t}/destination_stock_location`,e,s)}async shipment(t,e,s){return this.resources.fetch({type:"shipments"},`stock_transfers/${t}/shipment`,e,s)}async line_item(t,e,s){return this.resources.fetch({type:"line_items"},`stock_transfers/${t}/line_item`,e,s)}isStockTransfer(t){return t.type&&t.type===r.TYPE}relationship(t){return t===null||typeof t=="string"?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="stock_transfers";export default r;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource as p}from"../resource";class s extends p{async list(e,t){return this.resources.list({type:s.TYPE},e,t)}async create(e,t,r){return this.resources.create({...e,type:s.TYPE},t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:s.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update({...e,type:s.TYPE},t,r)}async delete(e,t){await this.resources.delete({type:s.TYPE,id:e},t)}async payment_methods(e,t,r){return this.resources.fetch({type:"payment_methods"},`stripe_gateways/${e}/payment_methods`,t,r)}async stripe_payments(e,t,r){return this.resources.fetch({type:"stripe_payments"},`stripe_gateways/${e}/stripe_payments`,t,r)}isStripeGateway(e){return e.type&&e.type===s.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="stripe_gateways";export default s;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource as y}from"../resource";class r extends y{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,s){return this.resources.create({...e,type:r.TYPE},t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update({...e,type:r.TYPE},t,s)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}async order(e,t,s){return this.resources.fetch({type:"orders"},`stripe_payments/${e}/order`,t,s)}async payment_gateway(e,t,s){return this.resources.fetch({type:"payment_gateways"},`stripe_payments/${e}/payment_gateway`,t,s)}isStripePayment(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="stripe_payments";export default r;
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource as a}from"../resource";class r extends a{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,s){return this.resources.create({...e,type:r.TYPE},t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update({...e,type:r.TYPE},t,s)}async delete(e,t){await this.resources.delete({type:r.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===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="tax_categories";export default r;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource as a}from"../resource";class r extends a{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,s){return this.resources.create({...e,type:r.TYPE},t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update({...e,type:r.TYPE},t,s)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}async manual_tax_calculator(e,t,s){return this.resources.fetch({type:"manual_tax_calculators"},`tax_rules/${e}/manual_tax_calculator`,t,s)}isTaxRule(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="tax_rules";export default r;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource as s}from"../resource";class r extends s{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,a){return this.resources.create({...e,type:r.TYPE},t,a)}async retrieve(e,t,a){return this.resources.retrieve({type:r.TYPE,id:e},t,a)}async update(e,t,a){return this.resources.update({...e,type:r.TYPE},t,a)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}async tax_categories(e,t,a){return this.resources.fetch({type:"tax_categories"},`taxjar_accounts/${e}/tax_categories`,t,a)}async markets(e,t,a){return this.resources.fetch({type:"markets"},`taxjar_accounts/${e}/markets`,t,a)}async attachments(e,t,a){return this.resources.fetch({type:"attachments"},`taxjar_accounts/${e}/attachments`,t,a)}isTaxjarAccount(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="taxjar_accounts";export default r;
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource as a}from"../resource";class t extends a{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async create(e,r,s){return this.resources.create({...e,type:t.TYPE},r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:t.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update({...e,type:t.TYPE},r,s)}async delete(e,r){await this.resources.delete({type:t.TYPE,id:e},r)}async last_event_callbacks(e,r,s){return this.resources.fetch({type:"event_callbacks"},`webhooks/${e}/last_event_callbacks`,r,s)}isWebhook(e){return e.type&&e.type===t.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="webhooks";export default t;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource as i}from"../resource";class r extends i{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,s){return this.resources.create({...e,type:r.TYPE},t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update({...e,type:r.TYPE},t,s)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}async order(e,t,s){return this.resources.fetch({type:"orders"},`wire_transfers/${e}/order`,t,s)}isWireTransfer(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="wire_transfers";export default r;
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
package/package.json
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"name": "@commercelayer/sdk",
|
3
|
-
"version": "
|
4
|
-
"
|
5
|
-
"types": "lib/
|
6
|
-
"module": "lib/
|
3
|
+
"version": "5.0.0-alpha.3",
|
4
|
+
"type": "module",
|
5
|
+
"types": "lib/index.d.ts",
|
6
|
+
"module": "lib/index.js",
|
7
7
|
"scripts": {
|
8
8
|
"lint": "eslint ./src --ext .ts",
|
9
9
|
"lintspec": "eslint ./specs/resources/ --ext .spec.ts",
|
10
|
-
"build": "tsc -b tsconfig.json
|
10
|
+
"build": "tsc -b tsconfig.json --verbose",
|
11
11
|
"start": "ts-node src/index.ts",
|
12
12
|
"generate": "ts-node gen/generator.ts",
|
13
13
|
"prepare": "npm run build",
|
@@ -40,22 +40,22 @@
|
|
40
40
|
"node": ">=16"
|
41
41
|
},
|
42
42
|
"dependencies": {
|
43
|
-
"axios": "^0.
|
43
|
+
"axios": "^0.25.0"
|
44
44
|
},
|
45
45
|
"devDependencies": {
|
46
|
-
"@babel/preset-env": "^7.16.
|
47
|
-
"@babel/preset-typescript": "^7.16.
|
48
|
-
"@commercelayer/js-auth": "^2.2.
|
46
|
+
"@babel/preset-env": "^7.16.11",
|
47
|
+
"@babel/preset-typescript": "^7.16.7",
|
48
|
+
"@commercelayer/js-auth": "^2.2.9",
|
49
49
|
"@semantic-release/changelog": "^6.0.1",
|
50
50
|
"@semantic-release/git": "^10.0.1",
|
51
51
|
"@size-limit/preset-small-lib": "^6.0.4",
|
52
52
|
"@types/debug": "^4.1.7",
|
53
|
-
"@types/jest": "^27.0
|
53
|
+
"@types/jest": "^27.4.0",
|
54
54
|
"@types/lodash": "^4.14.178",
|
55
|
-
"@types/node": "^17.0.
|
55
|
+
"@types/node": "^17.0.17",
|
56
56
|
"@typescript-eslint/eslint-plugin": "^5.7.0",
|
57
57
|
"dotenv": "^10.0.0",
|
58
|
-
"eslint": "^8.
|
58
|
+
"eslint": "^8.8.0",
|
59
59
|
"husky": "^7.0.4",
|
60
60
|
"inflector-js": "^1.0.1",
|
61
61
|
"jest": "^27.4.7",
|
package/lib/cjs/api.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ManualGateways=exports.LineItems=exports.LineItemOptions=exports.KlarnaPayments=exports.KlarnaGateways=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.EventCallbacks=exports.DeliveryLeadTimes=exports.Customers=exports.CustomerSubscriptions=exports.CustomerPaymentSources=exports.CustomerPasswordResets=exports.CustomerGroups=exports.CustomerAddresses=exports.Coupons=exports.CouponRecipients=exports.CouponCodesPromotionRules=exports.CheckoutComPayments=exports.CheckoutComGateways=exports.CarrierAccounts=exports.Captures=exports.Bundles=exports.BraintreePayments=exports.BraintreeGateways=exports.BingGeocoders=exports.BillingInfoValidationRules=exports.AvalaraAccounts=exports.Authorizations=exports.Attachments=exports.Applications=exports.AdyenPayments=exports.AdyenGateways=exports.Adjustments=exports.Addresses=void 0,exports.resourceList=exports.WireTransfers=exports.Webhooks=exports.Voids=exports.Transactions=exports.TaxjarAccounts=exports.TaxRules=exports.TaxCategories=exports.TaxCalculators=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.ShippingMethods=exports.ShippingCategories=exports.Shipments=exports.Returns=exports.ReturnLineItems=exports.Refunds=exports.Promotions=exports.PromotionRules=exports.Prices=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=void 0;var addresses_1=require("./resources/addresses");Object.defineProperty(exports,"Addresses",{enumerable:!0,get:function(){return __importDefault(addresses_1).default}});var adjustments_1=require("./resources/adjustments");Object.defineProperty(exports,"Adjustments",{enumerable:!0,get:function(){return __importDefault(adjustments_1).default}});var adyen_gateways_1=require("./resources/adyen_gateways");Object.defineProperty(exports,"AdyenGateways",{enumerable:!0,get:function(){return __importDefault(adyen_gateways_1).default}});var adyen_payments_1=require("./resources/adyen_payments");Object.defineProperty(exports,"AdyenPayments",{enumerable:!0,get:function(){return __importDefault(adyen_payments_1).default}});var application_1=require("./resources/application");Object.defineProperty(exports,"Applications",{enumerable:!0,get:function(){return __importDefault(application_1).default}});var attachments_1=require("./resources/attachments");Object.defineProperty(exports,"Attachments",{enumerable:!0,get:function(){return __importDefault(attachments_1).default}});var authorizations_1=require("./resources/authorizations");Object.defineProperty(exports,"Authorizations",{enumerable:!0,get:function(){return __importDefault(authorizations_1).default}});var avalara_accounts_1=require("./resources/avalara_accounts");Object.defineProperty(exports,"AvalaraAccounts",{enumerable:!0,get:function(){return __importDefault(avalara_accounts_1).default}});var billing_info_validation_rules_1=require("./resources/billing_info_validation_rules");Object.defineProperty(exports,"BillingInfoValidationRules",{enumerable:!0,get:function(){return __importDefault(billing_info_validation_rules_1).default}});var bing_geocoders_1=require("./resources/bing_geocoders");Object.defineProperty(exports,"BingGeocoders",{enumerable:!0,get:function(){return __importDefault(bing_geocoders_1).default}});var braintree_gateways_1=require("./resources/braintree_gateways");Object.defineProperty(exports,"BraintreeGateways",{enumerable:!0,get:function(){return __importDefault(braintree_gateways_1).default}});var braintree_payments_1=require("./resources/braintree_payments");Object.defineProperty(exports,"BraintreePayments",{enumerable:!0,get:function(){return __importDefault(braintree_payments_1).default}});var bundles_1=require("./resources/bundles");Object.defineProperty(exports,"Bundles",{enumerable:!0,get:function(){return __importDefault(bundles_1).default}});var captures_1=require("./resources/captures");Object.defineProperty(exports,"Captures",{enumerable:!0,get:function(){return __importDefault(captures_1).default}});var carrier_accounts_1=require("./resources/carrier_accounts");Object.defineProperty(exports,"CarrierAccounts",{enumerable:!0,get:function(){return __importDefault(carrier_accounts_1).default}});var checkout_com_gateways_1=require("./resources/checkout_com_gateways");Object.defineProperty(exports,"CheckoutComGateways",{enumerable:!0,get:function(){return __importDefault(checkout_com_gateways_1).default}});var checkout_com_payments_1=require("./resources/checkout_com_payments");Object.defineProperty(exports,"CheckoutComPayments",{enumerable:!0,get:function(){return __importDefault(checkout_com_payments_1).default}});var coupon_codes_promotion_rules_1=require("./resources/coupon_codes_promotion_rules");Object.defineProperty(exports,"CouponCodesPromotionRules",{enumerable:!0,get:function(){return __importDefault(coupon_codes_promotion_rules_1).default}});var coupon_recipients_1=require("./resources/coupon_recipients");Object.defineProperty(exports,"CouponRecipients",{enumerable:!0,get:function(){return __importDefault(coupon_recipients_1).default}});var coupons_1=require("./resources/coupons");Object.defineProperty(exports,"Coupons",{enumerable:!0,get:function(){return __importDefault(coupons_1).default}});var customer_addresses_1=require("./resources/customer_addresses");Object.defineProperty(exports,"CustomerAddresses",{enumerable:!0,get:function(){return __importDefault(customer_addresses_1).default}});var customer_groups_1=require("./resources/customer_groups");Object.defineProperty(exports,"CustomerGroups",{enumerable:!0,get:function(){return __importDefault(customer_groups_1).default}});var customer_password_resets_1=require("./resources/customer_password_resets");Object.defineProperty(exports,"CustomerPasswordResets",{enumerable:!0,get:function(){return __importDefault(customer_password_resets_1).default}});var customer_payment_sources_1=require("./resources/customer_payment_sources");Object.defineProperty(exports,"CustomerPaymentSources",{enumerable:!0,get:function(){return __importDefault(customer_payment_sources_1).default}});var customer_subscriptions_1=require("./resources/customer_subscriptions");Object.defineProperty(exports,"CustomerSubscriptions",{enumerable:!0,get:function(){return __importDefault(customer_subscriptions_1).default}});var customers_1=require("./resources/customers");Object.defineProperty(exports,"Customers",{enumerable:!0,get:function(){return __importDefault(customers_1).default}});var delivery_lead_times_1=require("./resources/delivery_lead_times");Object.defineProperty(exports,"DeliveryLeadTimes",{enumerable:!0,get:function(){return __importDefault(delivery_lead_times_1).default}});var event_callbacks_1=require("./resources/event_callbacks");Object.defineProperty(exports,"EventCallbacks",{enumerable:!0,get:function(){return __importDefault(event_callbacks_1).default}});var external_gateways_1=require("./resources/external_gateways");Object.defineProperty(exports,"ExternalGateways",{enumerable:!0,get:function(){return __importDefault(external_gateways_1).default}});var external_payments_1=require("./resources/external_payments");Object.defineProperty(exports,"ExternalPayments",{enumerable:!0,get:function(){return __importDefault(external_payments_1).default}});var external_promotions_1=require("./resources/external_promotions");Object.defineProperty(exports,"ExternalPromotions",{enumerable:!0,get:function(){return __importDefault(external_promotions_1).default}});var external_tax_calculators_1=require("./resources/external_tax_calculators");Object.defineProperty(exports,"ExternalTaxCalculators",{enumerable:!0,get:function(){return __importDefault(external_tax_calculators_1).default}});var fixed_amount_promotions_1=require("./resources/fixed_amount_promotions");Object.defineProperty(exports,"FixedAmountPromotions",{enumerable:!0,get:function(){return __importDefault(fixed_amount_promotions_1).default}});var fixed_price_promotions_1=require("./resources/fixed_price_promotions");Object.defineProperty(exports,"FixedPricePromotions",{enumerable:!0,get:function(){return __importDefault(fixed_price_promotions_1).default}});var free_gift_promotions_1=require("./resources/free_gift_promotions");Object.defineProperty(exports,"FreeGiftPromotions",{enumerable:!0,get:function(){return __importDefault(free_gift_promotions_1).default}});var free_shipping_promotions_1=require("./resources/free_shipping_promotions");Object.defineProperty(exports,"FreeShippingPromotions",{enumerable:!0,get:function(){return __importDefault(free_shipping_promotions_1).default}});var geocoders_1=require("./resources/geocoders");Object.defineProperty(exports,"Geocoders",{enumerable:!0,get:function(){return __importDefault(geocoders_1).default}});var gift_card_recipients_1=require("./resources/gift_card_recipients");Object.defineProperty(exports,"GiftCardRecipients",{enumerable:!0,get:function(){return __importDefault(gift_card_recipients_1).default}});var gift_cards_1=require("./resources/gift_cards");Object.defineProperty(exports,"GiftCards",{enumerable:!0,get:function(){return __importDefault(gift_cards_1).default}});var google_geocoders_1=require("./resources/google_geocoders");Object.defineProperty(exports,"GoogleGeocoders",{enumerable:!0,get:function(){return __importDefault(google_geocoders_1).default}});var imports_1=require("./resources/imports");Object.defineProperty(exports,"Imports",{enumerable:!0,get:function(){return __importDefault(imports_1).default}});var in_stock_subscriptions_1=require("./resources/in_stock_subscriptions");Object.defineProperty(exports,"InStockSubscriptions",{enumerable:!0,get:function(){return __importDefault(in_stock_subscriptions_1).default}});var inventory_models_1=require("./resources/inventory_models");Object.defineProperty(exports,"InventoryModels",{enumerable:!0,get:function(){return __importDefault(inventory_models_1).default}});var inventory_return_locations_1=require("./resources/inventory_return_locations");Object.defineProperty(exports,"InventoryReturnLocations",{enumerable:!0,get:function(){return __importDefault(inventory_return_locations_1).default}});var inventory_stock_locations_1=require("./resources/inventory_stock_locations");Object.defineProperty(exports,"InventoryStockLocations",{enumerable:!0,get:function(){return __importDefault(inventory_stock_locations_1).default}});var klarna_gateways_1=require("./resources/klarna_gateways");Object.defineProperty(exports,"KlarnaGateways",{enumerable:!0,get:function(){return __importDefault(klarna_gateways_1).default}});var klarna_payments_1=require("./resources/klarna_payments");Object.defineProperty(exports,"KlarnaPayments",{enumerable:!0,get:function(){return __importDefault(klarna_payments_1).default}});var line_item_options_1=require("./resources/line_item_options");Object.defineProperty(exports,"LineItemOptions",{enumerable:!0,get:function(){return __importDefault(line_item_options_1).default}});var line_items_1=require("./resources/line_items");Object.defineProperty(exports,"LineItems",{enumerable:!0,get:function(){return __importDefault(line_items_1).default}});var manual_gateways_1=require("./resources/manual_gateways");Object.defineProperty(exports,"ManualGateways",{enumerable:!0,get:function(){return __importDefault(manual_gateways_1).default}});var manual_tax_calculators_1=require("./resources/manual_tax_calculators");Object.defineProperty(exports,"ManualTaxCalculators",{enumerable:!0,get:function(){return __importDefault(manual_tax_calculators_1).default}});var markets_1=require("./resources/markets");Object.defineProperty(exports,"Markets",{enumerable:!0,get:function(){return __importDefault(markets_1).default}});var merchants_1=require("./resources/merchants");Object.defineProperty(exports,"Merchants",{enumerable:!0,get:function(){return __importDefault(merchants_1).default}});var order_amount_promotion_rules_1=require("./resources/order_amount_promotion_rules");Object.defineProperty(exports,"OrderAmountPromotionRules",{enumerable:!0,get:function(){return __importDefault(order_amount_promotion_rules_1).default}});var order_copies_1=require("./resources/order_copies");Object.defineProperty(exports,"OrderCopies",{enumerable:!0,get:function(){return __importDefault(order_copies_1).default}});var order_subscriptions_1=require("./resources/order_subscriptions");Object.defineProperty(exports,"OrderSubscriptions",{enumerable:!0,get:function(){return __importDefault(order_subscriptions_1).default}});var order_validation_rules_1=require("./resources/order_validation_rules");Object.defineProperty(exports,"OrderValidationRules",{enumerable:!0,get:function(){return __importDefault(order_validation_rules_1).default}});var orders_1=require("./resources/orders");Object.defineProperty(exports,"Orders",{enumerable:!0,get:function(){return __importDefault(orders_1).default}});var organization_1=require("./resources/organization");Object.defineProperty(exports,"Organizations",{enumerable:!0,get:function(){return __importDefault(organization_1).default}});var packages_1=require("./resources/packages");Object.defineProperty(exports,"Packages",{enumerable:!0,get:function(){return __importDefault(packages_1).default}});var parcel_line_items_1=require("./resources/parcel_line_items");Object.defineProperty(exports,"ParcelLineItems",{enumerable:!0,get:function(){return __importDefault(parcel_line_items_1).default}});var parcels_1=require("./resources/parcels");Object.defineProperty(exports,"Parcels",{enumerable:!0,get:function(){return __importDefault(parcels_1).default}});var payment_gateways_1=require("./resources/payment_gateways");Object.defineProperty(exports,"PaymentGateways",{enumerable:!0,get:function(){return __importDefault(payment_gateways_1).default}});var payment_methods_1=require("./resources/payment_methods");Object.defineProperty(exports,"PaymentMethods",{enumerable:!0,get:function(){return __importDefault(payment_methods_1).default}});var paypal_gateways_1=require("./resources/paypal_gateways");Object.defineProperty(exports,"PaypalGateways",{enumerable:!0,get:function(){return __importDefault(paypal_gateways_1).default}});var paypal_payments_1=require("./resources/paypal_payments");Object.defineProperty(exports,"PaypalPayments",{enumerable:!0,get:function(){return __importDefault(paypal_payments_1).default}});var percentage_discount_promotions_1=require("./resources/percentage_discount_promotions");Object.defineProperty(exports,"PercentageDiscountPromotions",{enumerable:!0,get:function(){return __importDefault(percentage_discount_promotions_1).default}});var price_lists_1=require("./resources/price_lists");Object.defineProperty(exports,"PriceLists",{enumerable:!0,get:function(){return __importDefault(price_lists_1).default}});var prices_1=require("./resources/prices");Object.defineProperty(exports,"Prices",{enumerable:!0,get:function(){return __importDefault(prices_1).default}});var promotion_rules_1=require("./resources/promotion_rules");Object.defineProperty(exports,"PromotionRules",{enumerable:!0,get:function(){return __importDefault(promotion_rules_1).default}});var promotions_1=require("./resources/promotions");Object.defineProperty(exports,"Promotions",{enumerable:!0,get:function(){return __importDefault(promotions_1).default}});var refunds_1=require("./resources/refunds");Object.defineProperty(exports,"Refunds",{enumerable:!0,get:function(){return __importDefault(refunds_1).default}});var return_line_items_1=require("./resources/return_line_items");Object.defineProperty(exports,"ReturnLineItems",{enumerable:!0,get:function(){return __importDefault(return_line_items_1).default}});var returns_1=require("./resources/returns");Object.defineProperty(exports,"Returns",{enumerable:!0,get:function(){return __importDefault(returns_1).default}});var shipments_1=require("./resources/shipments");Object.defineProperty(exports,"Shipments",{enumerable:!0,get:function(){return __importDefault(shipments_1).default}});var shipping_categories_1=require("./resources/shipping_categories");Object.defineProperty(exports,"ShippingCategories",{enumerable:!0,get:function(){return __importDefault(shipping_categories_1).default}});var shipping_methods_1=require("./resources/shipping_methods");Object.defineProperty(exports,"ShippingMethods",{enumerable:!0,get:function(){return __importDefault(shipping_methods_1).default}});var shipping_zones_1=require("./resources/shipping_zones");Object.defineProperty(exports,"ShippingZones",{enumerable:!0,get:function(){return __importDefault(shipping_zones_1).default}});var sku_list_items_1=require("./resources/sku_list_items");Object.defineProperty(exports,"SkuListItems",{enumerable:!0,get:function(){return __importDefault(sku_list_items_1).default}});var sku_list_promotion_rules_1=require("./resources/sku_list_promotion_rules");Object.defineProperty(exports,"SkuListPromotionRules",{enumerable:!0,get:function(){return __importDefault(sku_list_promotion_rules_1).default}});var sku_lists_1=require("./resources/sku_lists");Object.defineProperty(exports,"SkuLists",{enumerable:!0,get:function(){return __importDefault(sku_lists_1).default}});var sku_options_1=require("./resources/sku_options");Object.defineProperty(exports,"SkuOptions",{enumerable:!0,get:function(){return __importDefault(sku_options_1).default}});var skus_1=require("./resources/skus");Object.defineProperty(exports,"Skus",{enumerable:!0,get:function(){return __importDefault(skus_1).default}});var stock_items_1=require("./resources/stock_items");Object.defineProperty(exports,"StockItems",{enumerable:!0,get:function(){return __importDefault(stock_items_1).default}});var stock_line_items_1=require("./resources/stock_line_items");Object.defineProperty(exports,"StockLineItems",{enumerable:!0,get:function(){return __importDefault(stock_line_items_1).default}});var stock_locations_1=require("./resources/stock_locations");Object.defineProperty(exports,"StockLocations",{enumerable:!0,get:function(){return __importDefault(stock_locations_1).default}});var stock_transfers_1=require("./resources/stock_transfers");Object.defineProperty(exports,"StockTransfers",{enumerable:!0,get:function(){return __importDefault(stock_transfers_1).default}});var stripe_gateways_1=require("./resources/stripe_gateways");Object.defineProperty(exports,"StripeGateways",{enumerable:!0,get:function(){return __importDefault(stripe_gateways_1).default}});var stripe_payments_1=require("./resources/stripe_payments");Object.defineProperty(exports,"StripePayments",{enumerable:!0,get:function(){return __importDefault(stripe_payments_1).default}});var tax_calculators_1=require("./resources/tax_calculators");Object.defineProperty(exports,"TaxCalculators",{enumerable:!0,get:function(){return __importDefault(tax_calculators_1).default}});var tax_categories_1=require("./resources/tax_categories");Object.defineProperty(exports,"TaxCategories",{enumerable:!0,get:function(){return __importDefault(tax_categories_1).default}});var tax_rules_1=require("./resources/tax_rules");Object.defineProperty(exports,"TaxRules",{enumerable:!0,get:function(){return __importDefault(tax_rules_1).default}});var taxjar_accounts_1=require("./resources/taxjar_accounts");Object.defineProperty(exports,"TaxjarAccounts",{enumerable:!0,get:function(){return __importDefault(taxjar_accounts_1).default}});var transactions_1=require("./resources/transactions");Object.defineProperty(exports,"Transactions",{enumerable:!0,get:function(){return __importDefault(transactions_1).default}});var voids_1=require("./resources/voids");Object.defineProperty(exports,"Voids",{enumerable:!0,get:function(){return __importDefault(voids_1).default}});var webhooks_1=require("./resources/webhooks");Object.defineProperty(exports,"Webhooks",{enumerable:!0,get:function(){return __importDefault(webhooks_1).default}});var wire_transfers_1=require("./resources/wire_transfers");Object.defineProperty(exports,"WireTransfers",{enumerable:!0,get:function(){return __importDefault(wire_transfers_1).default}}),exports.resourceList=["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/cjs/client.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";var __classPrivateFieldSet=this&&this.__classPrivateFieldSet||function(t,e,r,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"?t!==e||!a:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?a.call(t,r):a?a.value=r:e.set(t,r),r},__classPrivateFieldGet=this&&this.__classPrivateFieldGet||function(t,e,r,s){if(r==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!s:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?s:r==="a"?s.call(t):s?s.value:e.get(t)},__importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},_ApiClient_accessToken,_ApiClient_client;Object.defineProperty(exports,"__esModule",{value:!0});const axios_1=__importDefault(require("axios")),error_1=require("./error"),config_1=__importDefault(require("./config")),debug_1=__importDefault(require("./debug")),debug=(0,debug_1.default)(),baseURL=(t,e)=>`https://${t.toLowerCase()}.${e||config_1.default.default.domain}/api`,handleError=t=>{let e=new error_1.SdkError({message:t.message,type:error_1.ErrorType.GENERIC});if(axios_1.default.isAxiosError(t))if(t.response){const r=new error_1.ApiError(e);r.type=error_1.ErrorType.RESPONSE,r.status=t.response.status,r.code=String(r.status),r.errors=t.response.data.errors,e=r}else t.request?(e.type=error_1.ErrorType.REQUEST,e.request=t.request):e.type=error_1.ErrorType.CLIENT;else axios_1.default.isCancel(t)?e.type=error_1.ErrorType.CANCEL:e.source=t;throw e};class ApiClient{constructor(e){_ApiClient_accessToken.set(this,void 0),_ApiClient_client.set(this,void 0),debug("new client instance %O",e),this.baseUrl=baseURL(e.organization,e.domain),__classPrivateFieldSet(this,_ApiClient_accessToken,e.accessToken,"f");const r={timeout:e.timeout||config_1.default.client.timeout,proxy:e.proxy,httpAgent:e.httpAgent,httpsAgent:e.httpsAgent},s=Object.assign({baseURL:this.baseUrl,timeout:config_1.default.client.timeout,headers:{Accept:"application/vnd.api+json","Content-Type":"application/vnd.api+json",Authorization:"Bearer "+__classPrivateFieldGet(this,_ApiClient_accessToken,"f")}},r);debug("axios options: %O",s),__classPrivateFieldSet(this,_ApiClient_client,axios_1.default.create(s),"f"),this.interceptors=__classPrivateFieldGet(this,_ApiClient_client,"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 ApiClient(e)}config(e){debug("config %o",e);const r=__classPrivateFieldGet(this,_ApiClient_client,"f").defaults;e.timeout&&(r.timeout=e.timeout),e.proxy&&(r.proxy=e.proxy),e.httpAgent&&(r.httpAgent=e.httpAgent),e.httpsAgent&&(r.httpsAgent=e.httpsAgent),e.organization&&(this.baseUrl=baseURL(e.organization,e.domain)),e.accessToken&&(__classPrivateFieldSet(this,_ApiClient_accessToken,e.accessToken,"f"),r.headers.common.Authorization="Bearer "+__classPrivateFieldGet(this,_ApiClient_accessToken,"f"))}async request(e,r,s,a){debug("request %s %s, %O, %O",e,r,s||{},a||{});const c=s?{data:s}:void 0,u=r,d=(a==null?void 0:a.organization)?baseURL(a.organization,a.domain):void 0,i=(a==null?void 0:a.accessToken)||__classPrivateFieldGet(this,_ApiClient_accessToken,"f"),p=i?{Authorization:"Bearer "+i}:void 0,n=Object.assign({method:e,baseURL:d,url:u,data:c,headers:p},a);return debug("request params: %O",n),__classPrivateFieldGet(this,_ApiClient_client,"f").request(n).then(o=>o.data).catch(o=>handleError(o))}}_ApiClient_accessToken=new WeakMap,_ApiClient_client=new WeakMap,exports.default=ApiClient;
|
package/lib/cjs/commercelayer.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,t,s,i){i===void 0&&(i=s),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,i){i===void 0&&(i=s),e[i]=t[s]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),__importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var s in e)s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)&&__createBinding(t,e,s);return __setModuleDefault(t,e),t},__classPrivateFieldSet=this&&this.__classPrivateFieldSet||function(e,t,s,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(e,s):n?n.value=s:t.set(e,s),s},__classPrivateFieldGet=this&&this.__classPrivateFieldGet||function(e,t,s,i){if(s==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return s==="m"?i:s==="a"?i.call(e):i?i.value:t.get(e)},__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},_CommerceLayerClient_adapter,_CommerceLayerClient_organization;Object.defineProperty(exports,"__esModule",{value:!0});const api=__importStar(require("./api")),static_1=require("./static"),resource_1=__importDefault(require("./resource")),debug_1=__importDefault(require("./debug")),debug=(0,debug_1.default)(),OPEN_API_SCHEMA_VERSION="2.8.1";class CommerceLayerClient{constructor(t){_CommerceLayerClient_adapter.set(this,void 0),_CommerceLayerClient_organization.set(this,void 0),debug("new commercelayer instance %O",t),__classPrivateFieldSet(this,_CommerceLayerClient_adapter,new resource_1.default(t),"f"),__classPrivateFieldSet(this,_CommerceLayerClient_organization,t.organization,"f"),this.addresses=new api.Addresses(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.adjustments=new api.Adjustments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.adyen_gateways=new api.AdyenGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.adyen_payments=new api.AdyenPayments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.application=new api.Applications(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.attachments=new api.Attachments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.authorizations=new api.Authorizations(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.avalara_accounts=new api.AvalaraAccounts(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.billing_info_validation_rules=new api.BillingInfoValidationRules(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.bing_geocoders=new api.BingGeocoders(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.braintree_gateways=new api.BraintreeGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.braintree_payments=new api.BraintreePayments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.bundles=new api.Bundles(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.captures=new api.Captures(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.carrier_accounts=new api.CarrierAccounts(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.checkout_com_gateways=new api.CheckoutComGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.checkout_com_payments=new api.CheckoutComPayments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.coupon_codes_promotion_rules=new api.CouponCodesPromotionRules(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.coupon_recipients=new api.CouponRecipients(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.coupons=new api.Coupons(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.customer_addresses=new api.CustomerAddresses(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.customer_groups=new api.CustomerGroups(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.customer_password_resets=new api.CustomerPasswordResets(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.customer_payment_sources=new api.CustomerPaymentSources(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.customer_subscriptions=new api.CustomerSubscriptions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.customers=new api.Customers(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.delivery_lead_times=new api.DeliveryLeadTimes(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.event_callbacks=new api.EventCallbacks(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.external_gateways=new api.ExternalGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.external_payments=new api.ExternalPayments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.external_promotions=new api.ExternalPromotions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.external_tax_calculators=new api.ExternalTaxCalculators(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.fixed_amount_promotions=new api.FixedAmountPromotions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.fixed_price_promotions=new api.FixedPricePromotions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.free_gift_promotions=new api.FreeGiftPromotions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.free_shipping_promotions=new api.FreeShippingPromotions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.geocoders=new api.Geocoders(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.gift_card_recipients=new api.GiftCardRecipients(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.gift_cards=new api.GiftCards(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.google_geocoders=new api.GoogleGeocoders(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.imports=new api.Imports(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.in_stock_subscriptions=new api.InStockSubscriptions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.inventory_models=new api.InventoryModels(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.inventory_return_locations=new api.InventoryReturnLocations(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.inventory_stock_locations=new api.InventoryStockLocations(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.klarna_gateways=new api.KlarnaGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.klarna_payments=new api.KlarnaPayments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.line_item_options=new api.LineItemOptions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.line_items=new api.LineItems(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.manual_gateways=new api.ManualGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.manual_tax_calculators=new api.ManualTaxCalculators(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.markets=new api.Markets(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.merchants=new api.Merchants(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.order_amount_promotion_rules=new api.OrderAmountPromotionRules(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.order_copies=new api.OrderCopies(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.order_subscriptions=new api.OrderSubscriptions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.order_validation_rules=new api.OrderValidationRules(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.orders=new api.Orders(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.organization=new api.Organizations(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.packages=new api.Packages(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.parcel_line_items=new api.ParcelLineItems(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.parcels=new api.Parcels(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.payment_gateways=new api.PaymentGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.payment_methods=new api.PaymentMethods(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.paypal_gateways=new api.PaypalGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.paypal_payments=new api.PaypalPayments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.percentage_discount_promotions=new api.PercentageDiscountPromotions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.price_lists=new api.PriceLists(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.prices=new api.Prices(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.promotion_rules=new api.PromotionRules(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.promotions=new api.Promotions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.refunds=new api.Refunds(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.return_line_items=new api.ReturnLineItems(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.returns=new api.Returns(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.shipments=new api.Shipments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.shipping_categories=new api.ShippingCategories(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.shipping_methods=new api.ShippingMethods(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.shipping_zones=new api.ShippingZones(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.sku_list_items=new api.SkuListItems(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.sku_list_promotion_rules=new api.SkuListPromotionRules(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.sku_lists=new api.SkuLists(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.sku_options=new api.SkuOptions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.skus=new api.Skus(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.stock_items=new api.StockItems(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.stock_line_items=new api.StockLineItems(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.stock_locations=new api.StockLocations(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.stock_transfers=new api.StockTransfers(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.stripe_gateways=new api.StripeGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.stripe_payments=new api.StripePayments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.tax_calculators=new api.TaxCalculators(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.tax_categories=new api.TaxCategories(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.tax_rules=new api.TaxRules(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.taxjar_accounts=new api.TaxjarAccounts(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.transactions=new api.Transactions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.voids=new api.Voids(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.webhooks=new api.Webhooks(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.wire_transfers=new api.WireTransfers(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f"))}static get openApiSchemaVersion(){return OPEN_API_SCHEMA_VERSION}get currentOrganization(){return __classPrivateFieldGet(this,_CommerceLayerClient_organization,"f")}localConfig(t){t.organization&&__classPrivateFieldSet(this,_CommerceLayerClient_organization,t.organization,"f")}config(t){debug("config %o",t),this.localConfig(t),__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f").config(t)}resources(){return static_1.CommerceLayerStatic.resources()}isApiError(t){return static_1.CommerceLayerStatic.isApiError(t)}addRequestInterceptor(t,s){return __classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f").interceptors.request.use(t,s)}addResponseInterceptor(t,s){return __classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f").interceptors.response.use(t,s)}removeInterceptor(t,s){return __classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f").interceptors[t].eject(s)}addRawResponseReader(){const t={id:void 0,rawResponse:void 0};function s(n){return t.rawResponse=n==null?void 0:n.data,n}const i=this.addResponseInterceptor(s);return t.id=i,t}removeRawResponseReader(t){const s=typeof t=="number"?t:t.id;if(s)return this.removeInterceptor("response",s)}}_CommerceLayerClient_adapter=new WeakMap,_CommerceLayerClient_organization=new WeakMap;const CommerceLayer=e=>new CommerceLayerClient(e);exports.default=CommerceLayer;
|
package/lib/cjs/common.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isResourceType=exports.isResourceId=void 0;const api_1=require("./api"),isResourceId=e=>e&&e.type&&e.id&&api_1.resourceList.includes(e.type);exports.isResourceId=isResourceId;const isResourceType=e=>e&&typeof e.type!="undefined"&&e.type&&api_1.resourceList.includes(e.type);exports.isResourceType=isResourceType;
|
package/lib/cjs/config.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const config={default:{domain:"commercelayer.io",pageNumber:1,pageSize:10},client:{timeout:15e3}};exports.default=config;
|
package/lib/cjs/debug.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const debuggerFunction=(e,...r)=>{};let debuggerFactory=e=>debuggerFunction;try{const e=require("debug");e&&typeof e=="function"&&(debuggerFactory=e)}catch{}const debugPrefix="clsdk",caller=()=>{const e=new Error;Error.prepareStackTrace=(c,t)=>t;const r=e.stack;return Error.prepareStackTrace=void 0,(r[2].getFileName()||"/").replace(/^.*[\\/]/,"").replace(".ts","")},debug=e=>debuggerFactory(`${debugPrefix}:${e||caller()}`);exports.default=debug;
|
package/lib/cjs/error.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ErrorType=exports.ApiError=exports.SdkError=void 0;var ErrorType;(function(e){e.CLIENT="client",e.REQUEST="request",e.RESPONSE="response",e.GENERIC="generic",e.CANCEL="cancel"})(ErrorType||(ErrorType={})),exports.ErrorType=ErrorType;class SdkError extends Error{constructor(r){super(r.message);this.name=this.constructor.name,this.type=r.type||ErrorType.GENERIC}static isSdkError(r){return r&&["SdkError","ApiError"].includes(r.name)&&Object.values(ErrorType).includes(r.type)}}exports.SdkError=SdkError;class ApiError extends SdkError{constructor(r){super(Object.assign(Object.assign({},r),{type:ErrorType.RESPONSE}));this.errors=[],this.name=this.constructor.name}static isApiError(r){return SdkError.isSdkError(r)&&r.name==="ApiError"&&r.type===ErrorType.RESPONSE}first(){var r;return((r=this.errors)===null||r===void 0?void 0:r.length)>0?this.errors[0]:void 0}}exports.ApiError=ApiError;
|