@commercelayer/sdk 2.3.7 → 2.3.11
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 +1 -1
- package/lib/cjs/client.js +1 -1
- package/lib/cjs/common.js +1 -1
- package/lib/cjs/config.d.ts +7 -3
- package/lib/cjs/config.js +1 -1
- package/lib/cjs/error.js +1 -1
- package/lib/cjs/model.d.ts +1 -1
- package/lib/cjs/query.d.ts +0 -35
- package/lib/cjs/query.js +1 -1
- package/lib/cjs/resource.js +1 -1
- package/lib/cjs/resources/addresses.d.ts +1 -1
- package/lib/cjs/resources/adjustments.d.ts +1 -1
- package/lib/cjs/resources/adyen_gateways.d.ts +1 -1
- package/lib/cjs/resources/adyen_payments.d.ts +1 -1
- package/lib/cjs/resources/application.d.ts +1 -1
- package/lib/cjs/resources/attachments.d.ts +1 -1
- package/lib/cjs/resources/authorizations.d.ts +1 -1
- package/lib/cjs/resources/avalara_accounts.d.ts +1 -1
- package/lib/cjs/resources/billing_info_validation_rules.d.ts +1 -1
- package/lib/cjs/resources/bing_geocoders.d.ts +1 -1
- package/lib/cjs/resources/braintree_gateways.d.ts +1 -1
- package/lib/cjs/resources/braintree_payments.d.ts +1 -1
- package/lib/cjs/resources/bundles.d.ts +1 -1
- package/lib/cjs/resources/captures.d.ts +1 -1
- package/lib/cjs/resources/carrier_accounts.d.ts +1 -1
- package/lib/cjs/resources/checkout_com_gateways.d.ts +1 -1
- package/lib/cjs/resources/checkout_com_payments.d.ts +1 -1
- package/lib/cjs/resources/coupon_codes_promotion_rules.d.ts +1 -1
- package/lib/cjs/resources/coupon_recipients.d.ts +1 -1
- package/lib/cjs/resources/coupons.d.ts +1 -1
- package/lib/cjs/resources/customer_addresses.d.ts +1 -1
- package/lib/cjs/resources/customer_groups.d.ts +1 -1
- package/lib/cjs/resources/customer_password_resets.d.ts +1 -1
- package/lib/cjs/resources/customer_payment_sources.d.ts +1 -1
- package/lib/cjs/resources/customer_subscriptions.d.ts +1 -1
- package/lib/cjs/resources/customers.d.ts +1 -1
- package/lib/cjs/resources/delivery_lead_times.d.ts +1 -1
- package/lib/cjs/resources/event_callbacks.d.ts +1 -1
- package/lib/cjs/resources/external_gateways.d.ts +1 -1
- package/lib/cjs/resources/external_payments.d.ts +1 -1
- package/lib/cjs/resources/external_promotions.d.ts +1 -1
- package/lib/cjs/resources/external_tax_calculators.d.ts +1 -1
- package/lib/cjs/resources/fixed_amount_promotions.d.ts +1 -1
- package/lib/cjs/resources/fixed_price_promotions.d.ts +1 -1
- package/lib/cjs/resources/free_gift_promotions.d.ts +1 -1
- package/lib/cjs/resources/free_shipping_promotions.d.ts +1 -1
- package/lib/cjs/resources/geocoders.d.ts +1 -1
- package/lib/cjs/resources/gift_card_recipients.d.ts +1 -1
- package/lib/cjs/resources/gift_cards.d.ts +1 -2
- package/lib/cjs/resources/google_geocoders.d.ts +1 -1
- package/lib/cjs/resources/imports.d.ts +1 -1
- package/lib/cjs/resources/in_stock_subscriptions.d.ts +1 -1
- package/lib/cjs/resources/inventory_models.d.ts +1 -1
- package/lib/cjs/resources/inventory_return_locations.d.ts +1 -1
- package/lib/cjs/resources/inventory_stock_locations.d.ts +1 -1
- package/lib/cjs/resources/line_item_options.d.ts +1 -1
- package/lib/cjs/resources/line_items.d.ts +1 -1
- package/lib/cjs/resources/manual_gateways.d.ts +1 -1
- package/lib/cjs/resources/manual_tax_calculators.d.ts +1 -1
- package/lib/cjs/resources/markets.d.ts +1 -1
- package/lib/cjs/resources/merchants.d.ts +1 -1
- package/lib/cjs/resources/order_amount_promotion_rules.d.ts +1 -1
- package/lib/cjs/resources/order_copies.d.ts +1 -1
- package/lib/cjs/resources/order_subscriptions.d.ts +2 -2
- package/lib/cjs/resources/order_validation_rules.d.ts +1 -1
- package/lib/cjs/resources/orders.d.ts +1 -1
- package/lib/cjs/resources/organization.d.ts +3 -1
- package/lib/cjs/resources/packages.d.ts +6 -6
- package/lib/cjs/resources/parcel_line_items.d.ts +1 -1
- package/lib/cjs/resources/parcels.d.ts +1 -1
- package/lib/cjs/resources/payment_gateways.d.ts +1 -1
- package/lib/cjs/resources/payment_methods.d.ts +1 -1
- package/lib/cjs/resources/paypal_gateways.d.ts +1 -1
- package/lib/cjs/resources/paypal_payments.d.ts +1 -1
- package/lib/cjs/resources/percentage_discount_promotions.d.ts +1 -1
- package/lib/cjs/resources/price_lists.d.ts +1 -1
- package/lib/cjs/resources/prices.d.ts +1 -1
- package/lib/cjs/resources/promotion_rules.d.ts +1 -1
- package/lib/cjs/resources/promotions.d.ts +1 -1
- package/lib/cjs/resources/refunds.d.ts +1 -1
- package/lib/cjs/resources/return_line_items.d.ts +1 -1
- package/lib/cjs/resources/returns.d.ts +1 -1
- package/lib/cjs/resources/shipments.d.ts +1 -1
- package/lib/cjs/resources/shipping_categories.d.ts +1 -1
- package/lib/cjs/resources/shipping_methods.d.ts +1 -1
- package/lib/cjs/resources/shipping_zones.d.ts +1 -1
- package/lib/cjs/resources/sku_list_items.d.ts +1 -1
- package/lib/cjs/resources/sku_list_promotion_rules.d.ts +1 -1
- package/lib/cjs/resources/sku_lists.d.ts +1 -1
- package/lib/cjs/resources/sku_options.d.ts +1 -1
- package/lib/cjs/resources/skus.d.ts +1 -1
- package/lib/cjs/resources/stock_items.d.ts +1 -1
- package/lib/cjs/resources/stock_line_items.d.ts +1 -1
- package/lib/cjs/resources/stock_locations.d.ts +1 -1
- package/lib/cjs/resources/stock_transfers.d.ts +1 -1
- package/lib/cjs/resources/stripe_gateways.d.ts +1 -1
- package/lib/cjs/resources/stripe_payments.d.ts +1 -1
- package/lib/cjs/resources/tax_calculators.d.ts +1 -1
- package/lib/cjs/resources/tax_categories.d.ts +1 -1
- package/lib/cjs/resources/tax_rules.d.ts +1 -1
- package/lib/cjs/resources/taxjar_accounts.d.ts +1 -1
- package/lib/cjs/resources/transactions.d.ts +1 -1
- package/lib/cjs/resources/voids.d.ts +1 -1
- package/lib/cjs/resources/webhooks.d.ts +1 -1
- package/lib/cjs/resources/wire_transfers.d.ts +1 -1
- package/lib/esm/api.d.ts +1 -1
- package/lib/esm/client.js +1 -1
- package/lib/esm/common.js +1 -1
- package/lib/esm/config.d.ts +7 -3
- package/lib/esm/config.js +1 -1
- package/lib/esm/error.js +1 -1
- package/lib/esm/model.d.ts +1 -1
- package/lib/esm/query.d.ts +0 -35
- package/lib/esm/query.js +1 -1
- package/lib/esm/resource.js +1 -1
- package/lib/esm/resources/addresses.d.ts +1 -1
- package/lib/esm/resources/adjustments.d.ts +1 -1
- package/lib/esm/resources/adyen_gateways.d.ts +1 -1
- package/lib/esm/resources/adyen_payments.d.ts +1 -1
- package/lib/esm/resources/application.d.ts +1 -1
- package/lib/esm/resources/attachments.d.ts +1 -1
- package/lib/esm/resources/authorizations.d.ts +1 -1
- package/lib/esm/resources/avalara_accounts.d.ts +1 -1
- package/lib/esm/resources/billing_info_validation_rules.d.ts +1 -1
- package/lib/esm/resources/bing_geocoders.d.ts +1 -1
- package/lib/esm/resources/braintree_gateways.d.ts +1 -1
- package/lib/esm/resources/braintree_payments.d.ts +1 -1
- package/lib/esm/resources/bundles.d.ts +1 -1
- package/lib/esm/resources/captures.d.ts +1 -1
- package/lib/esm/resources/carrier_accounts.d.ts +1 -1
- package/lib/esm/resources/checkout_com_gateways.d.ts +1 -1
- package/lib/esm/resources/checkout_com_payments.d.ts +1 -1
- package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +1 -1
- package/lib/esm/resources/coupon_recipients.d.ts +1 -1
- package/lib/esm/resources/coupons.d.ts +1 -1
- package/lib/esm/resources/customer_addresses.d.ts +1 -1
- package/lib/esm/resources/customer_groups.d.ts +1 -1
- package/lib/esm/resources/customer_password_resets.d.ts +1 -1
- package/lib/esm/resources/customer_payment_sources.d.ts +1 -1
- package/lib/esm/resources/customer_subscriptions.d.ts +1 -1
- package/lib/esm/resources/customers.d.ts +1 -1
- package/lib/esm/resources/delivery_lead_times.d.ts +1 -1
- package/lib/esm/resources/event_callbacks.d.ts +1 -1
- package/lib/esm/resources/external_gateways.d.ts +1 -1
- package/lib/esm/resources/external_payments.d.ts +1 -1
- package/lib/esm/resources/external_promotions.d.ts +1 -1
- package/lib/esm/resources/external_tax_calculators.d.ts +1 -1
- package/lib/esm/resources/fixed_amount_promotions.d.ts +1 -1
- package/lib/esm/resources/fixed_price_promotions.d.ts +1 -1
- package/lib/esm/resources/free_gift_promotions.d.ts +1 -1
- package/lib/esm/resources/free_shipping_promotions.d.ts +1 -1
- package/lib/esm/resources/geocoders.d.ts +1 -1
- package/lib/esm/resources/gift_card_recipients.d.ts +1 -1
- package/lib/esm/resources/gift_cards.d.ts +1 -2
- package/lib/esm/resources/google_geocoders.d.ts +1 -1
- package/lib/esm/resources/imports.d.ts +1 -1
- package/lib/esm/resources/in_stock_subscriptions.d.ts +1 -1
- package/lib/esm/resources/inventory_models.d.ts +1 -1
- package/lib/esm/resources/inventory_return_locations.d.ts +1 -1
- package/lib/esm/resources/inventory_stock_locations.d.ts +1 -1
- package/lib/esm/resources/line_item_options.d.ts +1 -1
- package/lib/esm/resources/line_items.d.ts +1 -1
- package/lib/esm/resources/manual_gateways.d.ts +1 -1
- package/lib/esm/resources/manual_tax_calculators.d.ts +1 -1
- package/lib/esm/resources/markets.d.ts +1 -1
- package/lib/esm/resources/merchants.d.ts +1 -1
- package/lib/esm/resources/order_amount_promotion_rules.d.ts +1 -1
- package/lib/esm/resources/order_copies.d.ts +1 -1
- package/lib/esm/resources/order_subscriptions.d.ts +2 -2
- package/lib/esm/resources/order_validation_rules.d.ts +1 -1
- package/lib/esm/resources/orders.d.ts +1 -1
- package/lib/esm/resources/organization.d.ts +3 -1
- package/lib/esm/resources/packages.d.ts +6 -6
- package/lib/esm/resources/parcel_line_items.d.ts +1 -1
- package/lib/esm/resources/parcels.d.ts +1 -1
- package/lib/esm/resources/payment_gateways.d.ts +1 -1
- package/lib/esm/resources/payment_methods.d.ts +1 -1
- package/lib/esm/resources/paypal_gateways.d.ts +1 -1
- package/lib/esm/resources/paypal_payments.d.ts +1 -1
- package/lib/esm/resources/percentage_discount_promotions.d.ts +1 -1
- package/lib/esm/resources/price_lists.d.ts +1 -1
- package/lib/esm/resources/prices.d.ts +1 -1
- package/lib/esm/resources/promotion_rules.d.ts +1 -1
- package/lib/esm/resources/promotions.d.ts +1 -1
- package/lib/esm/resources/refunds.d.ts +1 -1
- package/lib/esm/resources/return_line_items.d.ts +1 -1
- package/lib/esm/resources/returns.d.ts +1 -1
- package/lib/esm/resources/shipments.d.ts +1 -1
- package/lib/esm/resources/shipping_categories.d.ts +1 -1
- package/lib/esm/resources/shipping_methods.d.ts +1 -1
- package/lib/esm/resources/shipping_zones.d.ts +1 -1
- package/lib/esm/resources/sku_list_items.d.ts +1 -1
- package/lib/esm/resources/sku_list_promotion_rules.d.ts +1 -1
- package/lib/esm/resources/sku_lists.d.ts +1 -1
- package/lib/esm/resources/sku_options.d.ts +1 -1
- package/lib/esm/resources/skus.d.ts +1 -1
- package/lib/esm/resources/stock_items.d.ts +1 -1
- package/lib/esm/resources/stock_line_items.d.ts +1 -1
- package/lib/esm/resources/stock_locations.d.ts +1 -1
- package/lib/esm/resources/stock_transfers.d.ts +1 -1
- package/lib/esm/resources/stripe_gateways.d.ts +1 -1
- package/lib/esm/resources/stripe_payments.d.ts +1 -1
- package/lib/esm/resources/tax_calculators.d.ts +1 -1
- package/lib/esm/resources/tax_categories.d.ts +1 -1
- package/lib/esm/resources/tax_rules.d.ts +1 -1
- package/lib/esm/resources/taxjar_accounts.d.ts +1 -1
- package/lib/esm/resources/transactions.d.ts +1 -1
- package/lib/esm/resources/voids.d.ts +1 -1
- package/lib/esm/resources/webhooks.d.ts +1 -1
- package/lib/esm/resources/wire_transfers.d.ts +1 -1
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -2
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -37,7 +37,7 @@ interface OrderSubscription extends Resource {
|
|
37
37
|
orders?: Order[];
|
38
38
|
}
|
39
39
|
interface OrderSubscriptionCreate extends ResourceCreate {
|
40
|
-
frequency
|
40
|
+
frequency: string;
|
41
41
|
activate_by_source_order?: boolean;
|
42
42
|
starts_at?: string;
|
43
43
|
expires_at?: string;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourcesConfig, ResourceId } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsRetrieve } from '../query';
|
@@ -22,6 +22,8 @@ interface Organization extends Resource {
|
|
22
22
|
discount_disabled?: boolean;
|
23
23
|
account_disabled?: boolean;
|
24
24
|
acceptance_disabled?: boolean;
|
25
|
+
max_concurrent_promotions?: number;
|
26
|
+
max_concurrent_imports?: number;
|
25
27
|
}
|
26
28
|
declare class Organizations extends ApiResource {
|
27
29
|
static readonly TYPE: 'organization';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -25,12 +25,12 @@ interface Package extends Resource {
|
|
25
25
|
attachments?: Attachment[];
|
26
26
|
}
|
27
27
|
interface PackageCreate extends ResourceCreate {
|
28
|
-
name
|
28
|
+
name: string;
|
29
29
|
code?: string;
|
30
|
-
length
|
31
|
-
width
|
32
|
-
height
|
33
|
-
unit_of_length
|
30
|
+
length: number;
|
31
|
+
width: number;
|
32
|
+
height: number;
|
33
|
+
unit_of_length: string;
|
34
34
|
stock_location?: StockLocationRel;
|
35
35
|
}
|
36
36
|
interface PackageUpdate extends ResourceUpdate {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
package/lib/esm/api.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
export { default as Addresses } from './resources/addresses';
|
6
6
|
export { default as Adjustments } from './resources/adjustments';
|
package/lib/esm/client.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
var __classPrivateFieldSet=this&&this.__classPrivateFieldSet||function(e,t,i,r,s){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?s.call(e,i):s?s.value=i:t.set(e,i),i};var __classPrivateFieldGet=this&&this.__classPrivateFieldGet||function(e,t,i,r){if(i==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return i==="m"?r:i==="a"?r.call(e):r?r.value:t.get(e)};var _ApiClient_accessToken,_ApiClient_client;import axios from"axios";import{SdkError,ApiError,ErrorType}from"./error";const baseURL=(e,t)=>`https://${e.toLowerCase()}.${t?t:
|
1
|
+
var __classPrivateFieldSet=this&&this.__classPrivateFieldSet||function(e,t,i,r,s){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?s.call(e,i):s?s.value=i:t.set(e,i),i};var __classPrivateFieldGet=this&&this.__classPrivateFieldGet||function(e,t,i,r){if(i==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return i==="m"?r:i==="a"?r.call(e):r?r.value:t.get(e)};var _ApiClient_accessToken,_ApiClient_client;import axios from"axios";import{SdkError,ApiError,ErrorType}from"./error";import config from"./config";const baseURL=(e,t)=>`https://${e.toLowerCase()}.${t?t:config.default.domain}/api`;const handleError=e=>{let t=new SdkError({message:e.message,type:ErrorType.GENERIC});if(axios.isAxiosError(e)){if(e.response){const i=new ApiError(t);i.type=ErrorType.RESPONSE;i.status=e.response.status;i.code=String(i.status);i.errors=e.response.data.errors;t=i}else if(e.request){t.type=ErrorType.REQUEST;t.request=e.request}else{t.type=ErrorType.CLIENT}}else if(axios.isCancel(e))t.type=ErrorType.CANCEL;else t.source=e;throw t};class ApiClient{constructor(e){_ApiClient_accessToken.set(this,void 0);_ApiClient_client.set(this,void 0);this.baseUrl=baseURL(e.organization,e.domain);__classPrivateFieldSet(this,_ApiClient_accessToken,e.accessToken,"f");const t={timeout:e.timeout||config.client.timeout};__classPrivateFieldSet(this,_ApiClient_client,axios.create(Object.assign({baseURL:this.baseUrl,timeout:config.client.timeout,headers:{Accept:"application/vnd.api+json","Content-Type":"application/vnd.api+json",Authorization:"Bearer "+__classPrivateFieldGet(this,_ApiClient_accessToken,"f")}},t)),"f");this.interceptors=__classPrivateFieldGet(this,_ApiClient_client,"f").interceptors}static create(e){if(!(e===null||e===void 0?void 0:e.organization))throw new Error("Undefined 'organization' parameter");if(!(e===null||e===void 0?void 0:e.accessToken))throw new Error("Undefined 'accessToken' parameter");return new ApiClient(e)}config(e){const t=__classPrivateFieldGet(this,_ApiClient_client,"f").defaults;if(e.timeout)t.timeout=e.timeout;if(e.organization)this.baseUrl=baseURL(e.organization,e.domain);if(e.accessToken)__classPrivateFieldSet(this,_ApiClient_accessToken,e.accessToken,"f")}async request(e,t,i,r){const s=i?{data:i}:undefined;const o=t;const a=(r===null||r===void 0?void 0:r.organization)?baseURL(r.organization,r.domain):undefined;const n=(r===null||r===void 0?void 0:r.accessToken)?{Authorization:"Bearer "+r.accessToken}:undefined;return __classPrivateFieldGet(this,_ApiClient_client,"f").request(Object.assign({method:e,baseURL:a,url:o,data:s,headers:n},r)).then((e=>e.data)).catch((e=>handleError(e)))}}_ApiClient_accessToken=new WeakMap,_ApiClient_client=new WeakMap;export default ApiClient;
|
package/lib/esm/common.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const isResourceId=e=>e&&e.type&&e.id;const isResourceType=e=>e&&typeof e.type!=="undefined"&&e.type;export{isResourceId,isResourceType};
|
1
|
+
import{resourceList}from"./api";const isResourceId=e=>e&&e.type&&e.id&&resourceList.includes(e.type);const isResourceType=e=>e&&typeof e.type!=="undefined"&&e.type&&resourceList.includes(e.type);export{isResourceId,isResourceType};
|
package/lib/esm/config.d.ts
CHANGED
@@ -1,7 +1,11 @@
|
|
1
1
|
declare const config: {
|
2
|
-
default: {
|
3
|
-
|
4
|
-
|
2
|
+
readonly default: {
|
3
|
+
readonly domain: "commercelayer.io";
|
4
|
+
readonly pageNumber: 1;
|
5
|
+
readonly pageSize: 10;
|
6
|
+
};
|
7
|
+
readonly client: {
|
8
|
+
readonly timeout: 3000;
|
5
9
|
};
|
6
10
|
};
|
7
11
|
export default config;
|
package/lib/esm/config.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const config={default:{pageNumber:1,pageSize:10}};export default config;
|
1
|
+
const config={default:{domain:"commercelayer.io",pageNumber:1,pageSize:10},client:{timeout:3e3}};export default config;
|
package/lib/esm/error.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
var ErrorType;(function(r){r["CLIENT"]="client";r["REQUEST"]="request";r["RESPONSE"]="response";r["GENERIC"]="generic";r["CANCEL"]="cancel"})(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)}}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(){return
|
1
|
+
var ErrorType;(function(r){r["CLIENT"]="client";r["REQUEST"]="request";r["RESPONSE"]="response";r["GENERIC"]="generic";r["CANCEL"]="cancel"})(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)}}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]:undefined}}export{SdkError,ApiError,ErrorType};
|
package/lib/esm/model.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
4
|
**/
|
5
5
|
export type { Address, AddressCreate, AddressUpdate } from './resources/addresses';
|
6
6
|
export type { Adjustment, AdjustmentCreate, AdjustmentUpdate } from './resources/adjustments';
|
package/lib/esm/query.d.ts
CHANGED
@@ -16,41 +16,6 @@ interface QueryParamsList extends QueryParamsRetrieve {
|
|
16
16
|
}
|
17
17
|
declare type QueryParams = QueryParamsRetrieve | QueryParamsList;
|
18
18
|
export { QueryParamsRetrieve, QueryParamsList, QueryParams };
|
19
|
-
declare type FilterPredicate = 'blank' | 'cont' | 'cont_all' | 'cont_any' | 'does_not_match' | 'does_not_match_all' | 'does_not_match_any' | 'end' | 'end_all' | 'end_any' | 'eq' | 'false' | 'gt' | 'gt_all' | 'gt_any' | 'gteq' | 'gteq_all' | 'gteq_any' | 'in' | 'lt' | 'lt_all' | 'lt_any' | 'lteq' | 'lteq_all' | 'lteq_any' | 'matches' | 'matches_all' | 'matches_any' | 'not_cont' | 'not_cont_all' | 'not_end' | 'not_end_all' | 'not_end_any' | 'not_eq' | 'not_eq_all' | 'not_in' | 'not_null' | 'not_start' | 'not_start_all' | 'not_start_any' | 'null' | 'present' | 'start' | 'start_all' | 'start_any' | 'true';
|
20
|
-
declare class QueryBuilderRetrieve {
|
21
|
-
#private;
|
22
|
-
constructor(resource?: string);
|
23
|
-
include(...resources: string[]): QueryBuilderRetrieve;
|
24
|
-
field(field: string, resource?: string): QueryBuilderRetrieve;
|
25
|
-
fields(fields: string[], resource?: string): QueryBuilderRetrieve;
|
26
|
-
clear(): QueryBuilderRetrieve;
|
27
|
-
build(): QueryParams;
|
28
|
-
generate(): {
|
29
|
-
[key: string]: string;
|
30
|
-
};
|
31
|
-
}
|
32
|
-
declare class QueryBuilderList extends QueryBuilderRetrieve {
|
33
|
-
#private;
|
34
|
-
constructor(resource?: string);
|
35
|
-
include(...resources: string[]): QueryBuilderList;
|
36
|
-
field(field: string, resource?: string): QueryBuilderList;
|
37
|
-
fields(fields: string[], resource?: string): QueryBuilderList;
|
38
|
-
pageNumber(num: number): QueryBuilderList;
|
39
|
-
pageSize(size: number): QueryBuilderList;
|
40
|
-
page(num: number, size: number): QueryBuilderList;
|
41
|
-
sort(field: string, descending?: boolean): QueryBuilderList;
|
42
|
-
filter(field: string | string[], predicate: FilterPredicate, value: string | number | boolean | string[], resource?: string): QueryBuilderList;
|
43
|
-
clear(): QueryBuilderList;
|
44
|
-
build(): QueryParams;
|
45
|
-
generate(): {
|
46
|
-
[key: string]: string;
|
47
|
-
};
|
48
|
-
}
|
49
|
-
declare class QueryBuilder extends QueryBuilderList {
|
50
|
-
constructor(resource?: string);
|
51
|
-
}
|
52
|
-
export default QueryBuilder;
|
53
|
-
export { QueryBuilderRetrieve, QueryBuilderList };
|
54
19
|
declare const generateQueryStringParams: (params: QueryParamsRetrieve | QueryParamsList | undefined) => {
|
55
20
|
[key: string]: string;
|
56
21
|
};
|