@whop/sdk 0.0.6 → 0.0.8
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 +47 -0
- package/client.d.mts +19 -10
- package/client.d.mts.map +1 -1
- package/client.d.ts +19 -10
- package/client.d.ts.map +1 -1
- package/client.js +9 -0
- package/client.js.map +1 -1
- package/client.mjs +9 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/access-tokens.d.mts +48 -26
- package/resources/access-tokens.d.mts.map +1 -1
- package/resources/access-tokens.d.ts +48 -26
- package/resources/access-tokens.d.ts.map +1 -1
- package/resources/access-tokens.js +5 -5
- package/resources/access-tokens.mjs +5 -5
- package/resources/apps.d.mts +17 -1
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +17 -1
- package/resources/apps.d.ts.map +1 -1
- package/resources/checkout-configurations.d.mts +169 -12
- package/resources/checkout-configurations.d.mts.map +1 -1
- package/resources/checkout-configurations.d.ts +169 -12
- package/resources/checkout-configurations.d.ts.map +1 -1
- package/resources/checkout-configurations.js +1 -0
- package/resources/checkout-configurations.js.map +1 -1
- package/resources/checkout-configurations.mjs +1 -0
- package/resources/checkout-configurations.mjs.map +1 -1
- package/resources/course-lessons.d.mts +199 -1
- package/resources/course-lessons.d.mts.map +1 -1
- package/resources/course-lessons.d.ts +199 -1
- package/resources/course-lessons.d.ts.map +1 -1
- package/resources/course-lessons.js +40 -0
- package/resources/course-lessons.js.map +1 -1
- package/resources/course-lessons.mjs +40 -0
- package/resources/course-lessons.mjs.map +1 -1
- package/resources/courses.d.mts +8 -0
- package/resources/courses.d.mts.map +1 -1
- package/resources/courses.d.ts +8 -0
- package/resources/courses.d.ts.map +1 -1
- package/resources/disputes.d.mts +704 -0
- package/resources/disputes.d.mts.map +1 -0
- package/resources/disputes.d.ts +704 -0
- package/resources/disputes.d.ts.map +1 -0
- package/resources/disputes.js +77 -0
- package/resources/disputes.js.map +1 -0
- package/resources/disputes.mjs +73 -0
- package/resources/disputes.mjs.map +1 -0
- package/resources/forum-posts.d.mts +13 -1
- package/resources/forum-posts.d.mts.map +1 -1
- package/resources/forum-posts.d.ts +13 -1
- package/resources/forum-posts.d.ts.map +1 -1
- package/resources/index.d.mts +8 -5
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +8 -5
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.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/payments.d.mts +1 -1
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +1 -1
- package/resources/payments.d.ts.map +1 -1
- package/resources/refunds.d.mts +295 -0
- package/resources/refunds.d.mts.map +1 -0
- package/resources/refunds.d.ts +295 -0
- package/resources/refunds.d.ts.map +1 -0
- package/resources/refunds.js +34 -0
- package/resources/refunds.js.map +1 -0
- package/resources/refunds.mjs +30 -0
- package/resources/refunds.mjs.map +1 -0
- package/resources/shared.d.mts +46 -5
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +46 -5
- package/resources/shared.d.ts.map +1 -1
- package/resources/shipments.d.mts +1 -1
- package/resources/shipments.d.mts.map +1 -1
- package/resources/shipments.d.ts +1 -1
- package/resources/shipments.d.ts.map +1 -1
- package/resources/webhooks.d.mts +427 -2
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +427 -2
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/resources/withdrawals.d.mts +233 -0
- package/resources/withdrawals.d.mts.map +1 -0
- package/resources/withdrawals.d.ts +233 -0
- package/resources/withdrawals.d.ts.map +1 -0
- package/resources/withdrawals.js +31 -0
- package/resources/withdrawals.js.map +1 -0
- package/resources/withdrawals.mjs +27 -0
- package/resources/withdrawals.mjs.map +1 -0
- package/src/client.ts +93 -0
- package/src/resources/access-tokens.ts +53 -26
- package/src/resources/apps.ts +21 -0
- package/src/resources/checkout-configurations.ts +193 -12
- package/src/resources/course-lessons.ts +250 -0
- package/src/resources/courses.ts +10 -0
- package/src/resources/disputes.ts +873 -0
- package/src/resources/forum-posts.ts +16 -0
- package/src/resources/index.ts +42 -0
- package/src/resources/ledger-accounts.ts +1 -0
- package/src/resources/payments.ts +1 -0
- package/src/resources/refunds.ts +383 -0
- package/src/resources/shared.ts +62 -5
- package/src/resources/shipments.ts +1 -1
- package/src/resources/webhooks.ts +522 -1
- package/src/resources/withdrawals.ts +361 -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/apps.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apps.d.ts","sourceRoot":"","sources":["../src/resources/apps.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,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC;IAI/E;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC;IAItE;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC7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AK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAEpC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,WAAW,GAAG,IAAI,CAAC;CACvC;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
|
|
@@ -14,6 +14,7 @@ export declare class CheckoutConfigurations extends APIResource {
|
|
|
14
14
|
* - `plan:create`
|
|
15
15
|
* - `access_pass:create`
|
|
16
16
|
* - `access_pass:update`
|
|
17
|
+
* - `checkout_configuration:basic:read`
|
|
17
18
|
*
|
|
18
19
|
* @example
|
|
19
20
|
* ```ts
|
|
@@ -42,6 +43,10 @@ export declare class CheckoutConfigurations extends APIResource {
|
|
|
42
43
|
list(query: CheckoutConfigurationListParams, options?: RequestOptions): PagePromise<CheckoutConfigurationListResponsesCursorPage, CheckoutConfigurationListResponse>;
|
|
43
44
|
}
|
|
44
45
|
export type CheckoutConfigurationListResponsesCursorPage = CursorPage<CheckoutConfigurationListResponse>;
|
|
46
|
+
/**
|
|
47
|
+
* The different modes a checkout can be set to.
|
|
48
|
+
*/
|
|
49
|
+
export type CheckoutModes = 'payment' | 'setup';
|
|
45
50
|
/**
|
|
46
51
|
* A checkout configuration object.
|
|
47
52
|
* Can be used to create a reusable custom configuration for a checkout, including attaching plans, affiliates and custom metadata to the checkout.
|
|
@@ -66,11 +71,21 @@ export interface CheckoutConfigurationListResponse {
|
|
|
66
71
|
*/
|
|
67
72
|
metadata: {
|
|
68
73
|
[key: string]: unknown;
|
|
69
|
-
};
|
|
74
|
+
} | null;
|
|
75
|
+
/**
|
|
76
|
+
* The mode of the checkout session.
|
|
77
|
+
*/
|
|
78
|
+
mode: CheckoutModes;
|
|
79
|
+
/**
|
|
80
|
+
* The explicit payment method configuration for the session, if any. This
|
|
81
|
+
* currently only works in 'setup' mode. Use the plan's
|
|
82
|
+
* payment_method_configuration for payment method.
|
|
83
|
+
*/
|
|
84
|
+
payment_method_configuration: CheckoutConfigurationListResponse.PaymentMethodConfiguration | null;
|
|
70
85
|
/**
|
|
71
86
|
* The plan to use for the checkout configuration
|
|
72
87
|
*/
|
|
73
|
-
plan: CheckoutConfigurationListResponse.Plan;
|
|
88
|
+
plan: CheckoutConfigurationListResponse.Plan | null;
|
|
74
89
|
/**
|
|
75
90
|
* A URL you can send to customers to complete a checkout. It looks like
|
|
76
91
|
* `/checkout/plan_xxxx?session={id}`
|
|
@@ -82,6 +97,31 @@ export interface CheckoutConfigurationListResponse {
|
|
|
82
97
|
redirect_url: string | null;
|
|
83
98
|
}
|
|
84
99
|
export declare namespace CheckoutConfigurationListResponse {
|
|
100
|
+
/**
|
|
101
|
+
* The explicit payment method configuration for the session, if any. This
|
|
102
|
+
* currently only works in 'setup' mode. Use the plan's
|
|
103
|
+
* payment_method_configuration for payment method.
|
|
104
|
+
*/
|
|
105
|
+
interface PaymentMethodConfiguration {
|
|
106
|
+
/**
|
|
107
|
+
* An array of payment method identifiers that are explicitly disabled. Only
|
|
108
|
+
* applies if the include_platform_defaults is true.
|
|
109
|
+
*/
|
|
110
|
+
disabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
111
|
+
/**
|
|
112
|
+
* An array of payment method identifiers that are explicitly enabled. This means
|
|
113
|
+
* these payment methods will be shown on checkout. Example use case is to only
|
|
114
|
+
* enable a specific payment method like cashapp, or extending the platform
|
|
115
|
+
* defaults with additional methods.
|
|
116
|
+
*/
|
|
117
|
+
enabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
118
|
+
/**
|
|
119
|
+
* Whether Whop's platform default payment method enablement settings are included
|
|
120
|
+
* in this configuration. The full list of default payment methods can be found in
|
|
121
|
+
* the documentation at docs.whop.com/payments.
|
|
122
|
+
*/
|
|
123
|
+
include_platform_defaults: boolean;
|
|
124
|
+
}
|
|
85
125
|
/**
|
|
86
126
|
* The plan to use for the checkout configuration
|
|
87
127
|
*/
|
|
@@ -128,13 +168,13 @@ export declare namespace CheckoutConfigurationListResponse {
|
|
|
128
168
|
visibility: Shared.Visibility;
|
|
129
169
|
}
|
|
130
170
|
}
|
|
131
|
-
export type CheckoutConfigurationCreateParams = CheckoutConfigurationCreateParams.
|
|
171
|
+
export type CheckoutConfigurationCreateParams = CheckoutConfigurationCreateParams.CreateCheckoutSessionInputModePaymentWithPlan | CheckoutConfigurationCreateParams.CreateCheckoutSessionInputModePaymentWithPlanID | CheckoutConfigurationCreateParams.CreateCheckoutSessionInputModeSetup;
|
|
132
172
|
export declare namespace CheckoutConfigurationCreateParams {
|
|
133
|
-
interface
|
|
173
|
+
interface CreateCheckoutSessionInputModePaymentWithPlan {
|
|
134
174
|
/**
|
|
135
175
|
* Pass this object to create a new plan for this checkout configuration
|
|
136
176
|
*/
|
|
137
|
-
plan:
|
|
177
|
+
plan: CreateCheckoutSessionInputModePaymentWithPlan.Plan;
|
|
138
178
|
/**
|
|
139
179
|
* The affiliate code to use for the checkout configuration
|
|
140
180
|
*/
|
|
@@ -145,12 +185,19 @@ export declare namespace CheckoutConfigurationCreateParams {
|
|
|
145
185
|
metadata?: {
|
|
146
186
|
[key: string]: unknown;
|
|
147
187
|
} | null;
|
|
188
|
+
mode?: 'payment';
|
|
189
|
+
/**
|
|
190
|
+
* This currently only works for configurations made in 'setup' mode. The explicit
|
|
191
|
+
* payment method configuration for the checkout session. If not provided, the
|
|
192
|
+
* platform or company's defaults will apply.
|
|
193
|
+
*/
|
|
194
|
+
payment_method_configuration?: CreateCheckoutSessionInputModePaymentWithPlan.PaymentMethodConfiguration | null;
|
|
148
195
|
/**
|
|
149
196
|
* The URL to redirect the user to after the checkout configuration is created
|
|
150
197
|
*/
|
|
151
198
|
redirect_url?: string | null;
|
|
152
199
|
}
|
|
153
|
-
namespace
|
|
200
|
+
namespace CreateCheckoutSessionInputModePaymentWithPlan {
|
|
154
201
|
/**
|
|
155
202
|
* Pass this object to create a new plan for this checkout configuration
|
|
156
203
|
*/
|
|
@@ -160,13 +207,13 @@ export declare namespace CheckoutConfigurationCreateParams {
|
|
|
160
207
|
*/
|
|
161
208
|
company_id: string;
|
|
162
209
|
/**
|
|
163
|
-
* The
|
|
210
|
+
* The respective currency identifier for the plan.
|
|
164
211
|
*/
|
|
165
|
-
|
|
212
|
+
currency: Shared.Currency;
|
|
166
213
|
/**
|
|
167
|
-
* The
|
|
214
|
+
* The interval at which the plan charges (renewal plans).
|
|
168
215
|
*/
|
|
169
|
-
|
|
216
|
+
billing_period?: number | null;
|
|
170
217
|
/**
|
|
171
218
|
* An array of custom field objects.
|
|
172
219
|
*/
|
|
@@ -380,8 +427,33 @@ export declare namespace CheckoutConfigurationCreateParams {
|
|
|
380
427
|
visibility?: Shared.Visibility | null;
|
|
381
428
|
}
|
|
382
429
|
}
|
|
430
|
+
/**
|
|
431
|
+
* This currently only works for configurations made in 'setup' mode. The explicit
|
|
432
|
+
* payment method configuration for the checkout session. If not provided, the
|
|
433
|
+
* platform or company's defaults will apply.
|
|
434
|
+
*/
|
|
435
|
+
interface PaymentMethodConfiguration {
|
|
436
|
+
/**
|
|
437
|
+
* An array of payment method identifiers that are explicitly disabled. Only
|
|
438
|
+
* applies if the include_platform_defaults is true.
|
|
439
|
+
*/
|
|
440
|
+
disabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
441
|
+
/**
|
|
442
|
+
* An array of payment method identifiers that are explicitly enabled. This means
|
|
443
|
+
* these payment methods will be shown on checkout. Example use case is to only
|
|
444
|
+
* enable a specific payment method like cashapp, or extending the platform
|
|
445
|
+
* defaults with additional methods.
|
|
446
|
+
*/
|
|
447
|
+
enabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
448
|
+
/**
|
|
449
|
+
* Whether Whop's platform default payment method enablement settings are included
|
|
450
|
+
* in this configuration. The full list of default payment methods can be found in
|
|
451
|
+
* the documentation at docs.whop.com/payments.
|
|
452
|
+
*/
|
|
453
|
+
include_platform_defaults: boolean;
|
|
454
|
+
}
|
|
383
455
|
}
|
|
384
|
-
interface
|
|
456
|
+
interface CreateCheckoutSessionInputModePaymentWithPlanID {
|
|
385
457
|
/**
|
|
386
458
|
* The ID of the plan to use for the checkout configuration
|
|
387
459
|
*/
|
|
@@ -396,11 +468,96 @@ export declare namespace CheckoutConfigurationCreateParams {
|
|
|
396
468
|
metadata?: {
|
|
397
469
|
[key: string]: unknown;
|
|
398
470
|
} | null;
|
|
471
|
+
mode?: 'payment';
|
|
472
|
+
/**
|
|
473
|
+
* This currently only works for configurations made in 'setup' mode. The explicit
|
|
474
|
+
* payment method configuration for the checkout session. If not provided, the
|
|
475
|
+
* platform or company's defaults will apply.
|
|
476
|
+
*/
|
|
477
|
+
payment_method_configuration?: CreateCheckoutSessionInputModePaymentWithPlanID.PaymentMethodConfiguration | null;
|
|
478
|
+
/**
|
|
479
|
+
* The URL to redirect the user to after the checkout configuration is created
|
|
480
|
+
*/
|
|
481
|
+
redirect_url?: string | null;
|
|
482
|
+
}
|
|
483
|
+
namespace CreateCheckoutSessionInputModePaymentWithPlanID {
|
|
484
|
+
/**
|
|
485
|
+
* This currently only works for configurations made in 'setup' mode. The explicit
|
|
486
|
+
* payment method configuration for the checkout session. If not provided, the
|
|
487
|
+
* platform or company's defaults will apply.
|
|
488
|
+
*/
|
|
489
|
+
interface PaymentMethodConfiguration {
|
|
490
|
+
/**
|
|
491
|
+
* An array of payment method identifiers that are explicitly disabled. Only
|
|
492
|
+
* applies if the include_platform_defaults is true.
|
|
493
|
+
*/
|
|
494
|
+
disabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
495
|
+
/**
|
|
496
|
+
* An array of payment method identifiers that are explicitly enabled. This means
|
|
497
|
+
* these payment methods will be shown on checkout. Example use case is to only
|
|
498
|
+
* enable a specific payment method like cashapp, or extending the platform
|
|
499
|
+
* defaults with additional methods.
|
|
500
|
+
*/
|
|
501
|
+
enabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
502
|
+
/**
|
|
503
|
+
* Whether Whop's platform default payment method enablement settings are included
|
|
504
|
+
* in this configuration. The full list of default payment methods can be found in
|
|
505
|
+
* the documentation at docs.whop.com/payments.
|
|
506
|
+
*/
|
|
507
|
+
include_platform_defaults: boolean;
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
interface CreateCheckoutSessionInputModeSetup {
|
|
511
|
+
/**
|
|
512
|
+
* The ID of the company for which to generate the checkout configuration. Only
|
|
513
|
+
* required in setup mode.
|
|
514
|
+
*/
|
|
515
|
+
company_id: string;
|
|
516
|
+
mode: 'setup';
|
|
517
|
+
/**
|
|
518
|
+
* The metadata to use for the checkout configuration
|
|
519
|
+
*/
|
|
520
|
+
metadata?: {
|
|
521
|
+
[key: string]: unknown;
|
|
522
|
+
} | null;
|
|
523
|
+
/**
|
|
524
|
+
* This currently only works for configurations made in 'setup' mode. The explicit
|
|
525
|
+
* payment method configuration for the checkout session. If not provided, the
|
|
526
|
+
* platform or company's defaults will apply.
|
|
527
|
+
*/
|
|
528
|
+
payment_method_configuration?: CreateCheckoutSessionInputModeSetup.PaymentMethodConfiguration | null;
|
|
399
529
|
/**
|
|
400
530
|
* The URL to redirect the user to after the checkout configuration is created
|
|
401
531
|
*/
|
|
402
532
|
redirect_url?: string | null;
|
|
403
533
|
}
|
|
534
|
+
namespace CreateCheckoutSessionInputModeSetup {
|
|
535
|
+
/**
|
|
536
|
+
* This currently only works for configurations made in 'setup' mode. The explicit
|
|
537
|
+
* payment method configuration for the checkout session. If not provided, the
|
|
538
|
+
* platform or company's defaults will apply.
|
|
539
|
+
*/
|
|
540
|
+
interface PaymentMethodConfiguration {
|
|
541
|
+
/**
|
|
542
|
+
* An array of payment method identifiers that are explicitly disabled. Only
|
|
543
|
+
* applies if the include_platform_defaults is true.
|
|
544
|
+
*/
|
|
545
|
+
disabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
546
|
+
/**
|
|
547
|
+
* An array of payment method identifiers that are explicitly enabled. This means
|
|
548
|
+
* these payment methods will be shown on checkout. Example use case is to only
|
|
549
|
+
* enable a specific payment method like cashapp, or extending the platform
|
|
550
|
+
* defaults with additional methods.
|
|
551
|
+
*/
|
|
552
|
+
enabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
553
|
+
/**
|
|
554
|
+
* Whether Whop's platform default payment method enablement settings are included
|
|
555
|
+
* in this configuration. The full list of default payment methods can be found in
|
|
556
|
+
* the documentation at docs.whop.com/payments.
|
|
557
|
+
*/
|
|
558
|
+
include_platform_defaults: boolean;
|
|
559
|
+
}
|
|
560
|
+
}
|
|
404
561
|
}
|
|
405
562
|
export interface CheckoutConfigurationListParams extends CursorPageParams {
|
|
406
563
|
/**
|
|
@@ -429,6 +586,6 @@ export interface CheckoutConfigurationListParams extends CursorPageParams {
|
|
|
429
586
|
plan_id?: string | null;
|
|
430
587
|
}
|
|
431
588
|
export declare namespace CheckoutConfigurations {
|
|
432
|
-
export { type CheckoutConfigurationListResponse as CheckoutConfigurationListResponse, type CheckoutConfigurationListResponsesCursorPage as CheckoutConfigurationListResponsesCursorPage, type CheckoutConfigurationCreateParams as CheckoutConfigurationCreateParams, type CheckoutConfigurationListParams as CheckoutConfigurationListParams, };
|
|
589
|
+
export { type CheckoutModes as CheckoutModes, type CheckoutConfigurationListResponse as CheckoutConfigurationListResponse, type CheckoutConfigurationListResponsesCursorPage as CheckoutConfigurationListResponsesCursorPage, type CheckoutConfigurationCreateParams as CheckoutConfigurationCreateParams, type CheckoutConfigurationListParams as CheckoutConfigurationListParams, };
|
|
433
590
|
}
|
|
434
591
|
//# sourceMappingURL=checkout-configurations.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkout-configurations.d.mts","sourceRoot":"","sources":["../src/resources/checkout-configurations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,sBAAuB,SAAQ,WAAW;IACrD
|
|
1
|
+
{"version":3,"file":"checkout-configurations.d.mts","sourceRoot":"","sources":["../src/resources/checkout-configurations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,sBAAuB,SAAQ,WAAW;IACrD;;;;;;;;;;;;;;;;;;OAkBG;IACH,MAAM,CACJ,IAAI,EAAE,iCAAiC,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC,qBAAqB,CAAC;IAI3C;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,qBAAqB,CAAC;IAIxF;;;;;;OAMG;IACH,IAAI,CACF,KAAK,EAAE,+BAA+B,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,4CAA4C,EAAE,iCAAiC,CAAC;CAOhG;AAED,MAAM,MAAM,4CAA4C,GAAG,UAAU,CAAC,iCAAiC,CAAC,CAAC;AAEzG;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,OAAO,CAAC;AAEhD;;;;;GAKG;AACH,MAAM,WAAW,iCAAiC;IAChD;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,cAAc,EAAE,MAAM,GAAG,IAAI,CA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 -14,6 +14,7 @@ export declare class CheckoutConfigurations extends APIResource {
|
|
|
14
14
|
* - `plan:create`
|
|
15
15
|
* - `access_pass:create`
|
|
16
16
|
* - `access_pass:update`
|
|
17
|
+
* - `checkout_configuration:basic:read`
|
|
17
18
|
*
|
|
18
19
|
* @example
|
|
19
20
|
* ```ts
|
|
@@ -42,6 +43,10 @@ export declare class CheckoutConfigurations extends APIResource {
|
|
|
42
43
|
list(query: CheckoutConfigurationListParams, options?: RequestOptions): PagePromise<CheckoutConfigurationListResponsesCursorPage, CheckoutConfigurationListResponse>;
|
|
43
44
|
}
|
|
44
45
|
export type CheckoutConfigurationListResponsesCursorPage = CursorPage<CheckoutConfigurationListResponse>;
|
|
46
|
+
/**
|
|
47
|
+
* The different modes a checkout can be set to.
|
|
48
|
+
*/
|
|
49
|
+
export type CheckoutModes = 'payment' | 'setup';
|
|
45
50
|
/**
|
|
46
51
|
* A checkout configuration object.
|
|
47
52
|
* Can be used to create a reusable custom configuration for a checkout, including attaching plans, affiliates and custom metadata to the checkout.
|
|
@@ -66,11 +71,21 @@ export interface CheckoutConfigurationListResponse {
|
|
|
66
71
|
*/
|
|
67
72
|
metadata: {
|
|
68
73
|
[key: string]: unknown;
|
|
69
|
-
};
|
|
74
|
+
} | null;
|
|
75
|
+
/**
|
|
76
|
+
* The mode of the checkout session.
|
|
77
|
+
*/
|
|
78
|
+
mode: CheckoutModes;
|
|
79
|
+
/**
|
|
80
|
+
* The explicit payment method configuration for the session, if any. This
|
|
81
|
+
* currently only works in 'setup' mode. Use the plan's
|
|
82
|
+
* payment_method_configuration for payment method.
|
|
83
|
+
*/
|
|
84
|
+
payment_method_configuration: CheckoutConfigurationListResponse.PaymentMethodConfiguration | null;
|
|
70
85
|
/**
|
|
71
86
|
* The plan to use for the checkout configuration
|
|
72
87
|
*/
|
|
73
|
-
plan: CheckoutConfigurationListResponse.Plan;
|
|
88
|
+
plan: CheckoutConfigurationListResponse.Plan | null;
|
|
74
89
|
/**
|
|
75
90
|
* A URL you can send to customers to complete a checkout. It looks like
|
|
76
91
|
* `/checkout/plan_xxxx?session={id}`
|
|
@@ -82,6 +97,31 @@ export interface CheckoutConfigurationListResponse {
|
|
|
82
97
|
redirect_url: string | null;
|
|
83
98
|
}
|
|
84
99
|
export declare namespace CheckoutConfigurationListResponse {
|
|
100
|
+
/**
|
|
101
|
+
* The explicit payment method configuration for the session, if any. This
|
|
102
|
+
* currently only works in 'setup' mode. Use the plan's
|
|
103
|
+
* payment_method_configuration for payment method.
|
|
104
|
+
*/
|
|
105
|
+
interface PaymentMethodConfiguration {
|
|
106
|
+
/**
|
|
107
|
+
* An array of payment method identifiers that are explicitly disabled. Only
|
|
108
|
+
* applies if the include_platform_defaults is true.
|
|
109
|
+
*/
|
|
110
|
+
disabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
111
|
+
/**
|
|
112
|
+
* An array of payment method identifiers that are explicitly enabled. This means
|
|
113
|
+
* these payment methods will be shown on checkout. Example use case is to only
|
|
114
|
+
* enable a specific payment method like cashapp, or extending the platform
|
|
115
|
+
* defaults with additional methods.
|
|
116
|
+
*/
|
|
117
|
+
enabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
118
|
+
/**
|
|
119
|
+
* Whether Whop's platform default payment method enablement settings are included
|
|
120
|
+
* in this configuration. The full list of default payment methods can be found in
|
|
121
|
+
* the documentation at docs.whop.com/payments.
|
|
122
|
+
*/
|
|
123
|
+
include_platform_defaults: boolean;
|
|
124
|
+
}
|
|
85
125
|
/**
|
|
86
126
|
* The plan to use for the checkout configuration
|
|
87
127
|
*/
|
|
@@ -128,13 +168,13 @@ export declare namespace CheckoutConfigurationListResponse {
|
|
|
128
168
|
visibility: Shared.Visibility;
|
|
129
169
|
}
|
|
130
170
|
}
|
|
131
|
-
export type CheckoutConfigurationCreateParams = CheckoutConfigurationCreateParams.
|
|
171
|
+
export type CheckoutConfigurationCreateParams = CheckoutConfigurationCreateParams.CreateCheckoutSessionInputModePaymentWithPlan | CheckoutConfigurationCreateParams.CreateCheckoutSessionInputModePaymentWithPlanID | CheckoutConfigurationCreateParams.CreateCheckoutSessionInputModeSetup;
|
|
132
172
|
export declare namespace CheckoutConfigurationCreateParams {
|
|
133
|
-
interface
|
|
173
|
+
interface CreateCheckoutSessionInputModePaymentWithPlan {
|
|
134
174
|
/**
|
|
135
175
|
* Pass this object to create a new plan for this checkout configuration
|
|
136
176
|
*/
|
|
137
|
-
plan:
|
|
177
|
+
plan: CreateCheckoutSessionInputModePaymentWithPlan.Plan;
|
|
138
178
|
/**
|
|
139
179
|
* The affiliate code to use for the checkout configuration
|
|
140
180
|
*/
|
|
@@ -145,12 +185,19 @@ export declare namespace CheckoutConfigurationCreateParams {
|
|
|
145
185
|
metadata?: {
|
|
146
186
|
[key: string]: unknown;
|
|
147
187
|
} | null;
|
|
188
|
+
mode?: 'payment';
|
|
189
|
+
/**
|
|
190
|
+
* This currently only works for configurations made in 'setup' mode. The explicit
|
|
191
|
+
* payment method configuration for the checkout session. If not provided, the
|
|
192
|
+
* platform or company's defaults will apply.
|
|
193
|
+
*/
|
|
194
|
+
payment_method_configuration?: CreateCheckoutSessionInputModePaymentWithPlan.PaymentMethodConfiguration | null;
|
|
148
195
|
/**
|
|
149
196
|
* The URL to redirect the user to after the checkout configuration is created
|
|
150
197
|
*/
|
|
151
198
|
redirect_url?: string | null;
|
|
152
199
|
}
|
|
153
|
-
namespace
|
|
200
|
+
namespace CreateCheckoutSessionInputModePaymentWithPlan {
|
|
154
201
|
/**
|
|
155
202
|
* Pass this object to create a new plan for this checkout configuration
|
|
156
203
|
*/
|
|
@@ -160,13 +207,13 @@ export declare namespace CheckoutConfigurationCreateParams {
|
|
|
160
207
|
*/
|
|
161
208
|
company_id: string;
|
|
162
209
|
/**
|
|
163
|
-
* The
|
|
210
|
+
* The respective currency identifier for the plan.
|
|
164
211
|
*/
|
|
165
|
-
|
|
212
|
+
currency: Shared.Currency;
|
|
166
213
|
/**
|
|
167
|
-
* The
|
|
214
|
+
* The interval at which the plan charges (renewal plans).
|
|
168
215
|
*/
|
|
169
|
-
|
|
216
|
+
billing_period?: number | null;
|
|
170
217
|
/**
|
|
171
218
|
* An array of custom field objects.
|
|
172
219
|
*/
|
|
@@ -380,8 +427,33 @@ export declare namespace CheckoutConfigurationCreateParams {
|
|
|
380
427
|
visibility?: Shared.Visibility | null;
|
|
381
428
|
}
|
|
382
429
|
}
|
|
430
|
+
/**
|
|
431
|
+
* This currently only works for configurations made in 'setup' mode. The explicit
|
|
432
|
+
* payment method configuration for the checkout session. If not provided, the
|
|
433
|
+
* platform or company's defaults will apply.
|
|
434
|
+
*/
|
|
435
|
+
interface PaymentMethodConfiguration {
|
|
436
|
+
/**
|
|
437
|
+
* An array of payment method identifiers that are explicitly disabled. Only
|
|
438
|
+
* applies if the include_platform_defaults is true.
|
|
439
|
+
*/
|
|
440
|
+
disabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
441
|
+
/**
|
|
442
|
+
* An array of payment method identifiers that are explicitly enabled. This means
|
|
443
|
+
* these payment methods will be shown on checkout. Example use case is to only
|
|
444
|
+
* enable a specific payment method like cashapp, or extending the platform
|
|
445
|
+
* defaults with additional methods.
|
|
446
|
+
*/
|
|
447
|
+
enabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
448
|
+
/**
|
|
449
|
+
* Whether Whop's platform default payment method enablement settings are included
|
|
450
|
+
* in this configuration. The full list of default payment methods can be found in
|
|
451
|
+
* the documentation at docs.whop.com/payments.
|
|
452
|
+
*/
|
|
453
|
+
include_platform_defaults: boolean;
|
|
454
|
+
}
|
|
383
455
|
}
|
|
384
|
-
interface
|
|
456
|
+
interface CreateCheckoutSessionInputModePaymentWithPlanID {
|
|
385
457
|
/**
|
|
386
458
|
* The ID of the plan to use for the checkout configuration
|
|
387
459
|
*/
|
|
@@ -396,11 +468,96 @@ export declare namespace CheckoutConfigurationCreateParams {
|
|
|
396
468
|
metadata?: {
|
|
397
469
|
[key: string]: unknown;
|
|
398
470
|
} | null;
|
|
471
|
+
mode?: 'payment';
|
|
472
|
+
/**
|
|
473
|
+
* This currently only works for configurations made in 'setup' mode. The explicit
|
|
474
|
+
* payment method configuration for the checkout session. If not provided, the
|
|
475
|
+
* platform or company's defaults will apply.
|
|
476
|
+
*/
|
|
477
|
+
payment_method_configuration?: CreateCheckoutSessionInputModePaymentWithPlanID.PaymentMethodConfiguration | null;
|
|
478
|
+
/**
|
|
479
|
+
* The URL to redirect the user to after the checkout configuration is created
|
|
480
|
+
*/
|
|
481
|
+
redirect_url?: string | null;
|
|
482
|
+
}
|
|
483
|
+
namespace CreateCheckoutSessionInputModePaymentWithPlanID {
|
|
484
|
+
/**
|
|
485
|
+
* This currently only works for configurations made in 'setup' mode. The explicit
|
|
486
|
+
* payment method configuration for the checkout session. If not provided, the
|
|
487
|
+
* platform or company's defaults will apply.
|
|
488
|
+
*/
|
|
489
|
+
interface PaymentMethodConfiguration {
|
|
490
|
+
/**
|
|
491
|
+
* An array of payment method identifiers that are explicitly disabled. Only
|
|
492
|
+
* applies if the include_platform_defaults is true.
|
|
493
|
+
*/
|
|
494
|
+
disabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
495
|
+
/**
|
|
496
|
+
* An array of payment method identifiers that are explicitly enabled. This means
|
|
497
|
+
* these payment methods will be shown on checkout. Example use case is to only
|
|
498
|
+
* enable a specific payment method like cashapp, or extending the platform
|
|
499
|
+
* defaults with additional methods.
|
|
500
|
+
*/
|
|
501
|
+
enabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
502
|
+
/**
|
|
503
|
+
* Whether Whop's platform default payment method enablement settings are included
|
|
504
|
+
* in this configuration. The full list of default payment methods can be found in
|
|
505
|
+
* the documentation at docs.whop.com/payments.
|
|
506
|
+
*/
|
|
507
|
+
include_platform_defaults: boolean;
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
interface CreateCheckoutSessionInputModeSetup {
|
|
511
|
+
/**
|
|
512
|
+
* The ID of the company for which to generate the checkout configuration. Only
|
|
513
|
+
* required in setup mode.
|
|
514
|
+
*/
|
|
515
|
+
company_id: string;
|
|
516
|
+
mode: 'setup';
|
|
517
|
+
/**
|
|
518
|
+
* The metadata to use for the checkout configuration
|
|
519
|
+
*/
|
|
520
|
+
metadata?: {
|
|
521
|
+
[key: string]: unknown;
|
|
522
|
+
} | null;
|
|
523
|
+
/**
|
|
524
|
+
* This currently only works for configurations made in 'setup' mode. The explicit
|
|
525
|
+
* payment method configuration for the checkout session. If not provided, the
|
|
526
|
+
* platform or company's defaults will apply.
|
|
527
|
+
*/
|
|
528
|
+
payment_method_configuration?: CreateCheckoutSessionInputModeSetup.PaymentMethodConfiguration | null;
|
|
399
529
|
/**
|
|
400
530
|
* The URL to redirect the user to after the checkout configuration is created
|
|
401
531
|
*/
|
|
402
532
|
redirect_url?: string | null;
|
|
403
533
|
}
|
|
534
|
+
namespace CreateCheckoutSessionInputModeSetup {
|
|
535
|
+
/**
|
|
536
|
+
* This currently only works for configurations made in 'setup' mode. The explicit
|
|
537
|
+
* payment method configuration for the checkout session. If not provided, the
|
|
538
|
+
* platform or company's defaults will apply.
|
|
539
|
+
*/
|
|
540
|
+
interface PaymentMethodConfiguration {
|
|
541
|
+
/**
|
|
542
|
+
* An array of payment method identifiers that are explicitly disabled. Only
|
|
543
|
+
* applies if the include_platform_defaults is true.
|
|
544
|
+
*/
|
|
545
|
+
disabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
546
|
+
/**
|
|
547
|
+
* An array of payment method identifiers that are explicitly enabled. This means
|
|
548
|
+
* these payment methods will be shown on checkout. Example use case is to only
|
|
549
|
+
* enable a specific payment method like cashapp, or extending the platform
|
|
550
|
+
* defaults with additional methods.
|
|
551
|
+
*/
|
|
552
|
+
enabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
553
|
+
/**
|
|
554
|
+
* Whether Whop's platform default payment method enablement settings are included
|
|
555
|
+
* in this configuration. The full list of default payment methods can be found in
|
|
556
|
+
* the documentation at docs.whop.com/payments.
|
|
557
|
+
*/
|
|
558
|
+
include_platform_defaults: boolean;
|
|
559
|
+
}
|
|
560
|
+
}
|
|
404
561
|
}
|
|
405
562
|
export interface CheckoutConfigurationListParams extends CursorPageParams {
|
|
406
563
|
/**
|
|
@@ -429,6 +586,6 @@ export interface CheckoutConfigurationListParams extends CursorPageParams {
|
|
|
429
586
|
plan_id?: string | null;
|
|
430
587
|
}
|
|
431
588
|
export declare namespace CheckoutConfigurations {
|
|
432
|
-
export { type CheckoutConfigurationListResponse as CheckoutConfigurationListResponse, type CheckoutConfigurationListResponsesCursorPage as CheckoutConfigurationListResponsesCursorPage, type CheckoutConfigurationCreateParams as CheckoutConfigurationCreateParams, type CheckoutConfigurationListParams as CheckoutConfigurationListParams, };
|
|
589
|
+
export { type CheckoutModes as CheckoutModes, type CheckoutConfigurationListResponse as CheckoutConfigurationListResponse, type CheckoutConfigurationListResponsesCursorPage as CheckoutConfigurationListResponsesCursorPage, type CheckoutConfigurationCreateParams as CheckoutConfigurationCreateParams, type CheckoutConfigurationListParams as CheckoutConfigurationListParams, };
|
|
433
590
|
}
|
|
434
591
|
//# sourceMappingURL=checkout-configurations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkout-configurations.d.ts","sourceRoot":"","sources":["../src/resources/checkout-configurations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,sBAAuB,SAAQ,WAAW;IACrD
|
|
1
|
+
{"version":3,"file":"checkout-configurations.d.ts","sourceRoot":"","sources":["../src/resources/checkout-configurations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU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,OAAO,EAAE,KAAK,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC;YAE/C;;;;eAIG;YACH,yBAAyB,EAAE,OAAO,CAAC;SACpC;KACF;CACF;AAED,MAAM,WAAW,+BAAgC,SAAQ,gBAAgB;IACvE;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,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,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,sBAAsB,CAAC;IAC9C,OAAO,EACL,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,4CAA4C,IAAI,4CAA4C,EACjG,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkout-configurations.js","sourceRoot":"","sources":["../src/resources/checkout-configurations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,sDAAoF;AAEpF,oDAA8C;AAE9C,MAAa,sBAAuB,SAAQ,sBAAW;IACrD
|
|
1
|
+
{"version":3,"file":"checkout-configurations.js","sourceRoot":"","sources":["../src/resources/checkout-configurations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,sDAAoF;AAEpF,oDAA8C;AAE9C,MAAa,sBAAuB,SAAQ,sBAAW;IACrD;;;;;;;;;;;;;;;;;;OAkBG;IACH,MAAM,CACJ,IAAuC,EACvC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;OAMG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,4BAA4B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;OAMG;IACH,IAAI,CACF,KAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,0BAA0B,EAC1B,CAAA,uBAA6C,CAAA,EAC7C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF;AAvDD,wDAuDC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkout-configurations.mjs","sourceRoot":"","sources":["../src/resources/checkout-configurations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,sBAAuB,SAAQ,WAAW;IACrD
|
|
1
|
+
{"version":3,"file":"checkout-configurations.mjs","sourceRoot":"","sources":["../src/resources/checkout-configurations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,sBAAuB,SAAQ,WAAW;IACrD;;;;;;;;;;;;;;;;;;OAkBG;IACH,MAAM,CACJ,IAAuC,EACvC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;OAMG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,4BAA4B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;OAMG;IACH,IAAI,CACF,KAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,0BAA0B,EAC1B,CAAA,UAA6C,CAAA,EAC7C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF"}
|