@betterstore/sdk 0.3.79 → 0.3.81
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 +10 -3
- package/dist/index.d.ts +10 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -308,16 +308,23 @@ type OTPLoginResponse = {
|
|
|
308
308
|
token: string;
|
|
309
309
|
} | {
|
|
310
310
|
success: false;
|
|
311
|
-
code:
|
|
311
|
+
code: "BAD_REQUEST";
|
|
312
|
+
error: string;
|
|
313
|
+
};
|
|
314
|
+
type OTPSignupResponse = {
|
|
315
|
+
success: true;
|
|
316
|
+
token: string;
|
|
317
|
+
} | {
|
|
318
|
+
success: false;
|
|
319
|
+
code: "BAD_REQUEST" | "CUSTOMER_ALREADY_EXISTS";
|
|
312
320
|
error: string;
|
|
313
321
|
};
|
|
314
|
-
type OTPSignupResponse = OTPLoginResponse;
|
|
315
322
|
type OTPVerifyResponse = {
|
|
316
323
|
success: true;
|
|
317
324
|
customerSession: CustomerSession;
|
|
318
325
|
} | {
|
|
319
326
|
success: false;
|
|
320
|
-
code:
|
|
327
|
+
code: "BAD_REQUEST";
|
|
321
328
|
error: string;
|
|
322
329
|
};
|
|
323
330
|
|
package/dist/index.d.ts
CHANGED
|
@@ -308,16 +308,23 @@ type OTPLoginResponse = {
|
|
|
308
308
|
token: string;
|
|
309
309
|
} | {
|
|
310
310
|
success: false;
|
|
311
|
-
code:
|
|
311
|
+
code: "BAD_REQUEST";
|
|
312
|
+
error: string;
|
|
313
|
+
};
|
|
314
|
+
type OTPSignupResponse = {
|
|
315
|
+
success: true;
|
|
316
|
+
token: string;
|
|
317
|
+
} | {
|
|
318
|
+
success: false;
|
|
319
|
+
code: "BAD_REQUEST" | "CUSTOMER_ALREADY_EXISTS";
|
|
312
320
|
error: string;
|
|
313
321
|
};
|
|
314
|
-
type OTPSignupResponse = OTPLoginResponse;
|
|
315
322
|
type OTPVerifyResponse = {
|
|
316
323
|
success: true;
|
|
317
324
|
customerSession: CustomerSession;
|
|
318
325
|
} | {
|
|
319
326
|
success: false;
|
|
320
|
-
code:
|
|
327
|
+
code: "BAD_REQUEST";
|
|
321
328
|
error: string;
|
|
322
329
|
};
|
|
323
330
|
|