@whop/sdk 0.0.4 → 0.0.5
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 +32 -0
- package/client.d.mts +7 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +7 -4
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/access-tokens.d.mts +58 -0
- package/resources/access-tokens.d.mts.map +1 -0
- package/resources/access-tokens.d.ts +58 -0
- package/resources/access-tokens.d.ts.map +1 -0
- package/resources/access-tokens.js +25 -0
- package/resources/access-tokens.js.map +1 -0
- package/resources/access-tokens.mjs +21 -0
- package/resources/access-tokens.mjs.map +1 -0
- package/resources/checkout-configurations.d.mts +2 -2
- package/resources/checkout-configurations.d.ts +2 -2
- package/resources/course-lessons.d.mts +121 -1
- package/resources/course-lessons.d.mts.map +1 -1
- package/resources/course-lessons.d.ts +121 -1
- package/resources/course-lessons.d.ts.map +1 -1
- package/resources/courses.d.mts +45 -1
- package/resources/courses.d.mts.map +1 -1
- package/resources/courses.d.ts +45 -1
- package/resources/courses.d.ts.map +1 -1
- package/resources/entries.d.mts +2 -2
- package/resources/entries.d.ts +2 -2
- package/resources/forum-posts.d.mts +1 -1
- package/resources/forum-posts.d.ts +1 -1
- package/resources/index.d.mts +3 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -2
- 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 +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/invoices.d.mts +14 -25
- package/resources/invoices.d.mts.map +1 -1
- package/resources/invoices.d.ts +14 -25
- package/resources/invoices.d.ts.map +1 -1
- package/resources/ledger-accounts.d.mts +1 -1
- package/resources/ledger-accounts.d.ts +1 -1
- package/resources/ledger-accounts.js +1 -1
- package/resources/ledger-accounts.mjs +1 -1
- package/resources/members.d.mts +11 -11
- package/resources/members.d.mts.map +1 -1
- package/resources/members.d.ts +11 -11
- package/resources/members.d.ts.map +1 -1
- package/resources/memberships.d.mts +4 -4
- package/resources/memberships.d.mts.map +1 -1
- package/resources/memberships.d.ts +4 -4
- package/resources/memberships.d.ts.map +1 -1
- package/resources/messages.d.mts +1 -1
- package/resources/messages.d.ts +1 -1
- package/resources/payments.d.mts +2 -2
- package/resources/payments.d.ts +2 -2
- package/resources/plans.d.mts +6 -4
- package/resources/plans.d.mts.map +1 -1
- package/resources/plans.d.ts +6 -4
- package/resources/plans.d.ts.map +1 -1
- package/resources/products.d.mts +5 -5
- package/resources/products.d.ts +5 -5
- package/resources/promo-codes.d.mts +4 -4
- package/resources/promo-codes.d.ts +4 -4
- package/resources/shared.d.mts +22 -20
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +22 -20
- package/resources/shared.d.ts.map +1 -1
- package/resources/users.d.mts +3 -0
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +3 -0
- package/resources/users.d.ts.map +1 -1
- package/src/client.ts +13 -0
- package/src/resources/access-tokens.ts +72 -0
- package/src/resources/checkout-configurations.ts +2 -2
- package/src/resources/course-lessons.ts +146 -0
- package/src/resources/courses.ts +54 -0
- package/src/resources/entries.ts +2 -2
- package/src/resources/forum-posts.ts +1 -1
- package/src/resources/index.ts +3 -0
- package/src/resources/invoices.ts +14 -26
- package/src/resources/ledger-accounts.ts +1 -1
- package/src/resources/members.ts +12 -12
- package/src/resources/memberships.ts +5 -5
- package/src/resources/messages.ts +1 -1
- package/src/resources/payments.ts +2 -2
- package/src/resources/plans.ts +6 -4
- package/src/resources/products.ts +5 -5
- package/src/resources/promo-codes.ts +4 -4
- package/src/resources/shared.ts +22 -20
- package/src/resources/users.ts +3 -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/src/resources/courses.ts
CHANGED
|
@@ -146,6 +146,11 @@ export interface Course {
|
|
|
146
146
|
*/
|
|
147
147
|
language: Languages;
|
|
148
148
|
|
|
149
|
+
/**
|
|
150
|
+
* The order of the course within its experience
|
|
151
|
+
*/
|
|
152
|
+
order: string;
|
|
153
|
+
|
|
149
154
|
/**
|
|
150
155
|
* Whether the course requires students to complete the previous lesson before
|
|
151
156
|
* moving on to the next one
|
|
@@ -171,6 +176,12 @@ export interface Course {
|
|
|
171
176
|
* The timestamp of when the course was last updated
|
|
172
177
|
*/
|
|
173
178
|
updated_at: string;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* The visibility of the course. Determines how / whether this course is visible to
|
|
182
|
+
* users.
|
|
183
|
+
*/
|
|
184
|
+
visibility: CourseVisibilities;
|
|
174
185
|
}
|
|
175
186
|
|
|
176
187
|
export namespace Course {
|
|
@@ -259,6 +270,12 @@ export namespace Course {
|
|
|
259
270
|
}
|
|
260
271
|
}
|
|
261
272
|
|
|
273
|
+
/**
|
|
274
|
+
* The available visibilities for a course. Determines how / whether a course is
|
|
275
|
+
* visible to users.
|
|
276
|
+
*/
|
|
277
|
+
export type CourseVisibilities = 'visible' | 'hidden';
|
|
278
|
+
|
|
262
279
|
/**
|
|
263
280
|
* The available languages for a course
|
|
264
281
|
*/
|
|
@@ -317,6 +334,11 @@ export interface CourseListResponse {
|
|
|
317
334
|
*/
|
|
318
335
|
language: Languages;
|
|
319
336
|
|
|
337
|
+
/**
|
|
338
|
+
* The order of the course within its experience
|
|
339
|
+
*/
|
|
340
|
+
order: string;
|
|
341
|
+
|
|
320
342
|
/**
|
|
321
343
|
* Whether the course requires students to complete the previous lesson before
|
|
322
344
|
* moving on to the next one
|
|
@@ -342,6 +364,12 @@ export interface CourseListResponse {
|
|
|
342
364
|
* The timestamp of when the course was last updated
|
|
343
365
|
*/
|
|
344
366
|
updated_at: string;
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* The visibility of the course. Determines how / whether this course is visible to
|
|
370
|
+
* users.
|
|
371
|
+
*/
|
|
372
|
+
visibility: CourseVisibilities;
|
|
345
373
|
}
|
|
346
374
|
|
|
347
375
|
export namespace CourseListResponse {
|
|
@@ -405,6 +433,13 @@ export interface CourseCreateParams {
|
|
|
405
433
|
*/
|
|
406
434
|
cover_image?: string | null;
|
|
407
435
|
|
|
436
|
+
/**
|
|
437
|
+
* The decimal order position of the course within its experience. If not provided,
|
|
438
|
+
* it will be set to the next sequential order. Use fractional values (e.g., 1.5)
|
|
439
|
+
* to place between existing courses.
|
|
440
|
+
*/
|
|
441
|
+
order?: string | null;
|
|
442
|
+
|
|
408
443
|
/**
|
|
409
444
|
* Whether the course requires students to complete the previous lesson before
|
|
410
445
|
* moving on to the next one
|
|
@@ -423,6 +458,12 @@ export interface CourseCreateParams {
|
|
|
423
458
|
| CourseCreateParams.AttachmentInputWithDirectUploadID
|
|
424
459
|
| CourseCreateParams.AttachmentInputWithID
|
|
425
460
|
| null;
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* The available visibilities for a course. Determines how / whether a course is
|
|
464
|
+
* visible to users.
|
|
465
|
+
*/
|
|
466
|
+
visibility?: CourseVisibilities | null;
|
|
426
467
|
}
|
|
427
468
|
|
|
428
469
|
export namespace CourseCreateParams {
|
|
@@ -478,6 +519,12 @@ export interface CourseUpdateParams {
|
|
|
478
519
|
*/
|
|
479
520
|
language?: Languages | null;
|
|
480
521
|
|
|
522
|
+
/**
|
|
523
|
+
* The decimal order position of the course within its experience. Use fractional
|
|
524
|
+
* values (e.g., 1.5) to place between existing courses.
|
|
525
|
+
*/
|
|
526
|
+
order?: string | null;
|
|
527
|
+
|
|
481
528
|
/**
|
|
482
529
|
* Whether the course requires students to complete the previous lesson before
|
|
483
530
|
* moving on to the next one
|
|
@@ -501,6 +548,12 @@ export interface CourseUpdateParams {
|
|
|
501
548
|
* The title of the course
|
|
502
549
|
*/
|
|
503
550
|
title?: string | null;
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* The available visibilities for a course. Determines how / whether a course is
|
|
554
|
+
* visible to users.
|
|
555
|
+
*/
|
|
556
|
+
visibility?: CourseVisibilities | null;
|
|
504
557
|
}
|
|
505
558
|
|
|
506
559
|
export namespace CourseUpdateParams {
|
|
@@ -611,6 +664,7 @@ export interface CourseListParams extends CursorPageParams {
|
|
|
611
664
|
export declare namespace Courses {
|
|
612
665
|
export {
|
|
613
666
|
type Course as Course,
|
|
667
|
+
type CourseVisibilities as CourseVisibilities,
|
|
614
668
|
type Languages as Languages,
|
|
615
669
|
type CourseListResponse as CourseListResponse,
|
|
616
670
|
type CourseDeleteResponse as CourseDeleteResponse,
|
package/src/resources/entries.ts
CHANGED
|
@@ -82,7 +82,7 @@ export interface EntryListResponse {
|
|
|
82
82
|
plan: EntryListResponse.Plan | null;
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
|
-
* The
|
|
85
|
+
* The product tied to this entry, if there is one.
|
|
86
86
|
*/
|
|
87
87
|
product: EntryListResponse.Product | null;
|
|
88
88
|
|
|
@@ -109,7 +109,7 @@ export namespace EntryListResponse {
|
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
/**
|
|
112
|
-
* The
|
|
112
|
+
* The product tied to this entry, if there is one.
|
|
113
113
|
*/
|
|
114
114
|
export interface Product {
|
|
115
115
|
/**
|
package/src/resources/index.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
export * from './shared';
|
|
4
|
+
export { AccessTokens, type AccessTokenCreateResponse, type AccessTokenCreateParams } from './access-tokens';
|
|
4
5
|
export {
|
|
5
6
|
AppBuilds,
|
|
6
7
|
type AppBuildListResponse,
|
|
@@ -61,6 +62,7 @@ export {
|
|
|
61
62
|
export {
|
|
62
63
|
CourseLessons,
|
|
63
64
|
type AssessmentQuestionTypes,
|
|
65
|
+
type EmbedType,
|
|
64
66
|
type Lesson,
|
|
65
67
|
type LessonTypes,
|
|
66
68
|
type LessonVisibilities,
|
|
@@ -81,6 +83,7 @@ export {
|
|
|
81
83
|
export {
|
|
82
84
|
Courses,
|
|
83
85
|
type Course,
|
|
86
|
+
type CourseVisibilities,
|
|
84
87
|
type Languages,
|
|
85
88
|
type CourseListResponse,
|
|
86
89
|
type CourseDeleteResponse,
|
|
@@ -176,7 +176,7 @@ export declare namespace InvoiceCreateParams {
|
|
|
176
176
|
internal_notes?: string | null;
|
|
177
177
|
|
|
178
178
|
/**
|
|
179
|
-
* The type of plan that can be attached to
|
|
179
|
+
* The type of plan that can be attached to a product
|
|
180
180
|
*/
|
|
181
181
|
plan_type?: Shared.PlanType | null;
|
|
182
182
|
|
|
@@ -354,7 +354,7 @@ export declare namespace InvoiceCreateParams {
|
|
|
354
354
|
internal_notes?: string | null;
|
|
355
355
|
|
|
356
356
|
/**
|
|
357
|
-
* The type of plan that can be attached to
|
|
357
|
+
* The type of plan that can be attached to a product
|
|
358
358
|
*/
|
|
359
359
|
plan_type?: Shared.PlanType | null;
|
|
360
360
|
|
|
@@ -533,7 +533,7 @@ export declare namespace InvoiceCreateParams {
|
|
|
533
533
|
internal_notes?: string | null;
|
|
534
534
|
|
|
535
535
|
/**
|
|
536
|
-
* The type of plan that can be attached to
|
|
536
|
+
* The type of plan that can be attached to a product
|
|
537
537
|
*/
|
|
538
538
|
plan_type?: Shared.PlanType | null;
|
|
539
539
|
|
|
@@ -695,7 +695,7 @@ export declare namespace InvoiceCreateParams {
|
|
|
695
695
|
internal_notes?: string | null;
|
|
696
696
|
|
|
697
697
|
/**
|
|
698
|
-
* The type of plan that can be attached to
|
|
698
|
+
* The type of plan that can be attached to a product
|
|
699
699
|
*/
|
|
700
700
|
plan_type?: Shared.PlanType | null;
|
|
701
701
|
|
|
@@ -779,14 +779,14 @@ export interface InvoiceListParams extends CursorPageParams {
|
|
|
779
779
|
before?: string | null;
|
|
780
780
|
|
|
781
781
|
/**
|
|
782
|
-
*
|
|
782
|
+
* Filter invoices by their collection method
|
|
783
783
|
*/
|
|
784
|
-
|
|
784
|
+
collection_methods?: Array<Shared.CollectionMethod> | null;
|
|
785
785
|
|
|
786
786
|
/**
|
|
787
|
-
* The
|
|
787
|
+
* The direction of the sort.
|
|
788
788
|
*/
|
|
789
|
-
|
|
789
|
+
direction?: Shared.Direction | null;
|
|
790
790
|
|
|
791
791
|
/**
|
|
792
792
|
* Returns the first _n_ elements from the list.
|
|
@@ -802,28 +802,16 @@ export interface InvoiceListParams extends CursorPageParams {
|
|
|
802
802
|
* Which columns can be used to sort.
|
|
803
803
|
*/
|
|
804
804
|
order?: 'id' | 'created_at' | 'due_date' | null;
|
|
805
|
-
}
|
|
806
805
|
|
|
807
|
-
export namespace InvoiceListParams {
|
|
808
806
|
/**
|
|
809
|
-
*
|
|
807
|
+
* Return only invoices created for these specific product ids
|
|
810
808
|
*/
|
|
811
|
-
|
|
812
|
-
/**
|
|
813
|
-
* The access pass IDs to filter the invoices by
|
|
814
|
-
*/
|
|
815
|
-
access_pass_ids?: Array<string> | null;
|
|
809
|
+
product_ids?: Array<string> | null;
|
|
816
810
|
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
/**
|
|
823
|
-
* The statuses to filter the invoices by
|
|
824
|
-
*/
|
|
825
|
-
statuses?: Array<Shared.InvoiceStatus> | null;
|
|
826
|
-
}
|
|
811
|
+
/**
|
|
812
|
+
* The statuses to filter the invoices by
|
|
813
|
+
*/
|
|
814
|
+
statuses?: Array<Shared.InvoiceStatus> | null;
|
|
827
815
|
}
|
|
828
816
|
|
|
829
817
|
export declare namespace Invoices {
|
package/src/resources/members.ts
CHANGED
|
@@ -53,9 +53,9 @@ export interface MemberRetrieveResponse {
|
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
55
|
* The access level of the product member. If its admin, the member is an
|
|
56
|
-
* authorized user of the
|
|
57
|
-
* membership to the
|
|
58
|
-
* to the
|
|
56
|
+
* authorized user of the company. If its customer, the member has a valid
|
|
57
|
+
* membership to any product on the company. If its no_access, the member does not
|
|
58
|
+
* have access to the product.
|
|
59
59
|
*/
|
|
60
60
|
access_level: Shared.AccessLevel;
|
|
61
61
|
|
|
@@ -170,9 +170,9 @@ export interface MemberListResponse {
|
|
|
170
170
|
|
|
171
171
|
/**
|
|
172
172
|
* The access level of the product member. If its admin, the member is an
|
|
173
|
-
* authorized user of the
|
|
174
|
-
* membership to the
|
|
175
|
-
* to the
|
|
173
|
+
* authorized user of the company. If its customer, the member has a valid
|
|
174
|
+
* membership to any product on the company. If its no_access, the member does not
|
|
175
|
+
* have access to the product.
|
|
176
176
|
*/
|
|
177
177
|
access_level: Shared.AccessLevel;
|
|
178
178
|
|
|
@@ -256,15 +256,10 @@ export interface MemberListParams extends CursorPageParams {
|
|
|
256
256
|
company_id: string;
|
|
257
257
|
|
|
258
258
|
/**
|
|
259
|
-
* The access level a given user (or company) has to
|
|
259
|
+
* The access level a given user (or company) has to a product or company.
|
|
260
260
|
*/
|
|
261
261
|
access_level?: Shared.AccessLevel | null;
|
|
262
262
|
|
|
263
|
-
/**
|
|
264
|
-
* The access pass IDs to filter the members by
|
|
265
|
-
*/
|
|
266
|
-
access_pass_ids?: Array<string> | null;
|
|
267
|
-
|
|
268
263
|
/**
|
|
269
264
|
* Returns the elements in the list that come before the specified cursor.
|
|
270
265
|
*/
|
|
@@ -310,6 +305,11 @@ export interface MemberListParams extends CursorPageParams {
|
|
|
310
305
|
*/
|
|
311
306
|
plan_ids?: Array<string> | null;
|
|
312
307
|
|
|
308
|
+
/**
|
|
309
|
+
* The product IDs to filter the members by
|
|
310
|
+
*/
|
|
311
|
+
product_ids?: Array<string> | null;
|
|
312
|
+
|
|
313
313
|
/**
|
|
314
314
|
* The promo code IDs to filter the members by
|
|
315
315
|
*/
|
|
@@ -297,11 +297,6 @@ export interface MembershipUpdateParams {
|
|
|
297
297
|
}
|
|
298
298
|
|
|
299
299
|
export interface MembershipListParams extends CursorPageParams {
|
|
300
|
-
/**
|
|
301
|
-
* The access pass IDs to filter the memberships by
|
|
302
|
-
*/
|
|
303
|
-
access_pass_ids?: Array<string> | null;
|
|
304
|
-
|
|
305
300
|
/**
|
|
306
301
|
* Returns the elements in the list that come before the specified cursor.
|
|
307
302
|
*/
|
|
@@ -360,6 +355,11 @@ export interface MembershipListParams extends CursorPageParams {
|
|
|
360
355
|
*/
|
|
361
356
|
plan_ids?: Array<string> | null;
|
|
362
357
|
|
|
358
|
+
/**
|
|
359
|
+
* The product IDs to filter the memberships by
|
|
360
|
+
*/
|
|
361
|
+
product_ids?: Array<string> | null;
|
|
362
|
+
|
|
363
363
|
/**
|
|
364
364
|
* The promo code IDs to filter the memberships by
|
|
365
365
|
*/
|
|
@@ -364,7 +364,7 @@ export interface PaymentListResponse {
|
|
|
364
364
|
plan: PaymentListResponse.Plan | null;
|
|
365
365
|
|
|
366
366
|
/**
|
|
367
|
-
* The
|
|
367
|
+
* The product this payment was made for
|
|
368
368
|
*/
|
|
369
369
|
product: PaymentListResponse.Product | null;
|
|
370
370
|
|
|
@@ -535,7 +535,7 @@ export namespace PaymentListResponse {
|
|
|
535
535
|
}
|
|
536
536
|
|
|
537
537
|
/**
|
|
538
|
-
* The
|
|
538
|
+
* The product this payment was made for
|
|
539
539
|
*/
|
|
540
540
|
export interface Product {
|
|
541
541
|
/**
|
package/src/resources/plans.ts
CHANGED
|
@@ -118,7 +118,9 @@ export class Plans extends APIResource {
|
|
|
118
118
|
export type PlanListResponsesCursorPage = CursorPage<PlanListResponse>;
|
|
119
119
|
|
|
120
120
|
/**
|
|
121
|
-
*
|
|
121
|
+
* A plan for an product. Plans define the core parameters that define a checkout
|
|
122
|
+
* and payment on whop. Use plans to create different ways to price your products
|
|
123
|
+
* (Eg renewal / one_time)
|
|
122
124
|
*/
|
|
123
125
|
export interface PlanListResponse {
|
|
124
126
|
/**
|
|
@@ -187,7 +189,7 @@ export interface PlanListResponse {
|
|
|
187
189
|
plan_type: Shared.PlanType;
|
|
188
190
|
|
|
189
191
|
/**
|
|
190
|
-
* The
|
|
192
|
+
* The product that this plan belongs to.
|
|
191
193
|
*/
|
|
192
194
|
product: PlanListResponse.Product | null;
|
|
193
195
|
|
|
@@ -290,7 +292,7 @@ export namespace PlanListResponse {
|
|
|
290
292
|
}
|
|
291
293
|
|
|
292
294
|
/**
|
|
293
|
-
* The
|
|
295
|
+
* The product that this plan belongs to.
|
|
294
296
|
*/
|
|
295
297
|
export interface Product {
|
|
296
298
|
/**
|
|
@@ -376,7 +378,7 @@ export interface PlanCreateParams {
|
|
|
376
378
|
payment_method_configuration?: PlanCreateParams.PaymentMethodConfiguration | null;
|
|
377
379
|
|
|
378
380
|
/**
|
|
379
|
-
* The type of plan that can be attached to
|
|
381
|
+
* The type of plan that can be attached to a product
|
|
380
382
|
*/
|
|
381
383
|
plan_type?: Shared.PlanType | null;
|
|
382
384
|
|
|
@@ -172,7 +172,7 @@ export interface ProductCreateParams {
|
|
|
172
172
|
global_affiliate_percentage?: number | null;
|
|
173
173
|
|
|
174
174
|
/**
|
|
175
|
-
* The different statuses of the global affiliate program for
|
|
175
|
+
* The different statuses of the global affiliate program for a product.
|
|
176
176
|
*/
|
|
177
177
|
global_affiliate_status?: Shared.GlobalAffiliateStatus | null;
|
|
178
178
|
|
|
@@ -192,7 +192,7 @@ export interface ProductCreateParams {
|
|
|
192
192
|
member_affiliate_percentage?: number | null;
|
|
193
193
|
|
|
194
194
|
/**
|
|
195
|
-
* The different statuses of the global affiliate program for
|
|
195
|
+
* The different statuses of the global affiliate program for a product.
|
|
196
196
|
*/
|
|
197
197
|
member_affiliate_status?: Shared.GlobalAffiliateStatus | null;
|
|
198
198
|
|
|
@@ -253,7 +253,7 @@ export namespace ProductCreateParams {
|
|
|
253
253
|
initial_price?: number | null;
|
|
254
254
|
|
|
255
255
|
/**
|
|
256
|
-
* The type of plan that can be attached to
|
|
256
|
+
* The type of plan that can be attached to a product
|
|
257
257
|
*/
|
|
258
258
|
plan_type?: Shared.PlanType | null;
|
|
259
259
|
|
|
@@ -376,7 +376,7 @@ export interface ProductUpdateParams {
|
|
|
376
376
|
global_affiliate_percentage?: number | null;
|
|
377
377
|
|
|
378
378
|
/**
|
|
379
|
-
* The different statuses of the global affiliate program for
|
|
379
|
+
* The different statuses of the global affiliate program for a product.
|
|
380
380
|
*/
|
|
381
381
|
global_affiliate_status?: Shared.GlobalAffiliateStatus | null;
|
|
382
382
|
|
|
@@ -396,7 +396,7 @@ export interface ProductUpdateParams {
|
|
|
396
396
|
member_affiliate_percentage?: number | null;
|
|
397
397
|
|
|
398
398
|
/**
|
|
399
|
-
* The different statuses of the global affiliate program for
|
|
399
|
+
* The different statuses of the global affiliate program for a product.
|
|
400
400
|
*/
|
|
401
401
|
member_affiliate_status?: Shared.GlobalAffiliateStatus | null;
|
|
402
402
|
|
|
@@ -164,7 +164,7 @@ export interface PromoCode {
|
|
|
164
164
|
one_per_customer: boolean;
|
|
165
165
|
|
|
166
166
|
/**
|
|
167
|
-
* The
|
|
167
|
+
* The product this promo code applies to
|
|
168
168
|
*/
|
|
169
169
|
product: PromoCode.Product | null;
|
|
170
170
|
|
|
@@ -216,7 +216,7 @@ export namespace PromoCode {
|
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
/**
|
|
219
|
-
* The
|
|
219
|
+
* The product this promo code applies to
|
|
220
220
|
*/
|
|
221
221
|
export interface Product {
|
|
222
222
|
/**
|
|
@@ -302,7 +302,7 @@ export interface PromoCodeListResponse {
|
|
|
302
302
|
one_per_customer: boolean;
|
|
303
303
|
|
|
304
304
|
/**
|
|
305
|
-
* The
|
|
305
|
+
* The product this promo code applies to
|
|
306
306
|
*/
|
|
307
307
|
product: PromoCodeListResponse.Product | null;
|
|
308
308
|
|
|
@@ -339,7 +339,7 @@ export interface PromoCodeListResponse {
|
|
|
339
339
|
|
|
340
340
|
export namespace PromoCodeListResponse {
|
|
341
341
|
/**
|
|
342
|
-
* The
|
|
342
|
+
* The product this promo code applies to
|
|
343
343
|
*/
|
|
344
344
|
export interface Product {
|
|
345
345
|
/**
|
package/src/resources/shared.ts
CHANGED
|
@@ -5,12 +5,13 @@ import * as PaymentsAPI from './payments';
|
|
|
5
5
|
import { CursorPage } from '../core/pagination';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* The access level a given user (or company) has to
|
|
8
|
+
* The access level a given user (or company) has to a product or company.
|
|
9
9
|
*/
|
|
10
10
|
export type AccessLevel = 'no_access' | 'admin' | 'customer';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* The different types an
|
|
13
|
+
* The different types an product can be. Only use 'regular'. The rest are for
|
|
14
|
+
* internal use
|
|
14
15
|
*/
|
|
15
16
|
export type AccessPassType = 'regular' | 'app' | 'experience_upsell' | 'api_only';
|
|
16
17
|
|
|
@@ -970,7 +971,7 @@ export interface Entry {
|
|
|
970
971
|
plan: Entry.Plan | null;
|
|
971
972
|
|
|
972
973
|
/**
|
|
973
|
-
* The
|
|
974
|
+
* The product tied to this entry, if there is one.
|
|
974
975
|
*/
|
|
975
976
|
product: Entry.Product | null;
|
|
976
977
|
|
|
@@ -1017,7 +1018,7 @@ export namespace Entry {
|
|
|
1017
1018
|
}
|
|
1018
1019
|
|
|
1019
1020
|
/**
|
|
1020
|
-
* The
|
|
1021
|
+
* The product tied to this entry, if there is one.
|
|
1021
1022
|
*/
|
|
1022
1023
|
export interface Product {
|
|
1023
1024
|
/**
|
|
@@ -1102,10 +1103,9 @@ export interface Experience {
|
|
|
1102
1103
|
order: string | null;
|
|
1103
1104
|
|
|
1104
1105
|
/**
|
|
1105
|
-
* The
|
|
1106
|
-
*
|
|
1107
|
-
*
|
|
1108
|
-
* accessPass.
|
|
1106
|
+
* The products that this experience is attached to. This defines which set of
|
|
1107
|
+
* customers have access and can view this experience. If empty, this experience is
|
|
1108
|
+
* only visible to authorized users of the company
|
|
1109
1109
|
*/
|
|
1110
1110
|
products: Array<Experience.Product>;
|
|
1111
1111
|
}
|
|
@@ -1178,7 +1178,7 @@ export namespace Experience {
|
|
|
1178
1178
|
}
|
|
1179
1179
|
|
|
1180
1180
|
/**
|
|
1181
|
-
*
|
|
1181
|
+
* Represents a product on whop. Use products to sell anything on the platform.
|
|
1182
1182
|
*/
|
|
1183
1183
|
export interface Product {
|
|
1184
1184
|
/**
|
|
@@ -1250,7 +1250,7 @@ export namespace Forum {
|
|
|
1250
1250
|
*/
|
|
1251
1251
|
export interface ForumPost {
|
|
1252
1252
|
/**
|
|
1253
|
-
* The unique identifier
|
|
1253
|
+
* The unique identifier of the resource.
|
|
1254
1254
|
*/
|
|
1255
1255
|
id: string;
|
|
1256
1256
|
|
|
@@ -1359,7 +1359,7 @@ export type FriendlyReceiptStatus =
|
|
|
1359
1359
|
| 'canceled';
|
|
1360
1360
|
|
|
1361
1361
|
/**
|
|
1362
|
-
* The different statuses of the global affiliate program for
|
|
1362
|
+
* The different statuses of the global affiliate program for a product.
|
|
1363
1363
|
*/
|
|
1364
1364
|
export type GlobalAffiliateStatus = 'enabled' | 'disabled';
|
|
1365
1365
|
|
|
@@ -1852,7 +1852,7 @@ export type MembershipStatus =
|
|
|
1852
1852
|
*/
|
|
1853
1853
|
export interface Message {
|
|
1854
1854
|
/**
|
|
1855
|
-
* The unique identifier
|
|
1855
|
+
* The unique identifier of the resource.
|
|
1856
1856
|
*/
|
|
1857
1857
|
id: string;
|
|
1858
1858
|
|
|
@@ -2122,7 +2122,7 @@ export interface Payment {
|
|
|
2122
2122
|
plan: Payment.Plan | null;
|
|
2123
2123
|
|
|
2124
2124
|
/**
|
|
2125
|
-
* The
|
|
2125
|
+
* The product this payment was made for
|
|
2126
2126
|
*/
|
|
2127
2127
|
product: Payment.Product | null;
|
|
2128
2128
|
|
|
@@ -2293,7 +2293,7 @@ export namespace Payment {
|
|
|
2293
2293
|
}
|
|
2294
2294
|
|
|
2295
2295
|
/**
|
|
2296
|
-
* The
|
|
2296
|
+
* The product this payment was made for
|
|
2297
2297
|
*/
|
|
2298
2298
|
export interface Product {
|
|
2299
2299
|
/**
|
|
@@ -2374,7 +2374,9 @@ export namespace Payment {
|
|
|
2374
2374
|
}
|
|
2375
2375
|
|
|
2376
2376
|
/**
|
|
2377
|
-
*
|
|
2377
|
+
* A plan for an product. Plans define the core parameters that define a checkout
|
|
2378
|
+
* and payment on whop. Use plans to create different ways to price your products
|
|
2379
|
+
* (Eg renewal / one_time)
|
|
2378
2380
|
*/
|
|
2379
2381
|
export interface Plan {
|
|
2380
2382
|
/**
|
|
@@ -2453,7 +2455,7 @@ export interface Plan {
|
|
|
2453
2455
|
plan_type: PlanType;
|
|
2454
2456
|
|
|
2455
2457
|
/**
|
|
2456
|
-
* The
|
|
2458
|
+
* The product that this plan belongs to.
|
|
2457
2459
|
*/
|
|
2458
2460
|
product: Plan.Product | null;
|
|
2459
2461
|
|
|
@@ -2596,7 +2598,7 @@ export namespace Plan {
|
|
|
2596
2598
|
}
|
|
2597
2599
|
|
|
2598
2600
|
/**
|
|
2599
|
-
* The
|
|
2601
|
+
* The product that this plan belongs to.
|
|
2600
2602
|
*/
|
|
2601
2603
|
export interface Product {
|
|
2602
2604
|
/**
|
|
@@ -2612,12 +2614,12 @@ export namespace Plan {
|
|
|
2612
2614
|
}
|
|
2613
2615
|
|
|
2614
2616
|
/**
|
|
2615
|
-
* The type of plan that can be attached to
|
|
2617
|
+
* The type of plan that can be attached to a product
|
|
2616
2618
|
*/
|
|
2617
2619
|
export type PlanType = 'renewal' | 'one_time';
|
|
2618
2620
|
|
|
2619
2621
|
/**
|
|
2620
|
-
*
|
|
2622
|
+
* Represents a product on whop. Use products to sell anything on the platform.
|
|
2621
2623
|
*/
|
|
2622
2624
|
export interface Product {
|
|
2623
2625
|
/**
|
|
@@ -2808,7 +2810,7 @@ export namespace Product {
|
|
|
2808
2810
|
}
|
|
2809
2811
|
|
|
2810
2812
|
/**
|
|
2811
|
-
*
|
|
2813
|
+
* Represents a product on whop. Use products to sell anything on the platform.
|
|
2812
2814
|
*/
|
|
2813
2815
|
export interface ProductListItem {
|
|
2814
2816
|
/**
|
package/src/resources/users.ts
CHANGED
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.0.
|
|
1
|
+
export const VERSION = '0.0.5'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.0.
|
|
1
|
+
export declare const VERSION = "0.0.5";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.0.
|
|
1
|
+
export declare const VERSION = "0.0.5";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|