@putiikkipalvelu/storefront-sdk 0.10.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 CHANGED
@@ -131,6 +131,12 @@ interface FeatureFlags {
131
131
  newsletterEnabled: boolean;
132
132
  /** Whether product reviews are enabled */
133
133
  reviewsEnabled: boolean;
134
+ /**
135
+ * Whether the KKV peruutustoiminto (withdrawal function) is enabled.
136
+ * Storefronts should gate the footer link, order-confirmation paragraph,
137
+ * and `/peruutus` page on this flag. Defaults to true.
138
+ */
139
+ withdrawalEnabled: boolean;
134
140
  }
135
141
  /** Campaign type */
136
142
  type CampaignType = "BUY_X_PAY_Y";
@@ -867,6 +873,8 @@ interface Customer {
867
873
  createdAt?: string;
868
874
  /** Email verification timestamp - null if not verified (only in login response) */
869
875
  emailVerified?: string | null;
876
+ /** Whether the customer has opted in to the store's newsletter */
877
+ isSubscribedToNewsletter?: boolean;
870
878
  }
871
879
  /**
872
880
  * Data required to register a new customer account
@@ -880,6 +888,8 @@ interface RegisterData {
880
888
  email: string;
881
889
  /** Password (minimum 8 characters) */
882
890
  password: string;
891
+ /** Whether the customer opts in to the store's newsletter at signup (defaults to false) */
892
+ isSubscribedToNewsletter?: boolean;
883
893
  }
884
894
  /**
885
895
  * Options for the login method
@@ -975,6 +985,8 @@ interface UpdateProfileData {
975
985
  lastName?: string;
976
986
  /** Updated email address */
977
987
  email?: string;
988
+ /** Updated newsletter subscription preference */
989
+ isSubscribedToNewsletter?: boolean;
978
990
  }
979
991
  /**
980
992
  * Response from updating profile
package/dist/index.d.ts CHANGED
@@ -131,6 +131,12 @@ interface FeatureFlags {
131
131
  newsletterEnabled: boolean;
132
132
  /** Whether product reviews are enabled */
133
133
  reviewsEnabled: boolean;
134
+ /**
135
+ * Whether the KKV peruutustoiminto (withdrawal function) is enabled.
136
+ * Storefronts should gate the footer link, order-confirmation paragraph,
137
+ * and `/peruutus` page on this flag. Defaults to true.
138
+ */
139
+ withdrawalEnabled: boolean;
134
140
  }
135
141
  /** Campaign type */
136
142
  type CampaignType = "BUY_X_PAY_Y";
@@ -867,6 +873,8 @@ interface Customer {
867
873
  createdAt?: string;
868
874
  /** Email verification timestamp - null if not verified (only in login response) */
869
875
  emailVerified?: string | null;
876
+ /** Whether the customer has opted in to the store's newsletter */
877
+ isSubscribedToNewsletter?: boolean;
870
878
  }
871
879
  /**
872
880
  * Data required to register a new customer account
@@ -880,6 +888,8 @@ interface RegisterData {
880
888
  email: string;
881
889
  /** Password (minimum 8 characters) */
882
890
  password: string;
891
+ /** Whether the customer opts in to the store's newsletter at signup (defaults to false) */
892
+ isSubscribedToNewsletter?: boolean;
883
893
  }
884
894
  /**
885
895
  * Options for the login method
@@ -975,6 +985,8 @@ interface UpdateProfileData {
975
985
  lastName?: string;
976
986
  /** Updated email address */
977
987
  email?: string;
988
+ /** Updated newsletter subscription preference */
989
+ isSubscribedToNewsletter?: boolean;
978
990
  }
979
991
  /**
980
992
  * Response from updating profile
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putiikkipalvelu/storefront-sdk",
3
- "version": "0.10.0",
3
+ "version": "0.11.1",
4
4
  "description": "TypeScript SDK for Putiikkipalvelu Storefront API",
5
5
  "author": "Putiikkipalvelu",
6
6
  "license": "MIT",