@burdenoff/sdk-libs 2026.627.2 → 2026.627.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/dist/modules/artistrybase/index.cjs +351 -0
- package/dist/modules/artistrybase/index.d.cts +469 -0
- package/dist/modules/artistrybase/index.d.ts +469 -0
- package/dist/modules/artistrybase/index.js +351 -0
- package/dist/modules/brainyrich/index.cjs +355 -0
- package/dist/modules/brainyrich/index.d.cts +483 -0
- package/dist/modules/brainyrich/index.d.ts +483 -0
- package/dist/modules/brainyrich/index.js +355 -0
- package/dist/modules/buildmyiq/index.cjs +259 -0
- package/dist/modules/buildmyiq/index.d.cts +384 -0
- package/dist/modules/buildmyiq/index.d.ts +384 -0
- package/dist/modules/buildmyiq/index.js +259 -0
- package/dist/modules/collabkin/index.cjs +238 -0
- package/dist/modules/collabkin/index.d.cts +340 -0
- package/dist/modules/collabkin/index.d.ts +340 -0
- package/dist/modules/collabkin/index.js +238 -0
- package/dist/modules/comradecircle/index.cjs +311 -0
- package/dist/modules/comradecircle/index.d.cts +390 -0
- package/dist/modules/comradecircle/index.d.ts +390 -0
- package/dist/modules/comradecircle/index.js +311 -0
- package/dist/modules/cosmicintersection/index.cjs +340 -0
- package/dist/modules/cosmicintersection/index.d.cts +450 -0
- package/dist/modules/cosmicintersection/index.d.ts +450 -0
- package/dist/modules/cosmicintersection/index.js +340 -0
- package/dist/modules/ecoimpacthub/index.cjs +350 -0
- package/dist/modules/ecoimpacthub/index.d.cts +478 -0
- package/dist/modules/ecoimpacthub/index.d.ts +478 -0
- package/dist/modules/ecoimpacthub/index.js +350 -0
- package/dist/modules/govcitizenhub/index.cjs +296 -0
- package/dist/modules/govcitizenhub/index.d.cts +349 -0
- package/dist/modules/govcitizenhub/index.d.ts +349 -0
- package/dist/modules/govcitizenhub/index.js +296 -0
- package/dist/modules/intelwatchtower/index.cjs +406 -0
- package/dist/modules/intelwatchtower/index.d.cts +486 -0
- package/dist/modules/intelwatchtower/index.d.ts +486 -0
- package/dist/modules/intelwatchtower/index.js +406 -0
- package/dist/modules/manufacturedops/index.cjs +335 -0
- package/dist/modules/manufacturedops/index.d.cts +466 -0
- package/dist/modules/manufacturedops/index.d.ts +466 -0
- package/dist/modules/manufacturedops/index.js +335 -0
- package/package.json +1 -1
|
@@ -0,0 +1,384 @@
|
|
|
1
|
+
import { J as Json, S as SdkModule } from '../../module-JDbvil5h.js';
|
|
2
|
+
import 'graphql-request';
|
|
3
|
+
|
|
4
|
+
type BuiAssessmentStatus = 'ARCHIVED' | 'DRAFT' | 'PUBLISHED';
|
|
5
|
+
type BuiAssessmentType = 'ASSIGNMENT' | 'EXAM' | 'PRACTICAL' | 'QUIZ' | 'SURVEY';
|
|
6
|
+
type BuiCertificateStatus = 'EXPIRED' | 'ISSUED' | 'REVOKED';
|
|
7
|
+
type BuiCohortStatus = 'ACTIVE' | 'CANCELLED' | 'COMPLETED' | 'ENROLLING' | 'SCHEDULED';
|
|
8
|
+
type BuiCourseLevel = 'ADVANCED' | 'BEGINNER' | 'EXPERT' | 'INTERMEDIATE';
|
|
9
|
+
type BuiCourseStatus = 'ARCHIVED' | 'DRAFT' | 'IN_REVIEW' | 'PUBLISHED';
|
|
10
|
+
type BuiEnrollmentStatus = 'COMPLETED' | 'DROPPED' | 'ENROLLED' | 'EXPIRED' | 'IN_PROGRESS';
|
|
11
|
+
type BuiLessonType = 'ARTICLE' | 'ASSIGNMENT' | 'INTERACTIVE' | 'LIVE_SESSION' | 'QUIZ' | 'VIDEO';
|
|
12
|
+
type BuiProgressStatus = 'COMPLETED' | 'IN_PROGRESS' | 'NOT_STARTED';
|
|
13
|
+
type BuiQuestionType = 'CODE' | 'ESSAY' | 'MULTIPLE_CHOICE' | 'SHORT_ANSWER' | 'SINGLE_CHOICE' | 'TRUE_FALSE';
|
|
14
|
+
type BuiSkillCategory = 'BUSINESS' | 'COGNITIVE' | 'CREATIVE' | 'LANGUAGE' | 'SOCIAL' | 'TECHNICAL';
|
|
15
|
+
type BuiSubmissionStatus = 'GRADED' | 'GRADING' | 'IN_PROGRESS' | 'RETURNED' | 'SUBMITTED';
|
|
16
|
+
interface BuiFileRef {
|
|
17
|
+
id: string;
|
|
18
|
+
}
|
|
19
|
+
interface BuiSkill {
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
description?: string | null;
|
|
23
|
+
category: BuiSkillCategory;
|
|
24
|
+
isActive: boolean;
|
|
25
|
+
workspaceId: string;
|
|
26
|
+
createdAt: string;
|
|
27
|
+
updatedAt: string;
|
|
28
|
+
}
|
|
29
|
+
interface BuiLesson {
|
|
30
|
+
id: string;
|
|
31
|
+
title: string;
|
|
32
|
+
content?: string | null;
|
|
33
|
+
type: BuiLessonType;
|
|
34
|
+
courseId: string;
|
|
35
|
+
moduleId?: string | null;
|
|
36
|
+
position: number;
|
|
37
|
+
durationMin: number;
|
|
38
|
+
isPreview: boolean;
|
|
39
|
+
media?: BuiFileRef | null;
|
|
40
|
+
workspaceId: string;
|
|
41
|
+
createdAt: string;
|
|
42
|
+
updatedAt: string;
|
|
43
|
+
}
|
|
44
|
+
interface BuiModule {
|
|
45
|
+
id: string;
|
|
46
|
+
title: string;
|
|
47
|
+
description?: string | null;
|
|
48
|
+
courseId: string;
|
|
49
|
+
position: number;
|
|
50
|
+
lessons: BuiLesson[];
|
|
51
|
+
workspaceId: string;
|
|
52
|
+
createdAt: string;
|
|
53
|
+
updatedAt: string;
|
|
54
|
+
}
|
|
55
|
+
interface BuiCourse {
|
|
56
|
+
id: string;
|
|
57
|
+
title: string;
|
|
58
|
+
slug: string;
|
|
59
|
+
summary?: string | null;
|
|
60
|
+
description?: string | null;
|
|
61
|
+
level: BuiCourseLevel;
|
|
62
|
+
status: BuiCourseStatus;
|
|
63
|
+
language: string;
|
|
64
|
+
tags: string[];
|
|
65
|
+
estimatedHours: number;
|
|
66
|
+
isPublic: boolean;
|
|
67
|
+
instructorId?: string | null;
|
|
68
|
+
skillId?: string | null;
|
|
69
|
+
skill?: BuiSkill | null;
|
|
70
|
+
cover?: BuiFileRef | null;
|
|
71
|
+
modules: BuiModule[];
|
|
72
|
+
lessons: BuiLesson[];
|
|
73
|
+
publishedAt?: string | null;
|
|
74
|
+
workspaceId: string;
|
|
75
|
+
createdAt: string;
|
|
76
|
+
updatedAt: string;
|
|
77
|
+
}
|
|
78
|
+
interface BuiQuestion {
|
|
79
|
+
id: string;
|
|
80
|
+
assessmentId: string;
|
|
81
|
+
prompt: string;
|
|
82
|
+
type: BuiQuestionType;
|
|
83
|
+
options?: Json | null;
|
|
84
|
+
points: number;
|
|
85
|
+
position: number;
|
|
86
|
+
explanation?: string | null;
|
|
87
|
+
workspaceId: string;
|
|
88
|
+
createdAt: string;
|
|
89
|
+
updatedAt: string;
|
|
90
|
+
}
|
|
91
|
+
interface BuiAssessment {
|
|
92
|
+
id: string;
|
|
93
|
+
courseId: string;
|
|
94
|
+
title: string;
|
|
95
|
+
description?: string | null;
|
|
96
|
+
type: BuiAssessmentType;
|
|
97
|
+
status: BuiAssessmentStatus;
|
|
98
|
+
isGraded: boolean;
|
|
99
|
+
maxAttempts: number;
|
|
100
|
+
passingScore: number;
|
|
101
|
+
timeLimitMin: number;
|
|
102
|
+
questions: BuiQuestion[];
|
|
103
|
+
workspaceId: string;
|
|
104
|
+
createdAt: string;
|
|
105
|
+
updatedAt: string;
|
|
106
|
+
}
|
|
107
|
+
interface BuiSubmission {
|
|
108
|
+
id: string;
|
|
109
|
+
assessmentId: string;
|
|
110
|
+
learnerId: string;
|
|
111
|
+
enrollmentId?: string | null;
|
|
112
|
+
attempt: number;
|
|
113
|
+
status: BuiSubmissionStatus;
|
|
114
|
+
answers?: Json | null;
|
|
115
|
+
score?: number | null;
|
|
116
|
+
passed?: boolean | null;
|
|
117
|
+
feedback?: string | null;
|
|
118
|
+
gradedAt?: string | null;
|
|
119
|
+
gradedById?: string | null;
|
|
120
|
+
submittedAt?: string | null;
|
|
121
|
+
workspaceId: string;
|
|
122
|
+
createdAt: string;
|
|
123
|
+
updatedAt: string;
|
|
124
|
+
}
|
|
125
|
+
interface BuiCohort {
|
|
126
|
+
id: string;
|
|
127
|
+
courseId: string;
|
|
128
|
+
name: string;
|
|
129
|
+
capacity: number;
|
|
130
|
+
status: BuiCohortStatus;
|
|
131
|
+
facilitatorId?: string | null;
|
|
132
|
+
startDate?: string | null;
|
|
133
|
+
endDate?: string | null;
|
|
134
|
+
workspaceId: string;
|
|
135
|
+
createdAt: string;
|
|
136
|
+
updatedAt: string;
|
|
137
|
+
}
|
|
138
|
+
interface BuiLessonProgress {
|
|
139
|
+
id: string;
|
|
140
|
+
enrollmentId: string;
|
|
141
|
+
lessonId: string;
|
|
142
|
+
status: BuiProgressStatus;
|
|
143
|
+
secondsSpent: number;
|
|
144
|
+
completedAt?: string | null;
|
|
145
|
+
workspaceId: string;
|
|
146
|
+
createdAt: string;
|
|
147
|
+
updatedAt: string;
|
|
148
|
+
}
|
|
149
|
+
interface BuiEnrollment {
|
|
150
|
+
id: string;
|
|
151
|
+
courseId: string;
|
|
152
|
+
learnerId: string;
|
|
153
|
+
cohortId?: string | null;
|
|
154
|
+
cohort?: BuiCohort | null;
|
|
155
|
+
status: BuiEnrollmentStatus;
|
|
156
|
+
progressPct: number;
|
|
157
|
+
lessonProgress: BuiLessonProgress[];
|
|
158
|
+
enrolledAt: string;
|
|
159
|
+
startedAt?: string | null;
|
|
160
|
+
completedAt?: string | null;
|
|
161
|
+
expiresAt?: string | null;
|
|
162
|
+
lastActiveAt?: string | null;
|
|
163
|
+
workspaceId: string;
|
|
164
|
+
createdAt: string;
|
|
165
|
+
updatedAt: string;
|
|
166
|
+
}
|
|
167
|
+
interface BuiCertificate {
|
|
168
|
+
id: string;
|
|
169
|
+
courseId: string;
|
|
170
|
+
learnerId: string;
|
|
171
|
+
enrollmentId?: string | null;
|
|
172
|
+
serial: string;
|
|
173
|
+
status: BuiCertificateStatus;
|
|
174
|
+
finalScore?: number | null;
|
|
175
|
+
file?: BuiFileRef | null;
|
|
176
|
+
issuedAt: string;
|
|
177
|
+
expiresAt?: string | null;
|
|
178
|
+
revokedAt?: string | null;
|
|
179
|
+
workspaceId: string;
|
|
180
|
+
createdAt: string;
|
|
181
|
+
updatedAt: string;
|
|
182
|
+
}
|
|
183
|
+
interface BuiPageInfo {
|
|
184
|
+
cursor?: string | null;
|
|
185
|
+
hasMore: boolean;
|
|
186
|
+
}
|
|
187
|
+
interface BuiCourseConnection {
|
|
188
|
+
items: BuiCourse[];
|
|
189
|
+
pageInfo: BuiPageInfo;
|
|
190
|
+
}
|
|
191
|
+
interface BuiEnrollmentConnection {
|
|
192
|
+
items: BuiEnrollment[];
|
|
193
|
+
pageInfo: BuiPageInfo;
|
|
194
|
+
}
|
|
195
|
+
interface BuiSubmissionConnection {
|
|
196
|
+
items: BuiSubmission[];
|
|
197
|
+
pageInfo: BuiPageInfo;
|
|
198
|
+
}
|
|
199
|
+
interface BuiPaginationInput {
|
|
200
|
+
cursor?: string;
|
|
201
|
+
limit?: number;
|
|
202
|
+
offset?: number;
|
|
203
|
+
}
|
|
204
|
+
interface BuiCreateCourseInput {
|
|
205
|
+
slug: string;
|
|
206
|
+
title: string;
|
|
207
|
+
coverFileId?: string;
|
|
208
|
+
description?: string;
|
|
209
|
+
estimatedHours?: number;
|
|
210
|
+
instructorId?: string;
|
|
211
|
+
isPublic?: boolean;
|
|
212
|
+
language?: string;
|
|
213
|
+
level?: BuiCourseLevel;
|
|
214
|
+
skillId?: string;
|
|
215
|
+
summary?: string;
|
|
216
|
+
tags?: string[];
|
|
217
|
+
}
|
|
218
|
+
interface BuiUpdateCourseInput {
|
|
219
|
+
coverFileId?: string;
|
|
220
|
+
description?: string;
|
|
221
|
+
estimatedHours?: number;
|
|
222
|
+
instructorId?: string;
|
|
223
|
+
isPublic?: boolean;
|
|
224
|
+
language?: string;
|
|
225
|
+
level?: BuiCourseLevel;
|
|
226
|
+
skillId?: string;
|
|
227
|
+
summary?: string;
|
|
228
|
+
tags?: string[];
|
|
229
|
+
title?: string;
|
|
230
|
+
}
|
|
231
|
+
interface BuiCreateModuleInput {
|
|
232
|
+
courseId: string;
|
|
233
|
+
title: string;
|
|
234
|
+
description?: string;
|
|
235
|
+
position?: number;
|
|
236
|
+
}
|
|
237
|
+
interface BuiCreateLessonInput {
|
|
238
|
+
courseId: string;
|
|
239
|
+
title: string;
|
|
240
|
+
content?: string;
|
|
241
|
+
durationMin?: number;
|
|
242
|
+
isPreview?: boolean;
|
|
243
|
+
mediaFileId?: string;
|
|
244
|
+
moduleId?: string;
|
|
245
|
+
position?: number;
|
|
246
|
+
type?: BuiLessonType;
|
|
247
|
+
}
|
|
248
|
+
interface BuiCreateAssessmentInput {
|
|
249
|
+
courseId: string;
|
|
250
|
+
title: string;
|
|
251
|
+
description?: string;
|
|
252
|
+
isGraded?: boolean;
|
|
253
|
+
maxAttempts?: number;
|
|
254
|
+
passingScore?: number;
|
|
255
|
+
timeLimitMin?: number;
|
|
256
|
+
type?: BuiAssessmentType;
|
|
257
|
+
}
|
|
258
|
+
interface BuiCreateQuestionInput {
|
|
259
|
+
assessmentId: string;
|
|
260
|
+
prompt: string;
|
|
261
|
+
answerKey?: Json;
|
|
262
|
+
explanation?: string;
|
|
263
|
+
options?: Json;
|
|
264
|
+
points?: number;
|
|
265
|
+
position?: number;
|
|
266
|
+
type?: BuiQuestionType;
|
|
267
|
+
}
|
|
268
|
+
interface BuiSubmitAssessmentInput {
|
|
269
|
+
assessmentId: string;
|
|
270
|
+
answers?: Json;
|
|
271
|
+
attempt?: number;
|
|
272
|
+
enrollmentId?: string;
|
|
273
|
+
learnerId?: string;
|
|
274
|
+
}
|
|
275
|
+
interface BuiGradeSubmissionInput {
|
|
276
|
+
score: number;
|
|
277
|
+
feedback?: string;
|
|
278
|
+
passed?: boolean;
|
|
279
|
+
}
|
|
280
|
+
interface BuiEnrollInput {
|
|
281
|
+
courseId: string;
|
|
282
|
+
cohortId?: string;
|
|
283
|
+
expiresAt?: string;
|
|
284
|
+
learnerId?: string;
|
|
285
|
+
}
|
|
286
|
+
interface BuiRecordLessonProgressInput {
|
|
287
|
+
enrollmentId: string;
|
|
288
|
+
lessonId: string;
|
|
289
|
+
secondsSpent?: number;
|
|
290
|
+
status?: BuiProgressStatus;
|
|
291
|
+
}
|
|
292
|
+
interface BuiCreateCohortInput {
|
|
293
|
+
courseId: string;
|
|
294
|
+
name: string;
|
|
295
|
+
capacity?: number;
|
|
296
|
+
endDate?: string;
|
|
297
|
+
facilitatorId?: string;
|
|
298
|
+
startDate?: string;
|
|
299
|
+
}
|
|
300
|
+
interface BuiIssueCertificateInput {
|
|
301
|
+
courseId: string;
|
|
302
|
+
learnerId: string;
|
|
303
|
+
serial: string;
|
|
304
|
+
enrollmentId?: string;
|
|
305
|
+
expiresAt?: string;
|
|
306
|
+
fileId?: string;
|
|
307
|
+
finalScore?: number;
|
|
308
|
+
}
|
|
309
|
+
interface BuiCreateSkillInput {
|
|
310
|
+
name: string;
|
|
311
|
+
category?: BuiSkillCategory;
|
|
312
|
+
description?: string;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
interface BuildmyiqCoursesApi {
|
|
316
|
+
get(id: string): Promise<BuiCourse | null>;
|
|
317
|
+
list(level?: BuiCourseLevel, status?: BuiCourseStatus, pagination?: BuiPaginationInput): Promise<BuiCourseConnection>;
|
|
318
|
+
create(input: BuiCreateCourseInput): Promise<BuiCourse>;
|
|
319
|
+
update(id: string, input: BuiUpdateCourseInput): Promise<BuiCourse>;
|
|
320
|
+
publish(id: string): Promise<BuiCourse>;
|
|
321
|
+
archive(id: string): Promise<boolean>;
|
|
322
|
+
}
|
|
323
|
+
interface BuildmyiqModulesApi {
|
|
324
|
+
list(courseId: string): Promise<BuiModule[]>;
|
|
325
|
+
create(input: BuiCreateModuleInput): Promise<BuiModule>;
|
|
326
|
+
}
|
|
327
|
+
interface BuildmyiqLessonsApi {
|
|
328
|
+
list(courseId: string, moduleId?: string): Promise<BuiLesson[]>;
|
|
329
|
+
create(input: BuiCreateLessonInput): Promise<BuiLesson>;
|
|
330
|
+
}
|
|
331
|
+
interface BuildmyiqAssessmentsApi {
|
|
332
|
+
get(id: string): Promise<BuiAssessment | null>;
|
|
333
|
+
list(courseId: string, status?: BuiAssessmentStatus): Promise<BuiAssessment[]>;
|
|
334
|
+
create(input: BuiCreateAssessmentInput): Promise<BuiAssessment>;
|
|
335
|
+
publish(id: string): Promise<BuiAssessment>;
|
|
336
|
+
}
|
|
337
|
+
interface BuildmyiqQuestionsApi {
|
|
338
|
+
create(input: BuiCreateQuestionInput): Promise<BuiQuestion>;
|
|
339
|
+
}
|
|
340
|
+
interface BuildmyiqSubmissionsApi {
|
|
341
|
+
list(assessmentId?: string, learnerId?: string, status?: BuiSubmissionStatus, pagination?: BuiPaginationInput): Promise<BuiSubmissionConnection>;
|
|
342
|
+
submit(input: BuiSubmitAssessmentInput): Promise<BuiSubmission>;
|
|
343
|
+
grade(id: string, input: BuiGradeSubmissionInput): Promise<BuiSubmission>;
|
|
344
|
+
}
|
|
345
|
+
interface BuildmyiqEnrollmentsApi {
|
|
346
|
+
get(id: string): Promise<BuiEnrollment | null>;
|
|
347
|
+
list(courseId?: string, learnerId?: string, status?: BuiEnrollmentStatus, pagination?: BuiPaginationInput): Promise<BuiEnrollmentConnection>;
|
|
348
|
+
enroll(input: BuiEnrollInput): Promise<BuiEnrollment>;
|
|
349
|
+
transition(id: string, status: BuiEnrollmentStatus): Promise<BuiEnrollment>;
|
|
350
|
+
recordProgress(input: BuiRecordLessonProgressInput): Promise<BuiLessonProgress>;
|
|
351
|
+
}
|
|
352
|
+
interface BuildmyiqCohortsApi {
|
|
353
|
+
list(courseId?: string, status?: BuiCohortStatus): Promise<BuiCohort[]>;
|
|
354
|
+
create(input: BuiCreateCohortInput): Promise<BuiCohort>;
|
|
355
|
+
}
|
|
356
|
+
interface BuildmyiqCertificatesApi {
|
|
357
|
+
list(courseId?: string, learnerId?: string): Promise<BuiCertificate[]>;
|
|
358
|
+
issue(input: BuiIssueCertificateInput): Promise<BuiCertificate>;
|
|
359
|
+
revoke(id: string): Promise<BuiCertificate>;
|
|
360
|
+
}
|
|
361
|
+
interface BuildmyiqSkillsApi {
|
|
362
|
+
list(category?: BuiSkillCategory): Promise<BuiSkill[]>;
|
|
363
|
+
create(input: BuiCreateSkillInput): Promise<BuiSkill>;
|
|
364
|
+
}
|
|
365
|
+
interface BuildmyiqSystemApi {
|
|
366
|
+
health(): Promise<string>;
|
|
367
|
+
}
|
|
368
|
+
interface BuildmyiqApi {
|
|
369
|
+
courses: BuildmyiqCoursesApi;
|
|
370
|
+
modules: BuildmyiqModulesApi;
|
|
371
|
+
lessons: BuildmyiqLessonsApi;
|
|
372
|
+
assessments: BuildmyiqAssessmentsApi;
|
|
373
|
+
questions: BuildmyiqQuestionsApi;
|
|
374
|
+
submissions: BuildmyiqSubmissionsApi;
|
|
375
|
+
enrollments: BuildmyiqEnrollmentsApi;
|
|
376
|
+
cohorts: BuildmyiqCohortsApi;
|
|
377
|
+
certificates: BuildmyiqCertificatesApi;
|
|
378
|
+
skills: BuildmyiqSkillsApi;
|
|
379
|
+
system: BuildmyiqSystemApi;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
declare const buildmyiqModule: SdkModule<BuildmyiqApi>;
|
|
383
|
+
|
|
384
|
+
export { type BuiAssessment, type BuiAssessmentStatus, type BuiAssessmentType, type BuiCertificate, type BuiCertificateStatus, type BuiCohort, type BuiCohortStatus, type BuiCourse, type BuiCourseConnection, type BuiCourseLevel, type BuiCourseStatus, type BuiCreateAssessmentInput, type BuiCreateCohortInput, type BuiCreateCourseInput, type BuiCreateLessonInput, type BuiCreateModuleInput, type BuiCreateQuestionInput, type BuiCreateSkillInput, type BuiEnrollInput, type BuiEnrollment, type BuiEnrollmentConnection, type BuiEnrollmentStatus, type BuiFileRef, type BuiGradeSubmissionInput, type BuiIssueCertificateInput, type BuiLesson, type BuiLessonProgress, type BuiLessonType, type BuiModule, type BuiPageInfo, type BuiPaginationInput, type BuiProgressStatus, type BuiQuestion, type BuiQuestionType, type BuiRecordLessonProgressInput, type BuiSkill, type BuiSkillCategory, type BuiSubmission, type BuiSubmissionConnection, type BuiSubmissionStatus, type BuiSubmitAssessmentInput, type BuiUpdateCourseInput, type BuildmyiqApi, type BuildmyiqAssessmentsApi, type BuildmyiqCertificatesApi, type BuildmyiqCohortsApi, type BuildmyiqCoursesApi, type BuildmyiqEnrollmentsApi, type BuildmyiqLessonsApi, type BuildmyiqModulesApi, type BuildmyiqQuestionsApi, type BuildmyiqSkillsApi, type BuildmyiqSubmissionsApi, type BuildmyiqSystemApi, buildmyiqModule as default };
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
var l=`
|
|
2
|
+
fragment FileRef on File { id }
|
|
3
|
+
`,d=`
|
|
4
|
+
fragment SkillFields on BuiSkill {
|
|
5
|
+
id name description category isActive
|
|
6
|
+
workspaceId createdAt updatedAt
|
|
7
|
+
}
|
|
8
|
+
`,m=`
|
|
9
|
+
${l}
|
|
10
|
+
fragment LessonFields on BuiLesson {
|
|
11
|
+
id title content type courseId moduleId position durationMin isPreview
|
|
12
|
+
media { ...FileRef }
|
|
13
|
+
workspaceId createdAt updatedAt
|
|
14
|
+
}
|
|
15
|
+
`,p=`
|
|
16
|
+
${m}
|
|
17
|
+
fragment ModuleFields on BuiModule {
|
|
18
|
+
id title description courseId position
|
|
19
|
+
lessons { ...LessonFields }
|
|
20
|
+
workspaceId createdAt updatedAt
|
|
21
|
+
}
|
|
22
|
+
`,u=`
|
|
23
|
+
${l}
|
|
24
|
+
${d}
|
|
25
|
+
${p}
|
|
26
|
+
fragment CourseFields on BuiCourse {
|
|
27
|
+
id title slug summary description level status language tags
|
|
28
|
+
estimatedHours isPublic instructorId skillId publishedAt
|
|
29
|
+
cover { ...FileRef }
|
|
30
|
+
skill { ...SkillFields }
|
|
31
|
+
modules { ...ModuleFields }
|
|
32
|
+
lessons { ...LessonFields }
|
|
33
|
+
workspaceId createdAt updatedAt
|
|
34
|
+
}
|
|
35
|
+
`,E=`
|
|
36
|
+
fragment QuestionFields on BuiQuestion {
|
|
37
|
+
id assessmentId prompt type options points position explanation
|
|
38
|
+
workspaceId createdAt updatedAt
|
|
39
|
+
}
|
|
40
|
+
`,o=`
|
|
41
|
+
${E}
|
|
42
|
+
fragment AssessmentFields on BuiAssessment {
|
|
43
|
+
id courseId title description type status isGraded
|
|
44
|
+
maxAttempts passingScore timeLimitMin
|
|
45
|
+
questions { ...QuestionFields }
|
|
46
|
+
workspaceId createdAt updatedAt
|
|
47
|
+
}
|
|
48
|
+
`,c=`
|
|
49
|
+
fragment SubmissionFields on BuiSubmission {
|
|
50
|
+
id assessmentId learnerId enrollmentId attempt status
|
|
51
|
+
answers score passed feedback gradedAt gradedById submittedAt
|
|
52
|
+
workspaceId createdAt updatedAt
|
|
53
|
+
}
|
|
54
|
+
`,B=`
|
|
55
|
+
fragment CohortFields on BuiCohort {
|
|
56
|
+
id courseId name capacity status facilitatorId startDate endDate
|
|
57
|
+
workspaceId createdAt updatedAt
|
|
58
|
+
}
|
|
59
|
+
`,L=`
|
|
60
|
+
fragment LessonProgressFields on BuiLessonProgress {
|
|
61
|
+
id enrollmentId lessonId status secondsSpent completedAt
|
|
62
|
+
workspaceId createdAt updatedAt
|
|
63
|
+
}
|
|
64
|
+
`,r=`
|
|
65
|
+
${B}
|
|
66
|
+
${L}
|
|
67
|
+
fragment EnrollmentFields on BuiEnrollment {
|
|
68
|
+
id courseId learnerId cohortId status progressPct
|
|
69
|
+
enrolledAt startedAt completedAt expiresAt lastActiveAt
|
|
70
|
+
cohort { ...CohortFields }
|
|
71
|
+
lessonProgress { ...LessonProgressFields }
|
|
72
|
+
workspaceId createdAt updatedAt
|
|
73
|
+
}
|
|
74
|
+
`,S=`
|
|
75
|
+
${l}
|
|
76
|
+
fragment CertificateFields on BuiCertificate {
|
|
77
|
+
id courseId learnerId enrollmentId serial status finalScore
|
|
78
|
+
file { ...FileRef }
|
|
79
|
+
issuedAt expiresAt revokedAt
|
|
80
|
+
workspaceId createdAt updatedAt
|
|
81
|
+
}
|
|
82
|
+
`,C=`
|
|
83
|
+
fragment PageInfoFields on BuiPageInfo { cursor hasMore }
|
|
84
|
+
`,b=`
|
|
85
|
+
${u}
|
|
86
|
+
query BuiCourse($id: ID!) { buiCourse(id: $id) { ...CourseFields } }
|
|
87
|
+
`,y=`
|
|
88
|
+
${u}
|
|
89
|
+
${C}
|
|
90
|
+
query BuiListCourses(
|
|
91
|
+
$level: BuiCourseLevel
|
|
92
|
+
$status: BuiCourseStatus
|
|
93
|
+
$pagination: PaginationInput
|
|
94
|
+
) {
|
|
95
|
+
buiListCourses(level: $level, status: $status, pagination: $pagination) {
|
|
96
|
+
items { ...CourseFields }
|
|
97
|
+
pageInfo { ...PageInfoFields }
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
`,$=`
|
|
101
|
+
${u}
|
|
102
|
+
mutation BuiCreateCourse($input: BuiCreateCourseInput!) {
|
|
103
|
+
buiCreateCourse(input: $input) { ...CourseFields }
|
|
104
|
+
}
|
|
105
|
+
`,q=`
|
|
106
|
+
${u}
|
|
107
|
+
mutation BuiUpdateCourse($id: ID!, $input: BuiUpdateCourseInput!) {
|
|
108
|
+
buiUpdateCourse(id: $id, input: $input) { ...CourseFields }
|
|
109
|
+
}
|
|
110
|
+
`,g=`
|
|
111
|
+
${u}
|
|
112
|
+
mutation BuiPublishCourse($id: ID!) { buiPublishCourse(id: $id) { ...CourseFields } }
|
|
113
|
+
`,T=`
|
|
114
|
+
mutation BuiArchiveCourse($id: ID!) { buiArchiveCourse(id: $id) }
|
|
115
|
+
`,f=`
|
|
116
|
+
${p}
|
|
117
|
+
query BuiListModules($courseId: ID!) {
|
|
118
|
+
buiListModules(courseId: $courseId) { ...ModuleFields }
|
|
119
|
+
}
|
|
120
|
+
`,P=`
|
|
121
|
+
${p}
|
|
122
|
+
mutation BuiCreateModule($input: BuiCreateModuleInput!) {
|
|
123
|
+
buiCreateModule(input: $input) { ...ModuleFields }
|
|
124
|
+
}
|
|
125
|
+
`,R=`
|
|
126
|
+
${m}
|
|
127
|
+
query BuiListLessons($courseId: ID!, $moduleId: ID) {
|
|
128
|
+
buiListLessons(courseId: $courseId, moduleId: $moduleId) { ...LessonFields }
|
|
129
|
+
}
|
|
130
|
+
`,F=`
|
|
131
|
+
${m}
|
|
132
|
+
mutation BuiCreateLesson($input: BuiCreateLessonInput!) {
|
|
133
|
+
buiCreateLesson(input: $input) { ...LessonFields }
|
|
134
|
+
}
|
|
135
|
+
`,_=`
|
|
136
|
+
${o}
|
|
137
|
+
query BuiAssessment($id: ID!) { buiAssessment(id: $id) { ...AssessmentFields } }
|
|
138
|
+
`,h=`
|
|
139
|
+
${o}
|
|
140
|
+
query BuiListAssessments($courseId: ID!, $status: BuiAssessmentStatus) {
|
|
141
|
+
buiListAssessments(courseId: $courseId, status: $status) { ...AssessmentFields }
|
|
142
|
+
}
|
|
143
|
+
`,M=`
|
|
144
|
+
${o}
|
|
145
|
+
mutation BuiCreateAssessment($input: BuiCreateAssessmentInput!) {
|
|
146
|
+
buiCreateAssessment(input: $input) { ...AssessmentFields }
|
|
147
|
+
}
|
|
148
|
+
`,O=`
|
|
149
|
+
${o}
|
|
150
|
+
mutation BuiPublishAssessment($id: ID!) {
|
|
151
|
+
buiPublishAssessment(id: $id) { ...AssessmentFields }
|
|
152
|
+
}
|
|
153
|
+
`,k=`
|
|
154
|
+
${E}
|
|
155
|
+
mutation BuiCreateQuestion($input: BuiCreateQuestionInput!) {
|
|
156
|
+
buiCreateQuestion(input: $input) { ...QuestionFields }
|
|
157
|
+
}
|
|
158
|
+
`,x=`
|
|
159
|
+
${c}
|
|
160
|
+
${C}
|
|
161
|
+
query BuiListSubmissions(
|
|
162
|
+
$assessmentId: ID
|
|
163
|
+
$learnerId: ID
|
|
164
|
+
$status: BuiSubmissionStatus
|
|
165
|
+
$pagination: PaginationInput
|
|
166
|
+
) {
|
|
167
|
+
buiListSubmissions(
|
|
168
|
+
assessmentId: $assessmentId
|
|
169
|
+
learnerId: $learnerId
|
|
170
|
+
status: $status
|
|
171
|
+
pagination: $pagination
|
|
172
|
+
) {
|
|
173
|
+
items { ...SubmissionFields }
|
|
174
|
+
pageInfo { ...PageInfoFields }
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
`,N=`
|
|
178
|
+
${c}
|
|
179
|
+
mutation BuiSubmitAssessment($input: BuiSubmitAssessmentInput!) {
|
|
180
|
+
buiSubmitAssessment(input: $input) { ...SubmissionFields }
|
|
181
|
+
}
|
|
182
|
+
`,U=`
|
|
183
|
+
${c}
|
|
184
|
+
mutation BuiGradeSubmission($id: ID!, $input: BuiGradeSubmissionInput!) {
|
|
185
|
+
buiGradeSubmission(id: $id, input: $input) { ...SubmissionFields }
|
|
186
|
+
}
|
|
187
|
+
`,w=`
|
|
188
|
+
${r}
|
|
189
|
+
query BuiEnrollment($id: ID!) { buiEnrollment(id: $id) { ...EnrollmentFields } }
|
|
190
|
+
`,D=`
|
|
191
|
+
${r}
|
|
192
|
+
${C}
|
|
193
|
+
query BuiListEnrollments(
|
|
194
|
+
$courseId: ID
|
|
195
|
+
$learnerId: ID
|
|
196
|
+
$status: BuiEnrollmentStatus
|
|
197
|
+
$pagination: PaginationInput
|
|
198
|
+
) {
|
|
199
|
+
buiListEnrollments(
|
|
200
|
+
courseId: $courseId
|
|
201
|
+
learnerId: $learnerId
|
|
202
|
+
status: $status
|
|
203
|
+
pagination: $pagination
|
|
204
|
+
) {
|
|
205
|
+
items { ...EnrollmentFields }
|
|
206
|
+
pageInfo { ...PageInfoFields }
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
`,v=`
|
|
210
|
+
${r}
|
|
211
|
+
mutation BuiEnroll($input: BuiEnrollInput!) {
|
|
212
|
+
buiEnroll(input: $input) { ...EnrollmentFields }
|
|
213
|
+
}
|
|
214
|
+
`,Q=`
|
|
215
|
+
${r}
|
|
216
|
+
mutation BuiTransitionEnrollment($id: ID!, $status: BuiEnrollmentStatus!) {
|
|
217
|
+
buiTransitionEnrollment(id: $id, status: $status) { ...EnrollmentFields }
|
|
218
|
+
}
|
|
219
|
+
`,G=`
|
|
220
|
+
${L}
|
|
221
|
+
mutation BuiRecordLessonProgress($input: BuiRecordLessonProgressInput!) {
|
|
222
|
+
buiRecordLessonProgress(input: $input) { ...LessonProgressFields }
|
|
223
|
+
}
|
|
224
|
+
`,H=`
|
|
225
|
+
${B}
|
|
226
|
+
query BuiListCohorts($courseId: ID, $status: BuiCohortStatus) {
|
|
227
|
+
buiListCohorts(courseId: $courseId, status: $status) { ...CohortFields }
|
|
228
|
+
}
|
|
229
|
+
`,K=`
|
|
230
|
+
${B}
|
|
231
|
+
mutation BuiCreateCohort($input: BuiCreateCohortInput!) {
|
|
232
|
+
buiCreateCohort(input: $input) { ...CohortFields }
|
|
233
|
+
}
|
|
234
|
+
`,j=`
|
|
235
|
+
${S}
|
|
236
|
+
query BuiListCertificates($courseId: ID, $learnerId: ID) {
|
|
237
|
+
buiListCertificates(courseId: $courseId, learnerId: $learnerId) { ...CertificateFields }
|
|
238
|
+
}
|
|
239
|
+
`,V=`
|
|
240
|
+
${S}
|
|
241
|
+
mutation BuiIssueCertificate($input: BuiIssueCertificateInput!) {
|
|
242
|
+
buiIssueCertificate(input: $input) { ...CertificateFields }
|
|
243
|
+
}
|
|
244
|
+
`,z=`
|
|
245
|
+
${S}
|
|
246
|
+
mutation BuiRevokeCertificate($id: ID!) {
|
|
247
|
+
buiRevokeCertificate(id: $id) { ...CertificateFields }
|
|
248
|
+
}
|
|
249
|
+
`,J=`
|
|
250
|
+
${d}
|
|
251
|
+
query BuiListSkills($category: BuiSkillCategory) {
|
|
252
|
+
buiListSkills(category: $category) { ...SkillFields }
|
|
253
|
+
}
|
|
254
|
+
`,W=`
|
|
255
|
+
${d}
|
|
256
|
+
mutation BuiCreateSkill($input: BuiCreateSkillInput!) {
|
|
257
|
+
buiCreateSkill(input: $input) { ...SkillFields }
|
|
258
|
+
}
|
|
259
|
+
`,X="query BuiHealth { buiHealth }";function Y(a){let{workspace:t}=a.gql;return {courses:{async get(s){return (await t.request(b,{id:s})).buiCourse},async list(s,e,i){return (await t.request(y,{level:s,status:e,pagination:i})).buiListCourses},async create(s){return (await t.request($,{input:s})).buiCreateCourse},async update(s,e){return (await t.request(q,{id:s,input:e})).buiUpdateCourse},async publish(s){return (await t.request(g,{id:s})).buiPublishCourse},async archive(s){return (await t.request(T,{id:s})).buiArchiveCourse}},modules:{async list(s){return (await t.request(f,{courseId:s})).buiListModules},async create(s){return (await t.request(P,{input:s})).buiCreateModule}},lessons:{async list(s,e){return (await t.request(R,{courseId:s,moduleId:e})).buiListLessons},async create(s){return (await t.request(F,{input:s})).buiCreateLesson}},assessments:{async get(s){return (await t.request(_,{id:s})).buiAssessment},async list(s,e){return (await t.request(h,{courseId:s,status:e})).buiListAssessments},async create(s){return (await t.request(M,{input:s})).buiCreateAssessment},async publish(s){return (await t.request(O,{id:s})).buiPublishAssessment}},questions:{async create(s){return (await t.request(k,{input:s})).buiCreateQuestion}},submissions:{async list(s,e,i,n){return (await t.request(x,{assessmentId:s,learnerId:e,status:i,pagination:n})).buiListSubmissions},async submit(s){return (await t.request(N,{input:s})).buiSubmitAssessment},async grade(s,e){return (await t.request(U,{id:s,input:e})).buiGradeSubmission}},enrollments:{async get(s){return (await t.request(w,{id:s})).buiEnrollment},async list(s,e,i,n){return (await t.request(D,{courseId:s,learnerId:e,status:i,pagination:n})).buiListEnrollments},async enroll(s){return (await t.request(v,{input:s})).buiEnroll},async transition(s,e){return (await t.request(Q,{id:s,status:e})).buiTransitionEnrollment},async recordProgress(s){return (await t.request(G,{input:s})).buiRecordLessonProgress}},cohorts:{async list(s,e){return (await t.request(H,{courseId:s,status:e})).buiListCohorts},async create(s){return (await t.request(K,{input:s})).buiCreateCohort}},certificates:{async list(s,e){return (await t.request(j,{courseId:s,learnerId:e})).buiListCertificates},async issue(s){return (await t.request(V,{input:s})).buiIssueCertificate},async revoke(s){return (await t.request(z,{id:s})).buiRevokeCertificate}},skills:{async list(s){return (await t.request(J,{category:s})).buiListSkills},async create(s){return (await t.request(W,{input:s})).buiCreateSkill}},system:{async health(){return (await t.request(X)).buiHealth}}}}var ss={id:"buildmyiq",version:"1.0.0",displayName:"BuildMyIQ",dependsOn:["auth"],attach(a){return Y(a)}},As=ss;export{As as default};
|