@examplary/sdk 2.15.0 → 2.17.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.
- package/dist/index.d.mts +928 -343
- package/dist/index.d.ts +928 -343
- package/dist/index.js +126 -48
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +126 -48
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -156,57 +156,45 @@ var QuestionTypes = class {
|
|
|
156
156
|
return request(this.ctx, "POST", "/question-types/{questionTypeId}/disable", ["questionTypeId"], [], false, args, options);
|
|
157
157
|
}
|
|
158
158
|
};
|
|
159
|
-
var
|
|
159
|
+
var LibraryCollectionsItems = class {
|
|
160
160
|
constructor(ctx) {
|
|
161
161
|
this.ctx = ctx;
|
|
162
162
|
}
|
|
163
163
|
list(arg, options) {
|
|
164
|
-
const args = typeof arg === "string" ? {
|
|
165
|
-
return request(this.ctx, "GET", "/library/
|
|
164
|
+
const args = typeof arg === "string" ? { collectionId: arg } : arg;
|
|
165
|
+
return request(this.ctx, "GET", "/library/collections/{collectionId}/items", ["collectionId"], [], false, args, options);
|
|
166
166
|
}
|
|
167
167
|
create(arg, options) {
|
|
168
168
|
const args = arg;
|
|
169
|
-
return request(this.ctx, "POST", "/library/
|
|
169
|
+
return request(this.ctx, "POST", "/library/collections/{collectionId}/items", ["collectionId"], [], true, args, options);
|
|
170
170
|
}
|
|
171
171
|
};
|
|
172
|
-
var
|
|
172
|
+
var LibraryCollections = class {
|
|
173
173
|
constructor(ctx) {
|
|
174
174
|
this.ctx = ctx;
|
|
175
|
-
this.items = new
|
|
175
|
+
this.items = new LibraryCollectionsItems(this.ctx);
|
|
176
176
|
}
|
|
177
|
-
|
|
178
|
-
const args = arg;
|
|
179
|
-
return request(this.ctx, "GET", "/library/publishers/featured", [], [], false, args, options);
|
|
180
|
-
}
|
|
181
|
-
listAll(arg, options) {
|
|
177
|
+
list(arg, options) {
|
|
182
178
|
const args = arg;
|
|
183
|
-
return request(this.ctx, "GET", "/library/
|
|
179
|
+
return request(this.ctx, "GET", "/library/collections", [], [], false, args, options);
|
|
184
180
|
}
|
|
185
181
|
create(arg, options) {
|
|
186
182
|
const args = arg;
|
|
187
|
-
return request(this.ctx, "POST", "/library/
|
|
188
|
-
}
|
|
189
|
-
listMine(arg, options) {
|
|
190
|
-
const args = arg;
|
|
191
|
-
return request(this.ctx, "GET", "/library/publishers/mine", [], [], false, args, options);
|
|
183
|
+
return request(this.ctx, "POST", "/library/collections", [], [], true, args, options);
|
|
192
184
|
}
|
|
193
185
|
update(arg, options) {
|
|
194
186
|
const args = arg;
|
|
195
|
-
return request(this.ctx, "PATCH", "/library/
|
|
187
|
+
return request(this.ctx, "PATCH", "/library/collections/{collectionId}", ["collectionId"], [], true, args, options);
|
|
196
188
|
}
|
|
197
189
|
delete(arg, options) {
|
|
198
|
-
const args = typeof arg === "string" ? {
|
|
199
|
-
return request(this.ctx, "DELETE", "/library/
|
|
190
|
+
const args = typeof arg === "string" ? { collectionId: arg } : arg;
|
|
191
|
+
return request(this.ctx, "DELETE", "/library/collections/{collectionId}", ["collectionId"], [], false, args, options);
|
|
200
192
|
}
|
|
201
193
|
};
|
|
202
194
|
var LibraryItems = class {
|
|
203
195
|
constructor(ctx) {
|
|
204
196
|
this.ctx = ctx;
|
|
205
197
|
}
|
|
206
|
-
listFeatured(arg, options) {
|
|
207
|
-
const args = arg;
|
|
208
|
-
return request(this.ctx, "GET", "/library/items/featured", [], [], false, args, options);
|
|
209
|
-
}
|
|
210
198
|
update(arg, options) {
|
|
211
199
|
const args = arg;
|
|
212
200
|
return request(this.ctx, "PATCH", "/library/items/{itemId}", ["itemId"], [], true, args, options);
|
|
@@ -219,7 +207,7 @@ var LibraryItems = class {
|
|
|
219
207
|
var Library = class {
|
|
220
208
|
constructor(ctx) {
|
|
221
209
|
this.ctx = ctx;
|
|
222
|
-
this.
|
|
210
|
+
this.collections = new LibraryCollections(this.ctx);
|
|
223
211
|
this.items = new LibraryItems(this.ctx);
|
|
224
212
|
}
|
|
225
213
|
};
|
|
@@ -288,8 +276,8 @@ var ExamsSessions = class {
|
|
|
288
276
|
return request(this.ctx, "POST", "/exams/{examId}/sessions", ["examId"], [], true, args, options);
|
|
289
277
|
}
|
|
290
278
|
scan(arg, options) {
|
|
291
|
-
const args =
|
|
292
|
-
return request(this.ctx, "POST", "/exams/{examId}/sessions/scan", ["examId"], [],
|
|
279
|
+
const args = arg;
|
|
280
|
+
return request(this.ctx, "POST", "/exams/{examId}/sessions/scan", ["examId"], [], true, args, options);
|
|
293
281
|
}
|
|
294
282
|
releaseGrades(arg, options) {
|
|
295
283
|
const args = arg;
|
|
@@ -450,6 +438,42 @@ var Exams = class {
|
|
|
450
438
|
return request(this.ctx, "GET", "/exams/{examId}/context-suggestions", ["examId"], [], false, args, options);
|
|
451
439
|
}
|
|
452
440
|
};
|
|
441
|
+
var Orgs = class {
|
|
442
|
+
constructor(ctx) {
|
|
443
|
+
this.ctx = ctx;
|
|
444
|
+
}
|
|
445
|
+
list(arg, options) {
|
|
446
|
+
const args = arg;
|
|
447
|
+
return request(this.ctx, "GET", "/orgs", [], ["includeUnconfirmed"], false, args, options);
|
|
448
|
+
}
|
|
449
|
+
create(arg, options) {
|
|
450
|
+
const args = arg;
|
|
451
|
+
return request(this.ctx, "POST", "/orgs", [], [], true, args, options);
|
|
452
|
+
}
|
|
453
|
+
join(arg, options) {
|
|
454
|
+
const args = typeof arg === "string" ? { orgId: arg } : arg;
|
|
455
|
+
return request(this.ctx, "POST", "/orgs/{orgId}/join", ["orgId"], [], false, args, options);
|
|
456
|
+
}
|
|
457
|
+
};
|
|
458
|
+
var SearchTokens = class {
|
|
459
|
+
constructor(ctx) {
|
|
460
|
+
this.ctx = ctx;
|
|
461
|
+
}
|
|
462
|
+
get(arg, options) {
|
|
463
|
+
const args = arg;
|
|
464
|
+
return request(this.ctx, "GET", "/search/tokens", [], [], false, args, options);
|
|
465
|
+
}
|
|
466
|
+
getPublic(arg, options) {
|
|
467
|
+
const args = arg;
|
|
468
|
+
return request(this.ctx, "GET", "/search/tokens/public", [], [], false, args, options);
|
|
469
|
+
}
|
|
470
|
+
};
|
|
471
|
+
var Search = class {
|
|
472
|
+
constructor(ctx) {
|
|
473
|
+
this.ctx = ctx;
|
|
474
|
+
this.tokens = new SearchTokens(this.ctx);
|
|
475
|
+
}
|
|
476
|
+
};
|
|
453
477
|
var MeTwoFactor = class {
|
|
454
478
|
constructor(ctx) {
|
|
455
479
|
this.ctx = ctx;
|
|
@@ -480,6 +504,10 @@ var Me = class {
|
|
|
480
504
|
const args = arg;
|
|
481
505
|
return request(this.ctx, "PATCH", "/me", [], [], true, args, options);
|
|
482
506
|
}
|
|
507
|
+
updateEmail(arg, options) {
|
|
508
|
+
const args = arg;
|
|
509
|
+
return request(this.ctx, "PATCH", "/me/email", [], [], true, args, options);
|
|
510
|
+
}
|
|
483
511
|
};
|
|
484
512
|
var Media = class {
|
|
485
513
|
constructor(ctx) {
|
|
@@ -509,39 +537,88 @@ var OrgCustomDomain = class {
|
|
|
509
537
|
return request(this.ctx, "POST", "/org/custom-domain", [], [], true, args, options);
|
|
510
538
|
}
|
|
511
539
|
};
|
|
512
|
-
var
|
|
540
|
+
var OrgEmailDomains = class {
|
|
513
541
|
constructor(ctx) {
|
|
514
542
|
this.ctx = ctx;
|
|
515
|
-
this.customDomain = new OrgCustomDomain(this.ctx);
|
|
516
543
|
}
|
|
517
|
-
|
|
544
|
+
list(arg, options) {
|
|
518
545
|
const args = arg;
|
|
519
|
-
return request(this.ctx, "GET", "/org", [], [], false, args, options);
|
|
546
|
+
return request(this.ctx, "GET", "/org/email-domains", [], [], false, args, options);
|
|
547
|
+
}
|
|
548
|
+
create(arg, options) {
|
|
549
|
+
const args = arg;
|
|
550
|
+
return request(this.ctx, "POST", "/org/email-domains", [], [], true, args, options);
|
|
520
551
|
}
|
|
521
552
|
update(arg, options) {
|
|
522
553
|
const args = arg;
|
|
523
|
-
return request(this.ctx, "PATCH", "/org", [], [], true, args, options);
|
|
554
|
+
return request(this.ctx, "PATCH", "/org/email-domains/{domain}", ["domain"], [], true, args, options);
|
|
524
555
|
}
|
|
525
556
|
delete(arg, options) {
|
|
557
|
+
const args = typeof arg === "string" ? { domain: arg } : arg;
|
|
558
|
+
return request(this.ctx, "DELETE", "/org/email-domains/{domain}", ["domain"], [], false, args, options);
|
|
559
|
+
}
|
|
560
|
+
verify(arg, options) {
|
|
561
|
+
const args = typeof arg === "string" ? { domain: arg } : arg;
|
|
562
|
+
return request(this.ctx, "POST", "/org/email-domains/{domain}/verify", ["domain"], [], false, args, options);
|
|
563
|
+
}
|
|
564
|
+
};
|
|
565
|
+
var OrgIdentityProvider = class {
|
|
566
|
+
constructor(ctx) {
|
|
567
|
+
this.ctx = ctx;
|
|
568
|
+
}
|
|
569
|
+
get(arg, options) {
|
|
526
570
|
const args = arg;
|
|
527
|
-
return request(this.ctx, "
|
|
571
|
+
return request(this.ctx, "GET", "/org/identity-provider", [], [], false, args, options);
|
|
528
572
|
}
|
|
529
|
-
|
|
573
|
+
update(arg, options) {
|
|
530
574
|
const args = arg;
|
|
531
|
-
return request(this.ctx, "
|
|
575
|
+
return request(this.ctx, "POST", "/org/identity-provider", [], [], true, args, options);
|
|
576
|
+
}
|
|
577
|
+
delete(arg, options) {
|
|
578
|
+
const args = arg;
|
|
579
|
+
return request(this.ctx, "DELETE", "/org/identity-provider", [], [], false, args, options);
|
|
532
580
|
}
|
|
533
581
|
};
|
|
534
|
-
var
|
|
582
|
+
var OrgJoinRequests = class {
|
|
535
583
|
constructor(ctx) {
|
|
536
584
|
this.ctx = ctx;
|
|
537
585
|
}
|
|
538
586
|
list(arg, options) {
|
|
539
587
|
const args = arg;
|
|
540
|
-
return request(this.ctx, "GET", "/
|
|
588
|
+
return request(this.ctx, "GET", "/org/join-requests", [], [], false, args, options);
|
|
541
589
|
}
|
|
542
|
-
|
|
590
|
+
approve(arg, options) {
|
|
543
591
|
const args = arg;
|
|
544
|
-
return request(this.ctx, "POST", "/
|
|
592
|
+
return request(this.ctx, "POST", "/org/join-requests/{userId}/approve", ["userId"], [], true, args, options);
|
|
593
|
+
}
|
|
594
|
+
reject(arg, options) {
|
|
595
|
+
const args = typeof arg === "string" ? { userId: arg } : arg;
|
|
596
|
+
return request(this.ctx, "POST", "/org/join-requests/{userId}/reject", ["userId"], [], false, args, options);
|
|
597
|
+
}
|
|
598
|
+
};
|
|
599
|
+
var Org = class {
|
|
600
|
+
constructor(ctx) {
|
|
601
|
+
this.ctx = ctx;
|
|
602
|
+
this.customDomain = new OrgCustomDomain(this.ctx);
|
|
603
|
+
this.emailDomains = new OrgEmailDomains(this.ctx);
|
|
604
|
+
this.identityProvider = new OrgIdentityProvider(this.ctx);
|
|
605
|
+
this.joinRequests = new OrgJoinRequests(this.ctx);
|
|
606
|
+
}
|
|
607
|
+
get(arg, options) {
|
|
608
|
+
const args = arg;
|
|
609
|
+
return request(this.ctx, "GET", "/org", [], [], false, args, options);
|
|
610
|
+
}
|
|
611
|
+
update(arg, options) {
|
|
612
|
+
const args = arg;
|
|
613
|
+
return request(this.ctx, "PATCH", "/org", [], [], true, args, options);
|
|
614
|
+
}
|
|
615
|
+
delete(arg, options) {
|
|
616
|
+
const args = arg;
|
|
617
|
+
return request(this.ctx, "DELETE", "/org", [], [], false, args, options);
|
|
618
|
+
}
|
|
619
|
+
limits(arg, options) {
|
|
620
|
+
const args = arg;
|
|
621
|
+
return request(this.ctx, "GET", "/org/limits", [], [], false, args, options);
|
|
545
622
|
}
|
|
546
623
|
};
|
|
547
624
|
var AuditLogs = class {
|
|
@@ -776,6 +853,10 @@ var SourceMaterials = class {
|
|
|
776
853
|
const args = arg;
|
|
777
854
|
return request(this.ctx, "POST", "/source-materials", [], [], true, args, options);
|
|
778
855
|
}
|
|
856
|
+
listTags(arg, options) {
|
|
857
|
+
const args = arg;
|
|
858
|
+
return request(this.ctx, "GET", "/source-materials/tags", [], [], false, args, options);
|
|
859
|
+
}
|
|
779
860
|
get(arg, options) {
|
|
780
861
|
const args = typeof arg === "string" ? { id: arg } : arg;
|
|
781
862
|
return request(this.ctx, "GET", "/source-materials/{id}", ["id"], [], false, args, options);
|
|
@@ -814,6 +895,10 @@ var Folders = class {
|
|
|
814
895
|
const args = arg;
|
|
815
896
|
return request(this.ctx, "POST", "/folders", [], [], true, args, options);
|
|
816
897
|
}
|
|
898
|
+
get(arg, options) {
|
|
899
|
+
const args = typeof arg === "string" ? { id: arg } : arg;
|
|
900
|
+
return request(this.ctx, "GET", "/folders/{id}", ["id"], [], false, args, options);
|
|
901
|
+
}
|
|
817
902
|
update(arg, options) {
|
|
818
903
|
const args = arg;
|
|
819
904
|
return request(this.ctx, "PATCH", "/folders/{id}", ["id"], [], true, args, options);
|
|
@@ -944,10 +1029,11 @@ var Examplary = class {
|
|
|
944
1029
|
this.oauth = new Oauth(this.ctx);
|
|
945
1030
|
this.embedSessions = new EmbedSessions(this.ctx);
|
|
946
1031
|
this.exams = new Exams(this.ctx);
|
|
1032
|
+
this.orgs = new Orgs(this.ctx);
|
|
1033
|
+
this.search = new Search(this.ctx);
|
|
947
1034
|
this.me = new Me(this.ctx);
|
|
948
1035
|
this.media = new Media(this.ctx);
|
|
949
1036
|
this.org = new Org(this.ctx);
|
|
950
|
-
this.orgs = new Orgs(this.ctx);
|
|
951
1037
|
this.auditLogs = new AuditLogs(this.ctx);
|
|
952
1038
|
this.apiKeys = new ApiKeys(this.ctx);
|
|
953
1039
|
this.attributes = new Attributes(this.ctx);
|
|
@@ -965,14 +1051,6 @@ var Examplary = class {
|
|
|
965
1051
|
this.prompts = new Prompts(this.ctx);
|
|
966
1052
|
this.jobs = new Jobs(this.ctx);
|
|
967
1053
|
}
|
|
968
|
-
postExamsId(arg, options) {
|
|
969
|
-
const args = typeof arg === "string" ? { id: arg } : arg;
|
|
970
|
-
return request(this.ctx, "POST", "/exams/{id}", ["id"], [], false, args, options);
|
|
971
|
-
}
|
|
972
|
-
postFoldersId(arg, options) {
|
|
973
|
-
const args = arg;
|
|
974
|
-
return request(this.ctx, "POST", "/folders/{id}", ["id"], [], true, args, options);
|
|
975
|
-
}
|
|
976
1054
|
getRubrics(arg, options) {
|
|
977
1055
|
const args = arg;
|
|
978
1056
|
return request(this.ctx, "GET", "/rubrics", [], [], false, args, options);
|