@whop/sdk 0.0.2 → 0.0.4
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/CHANGELOG.md +55 -0
- package/client.d.mts +30 -12
- package/client.d.mts.map +1 -1
- package/client.d.ts +30 -12
- package/client.d.ts.map +1 -1
- package/client.js +19 -1
- package/client.js.map +1 -1
- package/client.mjs +21 -3
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/app-builds.d.mts +16 -13
- package/resources/app-builds.d.mts.map +1 -1
- package/resources/app-builds.d.ts +16 -13
- package/resources/app-builds.d.ts.map +1 -1
- package/resources/app-builds.js +1 -1
- package/resources/app-builds.mjs +1 -1
- package/resources/apps.d.mts +15 -10
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +15 -10
- package/resources/apps.d.ts.map +1 -1
- package/resources/checkout-configurations.d.mts +252 -140
- package/resources/checkout-configurations.d.mts.map +1 -1
- package/resources/checkout-configurations.d.ts +252 -140
- package/resources/checkout-configurations.d.ts.map +1 -1
- package/resources/checkout-configurations.js +6 -20
- package/resources/checkout-configurations.js.map +1 -1
- package/resources/checkout-configurations.mjs +6 -20
- package/resources/checkout-configurations.mjs.map +1 -1
- package/resources/companies.d.mts +157 -0
- package/resources/companies.d.mts.map +1 -1
- package/resources/companies.d.ts +157 -0
- package/resources/companies.d.ts.map +1 -1
- package/resources/companies.js +22 -0
- package/resources/companies.js.map +1 -1
- package/resources/companies.mjs +22 -0
- package/resources/companies.mjs.map +1 -1
- package/resources/course-chapters.d.mts +185 -0
- package/resources/course-chapters.d.mts.map +1 -0
- package/resources/course-chapters.d.ts +185 -0
- package/resources/course-chapters.d.ts.map +1 -0
- package/resources/course-chapters.js +103 -0
- package/resources/course-chapters.js.map +1 -0
- package/resources/course-chapters.mjs +99 -0
- package/resources/course-chapters.mjs.map +1 -0
- package/resources/course-lesson-interactions.d.mts +2 -2
- package/resources/course-lesson-interactions.d.ts +2 -2
- package/resources/course-lesson-interactions.js +2 -2
- package/resources/course-lesson-interactions.mjs +2 -2
- package/resources/course-lessons.d.mts +563 -0
- package/resources/course-lessons.d.mts.map +1 -0
- package/resources/course-lessons.d.ts +563 -0
- package/resources/course-lessons.d.ts.map +1 -0
- package/resources/course-lessons.js +101 -0
- package/resources/course-lessons.js.map +1 -0
- package/resources/course-lessons.mjs +97 -0
- package/resources/course-lessons.mjs.map +1 -0
- package/resources/course-students.d.mts +187 -0
- package/resources/course-students.d.mts.map +1 -0
- package/resources/course-students.d.ts +187 -0
- package/resources/course-students.d.ts.map +1 -0
- package/resources/course-students.js +36 -0
- package/resources/course-students.js.map +1 -0
- package/resources/course-students.mjs +32 -0
- package/resources/course-students.mjs.map +1 -0
- package/resources/courses.d.mts +485 -0
- package/resources/courses.d.mts.map +1 -0
- package/resources/courses.d.ts +485 -0
- package/resources/courses.d.ts.map +1 -0
- package/resources/courses.js +98 -0
- package/resources/courses.js.map +1 -0
- package/resources/courses.mjs +94 -0
- package/resources/courses.mjs.map +1 -0
- package/resources/experiences.d.mts +42 -11
- package/resources/experiences.d.mts.map +1 -1
- package/resources/experiences.d.ts +42 -11
- package/resources/experiences.d.ts.map +1 -1
- package/resources/experiences.js +22 -0
- package/resources/experiences.js.map +1 -1
- package/resources/experiences.mjs +22 -0
- package/resources/experiences.mjs.map +1 -1
- package/resources/forum-posts.d.mts +75 -10
- package/resources/forum-posts.d.mts.map +1 -1
- package/resources/forum-posts.d.ts +75 -10
- package/resources/forum-posts.d.ts.map +1 -1
- package/resources/forum-posts.js +11 -0
- package/resources/forum-posts.js.map +1 -1
- package/resources/forum-posts.mjs +11 -0
- package/resources/forum-posts.mjs.map +1 -1
- package/resources/index.d.mts +12 -6
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +12 -6
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +13 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +7 -1
- package/resources/index.mjs.map +1 -1
- package/resources/invoices.d.mts +529 -146
- package/resources/invoices.d.mts.map +1 -1
- package/resources/invoices.d.ts +529 -146
- package/resources/invoices.d.ts.map +1 -1
- package/resources/invoices.js +2 -24
- package/resources/invoices.js.map +1 -1
- package/resources/invoices.mjs +2 -24
- package/resources/invoices.mjs.map +1 -1
- package/resources/ledger-accounts.d.mts +1 -1
- package/resources/ledger-accounts.d.mts.map +1 -1
- package/resources/ledger-accounts.d.ts +1 -1
- package/resources/ledger-accounts.d.ts.map +1 -1
- package/resources/members.d.mts +4 -0
- package/resources/members.d.mts.map +1 -1
- package/resources/members.d.ts +4 -0
- package/resources/members.d.ts.map +1 -1
- package/resources/memberships.d.mts +26 -5
- package/resources/memberships.d.mts.map +1 -1
- package/resources/memberships.d.ts +26 -5
- package/resources/memberships.d.ts.map +1 -1
- package/resources/memberships.js +1 -1
- package/resources/memberships.js.map +1 -1
- package/resources/memberships.mjs +1 -1
- package/resources/memberships.mjs.map +1 -1
- package/resources/messages.d.mts +57 -10
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +57 -10
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +6 -0
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +6 -0
- package/resources/messages.mjs.map +1 -1
- package/resources/payments.d.mts +35 -13
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +35 -13
- package/resources/payments.d.ts.map +1 -1
- package/resources/plans.d.mts +161 -17
- package/resources/plans.d.mts.map +1 -1
- package/resources/plans.d.ts +161 -17
- package/resources/plans.d.ts.map +1 -1
- package/resources/plans.js.map +1 -1
- package/resources/plans.mjs.map +1 -1
- package/resources/products.d.mts +30 -33
- package/resources/products.d.mts.map +1 -1
- package/resources/products.d.ts +30 -33
- package/resources/products.d.ts.map +1 -1
- package/resources/promo-codes.d.mts +394 -0
- package/resources/promo-codes.d.mts.map +1 -0
- package/resources/promo-codes.d.ts +394 -0
- package/resources/promo-codes.d.ts.map +1 -0
- package/resources/promo-codes.js +91 -0
- package/resources/promo-codes.js.map +1 -0
- package/resources/promo-codes.mjs +87 -0
- package/resources/promo-codes.mjs.map +1 -0
- package/resources/reviews.d.mts +277 -0
- package/resources/reviews.d.mts.map +1 -0
- package/resources/reviews.d.ts +277 -0
- package/resources/reviews.d.ts.map +1 -0
- package/resources/reviews.js +23 -0
- package/resources/reviews.js.map +1 -0
- package/resources/reviews.mjs +19 -0
- package/resources/reviews.mjs.map +1 -0
- package/resources/shared.d.mts +117 -14
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +117 -14
- package/resources/shared.d.ts.map +1 -1
- package/resources/transfers.d.mts +12 -0
- package/resources/transfers.d.mts.map +1 -1
- package/resources/transfers.d.ts +12 -0
- package/resources/transfers.d.ts.map +1 -1
- package/src/client.ts +166 -11
- package/src/resources/app-builds.ts +19 -14
- package/src/resources/apps.ts +16 -11
- package/src/resources/checkout-configurations.ts +278 -143
- package/src/resources/companies.ts +196 -0
- package/src/resources/course-chapters.ts +236 -0
- package/src/resources/course-lesson-interactions.ts +2 -2
- package/src/resources/course-lessons.ts +699 -0
- package/src/resources/course-students.ts +238 -0
- package/src/resources/courses.ts +622 -0
- package/src/resources/experiences.ts +54 -11
- package/src/resources/forum-posts.ts +95 -10
- package/src/resources/index.ts +73 -2
- package/src/resources/invoices.ts +620 -149
- package/src/resources/ledger-accounts.ts +13 -1
- package/src/resources/members.ts +5 -0
- package/src/resources/memberships.ts +31 -6
- package/src/resources/messages.ts +74 -10
- package/src/resources/payments.ts +146 -19
- package/src/resources/plans.ts +184 -17
- package/src/resources/products.ts +36 -37
- package/src/resources/promo-codes.ts +490 -0
- package/src/resources/reviews.ts +348 -0
- package/src/resources/shared.ts +128 -14
- package/src/resources/transfers.ts +10 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/plans.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import * as PaymentsAPI from "./payments.mjs";
|
|
2
3
|
import * as Shared from "./shared.mjs";
|
|
3
4
|
import { APIPromise } from "../core/api-promise.mjs";
|
|
4
5
|
import { CursorPage, type CursorPageParams, PagePromise } from "../core/pagination.mjs";
|
|
@@ -137,6 +138,10 @@ export interface PlanListResponse {
|
|
|
137
138
|
* The number of members for the plan.
|
|
138
139
|
*/
|
|
139
140
|
member_count: number | null;
|
|
141
|
+
/**
|
|
142
|
+
* The explicit payment method configuration for the plan, if any.
|
|
143
|
+
*/
|
|
144
|
+
payment_method_configuration: PlanListResponse.PaymentMethodConfiguration | null;
|
|
140
145
|
/**
|
|
141
146
|
* Indicates if the plan is a one time payment or recurring.
|
|
142
147
|
*/
|
|
@@ -157,10 +162,22 @@ export interface PlanListResponse {
|
|
|
157
162
|
* The price a person has to pay for a plan on the renewal purchase.
|
|
158
163
|
*/
|
|
159
164
|
renewal_price: number;
|
|
165
|
+
/**
|
|
166
|
+
* The number of units available for purchase. Only displayed to authorized actors
|
|
167
|
+
*/
|
|
168
|
+
stock: number | null;
|
|
169
|
+
/**
|
|
170
|
+
* The title of the plan. This will be visible on the product page to customers.
|
|
171
|
+
*/
|
|
172
|
+
title: string | null;
|
|
160
173
|
/**
|
|
161
174
|
* The number of free trial days added before a renewal plan.
|
|
162
175
|
*/
|
|
163
176
|
trial_period_days: number | null;
|
|
177
|
+
/**
|
|
178
|
+
* Limits/doesn't limit the number of units available for purchase.
|
|
179
|
+
*/
|
|
180
|
+
unlimited_stock: boolean;
|
|
164
181
|
/**
|
|
165
182
|
* When the plan was last updated.
|
|
166
183
|
*/
|
|
@@ -193,6 +210,29 @@ export declare namespace PlanListResponse {
|
|
|
193
210
|
*/
|
|
194
211
|
id: string;
|
|
195
212
|
}
|
|
213
|
+
/**
|
|
214
|
+
* The explicit payment method configuration for the plan, if any.
|
|
215
|
+
*/
|
|
216
|
+
interface PaymentMethodConfiguration {
|
|
217
|
+
/**
|
|
218
|
+
* An array of payment method identifiers that are explicitly disabled. Only
|
|
219
|
+
* applies if the include_platform_defaults is true.
|
|
220
|
+
*/
|
|
221
|
+
disabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
222
|
+
/**
|
|
223
|
+
* An array of payment method identifiers that are explicitly enabled. This means
|
|
224
|
+
* these payment methods will be shown on checkout. Example use case is to only
|
|
225
|
+
* enable a specific payment method like cashapp, or extending the platform
|
|
226
|
+
* defaults with additional methods.
|
|
227
|
+
*/
|
|
228
|
+
enabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
229
|
+
/**
|
|
230
|
+
* Whether Whop's platform default payment method enablement settings are included
|
|
231
|
+
* in this configuration. The full list of default payment methods can be found in
|
|
232
|
+
* the documentation at docs.whop.com/payments.
|
|
233
|
+
*/
|
|
234
|
+
include_platform_defaults: boolean;
|
|
235
|
+
}
|
|
196
236
|
/**
|
|
197
237
|
* The access pass for the plan.
|
|
198
238
|
*/
|
|
@@ -221,7 +261,7 @@ export interface PlanCreateParams {
|
|
|
221
261
|
*/
|
|
222
262
|
product_id: string;
|
|
223
263
|
/**
|
|
224
|
-
* The interval at which the plan charges (renewal plans).
|
|
264
|
+
* The interval in days at which the plan charges (renewal plans).
|
|
225
265
|
*/
|
|
226
266
|
billing_period?: number | null;
|
|
227
267
|
/**
|
|
@@ -243,7 +283,7 @@ export interface PlanCreateParams {
|
|
|
243
283
|
/**
|
|
244
284
|
* An image for the plan. This will be visible on the product page to customers.
|
|
245
285
|
*/
|
|
246
|
-
image?: PlanCreateParams.
|
|
286
|
+
image?: PlanCreateParams.AttachmentInputWithDirectUploadID | PlanCreateParams.AttachmentInputWithID | null;
|
|
247
287
|
/**
|
|
248
288
|
* An additional amount charged upon first purchase. Use only if a one time payment
|
|
249
289
|
* OR you want to charge an additional amount on top of the renewal price. Provided
|
|
@@ -259,6 +299,11 @@ export interface PlanCreateParams {
|
|
|
259
299
|
* up)
|
|
260
300
|
*/
|
|
261
301
|
override_tax_type?: Shared.TaxType | null;
|
|
302
|
+
/**
|
|
303
|
+
* The explicit payment method configuration for the plan. If not provided, the
|
|
304
|
+
* platform or company's defaults will apply.
|
|
305
|
+
*/
|
|
306
|
+
payment_method_configuration?: PlanCreateParams.PaymentMethodConfiguration | null;
|
|
262
307
|
/**
|
|
263
308
|
* The type of plan that can be attached to an access pass
|
|
264
309
|
*/
|
|
@@ -272,6 +317,20 @@ export interface PlanCreateParams {
|
|
|
272
317
|
* payment. Provided as a number in dollars. Eg: 10.43 for $10.43
|
|
273
318
|
*/
|
|
274
319
|
renewal_price?: number | null;
|
|
320
|
+
/**
|
|
321
|
+
* The number of units available for purchase.
|
|
322
|
+
*/
|
|
323
|
+
stock?: number | null;
|
|
324
|
+
/**
|
|
325
|
+
* The price to display with a strikethrough for the initial price. Provided as a
|
|
326
|
+
* number in dollars. Eg: 19.99 for $19.99
|
|
327
|
+
*/
|
|
328
|
+
strike_through_initial_price?: number | null;
|
|
329
|
+
/**
|
|
330
|
+
* The price to display with a strikethrough for the renewal price. Provided as a
|
|
331
|
+
* number in dollars. Eg: 19.99 for $19.99
|
|
332
|
+
*/
|
|
333
|
+
strike_through_renewal_price?: number | null;
|
|
275
334
|
/**
|
|
276
335
|
* The title of the plan. This will be visible on the product page to customers.
|
|
277
336
|
*/
|
|
@@ -280,6 +339,10 @@ export interface PlanCreateParams {
|
|
|
280
339
|
* The number of free trial days added before a renewal plan.
|
|
281
340
|
*/
|
|
282
341
|
trial_period_days?: number | null;
|
|
342
|
+
/**
|
|
343
|
+
* Limits/doesn't limit the number of units available for purchase.
|
|
344
|
+
*/
|
|
345
|
+
unlimited_stock?: boolean | null;
|
|
283
346
|
/**
|
|
284
347
|
* Visibility of a resource
|
|
285
348
|
*/
|
|
@@ -313,21 +376,50 @@ export declare namespace PlanCreateParams {
|
|
|
313
376
|
required?: boolean | null;
|
|
314
377
|
}
|
|
315
378
|
/**
|
|
316
|
-
*
|
|
379
|
+
* Input for an attachment
|
|
380
|
+
*/
|
|
381
|
+
interface AttachmentInputWithDirectUploadID {
|
|
382
|
+
/**
|
|
383
|
+
* This ID should be used the first time you upload an attachment. It is the ID of
|
|
384
|
+
* the direct upload that was created when uploading the file to S3 via the
|
|
385
|
+
* mediaDirectUpload mutation.
|
|
386
|
+
*/
|
|
387
|
+
direct_upload_id: string;
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* Input for an attachment
|
|
317
391
|
*/
|
|
318
|
-
interface
|
|
392
|
+
interface AttachmentInputWithID {
|
|
319
393
|
/**
|
|
320
394
|
* The ID of an existing attachment object. Use this when updating a resource and
|
|
321
395
|
* keeping a subset of the attachments. Don't use this unless you know what you're
|
|
322
396
|
* doing.
|
|
323
397
|
*/
|
|
324
|
-
id
|
|
398
|
+
id: string;
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
* The explicit payment method configuration for the plan. If not provided, the
|
|
402
|
+
* platform or company's defaults will apply.
|
|
403
|
+
*/
|
|
404
|
+
interface PaymentMethodConfiguration {
|
|
325
405
|
/**
|
|
326
|
-
*
|
|
327
|
-
*
|
|
328
|
-
* mediaDirectUpload mutation.
|
|
406
|
+
* An array of payment method identifiers that are explicitly disabled. Only
|
|
407
|
+
* applies if the include_platform_defaults is true.
|
|
329
408
|
*/
|
|
330
|
-
|
|
409
|
+
disabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
410
|
+
/**
|
|
411
|
+
* An array of payment method identifiers that are explicitly enabled. This means
|
|
412
|
+
* these payment methods will be shown on checkout. Example use case is to only
|
|
413
|
+
* enable a specific payment method like cashapp, or extending the platform
|
|
414
|
+
* defaults with additional methods.
|
|
415
|
+
*/
|
|
416
|
+
enabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
417
|
+
/**
|
|
418
|
+
* Whether Whop's platform default payment method enablement settings are included
|
|
419
|
+
* in this configuration. The full list of default payment methods can be found in
|
|
420
|
+
* the documentation at docs.whop.com/payments.
|
|
421
|
+
*/
|
|
422
|
+
include_platform_defaults: boolean;
|
|
331
423
|
}
|
|
332
424
|
}
|
|
333
425
|
export interface PlanUpdateParams {
|
|
@@ -354,7 +446,7 @@ export interface PlanUpdateParams {
|
|
|
354
446
|
/**
|
|
355
447
|
* An image for the plan. This will be visible on the product page to customers.
|
|
356
448
|
*/
|
|
357
|
-
image?: PlanUpdateParams.
|
|
449
|
+
image?: PlanUpdateParams.AttachmentInputWithDirectUploadID | PlanUpdateParams.AttachmentInputWithID | null;
|
|
358
450
|
/**
|
|
359
451
|
* An additional amount charged upon first purchase.
|
|
360
452
|
*/
|
|
@@ -372,10 +464,29 @@ export interface PlanUpdateParams {
|
|
|
372
464
|
* up)
|
|
373
465
|
*/
|
|
374
466
|
override_tax_type?: Shared.TaxType | null;
|
|
467
|
+
/**
|
|
468
|
+
* The explicit payment method configuration for the plan. If sent as null, the
|
|
469
|
+
* custom configuration will be removed.
|
|
470
|
+
*/
|
|
471
|
+
payment_method_configuration?: PlanUpdateParams.PaymentMethodConfiguration | null;
|
|
375
472
|
/**
|
|
376
473
|
* The amount the customer is charged every billing period.
|
|
377
474
|
*/
|
|
378
475
|
renewal_price?: number | null;
|
|
476
|
+
/**
|
|
477
|
+
* The number of units available for purchase.
|
|
478
|
+
*/
|
|
479
|
+
stock?: number | null;
|
|
480
|
+
/**
|
|
481
|
+
* The price to display with a strikethrough for the initial price. Provided as a
|
|
482
|
+
* number in dollars. Eg: 19.99 for $19.99
|
|
483
|
+
*/
|
|
484
|
+
strike_through_initial_price?: number | null;
|
|
485
|
+
/**
|
|
486
|
+
* The price to display with a strikethrough for the renewal price. Provided as a
|
|
487
|
+
* number in dollars. Eg: 19.99 for $19.99
|
|
488
|
+
*/
|
|
489
|
+
strike_through_renewal_price?: number | null;
|
|
379
490
|
/**
|
|
380
491
|
* The title of the plan. This will be visible on the product page to customers.
|
|
381
492
|
*/
|
|
@@ -384,6 +495,10 @@ export interface PlanUpdateParams {
|
|
|
384
495
|
* The number of free trial days added before a renewal plan.
|
|
385
496
|
*/
|
|
386
497
|
trial_period_days?: number | null;
|
|
498
|
+
/**
|
|
499
|
+
* Limits/doesn't limit the number of units available for purchase.
|
|
500
|
+
*/
|
|
501
|
+
unlimited_stock?: boolean | null;
|
|
387
502
|
/**
|
|
388
503
|
* Visibility of a resource
|
|
389
504
|
*/
|
|
@@ -417,21 +532,50 @@ export declare namespace PlanUpdateParams {
|
|
|
417
532
|
required?: boolean | null;
|
|
418
533
|
}
|
|
419
534
|
/**
|
|
420
|
-
*
|
|
535
|
+
* Input for an attachment
|
|
421
536
|
*/
|
|
422
|
-
interface
|
|
537
|
+
interface AttachmentInputWithDirectUploadID {
|
|
538
|
+
/**
|
|
539
|
+
* This ID should be used the first time you upload an attachment. It is the ID of
|
|
540
|
+
* the direct upload that was created when uploading the file to S3 via the
|
|
541
|
+
* mediaDirectUpload mutation.
|
|
542
|
+
*/
|
|
543
|
+
direct_upload_id: string;
|
|
544
|
+
}
|
|
545
|
+
/**
|
|
546
|
+
* Input for an attachment
|
|
547
|
+
*/
|
|
548
|
+
interface AttachmentInputWithID {
|
|
423
549
|
/**
|
|
424
550
|
* The ID of an existing attachment object. Use this when updating a resource and
|
|
425
551
|
* keeping a subset of the attachments. Don't use this unless you know what you're
|
|
426
552
|
* doing.
|
|
427
553
|
*/
|
|
428
|
-
id
|
|
554
|
+
id: string;
|
|
555
|
+
}
|
|
556
|
+
/**
|
|
557
|
+
* The explicit payment method configuration for the plan. If sent as null, the
|
|
558
|
+
* custom configuration will be removed.
|
|
559
|
+
*/
|
|
560
|
+
interface PaymentMethodConfiguration {
|
|
429
561
|
/**
|
|
430
|
-
*
|
|
431
|
-
*
|
|
432
|
-
|
|
562
|
+
* An array of payment method identifiers that are explicitly disabled. Only
|
|
563
|
+
* applies if the include_platform_defaults is true.
|
|
564
|
+
*/
|
|
565
|
+
disabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
566
|
+
/**
|
|
567
|
+
* An array of payment method identifiers that are explicitly enabled. This means
|
|
568
|
+
* these payment methods will be shown on checkout. Example use case is to only
|
|
569
|
+
* enable a specific payment method like cashapp, or extending the platform
|
|
570
|
+
* defaults with additional methods.
|
|
571
|
+
*/
|
|
572
|
+
enabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
573
|
+
/**
|
|
574
|
+
* Whether Whop's platform default payment method enablement settings are included
|
|
575
|
+
* in this configuration. The full list of default payment methods can be found in
|
|
576
|
+
* the documentation at docs.whop.com/payments.
|
|
433
577
|
*/
|
|
434
|
-
|
|
578
|
+
include_platform_defaults: boolean;
|
|
435
579
|
}
|
|
436
580
|
}
|
|
437
581
|
export interface PlanListParams extends CursorPageParams {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plans.d.mts","sourceRoot":"","sources":["../src/resources/plans.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC;IAIjF;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC;IAIvE;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC;IAI1B;;;;;;;;;;;;;;;;OAgBG;IACH,IAAI,CACF,KAAK,EAAE,cAAc,EACrB,OAAO,CAAC,EAAE,cAAc,GACvB,WAA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,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,SAAS,GAAG,IAAI,CAAC;IAEpC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;OAEG;IACH,KAAK,CAAC,EAAE,IAAI,GAAG,sBAAsB,GAAG,YAAY,GAAG,gBAAgB,GAAG,YAAY,GAAG,IAAI,CAAC;IAE9F;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC;IAE3C;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAEnC;;OAEG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC;IAErD;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC;CACtD;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"}
|
package/resources/plans.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import * as PaymentsAPI from "./payments.js";
|
|
2
3
|
import * as Shared from "./shared.js";
|
|
3
4
|
import { APIPromise } from "../core/api-promise.js";
|
|
4
5
|
import { CursorPage, type CursorPageParams, PagePromise } from "../core/pagination.js";
|
|
@@ -137,6 +138,10 @@ export interface PlanListResponse {
|
|
|
137
138
|
* The number of members for the plan.
|
|
138
139
|
*/
|
|
139
140
|
member_count: number | null;
|
|
141
|
+
/**
|
|
142
|
+
* The explicit payment method configuration for the plan, if any.
|
|
143
|
+
*/
|
|
144
|
+
payment_method_configuration: PlanListResponse.PaymentMethodConfiguration | null;
|
|
140
145
|
/**
|
|
141
146
|
* Indicates if the plan is a one time payment or recurring.
|
|
142
147
|
*/
|
|
@@ -157,10 +162,22 @@ export interface PlanListResponse {
|
|
|
157
162
|
* The price a person has to pay for a plan on the renewal purchase.
|
|
158
163
|
*/
|
|
159
164
|
renewal_price: number;
|
|
165
|
+
/**
|
|
166
|
+
* The number of units available for purchase. Only displayed to authorized actors
|
|
167
|
+
*/
|
|
168
|
+
stock: number | null;
|
|
169
|
+
/**
|
|
170
|
+
* The title of the plan. This will be visible on the product page to customers.
|
|
171
|
+
*/
|
|
172
|
+
title: string | null;
|
|
160
173
|
/**
|
|
161
174
|
* The number of free trial days added before a renewal plan.
|
|
162
175
|
*/
|
|
163
176
|
trial_period_days: number | null;
|
|
177
|
+
/**
|
|
178
|
+
* Limits/doesn't limit the number of units available for purchase.
|
|
179
|
+
*/
|
|
180
|
+
unlimited_stock: boolean;
|
|
164
181
|
/**
|
|
165
182
|
* When the plan was last updated.
|
|
166
183
|
*/
|
|
@@ -193,6 +210,29 @@ export declare namespace PlanListResponse {
|
|
|
193
210
|
*/
|
|
194
211
|
id: string;
|
|
195
212
|
}
|
|
213
|
+
/**
|
|
214
|
+
* The explicit payment method configuration for the plan, if any.
|
|
215
|
+
*/
|
|
216
|
+
interface PaymentMethodConfiguration {
|
|
217
|
+
/**
|
|
218
|
+
* An array of payment method identifiers that are explicitly disabled. Only
|
|
219
|
+
* applies if the include_platform_defaults is true.
|
|
220
|
+
*/
|
|
221
|
+
disabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
222
|
+
/**
|
|
223
|
+
* An array of payment method identifiers that are explicitly enabled. This means
|
|
224
|
+
* these payment methods will be shown on checkout. Example use case is to only
|
|
225
|
+
* enable a specific payment method like cashapp, or extending the platform
|
|
226
|
+
* defaults with additional methods.
|
|
227
|
+
*/
|
|
228
|
+
enabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
229
|
+
/**
|
|
230
|
+
* Whether Whop's platform default payment method enablement settings are included
|
|
231
|
+
* in this configuration. The full list of default payment methods can be found in
|
|
232
|
+
* the documentation at docs.whop.com/payments.
|
|
233
|
+
*/
|
|
234
|
+
include_platform_defaults: boolean;
|
|
235
|
+
}
|
|
196
236
|
/**
|
|
197
237
|
* The access pass for the plan.
|
|
198
238
|
*/
|
|
@@ -221,7 +261,7 @@ export interface PlanCreateParams {
|
|
|
221
261
|
*/
|
|
222
262
|
product_id: string;
|
|
223
263
|
/**
|
|
224
|
-
* The interval at which the plan charges (renewal plans).
|
|
264
|
+
* The interval in days at which the plan charges (renewal plans).
|
|
225
265
|
*/
|
|
226
266
|
billing_period?: number | null;
|
|
227
267
|
/**
|
|
@@ -243,7 +283,7 @@ export interface PlanCreateParams {
|
|
|
243
283
|
/**
|
|
244
284
|
* An image for the plan. This will be visible on the product page to customers.
|
|
245
285
|
*/
|
|
246
|
-
image?: PlanCreateParams.
|
|
286
|
+
image?: PlanCreateParams.AttachmentInputWithDirectUploadID | PlanCreateParams.AttachmentInputWithID | null;
|
|
247
287
|
/**
|
|
248
288
|
* An additional amount charged upon first purchase. Use only if a one time payment
|
|
249
289
|
* OR you want to charge an additional amount on top of the renewal price. Provided
|
|
@@ -259,6 +299,11 @@ export interface PlanCreateParams {
|
|
|
259
299
|
* up)
|
|
260
300
|
*/
|
|
261
301
|
override_tax_type?: Shared.TaxType | null;
|
|
302
|
+
/**
|
|
303
|
+
* The explicit payment method configuration for the plan. If not provided, the
|
|
304
|
+
* platform or company's defaults will apply.
|
|
305
|
+
*/
|
|
306
|
+
payment_method_configuration?: PlanCreateParams.PaymentMethodConfiguration | null;
|
|
262
307
|
/**
|
|
263
308
|
* The type of plan that can be attached to an access pass
|
|
264
309
|
*/
|
|
@@ -272,6 +317,20 @@ export interface PlanCreateParams {
|
|
|
272
317
|
* payment. Provided as a number in dollars. Eg: 10.43 for $10.43
|
|
273
318
|
*/
|
|
274
319
|
renewal_price?: number | null;
|
|
320
|
+
/**
|
|
321
|
+
* The number of units available for purchase.
|
|
322
|
+
*/
|
|
323
|
+
stock?: number | null;
|
|
324
|
+
/**
|
|
325
|
+
* The price to display with a strikethrough for the initial price. Provided as a
|
|
326
|
+
* number in dollars. Eg: 19.99 for $19.99
|
|
327
|
+
*/
|
|
328
|
+
strike_through_initial_price?: number | null;
|
|
329
|
+
/**
|
|
330
|
+
* The price to display with a strikethrough for the renewal price. Provided as a
|
|
331
|
+
* number in dollars. Eg: 19.99 for $19.99
|
|
332
|
+
*/
|
|
333
|
+
strike_through_renewal_price?: number | null;
|
|
275
334
|
/**
|
|
276
335
|
* The title of the plan. This will be visible on the product page to customers.
|
|
277
336
|
*/
|
|
@@ -280,6 +339,10 @@ export interface PlanCreateParams {
|
|
|
280
339
|
* The number of free trial days added before a renewal plan.
|
|
281
340
|
*/
|
|
282
341
|
trial_period_days?: number | null;
|
|
342
|
+
/**
|
|
343
|
+
* Limits/doesn't limit the number of units available for purchase.
|
|
344
|
+
*/
|
|
345
|
+
unlimited_stock?: boolean | null;
|
|
283
346
|
/**
|
|
284
347
|
* Visibility of a resource
|
|
285
348
|
*/
|
|
@@ -313,21 +376,50 @@ export declare namespace PlanCreateParams {
|
|
|
313
376
|
required?: boolean | null;
|
|
314
377
|
}
|
|
315
378
|
/**
|
|
316
|
-
*
|
|
379
|
+
* Input for an attachment
|
|
380
|
+
*/
|
|
381
|
+
interface AttachmentInputWithDirectUploadID {
|
|
382
|
+
/**
|
|
383
|
+
* This ID should be used the first time you upload an attachment. It is the ID of
|
|
384
|
+
* the direct upload that was created when uploading the file to S3 via the
|
|
385
|
+
* mediaDirectUpload mutation.
|
|
386
|
+
*/
|
|
387
|
+
direct_upload_id: string;
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* Input for an attachment
|
|
317
391
|
*/
|
|
318
|
-
interface
|
|
392
|
+
interface AttachmentInputWithID {
|
|
319
393
|
/**
|
|
320
394
|
* The ID of an existing attachment object. Use this when updating a resource and
|
|
321
395
|
* keeping a subset of the attachments. Don't use this unless you know what you're
|
|
322
396
|
* doing.
|
|
323
397
|
*/
|
|
324
|
-
id
|
|
398
|
+
id: string;
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
* The explicit payment method configuration for the plan. If not provided, the
|
|
402
|
+
* platform or company's defaults will apply.
|
|
403
|
+
*/
|
|
404
|
+
interface PaymentMethodConfiguration {
|
|
325
405
|
/**
|
|
326
|
-
*
|
|
327
|
-
*
|
|
328
|
-
* mediaDirectUpload mutation.
|
|
406
|
+
* An array of payment method identifiers that are explicitly disabled. Only
|
|
407
|
+
* applies if the include_platform_defaults is true.
|
|
329
408
|
*/
|
|
330
|
-
|
|
409
|
+
disabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
410
|
+
/**
|
|
411
|
+
* An array of payment method identifiers that are explicitly enabled. This means
|
|
412
|
+
* these payment methods will be shown on checkout. Example use case is to only
|
|
413
|
+
* enable a specific payment method like cashapp, or extending the platform
|
|
414
|
+
* defaults with additional methods.
|
|
415
|
+
*/
|
|
416
|
+
enabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
417
|
+
/**
|
|
418
|
+
* Whether Whop's platform default payment method enablement settings are included
|
|
419
|
+
* in this configuration. The full list of default payment methods can be found in
|
|
420
|
+
* the documentation at docs.whop.com/payments.
|
|
421
|
+
*/
|
|
422
|
+
include_platform_defaults: boolean;
|
|
331
423
|
}
|
|
332
424
|
}
|
|
333
425
|
export interface PlanUpdateParams {
|
|
@@ -354,7 +446,7 @@ export interface PlanUpdateParams {
|
|
|
354
446
|
/**
|
|
355
447
|
* An image for the plan. This will be visible on the product page to customers.
|
|
356
448
|
*/
|
|
357
|
-
image?: PlanUpdateParams.
|
|
449
|
+
image?: PlanUpdateParams.AttachmentInputWithDirectUploadID | PlanUpdateParams.AttachmentInputWithID | null;
|
|
358
450
|
/**
|
|
359
451
|
* An additional amount charged upon first purchase.
|
|
360
452
|
*/
|
|
@@ -372,10 +464,29 @@ export interface PlanUpdateParams {
|
|
|
372
464
|
* up)
|
|
373
465
|
*/
|
|
374
466
|
override_tax_type?: Shared.TaxType | null;
|
|
467
|
+
/**
|
|
468
|
+
* The explicit payment method configuration for the plan. If sent as null, the
|
|
469
|
+
* custom configuration will be removed.
|
|
470
|
+
*/
|
|
471
|
+
payment_method_configuration?: PlanUpdateParams.PaymentMethodConfiguration | null;
|
|
375
472
|
/**
|
|
376
473
|
* The amount the customer is charged every billing period.
|
|
377
474
|
*/
|
|
378
475
|
renewal_price?: number | null;
|
|
476
|
+
/**
|
|
477
|
+
* The number of units available for purchase.
|
|
478
|
+
*/
|
|
479
|
+
stock?: number | null;
|
|
480
|
+
/**
|
|
481
|
+
* The price to display with a strikethrough for the initial price. Provided as a
|
|
482
|
+
* number in dollars. Eg: 19.99 for $19.99
|
|
483
|
+
*/
|
|
484
|
+
strike_through_initial_price?: number | null;
|
|
485
|
+
/**
|
|
486
|
+
* The price to display with a strikethrough for the renewal price. Provided as a
|
|
487
|
+
* number in dollars. Eg: 19.99 for $19.99
|
|
488
|
+
*/
|
|
489
|
+
strike_through_renewal_price?: number | null;
|
|
379
490
|
/**
|
|
380
491
|
* The title of the plan. This will be visible on the product page to customers.
|
|
381
492
|
*/
|
|
@@ -384,6 +495,10 @@ export interface PlanUpdateParams {
|
|
|
384
495
|
* The number of free trial days added before a renewal plan.
|
|
385
496
|
*/
|
|
386
497
|
trial_period_days?: number | null;
|
|
498
|
+
/**
|
|
499
|
+
* Limits/doesn't limit the number of units available for purchase.
|
|
500
|
+
*/
|
|
501
|
+
unlimited_stock?: boolean | null;
|
|
387
502
|
/**
|
|
388
503
|
* Visibility of a resource
|
|
389
504
|
*/
|
|
@@ -417,21 +532,50 @@ export declare namespace PlanUpdateParams {
|
|
|
417
532
|
required?: boolean | null;
|
|
418
533
|
}
|
|
419
534
|
/**
|
|
420
|
-
*
|
|
535
|
+
* Input for an attachment
|
|
421
536
|
*/
|
|
422
|
-
interface
|
|
537
|
+
interface AttachmentInputWithDirectUploadID {
|
|
538
|
+
/**
|
|
539
|
+
* This ID should be used the first time you upload an attachment. It is the ID of
|
|
540
|
+
* the direct upload that was created when uploading the file to S3 via the
|
|
541
|
+
* mediaDirectUpload mutation.
|
|
542
|
+
*/
|
|
543
|
+
direct_upload_id: string;
|
|
544
|
+
}
|
|
545
|
+
/**
|
|
546
|
+
* Input for an attachment
|
|
547
|
+
*/
|
|
548
|
+
interface AttachmentInputWithID {
|
|
423
549
|
/**
|
|
424
550
|
* The ID of an existing attachment object. Use this when updating a resource and
|
|
425
551
|
* keeping a subset of the attachments. Don't use this unless you know what you're
|
|
426
552
|
* doing.
|
|
427
553
|
*/
|
|
428
|
-
id
|
|
554
|
+
id: string;
|
|
555
|
+
}
|
|
556
|
+
/**
|
|
557
|
+
* The explicit payment method configuration for the plan. If sent as null, the
|
|
558
|
+
* custom configuration will be removed.
|
|
559
|
+
*/
|
|
560
|
+
interface PaymentMethodConfiguration {
|
|
429
561
|
/**
|
|
430
|
-
*
|
|
431
|
-
*
|
|
432
|
-
|
|
562
|
+
* An array of payment method identifiers that are explicitly disabled. Only
|
|
563
|
+
* applies if the include_platform_defaults is true.
|
|
564
|
+
*/
|
|
565
|
+
disabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
566
|
+
/**
|
|
567
|
+
* An array of payment method identifiers that are explicitly enabled. This means
|
|
568
|
+
* these payment methods will be shown on checkout. Example use case is to only
|
|
569
|
+
* enable a specific payment method like cashapp, or extending the platform
|
|
570
|
+
* defaults with additional methods.
|
|
571
|
+
*/
|
|
572
|
+
enabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
573
|
+
/**
|
|
574
|
+
* Whether Whop's platform default payment method enablement settings are included
|
|
575
|
+
* in this configuration. The full list of default payment methods can be found in
|
|
576
|
+
* the documentation at docs.whop.com/payments.
|
|
433
577
|
*/
|
|
434
|
-
|
|
578
|
+
include_platform_defaults: boolean;
|
|
435
579
|
}
|
|
436
580
|
}
|
|
437
581
|
export interface PlanListParams extends CursorPageParams {
|
package/resources/plans.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plans.d.ts","sourceRoot":"","sources":["../src/resources/plans.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC;IAIjF;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC;IAIvE;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC;IAI1B;;;;;;;;;;;;;;;;OAgBG;IACH,IAAI,CACF,KAAK,EAAE,cAAc,EACrB,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,2BAA2B,EAAE,gBAAgB,CAAC;IAI7D;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAG7E;A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H,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;OAEG;IACH,KAAK,CAAC,EAAE,IAAI,GAAG,sBAAsB,GAAG,YAAY,GAAG,gBAAgB,GAAG,YAAY,GAAG,IAAI,CAAC;IAE9F;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC;IAE3C;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAEnC;;OAEG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC;IAErD;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC;CACtD;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"}
|
package/resources/plans.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plans.js","sourceRoot":"","sources":["../src/resources/plans.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;
|
|
1
|
+
{"version":3,"file":"plans.js","sourceRoot":"","sources":["../src/resources/plans.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,sDAAoF;AAEpF,oDAA8C;AAE9C,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI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