@betterstore/sdk 0.3.31 → 0.3.32

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,11 @@
1
1
  # @betterstore/sdk
2
2
 
3
+ ## 0.3.32
4
+
5
+ ### Patch Changes
6
+
7
+ - new type added
8
+
3
9
  ## 0.3.31
4
10
 
5
11
  ### 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 {
@@ -230,7 +232,7 @@ declare class Helpers {
230
232
  declare class Products {
231
233
  private apiClient;
232
234
  constructor(apiKey: string, proxy?: string);
233
- list(): Promise<Omit<Product, "productVariants">[]>;
235
+ list(): Promise<ProductWithoutVariants[]>;
234
236
  retrieve(productId: string): Promise<Product>;
235
237
  }
236
238
 
@@ -249,4 +251,4 @@ declare function createStoreHelpers(config?: {
249
251
  proxy?: string;
250
252
  }): Helpers;
251
253
 
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 };
254
+ 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 {
@@ -230,7 +232,7 @@ declare class Helpers {
230
232
  declare class Products {
231
233
  private apiClient;
232
234
  constructor(apiKey: string, proxy?: string);
233
- list(): Promise<Omit<Product, "productVariants">[]>;
235
+ list(): Promise<ProductWithoutVariants[]>;
234
236
  retrieve(productId: string): Promise<Product>;
235
237
  }
236
238
 
@@ -249,4 +251,4 @@ declare function createStoreHelpers(config?: {
249
251
  proxy?: string;
250
252
  }): Helpers;
251
253
 
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 };
254
+ 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.32",
4
4
  "description": "E-commerce for Developers",
5
5
  "private": false,
6
6
  "publishConfig": {