@whop/sdk 0.0.25 → 0.0.27
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 +58 -0
- package/client.d.mts +29 -25
- package/client.d.mts.map +1 -1
- package/client.d.ts +29 -25
- package/client.d.ts.map +1 -1
- package/client.js +14 -3
- package/client.js.map +1 -1
- package/client.mjs +16 -5
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/package.json +3 -3
- package/resources/access-tokens.d.mts +32 -51
- package/resources/access-tokens.d.mts.map +1 -1
- package/resources/access-tokens.d.ts +32 -51
- package/resources/access-tokens.d.ts.map +1 -1
- package/resources/access-tokens.js +6 -8
- package/resources/access-tokens.js.map +1 -1
- package/resources/access-tokens.mjs +6 -8
- package/resources/access-tokens.mjs.map +1 -1
- package/resources/ai-chats.d.mts +36 -104
- package/resources/ai-chats.d.mts.map +1 -1
- package/resources/ai-chats.d.ts +36 -104
- package/resources/ai-chats.d.ts.map +1 -1
- package/resources/ai-chats.js +1 -1
- package/resources/ai-chats.js.map +1 -1
- package/resources/ai-chats.mjs +1 -1
- package/resources/ai-chats.mjs.map +1 -1
- package/resources/app-builds.d.mts +2 -2
- package/resources/app-builds.d.ts +2 -2
- package/resources/apps.d.mts +5 -4
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +5 -4
- package/resources/apps.d.ts.map +1 -1
- package/resources/authorized-users.d.mts +43 -9
- package/resources/authorized-users.d.mts.map +1 -1
- package/resources/authorized-users.d.ts +43 -9
- package/resources/authorized-users.d.ts.map +1 -1
- package/resources/authorized-users.js +1 -1
- package/resources/authorized-users.js.map +1 -1
- package/resources/authorized-users.mjs +1 -1
- package/resources/authorized-users.mjs.map +1 -1
- package/resources/chat-channels.d.mts +1 -1
- package/resources/chat-channels.d.ts +1 -1
- package/resources/checkout-configurations.d.mts +24 -16
- package/resources/checkout-configurations.d.mts.map +1 -1
- package/resources/checkout-configurations.d.ts +24 -16
- package/resources/checkout-configurations.d.ts.map +1 -1
- package/resources/companies.d.mts +38 -25
- package/resources/companies.d.mts.map +1 -1
- package/resources/companies.d.ts +38 -25
- package/resources/companies.d.ts.map +1 -1
- package/resources/companies.js +7 -4
- package/resources/companies.js.map +1 -1
- package/resources/companies.mjs +7 -4
- package/resources/companies.mjs.map +1 -1
- package/resources/company-token-transactions.d.mts +23 -109
- package/resources/company-token-transactions.d.mts.map +1 -1
- package/resources/company-token-transactions.d.ts +23 -109
- package/resources/company-token-transactions.d.ts.map +1 -1
- package/resources/course-chapters.d.mts +3 -3
- package/resources/course-chapters.d.ts +3 -3
- package/resources/course-lessons.d.mts +15 -15
- package/resources/course-lessons.d.ts +15 -15
- package/resources/course-students.d.mts +6 -6
- package/resources/course-students.d.ts +6 -6
- package/resources/courses.d.mts +8 -8
- package/resources/courses.d.ts +8 -8
- package/resources/disputes.d.mts +20 -18
- package/resources/disputes.d.mts.map +1 -1
- package/resources/disputes.d.ts +20 -18
- package/resources/disputes.d.ts.map +1 -1
- package/resources/dm-channels.d.mts +161 -0
- package/resources/dm-channels.d.mts.map +1 -0
- package/resources/dm-channels.d.ts +161 -0
- package/resources/dm-channels.d.ts.map +1 -0
- package/resources/dm-channels.js +87 -0
- package/resources/dm-channels.js.map +1 -0
- package/resources/dm-channels.mjs +83 -0
- package/resources/dm-channels.mjs.map +1 -0
- package/resources/dm-members.d.mts +14 -66
- package/resources/dm-members.d.mts.map +1 -1
- package/resources/dm-members.d.ts +14 -66
- package/resources/dm-members.d.ts.map +1 -1
- package/resources/entries.d.mts +6 -6
- package/resources/entries.d.ts +6 -6
- package/resources/experiences.d.mts +6 -5
- package/resources/experiences.d.mts.map +1 -1
- package/resources/experiences.d.ts +6 -5
- package/resources/experiences.d.ts.map +1 -1
- package/resources/fee-markups.d.mts +6 -6
- package/resources/fee-markups.d.ts +6 -6
- package/resources/files.d.mts +9 -5
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +9 -5
- package/resources/files.d.ts.map +1 -1
- package/resources/forum-posts.d.mts +8 -4
- package/resources/forum-posts.d.mts.map +1 -1
- package/resources/forum-posts.d.ts +8 -4
- package/resources/forum-posts.d.ts.map +1 -1
- package/resources/forums.d.mts +1 -1
- package/resources/forums.d.ts +1 -1
- package/resources/index.d.mts +12 -11
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +12 -11
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -2
- package/resources/index.mjs.map +1 -1
- package/resources/invoices.d.mts +28 -20
- package/resources/invoices.d.mts.map +1 -1
- package/resources/invoices.d.ts +28 -20
- package/resources/invoices.d.ts.map +1 -1
- package/resources/leads.d.mts +21 -189
- package/resources/leads.d.mts.map +1 -1
- package/resources/leads.d.ts +21 -189
- package/resources/leads.d.ts.map +1 -1
- package/resources/ledger-accounts.d.mts +12 -9
- package/resources/ledger-accounts.d.mts.map +1 -1
- package/resources/ledger-accounts.d.ts +12 -9
- package/resources/ledger-accounts.d.ts.map +1 -1
- package/resources/ledger-accounts.js.map +1 -1
- package/resources/ledger-accounts.mjs.map +1 -1
- package/resources/members.d.mts +14 -14
- package/resources/members.d.mts.map +1 -1
- package/resources/members.d.ts +14 -14
- package/resources/members.d.ts.map +1 -1
- package/resources/members.js +1 -1
- package/resources/members.js.map +1 -1
- package/resources/members.mjs +1 -1
- package/resources/members.mjs.map +1 -1
- package/resources/memberships.d.mts +25 -15
- package/resources/memberships.d.mts.map +1 -1
- package/resources/memberships.d.ts +25 -15
- package/resources/memberships.d.ts.map +1 -1
- package/resources/messages.d.mts +7 -3
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +7 -3
- package/resources/messages.d.ts.map +1 -1
- package/resources/payments.d.mts +59 -19
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +59 -19
- package/resources/payments.d.ts.map +1 -1
- package/resources/payout-methods.d.mts +14 -9
- package/resources/payout-methods.d.mts.map +1 -1
- package/resources/payout-methods.d.ts +14 -9
- package/resources/payout-methods.d.ts.map +1 -1
- package/resources/payout-methods.js.map +1 -1
- package/resources/payout-methods.mjs.map +1 -1
- package/resources/plans.d.mts +34 -24
- package/resources/plans.d.mts.map +1 -1
- package/resources/plans.d.ts +34 -24
- package/resources/plans.d.ts.map +1 -1
- package/resources/products.d.mts +4 -2
- package/resources/products.d.mts.map +1 -1
- package/resources/products.d.ts +4 -2
- package/resources/products.d.ts.map +1 -1
- package/resources/promo-codes.d.mts +22 -12
- package/resources/promo-codes.d.mts.map +1 -1
- package/resources/promo-codes.d.ts +22 -12
- package/resources/promo-codes.d.ts.map +1 -1
- package/resources/reactions.d.mts +1 -1
- package/resources/reactions.d.ts +1 -1
- package/resources/refunds.d.mts +19 -15
- package/resources/refunds.d.mts.map +1 -1
- package/resources/refunds.d.ts +19 -15
- package/resources/refunds.d.ts.map +1 -1
- package/resources/reviews.d.mts +10 -10
- package/resources/reviews.d.ts +10 -10
- package/resources/setup-intents.d.mts +18 -20
- package/resources/setup-intents.d.mts.map +1 -1
- package/resources/setup-intents.d.ts +18 -20
- package/resources/setup-intents.d.ts.map +1 -1
- package/resources/shared.d.mts +209 -137
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +209 -137
- package/resources/shared.d.ts.map +1 -1
- package/resources/shipments.d.mts +4 -4
- package/resources/shipments.d.ts +4 -4
- package/resources/support-channels.d.mts +1 -1
- package/resources/support-channels.d.ts +1 -1
- package/resources/topups.d.mts +6 -4
- package/resources/topups.d.mts.map +1 -1
- package/resources/topups.d.ts +6 -4
- package/resources/topups.d.ts.map +1 -1
- package/resources/transfers.d.mts +8 -5
- package/resources/transfers.d.mts.map +1 -1
- package/resources/transfers.d.ts +8 -5
- package/resources/transfers.d.ts.map +1 -1
- package/resources/users.d.mts +46 -8
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +46 -8
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +10 -0
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +10 -0
- package/resources/users.mjs.map +1 -1
- package/resources/verifications.d.mts +12 -4
- package/resources/verifications.d.mts.map +1 -1
- package/resources/verifications.d.ts +12 -4
- package/resources/verifications.d.ts.map +1 -1
- package/resources/webhooks.d.mts +105 -350
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +105 -350
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +2 -2
- package/resources/webhooks.mjs.map +1 -1
- package/resources/withdrawals.d.mts +32 -139
- package/resources/withdrawals.d.mts.map +1 -1
- package/resources/withdrawals.d.ts +32 -139
- package/resources/withdrawals.d.ts.map +1 -1
- package/src/client.ts +87 -41
- package/src/internal/parse.ts +6 -0
- package/src/resources/access-tokens.ts +35 -56
- package/src/resources/ai-chats.ts +36 -122
- package/src/resources/app-builds.ts +2 -2
- package/src/resources/apps.ts +5 -4
- package/src/resources/authorized-users.ts +49 -9
- package/src/resources/chat-channels.ts +1 -1
- package/src/resources/checkout-configurations.ts +24 -16
- package/src/resources/companies.ts +41 -26
- package/src/resources/company-token-transactions.ts +24 -126
- package/src/resources/course-chapters.ts +3 -3
- package/src/resources/course-lessons.ts +15 -15
- package/src/resources/course-students.ts +6 -6
- package/src/resources/courses.ts +8 -8
- package/src/resources/disputes.ts +20 -18
- package/src/resources/dm-channels.ts +212 -0
- package/src/resources/dm-members.ts +16 -78
- package/src/resources/entries.ts +6 -6
- package/src/resources/experiences.ts +6 -5
- package/src/resources/fee-markups.ts +6 -6
- package/src/resources/files.ts +10 -4
- package/src/resources/forum-posts.ts +8 -4
- package/src/resources/forums.ts +1 -1
- package/src/resources/index.ts +38 -18
- package/src/resources/invoices.ts +28 -20
- package/src/resources/leads.ts +21 -217
- package/src/resources/ledger-accounts.ts +12 -42
- package/src/resources/members.ts +15 -15
- package/src/resources/memberships.ts +34 -30
- package/src/resources/messages.ts +7 -3
- package/src/resources/payments.ts +67 -17
- package/src/resources/payout-methods.ts +21 -8
- package/src/resources/plans.ts +34 -24
- package/src/resources/products.ts +4 -2
- package/src/resources/promo-codes.ts +22 -12
- package/src/resources/reactions.ts +1 -1
- package/src/resources/refunds.ts +20 -15
- package/src/resources/reviews.ts +10 -10
- package/src/resources/setup-intents.ts +18 -20
- package/src/resources/shared.ts +217 -145
- package/src/resources/shipments.ts +4 -4
- package/src/resources/support-channels.ts +1 -1
- package/src/resources/topups.ts +6 -4
- package/src/resources/transfers.ts +8 -5
- package/src/resources/users.ts +58 -8
- package/src/resources/verifications.ts +50 -37
- package/src/resources/webhooks.ts +138 -785
- package/src/resources/withdrawals.ts +39 -216
- 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/invoices.d.ts
CHANGED
|
@@ -115,7 +115,7 @@ export declare namespace InvoiceCreateParams {
|
|
|
115
115
|
*/
|
|
116
116
|
interface Plan {
|
|
117
117
|
/**
|
|
118
|
-
* The interval at which the plan charges (renewal plans).
|
|
118
|
+
* The interval in days at which the plan charges (renewal plans).
|
|
119
119
|
*/
|
|
120
120
|
billing_period?: number | null;
|
|
121
121
|
/**
|
|
@@ -127,13 +127,14 @@ export declare namespace InvoiceCreateParams {
|
|
|
127
127
|
*/
|
|
128
128
|
description?: string | null;
|
|
129
129
|
/**
|
|
130
|
-
* The
|
|
130
|
+
* The number of days until the membership expires and revokes access (expiration
|
|
131
|
+
* plans). For example, 365 for a one-year access period.
|
|
131
132
|
*/
|
|
132
133
|
expiration_days?: number | null;
|
|
133
134
|
/**
|
|
134
135
|
* An additional amount charged upon first purchase. Use only if a one time payment
|
|
135
136
|
* OR you want to charge an additional amount on top of the renewal price. Provided
|
|
136
|
-
* as a number in
|
|
137
|
+
* as a number in the specified currency. Eg: 10.43 for $10.43
|
|
137
138
|
*/
|
|
138
139
|
initial_price?: number | null;
|
|
139
140
|
/**
|
|
@@ -150,7 +151,7 @@ export declare namespace InvoiceCreateParams {
|
|
|
150
151
|
release_method?: Shared.ReleaseMethod | null;
|
|
151
152
|
/**
|
|
152
153
|
* The amount the customer is charged every billing period. Use only if a recurring
|
|
153
|
-
* payment. Provided as a number in
|
|
154
|
+
* payment. Provided as a number in the specified currency. Eg: 10.43 for $10.43
|
|
154
155
|
*/
|
|
155
156
|
renewal_price?: number | null;
|
|
156
157
|
/**
|
|
@@ -162,7 +163,8 @@ export declare namespace InvoiceCreateParams {
|
|
|
162
163
|
*/
|
|
163
164
|
trial_period_days?: number | null;
|
|
164
165
|
/**
|
|
165
|
-
*
|
|
166
|
+
* When true, the plan has unlimited stock (stock field is ignored). When false,
|
|
167
|
+
* purchases are limited by the stock field.
|
|
166
168
|
*/
|
|
167
169
|
unlimited_stock?: boolean | null;
|
|
168
170
|
/**
|
|
@@ -268,7 +270,7 @@ export declare namespace InvoiceCreateParams {
|
|
|
268
270
|
*/
|
|
269
271
|
interface Plan {
|
|
270
272
|
/**
|
|
271
|
-
* The interval at which the plan charges (renewal plans).
|
|
273
|
+
* The interval in days at which the plan charges (renewal plans).
|
|
272
274
|
*/
|
|
273
275
|
billing_period?: number | null;
|
|
274
276
|
/**
|
|
@@ -280,13 +282,14 @@ export declare namespace InvoiceCreateParams {
|
|
|
280
282
|
*/
|
|
281
283
|
description?: string | null;
|
|
282
284
|
/**
|
|
283
|
-
* The
|
|
285
|
+
* The number of days until the membership expires and revokes access (expiration
|
|
286
|
+
* plans). For example, 365 for a one-year access period.
|
|
284
287
|
*/
|
|
285
288
|
expiration_days?: number | null;
|
|
286
289
|
/**
|
|
287
290
|
* An additional amount charged upon first purchase. Use only if a one time payment
|
|
288
291
|
* OR you want to charge an additional amount on top of the renewal price. Provided
|
|
289
|
-
* as a number in
|
|
292
|
+
* as a number in the specified currency. Eg: 10.43 for $10.43
|
|
290
293
|
*/
|
|
291
294
|
initial_price?: number | null;
|
|
292
295
|
/**
|
|
@@ -303,7 +306,7 @@ export declare namespace InvoiceCreateParams {
|
|
|
303
306
|
release_method?: Shared.ReleaseMethod | null;
|
|
304
307
|
/**
|
|
305
308
|
* The amount the customer is charged every billing period. Use only if a recurring
|
|
306
|
-
* payment. Provided as a number in
|
|
309
|
+
* payment. Provided as a number in the specified currency. Eg: 10.43 for $10.43
|
|
307
310
|
*/
|
|
308
311
|
renewal_price?: number | null;
|
|
309
312
|
/**
|
|
@@ -315,7 +318,8 @@ export declare namespace InvoiceCreateParams {
|
|
|
315
318
|
*/
|
|
316
319
|
trial_period_days?: number | null;
|
|
317
320
|
/**
|
|
318
|
-
*
|
|
321
|
+
* When true, the plan has unlimited stock (stock field is ignored). When false,
|
|
322
|
+
* purchases are limited by the stock field.
|
|
319
323
|
*/
|
|
320
324
|
unlimited_stock?: boolean | null;
|
|
321
325
|
/**
|
|
@@ -422,7 +426,7 @@ export declare namespace InvoiceCreateParams {
|
|
|
422
426
|
*/
|
|
423
427
|
interface Plan {
|
|
424
428
|
/**
|
|
425
|
-
* The interval at which the plan charges (renewal plans).
|
|
429
|
+
* The interval in days at which the plan charges (renewal plans).
|
|
426
430
|
*/
|
|
427
431
|
billing_period?: number | null;
|
|
428
432
|
/**
|
|
@@ -434,13 +438,14 @@ export declare namespace InvoiceCreateParams {
|
|
|
434
438
|
*/
|
|
435
439
|
description?: string | null;
|
|
436
440
|
/**
|
|
437
|
-
* The
|
|
441
|
+
* The number of days until the membership expires and revokes access (expiration
|
|
442
|
+
* plans). For example, 365 for a one-year access period.
|
|
438
443
|
*/
|
|
439
444
|
expiration_days?: number | null;
|
|
440
445
|
/**
|
|
441
446
|
* An additional amount charged upon first purchase. Use only if a one time payment
|
|
442
447
|
* OR you want to charge an additional amount on top of the renewal price. Provided
|
|
443
|
-
* as a number in
|
|
448
|
+
* as a number in the specified currency. Eg: 10.43 for $10.43
|
|
444
449
|
*/
|
|
445
450
|
initial_price?: number | null;
|
|
446
451
|
/**
|
|
@@ -457,7 +462,7 @@ export declare namespace InvoiceCreateParams {
|
|
|
457
462
|
release_method?: Shared.ReleaseMethod | null;
|
|
458
463
|
/**
|
|
459
464
|
* The amount the customer is charged every billing period. Use only if a recurring
|
|
460
|
-
* payment. Provided as a number in
|
|
465
|
+
* payment. Provided as a number in the specified currency. Eg: 10.43 for $10.43
|
|
461
466
|
*/
|
|
462
467
|
renewal_price?: number | null;
|
|
463
468
|
/**
|
|
@@ -469,7 +474,8 @@ export declare namespace InvoiceCreateParams {
|
|
|
469
474
|
*/
|
|
470
475
|
trial_period_days?: number | null;
|
|
471
476
|
/**
|
|
472
|
-
*
|
|
477
|
+
* When true, the plan has unlimited stock (stock field is ignored). When false,
|
|
478
|
+
* purchases are limited by the stock field.
|
|
473
479
|
*/
|
|
474
480
|
unlimited_stock?: boolean | null;
|
|
475
481
|
/**
|
|
@@ -561,7 +567,7 @@ export declare namespace InvoiceCreateParams {
|
|
|
561
567
|
*/
|
|
562
568
|
interface Plan {
|
|
563
569
|
/**
|
|
564
|
-
* The interval at which the plan charges (renewal plans).
|
|
570
|
+
* The interval in days at which the plan charges (renewal plans).
|
|
565
571
|
*/
|
|
566
572
|
billing_period?: number | null;
|
|
567
573
|
/**
|
|
@@ -573,13 +579,14 @@ export declare namespace InvoiceCreateParams {
|
|
|
573
579
|
*/
|
|
574
580
|
description?: string | null;
|
|
575
581
|
/**
|
|
576
|
-
* The
|
|
582
|
+
* The number of days until the membership expires and revokes access (expiration
|
|
583
|
+
* plans). For example, 365 for a one-year access period.
|
|
577
584
|
*/
|
|
578
585
|
expiration_days?: number | null;
|
|
579
586
|
/**
|
|
580
587
|
* An additional amount charged upon first purchase. Use only if a one time payment
|
|
581
588
|
* OR you want to charge an additional amount on top of the renewal price. Provided
|
|
582
|
-
* as a number in
|
|
589
|
+
* as a number in the specified currency. Eg: 10.43 for $10.43
|
|
583
590
|
*/
|
|
584
591
|
initial_price?: number | null;
|
|
585
592
|
/**
|
|
@@ -596,7 +603,7 @@ export declare namespace InvoiceCreateParams {
|
|
|
596
603
|
release_method?: Shared.ReleaseMethod | null;
|
|
597
604
|
/**
|
|
598
605
|
* The amount the customer is charged every billing period. Use only if a recurring
|
|
599
|
-
* payment. Provided as a number in
|
|
606
|
+
* payment. Provided as a number in the specified currency. Eg: 10.43 for $10.43
|
|
600
607
|
*/
|
|
601
608
|
renewal_price?: number | null;
|
|
602
609
|
/**
|
|
@@ -608,7 +615,8 @@ export declare namespace InvoiceCreateParams {
|
|
|
608
615
|
*/
|
|
609
616
|
trial_period_days?: number | null;
|
|
610
617
|
/**
|
|
611
|
-
*
|
|
618
|
+
* When true, the plan has unlimited stock (stock field is ignored). When false,
|
|
619
|
+
* purchases are limited by the stock field.
|
|
612
620
|
*/
|
|
613
621
|
unlimited_stock?: boolean | null;
|
|
614
622
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoices.d.ts","sourceRoot":"","sources":["../src/resources/invoices.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,0BAA0B,EAAE;OAC9B,EAAE,UAAU,EAAE;OACd,EAAc,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC;IAIvF;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC;IAI1E;;;;;;;OAOG;IACH,IAAI,CACF,KAAK,EAAE,iBAAiB,EACxB,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW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AC,GAAG,IAAI,CAAC;IAEnC;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC;CAC/C;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH;AAED,OAAO,EAAE,KAAK,0BAA0B,EAAE,CAAC"}
|
package/resources/leads.d.mts
CHANGED
|
@@ -20,7 +20,7 @@ export declare class Leads extends APIResource {
|
|
|
20
20
|
* });
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
|
-
create(body: LeadCreateParams, options?: RequestOptions): APIPromise<
|
|
23
|
+
create(body: LeadCreateParams, options?: RequestOptions): APIPromise<Lead>;
|
|
24
24
|
/**
|
|
25
25
|
* Retrieves a lead by ID
|
|
26
26
|
*
|
|
@@ -38,7 +38,7 @@ export declare class Leads extends APIResource {
|
|
|
38
38
|
* );
|
|
39
39
|
* ```
|
|
40
40
|
*/
|
|
41
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<
|
|
41
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<Lead>;
|
|
42
42
|
/**
|
|
43
43
|
* Updates a lead
|
|
44
44
|
*
|
|
@@ -56,7 +56,7 @@ export declare class Leads extends APIResource {
|
|
|
56
56
|
* );
|
|
57
57
|
* ```
|
|
58
58
|
*/
|
|
59
|
-
update(id: string, body?: LeadUpdateParams | null | undefined, options?: RequestOptions): APIPromise<
|
|
59
|
+
update(id: string, body?: LeadUpdateParams | null | undefined, options?: RequestOptions): APIPromise<Lead>;
|
|
60
60
|
/**
|
|
61
61
|
* Lists leads for a company
|
|
62
62
|
*
|
|
@@ -83,19 +83,19 @@ export type LeadListResponsesCursorPage = CursorPage<LeadListResponse>;
|
|
|
83
83
|
/**
|
|
84
84
|
* An object representing a lead (someone who is interested in a whop).
|
|
85
85
|
*/
|
|
86
|
-
export interface
|
|
86
|
+
export interface Lead {
|
|
87
87
|
/**
|
|
88
|
-
* The
|
|
88
|
+
* The unique identifier for the lead.
|
|
89
89
|
*/
|
|
90
90
|
id: string;
|
|
91
91
|
/**
|
|
92
|
-
* The
|
|
92
|
+
* The datetime the lead was created.
|
|
93
93
|
*/
|
|
94
94
|
created_at: string;
|
|
95
95
|
/**
|
|
96
96
|
* The converted member, if any.
|
|
97
97
|
*/
|
|
98
|
-
member:
|
|
98
|
+
member: Lead.Member | null;
|
|
99
99
|
/**
|
|
100
100
|
* Custom metadata for the lead.
|
|
101
101
|
*/
|
|
@@ -105,27 +105,27 @@ export interface LeadCreateResponse {
|
|
|
105
105
|
/**
|
|
106
106
|
* The access pass the lead is interested in, if available.
|
|
107
107
|
*/
|
|
108
|
-
product:
|
|
108
|
+
product: Lead.Product | null;
|
|
109
109
|
/**
|
|
110
110
|
* The referrer URL that brought this lead.
|
|
111
111
|
*/
|
|
112
112
|
referrer: string | null;
|
|
113
113
|
/**
|
|
114
|
-
* The
|
|
114
|
+
* The datetime the lead was last updated.
|
|
115
115
|
*/
|
|
116
116
|
updated_at: string;
|
|
117
117
|
/**
|
|
118
118
|
* The user who is the lead.
|
|
119
119
|
*/
|
|
120
|
-
user:
|
|
120
|
+
user: Lead.User;
|
|
121
121
|
}
|
|
122
|
-
export declare namespace
|
|
122
|
+
export declare namespace Lead {
|
|
123
123
|
/**
|
|
124
124
|
* The converted member, if any.
|
|
125
125
|
*/
|
|
126
126
|
interface Member {
|
|
127
127
|
/**
|
|
128
|
-
* The
|
|
128
|
+
* The unique identifier for the company member.
|
|
129
129
|
*/
|
|
130
130
|
id: string;
|
|
131
131
|
}
|
|
@@ -134,7 +134,7 @@ export declare namespace LeadCreateResponse {
|
|
|
134
134
|
*/
|
|
135
135
|
interface Product {
|
|
136
136
|
/**
|
|
137
|
-
* The
|
|
137
|
+
* The unique identifier for the product.
|
|
138
138
|
*/
|
|
139
139
|
id: string;
|
|
140
140
|
/**
|
|
@@ -147,175 +147,7 @@ export declare namespace LeadCreateResponse {
|
|
|
147
147
|
*/
|
|
148
148
|
interface User {
|
|
149
149
|
/**
|
|
150
|
-
* The
|
|
151
|
-
*/
|
|
152
|
-
id: string;
|
|
153
|
-
/**
|
|
154
|
-
* The email of the user
|
|
155
|
-
*/
|
|
156
|
-
email: string | null;
|
|
157
|
-
/**
|
|
158
|
-
* The name of the user from their Whop account.
|
|
159
|
-
*/
|
|
160
|
-
name: string | null;
|
|
161
|
-
/**
|
|
162
|
-
* The username of the user from their Whop account.
|
|
163
|
-
*/
|
|
164
|
-
username: string;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
/**
|
|
168
|
-
* An object representing a lead (someone who is interested in a whop).
|
|
169
|
-
*/
|
|
170
|
-
export interface LeadRetrieveResponse {
|
|
171
|
-
/**
|
|
172
|
-
* The ID of the lead.
|
|
173
|
-
*/
|
|
174
|
-
id: string;
|
|
175
|
-
/**
|
|
176
|
-
* The timestamp of when the lead was created.
|
|
177
|
-
*/
|
|
178
|
-
created_at: string;
|
|
179
|
-
/**
|
|
180
|
-
* The converted member, if any.
|
|
181
|
-
*/
|
|
182
|
-
member: LeadRetrieveResponse.Member | null;
|
|
183
|
-
/**
|
|
184
|
-
* Custom metadata for the lead.
|
|
185
|
-
*/
|
|
186
|
-
metadata: {
|
|
187
|
-
[key: string]: unknown;
|
|
188
|
-
} | null;
|
|
189
|
-
/**
|
|
190
|
-
* The access pass the lead is interested in, if available.
|
|
191
|
-
*/
|
|
192
|
-
product: LeadRetrieveResponse.Product | null;
|
|
193
|
-
/**
|
|
194
|
-
* The referrer URL that brought this lead.
|
|
195
|
-
*/
|
|
196
|
-
referrer: string | null;
|
|
197
|
-
/**
|
|
198
|
-
* The timestamp of when the lead was last updated.
|
|
199
|
-
*/
|
|
200
|
-
updated_at: string;
|
|
201
|
-
/**
|
|
202
|
-
* The user who is the lead.
|
|
203
|
-
*/
|
|
204
|
-
user: LeadRetrieveResponse.User;
|
|
205
|
-
}
|
|
206
|
-
export declare namespace LeadRetrieveResponse {
|
|
207
|
-
/**
|
|
208
|
-
* The converted member, if any.
|
|
209
|
-
*/
|
|
210
|
-
interface Member {
|
|
211
|
-
/**
|
|
212
|
-
* The ID of the member
|
|
213
|
-
*/
|
|
214
|
-
id: string;
|
|
215
|
-
}
|
|
216
|
-
/**
|
|
217
|
-
* The access pass the lead is interested in, if available.
|
|
218
|
-
*/
|
|
219
|
-
interface Product {
|
|
220
|
-
/**
|
|
221
|
-
* The internal ID of the public product.
|
|
222
|
-
*/
|
|
223
|
-
id: string;
|
|
224
|
-
/**
|
|
225
|
-
* The title of the product. Use for Whop 4.0.
|
|
226
|
-
*/
|
|
227
|
-
title: string;
|
|
228
|
-
}
|
|
229
|
-
/**
|
|
230
|
-
* The user who is the lead.
|
|
231
|
-
*/
|
|
232
|
-
interface User {
|
|
233
|
-
/**
|
|
234
|
-
* The internal ID of the user.
|
|
235
|
-
*/
|
|
236
|
-
id: string;
|
|
237
|
-
/**
|
|
238
|
-
* The email of the user
|
|
239
|
-
*/
|
|
240
|
-
email: string | null;
|
|
241
|
-
/**
|
|
242
|
-
* The name of the user from their Whop account.
|
|
243
|
-
*/
|
|
244
|
-
name: string | null;
|
|
245
|
-
/**
|
|
246
|
-
* The username of the user from their Whop account.
|
|
247
|
-
*/
|
|
248
|
-
username: string;
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
/**
|
|
252
|
-
* An object representing a lead (someone who is interested in a whop).
|
|
253
|
-
*/
|
|
254
|
-
export interface LeadUpdateResponse {
|
|
255
|
-
/**
|
|
256
|
-
* The ID of the lead.
|
|
257
|
-
*/
|
|
258
|
-
id: string;
|
|
259
|
-
/**
|
|
260
|
-
* The timestamp of when the lead was created.
|
|
261
|
-
*/
|
|
262
|
-
created_at: string;
|
|
263
|
-
/**
|
|
264
|
-
* The converted member, if any.
|
|
265
|
-
*/
|
|
266
|
-
member: LeadUpdateResponse.Member | null;
|
|
267
|
-
/**
|
|
268
|
-
* Custom metadata for the lead.
|
|
269
|
-
*/
|
|
270
|
-
metadata: {
|
|
271
|
-
[key: string]: unknown;
|
|
272
|
-
} | null;
|
|
273
|
-
/**
|
|
274
|
-
* The access pass the lead is interested in, if available.
|
|
275
|
-
*/
|
|
276
|
-
product: LeadUpdateResponse.Product | null;
|
|
277
|
-
/**
|
|
278
|
-
* The referrer URL that brought this lead.
|
|
279
|
-
*/
|
|
280
|
-
referrer: string | null;
|
|
281
|
-
/**
|
|
282
|
-
* The timestamp of when the lead was last updated.
|
|
283
|
-
*/
|
|
284
|
-
updated_at: string;
|
|
285
|
-
/**
|
|
286
|
-
* The user who is the lead.
|
|
287
|
-
*/
|
|
288
|
-
user: LeadUpdateResponse.User;
|
|
289
|
-
}
|
|
290
|
-
export declare namespace LeadUpdateResponse {
|
|
291
|
-
/**
|
|
292
|
-
* The converted member, if any.
|
|
293
|
-
*/
|
|
294
|
-
interface Member {
|
|
295
|
-
/**
|
|
296
|
-
* The ID of the member
|
|
297
|
-
*/
|
|
298
|
-
id: string;
|
|
299
|
-
}
|
|
300
|
-
/**
|
|
301
|
-
* The access pass the lead is interested in, if available.
|
|
302
|
-
*/
|
|
303
|
-
interface Product {
|
|
304
|
-
/**
|
|
305
|
-
* The internal ID of the public product.
|
|
306
|
-
*/
|
|
307
|
-
id: string;
|
|
308
|
-
/**
|
|
309
|
-
* The title of the product. Use for Whop 4.0.
|
|
310
|
-
*/
|
|
311
|
-
title: string;
|
|
312
|
-
}
|
|
313
|
-
/**
|
|
314
|
-
* The user who is the lead.
|
|
315
|
-
*/
|
|
316
|
-
interface User {
|
|
317
|
-
/**
|
|
318
|
-
* The internal ID of the user.
|
|
150
|
+
* The unique identifier for the user.
|
|
319
151
|
*/
|
|
320
152
|
id: string;
|
|
321
153
|
/**
|
|
@@ -337,11 +169,11 @@ export declare namespace LeadUpdateResponse {
|
|
|
337
169
|
*/
|
|
338
170
|
export interface LeadListResponse {
|
|
339
171
|
/**
|
|
340
|
-
* The
|
|
172
|
+
* The unique identifier for the lead.
|
|
341
173
|
*/
|
|
342
174
|
id: string;
|
|
343
175
|
/**
|
|
344
|
-
* The
|
|
176
|
+
* The datetime the lead was created.
|
|
345
177
|
*/
|
|
346
178
|
created_at: string;
|
|
347
179
|
/**
|
|
@@ -363,7 +195,7 @@ export interface LeadListResponse {
|
|
|
363
195
|
*/
|
|
364
196
|
referrer: string | null;
|
|
365
197
|
/**
|
|
366
|
-
* The
|
|
198
|
+
* The datetime the lead was last updated.
|
|
367
199
|
*/
|
|
368
200
|
updated_at: string;
|
|
369
201
|
/**
|
|
@@ -377,7 +209,7 @@ export declare namespace LeadListResponse {
|
|
|
377
209
|
*/
|
|
378
210
|
interface Member {
|
|
379
211
|
/**
|
|
380
|
-
* The
|
|
212
|
+
* The unique identifier for the company member.
|
|
381
213
|
*/
|
|
382
214
|
id: string;
|
|
383
215
|
}
|
|
@@ -386,7 +218,7 @@ export declare namespace LeadListResponse {
|
|
|
386
218
|
*/
|
|
387
219
|
interface Product {
|
|
388
220
|
/**
|
|
389
|
-
* The
|
|
221
|
+
* The unique identifier for the product.
|
|
390
222
|
*/
|
|
391
223
|
id: string;
|
|
392
224
|
/**
|
|
@@ -399,7 +231,7 @@ export declare namespace LeadListResponse {
|
|
|
399
231
|
*/
|
|
400
232
|
interface User {
|
|
401
233
|
/**
|
|
402
|
-
* The
|
|
234
|
+
* The unique identifier for the user.
|
|
403
235
|
*/
|
|
404
236
|
id: string;
|
|
405
237
|
/**
|
|
@@ -484,6 +316,6 @@ export interface LeadListParams extends CursorPageParams {
|
|
|
484
316
|
product_ids?: Array<string> | null;
|
|
485
317
|
}
|
|
486
318
|
export declare namespace Leads {
|
|
487
|
-
export { type
|
|
319
|
+
export { type Lead as Lead, type LeadListResponse as LeadListResponse, type LeadListResponsesCursorPage as LeadListResponsesCursorPage, type LeadCreateParams as LeadCreateParams, type LeadUpdateParams as LeadUpdateParams, type LeadListParams as LeadListParams, };
|
|
488
320
|
}
|
|
489
321
|
//# sourceMappingURL=leads.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leads.d.mts","sourceRoot":"","sources":["../src/resources/leads.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,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,
|
|
1
|
+
{"version":3,"file":"leads.d.mts","sourceRoot":"","sources":["../src/resources/leads.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,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,IAAI,CAAC;IAI1E;;;;;;;;;;;;;;;;OAgBG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAIhE;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;IAInB;;;;;;;;;;;;;;;;;;;OAmBG;IACH,IAAI,CACF,KAAK,EAAE,cAAc,EACrB,OAAO,CAAC,EAAE,cAAc,GACvB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