@putiikkipalvelu/storefront-sdk 0.11.0 → 0.11.2
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 +12 -0
- package/dist/index.d.ts +12 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -137,6 +137,12 @@ interface FeatureFlags {
|
|
|
137
137
|
* and `/peruutus` page on this flag. Defaults to true.
|
|
138
138
|
*/
|
|
139
139
|
withdrawalEnabled: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* Whether customer accounts are enabled for the store. When false, the
|
|
142
|
+
* storefront should hide all account UI (login, register, account area,
|
|
143
|
+
* wishlist) and guard those routes. Defaults to true.
|
|
144
|
+
*/
|
|
145
|
+
customerAccountsEnabled: boolean;
|
|
140
146
|
}
|
|
141
147
|
/** Campaign type */
|
|
142
148
|
type CampaignType = "BUY_X_PAY_Y";
|
|
@@ -873,6 +879,8 @@ interface Customer {
|
|
|
873
879
|
createdAt?: string;
|
|
874
880
|
/** Email verification timestamp - null if not verified (only in login response) */
|
|
875
881
|
emailVerified?: string | null;
|
|
882
|
+
/** Whether the customer has opted in to the store's newsletter */
|
|
883
|
+
isSubscribedToNewsletter?: boolean;
|
|
876
884
|
}
|
|
877
885
|
/**
|
|
878
886
|
* Data required to register a new customer account
|
|
@@ -886,6 +894,8 @@ interface RegisterData {
|
|
|
886
894
|
email: string;
|
|
887
895
|
/** Password (minimum 8 characters) */
|
|
888
896
|
password: string;
|
|
897
|
+
/** Whether the customer opts in to the store's newsletter at signup (defaults to false) */
|
|
898
|
+
isSubscribedToNewsletter?: boolean;
|
|
889
899
|
}
|
|
890
900
|
/**
|
|
891
901
|
* Options for the login method
|
|
@@ -981,6 +991,8 @@ interface UpdateProfileData {
|
|
|
981
991
|
lastName?: string;
|
|
982
992
|
/** Updated email address */
|
|
983
993
|
email?: string;
|
|
994
|
+
/** Updated newsletter subscription preference */
|
|
995
|
+
isSubscribedToNewsletter?: boolean;
|
|
984
996
|
}
|
|
985
997
|
/**
|
|
986
998
|
* Response from updating profile
|
package/dist/index.d.ts
CHANGED
|
@@ -137,6 +137,12 @@ interface FeatureFlags {
|
|
|
137
137
|
* and `/peruutus` page on this flag. Defaults to true.
|
|
138
138
|
*/
|
|
139
139
|
withdrawalEnabled: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* Whether customer accounts are enabled for the store. When false, the
|
|
142
|
+
* storefront should hide all account UI (login, register, account area,
|
|
143
|
+
* wishlist) and guard those routes. Defaults to true.
|
|
144
|
+
*/
|
|
145
|
+
customerAccountsEnabled: boolean;
|
|
140
146
|
}
|
|
141
147
|
/** Campaign type */
|
|
142
148
|
type CampaignType = "BUY_X_PAY_Y";
|
|
@@ -873,6 +879,8 @@ interface Customer {
|
|
|
873
879
|
createdAt?: string;
|
|
874
880
|
/** Email verification timestamp - null if not verified (only in login response) */
|
|
875
881
|
emailVerified?: string | null;
|
|
882
|
+
/** Whether the customer has opted in to the store's newsletter */
|
|
883
|
+
isSubscribedToNewsletter?: boolean;
|
|
876
884
|
}
|
|
877
885
|
/**
|
|
878
886
|
* Data required to register a new customer account
|
|
@@ -886,6 +894,8 @@ interface RegisterData {
|
|
|
886
894
|
email: string;
|
|
887
895
|
/** Password (minimum 8 characters) */
|
|
888
896
|
password: string;
|
|
897
|
+
/** Whether the customer opts in to the store's newsletter at signup (defaults to false) */
|
|
898
|
+
isSubscribedToNewsletter?: boolean;
|
|
889
899
|
}
|
|
890
900
|
/**
|
|
891
901
|
* Options for the login method
|
|
@@ -981,6 +991,8 @@ interface UpdateProfileData {
|
|
|
981
991
|
lastName?: string;
|
|
982
992
|
/** Updated email address */
|
|
983
993
|
email?: string;
|
|
994
|
+
/** Updated newsletter subscription preference */
|
|
995
|
+
isSubscribedToNewsletter?: boolean;
|
|
984
996
|
}
|
|
985
997
|
/**
|
|
986
998
|
* Response from updating profile
|