@examplary/sdk 2.0.1 → 2.1.0

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.
@@ -1,742 +0,0 @@
1
- "use strict";
2
- // This file is auto-generated. Do not edit by hand.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Examplary = exports.Jobs = exports.QuestionBank = exports.Groups = exports.Folders = exports.SourceMaterials = exports.PracticeSpaces = exports.PracticeSpacesSessions = exports.PracticeSpacesStudents = exports.Exams = exports.ExamsExport = exports.ExamsQuestions = exports.ExamsSessions = exports.Users = exports.StudentLevels = exports.Permissions = exports.Taxonomies = exports.Attributes = exports.ApiKeys = exports.Orgs = exports.Org = exports.OrgCustomDomain = exports.Media = exports.Me = exports.EmbedSessions = exports.Oauth = exports.Library = exports.LibraryItems = exports.LibraryPublishers = exports.LibraryPublishersItems = exports.QuestionTypes = void 0;
5
- const context_1 = require("../src/context");
6
- const request_1 = require("../src/request");
7
- class QuestionTypes {
8
- constructor(ctx) {
9
- this.ctx = ctx;
10
- }
11
- listPublic(arg, options) {
12
- const args = arg;
13
- return (0, request_1.request)(this.ctx, "GET", "/question-types/public", [], [], false, args, options);
14
- }
15
- get(arg, options) {
16
- const args = typeof arg === "string" ? { id: arg } : arg;
17
- return (0, request_1.request)(this.ctx, "GET", "/question-types/{id}", ["id"], [], false, args, options);
18
- }
19
- delete(arg, options) {
20
- const args = typeof arg === "string" ? { id: arg } : arg;
21
- return (0, request_1.request)(this.ctx, "DELETE", "/question-types/{id}", ["id"], [], false, args, options);
22
- }
23
- getQti3Pci(arg, options) {
24
- const args = typeof arg === "string" ? { questionTypeId: arg } : arg;
25
- return (0, request_1.request)(this.ctx, "GET", "/question-types/{questionTypeId}/export/qti3-pci", ["questionTypeId"], [], false, args, options);
26
- }
27
- list(arg, options) {
28
- const args = arg;
29
- return (0, request_1.request)(this.ctx, "GET", "/question-types", [], [], false, args, options);
30
- }
31
- upsert(arg, options) {
32
- const args = arg;
33
- return (0, request_1.request)(this.ctx, "POST", "/question-types", [], [], true, args, options);
34
- }
35
- enable(arg, options) {
36
- const args = typeof arg === "string" ? { questionTypeId: arg } : arg;
37
- return (0, request_1.request)(this.ctx, "POST", "/question-types/{questionTypeId}/enable", ["questionTypeId"], [], false, args, options);
38
- }
39
- disable(arg, options) {
40
- const args = typeof arg === "string" ? { questionTypeId: arg } : arg;
41
- return (0, request_1.request)(this.ctx, "POST", "/question-types/{questionTypeId}/disable", ["questionTypeId"], [], false, args, options);
42
- }
43
- }
44
- exports.QuestionTypes = QuestionTypes;
45
- class LibraryPublishersItems {
46
- constructor(ctx) {
47
- this.ctx = ctx;
48
- }
49
- list(arg, options) {
50
- const args = typeof arg === "string" ? { publisherId: arg } : arg;
51
- return (0, request_1.request)(this.ctx, "GET", "/library/publishers/{publisherId}/items", ["publisherId"], [], false, args, options);
52
- }
53
- create(arg, options) {
54
- const args = arg;
55
- return (0, request_1.request)(this.ctx, "POST", "/library/publishers/{publisherId}/items", ["publisherId"], [], true, args, options);
56
- }
57
- }
58
- exports.LibraryPublishersItems = LibraryPublishersItems;
59
- class LibraryPublishers {
60
- constructor(ctx) {
61
- this.ctx = ctx;
62
- this.items = new LibraryPublishersItems(this.ctx);
63
- }
64
- listFeatured(arg, options) {
65
- const args = arg;
66
- return (0, request_1.request)(this.ctx, "GET", "/library/publishers/featured", [], [], false, args, options);
67
- }
68
- listAll(arg, options) {
69
- const args = arg;
70
- return (0, request_1.request)(this.ctx, "GET", "/library/publishers", [], [], false, args, options);
71
- }
72
- create(arg, options) {
73
- const args = arg;
74
- return (0, request_1.request)(this.ctx, "POST", "/library/publishers", [], [], true, args, options);
75
- }
76
- listMine(arg, options) {
77
- const args = arg;
78
- return (0, request_1.request)(this.ctx, "GET", "/library/publishers/mine", [], [], false, args, options);
79
- }
80
- update(arg, options) {
81
- const args = arg;
82
- return (0, request_1.request)(this.ctx, "PATCH", "/library/publishers/{publisherId}", ["publisherId"], [], true, args, options);
83
- }
84
- delete(arg, options) {
85
- const args = typeof arg === "string" ? { publisherId: arg } : arg;
86
- return (0, request_1.request)(this.ctx, "DELETE", "/library/publishers/{publisherId}", ["publisherId"], [], false, args, options);
87
- }
88
- }
89
- exports.LibraryPublishers = LibraryPublishers;
90
- class LibraryItems {
91
- constructor(ctx) {
92
- this.ctx = ctx;
93
- }
94
- listFeatured(arg, options) {
95
- const args = arg;
96
- return (0, request_1.request)(this.ctx, "GET", "/library/items/featured", [], [], false, args, options);
97
- }
98
- update(arg, options) {
99
- const args = arg;
100
- return (0, request_1.request)(this.ctx, "PATCH", "/library/items/{itemId}", ["itemId"], [], true, args, options);
101
- }
102
- delete(arg, options) {
103
- const args = typeof arg === "string" ? { itemId: arg } : arg;
104
- return (0, request_1.request)(this.ctx, "DELETE", "/library/items/{itemId}", ["itemId"], [], false, args, options);
105
- }
106
- }
107
- exports.LibraryItems = LibraryItems;
108
- class Library {
109
- constructor(ctx) {
110
- this.ctx = ctx;
111
- this.publishers = new LibraryPublishers(this.ctx);
112
- this.items = new LibraryItems(this.ctx);
113
- }
114
- }
115
- exports.Library = Library;
116
- class Oauth {
117
- constructor(ctx) {
118
- this.ctx = ctx;
119
- }
120
- authorize(arg, options) {
121
- const args = arg;
122
- return (0, request_1.request)(this.ctx, "GET", "/oauth/authorize", [], ["response_type", "client_id", "redirect_uri", "scope", "state", "code_challenge", "code_challenge_method"], false, args, options);
123
- }
124
- token(arg, options) {
125
- const args = arg;
126
- return (0, request_1.request)(this.ctx, "POST", "/oauth/token", [], [], false, args, options);
127
- }
128
- }
129
- exports.Oauth = Oauth;
130
- class EmbedSessions {
131
- constructor(ctx) {
132
- this.ctx = ctx;
133
- }
134
- create(arg, options) {
135
- const args = arg;
136
- return (0, request_1.request)(this.ctx, "POST", "/embed-sessions", [], [], true, args, options);
137
- }
138
- get(arg, options) {
139
- const args = typeof arg === "string" ? { id: arg } : arg;
140
- return (0, request_1.request)(this.ctx, "GET", "/embed-sessions/{id}", ["id"], [], false, args, options);
141
- }
142
- revoke(arg, options) {
143
- const args = typeof arg === "string" ? { id: arg } : arg;
144
- return (0, request_1.request)(this.ctx, "DELETE", "/embed-sessions/{id}", ["id"], [], false, args, options);
145
- }
146
- }
147
- exports.EmbedSessions = EmbedSessions;
148
- class Me {
149
- constructor(ctx) {
150
- this.ctx = ctx;
151
- }
152
- get(arg, options) {
153
- const args = arg;
154
- return (0, request_1.request)(this.ctx, "GET", "/me", [], [], false, args, options);
155
- }
156
- update(arg, options) {
157
- const args = arg;
158
- return (0, request_1.request)(this.ctx, "PATCH", "/me", [], [], true, args, options);
159
- }
160
- }
161
- exports.Me = Me;
162
- class Media {
163
- constructor(ctx) {
164
- this.ctx = ctx;
165
- }
166
- upload(arg, options) {
167
- const args = arg;
168
- return (0, request_1.request)(this.ctx, "GET", "/media/upload", [], ["filename", "type", "contentType"], false, args, options);
169
- }
170
- }
171
- exports.Media = Media;
172
- class OrgCustomDomain {
173
- constructor(ctx) {
174
- this.ctx = ctx;
175
- }
176
- get(arg, options) {
177
- const args = arg;
178
- return (0, request_1.request)(this.ctx, "GET", "/org/custom-domain", [], [], false, args, options);
179
- }
180
- update(arg, options) {
181
- const args = arg;
182
- return (0, request_1.request)(this.ctx, "POST", "/org/custom-domain", [], [], true, args, options);
183
- }
184
- }
185
- exports.OrgCustomDomain = OrgCustomDomain;
186
- class Org {
187
- constructor(ctx) {
188
- this.ctx = ctx;
189
- this.customDomain = new OrgCustomDomain(this.ctx);
190
- }
191
- get(arg, options) {
192
- const args = arg;
193
- return (0, request_1.request)(this.ctx, "GET", "/org", [], [], false, args, options);
194
- }
195
- update(arg, options) {
196
- const args = arg;
197
- return (0, request_1.request)(this.ctx, "PATCH", "/org", [], [], true, args, options);
198
- }
199
- delete(arg, options) {
200
- const args = arg;
201
- return (0, request_1.request)(this.ctx, "DELETE", "/org", [], [], false, args, options);
202
- }
203
- }
204
- exports.Org = Org;
205
- class Orgs {
206
- constructor(ctx) {
207
- this.ctx = ctx;
208
- }
209
- list(arg, options) {
210
- const args = arg;
211
- return (0, request_1.request)(this.ctx, "GET", "/orgs", [], [], false, args, options);
212
- }
213
- create(arg, options) {
214
- const args = arg;
215
- return (0, request_1.request)(this.ctx, "POST", "/orgs", [], [], true, args, options);
216
- }
217
- }
218
- exports.Orgs = Orgs;
219
- class ApiKeys {
220
- constructor(ctx) {
221
- this.ctx = ctx;
222
- }
223
- get(arg, options) {
224
- const args = arg;
225
- return (0, request_1.request)(this.ctx, "GET", "/api-keys", [], [], false, args, options);
226
- }
227
- reset(arg, options) {
228
- const args = arg;
229
- return (0, request_1.request)(this.ctx, "POST", "/api-keys/reset", [], [], false, args, options);
230
- }
231
- }
232
- exports.ApiKeys = ApiKeys;
233
- class Attributes {
234
- constructor(ctx) {
235
- this.ctx = ctx;
236
- }
237
- list(arg, options) {
238
- const args = arg;
239
- return (0, request_1.request)(this.ctx, "GET", "/attributes", [], [], false, args, options);
240
- }
241
- create(arg, options) {
242
- const args = arg;
243
- return (0, request_1.request)(this.ctx, "POST", "/attributes", [], [], true, args, options);
244
- }
245
- reorder(arg, options) {
246
- const args = arg;
247
- return (0, request_1.request)(this.ctx, "POST", "/attributes/reorder", [], [], true, args, options);
248
- }
249
- update(arg, options) {
250
- const args = arg;
251
- return (0, request_1.request)(this.ctx, "POST", "/attributes/{id}", ["id"], [], true, args, options);
252
- }
253
- delete(arg, options) {
254
- const args = typeof arg === "string" ? { id: arg } : arg;
255
- return (0, request_1.request)(this.ctx, "DELETE", "/attributes/{id}", ["id"], [], false, args, options);
256
- }
257
- }
258
- exports.Attributes = Attributes;
259
- class Taxonomies {
260
- constructor(ctx) {
261
- this.ctx = ctx;
262
- }
263
- list(arg, options) {
264
- const args = arg;
265
- return (0, request_1.request)(this.ctx, "GET", "/taxonomies", [], [], false, args, options);
266
- }
267
- create(arg, options) {
268
- const args = arg;
269
- return (0, request_1.request)(this.ctx, "POST", "/taxonomies", [], [], true, args, options);
270
- }
271
- update(arg, options) {
272
- const args = arg;
273
- return (0, request_1.request)(this.ctx, "POST", "/taxonomies/{id}", ["id"], [], true, args, options);
274
- }
275
- delete(arg, options) {
276
- const args = typeof arg === "string" ? { id: arg } : arg;
277
- return (0, request_1.request)(this.ctx, "DELETE", "/taxonomies/{id}", ["id"], [], false, args, options);
278
- }
279
- }
280
- exports.Taxonomies = Taxonomies;
281
- class Permissions {
282
- constructor(ctx) {
283
- this.ctx = ctx;
284
- }
285
- autocomplete(arg, options) {
286
- const args = arg;
287
- return (0, request_1.request)(this.ctx, "GET", "/permissions/autocomplete", [], ["q", "type"], false, args, options);
288
- }
289
- list(arg, options) {
290
- const args = typeof arg === "string" ? { resource: arg } : arg;
291
- return (0, request_1.request)(this.ctx, "GET", "/permissions/{resource}", ["resource"], [], false, args, options);
292
- }
293
- assign(arg, options) {
294
- const args = arg;
295
- return (0, request_1.request)(this.ctx, "POST", "/permissions/{resource}", ["resource"], [], true, args, options);
296
- }
297
- getActorRole(arg, options) {
298
- const args = arg;
299
- return (0, request_1.request)(this.ctx, "GET", "/permissions/{resource}/{actor}", ["actor", "resource"], [], false, args, options);
300
- }
301
- delete(arg, options) {
302
- const args = arg;
303
- return (0, request_1.request)(this.ctx, "DELETE", "/permissions/{resource}/{actor}", ["resource", "actor"], [], false, args, options);
304
- }
305
- }
306
- exports.Permissions = Permissions;
307
- class StudentLevels {
308
- constructor(ctx) {
309
- this.ctx = ctx;
310
- }
311
- list(arg, options) {
312
- const args = arg;
313
- return (0, request_1.request)(this.ctx, "GET", "/student-levels", [], [], false, args, options);
314
- }
315
- }
316
- exports.StudentLevels = StudentLevels;
317
- class Users {
318
- constructor(ctx) {
319
- this.ctx = ctx;
320
- }
321
- list(arg, options) {
322
- const args = arg;
323
- return (0, request_1.request)(this.ctx, "GET", "/users", [], [], false, args, options);
324
- }
325
- create(arg, options) {
326
- const args = arg;
327
- return (0, request_1.request)(this.ctx, "POST", "/users", [], [], true, args, options);
328
- }
329
- update(arg, options) {
330
- const args = typeof arg === "string" ? { id: arg } : arg;
331
- return (0, request_1.request)(this.ctx, "PATCH", "/users/{id}", ["id"], [], false, args, options);
332
- }
333
- delete(arg, options) {
334
- const args = typeof arg === "string" ? { id: arg } : arg;
335
- return (0, request_1.request)(this.ctx, "DELETE", "/users/{id}", ["id"], [], false, args, options);
336
- }
337
- }
338
- exports.Users = Users;
339
- class ExamsSessions {
340
- constructor(ctx) {
341
- this.ctx = ctx;
342
- }
343
- list(arg, options) {
344
- const args = typeof arg === "string" ? { examId: arg } : arg;
345
- return (0, request_1.request)(this.ctx, "GET", "/exams/{examId}/sessions", ["examId"], [], false, args, options);
346
- }
347
- import(arg, options) {
348
- const args = arg;
349
- return (0, request_1.request)(this.ctx, "POST", "/exams/{examId}/sessions", ["examId"], [], true, args, options);
350
- }
351
- scan(arg, options) {
352
- const args = typeof arg === "string" ? { examId: arg } : arg;
353
- return (0, request_1.request)(this.ctx, "POST", "/exams/{examId}/sessions/scan", ["examId"], [], false, args, options);
354
- }
355
- scanDocument(arg, options) {
356
- const args = arg;
357
- return (0, request_1.request)(this.ctx, "POST", "/exams/{examId}/sessions/scan-document", ["examId"], [], true, args, options);
358
- }
359
- get(arg, options) {
360
- const args = arg;
361
- return (0, request_1.request)(this.ctx, "GET", "/exams/{examId}/sessions/{sessionId}", ["examId", "sessionId"], [], false, args, options);
362
- }
363
- delete(arg, options) {
364
- const args = arg;
365
- return (0, request_1.request)(this.ctx, "DELETE", "/exams/{examId}/sessions/{sessionId}", ["examId", "sessionId"], [], false, args, options);
366
- }
367
- saveFeedback(arg, options) {
368
- const args = arg;
369
- return (0, request_1.request)(this.ctx, "POST", "/exams/{examId}/sessions/{sessionId}/feedback", ["examId", "sessionId"], [], true, args, options);
370
- }
371
- saveOverallFeedback(arg, options) {
372
- const args = arg;
373
- return (0, request_1.request)(this.ctx, "POST", "/exams/{examId}/sessions/{sessionId}/overall-feedback", ["examId", "sessionId"], [], true, args, options);
374
- }
375
- generateOverallFeedback(arg, options) {
376
- const args = arg;
377
- return (0, request_1.request)(this.ctx, "POST", "/exams/{examId}/sessions/{sessionId}/generate-overall-feedback", ["examId", "sessionId"], [], false, args, options);
378
- }
379
- acceptAllSuggestions(arg, options) {
380
- const args = arg;
381
- return (0, request_1.request)(this.ctx, "POST", "/exams/{examId}/sessions/{sessionId}/suggestions/accept-all", ["examId", "sessionId"], [], false, args, options);
382
- }
383
- acceptSuggestion(arg, options) {
384
- const args = arg;
385
- return (0, request_1.request)(this.ctx, "POST", "/exams/{examId}/sessions/{sessionId}/suggestions/{questionId}/accept", ["examId", "sessionId", "questionId"], [], false, args, options);
386
- }
387
- editAnswer(arg, options) {
388
- const args = arg;
389
- return (0, request_1.request)(this.ctx, "PATCH", "/exams/{examId}/sessions/{sessionId}/answers/{questionId}", ["examId", "sessionId", "questionId"], [], true, args, options);
390
- }
391
- }
392
- exports.ExamsSessions = ExamsSessions;
393
- class ExamsQuestions {
394
- constructor(ctx) {
395
- this.ctx = ctx;
396
- }
397
- import(arg, options) {
398
- const args = arg;
399
- return (0, request_1.request)(this.ctx, "POST", "/exams/{examId}/questions/import", ["examId"], [], true, args, options);
400
- }
401
- generate(arg, options) {
402
- const args = arg;
403
- return (0, request_1.request)(this.ctx, "POST", "/exams/{examId}/questions/generate", ["examId"], [], true, args, options);
404
- }
405
- get(arg, options) {
406
- const args = arg;
407
- return (0, request_1.request)(this.ctx, "GET", "/exams/{examId}/questions/{questionId}", ["examId", "questionId"], ["format"], false, args, options);
408
- }
409
- regenerate(arg, options) {
410
- const args = arg;
411
- return (0, request_1.request)(this.ctx, "POST", "/exams/{examId}/questions/{questionId}/generate", ["examId", "questionId"], [], true, args, options);
412
- }
413
- }
414
- exports.ExamsQuestions = ExamsQuestions;
415
- class ExamsExport {
416
- constructor(ctx) {
417
- this.ctx = ctx;
418
- }
419
- qti3Zip(arg, options) {
420
- const args = typeof arg === "string" ? { examId: arg } : arg;
421
- return (0, request_1.request)(this.ctx, "POST", "/exams/{examId}/export/qti3-zip", ["examId"], [], false, args, options);
422
- }
423
- qti21Zip(arg, options) {
424
- const args = typeof arg === "string" ? { examId: arg } : arg;
425
- return (0, request_1.request)(this.ctx, "POST", "/exams/{examId}/export/qti21-zip", ["examId"], [], false, args, options);
426
- }
427
- }
428
- exports.ExamsExport = ExamsExport;
429
- class Exams {
430
- constructor(ctx) {
431
- this.ctx = ctx;
432
- this.sessions = new ExamsSessions(this.ctx);
433
- this.questions = new ExamsQuestions(this.ctx);
434
- this.export = new ExamsExport(this.ctx);
435
- }
436
- list(arg, options) {
437
- const args = arg;
438
- return (0, request_1.request)(this.ctx, "GET", "/exams", [], ["folder", "role"], false, args, options);
439
- }
440
- create(arg, options) {
441
- const args = arg;
442
- return (0, request_1.request)(this.ctx, "POST", "/exams", [], [], true, args, options);
443
- }
444
- import(arg, options) {
445
- const args = arg;
446
- return (0, request_1.request)(this.ctx, "POST", "/exams/import", [], [], true, args, options);
447
- }
448
- get(arg, options) {
449
- const args = typeof arg === "string" ? { id: arg } : arg;
450
- return (0, request_1.request)(this.ctx, "GET", "/exams/{id}", ["id"], [], false, args, options);
451
- }
452
- update(arg, options) {
453
- const args = typeof arg === "string" ? { id: arg } : arg;
454
- return (0, request_1.request)(this.ctx, "POST", "/exams/{id}", ["id"], [], false, args, options);
455
- }
456
- delete(arg, options) {
457
- const args = typeof arg === "string" ? { id: arg } : arg;
458
- return (0, request_1.request)(this.ctx, "DELETE", "/exams/{id}", ["id"], [], false, args, options);
459
- }
460
- duplicate(arg, options) {
461
- const args = arg;
462
- return (0, request_1.request)(this.ctx, "POST", "/exams/{examId}/duplicate", ["examId"], [], true, args, options);
463
- }
464
- print(arg, options) {
465
- const args = typeof arg === "string" ? { examId: arg } : arg;
466
- return (0, request_1.request)(this.ctx, "POST", "/exams/{examId}/print", ["examId"], [], false, args, options);
467
- }
468
- startGeneration(arg, options) {
469
- const args = typeof arg === "string" ? { examId: arg } : arg;
470
- return (0, request_1.request)(this.ctx, "POST", "/exams/{examId}/generate", ["examId"], [], false, args, options);
471
- }
472
- cancelGeneration(arg, options) {
473
- const args = typeof arg === "string" ? { examId: arg } : arg;
474
- return (0, request_1.request)(this.ctx, "POST", "/exams/{examId}/generate/cancel", ["examId"], [], false, args, options);
475
- }
476
- getContextSuggestions(arg, options) {
477
- const args = typeof arg === "string" ? { examId: arg } : arg;
478
- return (0, request_1.request)(this.ctx, "GET", "/exams/{examId}/context-suggestions", ["examId"], [], false, args, options);
479
- }
480
- }
481
- exports.Exams = Exams;
482
- class PracticeSpacesStudents {
483
- constructor(ctx) {
484
- this.ctx = ctx;
485
- }
486
- list(arg, options) {
487
- const args = typeof arg === "string" ? { practiceSpaceId: arg } : arg;
488
- return (0, request_1.request)(this.ctx, "GET", "/practice-spaces/{practiceSpaceId}/students", ["practiceSpaceId"], [], false, args, options);
489
- }
490
- get(arg, options) {
491
- const args = arg;
492
- return (0, request_1.request)(this.ctx, "GET", "/practice-spaces/{practiceSpaceId}/students/{studentId}", ["practiceSpaceId", "studentId"], [], false, args, options);
493
- }
494
- }
495
- exports.PracticeSpacesStudents = PracticeSpacesStudents;
496
- class PracticeSpacesSessions {
497
- constructor(ctx) {
498
- this.ctx = ctx;
499
- }
500
- create(arg, options) {
501
- const args = arg;
502
- return (0, request_1.request)(this.ctx, "POST", "/practice-spaces/{practiceSpaceId}/sessions", ["practiceSpaceId"], [], true, args, options);
503
- }
504
- getMine(arg, options) {
505
- const args = typeof arg === "string" ? { practiceSpaceId: arg } : arg;
506
- return (0, request_1.request)(this.ctx, "GET", "/practice-spaces/{practiceSpaceId}/sessions/mine", ["practiceSpaceId"], [], false, args, options);
507
- }
508
- get(arg, options) {
509
- const args = arg;
510
- return (0, request_1.request)(this.ctx, "GET", "/practice-spaces/{practiceSpaceId}/sessions/{sessionId}", ["practiceSpaceId", "sessionId"], [], false, args, options);
511
- }
512
- saveAnswer(arg, options) {
513
- const args = arg;
514
- return (0, request_1.request)(this.ctx, "POST", "/practice-spaces/{practiceSpaceId}/sessions/{sessionId}/answers/{questionId}", ["practiceSpaceId", "sessionId", "questionId"], [], true, args, options);
515
- }
516
- }
517
- exports.PracticeSpacesSessions = PracticeSpacesSessions;
518
- class PracticeSpaces {
519
- constructor(ctx) {
520
- this.ctx = ctx;
521
- this.students = new PracticeSpacesStudents(this.ctx);
522
- this.sessions = new PracticeSpacesSessions(this.ctx);
523
- }
524
- list(arg, options) {
525
- const args = arg;
526
- return (0, request_1.request)(this.ctx, "GET", "/practice-spaces", [], ["folder", "role"], false, args, options);
527
- }
528
- create(arg, options) {
529
- const args = arg;
530
- return (0, request_1.request)(this.ctx, "POST", "/practice-spaces", [], [], true, args, options);
531
- }
532
- get(arg, options) {
533
- const args = typeof arg === "string" ? { id: arg } : arg;
534
- return (0, request_1.request)(this.ctx, "GET", "/practice-spaces/{id}", ["id"], [], false, args, options);
535
- }
536
- update(arg, options) {
537
- const args = arg;
538
- return (0, request_1.request)(this.ctx, "PATCH", "/practice-spaces/{id}", ["id"], [], true, args, options);
539
- }
540
- delete(arg, options) {
541
- const args = typeof arg === "string" ? { id: arg } : arg;
542
- return (0, request_1.request)(this.ctx, "DELETE", "/practice-spaces/{id}", ["id"], [], false, args, options);
543
- }
544
- duplicate(arg, options) {
545
- const args = arg;
546
- return (0, request_1.request)(this.ctx, "POST", "/practice-spaces/{practiceSpaceId}/duplicate", ["practiceSpaceId"], [], true, args, options);
547
- }
548
- generateTopics(arg, options) {
549
- const args = typeof arg === "string" ? { practiceSpaceId: arg } : arg;
550
- return (0, request_1.request)(this.ctx, "POST", "/practice-spaces/{practiceSpaceId}/generate-topics", ["practiceSpaceId"], [], false, args, options);
551
- }
552
- cancelGenerateTopics(arg, options) {
553
- const args = typeof arg === "string" ? { practiceSpaceId: arg } : arg;
554
- return (0, request_1.request)(this.ctx, "POST", "/practice-spaces/{practiceSpaceId}/cancel-generate-topics", ["practiceSpaceId"], [], false, args, options);
555
- }
556
- questionsPreview(arg, options) {
557
- const args = typeof arg === "string" ? { practiceSpaceId: arg } : arg;
558
- return (0, request_1.request)(this.ctx, "GET", "/practice-spaces/{practiceSpaceId}/questions-preview", ["practiceSpaceId"], [], false, args, options);
559
- }
560
- getProgress(arg, options) {
561
- const args = typeof arg === "string" ? { practiceSpaceId: arg } : arg;
562
- return (0, request_1.request)(this.ctx, "GET", "/practice-spaces/{practiceSpaceId}/progress", ["practiceSpaceId"], [], false, args, options);
563
- }
564
- generateTopicFeedback(arg, options) {
565
- const args = arg;
566
- return (0, request_1.request)(this.ctx, "POST", "/practice-spaces/{practiceSpaceId}/progress/topic-feedback", ["practiceSpaceId"], [], true, args, options);
567
- }
568
- }
569
- exports.PracticeSpaces = PracticeSpaces;
570
- class SourceMaterials {
571
- constructor(ctx) {
572
- this.ctx = ctx;
573
- }
574
- list(arg, options) {
575
- const args = arg;
576
- return (0, request_1.request)(this.ctx, "GET", "/source-materials", [], ["externalId"], false, args, options);
577
- }
578
- create(arg, options) {
579
- const args = arg;
580
- return (0, request_1.request)(this.ctx, "POST", "/source-materials", [], [], true, args, options);
581
- }
582
- get(arg, options) {
583
- const args = typeof arg === "string" ? { id: arg } : arg;
584
- return (0, request_1.request)(this.ctx, "GET", "/source-materials/{id}", ["id"], [], false, args, options);
585
- }
586
- update(arg, options) {
587
- const args = arg;
588
- return (0, request_1.request)(this.ctx, "PATCH", "/source-materials/{id}", ["id"], [], true, args, options);
589
- }
590
- delete(arg, options) {
591
- const args = typeof arg === "string" ? { id: arg } : arg;
592
- return (0, request_1.request)(this.ctx, "DELETE", "/source-materials/{id}", ["id"], [], false, args, options);
593
- }
594
- slice(arg, options) {
595
- const args = arg;
596
- return (0, request_1.request)(this.ctx, "POST", "/source-materials/{sourceMaterialId}/slice", ["sourceMaterialId"], [], true, args, options);
597
- }
598
- }
599
- exports.SourceMaterials = SourceMaterials;
600
- class Folders {
601
- constructor(ctx) {
602
- this.ctx = ctx;
603
- }
604
- list(arg, options) {
605
- const args = arg;
606
- return (0, request_1.request)(this.ctx, "GET", "/folders", [], [], false, args, options);
607
- }
608
- create(arg, options) {
609
- const args = arg;
610
- return (0, request_1.request)(this.ctx, "POST", "/folders", [], [], true, args, options);
611
- }
612
- update(arg, options) {
613
- const args = arg;
614
- return (0, request_1.request)(this.ctx, "POST", "/folders/{id}", ["id"], [], true, args, options);
615
- }
616
- delete(arg, options) {
617
- const args = typeof arg === "string" ? { id: arg } : arg;
618
- return (0, request_1.request)(this.ctx, "DELETE", "/folders/{id}", ["id"], [], false, args, options);
619
- }
620
- }
621
- exports.Folders = Folders;
622
- class Groups {
623
- constructor(ctx) {
624
- this.ctx = ctx;
625
- }
626
- list(arg, options) {
627
- const args = arg;
628
- return (0, request_1.request)(this.ctx, "GET", "/groups", [], [], false, args, options);
629
- }
630
- create(arg, options) {
631
- const args = arg;
632
- return (0, request_1.request)(this.ctx, "POST", "/groups", [], [], true, args, options);
633
- }
634
- update(arg, options) {
635
- const args = arg;
636
- return (0, request_1.request)(this.ctx, "PATCH", "/groups/{id}", ["id"], [], true, args, options);
637
- }
638
- delete(arg, options) {
639
- const args = typeof arg === "string" ? { id: arg } : arg;
640
- return (0, request_1.request)(this.ctx, "DELETE", "/groups/{id}", ["id"], [], false, args, options);
641
- }
642
- listMembers(arg, options) {
643
- const args = typeof arg === "string" ? { groupId: arg } : arg;
644
- return (0, request_1.request)(this.ctx, "GET", "/groups/{groupId}/members", ["groupId"], [], false, args, options);
645
- }
646
- addMember(arg, options) {
647
- const args = arg;
648
- return (0, request_1.request)(this.ctx, "POST", "/groups/{groupId}/members", ["groupId"], [], true, args, options);
649
- }
650
- updateMember(arg, options) {
651
- const args = arg;
652
- return (0, request_1.request)(this.ctx, "PATCH", "/groups/{groupId}/members/{userId}", ["groupId", "userId"], [], true, args, options);
653
- }
654
- removeMember(arg, options) {
655
- const args = arg;
656
- return (0, request_1.request)(this.ctx, "DELETE", "/groups/{groupId}/members/{userId}", ["groupId", "userId"], [], false, args, options);
657
- }
658
- }
659
- exports.Groups = Groups;
660
- class QuestionBank {
661
- constructor(ctx) {
662
- this.ctx = ctx;
663
- }
664
- list(arg, options) {
665
- const args = arg;
666
- return (0, request_1.request)(this.ctx, "GET", "/question-bank", [], [], false, args, options);
667
- }
668
- create(arg, options) {
669
- const args = arg;
670
- return (0, request_1.request)(this.ctx, "POST", "/question-bank", [], [], true, args, options);
671
- }
672
- update(arg, options) {
673
- const args = arg;
674
- return (0, request_1.request)(this.ctx, "PATCH", "/question-bank/{id}", ["id"], [], true, args, options);
675
- }
676
- delete(arg, options) {
677
- const args = typeof arg === "string" ? { id: arg } : arg;
678
- return (0, request_1.request)(this.ctx, "DELETE", "/question-bank/{id}", ["id"], [], false, args, options);
679
- }
680
- }
681
- exports.QuestionBank = QuestionBank;
682
- class Jobs {
683
- constructor(ctx) {
684
- this.ctx = ctx;
685
- }
686
- get(arg, options) {
687
- const args = typeof arg === "string" ? { id: arg } : arg;
688
- return (0, request_1.request)(this.ctx, "GET", "/jobs/{id}", ["id"], [], false, args, options);
689
- }
690
- cancel(arg, options) {
691
- const args = typeof arg === "string" ? { id: arg } : arg;
692
- return (0, request_1.request)(this.ctx, "DELETE", "/jobs/{id}", ["id"], [], false, args, options);
693
- }
694
- }
695
- exports.Jobs = Jobs;
696
- class Examplary {
697
- constructor(options) {
698
- this.ctx = (0, context_1.createClientContext)(options);
699
- this.questionTypes = new QuestionTypes(this.ctx);
700
- this.library = new Library(this.ctx);
701
- this.oauth = new Oauth(this.ctx);
702
- this.embedSessions = new EmbedSessions(this.ctx);
703
- this.me = new Me(this.ctx);
704
- this.media = new Media(this.ctx);
705
- this.org = new Org(this.ctx);
706
- this.orgs = new Orgs(this.ctx);
707
- this.apiKeys = new ApiKeys(this.ctx);
708
- this.attributes = new Attributes(this.ctx);
709
- this.taxonomies = new Taxonomies(this.ctx);
710
- this.permissions = new Permissions(this.ctx);
711
- this.studentLevels = new StudentLevels(this.ctx);
712
- this.users = new Users(this.ctx);
713
- this.exams = new Exams(this.ctx);
714
- this.practiceSpaces = new PracticeSpaces(this.ctx);
715
- this.sourceMaterials = new SourceMaterials(this.ctx);
716
- this.folders = new Folders(this.ctx);
717
- this.groups = new Groups(this.ctx);
718
- this.questionBank = new QuestionBank(this.ctx);
719
- this.jobs = new Jobs(this.ctx);
720
- }
721
- getRubrics(arg, options) {
722
- const args = arg;
723
- return (0, request_1.request)(this.ctx, "GET", "/rubrics", [], [], false, args, options);
724
- }
725
- postRubrics(arg, options) {
726
- const args = arg;
727
- return (0, request_1.request)(this.ctx, "POST", "/rubrics", [], [], true, args, options);
728
- }
729
- postRubricsGenerate(arg, options) {
730
- const args = arg;
731
- return (0, request_1.request)(this.ctx, "POST", "/rubrics/generate", [], [], true, args, options);
732
- }
733
- patchRubricsId(arg, options) {
734
- const args = arg;
735
- return (0, request_1.request)(this.ctx, "PATCH", "/rubrics/{id}", ["id"], [], true, args, options);
736
- }
737
- deleteRubricsId(arg, options) {
738
- const args = typeof arg === "string" ? { id: arg } : arg;
739
- return (0, request_1.request)(this.ctx, "DELETE", "/rubrics/{id}", ["id"], [], false, args, options);
740
- }
741
- }
742
- exports.Examplary = Examplary;