@examplary/sdk 2.6.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.js CHANGED
@@ -338,6 +338,10 @@ var ExamsSessions = class {
338
338
  const args = arg;
339
339
  return request(this.ctx, "DELETE", "/exams/{examId}/sessions/{sessionId}", ["examId", "sessionId"], [], false, args, options);
340
340
  }
341
+ update(arg, options) {
342
+ const args = arg;
343
+ return request(this.ctx, "PATCH", "/exams/{examId}/sessions/{sessionId}", ["examId", "sessionId"], [], true, args, options);
344
+ }
341
345
  saveFeedback(arg, options) {
342
346
  const args = arg;
343
347
  return request(this.ctx, "POST", "/exams/{examId}/sessions/{sessionId}/feedback", ["examId", "sessionId"], [], true, args, options);
@@ -422,7 +426,7 @@ var Exams = class {
422
426
  }
423
427
  update(arg, options) {
424
428
  const args = typeof arg === "string" ? { id: arg } : arg;
425
- return request(this.ctx, "POST", "/exams/{id}", ["id"], [], false, args, options);
429
+ return request(this.ctx, "PATCH", "/exams/{id}", ["id"], [], false, args, options);
426
430
  }
427
431
  delete(arg, options) {
428
432
  const args = typeof arg === "string" ? { id: arg } : arg;
@@ -766,6 +770,15 @@ var SourceMaterials = class {
766
770
  return request(this.ctx, "POST", "/source-materials/{sourceMaterialId}/slice", ["sourceMaterialId"], [], true, args, options);
767
771
  }
768
772
  };
773
+ var Items = class {
774
+ constructor(ctx) {
775
+ this.ctx = ctx;
776
+ }
777
+ list(arg, options) {
778
+ const args = arg;
779
+ return request(this.ctx, "GET", "/items", [], ["type", "folder"], false, args, options);
780
+ }
781
+ };
769
782
  var Folders = class {
770
783
  constructor(ctx) {
771
784
  this.ctx = ctx;
@@ -780,7 +793,7 @@ var Folders = class {
780
793
  }
781
794
  update(arg, options) {
782
795
  const args = arg;
783
- return request(this.ctx, "POST", "/folders/{id}", ["id"], [], true, args, options);
796
+ return request(this.ctx, "PATCH", "/folders/{id}", ["id"], [], true, args, options);
784
797
  }
785
798
  delete(arg, options) {
786
799
  const args = typeof arg === "string" ? { id: arg } : arg;
@@ -824,6 +837,27 @@ var Groups = class {
824
837
  return request(this.ctx, "DELETE", "/groups/{groupId}/members/{userId}", ["groupId", "userId"], [], false, args, options);
825
838
  }
826
839
  };
840
+ var Integrations = class {
841
+ constructor(ctx) {
842
+ this.ctx = ctx;
843
+ }
844
+ list(arg, options) {
845
+ const args = arg;
846
+ return request(this.ctx, "GET", "/integrations", [], [], false, args, options);
847
+ }
848
+ get(arg, options) {
849
+ const args = typeof arg === "string" ? { integrationType: arg } : arg;
850
+ return request(this.ctx, "GET", "/integrations/{integrationType}", ["integrationType"], [], false, args, options);
851
+ }
852
+ upsert(arg, options) {
853
+ const args = typeof arg === "string" ? { integrationType: arg } : arg;
854
+ return request(this.ctx, "POST", "/integrations/{integrationType}", ["integrationType"], [], false, args, options);
855
+ }
856
+ delete(arg, options) {
857
+ const args = typeof arg === "string" ? { integrationType: arg } : arg;
858
+ return request(this.ctx, "DELETE", "/integrations/{integrationType}", ["integrationType"], [], false, args, options);
859
+ }
860
+ };
827
861
  var QuestionBank = class {
828
862
  constructor(ctx) {
829
863
  this.ctx = ctx;
@@ -900,12 +934,22 @@ var Examplary = class {
900
934
  this.users = new Users(this.ctx);
901
935
  this.practiceSpaces = new PracticeSpaces(this.ctx);
902
936
  this.sourceMaterials = new SourceMaterials(this.ctx);
937
+ this.items = new Items(this.ctx);
903
938
  this.folders = new Folders(this.ctx);
904
939
  this.groups = new Groups(this.ctx);
940
+ this.integrations = new Integrations(this.ctx);
905
941
  this.questionBank = new QuestionBank(this.ctx);
906
942
  this.prompts = new Prompts(this.ctx);
907
943
  this.jobs = new Jobs(this.ctx);
908
944
  }
945
+ postExamsId(arg, options) {
946
+ const args = typeof arg === "string" ? { id: arg } : arg;
947
+ return request(this.ctx, "POST", "/exams/{id}", ["id"], [], false, args, options);
948
+ }
949
+ postFoldersId(arg, options) {
950
+ const args = arg;
951
+ return request(this.ctx, "POST", "/folders/{id}", ["id"], [], true, args, options);
952
+ }
909
953
  getRubrics(arg, options) {
910
954
  const args = arg;
911
955
  return request(this.ctx, "GET", "/rubrics", [], [], false, args, options);