@commercelayer/sdk 2.1.0 → 2.2.0

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.
Files changed (107) hide show
  1. package/lib/api.d.ts +6 -3
  2. package/lib/commercelayer.d.ts +3 -0
  3. package/lib/index.d.ts +1 -1
  4. package/lib/interceptor.d.ts +2 -1
  5. package/lib/model.d.ts +4 -1
  6. package/lib/resources/addresses.d.ts +2 -1
  7. package/lib/resources/adjustments.d.ts +2 -1
  8. package/lib/resources/adyen_gateways.d.ts +2 -1
  9. package/lib/resources/adyen_payments.d.ts +2 -1
  10. package/lib/resources/application.d.ts +2 -1
  11. package/lib/resources/attachments.d.ts +2 -1
  12. package/lib/resources/authorizations.d.ts +2 -1
  13. package/lib/resources/avalara_accounts.d.ts +2 -1
  14. package/lib/resources/billing_info_validation_rules.d.ts +2 -1
  15. package/lib/resources/bing_geocoders.d.ts +2 -1
  16. package/lib/resources/braintree_gateways.d.ts +2 -1
  17. package/lib/resources/braintree_payments.d.ts +2 -1
  18. package/lib/resources/bundles.d.ts +2 -1
  19. package/lib/resources/captures.d.ts +2 -1
  20. package/lib/resources/carrier_accounts.d.ts +2 -1
  21. package/lib/resources/checkout_com_gateways.d.ts +2 -1
  22. package/lib/resources/checkout_com_payments.d.ts +2 -1
  23. package/lib/resources/coupon_codes_promotion_rules.d.ts +13 -4
  24. package/lib/resources/coupon_recipients.d.ts +46 -0
  25. package/lib/resources/coupons.d.ts +5 -1
  26. package/lib/resources/customer_addresses.d.ts +2 -1
  27. package/lib/resources/customer_groups.d.ts +2 -1
  28. package/lib/resources/customer_password_resets.d.ts +2 -1
  29. package/lib/resources/customer_payment_sources.d.ts +2 -1
  30. package/lib/resources/customer_subscriptions.d.ts +2 -1
  31. package/lib/resources/customers.d.ts +2 -1
  32. package/lib/resources/delivery_lead_times.d.ts +2 -1
  33. package/lib/resources/event_callbacks.d.ts +4 -2
  34. package/lib/resources/external_gateways.d.ts +2 -1
  35. package/lib/resources/external_payments.d.ts +2 -1
  36. package/lib/resources/external_promotions.d.ts +2 -1
  37. package/lib/resources/external_tax_calculators.d.ts +2 -1
  38. package/lib/resources/fixed_amount_promotions.d.ts +2 -1
  39. package/lib/resources/fixed_price_promotions.d.ts +93 -0
  40. package/lib/resources/free_gift_promotions.d.ts +91 -0
  41. package/lib/resources/free_shipping_promotions.d.ts +2 -1
  42. package/lib/resources/geocoders.d.ts +2 -1
  43. package/lib/resources/gift_card_recipients.d.ts +2 -1
  44. package/lib/resources/gift_cards.d.ts +2 -1
  45. package/lib/resources/google_geocoders.d.ts +2 -1
  46. package/lib/resources/imports.d.ts +2 -1
  47. package/lib/resources/in_stock_subscriptions.d.ts +2 -1
  48. package/lib/resources/inventory_models.d.ts +2 -1
  49. package/lib/resources/inventory_return_locations.d.ts +2 -1
  50. package/lib/resources/inventory_stock_locations.d.ts +2 -1
  51. package/lib/resources/line_item_options.d.ts +2 -1
  52. package/lib/resources/line_items.d.ts +2 -1
  53. package/lib/resources/manual_gateways.d.ts +2 -1
  54. package/lib/resources/manual_tax_calculators.d.ts +2 -1
  55. package/lib/resources/markets.d.ts +2 -1
  56. package/lib/resources/merchants.d.ts +2 -1
  57. package/lib/resources/order_amount_promotion_rules.d.ts +13 -4
  58. package/lib/resources/order_copies.d.ts +2 -1
  59. package/lib/resources/order_subscriptions.d.ts +2 -1
  60. package/lib/resources/order_validation_rules.d.ts +2 -1
  61. package/lib/resources/orders.d.ts +2 -1
  62. package/lib/resources/organization.d.ts +2 -1
  63. package/lib/resources/packages.d.ts +2 -1
  64. package/lib/resources/parcel_line_items.d.ts +2 -1
  65. package/lib/resources/parcels.d.ts +2 -1
  66. package/lib/resources/payment_gateways.d.ts +2 -1
  67. package/lib/resources/payment_methods.d.ts +2 -1
  68. package/lib/resources/paypal_gateways.d.ts +2 -1
  69. package/lib/resources/paypal_payments.d.ts +2 -1
  70. package/lib/resources/percentage_discount_promotions.d.ts +2 -1
  71. package/lib/resources/price_lists.d.ts +2 -1
  72. package/lib/resources/prices.d.ts +2 -1
  73. package/lib/resources/promotion_rules.d.ts +5 -2
  74. package/lib/resources/promotions.d.ts +2 -1
  75. package/lib/resources/refunds.d.ts +2 -1
  76. package/lib/resources/return_line_items.d.ts +2 -1
  77. package/lib/resources/returns.d.ts +2 -1
  78. package/lib/resources/shipments.d.ts +2 -1
  79. package/lib/resources/shipping_categories.d.ts +2 -1
  80. package/lib/resources/shipping_methods.d.ts +2 -1
  81. package/lib/resources/shipping_zones.d.ts +2 -1
  82. package/lib/resources/sku_list_items.d.ts +2 -1
  83. package/lib/resources/sku_list_promotion_rules.d.ts +16 -4
  84. package/lib/resources/sku_lists.d.ts +2 -1
  85. package/lib/resources/sku_options.d.ts +2 -1
  86. package/lib/resources/skus.d.ts +2 -1
  87. package/lib/resources/stock_items.d.ts +2 -1
  88. package/lib/resources/stock_line_items.d.ts +2 -1
  89. package/lib/resources/stock_locations.d.ts +2 -1
  90. package/lib/resources/stock_transfers.d.ts +2 -1
  91. package/lib/resources/stripe_gateways.d.ts +2 -1
  92. package/lib/resources/stripe_payments.d.ts +2 -1
  93. package/lib/resources/tax_calculators.d.ts +2 -1
  94. package/lib/resources/tax_categories.d.ts +2 -1
  95. package/lib/resources/tax_rules.d.ts +2 -1
  96. package/lib/resources/taxjar_accounts.d.ts +2 -1
  97. package/lib/resources/transactions.d.ts +2 -1
  98. package/lib/resources/voids.d.ts +2 -1
  99. package/lib/resources/webhooks.d.ts +3 -2
  100. package/lib/resources/wire_transfers.d.ts +2 -1
  101. package/lib/sdk.cjs.development.js +1007 -82
  102. package/lib/sdk.cjs.development.js.map +1 -1
  103. package/lib/sdk.cjs.production.min.js +1 -1
  104. package/lib/sdk.cjs.production.min.js.map +1 -1
  105. package/lib/sdk.esm.js +1007 -82
  106. package/lib/sdk.esm.js.map +1 -1
  107. package/package.json +3 -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.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -38,6 +38,7 @@ declare class StripePayments extends ApiResource {
38
38
  delete(id: string, options?: ResourcesConfig): Promise<void>;
39
39
  isStripePayment(resource: any): resource is StripePayment;
40
40
  relationship(id: string | ResourceId): StripePaymentRel;
41
+ type(): string;
41
42
  }
42
43
  export default StripePayments;
43
44
  export { StripePayment, StripePaymentCreate, StripePaymentUpdate };
@@ -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.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList } from '../query';
@@ -21,6 +21,7 @@ declare class TaxCalculators extends ApiResource {
21
21
  list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<TaxCalculator>>;
22
22
  isTaxCalculator(resource: any): resource is TaxCalculator;
23
23
  relationship(id: string | ResourceId): TaxCalculatorRel;
24
+ type(): string;
24
25
  }
25
26
  export default TaxCalculators;
26
27
  export { TaxCalculator };
@@ -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.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -55,6 +55,7 @@ declare class TaxCategories extends ApiResource {
55
55
  delete(id: string, options?: ResourcesConfig): Promise<void>;
56
56
  isTaxCategory(resource: any): resource is TaxCategory;
57
57
  relationship(id: string | ResourceId): TaxCategoryRel;
58
+ type(): string;
58
59
  }
59
60
  export default TaxCategories;
60
61
  export { TaxCategory, TaxCategoryCreate, TaxCategoryUpdate };
@@ -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.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -66,6 +66,7 @@ declare class TaxRules extends ApiResource {
66
66
  delete(id: string, options?: ResourcesConfig): Promise<void>;
67
67
  isTaxRule(resource: any): resource is TaxRule;
68
68
  relationship(id: string | ResourceId): TaxRuleRel;
69
+ type(): string;
69
70
  }
70
71
  export default TaxRules;
71
72
  export { TaxRule, TaxRuleCreate, TaxRuleUpdate };
@@ -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.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -38,6 +38,7 @@ declare class TaxjarAccounts extends ApiResource {
38
38
  delete(id: string, options?: ResourcesConfig): Promise<void>;
39
39
  isTaxjarAccount(resource: any): resource is TaxjarAccount;
40
40
  relationship(id: string | ResourceId): TaxjarAccountRel;
41
+ type(): string;
41
42
  }
42
43
  export default TaxjarAccounts;
43
44
  export { TaxjarAccount, TaxjarAccountCreate, TaxjarAccountUpdate };
@@ -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.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList } from '../query';
@@ -27,6 +27,7 @@ declare class Transactions extends ApiResource {
27
27
  list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Transaction>>;
28
28
  isTransaction(resource: any): resource is Transaction;
29
29
  relationship(id: string | ResourceId): TransactionRel;
30
+ type(): string;
30
31
  }
31
32
  export default Transactions;
32
33
  export { Transaction };
@@ -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.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -30,6 +30,7 @@ declare class Voids extends ApiResource {
30
30
  retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Void>;
31
31
  isVoid(resource: any): resource is Void;
32
32
  relationship(id: string | ResourceId): VoidRel;
33
+ type(): string;
33
34
  }
34
35
  export default Voids;
35
36
  export { Void };
@@ -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.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -18,7 +18,7 @@ interface Webhook extends Resource {
18
18
  last_event_callbacks?: EventCallback[];
19
19
  }
20
20
  interface WebhookCreate extends ResourceCreate {
21
- name: string;
21
+ name?: string;
22
22
  topic: string;
23
23
  callback_url: string;
24
24
  include_resources?: string[];
@@ -39,6 +39,7 @@ declare class Webhooks extends ApiResource {
39
39
  delete(id: string, options?: ResourcesConfig): Promise<void>;
40
40
  isWebhook(resource: any): resource is Webhook;
41
41
  relationship(id: string | ResourceId): WebhookRel;
42
+ type(): string;
42
43
  }
43
44
  export default Webhooks;
44
45
  export { Webhook, WebhookCreate, WebhookUpdate };
@@ -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.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -29,6 +29,7 @@ declare class WireTransfers extends ApiResource {
29
29
  delete(id: string, options?: ResourcesConfig): Promise<void>;
30
30
  isWireTransfer(resource: any): resource is WireTransfer;
31
31
  relationship(id: string | ResourceId): WireTransferRel;
32
+ type(): string;
32
33
  }
33
34
  export default WireTransfers;
34
35
  export { WireTransfer, WireTransferCreate, WireTransferUpdate };