@whop/sdk 0.0.2 → 0.0.4
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 +55 -0
- package/client.d.mts +30 -12
- package/client.d.mts.map +1 -1
- package/client.d.ts +30 -12
- package/client.d.ts.map +1 -1
- package/client.js +19 -1
- package/client.js.map +1 -1
- package/client.mjs +21 -3
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/app-builds.d.mts +16 -13
- package/resources/app-builds.d.mts.map +1 -1
- package/resources/app-builds.d.ts +16 -13
- package/resources/app-builds.d.ts.map +1 -1
- package/resources/app-builds.js +1 -1
- package/resources/app-builds.mjs +1 -1
- package/resources/apps.d.mts +15 -10
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +15 -10
- package/resources/apps.d.ts.map +1 -1
- package/resources/checkout-configurations.d.mts +252 -140
- package/resources/checkout-configurations.d.mts.map +1 -1
- package/resources/checkout-configurations.d.ts +252 -140
- package/resources/checkout-configurations.d.ts.map +1 -1
- package/resources/checkout-configurations.js +6 -20
- package/resources/checkout-configurations.js.map +1 -1
- package/resources/checkout-configurations.mjs +6 -20
- package/resources/checkout-configurations.mjs.map +1 -1
- package/resources/companies.d.mts +157 -0
- package/resources/companies.d.mts.map +1 -1
- package/resources/companies.d.ts +157 -0
- package/resources/companies.d.ts.map +1 -1
- package/resources/companies.js +22 -0
- package/resources/companies.js.map +1 -1
- package/resources/companies.mjs +22 -0
- package/resources/companies.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-lesson-interactions.d.mts +2 -2
- package/resources/course-lesson-interactions.d.ts +2 -2
- package/resources/course-lesson-interactions.js +2 -2
- package/resources/course-lesson-interactions.mjs +2 -2
- package/resources/course-lessons.d.mts +563 -0
- package/resources/course-lessons.d.mts.map +1 -0
- package/resources/course-lessons.d.ts +563 -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/course-students.d.mts +187 -0
- package/resources/course-students.d.mts.map +1 -0
- package/resources/course-students.d.ts +187 -0
- package/resources/course-students.d.ts.map +1 -0
- package/resources/course-students.js +36 -0
- package/resources/course-students.js.map +1 -0
- package/resources/course-students.mjs +32 -0
- package/resources/course-students.mjs.map +1 -0
- package/resources/courses.d.mts +485 -0
- package/resources/courses.d.mts.map +1 -0
- package/resources/courses.d.ts +485 -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 +42 -11
- package/resources/experiences.d.mts.map +1 -1
- package/resources/experiences.d.ts +42 -11
- 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 +75 -10
- package/resources/forum-posts.d.mts.map +1 -1
- package/resources/forum-posts.d.ts +75 -10
- 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/index.d.mts +12 -6
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +12 -6
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +13 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +7 -1
- package/resources/index.mjs.map +1 -1
- package/resources/invoices.d.mts +529 -146
- package/resources/invoices.d.mts.map +1 -1
- package/resources/invoices.d.ts +529 -146
- package/resources/invoices.d.ts.map +1 -1
- package/resources/invoices.js +2 -24
- package/resources/invoices.js.map +1 -1
- package/resources/invoices.mjs +2 -24
- package/resources/invoices.mjs.map +1 -1
- package/resources/ledger-accounts.d.mts +1 -1
- package/resources/ledger-accounts.d.mts.map +1 -1
- package/resources/ledger-accounts.d.ts +1 -1
- package/resources/ledger-accounts.d.ts.map +1 -1
- package/resources/members.d.mts +4 -0
- package/resources/members.d.mts.map +1 -1
- package/resources/members.d.ts +4 -0
- package/resources/members.d.ts.map +1 -1
- 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 +57 -10
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +57 -10
- 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 +35 -13
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +35 -13
- package/resources/payments.d.ts.map +1 -1
- package/resources/plans.d.mts +161 -17
- package/resources/plans.d.mts.map +1 -1
- package/resources/plans.d.ts +161 -17
- package/resources/plans.d.ts.map +1 -1
- package/resources/plans.js.map +1 -1
- package/resources/plans.mjs.map +1 -1
- package/resources/products.d.mts +30 -33
- package/resources/products.d.mts.map +1 -1
- package/resources/products.d.ts +30 -33
- 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 +117 -14
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +117 -14
- package/resources/shared.d.ts.map +1 -1
- package/resources/transfers.d.mts +12 -0
- package/resources/transfers.d.mts.map +1 -1
- package/resources/transfers.d.ts +12 -0
- package/resources/transfers.d.ts.map +1 -1
- package/src/client.ts +166 -11
- package/src/resources/app-builds.ts +19 -14
- package/src/resources/apps.ts +16 -11
- package/src/resources/checkout-configurations.ts +278 -143
- package/src/resources/companies.ts +196 -0
- package/src/resources/course-chapters.ts +236 -0
- package/src/resources/course-lesson-interactions.ts +2 -2
- package/src/resources/course-lessons.ts +699 -0
- package/src/resources/course-students.ts +238 -0
- package/src/resources/courses.ts +622 -0
- package/src/resources/experiences.ts +54 -11
- package/src/resources/forum-posts.ts +95 -10
- package/src/resources/index.ts +73 -2
- package/src/resources/invoices.ts +620 -149
- package/src/resources/ledger-accounts.ts +13 -1
- package/src/resources/members.ts +5 -0
- package/src/resources/memberships.ts +31 -6
- package/src/resources/messages.ts +74 -10
- package/src/resources/payments.ts +146 -19
- package/src/resources/plans.ts +184 -17
- package/src/resources/products.ts +36 -37
- package/src/resources/promo-codes.ts +490 -0
- package/src/resources/reviews.ts +348 -0
- package/src/resources/shared.ts +128 -14
- package/src/resources/transfers.ts +10 -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/client.ts
CHANGED
|
@@ -55,11 +55,58 @@ import {
|
|
|
55
55
|
CheckoutConfigurationListResponsesCursorPage,
|
|
56
56
|
CheckoutConfigurations,
|
|
57
57
|
} from './resources/checkout-configurations';
|
|
58
|
-
import {
|
|
58
|
+
import {
|
|
59
|
+
Companies,
|
|
60
|
+
CompanyCreateParams,
|
|
61
|
+
CompanyListParams,
|
|
62
|
+
CompanyListResponse,
|
|
63
|
+
CompanyListResponsesCursorPage,
|
|
64
|
+
} from './resources/companies';
|
|
65
|
+
import {
|
|
66
|
+
CourseChapter,
|
|
67
|
+
CourseChapterCreateParams,
|
|
68
|
+
CourseChapterDeleteResponse,
|
|
69
|
+
CourseChapterListParams,
|
|
70
|
+
CourseChapterListResponse,
|
|
71
|
+
CourseChapterListResponsesCursorPage,
|
|
72
|
+
CourseChapterUpdateParams,
|
|
73
|
+
CourseChapters,
|
|
74
|
+
} from './resources/course-chapters';
|
|
59
75
|
import {
|
|
60
76
|
CourseLessonInteractionListParams,
|
|
61
77
|
CourseLessonInteractions,
|
|
62
78
|
} from './resources/course-lesson-interactions';
|
|
79
|
+
import {
|
|
80
|
+
AssessmentQuestionTypes,
|
|
81
|
+
CourseLessonCreateParams,
|
|
82
|
+
CourseLessonDeleteResponse,
|
|
83
|
+
CourseLessonListParams,
|
|
84
|
+
CourseLessonListResponse,
|
|
85
|
+
CourseLessonListResponsesCursorPage,
|
|
86
|
+
CourseLessonUpdateParams,
|
|
87
|
+
CourseLessons,
|
|
88
|
+
Lesson,
|
|
89
|
+
LessonTypes,
|
|
90
|
+
LessonVisibilities,
|
|
91
|
+
} from './resources/course-lessons';
|
|
92
|
+
import {
|
|
93
|
+
CourseStudentListParams,
|
|
94
|
+
CourseStudentListResponse,
|
|
95
|
+
CourseStudentListResponsesCursorPage,
|
|
96
|
+
CourseStudentRetrieveResponse,
|
|
97
|
+
CourseStudents,
|
|
98
|
+
} from './resources/course-students';
|
|
99
|
+
import {
|
|
100
|
+
Course,
|
|
101
|
+
CourseCreateParams,
|
|
102
|
+
CourseDeleteResponse,
|
|
103
|
+
CourseListParams,
|
|
104
|
+
CourseListResponse,
|
|
105
|
+
CourseListResponsesCursorPage,
|
|
106
|
+
CourseUpdateParams,
|
|
107
|
+
Courses,
|
|
108
|
+
Languages,
|
|
109
|
+
} from './resources/courses';
|
|
63
110
|
import {
|
|
64
111
|
Entries,
|
|
65
112
|
EntryApproveResponse,
|
|
@@ -72,6 +119,7 @@ import {
|
|
|
72
119
|
ExperienceCreateParams,
|
|
73
120
|
ExperienceDeleteResponse,
|
|
74
121
|
ExperienceDetachParams,
|
|
122
|
+
ExperienceDuplicateParams,
|
|
75
123
|
ExperienceListParams,
|
|
76
124
|
ExperienceListResponse,
|
|
77
125
|
ExperienceListResponsesCursorPage,
|
|
@@ -83,6 +131,7 @@ import {
|
|
|
83
131
|
ForumPostListParams,
|
|
84
132
|
ForumPostListResponse,
|
|
85
133
|
ForumPostListResponsesCursorPage,
|
|
134
|
+
ForumPostUpdateParams,
|
|
86
135
|
ForumPosts,
|
|
87
136
|
} from './resources/forum-posts';
|
|
88
137
|
import {
|
|
@@ -92,13 +141,7 @@ import {
|
|
|
92
141
|
ForumUpdateParams,
|
|
93
142
|
Forums,
|
|
94
143
|
} from './resources/forums';
|
|
95
|
-
import {
|
|
96
|
-
InvoiceCreateParams,
|
|
97
|
-
InvoiceCreateResponse,
|
|
98
|
-
InvoiceListParams,
|
|
99
|
-
InvoiceVoidResponse,
|
|
100
|
-
Invoices,
|
|
101
|
-
} from './resources/invoices';
|
|
144
|
+
import { InvoiceCreateParams, InvoiceListParams, InvoiceVoidResponse, Invoices } from './resources/invoices';
|
|
102
145
|
import { LedgerAccountRetrieveResponse, LedgerAccounts } from './resources/ledger-accounts';
|
|
103
146
|
import {
|
|
104
147
|
MemberListParams,
|
|
@@ -121,12 +164,16 @@ import {
|
|
|
121
164
|
MessageListParams,
|
|
122
165
|
MessageListResponse,
|
|
123
166
|
MessageListResponsesCursorPage,
|
|
167
|
+
MessageUpdateParams,
|
|
124
168
|
Messages,
|
|
125
169
|
} from './resources/messages';
|
|
126
170
|
import {
|
|
171
|
+
BillingReasons,
|
|
172
|
+
CardBrands,
|
|
127
173
|
PaymentListParams,
|
|
128
174
|
PaymentListResponse,
|
|
129
175
|
PaymentListResponsesCursorPage,
|
|
176
|
+
PaymentMethodTypes,
|
|
130
177
|
PaymentRefundParams,
|
|
131
178
|
Payments,
|
|
132
179
|
} from './resources/payments';
|
|
@@ -146,6 +193,17 @@ import {
|
|
|
146
193
|
ProductUpdateParams,
|
|
147
194
|
Products,
|
|
148
195
|
} from './resources/products';
|
|
196
|
+
import {
|
|
197
|
+
PromoCode,
|
|
198
|
+
PromoCodeCreateParams,
|
|
199
|
+
PromoCodeDeleteResponse,
|
|
200
|
+
PromoCodeListParams,
|
|
201
|
+
PromoCodeListResponse,
|
|
202
|
+
PromoCodeListResponsesCursorPage,
|
|
203
|
+
PromoCodeStatus,
|
|
204
|
+
PromoCodes,
|
|
205
|
+
PromoDuration,
|
|
206
|
+
} from './resources/promo-codes';
|
|
149
207
|
import {
|
|
150
208
|
ReactionCreateParams,
|
|
151
209
|
ReactionListParams,
|
|
@@ -153,6 +211,14 @@ import {
|
|
|
153
211
|
ReactionListResponsesCursorPage,
|
|
154
212
|
Reactions,
|
|
155
213
|
} from './resources/reactions';
|
|
214
|
+
import {
|
|
215
|
+
ReviewListParams,
|
|
216
|
+
ReviewListResponse,
|
|
217
|
+
ReviewListResponsesCursorPage,
|
|
218
|
+
ReviewRetrieveResponse,
|
|
219
|
+
ReviewStatus,
|
|
220
|
+
Reviews,
|
|
221
|
+
} from './resources/reviews';
|
|
156
222
|
import {
|
|
157
223
|
ShipmentCreateParams,
|
|
158
224
|
ShipmentListParams,
|
|
@@ -420,7 +486,7 @@ export class Whop {
|
|
|
420
486
|
}
|
|
421
487
|
|
|
422
488
|
protected stringifyQuery(query: Record<string, unknown>): string {
|
|
423
|
-
return qs.stringify(query, { arrayFormat: '
|
|
489
|
+
return qs.stringify(query, { arrayFormat: 'brackets' });
|
|
424
490
|
}
|
|
425
491
|
|
|
426
492
|
private getUserAgent(): string {
|
|
@@ -954,6 +1020,12 @@ export class Whop {
|
|
|
954
1020
|
reactions: API.Reactions = new API.Reactions(this);
|
|
955
1021
|
members: API.Members = new API.Members(this);
|
|
956
1022
|
forums: API.Forums = new API.Forums(this);
|
|
1023
|
+
promoCodes: API.PromoCodes = new API.PromoCodes(this);
|
|
1024
|
+
courses: API.Courses = new API.Courses(this);
|
|
1025
|
+
courseChapters: API.CourseChapters = new API.CourseChapters(this);
|
|
1026
|
+
courseLessons: API.CourseLessons = new API.CourseLessons(this);
|
|
1027
|
+
reviews: API.Reviews = new API.Reviews(this);
|
|
1028
|
+
courseStudents: API.CourseStudents = new API.CourseStudents(this);
|
|
957
1029
|
}
|
|
958
1030
|
|
|
959
1031
|
Whop.Apps = Apps;
|
|
@@ -981,6 +1053,12 @@ Whop.Experiences = Experiences;
|
|
|
981
1053
|
Whop.Reactions = Reactions;
|
|
982
1054
|
Whop.Members = Members;
|
|
983
1055
|
Whop.Forums = Forums;
|
|
1056
|
+
Whop.PromoCodes = PromoCodes;
|
|
1057
|
+
Whop.Courses = Courses;
|
|
1058
|
+
Whop.CourseChapters = CourseChapters;
|
|
1059
|
+
Whop.CourseLessons = CourseLessons;
|
|
1060
|
+
Whop.Reviews = Reviews;
|
|
1061
|
+
Whop.CourseStudents = CourseStudents;
|
|
984
1062
|
|
|
985
1063
|
export declare namespace Whop {
|
|
986
1064
|
export type RequestOptions = Opts.RequestOptions;
|
|
@@ -999,7 +1077,6 @@ export declare namespace Whop {
|
|
|
999
1077
|
|
|
1000
1078
|
export {
|
|
1001
1079
|
Invoices as Invoices,
|
|
1002
|
-
type InvoiceCreateResponse as InvoiceCreateResponse,
|
|
1003
1080
|
type InvoiceVoidResponse as InvoiceVoidResponse,
|
|
1004
1081
|
type InvoiceCreateParams as InvoiceCreateParams,
|
|
1005
1082
|
type InvoiceListParams as InvoiceListParams,
|
|
@@ -1018,7 +1095,13 @@ export declare namespace Whop {
|
|
|
1018
1095
|
type ProductListParams as ProductListParams,
|
|
1019
1096
|
};
|
|
1020
1097
|
|
|
1021
|
-
export {
|
|
1098
|
+
export {
|
|
1099
|
+
Companies as Companies,
|
|
1100
|
+
type CompanyListResponse as CompanyListResponse,
|
|
1101
|
+
type CompanyListResponsesCursorPage as CompanyListResponsesCursorPage,
|
|
1102
|
+
type CompanyCreateParams as CompanyCreateParams,
|
|
1103
|
+
type CompanyListParams as CompanyListParams,
|
|
1104
|
+
};
|
|
1022
1105
|
|
|
1023
1106
|
export {
|
|
1024
1107
|
Webhooks as Webhooks,
|
|
@@ -1062,6 +1145,7 @@ export declare namespace Whop {
|
|
|
1062
1145
|
type ForumPostListResponse as ForumPostListResponse,
|
|
1063
1146
|
type ForumPostListResponsesCursorPage as ForumPostListResponsesCursorPage,
|
|
1064
1147
|
type ForumPostCreateParams as ForumPostCreateParams,
|
|
1148
|
+
type ForumPostUpdateParams as ForumPostUpdateParams,
|
|
1065
1149
|
type ForumPostListParams as ForumPostListParams,
|
|
1066
1150
|
};
|
|
1067
1151
|
|
|
@@ -1125,6 +1209,7 @@ export declare namespace Whop {
|
|
|
1125
1209
|
type MessageListResponse as MessageListResponse,
|
|
1126
1210
|
type MessageListResponsesCursorPage as MessageListResponsesCursorPage,
|
|
1127
1211
|
type MessageCreateParams as MessageCreateParams,
|
|
1212
|
+
type MessageUpdateParams as MessageUpdateParams,
|
|
1128
1213
|
type MessageListParams as MessageListParams,
|
|
1129
1214
|
};
|
|
1130
1215
|
|
|
@@ -1145,6 +1230,9 @@ export declare namespace Whop {
|
|
|
1145
1230
|
|
|
1146
1231
|
export {
|
|
1147
1232
|
Payments as Payments,
|
|
1233
|
+
type BillingReasons as BillingReasons,
|
|
1234
|
+
type CardBrands as CardBrands,
|
|
1235
|
+
type PaymentMethodTypes as PaymentMethodTypes,
|
|
1148
1236
|
type PaymentListResponse as PaymentListResponse,
|
|
1149
1237
|
type PaymentListResponsesCursorPage as PaymentListResponsesCursorPage,
|
|
1150
1238
|
type PaymentListParams as PaymentListParams,
|
|
@@ -1169,6 +1257,7 @@ export declare namespace Whop {
|
|
|
1169
1257
|
type ExperienceListParams as ExperienceListParams,
|
|
1170
1258
|
type ExperienceAttachParams as ExperienceAttachParams,
|
|
1171
1259
|
type ExperienceDetachParams as ExperienceDetachParams,
|
|
1260
|
+
type ExperienceDuplicateParams as ExperienceDuplicateParams,
|
|
1172
1261
|
};
|
|
1173
1262
|
|
|
1174
1263
|
export {
|
|
@@ -1195,6 +1284,72 @@ export declare namespace Whop {
|
|
|
1195
1284
|
type ForumListParams as ForumListParams,
|
|
1196
1285
|
};
|
|
1197
1286
|
|
|
1287
|
+
export {
|
|
1288
|
+
PromoCodes as PromoCodes,
|
|
1289
|
+
type PromoCode as PromoCode,
|
|
1290
|
+
type PromoCodeStatus as PromoCodeStatus,
|
|
1291
|
+
type PromoDuration as PromoDuration,
|
|
1292
|
+
type PromoCodeListResponse as PromoCodeListResponse,
|
|
1293
|
+
type PromoCodeDeleteResponse as PromoCodeDeleteResponse,
|
|
1294
|
+
type PromoCodeListResponsesCursorPage as PromoCodeListResponsesCursorPage,
|
|
1295
|
+
type PromoCodeCreateParams as PromoCodeCreateParams,
|
|
1296
|
+
type PromoCodeListParams as PromoCodeListParams,
|
|
1297
|
+
};
|
|
1298
|
+
|
|
1299
|
+
export {
|
|
1300
|
+
Courses as Courses,
|
|
1301
|
+
type Course as Course,
|
|
1302
|
+
type Languages as Languages,
|
|
1303
|
+
type CourseListResponse as CourseListResponse,
|
|
1304
|
+
type CourseDeleteResponse as CourseDeleteResponse,
|
|
1305
|
+
type CourseListResponsesCursorPage as CourseListResponsesCursorPage,
|
|
1306
|
+
type CourseCreateParams as CourseCreateParams,
|
|
1307
|
+
type CourseUpdateParams as CourseUpdateParams,
|
|
1308
|
+
type CourseListParams as CourseListParams,
|
|
1309
|
+
};
|
|
1310
|
+
|
|
1311
|
+
export {
|
|
1312
|
+
CourseChapters as CourseChapters,
|
|
1313
|
+
type CourseChapter as CourseChapter,
|
|
1314
|
+
type CourseChapterListResponse as CourseChapterListResponse,
|
|
1315
|
+
type CourseChapterDeleteResponse as CourseChapterDeleteResponse,
|
|
1316
|
+
type CourseChapterListResponsesCursorPage as CourseChapterListResponsesCursorPage,
|
|
1317
|
+
type CourseChapterCreateParams as CourseChapterCreateParams,
|
|
1318
|
+
type CourseChapterUpdateParams as CourseChapterUpdateParams,
|
|
1319
|
+
type CourseChapterListParams as CourseChapterListParams,
|
|
1320
|
+
};
|
|
1321
|
+
|
|
1322
|
+
export {
|
|
1323
|
+
CourseLessons as CourseLessons,
|
|
1324
|
+
type AssessmentQuestionTypes as AssessmentQuestionTypes,
|
|
1325
|
+
type Lesson as Lesson,
|
|
1326
|
+
type LessonTypes as LessonTypes,
|
|
1327
|
+
type LessonVisibilities as LessonVisibilities,
|
|
1328
|
+
type CourseLessonListResponse as CourseLessonListResponse,
|
|
1329
|
+
type CourseLessonDeleteResponse as CourseLessonDeleteResponse,
|
|
1330
|
+
type CourseLessonListResponsesCursorPage as CourseLessonListResponsesCursorPage,
|
|
1331
|
+
type CourseLessonCreateParams as CourseLessonCreateParams,
|
|
1332
|
+
type CourseLessonUpdateParams as CourseLessonUpdateParams,
|
|
1333
|
+
type CourseLessonListParams as CourseLessonListParams,
|
|
1334
|
+
};
|
|
1335
|
+
|
|
1336
|
+
export {
|
|
1337
|
+
Reviews as Reviews,
|
|
1338
|
+
type ReviewStatus as ReviewStatus,
|
|
1339
|
+
type ReviewRetrieveResponse as ReviewRetrieveResponse,
|
|
1340
|
+
type ReviewListResponse as ReviewListResponse,
|
|
1341
|
+
type ReviewListResponsesCursorPage as ReviewListResponsesCursorPage,
|
|
1342
|
+
type ReviewListParams as ReviewListParams,
|
|
1343
|
+
};
|
|
1344
|
+
|
|
1345
|
+
export {
|
|
1346
|
+
CourseStudents as CourseStudents,
|
|
1347
|
+
type CourseStudentRetrieveResponse as CourseStudentRetrieveResponse,
|
|
1348
|
+
type CourseStudentListResponse as CourseStudentListResponse,
|
|
1349
|
+
type CourseStudentListResponsesCursorPage as CourseStudentListResponsesCursorPage,
|
|
1350
|
+
type CourseStudentListParams as CourseStudentListParams,
|
|
1351
|
+
};
|
|
1352
|
+
|
|
1198
1353
|
export type AccessLevel = API.AccessLevel;
|
|
1199
1354
|
export type AccessPassType = API.AccessPassType;
|
|
1200
1355
|
export type App = API.App;
|
|
@@ -18,7 +18,7 @@ export class AppBuilds extends APIResource {
|
|
|
18
18
|
* @example
|
|
19
19
|
* ```ts
|
|
20
20
|
* const appBuild = await client.appBuilds.create({
|
|
21
|
-
* attachment: {},
|
|
21
|
+
* attachment: { direct_upload_id: 'direct_upload_id' },
|
|
22
22
|
* checksum: 'checksum',
|
|
23
23
|
* platform: 'ios',
|
|
24
24
|
* });
|
|
@@ -150,7 +150,9 @@ export interface AppBuildCreateParams {
|
|
|
150
150
|
* format. The zip should contain at least one main_js_bundle.hbc file and
|
|
151
151
|
* optionally an assets folder next to it.
|
|
152
152
|
*/
|
|
153
|
-
attachment:
|
|
153
|
+
attachment:
|
|
154
|
+
| AppBuildCreateParams.AttachmentInputWithDirectUploadID
|
|
155
|
+
| AppBuildCreateParams.AttachmentInputWithID;
|
|
154
156
|
|
|
155
157
|
/**
|
|
156
158
|
* Checksum of the app build file. This is generated by the client and used to
|
|
@@ -179,24 +181,27 @@ export interface AppBuildCreateParams {
|
|
|
179
181
|
|
|
180
182
|
export namespace AppBuildCreateParams {
|
|
181
183
|
/**
|
|
182
|
-
*
|
|
183
|
-
* format. The zip should contain at least one main_js_bundle.hbc file and
|
|
184
|
-
* optionally an assets folder next to it.
|
|
184
|
+
* Input for an attachment
|
|
185
185
|
*/
|
|
186
|
-
export interface
|
|
187
|
-
/**
|
|
188
|
-
* The ID of an existing attachment object. Use this when updating a resource and
|
|
189
|
-
* keeping a subset of the attachments. Don't use this unless you know what you're
|
|
190
|
-
* doing.
|
|
191
|
-
*/
|
|
192
|
-
id?: string | null;
|
|
193
|
-
|
|
186
|
+
export interface AttachmentInputWithDirectUploadID {
|
|
194
187
|
/**
|
|
195
188
|
* This ID should be used the first time you upload an attachment. It is the ID of
|
|
196
189
|
* the direct upload that was created when uploading the file to S3 via the
|
|
197
190
|
* mediaDirectUpload mutation.
|
|
198
191
|
*/
|
|
199
|
-
direct_upload_id
|
|
192
|
+
direct_upload_id: string;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Input for an attachment
|
|
197
|
+
*/
|
|
198
|
+
export interface AttachmentInputWithID {
|
|
199
|
+
/**
|
|
200
|
+
* The ID of an existing attachment object. Use this when updating a resource and
|
|
201
|
+
* keeping a subset of the attachments. Don't use this unless you know what you're
|
|
202
|
+
* doing.
|
|
203
|
+
*/
|
|
204
|
+
id: string;
|
|
200
205
|
}
|
|
201
206
|
}
|
|
202
207
|
|
package/src/resources/apps.ts
CHANGED
|
@@ -269,7 +269,7 @@ export interface AppUpdateParams {
|
|
|
269
269
|
/**
|
|
270
270
|
* The icon for the app
|
|
271
271
|
*/
|
|
272
|
-
icon?: AppUpdateParams.
|
|
272
|
+
icon?: AppUpdateParams.AttachmentInputWithDirectUploadID | AppUpdateParams.AttachmentInputWithID | null;
|
|
273
273
|
|
|
274
274
|
/**
|
|
275
275
|
* The name of the app
|
|
@@ -289,22 +289,27 @@ export interface AppUpdateParams {
|
|
|
289
289
|
|
|
290
290
|
export namespace AppUpdateParams {
|
|
291
291
|
/**
|
|
292
|
-
*
|
|
292
|
+
* Input for an attachment
|
|
293
293
|
*/
|
|
294
|
-
export interface
|
|
295
|
-
/**
|
|
296
|
-
* The ID of an existing attachment object. Use this when updating a resource and
|
|
297
|
-
* keeping a subset of the attachments. Don't use this unless you know what you're
|
|
298
|
-
* doing.
|
|
299
|
-
*/
|
|
300
|
-
id?: string | null;
|
|
301
|
-
|
|
294
|
+
export interface AttachmentInputWithDirectUploadID {
|
|
302
295
|
/**
|
|
303
296
|
* This ID should be used the first time you upload an attachment. It is the ID of
|
|
304
297
|
* the direct upload that was created when uploading the file to S3 via the
|
|
305
298
|
* mediaDirectUpload mutation.
|
|
306
299
|
*/
|
|
307
|
-
direct_upload_id
|
|
300
|
+
direct_upload_id: string;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* Input for an attachment
|
|
305
|
+
*/
|
|
306
|
+
export interface AttachmentInputWithID {
|
|
307
|
+
/**
|
|
308
|
+
* The ID of an existing attachment object. Use this when updating a resource and
|
|
309
|
+
* keeping a subset of the attachments. Don't use this unless you know what you're
|
|
310
|
+
* doing.
|
|
311
|
+
*/
|
|
312
|
+
id: string;
|
|
308
313
|
}
|
|
309
314
|
}
|
|
310
315
|
|