@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 +6 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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/
|
|
211
|
-
var
|
|
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
|
|
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.
|
|
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/
|
|
176
|
-
var
|
|
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
|
|
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.
|
|
206
|
+
this.products = new products_default(apiKey);
|
|
207
207
|
this.customer = new customer_default(apiKey);
|
|
208
208
|
}
|
|
209
209
|
};
|