@betterstore/sdk 0.3.87 → 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 +6 -0
- package/dist/index.d.mts +4 -11
- package/dist/index.d.ts +4 -11
- 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,8 +294,7 @@ interface CustomerSession {
|
|
|
300
294
|
interface OTPLoginParams {
|
|
301
295
|
email: string;
|
|
302
296
|
}
|
|
303
|
-
interface OTPSignupParams extends
|
|
304
|
-
email: string;
|
|
297
|
+
interface OTPSignupParams extends CustomerCreateParams {
|
|
305
298
|
}
|
|
306
299
|
interface OTPVerifyParams {
|
|
307
300
|
email: string;
|
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,8 +294,7 @@ interface CustomerSession {
|
|
|
300
294
|
interface OTPLoginParams {
|
|
301
295
|
email: string;
|
|
302
296
|
}
|
|
303
|
-
interface OTPSignupParams extends
|
|
304
|
-
email: string;
|
|
297
|
+
interface OTPSignupParams extends CustomerCreateParams {
|
|
305
298
|
}
|
|
306
299
|
interface OTPVerifyParams {
|
|
307
300
|
email: string;
|