@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.js CHANGED
@@ -326,6 +326,14 @@ var ExamsSessions = class {
326
326
  const args = typeof arg === "string" ? { examId: arg } : arg;
327
327
  return request(this.ctx, "POST", "/exams/{examId}/sessions/scan", ["examId"], [], false, args, options);
328
328
  }
329
+ scanImages(arg, options) {
330
+ const args = arg;
331
+ return request(this.ctx, "POST", "/exams/{examId}/sessions/scan-images", ["examId"], [], true, args, options);
332
+ }
333
+ scanStudentName(arg, options) {
334
+ const args = arg;
335
+ return request(this.ctx, "POST", "/exams/{examId}/sessions/scan-student-name", ["examId"], [], true, args, options);
336
+ }
329
337
  scanDocument(arg, options) {
330
338
  const args = arg;
331
339
  return request(this.ctx, "POST", "/exams/{examId}/sessions/scan-document", ["examId"], [], true, args, options);
@@ -338,6 +346,10 @@ var ExamsSessions = class {
338
346
  const args = arg;
339
347
  return request(this.ctx, "DELETE", "/exams/{examId}/sessions/{sessionId}", ["examId", "sessionId"], [], false, args, options);
340
348
  }
349
+ update(arg, options) {
350
+ const args = arg;
351
+ return request(this.ctx, "PATCH", "/exams/{examId}/sessions/{sessionId}", ["examId", "sessionId"], [], true, args, options);
352
+ }
341
353
  saveFeedback(arg, options) {
342
354
  const args = arg;
343
355
  return request(this.ctx, "POST", "/exams/{examId}/sessions/{sessionId}/feedback", ["examId", "sessionId"], [], true, args, options);
@@ -379,6 +391,10 @@ var ExamsQuestions = class {
379
391
  const args = arg;
380
392
  return request(this.ctx, "GET", "/exams/{examId}/questions/{questionId}", ["examId", "questionId"], ["format"], false, args, options);
381
393
  }
394
+ update(arg, options) {
395
+ const args = arg;
396
+ return request(this.ctx, "PATCH", "/exams/{examId}/questions/{questionId}", ["examId", "questionId"], [], true, args, options);
397
+ }
382
398
  regenerate(arg, options) {
383
399
  const args = arg;
384
400
  return request(this.ctx, "POST", "/exams/{examId}/questions/{questionId}/generate", ["examId", "questionId"], [], true, args, options);
@@ -422,7 +438,7 @@ var Exams = class {
422
438
  }
423
439
  update(arg, options) {
424
440
  const args = typeof arg === "string" ? { id: arg } : arg;
425
- return request(this.ctx, "POST", "/exams/{id}", ["id"], [], false, args, options);
441
+ return request(this.ctx, "PATCH", "/exams/{id}", ["id"], [], false, args, options);
426
442
  }
427
443
  delete(arg, options) {
428
444
  const args = typeof arg === "string" ? { id: arg } : arg;
@@ -736,6 +752,10 @@ var PracticeSpaces = class {
736
752
  const args = arg;
737
753
  return request(this.ctx, "POST", "/practice-spaces/{practiceSpaceId}/progress/topic-feedback", ["practiceSpaceId"], [], true, args, options);
738
754
  }
755
+ updateQuestion(arg, options) {
756
+ const args = arg;
757
+ return request(this.ctx, "PATCH", "/practice-spaces/{practiceSpaceId}/questions/{questionId}", ["practiceSpaceId", "questionId"], [], true, args, options);
758
+ }
739
759
  };
740
760
  var SourceMaterials = class {
741
761
  constructor(ctx) {
@@ -766,6 +786,15 @@ var SourceMaterials = class {
766
786
  return request(this.ctx, "POST", "/source-materials/{sourceMaterialId}/slice", ["sourceMaterialId"], [], true, args, options);
767
787
  }
768
788
  };
789
+ var Items = class {
790
+ constructor(ctx) {
791
+ this.ctx = ctx;
792
+ }
793
+ list(arg, options) {
794
+ const args = arg;
795
+ return request(this.ctx, "GET", "/items", [], ["type", "folder"], false, args, options);
796
+ }
797
+ };
769
798
  var Folders = class {
770
799
  constructor(ctx) {
771
800
  this.ctx = ctx;
@@ -780,7 +809,7 @@ var Folders = class {
780
809
  }
781
810
  update(arg, options) {
782
811
  const args = arg;
783
- return request(this.ctx, "POST", "/folders/{id}", ["id"], [], true, args, options);
812
+ return request(this.ctx, "PATCH", "/folders/{id}", ["id"], [], true, args, options);
784
813
  }
785
814
  delete(arg, options) {
786
815
  const args = typeof arg === "string" ? { id: arg } : arg;
@@ -824,6 +853,27 @@ var Groups = class {
824
853
  return request(this.ctx, "DELETE", "/groups/{groupId}/members/{userId}", ["groupId", "userId"], [], false, args, options);
825
854
  }
826
855
  };
856
+ var Integrations = class {
857
+ constructor(ctx) {
858
+ this.ctx = ctx;
859
+ }
860
+ list(arg, options) {
861
+ const args = arg;
862
+ return request(this.ctx, "GET", "/integrations", [], [], false, args, options);
863
+ }
864
+ get(arg, options) {
865
+ const args = typeof arg === "string" ? { integrationType: arg } : arg;
866
+ return request(this.ctx, "GET", "/integrations/{integrationType}", ["integrationType"], [], false, args, options);
867
+ }
868
+ upsert(arg, options) {
869
+ const args = typeof arg === "string" ? { integrationType: arg } : arg;
870
+ return request(this.ctx, "POST", "/integrations/{integrationType}", ["integrationType"], [], false, args, options);
871
+ }
872
+ delete(arg, options) {
873
+ const args = typeof arg === "string" ? { integrationType: arg } : arg;
874
+ return request(this.ctx, "DELETE", "/integrations/{integrationType}", ["integrationType"], [], false, args, options);
875
+ }
876
+ };
827
877
  var QuestionBank = class {
828
878
  constructor(ctx) {
829
879
  this.ctx = ctx;
@@ -900,12 +950,22 @@ var Examplary = class {
900
950
  this.users = new Users(this.ctx);
901
951
  this.practiceSpaces = new PracticeSpaces(this.ctx);
902
952
  this.sourceMaterials = new SourceMaterials(this.ctx);
953
+ this.items = new Items(this.ctx);
903
954
  this.folders = new Folders(this.ctx);
904
955
  this.groups = new Groups(this.ctx);
956
+ this.integrations = new Integrations(this.ctx);
905
957
  this.questionBank = new QuestionBank(this.ctx);
906
958
  this.prompts = new Prompts(this.ctx);
907
959
  this.jobs = new Jobs(this.ctx);
908
960
  }
961
+ postExamsId(arg, options) {
962
+ const args = typeof arg === "string" ? { id: arg } : arg;
963
+ return request(this.ctx, "POST", "/exams/{id}", ["id"], [], false, args, options);
964
+ }
965
+ postFoldersId(arg, options) {
966
+ const args = arg;
967
+ return request(this.ctx, "POST", "/folders/{id}", ["id"], [], true, args, options);
968
+ }
909
969
  getRubrics(arg, options) {
910
970
  const args = arg;
911
971
  return request(this.ctx, "GET", "/rubrics", [], [], false, args, options);