@examplary/sdk 2.7.0 → 2.9.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 +586 -35
- package/dist/index.d.ts +586 -35
- package/dist/index.js +62 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +62 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -291,6 +291,14 @@ var ExamsSessions = class {
|
|
|
291
291
|
const args = typeof arg === "string" ? { examId: arg } : arg;
|
|
292
292
|
return request(this.ctx, "POST", "/exams/{examId}/sessions/scan", ["examId"], [], false, args, options);
|
|
293
293
|
}
|
|
294
|
+
scanImages(arg, options) {
|
|
295
|
+
const args = arg;
|
|
296
|
+
return request(this.ctx, "POST", "/exams/{examId}/sessions/scan-images", ["examId"], [], true, args, options);
|
|
297
|
+
}
|
|
298
|
+
scanStudentName(arg, options) {
|
|
299
|
+
const args = arg;
|
|
300
|
+
return request(this.ctx, "POST", "/exams/{examId}/sessions/scan-student-name", ["examId"], [], true, args, options);
|
|
301
|
+
}
|
|
294
302
|
scanDocument(arg, options) {
|
|
295
303
|
const args = arg;
|
|
296
304
|
return request(this.ctx, "POST", "/exams/{examId}/sessions/scan-document", ["examId"], [], true, args, options);
|
|
@@ -303,6 +311,10 @@ var ExamsSessions = class {
|
|
|
303
311
|
const args = arg;
|
|
304
312
|
return request(this.ctx, "DELETE", "/exams/{examId}/sessions/{sessionId}", ["examId", "sessionId"], [], false, args, options);
|
|
305
313
|
}
|
|
314
|
+
update(arg, options) {
|
|
315
|
+
const args = arg;
|
|
316
|
+
return request(this.ctx, "PATCH", "/exams/{examId}/sessions/{sessionId}", ["examId", "sessionId"], [], true, args, options);
|
|
317
|
+
}
|
|
306
318
|
saveFeedback(arg, options) {
|
|
307
319
|
const args = arg;
|
|
308
320
|
return request(this.ctx, "POST", "/exams/{examId}/sessions/{sessionId}/feedback", ["examId", "sessionId"], [], true, args, options);
|
|
@@ -344,6 +356,10 @@ var ExamsQuestions = class {
|
|
|
344
356
|
const args = arg;
|
|
345
357
|
return request(this.ctx, "GET", "/exams/{examId}/questions/{questionId}", ["examId", "questionId"], ["format"], false, args, options);
|
|
346
358
|
}
|
|
359
|
+
update(arg, options) {
|
|
360
|
+
const args = arg;
|
|
361
|
+
return request(this.ctx, "PATCH", "/exams/{examId}/questions/{questionId}", ["examId", "questionId"], [], true, args, options);
|
|
362
|
+
}
|
|
347
363
|
regenerate(arg, options) {
|
|
348
364
|
const args = arg;
|
|
349
365
|
return request(this.ctx, "POST", "/exams/{examId}/questions/{questionId}/generate", ["examId", "questionId"], [], true, args, options);
|
|
@@ -387,7 +403,7 @@ var Exams = class {
|
|
|
387
403
|
}
|
|
388
404
|
update(arg, options) {
|
|
389
405
|
const args = typeof arg === "string" ? { id: arg } : arg;
|
|
390
|
-
return request(this.ctx, "
|
|
406
|
+
return request(this.ctx, "PATCH", "/exams/{id}", ["id"], [], false, args, options);
|
|
391
407
|
}
|
|
392
408
|
delete(arg, options) {
|
|
393
409
|
const args = typeof arg === "string" ? { id: arg } : arg;
|
|
@@ -701,6 +717,10 @@ var PracticeSpaces = class {
|
|
|
701
717
|
const args = arg;
|
|
702
718
|
return request(this.ctx, "POST", "/practice-spaces/{practiceSpaceId}/progress/topic-feedback", ["practiceSpaceId"], [], true, args, options);
|
|
703
719
|
}
|
|
720
|
+
updateQuestion(arg, options) {
|
|
721
|
+
const args = arg;
|
|
722
|
+
return request(this.ctx, "PATCH", "/practice-spaces/{practiceSpaceId}/questions/{questionId}", ["practiceSpaceId", "questionId"], [], true, args, options);
|
|
723
|
+
}
|
|
704
724
|
};
|
|
705
725
|
var SourceMaterials = class {
|
|
706
726
|
constructor(ctx) {
|
|
@@ -731,6 +751,15 @@ var SourceMaterials = class {
|
|
|
731
751
|
return request(this.ctx, "POST", "/source-materials/{sourceMaterialId}/slice", ["sourceMaterialId"], [], true, args, options);
|
|
732
752
|
}
|
|
733
753
|
};
|
|
754
|
+
var Items = class {
|
|
755
|
+
constructor(ctx) {
|
|
756
|
+
this.ctx = ctx;
|
|
757
|
+
}
|
|
758
|
+
list(arg, options) {
|
|
759
|
+
const args = arg;
|
|
760
|
+
return request(this.ctx, "GET", "/items", [], ["type", "folder"], false, args, options);
|
|
761
|
+
}
|
|
762
|
+
};
|
|
734
763
|
var Folders = class {
|
|
735
764
|
constructor(ctx) {
|
|
736
765
|
this.ctx = ctx;
|
|
@@ -745,7 +774,7 @@ var Folders = class {
|
|
|
745
774
|
}
|
|
746
775
|
update(arg, options) {
|
|
747
776
|
const args = arg;
|
|
748
|
-
return request(this.ctx, "
|
|
777
|
+
return request(this.ctx, "PATCH", "/folders/{id}", ["id"], [], true, args, options);
|
|
749
778
|
}
|
|
750
779
|
delete(arg, options) {
|
|
751
780
|
const args = typeof arg === "string" ? { id: arg } : arg;
|
|
@@ -789,6 +818,27 @@ var Groups = class {
|
|
|
789
818
|
return request(this.ctx, "DELETE", "/groups/{groupId}/members/{userId}", ["groupId", "userId"], [], false, args, options);
|
|
790
819
|
}
|
|
791
820
|
};
|
|
821
|
+
var Integrations = class {
|
|
822
|
+
constructor(ctx) {
|
|
823
|
+
this.ctx = ctx;
|
|
824
|
+
}
|
|
825
|
+
list(arg, options) {
|
|
826
|
+
const args = arg;
|
|
827
|
+
return request(this.ctx, "GET", "/integrations", [], [], false, args, options);
|
|
828
|
+
}
|
|
829
|
+
get(arg, options) {
|
|
830
|
+
const args = typeof arg === "string" ? { integrationType: arg } : arg;
|
|
831
|
+
return request(this.ctx, "GET", "/integrations/{integrationType}", ["integrationType"], [], false, args, options);
|
|
832
|
+
}
|
|
833
|
+
upsert(arg, options) {
|
|
834
|
+
const args = typeof arg === "string" ? { integrationType: arg } : arg;
|
|
835
|
+
return request(this.ctx, "POST", "/integrations/{integrationType}", ["integrationType"], [], false, args, options);
|
|
836
|
+
}
|
|
837
|
+
delete(arg, options) {
|
|
838
|
+
const args = typeof arg === "string" ? { integrationType: arg } : arg;
|
|
839
|
+
return request(this.ctx, "DELETE", "/integrations/{integrationType}", ["integrationType"], [], false, args, options);
|
|
840
|
+
}
|
|
841
|
+
};
|
|
792
842
|
var QuestionBank = class {
|
|
793
843
|
constructor(ctx) {
|
|
794
844
|
this.ctx = ctx;
|
|
@@ -865,12 +915,22 @@ var Examplary = class {
|
|
|
865
915
|
this.users = new Users(this.ctx);
|
|
866
916
|
this.practiceSpaces = new PracticeSpaces(this.ctx);
|
|
867
917
|
this.sourceMaterials = new SourceMaterials(this.ctx);
|
|
918
|
+
this.items = new Items(this.ctx);
|
|
868
919
|
this.folders = new Folders(this.ctx);
|
|
869
920
|
this.groups = new Groups(this.ctx);
|
|
921
|
+
this.integrations = new Integrations(this.ctx);
|
|
870
922
|
this.questionBank = new QuestionBank(this.ctx);
|
|
871
923
|
this.prompts = new Prompts(this.ctx);
|
|
872
924
|
this.jobs = new Jobs(this.ctx);
|
|
873
925
|
}
|
|
926
|
+
postExamsId(arg, options) {
|
|
927
|
+
const args = typeof arg === "string" ? { id: arg } : arg;
|
|
928
|
+
return request(this.ctx, "POST", "/exams/{id}", ["id"], [], false, args, options);
|
|
929
|
+
}
|
|
930
|
+
postFoldersId(arg, options) {
|
|
931
|
+
const args = arg;
|
|
932
|
+
return request(this.ctx, "POST", "/folders/{id}", ["id"], [], true, args, options);
|
|
933
|
+
}
|
|
874
934
|
getRubrics(arg, options) {
|
|
875
935
|
const args = arg;
|
|
876
936
|
return request(this.ctx, "GET", "/rubrics", [], [], false, args, options);
|