@betterstore/sdk 0.2.0 → 0.2.1

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.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - products pluralization
8
+
3
9
  ## 0.2.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.d.mts CHANGED
@@ -194,7 +194,7 @@ interface Product {
194
194
  options: ProductOption[];
195
195
  productVariants: ProductVariant[];
196
196
  }
197
- declare class Product {
197
+ declare class Products {
198
198
  private apiClient;
199
199
  constructor(apiKey: string);
200
200
  list(): Promise<Omit<Product, "productVariants">[]>;
@@ -203,7 +203,7 @@ declare class Product {
203
203
 
204
204
  declare class BetterStore {
205
205
  checkout: Checkout;
206
- product: Product;
206
+ products: Products;
207
207
  customer: Customer;
208
208
  constructor(apiKey: string);
209
209
  }
package/dist/index.d.ts CHANGED
@@ -194,7 +194,7 @@ interface Product {
194
194
  options: ProductOption[];
195
195
  productVariants: ProductVariant[];
196
196
  }
197
- declare class Product {
197
+ declare class Products {
198
198
  private apiClient;
199
199
  constructor(apiKey: string);
200
200
  list(): Promise<Omit<Product, "productVariants">[]>;
@@ -203,7 +203,7 @@ declare class Product {
203
203
 
204
204
  declare class BetterStore {
205
205
  checkout: Checkout;
206
- product: Product;
206
+ products: Products;
207
207
  customer: Customer;
208
208
  constructor(apiKey: string);
209
209
  }
package/dist/index.js CHANGED
@@ -207,8 +207,8 @@ var Customer = class {
207
207
  };
208
208
  var customer_default = Customer;
209
209
 
210
- // src/product.ts
211
- var Product = class {
210
+ // src/products.ts
211
+ var Products = class {
212
212
  constructor(apiKey) {
213
213
  this.apiClient = createApiClient(apiKey);
214
214
  }
@@ -228,7 +228,7 @@ var Product = class {
228
228
  });
229
229
  }
230
230
  };
231
- var product_default = Product;
231
+ var products_default = Products;
232
232
 
233
233
  // src/index.ts
234
234
  var BetterStore = class {
@@ -238,7 +238,7 @@ var BetterStore = class {
238
238
  throw new Error("API key is required.");
239
239
  }
240
240
  this.checkout = new checkout_default(apiKey);
241
- this.product = new product_default(apiKey);
241
+ this.products = new products_default(apiKey);
242
242
  this.customer = new customer_default(apiKey);
243
243
  }
244
244
  };
package/dist/index.mjs CHANGED
@@ -172,8 +172,8 @@ var Customer = class {
172
172
  };
173
173
  var customer_default = Customer;
174
174
 
175
- // src/product.ts
176
- var Product = class {
175
+ // src/products.ts
176
+ var Products = class {
177
177
  constructor(apiKey) {
178
178
  this.apiClient = createApiClient(apiKey);
179
179
  }
@@ -193,7 +193,7 @@ var Product = class {
193
193
  });
194
194
  }
195
195
  };
196
- var product_default = Product;
196
+ var products_default = Products;
197
197
 
198
198
  // src/index.ts
199
199
  var BetterStore = class {
@@ -203,7 +203,7 @@ var BetterStore = class {
203
203
  throw new Error("API key is required.");
204
204
  }
205
205
  this.checkout = new checkout_default(apiKey);
206
- this.product = new product_default(apiKey);
206
+ this.products = new products_default(apiKey);
207
207
  this.customer = new customer_default(apiKey);
208
208
  }
209
209
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterstore/sdk",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "E-commerce for Developers",
5
5
  "private": false,
6
6
  "publishConfig": {