@whop/sdk 0.0.4 → 0.0.6
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 +51 -0
- package/README.md +0 -4
- package/client.d.mts +14 -8
- package/client.d.mts.map +1 -1
- package/client.d.ts +14 -8
- package/client.d.ts.map +1 -1
- package/client.js +8 -5
- package/client.js.map +1 -1
- package/client.mjs +8 -5
- package/client.mjs.map +1 -1
- package/lib/verify-user-token.d.mts.map +1 -1
- package/lib/verify-user-token.d.ts.map +1 -1
- package/lib/verify-user-token.js +6 -3
- package/lib/verify-user-token.js.map +1 -1
- package/lib/verify-user-token.mjs +6 -3
- package/lib/verify-user-token.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 +4 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -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/notifications.d.mts +105 -0
- package/resources/notifications.d.mts.map +1 -0
- package/resources/notifications.d.ts +105 -0
- package/resources/notifications.d.ts.map +1 -0
- package/resources/notifications.js +24 -0
- package/resources/notifications.js.map +1 -0
- package/resources/notifications.mjs +20 -0
- package/resources/notifications.mjs.map +1 -0
- 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 +31 -10
- package/src/lib/verify-user-token.ts +6 -3
- 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 +8 -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/notifications.ts +131 -0
- 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
|
@@ -118,6 +118,11 @@ export type CourseLessonListResponsesCursorPage = CursorPage<CourseLessonListRes
|
|
|
118
118
|
*/
|
|
119
119
|
export type AssessmentQuestionTypes = 'short_answer' | 'true_false' | 'multiple_choice' | 'multiple_select';
|
|
120
120
|
|
|
121
|
+
/**
|
|
122
|
+
* The type of embed for a lesson
|
|
123
|
+
*/
|
|
124
|
+
export type EmbedType = 'youtube' | 'loom';
|
|
125
|
+
|
|
121
126
|
/**
|
|
122
127
|
* A lesson from the courses app
|
|
123
128
|
*/
|
|
@@ -147,6 +152,16 @@ export interface Lesson {
|
|
|
147
152
|
*/
|
|
148
153
|
days_from_course_start_until_unlock: number | null;
|
|
149
154
|
|
|
155
|
+
/**
|
|
156
|
+
* ID for the embed (YouTube video ID or Loom share ID)
|
|
157
|
+
*/
|
|
158
|
+
embed_id: string | null;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* The type of embed for a lesson
|
|
162
|
+
*/
|
|
163
|
+
embed_type: EmbedType | null;
|
|
164
|
+
|
|
150
165
|
/**
|
|
151
166
|
* The type of the lesson (text, video, pdf, multi, quiz, knowledge_check)
|
|
152
167
|
*/
|
|
@@ -162,6 +177,11 @@ export interface Lesson {
|
|
|
162
177
|
*/
|
|
163
178
|
order: number;
|
|
164
179
|
|
|
180
|
+
/**
|
|
181
|
+
* The thumbnail for the lesson
|
|
182
|
+
*/
|
|
183
|
+
thumbnail: Lesson.Thumbnail | null;
|
|
184
|
+
|
|
165
185
|
/**
|
|
166
186
|
* The title of the lesson
|
|
167
187
|
*/
|
|
@@ -332,6 +352,17 @@ export namespace Lesson {
|
|
|
332
352
|
url: string | null;
|
|
333
353
|
}
|
|
334
354
|
|
|
355
|
+
/**
|
|
356
|
+
* The thumbnail for the lesson
|
|
357
|
+
*/
|
|
358
|
+
export interface Thumbnail {
|
|
359
|
+
/**
|
|
360
|
+
* This is the URL you use to render optimized attachments on the client. This
|
|
361
|
+
* should be used for apps.
|
|
362
|
+
*/
|
|
363
|
+
url: string | null;
|
|
364
|
+
}
|
|
365
|
+
|
|
335
366
|
/**
|
|
336
367
|
* The associated Mux asset for video lessons
|
|
337
368
|
*/
|
|
@@ -383,6 +414,16 @@ export interface CourseLessonListResponse {
|
|
|
383
414
|
*/
|
|
384
415
|
days_from_course_start_until_unlock: number | null;
|
|
385
416
|
|
|
417
|
+
/**
|
|
418
|
+
* ID for the embed (YouTube video ID or Loom share ID)
|
|
419
|
+
*/
|
|
420
|
+
embed_id: string | null;
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* The type of embed for a lesson
|
|
424
|
+
*/
|
|
425
|
+
embed_type: EmbedType | null;
|
|
426
|
+
|
|
386
427
|
/**
|
|
387
428
|
* The type of the lesson (text, video, pdf, multi, quiz, knowledge_check)
|
|
388
429
|
*/
|
|
@@ -393,6 +434,11 @@ export interface CourseLessonListResponse {
|
|
|
393
434
|
*/
|
|
394
435
|
order: number;
|
|
395
436
|
|
|
437
|
+
/**
|
|
438
|
+
* The thumbnail for the lesson
|
|
439
|
+
*/
|
|
440
|
+
thumbnail: CourseLessonListResponse.Thumbnail | null;
|
|
441
|
+
|
|
396
442
|
/**
|
|
397
443
|
* The title of the lesson
|
|
398
444
|
*/
|
|
@@ -405,6 +451,19 @@ export interface CourseLessonListResponse {
|
|
|
405
451
|
visibility: LessonVisibilities;
|
|
406
452
|
}
|
|
407
453
|
|
|
454
|
+
export namespace CourseLessonListResponse {
|
|
455
|
+
/**
|
|
456
|
+
* The thumbnail for the lesson
|
|
457
|
+
*/
|
|
458
|
+
export interface Thumbnail {
|
|
459
|
+
/**
|
|
460
|
+
* This is the URL you use to render optimized attachments on the client. This
|
|
461
|
+
* should be used for apps.
|
|
462
|
+
*/
|
|
463
|
+
url: string | null;
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
|
|
408
467
|
/**
|
|
409
468
|
* Represents `true` or `false` values.
|
|
410
469
|
*/
|
|
@@ -431,12 +490,56 @@ export interface CourseLessonCreateParams {
|
|
|
431
490
|
*/
|
|
432
491
|
days_from_course_start_until_unlock?: number | null;
|
|
433
492
|
|
|
493
|
+
/**
|
|
494
|
+
* ID for the embed (YouTube video ID or Loom share ID)
|
|
495
|
+
*/
|
|
496
|
+
embed_id?: string | null;
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* The type of embed for a lesson
|
|
500
|
+
*/
|
|
501
|
+
embed_type?: EmbedType | null;
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* The thumbnail for the lesson in png, jpeg, or gif format
|
|
505
|
+
*/
|
|
506
|
+
thumbnail?:
|
|
507
|
+
| CourseLessonCreateParams.AttachmentInputWithDirectUploadID
|
|
508
|
+
| CourseLessonCreateParams.AttachmentInputWithID
|
|
509
|
+
| null;
|
|
510
|
+
|
|
434
511
|
/**
|
|
435
512
|
* The title of the lesson
|
|
436
513
|
*/
|
|
437
514
|
title?: string | null;
|
|
438
515
|
}
|
|
439
516
|
|
|
517
|
+
export namespace CourseLessonCreateParams {
|
|
518
|
+
/**
|
|
519
|
+
* Input for an attachment
|
|
520
|
+
*/
|
|
521
|
+
export interface AttachmentInputWithDirectUploadID {
|
|
522
|
+
/**
|
|
523
|
+
* This ID should be used the first time you upload an attachment. It is the ID of
|
|
524
|
+
* the direct upload that was created when uploading the file to S3 via the
|
|
525
|
+
* mediaDirectUpload mutation.
|
|
526
|
+
*/
|
|
527
|
+
direct_upload_id: string;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* Input for an attachment
|
|
532
|
+
*/
|
|
533
|
+
export interface AttachmentInputWithID {
|
|
534
|
+
/**
|
|
535
|
+
* The ID of an existing attachment object. Use this when updating a resource and
|
|
536
|
+
* keeping a subset of the attachments. Don't use this unless you know what you're
|
|
537
|
+
* doing.
|
|
538
|
+
*/
|
|
539
|
+
id: string;
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
|
|
440
543
|
export interface CourseLessonUpdateParams {
|
|
441
544
|
/**
|
|
442
545
|
* Completion requirements for quiz/knowledge check lessons
|
|
@@ -468,6 +571,16 @@ export interface CourseLessonUpdateParams {
|
|
|
468
571
|
*/
|
|
469
572
|
days_from_course_start_until_unlock?: number | null;
|
|
470
573
|
|
|
574
|
+
/**
|
|
575
|
+
* ID for the embed (YouTube video ID or Loom share ID)
|
|
576
|
+
*/
|
|
577
|
+
embed_id?: string | null;
|
|
578
|
+
|
|
579
|
+
/**
|
|
580
|
+
* The type of embed for a lesson
|
|
581
|
+
*/
|
|
582
|
+
embed_type?: EmbedType | null;
|
|
583
|
+
|
|
471
584
|
/**
|
|
472
585
|
* The available types for a lesson
|
|
473
586
|
*/
|
|
@@ -491,6 +604,14 @@ export interface CourseLessonUpdateParams {
|
|
|
491
604
|
*/
|
|
492
605
|
mux_asset_id?: string | null;
|
|
493
606
|
|
|
607
|
+
/**
|
|
608
|
+
* The thumbnail for the lesson in png, jpeg, or gif format
|
|
609
|
+
*/
|
|
610
|
+
thumbnail?:
|
|
611
|
+
| CourseLessonUpdateParams.AttachmentInputWithDirectUploadID
|
|
612
|
+
| CourseLessonUpdateParams.AttachmentInputWithID
|
|
613
|
+
| null;
|
|
614
|
+
|
|
494
615
|
/**
|
|
495
616
|
* The title of the lesson
|
|
496
617
|
*/
|
|
@@ -654,6 +775,30 @@ export namespace CourseLessonUpdateParams {
|
|
|
654
775
|
*/
|
|
655
776
|
id: string;
|
|
656
777
|
}
|
|
778
|
+
|
|
779
|
+
/**
|
|
780
|
+
* Input for an attachment
|
|
781
|
+
*/
|
|
782
|
+
export interface AttachmentInputWithDirectUploadID {
|
|
783
|
+
/**
|
|
784
|
+
* This ID should be used the first time you upload an attachment. It is the ID of
|
|
785
|
+
* the direct upload that was created when uploading the file to S3 via the
|
|
786
|
+
* mediaDirectUpload mutation.
|
|
787
|
+
*/
|
|
788
|
+
direct_upload_id: string;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
/**
|
|
792
|
+
* Input for an attachment
|
|
793
|
+
*/
|
|
794
|
+
export interface AttachmentInputWithID {
|
|
795
|
+
/**
|
|
796
|
+
* The ID of an existing attachment object. Use this when updating a resource and
|
|
797
|
+
* keeping a subset of the attachments. Don't use this unless you know what you're
|
|
798
|
+
* doing.
|
|
799
|
+
*/
|
|
800
|
+
id: string;
|
|
801
|
+
}
|
|
657
802
|
}
|
|
658
803
|
|
|
659
804
|
export interface CourseLessonListParams extends CursorPageParams {
|
|
@@ -686,6 +831,7 @@ export interface CourseLessonListParams extends CursorPageParams {
|
|
|
686
831
|
export declare namespace CourseLessons {
|
|
687
832
|
export {
|
|
688
833
|
type AssessmentQuestionTypes as AssessmentQuestionTypes,
|
|
834
|
+
type EmbedType as EmbedType,
|
|
689
835
|
type Lesson as Lesson,
|
|
690
836
|
type LessonTypes as LessonTypes,
|
|
691
837
|
type LessonVisibilities as LessonVisibilities,
|
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,
|
|
@@ -154,6 +157,11 @@ export {
|
|
|
154
157
|
type MessageListParams,
|
|
155
158
|
type MessageListResponsesCursorPage,
|
|
156
159
|
} from './messages';
|
|
160
|
+
export {
|
|
161
|
+
Notifications,
|
|
162
|
+
type NotificationCreateResponse,
|
|
163
|
+
type NotificationCreateParams,
|
|
164
|
+
} from './notifications';
|
|
157
165
|
export {
|
|
158
166
|
Payments,
|
|
159
167
|
type BillingReasons,
|
|
@@ -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
|
*/
|