@betterstore/sdk 0.3.85 → 0.3.87
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 +12 -0
- package/dist/index.d.mts +4 -5
- package/dist/index.d.ts +4 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -32,7 +32,7 @@ interface LineItemCreate extends Omit<LineItem, "productData" | "product" | "met
|
|
|
32
32
|
value: string;
|
|
33
33
|
}[];
|
|
34
34
|
productId: string;
|
|
35
|
-
product?:
|
|
35
|
+
product?: ProductWithoutVariants;
|
|
36
36
|
metadata?: RecursiveRecord;
|
|
37
37
|
}
|
|
38
38
|
type Currency = string;
|
|
@@ -300,9 +300,8 @@ interface CustomerSession {
|
|
|
300
300
|
interface OTPLoginParams {
|
|
301
301
|
email: string;
|
|
302
302
|
}
|
|
303
|
-
interface OTPSignupParams extends
|
|
304
|
-
|
|
305
|
-
lastName: string;
|
|
303
|
+
interface OTPSignupParams extends Omit<CustomerUpdateParams, "email"> {
|
|
304
|
+
email: string;
|
|
306
305
|
}
|
|
307
306
|
interface OTPVerifyParams {
|
|
308
307
|
email: string;
|
|
@@ -313,7 +312,7 @@ type OTPLoginResponse = {
|
|
|
313
312
|
token: string;
|
|
314
313
|
} | {
|
|
315
314
|
success: false;
|
|
316
|
-
code: "BAD_REQUEST";
|
|
315
|
+
code: "BAD_REQUEST" | "CUSTOMER_NOT_FOUND";
|
|
317
316
|
error: string;
|
|
318
317
|
};
|
|
319
318
|
type OTPSignupResponse = {
|
package/dist/index.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ interface LineItemCreate extends Omit<LineItem, "productData" | "product" | "met
|
|
|
32
32
|
value: string;
|
|
33
33
|
}[];
|
|
34
34
|
productId: string;
|
|
35
|
-
product?:
|
|
35
|
+
product?: ProductWithoutVariants;
|
|
36
36
|
metadata?: RecursiveRecord;
|
|
37
37
|
}
|
|
38
38
|
type Currency = string;
|
|
@@ -300,9 +300,8 @@ interface CustomerSession {
|
|
|
300
300
|
interface OTPLoginParams {
|
|
301
301
|
email: string;
|
|
302
302
|
}
|
|
303
|
-
interface OTPSignupParams extends
|
|
304
|
-
|
|
305
|
-
lastName: string;
|
|
303
|
+
interface OTPSignupParams extends Omit<CustomerUpdateParams, "email"> {
|
|
304
|
+
email: string;
|
|
306
305
|
}
|
|
307
306
|
interface OTPVerifyParams {
|
|
308
307
|
email: string;
|
|
@@ -313,7 +312,7 @@ type OTPLoginResponse = {
|
|
|
313
312
|
token: string;
|
|
314
313
|
} | {
|
|
315
314
|
success: false;
|
|
316
|
-
code: "BAD_REQUEST";
|
|
315
|
+
code: "BAD_REQUEST" | "CUSTOMER_NOT_FOUND";
|
|
317
316
|
error: string;
|
|
318
317
|
};
|
|
319
318
|
type OTPSignupResponse = {
|