@putiikkipalvelu/storefront-sdk 0.11.0 → 0.11.1
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/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -873,6 +873,8 @@ interface Customer {
|
|
|
873
873
|
createdAt?: string;
|
|
874
874
|
/** Email verification timestamp - null if not verified (only in login response) */
|
|
875
875
|
emailVerified?: string | null;
|
|
876
|
+
/** Whether the customer has opted in to the store's newsletter */
|
|
877
|
+
isSubscribedToNewsletter?: boolean;
|
|
876
878
|
}
|
|
877
879
|
/**
|
|
878
880
|
* Data required to register a new customer account
|
|
@@ -886,6 +888,8 @@ interface RegisterData {
|
|
|
886
888
|
email: string;
|
|
887
889
|
/** Password (minimum 8 characters) */
|
|
888
890
|
password: string;
|
|
891
|
+
/** Whether the customer opts in to the store's newsletter at signup (defaults to false) */
|
|
892
|
+
isSubscribedToNewsletter?: boolean;
|
|
889
893
|
}
|
|
890
894
|
/**
|
|
891
895
|
* Options for the login method
|
|
@@ -981,6 +985,8 @@ interface UpdateProfileData {
|
|
|
981
985
|
lastName?: string;
|
|
982
986
|
/** Updated email address */
|
|
983
987
|
email?: string;
|
|
988
|
+
/** Updated newsletter subscription preference */
|
|
989
|
+
isSubscribedToNewsletter?: boolean;
|
|
984
990
|
}
|
|
985
991
|
/**
|
|
986
992
|
* Response from updating profile
|
package/dist/index.d.ts
CHANGED
|
@@ -873,6 +873,8 @@ interface Customer {
|
|
|
873
873
|
createdAt?: string;
|
|
874
874
|
/** Email verification timestamp - null if not verified (only in login response) */
|
|
875
875
|
emailVerified?: string | null;
|
|
876
|
+
/** Whether the customer has opted in to the store's newsletter */
|
|
877
|
+
isSubscribedToNewsletter?: boolean;
|
|
876
878
|
}
|
|
877
879
|
/**
|
|
878
880
|
* Data required to register a new customer account
|
|
@@ -886,6 +888,8 @@ interface RegisterData {
|
|
|
886
888
|
email: string;
|
|
887
889
|
/** Password (minimum 8 characters) */
|
|
888
890
|
password: string;
|
|
891
|
+
/** Whether the customer opts in to the store's newsletter at signup (defaults to false) */
|
|
892
|
+
isSubscribedToNewsletter?: boolean;
|
|
889
893
|
}
|
|
890
894
|
/**
|
|
891
895
|
* Options for the login method
|
|
@@ -981,6 +985,8 @@ interface UpdateProfileData {
|
|
|
981
985
|
lastName?: string;
|
|
982
986
|
/** Updated email address */
|
|
983
987
|
email?: string;
|
|
988
|
+
/** Updated newsletter subscription preference */
|
|
989
|
+
isSubscribedToNewsletter?: boolean;
|
|
984
990
|
}
|
|
985
991
|
/**
|
|
986
992
|
* Response from updating profile
|