@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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @betterstore/sdk
2
2
 
3
+ ## 0.3.81
4
+
5
+ ### Patch Changes
6
+
7
+ - bug fixes
8
+
9
+ ## 0.3.80
10
+
11
+ ### Patch Changes
12
+
13
+ - bug fixes
14
+
3
15
  ## 0.3.79
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -308,16 +308,23 @@ type OTPLoginResponse = {
308
308
  token: string;
309
309
  } | {
310
310
  success: false;
311
- code: string;
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: string;
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: string;
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: string;
327
+ code: "BAD_REQUEST";
321
328
  error: string;
322
329
  };
323
330
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterstore/sdk",
3
- "version": "0.3.79",
3
+ "version": "0.3.81",
4
4
  "description": "E-commerce for Developers",
5
5
  "private": false,
6
6
  "publishConfig": {