@instructure/athena-api-client 3.39.3 → 3.40.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.
Files changed (58) hide show
  1. package/README.md +12 -0
  2. package/dist/apis/AdminApi.d.ts +17 -1
  3. package/dist/apis/AdminApi.js +47 -0
  4. package/dist/apis/QuizzesApi.d.ts +30 -1
  5. package/dist/apis/QuizzesApi.js +87 -0
  6. package/dist/apis/ResourcesApi.d.ts +11 -2
  7. package/dist/apis/ResourcesApi.js +13 -3
  8. package/dist/apis/SharedQuizzesApi.d.ts +46 -0
  9. package/dist/apis/SharedQuizzesApi.js +115 -0
  10. package/dist/apis/index.d.ts +1 -0
  11. package/dist/apis/index.js +1 -0
  12. package/dist/esm/apis/AdminApi.d.ts +17 -1
  13. package/dist/esm/apis/AdminApi.js +48 -1
  14. package/dist/esm/apis/QuizzesApi.d.ts +30 -1
  15. package/dist/esm/apis/QuizzesApi.js +88 -1
  16. package/dist/esm/apis/ResourcesApi.d.ts +11 -2
  17. package/dist/esm/apis/ResourcesApi.js +12 -2
  18. package/dist/esm/apis/SharedQuizzesApi.d.ts +46 -0
  19. package/dist/esm/apis/SharedQuizzesApi.js +111 -0
  20. package/dist/esm/apis/index.d.ts +1 -0
  21. package/dist/esm/apis/index.js +1 -0
  22. package/dist/esm/models/AdminPaginatedQuizParticipantSessions.d.ts +39 -0
  23. package/dist/esm/models/AdminPaginatedQuizParticipantSessions.js +48 -0
  24. package/dist/esm/models/AdminQuizParticipantSessionListItem.d.ts +84 -0
  25. package/dist/esm/models/AdminQuizParticipantSessionListItem.js +80 -0
  26. package/dist/esm/models/AdminQuizParticipantSessionScore.d.ts +44 -0
  27. package/dist/esm/models/AdminQuizParticipantSessionScore.js +51 -0
  28. package/dist/esm/models/QuizSharing.d.ts +50 -0
  29. package/dist/esm/models/QuizSharing.js +55 -0
  30. package/dist/esm/models/ResourceListItem.d.ts +16 -3
  31. package/dist/esm/models/ResourceListItem.js +9 -0
  32. package/dist/esm/models/ResourceSharing.d.ts +44 -0
  33. package/dist/esm/models/ResourceSharing.js +51 -0
  34. package/dist/esm/models/SharedQuiz.d.ts +97 -0
  35. package/dist/esm/models/SharedQuiz.js +90 -0
  36. package/dist/esm/models/UpdateQuizSharingRequest.d.ts +32 -0
  37. package/dist/esm/models/UpdateQuizSharingRequest.js +43 -0
  38. package/dist/esm/models/index.d.ts +7 -0
  39. package/dist/esm/models/index.js +7 -0
  40. package/dist/models/AdminPaginatedQuizParticipantSessions.d.ts +39 -0
  41. package/dist/models/AdminPaginatedQuizParticipantSessions.js +55 -0
  42. package/dist/models/AdminQuizParticipantSessionListItem.d.ts +84 -0
  43. package/dist/models/AdminQuizParticipantSessionListItem.js +88 -0
  44. package/dist/models/AdminQuizParticipantSessionScore.d.ts +44 -0
  45. package/dist/models/AdminQuizParticipantSessionScore.js +58 -0
  46. package/dist/models/QuizSharing.d.ts +50 -0
  47. package/dist/models/QuizSharing.js +62 -0
  48. package/dist/models/ResourceListItem.d.ts +16 -3
  49. package/dist/models/ResourceListItem.js +9 -0
  50. package/dist/models/ResourceSharing.d.ts +44 -0
  51. package/dist/models/ResourceSharing.js +58 -0
  52. package/dist/models/SharedQuiz.d.ts +97 -0
  53. package/dist/models/SharedQuiz.js +98 -0
  54. package/dist/models/UpdateQuizSharingRequest.d.ts +32 -0
  55. package/dist/models/UpdateQuizSharingRequest.js +50 -0
  56. package/dist/models/index.d.ts +7 -0
  57. package/dist/models/index.js +7 -0
  58. package/package.json +1 -1
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Athena API
6
+ * REST API for the Athena system
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfQuizSharing = instanceOfQuizSharing;
17
+ exports.QuizSharingFromJSON = QuizSharingFromJSON;
18
+ exports.QuizSharingFromJSONTyped = QuizSharingFromJSONTyped;
19
+ exports.QuizSharingToJSON = QuizSharingToJSON;
20
+ exports.QuizSharingToJSONTyped = QuizSharingToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the QuizSharing interface.
23
+ */
24
+ function instanceOfQuizSharing(value) {
25
+ if (!('quizId' in value) || value['quizId'] === undefined)
26
+ return false;
27
+ if (!('isShared' in value) || value['isShared'] === undefined)
28
+ return false;
29
+ if (!('shareToken' in value) || value['shareToken'] === undefined)
30
+ return false;
31
+ if (!('sharedAt' in value) || value['sharedAt'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function QuizSharingFromJSON(json) {
36
+ return QuizSharingFromJSONTyped(json, false);
37
+ }
38
+ function QuizSharingFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'quizId': json['quizId'],
44
+ 'isShared': json['isShared'],
45
+ 'shareToken': json['shareToken'],
46
+ 'sharedAt': (json['sharedAt'] == null ? null : new Date(json['sharedAt'])),
47
+ };
48
+ }
49
+ function QuizSharingToJSON(json) {
50
+ return QuizSharingToJSONTyped(json, false);
51
+ }
52
+ function QuizSharingToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'quizId': value['quizId'],
58
+ 'isShared': value['isShared'],
59
+ 'shareToken': value['shareToken'],
60
+ 'sharedAt': value['sharedAt'] == null ? value['sharedAt'] : value['sharedAt'].toISOString(),
61
+ };
62
+ }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { ResourceSharing } from './ResourceSharing';
12
13
  import type { ResourceStudyObjective } from './ResourceStudyObjective';
13
14
  import type { ResourceChat } from './ResourceChat';
14
15
  import type { ResourceStudySpace } from './ResourceStudySpace';
@@ -61,6 +62,12 @@ export interface ResourceListItem {
61
62
  * @memberof ResourceListItem
62
63
  */
63
64
  createdAt: Date;
65
+ /**
66
+ * True when the caller generated this resource; false when they opened someone else's through a share link. Mirrors the `ownership` filter the list was requested with.
67
+ * @type {boolean}
68
+ * @memberof ResourceListItem
69
+ */
70
+ isOwner: boolean;
64
71
  /**
65
72
  * Questions (or cards) persisted so far.
66
73
  * @type {number}
@@ -94,19 +101,19 @@ export interface ResourceListItem {
94
101
  */
95
102
  courseId: string | null;
96
103
  /**
97
- * The chat this resource was generated in. Null when that chat has been deleted.
104
+ * The chat this resource was generated in. Null when that chat has been deleted, and always null on a shared resource.
98
105
  * @type {ResourceChat}
99
106
  * @memberof ResourceListItem
100
107
  */
101
108
  chat: ResourceChat | null;
102
109
  /**
103
- * The study objective the originating chat was filed under.
110
+ * The study objective the originating chat was filed under. Always null on a shared resource.
104
111
  * @type {ResourceStudyObjective}
105
112
  * @memberof ResourceListItem
106
113
  */
107
114
  studyObjective: ResourceStudyObjective | null;
108
115
  /**
109
- * The study space this resource belongs to: the objective's space when it has one, else the learner's space for the attributed course.
116
+ * The study space this resource belongs to: the objective's space when it has one, else the learner's space for the attributed course. Always null on a shared resource.
110
117
  * @type {ResourceStudySpace}
111
118
  * @memberof ResourceListItem
112
119
  */
@@ -117,6 +124,12 @@ export interface ResourceListItem {
117
124
  * @memberof ResourceListItem
118
125
  */
119
126
  activity: ResourceActivity;
127
+ /**
128
+ * Link-sharing state and how many other learners have used the link.
129
+ * @type {ResourceSharing}
130
+ * @memberof ResourceListItem
131
+ */
132
+ sharing: ResourceSharing;
120
133
  }
121
134
  /**
122
135
  * @export
@@ -19,6 +19,7 @@ exports.ResourceListItemFromJSON = ResourceListItemFromJSON;
19
19
  exports.ResourceListItemFromJSONTyped = ResourceListItemFromJSONTyped;
20
20
  exports.ResourceListItemToJSON = ResourceListItemToJSON;
21
21
  exports.ResourceListItemToJSONTyped = ResourceListItemToJSONTyped;
22
+ const ResourceSharing_1 = require("./ResourceSharing");
22
23
  const ResourceStudyObjective_1 = require("./ResourceStudyObjective");
23
24
  const ResourceChat_1 = require("./ResourceChat");
24
25
  const ResourceStudySpace_1 = require("./ResourceStudySpace");
@@ -56,6 +57,8 @@ function instanceOfResourceListItem(value) {
56
57
  return false;
57
58
  if (!('createdAt' in value) || value['createdAt'] === undefined)
58
59
  return false;
60
+ if (!('isOwner' in value) || value['isOwner'] === undefined)
61
+ return false;
59
62
  if (!('questionCount' in value) || value['questionCount'] === undefined)
60
63
  return false;
61
64
  if (!('questionTypeCounts' in value) || value['questionTypeCounts'] === undefined)
@@ -74,6 +77,8 @@ function instanceOfResourceListItem(value) {
74
77
  return false;
75
78
  if (!('activity' in value) || value['activity'] === undefined)
76
79
  return false;
80
+ if (!('sharing' in value) || value['sharing'] === undefined)
81
+ return false;
77
82
  return true;
78
83
  }
79
84
  function ResourceListItemFromJSON(json) {
@@ -91,6 +96,7 @@ function ResourceListItemFromJSONTyped(json, ignoreDiscriminator) {
91
96
  'generationStatus': json['generationStatus'],
92
97
  'expectedQuestionCount': json['expectedQuestionCount'],
93
98
  'createdAt': (new Date(json['createdAt'])),
99
+ 'isOwner': json['isOwner'],
94
100
  'questionCount': json['questionCount'],
95
101
  'questionTypeCounts': json['questionTypeCounts'],
96
102
  'topics': json['topics'],
@@ -100,6 +106,7 @@ function ResourceListItemFromJSONTyped(json, ignoreDiscriminator) {
100
106
  'studyObjective': (0, ResourceStudyObjective_1.ResourceStudyObjectiveFromJSON)(json['studyObjective']),
101
107
  'studySpace': (0, ResourceStudySpace_1.ResourceStudySpaceFromJSON)(json['studySpace']),
102
108
  'activity': (0, ResourceActivity_1.ResourceActivityFromJSON)(json['activity']),
109
+ 'sharing': (0, ResourceSharing_1.ResourceSharingFromJSON)(json['sharing']),
103
110
  };
104
111
  }
105
112
  function ResourceListItemToJSON(json) {
@@ -117,6 +124,7 @@ function ResourceListItemToJSONTyped(value, ignoreDiscriminator = false) {
117
124
  'generationStatus': value['generationStatus'],
118
125
  'expectedQuestionCount': value['expectedQuestionCount'],
119
126
  'createdAt': value['createdAt'].toISOString(),
127
+ 'isOwner': value['isOwner'],
120
128
  'questionCount': value['questionCount'],
121
129
  'questionTypeCounts': value['questionTypeCounts'],
122
130
  'topics': value['topics'],
@@ -126,5 +134,6 @@ function ResourceListItemToJSONTyped(value, ignoreDiscriminator = false) {
126
134
  'studyObjective': (0, ResourceStudyObjective_1.ResourceStudyObjectiveToJSON)(value['studyObjective']),
127
135
  'studySpace': (0, ResourceStudySpace_1.ResourceStudySpaceToJSON)(value['studySpace']),
128
136
  'activity': (0, ResourceActivity_1.ResourceActivityToJSON)(value['activity']),
137
+ 'sharing': (0, ResourceSharing_1.ResourceSharingToJSON)(value['sharing']),
129
138
  };
130
139
  }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Athena API
3
+ * REST API for the Athena system
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ResourceSharing
16
+ */
17
+ export interface ResourceSharing {
18
+ /**
19
+ * Whether other learners can currently open this by link.
20
+ * @type {boolean}
21
+ * @memberof ResourceSharing
22
+ */
23
+ isShared: boolean;
24
+ /**
25
+ * The live share link token. Null while sharing is off, including for a shared resource whose owner has since revoked the link.
26
+ * @type {string}
27
+ * @memberof ResourceSharing
28
+ */
29
+ shareToken: string | null;
30
+ /**
31
+ * When the current link was issued. Null while sharing is off.
32
+ * @type {Date}
33
+ * @memberof ResourceSharing
34
+ */
35
+ sharedAt: Date | null;
36
+ }
37
+ /**
38
+ * Check if a given object implements the ResourceSharing interface.
39
+ */
40
+ export declare function instanceOfResourceSharing(value: object): value is ResourceSharing;
41
+ export declare function ResourceSharingFromJSON(json: any): ResourceSharing;
42
+ export declare function ResourceSharingFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceSharing;
43
+ export declare function ResourceSharingToJSON(json: any): ResourceSharing;
44
+ export declare function ResourceSharingToJSONTyped(value?: ResourceSharing | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Athena API
6
+ * REST API for the Athena system
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfResourceSharing = instanceOfResourceSharing;
17
+ exports.ResourceSharingFromJSON = ResourceSharingFromJSON;
18
+ exports.ResourceSharingFromJSONTyped = ResourceSharingFromJSONTyped;
19
+ exports.ResourceSharingToJSON = ResourceSharingToJSON;
20
+ exports.ResourceSharingToJSONTyped = ResourceSharingToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ResourceSharing interface.
23
+ */
24
+ function instanceOfResourceSharing(value) {
25
+ if (!('isShared' in value) || value['isShared'] === undefined)
26
+ return false;
27
+ if (!('shareToken' in value) || value['shareToken'] === undefined)
28
+ return false;
29
+ if (!('sharedAt' in value) || value['sharedAt'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function ResourceSharingFromJSON(json) {
34
+ return ResourceSharingFromJSONTyped(json, false);
35
+ }
36
+ function ResourceSharingFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'isShared': json['isShared'],
42
+ 'shareToken': json['shareToken'],
43
+ 'sharedAt': (json['sharedAt'] == null ? null : new Date(json['sharedAt'])),
44
+ };
45
+ }
46
+ function ResourceSharingToJSON(json) {
47
+ return ResourceSharingToJSONTyped(json, false);
48
+ }
49
+ function ResourceSharingToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'isShared': value['isShared'],
55
+ 'shareToken': value['shareToken'],
56
+ 'sharedAt': value['sharedAt'] == null ? value['sharedAt'] : value['sharedAt'].toISOString(),
57
+ };
58
+ }
@@ -0,0 +1,97 @@
1
+ /**
2
+ * Athena API
3
+ * REST API for the Athena system
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface SharedQuiz
16
+ */
17
+ export interface SharedQuiz {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SharedQuiz
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SharedQuiz
28
+ */
29
+ title: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof SharedQuiz
34
+ */
35
+ topic: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof SharedQuiz
40
+ */
41
+ mode: SharedQuizModeEnum;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof SharedQuiz
46
+ */
47
+ generationStatus: SharedQuizGenerationStatusEnum;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof SharedQuiz
52
+ */
53
+ expectedQuestionCount: number | null;
54
+ /**
55
+ * Questions (or cards) persisted so far.
56
+ * @type {number}
57
+ * @memberof SharedQuiz
58
+ */
59
+ questionCount: number;
60
+ /**
61
+ * True when the caller is the quiz's owner following their own link.
62
+ * @type {boolean}
63
+ * @memberof SharedQuiz
64
+ */
65
+ isOwner: boolean;
66
+ /**
67
+ *
68
+ * @type {Date}
69
+ * @memberof SharedQuiz
70
+ */
71
+ createdAt: Date;
72
+ }
73
+ /**
74
+ * @export
75
+ */
76
+ export declare const SharedQuizModeEnum: {
77
+ readonly Quiz: "quiz";
78
+ readonly Flashcards: "flashcards";
79
+ };
80
+ export type SharedQuizModeEnum = typeof SharedQuizModeEnum[keyof typeof SharedQuizModeEnum];
81
+ /**
82
+ * @export
83
+ */
84
+ export declare const SharedQuizGenerationStatusEnum: {
85
+ readonly Generating: "generating";
86
+ readonly Ready: "ready";
87
+ readonly Failed: "failed";
88
+ };
89
+ export type SharedQuizGenerationStatusEnum = typeof SharedQuizGenerationStatusEnum[keyof typeof SharedQuizGenerationStatusEnum];
90
+ /**
91
+ * Check if a given object implements the SharedQuiz interface.
92
+ */
93
+ export declare function instanceOfSharedQuiz(value: object): value is SharedQuiz;
94
+ export declare function SharedQuizFromJSON(json: any): SharedQuiz;
95
+ export declare function SharedQuizFromJSONTyped(json: any, ignoreDiscriminator: boolean): SharedQuiz;
96
+ export declare function SharedQuizToJSON(json: any): SharedQuiz;
97
+ export declare function SharedQuizToJSONTyped(value?: SharedQuiz | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,98 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Athena API
6
+ * REST API for the Athena system
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.SharedQuizGenerationStatusEnum = exports.SharedQuizModeEnum = void 0;
17
+ exports.instanceOfSharedQuiz = instanceOfSharedQuiz;
18
+ exports.SharedQuizFromJSON = SharedQuizFromJSON;
19
+ exports.SharedQuizFromJSONTyped = SharedQuizFromJSONTyped;
20
+ exports.SharedQuizToJSON = SharedQuizToJSON;
21
+ exports.SharedQuizToJSONTyped = SharedQuizToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.SharedQuizModeEnum = {
26
+ Quiz: 'quiz',
27
+ Flashcards: 'flashcards'
28
+ };
29
+ /**
30
+ * @export
31
+ */
32
+ exports.SharedQuizGenerationStatusEnum = {
33
+ Generating: 'generating',
34
+ Ready: 'ready',
35
+ Failed: 'failed'
36
+ };
37
+ /**
38
+ * Check if a given object implements the SharedQuiz interface.
39
+ */
40
+ function instanceOfSharedQuiz(value) {
41
+ if (!('id' in value) || value['id'] === undefined)
42
+ return false;
43
+ if (!('title' in value) || value['title'] === undefined)
44
+ return false;
45
+ if (!('topic' in value) || value['topic'] === undefined)
46
+ return false;
47
+ if (!('mode' in value) || value['mode'] === undefined)
48
+ return false;
49
+ if (!('generationStatus' in value) || value['generationStatus'] === undefined)
50
+ return false;
51
+ if (!('expectedQuestionCount' in value) || value['expectedQuestionCount'] === undefined)
52
+ return false;
53
+ if (!('questionCount' in value) || value['questionCount'] === undefined)
54
+ return false;
55
+ if (!('isOwner' in value) || value['isOwner'] === undefined)
56
+ return false;
57
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
58
+ return false;
59
+ return true;
60
+ }
61
+ function SharedQuizFromJSON(json) {
62
+ return SharedQuizFromJSONTyped(json, false);
63
+ }
64
+ function SharedQuizFromJSONTyped(json, ignoreDiscriminator) {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+ 'id': json['id'],
70
+ 'title': json['title'],
71
+ 'topic': json['topic'],
72
+ 'mode': json['mode'],
73
+ 'generationStatus': json['generationStatus'],
74
+ 'expectedQuestionCount': json['expectedQuestionCount'],
75
+ 'questionCount': json['questionCount'],
76
+ 'isOwner': json['isOwner'],
77
+ 'createdAt': (new Date(json['createdAt'])),
78
+ };
79
+ }
80
+ function SharedQuizToJSON(json) {
81
+ return SharedQuizToJSONTyped(json, false);
82
+ }
83
+ function SharedQuizToJSONTyped(value, ignoreDiscriminator = false) {
84
+ if (value == null) {
85
+ return value;
86
+ }
87
+ return {
88
+ 'id': value['id'],
89
+ 'title': value['title'],
90
+ 'topic': value['topic'],
91
+ 'mode': value['mode'],
92
+ 'generationStatus': value['generationStatus'],
93
+ 'expectedQuestionCount': value['expectedQuestionCount'],
94
+ 'questionCount': value['questionCount'],
95
+ 'isOwner': value['isOwner'],
96
+ 'createdAt': value['createdAt'].toISOString(),
97
+ };
98
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Athena API
3
+ * REST API for the Athena system
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface UpdateQuizSharingRequest
16
+ */
17
+ export interface UpdateQuizSharingRequest {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof UpdateQuizSharingRequest
22
+ */
23
+ enabled: boolean;
24
+ }
25
+ /**
26
+ * Check if a given object implements the UpdateQuizSharingRequest interface.
27
+ */
28
+ export declare function instanceOfUpdateQuizSharingRequest(value: object): value is UpdateQuizSharingRequest;
29
+ export declare function UpdateQuizSharingRequestFromJSON(json: any): UpdateQuizSharingRequest;
30
+ export declare function UpdateQuizSharingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateQuizSharingRequest;
31
+ export declare function UpdateQuizSharingRequestToJSON(json: any): UpdateQuizSharingRequest;
32
+ export declare function UpdateQuizSharingRequestToJSONTyped(value?: UpdateQuizSharingRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Athena API
6
+ * REST API for the Athena system
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfUpdateQuizSharingRequest = instanceOfUpdateQuizSharingRequest;
17
+ exports.UpdateQuizSharingRequestFromJSON = UpdateQuizSharingRequestFromJSON;
18
+ exports.UpdateQuizSharingRequestFromJSONTyped = UpdateQuizSharingRequestFromJSONTyped;
19
+ exports.UpdateQuizSharingRequestToJSON = UpdateQuizSharingRequestToJSON;
20
+ exports.UpdateQuizSharingRequestToJSONTyped = UpdateQuizSharingRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the UpdateQuizSharingRequest interface.
23
+ */
24
+ function instanceOfUpdateQuizSharingRequest(value) {
25
+ if (!('enabled' in value) || value['enabled'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function UpdateQuizSharingRequestFromJSON(json) {
30
+ return UpdateQuizSharingRequestFromJSONTyped(json, false);
31
+ }
32
+ function UpdateQuizSharingRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'enabled': json['enabled'],
38
+ };
39
+ }
40
+ function UpdateQuizSharingRequestToJSON(json) {
41
+ return UpdateQuizSharingRequestToJSONTyped(json, false);
42
+ }
43
+ function UpdateQuizSharingRequestToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'enabled': value['enabled'],
49
+ };
50
+ }
@@ -23,12 +23,15 @@ export * from './AdminLastExchange';
23
23
  export * from './AdminPaginatedActiveStreaks';
24
24
  export * from './AdminPaginatedChats';
25
25
  export * from './AdminPaginatedLastExchanges';
26
+ export * from './AdminPaginatedQuizParticipantSessions';
26
27
  export * from './AdminPaginatedQuizSessions';
27
28
  export * from './AdminPaginatedStudyObjectiveUserCounts';
28
29
  export * from './AdminPaginatedStudyObjectives';
29
30
  export * from './AdminPaginatedTaxonomyEnrollments';
30
31
  export * from './AdminQuizGeneration';
31
32
  export * from './AdminQuizGenerationInput';
33
+ export * from './AdminQuizParticipantSessionListItem';
34
+ export * from './AdminQuizParticipantSessionScore';
32
35
  export * from './AdminQuizSessionListItem';
33
36
  export * from './AdminQuizSessionScore';
34
37
  export * from './AdminQuizSourceFile';
@@ -127,17 +130,20 @@ export * from './QuizSession';
127
130
  export * from './QuizSessionListItem';
128
131
  export * from './QuizSessionScore';
129
132
  export * from './QuizSessionSummary';
133
+ export * from './QuizSharing';
130
134
  export * from './QuizWithQuestions';
131
135
  export * from './RecordQuizQuestionViewRequest';
132
136
  export * from './ResourceActivity';
133
137
  export * from './ResourceChat';
134
138
  export * from './ResourceListItem';
135
139
  export * from './ResourceSession';
140
+ export * from './ResourceSharing';
136
141
  export * from './ResourceStudyObjective';
137
142
  export * from './ResourceStudySpace';
138
143
  export * from './Score';
139
144
  export * from './ScoreByTypeValue';
140
145
  export * from './ServiceToken';
146
+ export * from './SharedQuiz';
141
147
  export * from './StudyObjective';
142
148
  export * from './StudyObjectiveCanvasDocument';
143
149
  export * from './StudyObjectiveConceptAttachment';
@@ -174,6 +180,7 @@ export * from './UpdateChatRequest';
174
180
  export * from './UpdateFeatureDto';
175
181
  export * from './UpdatePlanDto';
176
182
  export * from './UpdateQuizSessionRequest';
183
+ export * from './UpdateQuizSharingRequest';
177
184
  export * from './UpdateStudyObjectiveDto';
178
185
  export * from './UpdateStudySpaceDto';
179
186
  export * from './UpdateTokenRequest';
@@ -41,12 +41,15 @@ __exportStar(require("./AdminLastExchange"), exports);
41
41
  __exportStar(require("./AdminPaginatedActiveStreaks"), exports);
42
42
  __exportStar(require("./AdminPaginatedChats"), exports);
43
43
  __exportStar(require("./AdminPaginatedLastExchanges"), exports);
44
+ __exportStar(require("./AdminPaginatedQuizParticipantSessions"), exports);
44
45
  __exportStar(require("./AdminPaginatedQuizSessions"), exports);
45
46
  __exportStar(require("./AdminPaginatedStudyObjectiveUserCounts"), exports);
46
47
  __exportStar(require("./AdminPaginatedStudyObjectives"), exports);
47
48
  __exportStar(require("./AdminPaginatedTaxonomyEnrollments"), exports);
48
49
  __exportStar(require("./AdminQuizGeneration"), exports);
49
50
  __exportStar(require("./AdminQuizGenerationInput"), exports);
51
+ __exportStar(require("./AdminQuizParticipantSessionListItem"), exports);
52
+ __exportStar(require("./AdminQuizParticipantSessionScore"), exports);
50
53
  __exportStar(require("./AdminQuizSessionListItem"), exports);
51
54
  __exportStar(require("./AdminQuizSessionScore"), exports);
52
55
  __exportStar(require("./AdminQuizSourceFile"), exports);
@@ -145,17 +148,20 @@ __exportStar(require("./QuizSession"), exports);
145
148
  __exportStar(require("./QuizSessionListItem"), exports);
146
149
  __exportStar(require("./QuizSessionScore"), exports);
147
150
  __exportStar(require("./QuizSessionSummary"), exports);
151
+ __exportStar(require("./QuizSharing"), exports);
148
152
  __exportStar(require("./QuizWithQuestions"), exports);
149
153
  __exportStar(require("./RecordQuizQuestionViewRequest"), exports);
150
154
  __exportStar(require("./ResourceActivity"), exports);
151
155
  __exportStar(require("./ResourceChat"), exports);
152
156
  __exportStar(require("./ResourceListItem"), exports);
153
157
  __exportStar(require("./ResourceSession"), exports);
158
+ __exportStar(require("./ResourceSharing"), exports);
154
159
  __exportStar(require("./ResourceStudyObjective"), exports);
155
160
  __exportStar(require("./ResourceStudySpace"), exports);
156
161
  __exportStar(require("./Score"), exports);
157
162
  __exportStar(require("./ScoreByTypeValue"), exports);
158
163
  __exportStar(require("./ServiceToken"), exports);
164
+ __exportStar(require("./SharedQuiz"), exports);
159
165
  __exportStar(require("./StudyObjective"), exports);
160
166
  __exportStar(require("./StudyObjectiveCanvasDocument"), exports);
161
167
  __exportStar(require("./StudyObjectiveConceptAttachment"), exports);
@@ -192,6 +198,7 @@ __exportStar(require("./UpdateChatRequest"), exports);
192
198
  __exportStar(require("./UpdateFeatureDto"), exports);
193
199
  __exportStar(require("./UpdatePlanDto"), exports);
194
200
  __exportStar(require("./UpdateQuizSessionRequest"), exports);
201
+ __exportStar(require("./UpdateQuizSharingRequest"), exports);
195
202
  __exportStar(require("./UpdateStudyObjectiveDto"), exports);
196
203
  __exportStar(require("./UpdateStudySpaceDto"), exports);
197
204
  __exportStar(require("./UpdateTokenRequest"), exports);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@instructure/athena-api-client",
3
3
  "private": false,
4
- "version": "3.39.3",
4
+ "version": "3.40.0",
5
5
  "description": "OpenAPI client for the Athena API",
6
6
  "author": "Instructure",
7
7
  "repository": {