@examplary/sdk 2.7.0 → 2.8.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.mjs CHANGED
@@ -303,6 +303,10 @@ var ExamsSessions = class {
303
303
  const args = arg;
304
304
  return request(this.ctx, "DELETE", "/exams/{examId}/sessions/{sessionId}", ["examId", "sessionId"], [], false, args, options);
305
305
  }
306
+ update(arg, options) {
307
+ const args = arg;
308
+ return request(this.ctx, "PATCH", "/exams/{examId}/sessions/{sessionId}", ["examId", "sessionId"], [], true, args, options);
309
+ }
306
310
  saveFeedback(arg, options) {
307
311
  const args = arg;
308
312
  return request(this.ctx, "POST", "/exams/{examId}/sessions/{sessionId}/feedback", ["examId", "sessionId"], [], true, args, options);
@@ -387,7 +391,7 @@ var Exams = class {
387
391
  }
388
392
  update(arg, options) {
389
393
  const args = typeof arg === "string" ? { id: arg } : arg;
390
- return request(this.ctx, "POST", "/exams/{id}", ["id"], [], false, args, options);
394
+ return request(this.ctx, "PATCH", "/exams/{id}", ["id"], [], false, args, options);
391
395
  }
392
396
  delete(arg, options) {
393
397
  const args = typeof arg === "string" ? { id: arg } : arg;
@@ -731,6 +735,15 @@ var SourceMaterials = class {
731
735
  return request(this.ctx, "POST", "/source-materials/{sourceMaterialId}/slice", ["sourceMaterialId"], [], true, args, options);
732
736
  }
733
737
  };
738
+ var Items = class {
739
+ constructor(ctx) {
740
+ this.ctx = ctx;
741
+ }
742
+ list(arg, options) {
743
+ const args = arg;
744
+ return request(this.ctx, "GET", "/items", [], ["type", "folder"], false, args, options);
745
+ }
746
+ };
734
747
  var Folders = class {
735
748
  constructor(ctx) {
736
749
  this.ctx = ctx;
@@ -745,7 +758,7 @@ var Folders = class {
745
758
  }
746
759
  update(arg, options) {
747
760
  const args = arg;
748
- return request(this.ctx, "POST", "/folders/{id}", ["id"], [], true, args, options);
761
+ return request(this.ctx, "PATCH", "/folders/{id}", ["id"], [], true, args, options);
749
762
  }
750
763
  delete(arg, options) {
751
764
  const args = typeof arg === "string" ? { id: arg } : arg;
@@ -789,6 +802,27 @@ var Groups = class {
789
802
  return request(this.ctx, "DELETE", "/groups/{groupId}/members/{userId}", ["groupId", "userId"], [], false, args, options);
790
803
  }
791
804
  };
805
+ var Integrations = class {
806
+ constructor(ctx) {
807
+ this.ctx = ctx;
808
+ }
809
+ list(arg, options) {
810
+ const args = arg;
811
+ return request(this.ctx, "GET", "/integrations", [], [], false, args, options);
812
+ }
813
+ get(arg, options) {
814
+ const args = typeof arg === "string" ? { integrationType: arg } : arg;
815
+ return request(this.ctx, "GET", "/integrations/{integrationType}", ["integrationType"], [], false, args, options);
816
+ }
817
+ upsert(arg, options) {
818
+ const args = typeof arg === "string" ? { integrationType: arg } : arg;
819
+ return request(this.ctx, "POST", "/integrations/{integrationType}", ["integrationType"], [], false, args, options);
820
+ }
821
+ delete(arg, options) {
822
+ const args = typeof arg === "string" ? { integrationType: arg } : arg;
823
+ return request(this.ctx, "DELETE", "/integrations/{integrationType}", ["integrationType"], [], false, args, options);
824
+ }
825
+ };
792
826
  var QuestionBank = class {
793
827
  constructor(ctx) {
794
828
  this.ctx = ctx;
@@ -865,12 +899,22 @@ var Examplary = class {
865
899
  this.users = new Users(this.ctx);
866
900
  this.practiceSpaces = new PracticeSpaces(this.ctx);
867
901
  this.sourceMaterials = new SourceMaterials(this.ctx);
902
+ this.items = new Items(this.ctx);
868
903
  this.folders = new Folders(this.ctx);
869
904
  this.groups = new Groups(this.ctx);
905
+ this.integrations = new Integrations(this.ctx);
870
906
  this.questionBank = new QuestionBank(this.ctx);
871
907
  this.prompts = new Prompts(this.ctx);
872
908
  this.jobs = new Jobs(this.ctx);
873
909
  }
910
+ postExamsId(arg, options) {
911
+ const args = typeof arg === "string" ? { id: arg } : arg;
912
+ return request(this.ctx, "POST", "/exams/{id}", ["id"], [], false, args, options);
913
+ }
914
+ postFoldersId(arg, options) {
915
+ const args = arg;
916
+ return request(this.ctx, "POST", "/folders/{id}", ["id"], [], true, args, options);
917
+ }
874
918
  getRubrics(arg, options) {
875
919
  const args = arg;
876
920
  return request(this.ctx, "GET", "/rubrics", [], [], false, args, options);