@betterstore/sdk 0.3.86 → 0.3.88

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.88
4
+
5
+ ### Patch Changes
6
+
7
+ - bug fix
8
+
9
+ ## 0.3.87
10
+
11
+ ### Patch Changes
12
+
13
+ - bug fixes
14
+
3
15
  ## 0.3.86
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -212,22 +212,16 @@ type Address = {
212
212
  phone: string;
213
213
  };
214
214
  interface CustomerCreateParams {
215
- firstName: string;
216
- lastName: string;
215
+ firstName?: string;
216
+ lastName?: string;
217
217
  email: string;
218
218
  phone?: string;
219
219
  address?: Address;
220
220
  isSubscribedEmail?: boolean;
221
221
  isSubscribedSMS?: boolean;
222
222
  }
223
- interface CustomerUpdateParams {
224
- firstName?: string;
225
- lastName?: string;
223
+ interface CustomerUpdateParams extends Omit<CustomerCreateParams, "email"> {
226
224
  email?: string;
227
- phone?: string;
228
- address?: Address;
229
- isSubscribedEmail?: boolean;
230
- isSubscribedSMS?: boolean;
231
225
  }
232
226
  interface Customer$1 extends CustomerCreateParams {
233
227
  id: string;
@@ -300,9 +294,7 @@ interface CustomerSession {
300
294
  interface OTPLoginParams {
301
295
  email: string;
302
296
  }
303
- interface OTPSignupParams extends OTPLoginParams {
304
- firstName: string;
305
- lastName: string;
297
+ interface OTPSignupParams extends CustomerCreateParams {
306
298
  }
307
299
  interface OTPVerifyParams {
308
300
  email: string;
@@ -313,7 +305,7 @@ type OTPLoginResponse = {
313
305
  token: string;
314
306
  } | {
315
307
  success: false;
316
- code: "BAD_REQUEST";
308
+ code: "BAD_REQUEST" | "CUSTOMER_NOT_FOUND";
317
309
  error: string;
318
310
  };
319
311
  type OTPSignupResponse = {
package/dist/index.d.ts CHANGED
@@ -212,22 +212,16 @@ type Address = {
212
212
  phone: string;
213
213
  };
214
214
  interface CustomerCreateParams {
215
- firstName: string;
216
- lastName: string;
215
+ firstName?: string;
216
+ lastName?: string;
217
217
  email: string;
218
218
  phone?: string;
219
219
  address?: Address;
220
220
  isSubscribedEmail?: boolean;
221
221
  isSubscribedSMS?: boolean;
222
222
  }
223
- interface CustomerUpdateParams {
224
- firstName?: string;
225
- lastName?: string;
223
+ interface CustomerUpdateParams extends Omit<CustomerCreateParams, "email"> {
226
224
  email?: string;
227
- phone?: string;
228
- address?: Address;
229
- isSubscribedEmail?: boolean;
230
- isSubscribedSMS?: boolean;
231
225
  }
232
226
  interface Customer$1 extends CustomerCreateParams {
233
227
  id: string;
@@ -300,9 +294,7 @@ interface CustomerSession {
300
294
  interface OTPLoginParams {
301
295
  email: string;
302
296
  }
303
- interface OTPSignupParams extends OTPLoginParams {
304
- firstName: string;
305
- lastName: string;
297
+ interface OTPSignupParams extends CustomerCreateParams {
306
298
  }
307
299
  interface OTPVerifyParams {
308
300
  email: string;
@@ -313,7 +305,7 @@ type OTPLoginResponse = {
313
305
  token: string;
314
306
  } | {
315
307
  success: false;
316
- code: "BAD_REQUEST";
308
+ code: "BAD_REQUEST" | "CUSTOMER_NOT_FOUND";
317
309
  error: string;
318
310
  };
319
311
  type OTPSignupResponse = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterstore/sdk",
3
- "version": "0.3.86",
3
+ "version": "0.3.88",
4
4
  "description": "E-commerce for Developers",
5
5
  "private": false,
6
6
  "publishConfig": {