@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 +12 -0
- package/dist/index.d.mts +5 -13
- package/dist/index.d.ts +5 -13
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -212,22 +212,16 @@ type Address = {
|
|
|
212
212
|
phone: string;
|
|
213
213
|
};
|
|
214
214
|
interface CustomerCreateParams {
|
|
215
|
-
firstName
|
|
216
|
-
lastName
|
|
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
|
|
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
|
|
216
|
-
lastName
|
|
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
|
|
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 = {
|