@whop/sdk 0.0.1-canary.0 → 0.0.3
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 +44 -0
- package/client.d.mts +39 -11
- package/client.d.mts.map +1 -1
- package/client.d.ts +39 -11
- package/client.d.ts.map +1 -1
- package/client.js +23 -2
- package/client.js.map +1 -1
- package/client.mjs +23 -2
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/apps.d.mts +16 -0
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +16 -0
- package/resources/apps.d.ts.map +1 -1
- package/resources/checkout-configurations.d.mts +96 -19
- package/resources/checkout-configurations.d.mts.map +1 -1
- package/resources/checkout-configurations.d.ts +96 -19
- package/resources/checkout-configurations.d.ts.map +1 -1
- package/resources/checkout-configurations.js +3 -1
- package/resources/checkout-configurations.js.map +1 -1
- package/resources/checkout-configurations.mjs +3 -1
- package/resources/checkout-configurations.mjs.map +1 -1
- package/resources/course-chapters.d.mts +185 -0
- package/resources/course-chapters.d.mts.map +1 -0
- package/resources/course-chapters.d.ts +185 -0
- package/resources/course-chapters.d.ts.map +1 -0
- package/resources/course-chapters.js +103 -0
- package/resources/course-chapters.js.map +1 -0
- package/resources/course-chapters.mjs +99 -0
- package/resources/course-chapters.mjs.map +1 -0
- package/resources/course-lessons.d.mts +523 -0
- package/resources/course-lessons.d.mts.map +1 -0
- package/resources/course-lessons.d.ts +523 -0
- package/resources/course-lessons.d.ts.map +1 -0
- package/resources/course-lessons.js +101 -0
- package/resources/course-lessons.js.map +1 -0
- package/resources/course-lessons.mjs +97 -0
- package/resources/course-lessons.mjs.map +1 -0
- package/resources/courses.d.mts +465 -0
- package/resources/courses.d.mts.map +1 -0
- package/resources/courses.d.ts +465 -0
- package/resources/courses.d.ts.map +1 -0
- package/resources/courses.js +98 -0
- package/resources/courses.js.map +1 -0
- package/resources/courses.mjs +94 -0
- package/resources/courses.mjs.map +1 -0
- package/resources/experiences.d.mts +59 -1
- package/resources/experiences.d.mts.map +1 -1
- package/resources/experiences.d.ts +59 -1
- package/resources/experiences.d.ts.map +1 -1
- package/resources/experiences.js +22 -0
- package/resources/experiences.js.map +1 -1
- package/resources/experiences.mjs +22 -0
- package/resources/experiences.mjs.map +1 -1
- package/resources/forum-posts.d.mts +56 -1
- package/resources/forum-posts.d.mts.map +1 -1
- package/resources/forum-posts.d.ts +56 -1
- package/resources/forum-posts.d.ts.map +1 -1
- package/resources/forum-posts.js +11 -0
- package/resources/forum-posts.js.map +1 -1
- package/resources/forum-posts.mjs +11 -0
- package/resources/forum-posts.mjs.map +1 -1
- package/resources/forums.d.mts +112 -0
- package/resources/forums.d.mts.map +1 -0
- package/resources/forums.d.ts +112 -0
- package/resources/forums.d.ts.map +1 -0
- package/resources/forums.js +41 -0
- package/resources/forums.js.map +1 -0
- package/resources/forums.mjs +37 -0
- package/resources/forums.mjs.map +1 -0
- package/resources/index.d.mts +12 -5
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +12 -5
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +15 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +7 -0
- package/resources/index.mjs.map +1 -1
- package/resources/invoices.d.mts +5 -2
- package/resources/invoices.d.mts.map +1 -1
- package/resources/invoices.d.ts +5 -2
- package/resources/invoices.d.ts.map +1 -1
- package/resources/ledger-accounts.d.mts +1 -1
- package/resources/ledger-accounts.d.mts.map +1 -1
- package/resources/ledger-accounts.d.ts +1 -1
- package/resources/ledger-accounts.d.ts.map +1 -1
- package/resources/members.d.mts +274 -0
- package/resources/members.d.mts.map +1 -0
- package/resources/members.d.ts +274 -0
- package/resources/members.d.ts.map +1 -0
- package/resources/members.js +35 -0
- package/resources/members.js.map +1 -0
- package/resources/members.mjs +31 -0
- package/resources/members.mjs.map +1 -0
- package/resources/memberships.d.mts +26 -5
- package/resources/memberships.d.mts.map +1 -1
- package/resources/memberships.d.ts +26 -5
- package/resources/memberships.d.ts.map +1 -1
- package/resources/memberships.js +1 -1
- package/resources/memberships.js.map +1 -1
- package/resources/memberships.mjs +1 -1
- package/resources/memberships.mjs.map +1 -1
- package/resources/messages.d.mts +38 -1
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +38 -1
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +6 -0
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +6 -0
- package/resources/messages.mjs.map +1 -1
- package/resources/payments.d.mts +28 -13
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +28 -13
- package/resources/payments.d.ts.map +1 -1
- package/resources/plans.d.mts +54 -3
- package/resources/plans.d.mts.map +1 -1
- package/resources/plans.d.ts +54 -3
- package/resources/plans.d.ts.map +1 -1
- package/resources/products.d.mts +17 -25
- package/resources/products.d.mts.map +1 -1
- package/resources/products.d.ts +17 -25
- package/resources/products.d.ts.map +1 -1
- package/resources/promo-codes.d.mts +394 -0
- package/resources/promo-codes.d.mts.map +1 -0
- package/resources/promo-codes.d.ts +394 -0
- package/resources/promo-codes.d.ts.map +1 -0
- package/resources/promo-codes.js +91 -0
- package/resources/promo-codes.js.map +1 -0
- package/resources/promo-codes.mjs +87 -0
- package/resources/promo-codes.mjs.map +1 -0
- package/resources/reviews.d.mts +277 -0
- package/resources/reviews.d.mts.map +1 -0
- package/resources/reviews.d.ts +277 -0
- package/resources/reviews.d.ts.map +1 -0
- package/resources/reviews.js +23 -0
- package/resources/reviews.js.map +1 -0
- package/resources/reviews.mjs +19 -0
- package/resources/reviews.mjs.map +1 -0
- package/resources/shared.d.mts +245 -24
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +245 -24
- package/resources/shared.d.ts.map +1 -1
- package/resources/users.d.mts +18 -1
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +18 -1
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js.map +1 -1
- package/resources/users.mjs.map +1 -1
- package/resources/webhooks.d.mts +224 -2
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +224 -2
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +197 -3
- package/src/resources/apps.ts +18 -0
- package/src/resources/checkout-configurations.ts +111 -19
- package/src/resources/course-chapters.ts +236 -0
- package/src/resources/course-lessons.ts +646 -0
- package/src/resources/courses.ts +594 -0
- package/src/resources/experiences.ts +71 -0
- package/src/resources/forum-posts.ts +71 -0
- package/src/resources/forums.ts +152 -0
- package/src/resources/index.ts +83 -0
- package/src/resources/invoices.ts +5 -2
- package/src/resources/ledger-accounts.ts +13 -1
- package/src/resources/members.ts +342 -0
- package/src/resources/memberships.ts +31 -6
- package/src/resources/messages.ts +50 -0
- package/src/resources/payments.ts +139 -19
- package/src/resources/plans.ts +65 -3
- package/src/resources/products.ts +20 -29
- package/src/resources/promo-codes.ts +490 -0
- package/src/resources/reviews.ts +348 -0
- package/src/resources/shared.ts +296 -24
- package/src/resources/users.ts +20 -1
- package/src/resources/webhooks.ts +293 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -42,6 +42,22 @@ export class ForumPosts extends APIResource {
|
|
|
42
42
|
return this._client.get(path`/forum_posts/${id}`, options);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
/**
|
|
46
|
+
* Update an existing forum post
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```ts
|
|
50
|
+
* const forumPost = await client.forumPosts.update('id');
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
update(
|
|
54
|
+
id: string,
|
|
55
|
+
body: ForumPostUpdateParams | null | undefined = {},
|
|
56
|
+
options?: RequestOptions,
|
|
57
|
+
): APIPromise<Shared.ForumPost> {
|
|
58
|
+
return this._client.patch(path`/forum_posts/${id}`, { body, ...options });
|
|
59
|
+
}
|
|
60
|
+
|
|
45
61
|
/**
|
|
46
62
|
* Lists forum posts
|
|
47
63
|
*
|
|
@@ -88,6 +104,11 @@ export interface ForumPostListResponse {
|
|
|
88
104
|
*/
|
|
89
105
|
content: string | null;
|
|
90
106
|
|
|
107
|
+
/**
|
|
108
|
+
* The timestamp when the post was created
|
|
109
|
+
*/
|
|
110
|
+
created_at: string;
|
|
111
|
+
|
|
91
112
|
/**
|
|
92
113
|
* Whether the forum post has been edited
|
|
93
114
|
*/
|
|
@@ -118,6 +139,11 @@ export interface ForumPostListResponse {
|
|
|
118
139
|
*/
|
|
119
140
|
title: string | null;
|
|
120
141
|
|
|
142
|
+
/**
|
|
143
|
+
* The timestamp when the post was last updated
|
|
144
|
+
*/
|
|
145
|
+
updated_at: string;
|
|
146
|
+
|
|
121
147
|
/**
|
|
122
148
|
* The user who created this forum post
|
|
123
149
|
*/
|
|
@@ -256,6 +282,50 @@ export namespace ForumPostCreateParams {
|
|
|
256
282
|
}
|
|
257
283
|
}
|
|
258
284
|
|
|
285
|
+
export interface ForumPostUpdateParams {
|
|
286
|
+
/**
|
|
287
|
+
* The attachments for this post
|
|
288
|
+
*/
|
|
289
|
+
attachments?: Array<ForumPostUpdateParams.Attachment> | null;
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* This is the main body of the post in Markdown format. Hidden if paywalled and
|
|
293
|
+
* user hasn't purchased access to it.
|
|
294
|
+
*/
|
|
295
|
+
content?: string | null;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Whether the post is pinned. You can only pin a top level posts (not comments).
|
|
299
|
+
*/
|
|
300
|
+
is_pinned?: boolean | null;
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* The title of the post. Only visible if paywalled.
|
|
304
|
+
*/
|
|
305
|
+
title?: string | null;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
export namespace ForumPostUpdateParams {
|
|
309
|
+
/**
|
|
310
|
+
* Input for an attachment
|
|
311
|
+
*/
|
|
312
|
+
export interface Attachment {
|
|
313
|
+
/**
|
|
314
|
+
* The ID of an existing attachment object. Use this when updating a resource and
|
|
315
|
+
* keeping a subset of the attachments. Don't use this unless you know what you're
|
|
316
|
+
* doing.
|
|
317
|
+
*/
|
|
318
|
+
id?: string | null;
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* This ID should be used the first time you upload an attachment. It is the ID of
|
|
322
|
+
* the direct upload that was created when uploading the file to S3 via the
|
|
323
|
+
* mediaDirectUpload mutation.
|
|
324
|
+
*/
|
|
325
|
+
direct_upload_id?: string | null;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
|
|
259
329
|
export interface ForumPostListParams extends CursorPageParams {
|
|
260
330
|
/**
|
|
261
331
|
* The ID of the experience to list forum posts for
|
|
@@ -293,6 +363,7 @@ export declare namespace ForumPosts {
|
|
|
293
363
|
type ForumPostListResponse as ForumPostListResponse,
|
|
294
364
|
type ForumPostListResponsesCursorPage as ForumPostListResponsesCursorPage,
|
|
295
365
|
type ForumPostCreateParams as ForumPostCreateParams,
|
|
366
|
+
type ForumPostUpdateParams as ForumPostUpdateParams,
|
|
296
367
|
type ForumPostListParams as ForumPostListParams,
|
|
297
368
|
};
|
|
298
369
|
}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import * as Shared from './shared';
|
|
5
|
+
import { APIPromise } from '../core/api-promise';
|
|
6
|
+
import { CursorPage, type CursorPageParams, PagePromise } from '../core/pagination';
|
|
7
|
+
import { RequestOptions } from '../internal/request-options';
|
|
8
|
+
import { path } from '../internal/utils/path';
|
|
9
|
+
|
|
10
|
+
export class Forums extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Retrieves a forum
|
|
13
|
+
*
|
|
14
|
+
* Required permissions:
|
|
15
|
+
*
|
|
16
|
+
* - `forum:read`
|
|
17
|
+
*/
|
|
18
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<Shared.Forum> {
|
|
19
|
+
return this._client.get(path`/forums/${id}`, options);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Updates a forum
|
|
24
|
+
*
|
|
25
|
+
* Required permissions:
|
|
26
|
+
*
|
|
27
|
+
* - `forum:moderate`
|
|
28
|
+
*/
|
|
29
|
+
update(
|
|
30
|
+
id: string,
|
|
31
|
+
body: ForumUpdateParams | null | undefined = {},
|
|
32
|
+
options?: RequestOptions,
|
|
33
|
+
): APIPromise<Shared.Forum> {
|
|
34
|
+
return this._client.patch(path`/forums/${id}`, { body, ...options });
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Lists forums inside a company
|
|
39
|
+
*
|
|
40
|
+
* Required permissions:
|
|
41
|
+
*
|
|
42
|
+
* - `forum:read`
|
|
43
|
+
*/
|
|
44
|
+
list(
|
|
45
|
+
query: ForumListParams,
|
|
46
|
+
options?: RequestOptions,
|
|
47
|
+
): PagePromise<ForumListResponsesCursorPage, ForumListResponse> {
|
|
48
|
+
return this._client.getAPIList('/forums', CursorPage<ForumListResponse>, { query, ...options });
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export type ForumListResponsesCursorPage = CursorPage<ForumListResponse>;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Represents a forum feed
|
|
56
|
+
*/
|
|
57
|
+
export interface ForumListResponse {
|
|
58
|
+
/**
|
|
59
|
+
* The unique identifier for the entity
|
|
60
|
+
*/
|
|
61
|
+
id: string;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* The email notification preference for this forum
|
|
65
|
+
*/
|
|
66
|
+
email_notification_preference: Shared.EmailNotificationPreferences;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* The experience for this forum
|
|
70
|
+
*/
|
|
71
|
+
experience: ForumListResponse.Experience;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Who can comment on this forum
|
|
75
|
+
*/
|
|
76
|
+
who_can_comment: Shared.WhoCanCommentTypes;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Who can post on this forum
|
|
80
|
+
*/
|
|
81
|
+
who_can_post: Shared.WhoCanPostTypes;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export namespace ForumListResponse {
|
|
85
|
+
/**
|
|
86
|
+
* The experience for this forum
|
|
87
|
+
*/
|
|
88
|
+
export interface Experience {
|
|
89
|
+
/**
|
|
90
|
+
* The unique ID representing this experience
|
|
91
|
+
*/
|
|
92
|
+
id: string;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* The written name of the description.
|
|
96
|
+
*/
|
|
97
|
+
name: string;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export interface ForumUpdateParams {
|
|
102
|
+
/**
|
|
103
|
+
* Email notification preference option for a forum feed
|
|
104
|
+
*/
|
|
105
|
+
email_notification_preference?: Shared.EmailNotificationPreferences | null;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Who can comment on a forum feed
|
|
109
|
+
*/
|
|
110
|
+
who_can_comment?: Shared.WhoCanCommentTypes | null;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Who can post on a forum feed
|
|
114
|
+
*/
|
|
115
|
+
who_can_post?: Shared.WhoCanPostTypes | null;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export interface ForumListParams extends CursorPageParams {
|
|
119
|
+
/**
|
|
120
|
+
* The ID of the company to list forums for
|
|
121
|
+
*/
|
|
122
|
+
company_id: string;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Returns the elements in the list that come before the specified cursor.
|
|
126
|
+
*/
|
|
127
|
+
before?: string | null;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Returns the first _n_ elements from the list.
|
|
131
|
+
*/
|
|
132
|
+
first?: number | null;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Returns the last _n_ elements from the list.
|
|
136
|
+
*/
|
|
137
|
+
last?: number | null;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* If provided, only forums connected to this product are returned
|
|
141
|
+
*/
|
|
142
|
+
product_id?: string | null;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export declare namespace Forums {
|
|
146
|
+
export {
|
|
147
|
+
type ForumListResponse as ForumListResponse,
|
|
148
|
+
type ForumListResponsesCursorPage as ForumListResponsesCursorPage,
|
|
149
|
+
type ForumUpdateParams as ForumUpdateParams,
|
|
150
|
+
type ForumListParams as ForumListParams,
|
|
151
|
+
};
|
|
152
|
+
}
|
package/src/resources/index.ts
CHANGED
|
@@ -38,10 +38,44 @@ export {
|
|
|
38
38
|
type CheckoutConfigurationListResponsesCursorPage,
|
|
39
39
|
} from './checkout-configurations';
|
|
40
40
|
export { Companies } from './companies';
|
|
41
|
+
export {
|
|
42
|
+
CourseChapters,
|
|
43
|
+
type CourseChapter,
|
|
44
|
+
type CourseChapterListResponse,
|
|
45
|
+
type CourseChapterDeleteResponse,
|
|
46
|
+
type CourseChapterCreateParams,
|
|
47
|
+
type CourseChapterUpdateParams,
|
|
48
|
+
type CourseChapterListParams,
|
|
49
|
+
type CourseChapterListResponsesCursorPage,
|
|
50
|
+
} from './course-chapters';
|
|
41
51
|
export {
|
|
42
52
|
CourseLessonInteractions,
|
|
43
53
|
type CourseLessonInteractionListParams,
|
|
44
54
|
} from './course-lesson-interactions';
|
|
55
|
+
export {
|
|
56
|
+
CourseLessons,
|
|
57
|
+
type AssessmentQuestionTypes,
|
|
58
|
+
type Lesson,
|
|
59
|
+
type LessonTypes,
|
|
60
|
+
type LessonVisibilities,
|
|
61
|
+
type CourseLessonListResponse,
|
|
62
|
+
type CourseLessonDeleteResponse,
|
|
63
|
+
type CourseLessonCreateParams,
|
|
64
|
+
type CourseLessonUpdateParams,
|
|
65
|
+
type CourseLessonListParams,
|
|
66
|
+
type CourseLessonListResponsesCursorPage,
|
|
67
|
+
} from './course-lessons';
|
|
68
|
+
export {
|
|
69
|
+
Courses,
|
|
70
|
+
type Course,
|
|
71
|
+
type Languages,
|
|
72
|
+
type CourseListResponse,
|
|
73
|
+
type CourseDeleteResponse,
|
|
74
|
+
type CourseCreateParams,
|
|
75
|
+
type CourseUpdateParams,
|
|
76
|
+
type CourseListParams,
|
|
77
|
+
type CourseListResponsesCursorPage,
|
|
78
|
+
} from './courses';
|
|
45
79
|
export {
|
|
46
80
|
Entries,
|
|
47
81
|
type EntryListResponse,
|
|
@@ -58,15 +92,24 @@ export {
|
|
|
58
92
|
type ExperienceListParams,
|
|
59
93
|
type ExperienceAttachParams,
|
|
60
94
|
type ExperienceDetachParams,
|
|
95
|
+
type ExperienceDuplicateParams,
|
|
61
96
|
type ExperienceListResponsesCursorPage,
|
|
62
97
|
} from './experiences';
|
|
63
98
|
export {
|
|
64
99
|
ForumPosts,
|
|
65
100
|
type ForumPostListResponse,
|
|
66
101
|
type ForumPostCreateParams,
|
|
102
|
+
type ForumPostUpdateParams,
|
|
67
103
|
type ForumPostListParams,
|
|
68
104
|
type ForumPostListResponsesCursorPage,
|
|
69
105
|
} from './forum-posts';
|
|
106
|
+
export {
|
|
107
|
+
Forums,
|
|
108
|
+
type ForumListResponse,
|
|
109
|
+
type ForumUpdateParams,
|
|
110
|
+
type ForumListParams,
|
|
111
|
+
type ForumListResponsesCursorPage,
|
|
112
|
+
} from './forums';
|
|
70
113
|
export {
|
|
71
114
|
Invoices,
|
|
72
115
|
type InvoiceCreateResponse,
|
|
@@ -75,6 +118,13 @@ export {
|
|
|
75
118
|
type InvoiceListParams,
|
|
76
119
|
} from './invoices';
|
|
77
120
|
export { LedgerAccounts, type LedgerAccountRetrieveResponse } from './ledger-accounts';
|
|
121
|
+
export {
|
|
122
|
+
Members,
|
|
123
|
+
type MemberRetrieveResponse,
|
|
124
|
+
type MemberListResponse,
|
|
125
|
+
type MemberListParams,
|
|
126
|
+
type MemberListResponsesCursorPage,
|
|
127
|
+
} from './members';
|
|
78
128
|
export {
|
|
79
129
|
Memberships,
|
|
80
130
|
type MembershipListResponse,
|
|
@@ -88,11 +138,15 @@ export {
|
|
|
88
138
|
Messages,
|
|
89
139
|
type MessageListResponse,
|
|
90
140
|
type MessageCreateParams,
|
|
141
|
+
type MessageUpdateParams,
|
|
91
142
|
type MessageListParams,
|
|
92
143
|
type MessageListResponsesCursorPage,
|
|
93
144
|
} from './messages';
|
|
94
145
|
export {
|
|
95
146
|
Payments,
|
|
147
|
+
type BillingReasons,
|
|
148
|
+
type CardBrands,
|
|
149
|
+
type PaymentMethodTypes,
|
|
96
150
|
type PaymentListResponse,
|
|
97
151
|
type PaymentListParams,
|
|
98
152
|
type PaymentRefundParams,
|
|
@@ -114,6 +168,17 @@ export {
|
|
|
114
168
|
type ProductUpdateParams,
|
|
115
169
|
type ProductListParams,
|
|
116
170
|
} from './products';
|
|
171
|
+
export {
|
|
172
|
+
PromoCodes,
|
|
173
|
+
type PromoCode,
|
|
174
|
+
type PromoCodeStatus,
|
|
175
|
+
type PromoDuration,
|
|
176
|
+
type PromoCodeListResponse,
|
|
177
|
+
type PromoCodeDeleteResponse,
|
|
178
|
+
type PromoCodeCreateParams,
|
|
179
|
+
type PromoCodeListParams,
|
|
180
|
+
type PromoCodeListResponsesCursorPage,
|
|
181
|
+
} from './promo-codes';
|
|
117
182
|
export {
|
|
118
183
|
Reactions,
|
|
119
184
|
type ReactionListResponse,
|
|
@@ -121,6 +186,14 @@ export {
|
|
|
121
186
|
type ReactionListParams,
|
|
122
187
|
type ReactionListResponsesCursorPage,
|
|
123
188
|
} from './reactions';
|
|
189
|
+
export {
|
|
190
|
+
Reviews,
|
|
191
|
+
type ReviewStatus,
|
|
192
|
+
type ReviewRetrieveResponse,
|
|
193
|
+
type ReviewListResponse,
|
|
194
|
+
type ReviewListParams,
|
|
195
|
+
type ReviewListResponsesCursorPage,
|
|
196
|
+
} from './reviews';
|
|
124
197
|
export {
|
|
125
198
|
Shipments,
|
|
126
199
|
type ShipmentListResponse,
|
|
@@ -154,5 +227,15 @@ export {
|
|
|
154
227
|
type InvoicePaidWebhookEvent,
|
|
155
228
|
type InvoicePastDueWebhookEvent,
|
|
156
229
|
type InvoiceVoidedWebhookEvent,
|
|
230
|
+
type MembershipActivatedWebhookEvent,
|
|
231
|
+
type MembershipDeactivatedWebhookEvent,
|
|
232
|
+
type EntryCreatedWebhookEvent,
|
|
233
|
+
type EntryApprovedWebhookEvent,
|
|
234
|
+
type EntryDeniedWebhookEvent,
|
|
235
|
+
type EntryDeletedWebhookEvent,
|
|
236
|
+
type CourseLessonInteractionCompletedWebhookEvent,
|
|
237
|
+
type PaymentSucceededWebhookEvent,
|
|
238
|
+
type PaymentFailedWebhookEvent,
|
|
239
|
+
type PaymentPendingWebhookEvent,
|
|
157
240
|
type UnwrapWebhookEvent,
|
|
158
241
|
} from './webhooks';
|
|
@@ -206,7 +206,9 @@ export namespace InvoiceCreateParams {
|
|
|
206
206
|
expiration_days?: number | null;
|
|
207
207
|
|
|
208
208
|
/**
|
|
209
|
-
* An additional amount charged upon first purchase.
|
|
209
|
+
* An additional amount charged upon first purchase. Use only if a one time payment
|
|
210
|
+
* OR you want to charge an additional amount on top of the renewal price. Provided
|
|
211
|
+
* as a number in dollars. Eg: 10.43 for $10.43
|
|
210
212
|
*/
|
|
211
213
|
initial_price?: number | null;
|
|
212
214
|
|
|
@@ -226,7 +228,8 @@ export namespace InvoiceCreateParams {
|
|
|
226
228
|
release_method?: Shared.ReleaseMethod | null;
|
|
227
229
|
|
|
228
230
|
/**
|
|
229
|
-
* The amount the customer is charged every billing period.
|
|
231
|
+
* The amount the customer is charged every billing period. Use only if a recurring
|
|
232
|
+
* payment. Provided as a number in dollars. Eg: 10.43 for $10.43
|
|
230
233
|
*/
|
|
231
234
|
renewal_price?: number | null;
|
|
232
235
|
|
|
@@ -36,7 +36,19 @@ export interface LedgerAccountRetrieveResponse {
|
|
|
36
36
|
/**
|
|
37
37
|
* The different statuses a LedgerAccountAudit can be
|
|
38
38
|
*/
|
|
39
|
-
ledger_account_audit_status:
|
|
39
|
+
ledger_account_audit_status:
|
|
40
|
+
| 'pending'
|
|
41
|
+
| 'approved'
|
|
42
|
+
| 'reserves_imposed'
|
|
43
|
+
| 'suspended'
|
|
44
|
+
| 'ignored'
|
|
45
|
+
| 'rejected'
|
|
46
|
+
| 'requested_more_information'
|
|
47
|
+
| 'information_submitted'
|
|
48
|
+
| 'requested_tos_violation_correction'
|
|
49
|
+
| 'clawback_attempted'
|
|
50
|
+
| 'awaiting_sales_review'
|
|
51
|
+
| null;
|
|
40
52
|
|
|
41
53
|
/**
|
|
42
54
|
* The type of ledger account.
|