@betterstore/sdk 0.3.31 → 0.3.33

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @betterstore/sdk
2
2
 
3
+ ## 0.3.33
4
+
5
+ ### Patch Changes
6
+
7
+ - small change
8
+
9
+ ## 0.3.32
10
+
11
+ ### Patch Changes
12
+
13
+ - new type added
14
+
3
15
  ## 0.3.31
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -77,6 +77,8 @@ interface Product {
77
77
  options: ProductOption[];
78
78
  productVariants: ProductVariant[];
79
79
  }
80
+ interface ProductWithoutVariants extends Omit<Product, "productVariants"> {
81
+ }
80
82
 
81
83
  type ShippingRate = ZasilkovnaRate;
82
84
  interface BaseRate {
@@ -108,11 +110,8 @@ interface CheckoutCreateParams {
108
110
  currency?: Currency;
109
111
  }
110
112
  interface CheckoutUpdateParams {
111
- lineItems?: LineItem[];
112
113
  customerId?: string;
113
- tax?: number;
114
- shipping?: number;
115
- shipmentInfo?: {
114
+ shipmentData?: {
116
115
  provider: string;
117
116
  name?: string;
118
117
  pickupPointId?: string;
@@ -230,7 +229,7 @@ declare class Helpers {
230
229
  declare class Products {
231
230
  private apiClient;
232
231
  constructor(apiKey: string, proxy?: string);
233
- list(): Promise<Omit<Product, "productVariants">[]>;
232
+ list(): Promise<ProductWithoutVariants[]>;
234
233
  retrieve(productId: string): Promise<Product>;
235
234
  }
236
235
 
@@ -249,4 +248,4 @@ declare function createStoreHelpers(config?: {
249
248
  proxy?: string;
250
249
  }): Helpers;
251
250
 
252
- export { type Address, type CheckoutCreateParams, type CheckoutSession, type CheckoutUpdateParams, type Currency, type Customer$1 as Customer, type CustomerCreateParams, type CustomerUpdateParams, type LineItem, type Product, type ProductOption, ProductStatus, type ProductVariant, type ShippingRate, type VariantOption, createStoreClient, createStoreHelpers, createBetterStore as default };
251
+ export { type Address, type CheckoutCreateParams, type CheckoutSession, type CheckoutUpdateParams, type Currency, type Customer$1 as Customer, type CustomerCreateParams, type CustomerUpdateParams, type LineItem, type Product, type ProductOption, ProductStatus, type ProductVariant, type ProductWithoutVariants, type ShippingRate, type VariantOption, createStoreClient, createStoreHelpers, createBetterStore as default };
package/dist/index.d.ts CHANGED
@@ -77,6 +77,8 @@ interface Product {
77
77
  options: ProductOption[];
78
78
  productVariants: ProductVariant[];
79
79
  }
80
+ interface ProductWithoutVariants extends Omit<Product, "productVariants"> {
81
+ }
80
82
 
81
83
  type ShippingRate = ZasilkovnaRate;
82
84
  interface BaseRate {
@@ -108,11 +110,8 @@ interface CheckoutCreateParams {
108
110
  currency?: Currency;
109
111
  }
110
112
  interface CheckoutUpdateParams {
111
- lineItems?: LineItem[];
112
113
  customerId?: string;
113
- tax?: number;
114
- shipping?: number;
115
- shipmentInfo?: {
114
+ shipmentData?: {
116
115
  provider: string;
117
116
  name?: string;
118
117
  pickupPointId?: string;
@@ -230,7 +229,7 @@ declare class Helpers {
230
229
  declare class Products {
231
230
  private apiClient;
232
231
  constructor(apiKey: string, proxy?: string);
233
- list(): Promise<Omit<Product, "productVariants">[]>;
232
+ list(): Promise<ProductWithoutVariants[]>;
234
233
  retrieve(productId: string): Promise<Product>;
235
234
  }
236
235
 
@@ -249,4 +248,4 @@ declare function createStoreHelpers(config?: {
249
248
  proxy?: string;
250
249
  }): Helpers;
251
250
 
252
- export { type Address, type CheckoutCreateParams, type CheckoutSession, type CheckoutUpdateParams, type Currency, type Customer$1 as Customer, type CustomerCreateParams, type CustomerUpdateParams, type LineItem, type Product, type ProductOption, ProductStatus, type ProductVariant, type ShippingRate, type VariantOption, createStoreClient, createStoreHelpers, createBetterStore as default };
251
+ export { type Address, type CheckoutCreateParams, type CheckoutSession, type CheckoutUpdateParams, type Currency, type Customer$1 as Customer, type CustomerCreateParams, type CustomerUpdateParams, type LineItem, type Product, type ProductOption, ProductStatus, type ProductVariant, type ProductWithoutVariants, type ShippingRate, type VariantOption, createStoreClient, createStoreHelpers, createBetterStore as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterstore/sdk",
3
- "version": "0.3.31",
3
+ "version": "0.3.33",
4
4
  "description": "E-commerce for Developers",
5
5
  "private": false,
6
6
  "publishConfig": {