@betterstore/sdk 0.3.105 → 0.3.107

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.107
4
+
5
+ ### Patch Changes
6
+
7
+ - types changed
8
+
9
+ ## 0.3.106
10
+
11
+ ### Patch Changes
12
+
13
+ - new customer type
14
+
3
15
  ## 0.3.105
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -33,7 +33,7 @@ interface LineItemCreate extends Omit<LineItem, "productData" | "product" | "met
33
33
  }[];
34
34
  productId: string;
35
35
  product?: ProductWithoutVariants;
36
- metadata?: RecursiveRecord;
36
+ metadata?: Record<string, any>;
37
37
  }
38
38
  type Currency = string;
39
39
  interface CheckoutCreateParams {
@@ -89,9 +89,6 @@ interface CheckoutSession {
89
89
  shipmentData: ShipmentData | null;
90
90
  status: "IN_PROGRESS" | "PAYMENT_PENDING" | "ABANDONED" | "CANCELED" | "FAILED";
91
91
  }
92
- type RecursiveRecord = {
93
- [key: string]: any;
94
- };
95
92
 
96
93
  type SortOrder = "asc" | "desc";
97
94
  type GetListParams<A, B> = {
@@ -259,6 +256,11 @@ interface CustomerCreateParams {
259
256
  email: string;
260
257
  phone?: string;
261
258
  address?: Address;
259
+ image?: string;
260
+ password?: string;
261
+ metadata?: Record<string, any>;
262
+ tags?: string[];
263
+ notes?: string;
262
264
  isSubscribedEmail?: boolean;
263
265
  isSubscribedSMS?: boolean;
264
266
  }
package/dist/index.d.ts CHANGED
@@ -33,7 +33,7 @@ interface LineItemCreate extends Omit<LineItem, "productData" | "product" | "met
33
33
  }[];
34
34
  productId: string;
35
35
  product?: ProductWithoutVariants;
36
- metadata?: RecursiveRecord;
36
+ metadata?: Record<string, any>;
37
37
  }
38
38
  type Currency = string;
39
39
  interface CheckoutCreateParams {
@@ -89,9 +89,6 @@ interface CheckoutSession {
89
89
  shipmentData: ShipmentData | null;
90
90
  status: "IN_PROGRESS" | "PAYMENT_PENDING" | "ABANDONED" | "CANCELED" | "FAILED";
91
91
  }
92
- type RecursiveRecord = {
93
- [key: string]: any;
94
- };
95
92
 
96
93
  type SortOrder = "asc" | "desc";
97
94
  type GetListParams<A, B> = {
@@ -259,6 +256,11 @@ interface CustomerCreateParams {
259
256
  email: string;
260
257
  phone?: string;
261
258
  address?: Address;
259
+ image?: string;
260
+ password?: string;
261
+ metadata?: Record<string, any>;
262
+ tags?: string[];
263
+ notes?: string;
262
264
  isSubscribedEmail?: boolean;
263
265
  isSubscribedSMS?: boolean;
264
266
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterstore/sdk",
3
- "version": "0.3.105",
3
+ "version": "0.3.107",
4
4
  "description": "E-commerce for Developers",
5
5
  "private": false,
6
6
  "publishConfig": {