@commercelayer/sdk 5.0.0-beta.14 → 5.0.0-beta.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/api.d.ts +15 -10
- package/lib/cjs/client.d.ts +3 -5
- package/lib/cjs/commercelayer.d.ts +2 -2
- package/lib/cjs/commercelayer.js +2 -2
- package/lib/cjs/common.d.ts +1 -3
- package/lib/cjs/index.d.ts +1 -2
- package/lib/cjs/index.js +0 -16
- package/lib/cjs/query.d.ts +5 -13
- package/lib/cjs/resource.d.ts +4 -5
- package/lib/cjs/resources/addresses.d.ts +2 -1
- package/lib/cjs/resources/adjustments.d.ts +2 -1
- package/lib/cjs/resources/adyen_gateways.d.ts +2 -1
- package/lib/cjs/resources/adyen_payments.d.ts +2 -1
- package/lib/cjs/resources/application.d.ts +2 -1
- package/lib/cjs/resources/attachments.d.ts +2 -1
- package/lib/cjs/resources/authorizations.d.ts +2 -1
- package/lib/cjs/resources/avalara_accounts.d.ts +2 -1
- package/lib/cjs/resources/axerve_gateways.d.ts +2 -1
- package/lib/cjs/resources/axerve_payments.d.ts +2 -1
- package/lib/cjs/resources/billing_info_validation_rules.d.ts +2 -1
- package/lib/cjs/resources/bing_geocoders.d.ts +2 -1
- package/lib/cjs/resources/braintree_gateways.d.ts +2 -1
- package/lib/cjs/resources/braintree_payments.d.ts +2 -1
- package/lib/cjs/resources/bundles.d.ts +2 -1
- package/lib/cjs/resources/captures.d.ts +2 -1
- package/lib/cjs/resources/carrier_accounts.d.ts +2 -1
- package/lib/cjs/resources/checkout_com_gateways.d.ts +2 -1
- package/lib/cjs/resources/checkout_com_payments.d.ts +2 -1
- package/lib/cjs/resources/cleanups.d.ts +2 -1
- package/lib/cjs/resources/coupon_codes_promotion_rules.d.ts +2 -1
- package/lib/cjs/resources/coupon_recipients.d.ts +2 -1
- package/lib/cjs/resources/coupons.d.ts +2 -1
- package/lib/cjs/resources/customer_addresses.d.ts +2 -1
- package/lib/cjs/resources/customer_groups.d.ts +2 -1
- package/lib/cjs/resources/customer_password_resets.d.ts +2 -1
- package/lib/cjs/resources/customer_payment_sources.d.ts +2 -1
- package/lib/cjs/resources/customer_subscriptions.d.ts +2 -1
- package/lib/cjs/resources/customers.d.ts +2 -1
- package/lib/cjs/resources/delivery_lead_times.d.ts +2 -1
- package/lib/cjs/resources/event_callbacks.d.ts +2 -1
- package/lib/cjs/resources/events.d.ts +2 -1
- package/lib/cjs/resources/exports.d.ts +2 -1
- package/lib/cjs/resources/external_gateways.d.ts +2 -1
- package/lib/cjs/resources/external_payments.d.ts +2 -1
- package/lib/cjs/resources/external_promotions.d.ts +2 -1
- package/lib/cjs/resources/external_tax_calculators.d.ts +2 -1
- package/lib/cjs/resources/fixed_amount_promotions.d.ts +2 -1
- package/lib/cjs/resources/fixed_price_promotions.d.ts +2 -1
- package/lib/cjs/resources/free_gift_promotions.d.ts +2 -1
- package/lib/cjs/resources/free_shipping_promotions.d.ts +2 -1
- package/lib/cjs/resources/geocoders.d.ts +2 -1
- package/lib/cjs/resources/gift_card_recipients.d.ts +2 -1
- package/lib/cjs/resources/gift_cards.d.ts +2 -1
- package/lib/cjs/resources/google_geocoders.d.ts +2 -1
- package/lib/cjs/resources/imports.d.ts +2 -1
- package/lib/cjs/resources/in_stock_subscriptions.d.ts +2 -1
- package/lib/cjs/resources/inventory_models.d.ts +2 -1
- package/lib/cjs/resources/inventory_return_locations.d.ts +2 -1
- package/lib/cjs/resources/inventory_stock_locations.d.ts +2 -1
- package/lib/cjs/resources/klarna_gateways.d.ts +2 -1
- package/lib/cjs/resources/klarna_payments.d.ts +2 -1
- package/lib/cjs/resources/line_item_options.d.ts +2 -1
- package/lib/cjs/resources/line_items.d.ts +2 -1
- package/lib/cjs/resources/manual_gateways.d.ts +2 -1
- package/lib/cjs/resources/manual_tax_calculators.d.ts +2 -1
- package/lib/cjs/resources/markets.d.ts +2 -1
- package/lib/cjs/resources/merchants.d.ts +2 -1
- package/lib/cjs/resources/order_amount_promotion_rules.d.ts +2 -1
- package/lib/cjs/resources/order_copies.d.ts +2 -1
- package/lib/cjs/resources/order_factories.d.ts +2 -1
- package/lib/cjs/resources/order_subscription_items.d.ts +2 -1
- package/lib/cjs/resources/order_subscriptions.d.ts +2 -1
- package/lib/cjs/resources/order_validation_rules.d.ts +2 -1
- package/lib/cjs/resources/orders.d.ts +2 -1
- package/lib/cjs/resources/organization.d.ts +2 -1
- package/lib/cjs/resources/packages.d.ts +2 -1
- package/lib/cjs/resources/parcel_line_items.d.ts +2 -1
- package/lib/cjs/resources/parcels.d.ts +2 -1
- package/lib/cjs/resources/payment_gateways.d.ts +2 -1
- package/lib/cjs/resources/payment_methods.d.ts +2 -1
- package/lib/cjs/resources/paypal_gateways.d.ts +2 -1
- package/lib/cjs/resources/paypal_payments.d.ts +2 -1
- package/lib/cjs/resources/percentage_discount_promotions.d.ts +2 -1
- package/lib/cjs/resources/price_frequency_tiers.d.ts +2 -1
- package/lib/cjs/resources/price_lists.d.ts +2 -1
- package/lib/cjs/resources/price_tiers.d.ts +2 -1
- package/lib/cjs/resources/price_volume_tiers.d.ts +2 -1
- package/lib/cjs/resources/prices.d.ts +2 -1
- package/lib/cjs/resources/promotion_rules.d.ts +2 -1
- package/lib/cjs/resources/promotions.d.ts +2 -1
- package/lib/cjs/resources/recurring_order_copies.d.ts +2 -1
- package/lib/cjs/resources/refunds.d.ts +2 -1
- package/lib/cjs/resources/return_line_items.d.ts +2 -1
- package/lib/cjs/resources/returns.d.ts +2 -1
- package/lib/cjs/resources/satispay_gateways.d.ts +2 -1
- package/lib/cjs/resources/satispay_payments.d.ts +2 -1
- package/lib/cjs/resources/shipments.d.ts +2 -1
- package/lib/cjs/resources/shipping_categories.d.ts +2 -1
- package/lib/cjs/resources/shipping_method_tiers.d.ts +2 -1
- package/lib/cjs/resources/shipping_methods.d.ts +2 -1
- package/lib/cjs/resources/shipping_weight_tiers.d.ts +2 -1
- package/lib/cjs/resources/shipping_zones.d.ts +2 -1
- package/lib/cjs/resources/sku_list_items.d.ts +2 -1
- package/lib/cjs/resources/sku_list_promotion_rules.d.ts +2 -1
- package/lib/cjs/resources/sku_lists.d.ts +2 -1
- package/lib/cjs/resources/sku_options.d.ts +2 -1
- package/lib/cjs/resources/skus.d.ts +2 -1
- package/lib/cjs/resources/stock_items.d.ts +2 -1
- package/lib/cjs/resources/stock_line_items.d.ts +2 -1
- package/lib/cjs/resources/stock_locations.d.ts +2 -1
- package/lib/cjs/resources/stock_transfers.d.ts +2 -1
- package/lib/cjs/resources/stripe_gateways.d.ts +2 -1
- package/lib/cjs/resources/stripe_payments.d.ts +2 -1
- package/lib/cjs/resources/subscription_models.d.ts +2 -1
- package/lib/cjs/resources/tax_calculators.d.ts +2 -1
- package/lib/cjs/resources/tax_categories.d.ts +2 -1
- package/lib/cjs/resources/tax_rules.d.ts +2 -1
- package/lib/cjs/resources/taxjar_accounts.d.ts +2 -1
- package/lib/cjs/resources/transactions.d.ts +2 -1
- package/lib/cjs/resources/voids.d.ts +2 -1
- package/lib/cjs/resources/webhooks.d.ts +2 -1
- package/lib/cjs/resources/wire_transfers.d.ts +2 -1
- package/lib/esm/api.d.ts +15 -10
- package/lib/esm/client.d.ts +3 -5
- package/lib/esm/commercelayer.d.ts +2 -2
- package/lib/esm/commercelayer.js +2 -2
- package/lib/esm/common.d.ts +1 -3
- package/lib/esm/index.d.ts +1 -2
- package/lib/esm/index.js +0 -2
- package/lib/esm/query.d.ts +5 -13
- package/lib/esm/resource.d.ts +4 -5
- package/lib/esm/resources/addresses.d.ts +2 -1
- package/lib/esm/resources/adjustments.d.ts +2 -1
- package/lib/esm/resources/adyen_gateways.d.ts +2 -1
- package/lib/esm/resources/adyen_payments.d.ts +2 -1
- package/lib/esm/resources/application.d.ts +2 -1
- package/lib/esm/resources/attachments.d.ts +2 -1
- package/lib/esm/resources/authorizations.d.ts +2 -1
- package/lib/esm/resources/avalara_accounts.d.ts +2 -1
- package/lib/esm/resources/axerve_gateways.d.ts +2 -1
- package/lib/esm/resources/axerve_payments.d.ts +2 -1
- package/lib/esm/resources/billing_info_validation_rules.d.ts +2 -1
- package/lib/esm/resources/bing_geocoders.d.ts +2 -1
- package/lib/esm/resources/braintree_gateways.d.ts +2 -1
- package/lib/esm/resources/braintree_payments.d.ts +2 -1
- package/lib/esm/resources/bundles.d.ts +2 -1
- package/lib/esm/resources/captures.d.ts +2 -1
- package/lib/esm/resources/carrier_accounts.d.ts +2 -1
- package/lib/esm/resources/checkout_com_gateways.d.ts +2 -1
- package/lib/esm/resources/checkout_com_payments.d.ts +2 -1
- package/lib/esm/resources/cleanups.d.ts +2 -1
- package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +2 -1
- package/lib/esm/resources/coupon_recipients.d.ts +2 -1
- package/lib/esm/resources/coupons.d.ts +2 -1
- package/lib/esm/resources/customer_addresses.d.ts +2 -1
- package/lib/esm/resources/customer_groups.d.ts +2 -1
- package/lib/esm/resources/customer_password_resets.d.ts +2 -1
- package/lib/esm/resources/customer_payment_sources.d.ts +2 -1
- package/lib/esm/resources/customer_subscriptions.d.ts +2 -1
- package/lib/esm/resources/customers.d.ts +2 -1
- package/lib/esm/resources/delivery_lead_times.d.ts +2 -1
- package/lib/esm/resources/event_callbacks.d.ts +2 -1
- package/lib/esm/resources/events.d.ts +2 -1
- package/lib/esm/resources/exports.d.ts +2 -1
- package/lib/esm/resources/external_gateways.d.ts +2 -1
- package/lib/esm/resources/external_payments.d.ts +2 -1
- package/lib/esm/resources/external_promotions.d.ts +2 -1
- package/lib/esm/resources/external_tax_calculators.d.ts +2 -1
- package/lib/esm/resources/fixed_amount_promotions.d.ts +2 -1
- package/lib/esm/resources/fixed_price_promotions.d.ts +2 -1
- package/lib/esm/resources/free_gift_promotions.d.ts +2 -1
- package/lib/esm/resources/free_shipping_promotions.d.ts +2 -1
- package/lib/esm/resources/geocoders.d.ts +2 -1
- package/lib/esm/resources/gift_card_recipients.d.ts +2 -1
- package/lib/esm/resources/gift_cards.d.ts +2 -1
- package/lib/esm/resources/google_geocoders.d.ts +2 -1
- package/lib/esm/resources/imports.d.ts +2 -1
- package/lib/esm/resources/in_stock_subscriptions.d.ts +2 -1
- package/lib/esm/resources/inventory_models.d.ts +2 -1
- package/lib/esm/resources/inventory_return_locations.d.ts +2 -1
- package/lib/esm/resources/inventory_stock_locations.d.ts +2 -1
- package/lib/esm/resources/klarna_gateways.d.ts +2 -1
- package/lib/esm/resources/klarna_payments.d.ts +2 -1
- package/lib/esm/resources/line_item_options.d.ts +2 -1
- package/lib/esm/resources/line_items.d.ts +2 -1
- package/lib/esm/resources/manual_gateways.d.ts +2 -1
- package/lib/esm/resources/manual_tax_calculators.d.ts +2 -1
- package/lib/esm/resources/markets.d.ts +2 -1
- package/lib/esm/resources/merchants.d.ts +2 -1
- package/lib/esm/resources/order_amount_promotion_rules.d.ts +2 -1
- package/lib/esm/resources/order_copies.d.ts +2 -1
- package/lib/esm/resources/order_factories.d.ts +2 -1
- package/lib/esm/resources/order_subscription_items.d.ts +2 -1
- package/lib/esm/resources/order_subscriptions.d.ts +2 -1
- package/lib/esm/resources/order_validation_rules.d.ts +2 -1
- package/lib/esm/resources/orders.d.ts +2 -1
- package/lib/esm/resources/organization.d.ts +2 -1
- package/lib/esm/resources/packages.d.ts +2 -1
- package/lib/esm/resources/parcel_line_items.d.ts +2 -1
- package/lib/esm/resources/parcels.d.ts +2 -1
- package/lib/esm/resources/payment_gateways.d.ts +2 -1
- package/lib/esm/resources/payment_methods.d.ts +2 -1
- package/lib/esm/resources/paypal_gateways.d.ts +2 -1
- package/lib/esm/resources/paypal_payments.d.ts +2 -1
- package/lib/esm/resources/percentage_discount_promotions.d.ts +2 -1
- package/lib/esm/resources/price_frequency_tiers.d.ts +2 -1
- package/lib/esm/resources/price_lists.d.ts +2 -1
- package/lib/esm/resources/price_tiers.d.ts +2 -1
- package/lib/esm/resources/price_volume_tiers.d.ts +2 -1
- package/lib/esm/resources/prices.d.ts +2 -1
- package/lib/esm/resources/promotion_rules.d.ts +2 -1
- package/lib/esm/resources/promotions.d.ts +2 -1
- package/lib/esm/resources/recurring_order_copies.d.ts +2 -1
- package/lib/esm/resources/refunds.d.ts +2 -1
- package/lib/esm/resources/return_line_items.d.ts +2 -1
- package/lib/esm/resources/returns.d.ts +2 -1
- package/lib/esm/resources/satispay_gateways.d.ts +2 -1
- package/lib/esm/resources/satispay_payments.d.ts +2 -1
- package/lib/esm/resources/shipments.d.ts +2 -1
- package/lib/esm/resources/shipping_categories.d.ts +2 -1
- package/lib/esm/resources/shipping_method_tiers.d.ts +2 -1
- package/lib/esm/resources/shipping_methods.d.ts +2 -1
- package/lib/esm/resources/shipping_weight_tiers.d.ts +2 -1
- package/lib/esm/resources/shipping_zones.d.ts +2 -1
- package/lib/esm/resources/sku_list_items.d.ts +2 -1
- package/lib/esm/resources/sku_list_promotion_rules.d.ts +2 -1
- package/lib/esm/resources/sku_lists.d.ts +2 -1
- package/lib/esm/resources/sku_options.d.ts +2 -1
- package/lib/esm/resources/skus.d.ts +2 -1
- package/lib/esm/resources/stock_items.d.ts +2 -1
- package/lib/esm/resources/stock_line_items.d.ts +2 -1
- package/lib/esm/resources/stock_locations.d.ts +2 -1
- package/lib/esm/resources/stock_transfers.d.ts +2 -1
- package/lib/esm/resources/stripe_gateways.d.ts +2 -1
- package/lib/esm/resources/stripe_payments.d.ts +2 -1
- package/lib/esm/resources/subscription_models.d.ts +2 -1
- package/lib/esm/resources/tax_calculators.d.ts +2 -1
- package/lib/esm/resources/tax_categories.d.ts +2 -1
- package/lib/esm/resources/tax_rules.d.ts +2 -1
- package/lib/esm/resources/taxjar_accounts.d.ts +2 -1
- package/lib/esm/resources/transactions.d.ts +2 -1
- package/lib/esm/resources/voids.d.ts +2 -1
- package/lib/esm/resources/webhooks.d.ts +2 -1
- package/lib/esm/resources/wire_transfers.d.ts +2 -1
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
2
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
3
4
|
import type { EventCallback } from './event_callbacks';
|
4
5
|
type WebhookType = 'webhooks';
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel } from '../resource';
|
2
3
|
import type { QueryParamsRetrieve } from '../query';
|
3
4
|
import type { Order, OrderType } from './orders';
|
4
5
|
type WireTransferType = 'wire_transfers';
|
package/lib/esm/api.d.ts
CHANGED
@@ -116,18 +116,23 @@ export { default as Webhooks } from './resources/webhooks';
|
|
116
116
|
export { default as WireTransfers } from './resources/wire_transfers';
|
117
117
|
export type ResourceTypeLock = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'application' | 'attachments' | 'authorizations' | 'avalara_accounts' | 'axerve_gateways' | 'axerve_payments' | 'billing_info_validation_rules' | 'bing_geocoders' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'captures' | 'carrier_accounts' | 'checkout_com_gateways' | 'checkout_com_payments' | 'cleanups' | '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' | 'events' | 'exports' | '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_factories' | 'order_subscription_items' | 'order_subscriptions' | 'order_validation_rules' | 'orders' | 'organization' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_gateways' | 'payment_methods' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_frequency_tiers' | 'price_lists' | 'price_tiers' | 'price_volume_tiers' | 'prices' | 'promotion_rules' | 'promotions' | 'recurring_order_copies' | 'refunds' | 'return_line_items' | 'returns' | 'satispay_gateways' | 'satispay_payments' | 'shipments' | 'shipping_categories' | 'shipping_method_tiers' | 'shipping_methods' | 'shipping_weight_tiers' | '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' | 'subscription_models' | 'tax_calculators' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'transactions' | 'voids' | 'webhooks' | 'wire_transfers';
|
118
118
|
export declare const resourceList: readonly ["addresses", "adjustments", "adyen_gateways", "adyen_payments", "application", "attachments", "authorizations", "avalara_accounts", "axerve_gateways", "axerve_payments", "billing_info_validation_rules", "bing_geocoders", "braintree_gateways", "braintree_payments", "bundles", "captures", "carrier_accounts", "checkout_com_gateways", "checkout_com_payments", "cleanups", "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", "events", "exports", "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_factories", "order_subscription_items", "order_subscriptions", "order_validation_rules", "orders", "organization", "packages", "parcel_line_items", "parcels", "payment_gateways", "payment_methods", "paypal_gateways", "paypal_payments", "percentage_discount_promotions", "price_frequency_tiers", "price_lists", "price_tiers", "price_volume_tiers", "prices", "promotion_rules", "promotions", "recurring_order_copies", "refunds", "return_line_items", "returns", "satispay_gateways", "satispay_payments", "shipments", "shipping_categories", "shipping_method_tiers", "shipping_methods", "shipping_weight_tiers", "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", "subscription_models", "tax_calculators", "tax_categories", "tax_rules", "taxjar_accounts", "transactions", "voids", "webhooks", "wire_transfers"];
|
119
|
-
export type
|
120
|
-
|
119
|
+
export type RetrievableResourceType = ResourceTypeLock;
|
120
|
+
export type RetrievableResource = {
|
121
|
+
type: RetrievableResourceType;
|
121
122
|
};
|
122
|
-
export type
|
123
|
-
|
123
|
+
export type ListableResourceType = Exclude<ResourceTypeLock, 'application' | 'organization'>;
|
124
|
+
export type ListableResource = {
|
125
|
+
type: ListableResourceType;
|
124
126
|
};
|
125
|
-
export type
|
126
|
-
|
127
|
+
export type CreatableResourceType = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'attachments' | 'avalara_accounts' | 'axerve_gateways' | 'axerve_payments' | 'billing_info_validation_rules' | 'bing_geocoders' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'checkout_com_gateways' | 'checkout_com_payments' | 'cleanups' | 'coupon_codes_promotion_rules' | 'coupon_recipients' | 'coupons' | 'customer_addresses' | 'customer_groups' | 'customer_password_resets' | 'customer_payment_sources' | 'customer_subscriptions' | 'customers' | 'delivery_lead_times' | 'exports' | 'external_gateways' | 'external_payments' | 'external_promotions' | 'external_tax_calculators' | 'fixed_amount_promotions' | 'fixed_price_promotions' | 'free_gift_promotions' | 'free_shipping_promotions' | '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_subscription_items' | 'order_subscriptions' | 'orders' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_methods' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_frequency_tiers' | 'price_lists' | 'price_volume_tiers' | 'prices' | 'recurring_order_copies' | 'return_line_items' | 'returns' | 'satispay_gateways' | 'satispay_payments' | 'shipping_categories' | 'shipping_methods' | 'shipping_weight_tiers' | 'shipping_zones' | 'sku_list_items' | 'sku_list_promotion_rules' | 'sku_lists' | 'sku_options' | 'skus' | 'stock_items' | 'stock_locations' | 'stock_transfers' | 'stripe_gateways' | 'stripe_payments' | 'subscription_models' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'webhooks' | 'wire_transfers';
|
128
|
+
export type CreatableResource = {
|
129
|
+
type: CreatableResourceType;
|
127
130
|
};
|
128
|
-
export type
|
129
|
-
|
131
|
+
export type UpdatableResourceType = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'attachments' | 'authorizations' | 'avalara_accounts' | 'axerve_gateways' | 'axerve_payments' | 'billing_info_validation_rules' | 'bing_geocoders' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'captures' | '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' | 'external_gateways' | 'external_payments' | 'external_promotions' | 'external_tax_calculators' | 'fixed_amount_promotions' | 'fixed_price_promotions' | 'free_gift_promotions' | 'free_shipping_promotions' | 'gift_card_recipients' | 'gift_cards' | 'google_geocoders' | '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_subscription_items' | 'order_subscriptions' | 'orders' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_methods' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_frequency_tiers' | 'price_lists' | 'price_volume_tiers' | 'prices' | 'recurring_order_copies' | 'return_line_items' | 'returns' | 'satispay_gateways' | 'satispay_payments' | 'shipments' | 'shipping_categories' | 'shipping_methods' | 'shipping_weight_tiers' | 'shipping_zones' | 'sku_list_items' | 'sku_list_promotion_rules' | 'sku_lists' | 'sku_options' | 'skus' | 'stock_items' | 'stock_locations' | 'stock_transfers' | 'stripe_gateways' | 'stripe_payments' | 'subscription_models' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'webhooks' | 'wire_transfers';
|
132
|
+
export type UpdatableResource = {
|
133
|
+
type: UpdatableResourceType;
|
130
134
|
};
|
131
|
-
export type
|
132
|
-
|
135
|
+
export type DeletableResourceType = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'attachments' | 'avalara_accounts' | 'axerve_gateways' | 'axerve_payments' | 'billing_info_validation_rules' | 'bing_geocoders' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'checkout_com_gateways' | 'checkout_com_payments' | 'cleanups' | 'coupon_codes_promotion_rules' | 'coupon_recipients' | 'coupons' | 'customer_addresses' | 'customer_groups' | 'customer_password_resets' | 'customer_payment_sources' | 'customer_subscriptions' | 'customers' | 'delivery_lead_times' | 'exports' | 'external_gateways' | 'external_payments' | 'external_promotions' | 'external_tax_calculators' | 'fixed_amount_promotions' | 'fixed_price_promotions' | 'free_gift_promotions' | 'free_shipping_promotions' | '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_subscription_items' | 'order_subscriptions' | 'orders' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_methods' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_frequency_tiers' | 'price_lists' | 'price_volume_tiers' | 'prices' | 'recurring_order_copies' | 'return_line_items' | 'returns' | 'satispay_gateways' | 'satispay_payments' | 'shipping_categories' | 'shipping_methods' | 'shipping_weight_tiers' | 'shipping_zones' | 'sku_list_items' | 'sku_list_promotion_rules' | 'sku_lists' | 'sku_options' | 'skus' | 'stock_items' | 'stock_locations' | 'stock_transfers' | 'stripe_gateways' | 'stripe_payments' | 'subscription_models' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'webhooks' | 'wire_transfers';
|
136
|
+
export type DeletableResource = {
|
137
|
+
type: DeletableResourceType;
|
133
138
|
};
|
package/lib/esm/client.d.ts
CHANGED
@@ -1,15 +1,13 @@
|
|
1
1
|
/// <reference types="node" />
|
2
2
|
/// <reference types="node" />
|
3
|
-
import { AxiosProxyConfig, Method } from 'axios';
|
3
|
+
import { type AxiosProxyConfig, type Method } from 'axios';
|
4
4
|
import type { InterceptorManager } from './interceptor';
|
5
5
|
import type { Agent as HttpAgent } from 'http';
|
6
6
|
import type { Agent as HttpsAgent } from 'https';
|
7
7
|
type ProxyConfig = AxiosProxyConfig | false;
|
8
8
|
type RequestConfig = {
|
9
9
|
timeout?: number;
|
10
|
-
params?:
|
11
|
-
[key: string]: string | number | boolean;
|
12
|
-
};
|
10
|
+
params?: Record<string, string | number | boolean>;
|
13
11
|
httpAgent?: HttpAgent;
|
14
12
|
httpsAgent?: HttpsAgent;
|
15
13
|
proxy?: ProxyConfig;
|
@@ -30,4 +28,4 @@ declare class ApiClient {
|
|
30
28
|
request(method: Method, path: string, body?: any, options?: ApiClientConfig): Promise<any>;
|
31
29
|
}
|
32
30
|
export default ApiClient;
|
33
|
-
export { ApiClientInitConfig, ApiClientConfig, RequestConfig };
|
31
|
+
export type { ApiClientInitConfig, ApiClientConfig, RequestConfig };
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import * as api from './api';
|
2
2
|
import type { ApiError } from './error';
|
3
3
|
import type { ErrorInterceptor, InterceptorType, RawResponseReader, RequestInterceptor, ResponseInterceptor } from './interceptor';
|
4
|
-
import type
|
4
|
+
import { type ResourcesInitConfig } from './resource';
|
5
5
|
declare const OPEN_API_SCHEMA_VERSION = "4.1.3";
|
6
6
|
export { OPEN_API_SCHEMA_VERSION };
|
7
|
-
type SdkConfig =
|
7
|
+
type SdkConfig = Record<string, unknown>;
|
8
8
|
type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
|
9
9
|
type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
|
10
10
|
declare class CommerceLayerClient {
|
package/lib/esm/commercelayer.js
CHANGED
@@ -174,7 +174,7 @@ class CommerceLayerClient {
|
|
174
174
|
return __classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f").interceptors.response.use(onFulfilled, onRejected);
|
175
175
|
}
|
176
176
|
removeInterceptor(type, id) {
|
177
|
-
|
177
|
+
__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f").interceptors[type].eject(id);
|
178
178
|
}
|
179
179
|
addRawResponseReader(options) {
|
180
180
|
const reader = {
|
@@ -195,7 +195,7 @@ class CommerceLayerClient {
|
|
195
195
|
removeRawResponseReader(reader) {
|
196
196
|
const id = (typeof reader === 'number') ? reader : reader === null || reader === void 0 ? void 0 : reader.id;
|
197
197
|
if (id && (id >= 0))
|
198
|
-
|
198
|
+
this.removeInterceptor('response', id);
|
199
199
|
}
|
200
200
|
}
|
201
201
|
_CommerceLayerClient_adapter = new WeakMap(), _CommerceLayerClient_organization = new WeakMap();
|
package/lib/esm/common.d.ts
CHANGED
@@ -2,6 +2,4 @@ import type { ResourceId, ResourceType } from './resource';
|
|
2
2
|
declare const isResourceId: (resource: any) => resource is ResourceId;
|
3
3
|
declare const isResourceType: (resource: any) => resource is ResourceType;
|
4
4
|
export { isResourceId, isResourceType };
|
5
|
-
export type ObjectType =
|
6
|
-
[key: string]: any;
|
7
|
-
};
|
5
|
+
export type ObjectType = Record<string, any>;
|
package/lib/esm/index.d.ts
CHANGED
@@ -2,7 +2,6 @@ export { default, CommerceLayer } from './commercelayer';
|
|
2
2
|
export type { CommerceLayerClient } from './commercelayer';
|
3
3
|
export { CommerceLayerStatic } from './static';
|
4
4
|
export type { QueryParamsRetrieve, QueryParamsList, QueryParams } from './query';
|
5
|
-
export * from './model';
|
5
|
+
export type * from './model';
|
6
6
|
export type { RequestObj, ResponseObj, ErrorObj, HeadersObj } from './interceptor';
|
7
7
|
export type { SdkError, ApiError, ErrorType } from './error';
|
8
|
-
export type { ResourceRetrievable, ResourceListable, ResourceCreatable, ResourceUpdatable, ResourceDeletable } from './api';
|
package/lib/esm/index.js
CHANGED
package/lib/esm/query.d.ts
CHANGED
@@ -1,25 +1,17 @@
|
|
1
1
|
import type { ResourceType } from "./resource";
|
2
|
-
type QueryFilter =
|
3
|
-
[key: string]: string | number | boolean;
|
4
|
-
};
|
2
|
+
type QueryFilter = Record<string, string | number | boolean>;
|
5
3
|
interface QueryParamsRetrieve {
|
6
4
|
include?: string[];
|
7
|
-
fields?: string[] |
|
8
|
-
[key: string]: string[];
|
9
|
-
};
|
5
|
+
fields?: string[] | Record<string, string[]>;
|
10
6
|
}
|
11
7
|
interface QueryParamsList extends QueryParamsRetrieve {
|
12
|
-
sort?: string[] |
|
13
|
-
[key: string]: 'asc' | 'desc';
|
14
|
-
};
|
8
|
+
sort?: string[] | Record<string, 'asc' | 'desc'>;
|
15
9
|
filters?: QueryFilter;
|
16
10
|
pageNumber?: number;
|
17
11
|
pageSize?: number;
|
18
12
|
}
|
19
13
|
type QueryParams = QueryParamsRetrieve | QueryParamsList;
|
20
|
-
export { QueryParamsRetrieve, QueryParamsList, QueryParams, QueryFilter };
|
14
|
+
export type { QueryParamsRetrieve, QueryParamsList, QueryParams, QueryFilter };
|
21
15
|
declare const isParamsList: (params: any) => params is QueryParamsList;
|
22
|
-
declare const generateQueryStringParams: (params: QueryParamsRetrieve | QueryParamsList | undefined, res: string | ResourceType) =>
|
23
|
-
[key: string]: string;
|
24
|
-
};
|
16
|
+
declare const generateQueryStringParams: (params: QueryParamsRetrieve | QueryParamsList | undefined, res: string | ResourceType) => Record<string, string>;
|
25
17
|
export { generateQueryStringParams, isParamsList };
|
package/lib/esm/resource.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type
|
1
|
+
import { type ApiClientInitConfig } from './client';
|
2
2
|
import type { QueryParamsRetrieve, QueryParamsList, QueryFilter, QueryParams } from './query';
|
3
3
|
import type { ResourceTypeLock } from './api';
|
4
4
|
import type { InterceptorManager } from './interceptor';
|
@@ -6,9 +6,7 @@ type ResourceNull = {
|
|
6
6
|
id: null;
|
7
7
|
} & ResourceType;
|
8
8
|
type ResourceRel = ResourceId | ResourceNull;
|
9
|
-
type Metadata =
|
10
|
-
[key: string]: any;
|
11
|
-
};
|
9
|
+
type Metadata = Record<string, any>;
|
12
10
|
interface ResourceType {
|
13
11
|
readonly type: ResourceTypeLock;
|
14
12
|
}
|
@@ -83,4 +81,5 @@ declare abstract class ApiSingleton<R extends Resource> extends ApiResourceBase<
|
|
83
81
|
retrieve(params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<R>;
|
84
82
|
}
|
85
83
|
export default ResourceAdapter;
|
86
|
-
export { ApiResource, ApiSingleton
|
84
|
+
export { ApiResource, ApiSingleton };
|
85
|
+
export type { ResourcesConfig, ResourcesInitConfig };
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel } from '../resource';
|
2
3
|
import type { QueryParamsRetrieve } from '../query';
|
3
4
|
import type { Geocoder, GeocoderType } from './geocoders';
|
4
5
|
type AddressType = 'addresses';
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel } from '../resource';
|
2
3
|
import type { QueryParamsRetrieve } from '../query';
|
3
4
|
type AdjustmentType = 'adjustments';
|
4
5
|
type AdjustmentRel = ResourceRel & {
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
2
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
3
4
|
import type { PaymentMethod } from './payment_methods';
|
4
5
|
import type { AdyenPayment, AdyenPaymentType } from './adyen_payments';
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel } from '../resource';
|
2
3
|
import type { QueryParamsRetrieve } from '../query';
|
3
4
|
import type { Order, OrderType } from './orders';
|
4
5
|
import type { PaymentGateway } from './payment_gateways';
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiSingleton
|
1
|
+
import { ApiSingleton } from '../resource';
|
2
|
+
import type { Resource, ResourceId, ResourceRel } from '../resource';
|
2
3
|
type ApplicationType = 'application';
|
3
4
|
type ApplicationRel = ResourceRel & {
|
4
5
|
type: ApplicationType;
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel } from '../resource';
|
2
3
|
import type { QueryParamsRetrieve } from '../query';
|
3
4
|
import type { Bundle, BundleType } from './bundles';
|
4
5
|
import type { CarrierAccount, CarrierAccountType } from './carrier_accounts';
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
2
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
3
4
|
import type { Order } from './orders';
|
4
5
|
import type { Capture } from './captures';
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
2
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
3
4
|
import type { Market } from './markets';
|
4
5
|
import type { Attachment } from './attachments';
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
2
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
3
4
|
import type { PaymentMethod } from './payment_methods';
|
4
5
|
import type { AxervePayment, AxervePaymentType } from './axerve_payments';
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel } from '../resource';
|
2
3
|
import type { QueryParamsRetrieve } from '../query';
|
3
4
|
import type { Order, OrderType } from './orders';
|
4
5
|
import type { PaymentGateway } from './payment_gateways';
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
2
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
3
4
|
import type { Market, MarketType } from './markets';
|
4
5
|
import type { Attachment } from './attachments';
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
2
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
3
4
|
import type { Address } from './addresses';
|
4
5
|
import type { Attachment } from './attachments';
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
2
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
3
4
|
import type { PaymentMethod } from './payment_methods';
|
4
5
|
import type { BraintreePayment, BraintreePaymentType } from './braintree_payments';
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel } from '../resource';
|
2
3
|
import type { QueryParamsRetrieve } from '../query';
|
3
4
|
import type { Order, OrderType } from './orders';
|
4
5
|
import type { PaymentGateway } from './payment_gateways';
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
2
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
3
4
|
import type { Market, MarketType } from './markets';
|
4
5
|
import type { SkuList, SkuListType } from './sku_lists';
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
2
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
3
4
|
import type { Order } from './orders';
|
4
5
|
import type { Authorization } from './authorizations';
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
2
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
3
4
|
import type { Market } from './markets';
|
4
5
|
import type { Attachment } from './attachments';
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
2
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
3
4
|
import type { PaymentMethod } from './payment_methods';
|
4
5
|
import type { CheckoutComPayment, CheckoutComPaymentType } from './checkout_com_payments';
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel } from '../resource';
|
2
3
|
import type { QueryParamsRetrieve } from '../query';
|
3
4
|
import type { Order, OrderType } from './orders';
|
4
5
|
import type { PaymentGateway } from './payment_gateways';
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceCreate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
2
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
3
4
|
import type { Event } from './events';
|
4
5
|
type CleanupType = 'cleanups';
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
2
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
3
4
|
import type { PercentageDiscountPromotion, PercentageDiscountPromotionType } from './percentage_discount_promotions';
|
4
5
|
import type { FreeShippingPromotion, FreeShippingPromotionType } from './free_shipping_promotions';
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
2
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
3
4
|
import type { Customer, CustomerType } from './customers';
|
4
5
|
import type { Attachment } from './attachments';
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel } from '../resource';
|
2
3
|
import type { QueryParamsRetrieve } from '../query';
|
3
4
|
import type { CouponCodesPromotionRule, CouponCodesPromotionRuleType } from './coupon_codes_promotion_rules';
|
4
5
|
type CouponType = 'coupons';
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
2
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
3
4
|
import type { Customer, CustomerType } from './customers';
|
4
5
|
import type { Address, AddressType } from './addresses';
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
2
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
3
4
|
import type { Customer } from './customers';
|
4
5
|
import type { Market } from './markets';
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
2
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
3
4
|
import type { Customer } from './customers';
|
4
5
|
import type { Event } from './events';
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel } from '../resource';
|
2
3
|
import type { QueryParamsRetrieve } from '../query';
|
3
4
|
import type { Customer, CustomerType } from './customers';
|
4
5
|
import type { AdyenPayment, AdyenPaymentType } from './adyen_payments';
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
2
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
3
4
|
import type { Customer } from './customers';
|
4
5
|
import type { Event } from './events';
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
2
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
3
4
|
import type { CustomerGroup, CustomerGroupType } from './customer_groups';
|
4
5
|
import type { CustomerAddress } from './customer_addresses';
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
2
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
3
4
|
import type { StockLocation, StockLocationType } from './stock_locations';
|
4
5
|
import type { ShippingMethod, ShippingMethodType } from './shipping_methods';
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceId, ResourcesConfig, ResourceRel } from '../resource';
|
2
3
|
import type { QueryParamsRetrieve } from '../query';
|
3
4
|
import type { Webhook } from './webhooks';
|
4
5
|
type EventCallbackType = 'event_callbacks';
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
2
3
|
import type { QueryParamsList } from '../query';
|
3
4
|
import type { EventCallback } from './event_callbacks';
|
4
5
|
import type { Webhook } from './webhooks';
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceCreate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
2
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
3
4
|
import type { Event } from './events';
|
4
5
|
type ExportType = 'exports';
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
2
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
3
4
|
import type { PaymentMethod } from './payment_methods';
|
4
5
|
import type { ExternalPayment } from './external_payments';
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel } from '../resource';
|
2
3
|
import type { QueryParamsRetrieve } from '../query';
|
3
4
|
import type { Order, OrderType } from './orders';
|
4
5
|
import type { PaymentGateway } from './payment_gateways';
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
2
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
3
4
|
import type { Market, MarketType } from './markets';
|
4
5
|
import type { PromotionRule, PromotionRuleType } from './promotion_rules';
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
2
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
3
4
|
import type { Market } from './markets';
|
4
5
|
import type { Attachment } from './attachments';
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
2
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
3
4
|
import type { Market, MarketType } from './markets';
|
4
5
|
import type { PromotionRule, PromotionRuleType } from './promotion_rules';
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
2
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
3
4
|
import type { Market, MarketType } from './markets';
|
4
5
|
import type { PromotionRule, PromotionRuleType } from './promotion_rules';
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
2
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
3
4
|
import type { Market, MarketType } from './markets';
|
4
5
|
import type { PromotionRule, PromotionRuleType } from './promotion_rules';
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
2
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
3
4
|
import type { Market, MarketType } from './markets';
|
4
5
|
import type { PromotionRule, PromotionRuleType } from './promotion_rules';
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ApiResource
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
2
3
|
import type { QueryParamsList } from '../query';
|
3
4
|
import type { Address } from './addresses';
|
4
5
|
import type { Attachment } from './attachments';
|