@getsupertab/supertab-js 3.22.0 → 3.22.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.
@@ -38,7 +38,7 @@ declare class ApiClient {
38
38
  purchases: {
39
39
  status: "completed" | "pending" | "abandoned";
40
40
  id: string;
41
- offeringId: string;
41
+ offeringId: string | null;
42
42
  onetimeOfferingId: string | null;
43
43
  purchasedAt: string | (string | null)[] | null;
44
44
  completedAt: string | (string | null)[] | null;
@@ -110,11 +110,11 @@ declare class ApiClient {
110
110
  };
111
111
  amount: number;
112
112
  };
113
- entitlementDetails: {
113
+ entitlementDetails: null[] | {
114
114
  contentKey: string;
115
115
  duration: string;
116
116
  isRecurring: boolean;
117
- } | null[] | {
117
+ } | {
118
118
  contentKey: string;
119
119
  duration: string;
120
120
  isRecurring: boolean;
@@ -147,7 +147,7 @@ declare class ApiClient {
147
147
  }): Promise<{
148
148
  status: "completed" | "pending" | "abandoned";
149
149
  id: string;
150
- offeringId: string;
150
+ offeringId: string | null;
151
151
  onetimeOfferingId: string | null;
152
152
  purchasedAt: string | (string | null)[] | null;
153
153
  completedAt: string | (string | null)[] | null;
@@ -178,7 +178,7 @@ declare class ApiClient {
178
178
  purchase: {
179
179
  status: "completed" | "pending" | "abandoned";
180
180
  id: string;
181
- offeringId: string;
181
+ offeringId: string | null;
182
182
  onetimeOfferingId: string | null;
183
183
  purchasedAt: string | (string | null)[] | null;
184
184
  completedAt: string | (string | null)[] | null;
@@ -210,6 +210,42 @@ declare class ApiClient {
210
210
  next: string;
211
211
  reason: string;
212
212
  } | null;
213
+ } | {
214
+ purchases: {
215
+ status: "completed" | "pending" | "abandoned";
216
+ id: string;
217
+ offeringId: string | null;
218
+ onetimeOfferingId: string | null;
219
+ purchasedAt: string | (string | null)[] | null;
220
+ completedAt: string | (string | null)[] | null;
221
+ description: string;
222
+ price: {
223
+ currency: {
224
+ symbol: string;
225
+ code: string;
226
+ name: string;
227
+ baseUnit: number;
228
+ };
229
+ amount: number;
230
+ };
231
+ entitlementStatus: {
232
+ contentKey: string;
233
+ hasEntitlement: boolean;
234
+ expires: string | (string | null)[] | null;
235
+ recursAt: string | (string | null)[] | null;
236
+ } | null[] | {
237
+ contentKey: string;
238
+ hasEntitlement: boolean;
239
+ expires: string | (string | null)[] | null;
240
+ recursAt: string | (string | null)[] | null;
241
+ }[] | null;
242
+ metadata?: unknown;
243
+ }[];
244
+ actionRequired: boolean;
245
+ actionRequiredDetails: {
246
+ next: string;
247
+ reason: string;
248
+ } | null;
213
249
  } | undefined>;
214
250
  }
215
251
 
@@ -1,4 +1,4 @@
1
- import { S as e } from "./supertab-B8Vn8zcc.js";
1
+ import { S as e } from "./supertab-BswlSX5f.js";
2
2
  export {
3
3
  e as Supertab
4
4
  };
package/package.json CHANGED
@@ -22,7 +22,7 @@
22
22
  "engines": {
23
23
  "node": ">=22.13.1"
24
24
  },
25
- "version": "3.22.0",
25
+ "version": "3.22.2",
26
26
  "type": "module",
27
27
  "scripts": {
28
28
  "dev": "vite --config .vite/vite.dev.config.ts",