@tiun/types 0.10.0 → 0.11.0

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.
Files changed (2) hide show
  1. package/index.d.ts +8 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -143,6 +143,8 @@ export interface TiunError {
143
143
  export interface UserInfo {
144
144
  userId: string;
145
145
  email: string;
146
+ /** Whether the user has opted in to the newsletter. */
147
+ hasNewsletterOptIn: boolean;
146
148
  productAccess: string[];
147
149
  }
148
150
 
@@ -170,6 +172,12 @@ export interface CheckoutOptions {
170
172
  * Specific product ID to checkout (optional, for future use)
171
173
  */
172
174
  productId?: string;
175
+ /**
176
+ * Your own identifier for this purchase (e.g. an order or booking ID).
177
+ * Required for repeatable products, which can be bought more than once —
178
+ * each purchase is tied to its reference ID.
179
+ */
180
+ referenceId?: string;
173
181
  }
174
182
 
175
183
  // =============================================================================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiun/types",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "TypeScript type definitions for tiun SDK (for script tag users)",
5
5
  "types": "./index.d.ts",
6
6
  "files": [