@instructure/athena-api-client 2.12.1 → 2.14.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 (34) hide show
  1. package/README.md +5 -0
  2. package/dist/apis/QuizSessionsApi.d.ts +35 -1
  3. package/dist/apis/QuizSessionsApi.js +65 -1
  4. package/dist/esm/apis/QuizSessionsApi.d.ts +35 -1
  5. package/dist/esm/apis/QuizSessionsApi.js +65 -1
  6. package/dist/esm/models/ChatRequest.d.ts +22 -0
  7. package/dist/esm/models/ChatRequest.js +13 -0
  8. package/dist/esm/models/ChatRequestMessageMetadata.d.ts +44 -0
  9. package/dist/esm/models/ChatRequestMessageMetadata.js +47 -0
  10. package/dist/esm/models/CreateChatRequest.d.ts +13 -1
  11. package/dist/esm/models/CreateChatRequest.js +4 -0
  12. package/dist/esm/models/PaginatedQuizSessions.d.ts +39 -0
  13. package/dist/esm/models/PaginatedQuizSessions.js +48 -0
  14. package/dist/esm/models/QuizSessionListItem.d.ts +85 -0
  15. package/dist/esm/models/QuizSessionListItem.js +81 -0
  16. package/dist/esm/models/QuizSessionScore.d.ts +38 -0
  17. package/dist/esm/models/QuizSessionScore.js +47 -0
  18. package/dist/esm/models/index.d.ts +4 -0
  19. package/dist/esm/models/index.js +4 -0
  20. package/dist/models/ChatRequest.d.ts +22 -0
  21. package/dist/models/ChatRequest.js +14 -0
  22. package/dist/models/ChatRequestMessageMetadata.d.ts +44 -0
  23. package/dist/models/ChatRequestMessageMetadata.js +54 -0
  24. package/dist/models/CreateChatRequest.d.ts +13 -1
  25. package/dist/models/CreateChatRequest.js +4 -0
  26. package/dist/models/PaginatedQuizSessions.d.ts +39 -0
  27. package/dist/models/PaginatedQuizSessions.js +55 -0
  28. package/dist/models/QuizSessionListItem.d.ts +85 -0
  29. package/dist/models/QuizSessionListItem.js +89 -0
  30. package/dist/models/QuizSessionScore.d.ts +38 -0
  31. package/dist/models/QuizSessionScore.js +54 -0
  32. package/dist/models/index.d.ts +4 -0
  33. package/dist/models/index.js +4 -0
  34. package/package.json +1 -1
@@ -0,0 +1,85 @@
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
+ import type { Quiz } from './Quiz';
13
+ import type { QuizSessionScore } from './QuizSessionScore';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface QuizSessionListItem
18
+ */
19
+ export interface QuizSessionListItem {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof QuizSessionListItem
24
+ */
25
+ id: string;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof QuizSessionListItem
30
+ */
31
+ quizId: string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof QuizSessionListItem
36
+ */
37
+ accountUserId: string;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof QuizSessionListItem
42
+ */
43
+ status: QuizSessionListItemStatusEnum;
44
+ /**
45
+ *
46
+ * @type {Date}
47
+ * @memberof QuizSessionListItem
48
+ */
49
+ startedAt: Date;
50
+ /**
51
+ *
52
+ * @type {Date}
53
+ * @memberof QuizSessionListItem
54
+ */
55
+ completedAt: Date | null;
56
+ /**
57
+ *
58
+ * @type {Quiz}
59
+ * @memberof QuizSessionListItem
60
+ */
61
+ quiz: Quiz;
62
+ /**
63
+ *
64
+ * @type {QuizSessionScore}
65
+ * @memberof QuizSessionListItem
66
+ */
67
+ score: QuizSessionScore;
68
+ }
69
+ /**
70
+ * @export
71
+ */
72
+ export declare const QuizSessionListItemStatusEnum: {
73
+ readonly Active: "active";
74
+ readonly Completed: "completed";
75
+ readonly Abandoned: "abandoned";
76
+ };
77
+ export type QuizSessionListItemStatusEnum = typeof QuizSessionListItemStatusEnum[keyof typeof QuizSessionListItemStatusEnum];
78
+ /**
79
+ * Check if a given object implements the QuizSessionListItem interface.
80
+ */
81
+ export declare function instanceOfQuizSessionListItem(value: object): value is QuizSessionListItem;
82
+ export declare function QuizSessionListItemFromJSON(json: any): QuizSessionListItem;
83
+ export declare function QuizSessionListItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuizSessionListItem;
84
+ export declare function QuizSessionListItemToJSON(json: any): QuizSessionListItem;
85
+ export declare function QuizSessionListItemToJSONTyped(value?: QuizSessionListItem | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,89 @@
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.QuizSessionListItemStatusEnum = void 0;
17
+ exports.instanceOfQuizSessionListItem = instanceOfQuizSessionListItem;
18
+ exports.QuizSessionListItemFromJSON = QuizSessionListItemFromJSON;
19
+ exports.QuizSessionListItemFromJSONTyped = QuizSessionListItemFromJSONTyped;
20
+ exports.QuizSessionListItemToJSON = QuizSessionListItemToJSON;
21
+ exports.QuizSessionListItemToJSONTyped = QuizSessionListItemToJSONTyped;
22
+ const Quiz_1 = require("./Quiz");
23
+ const QuizSessionScore_1 = require("./QuizSessionScore");
24
+ /**
25
+ * @export
26
+ */
27
+ exports.QuizSessionListItemStatusEnum = {
28
+ Active: 'active',
29
+ Completed: 'completed',
30
+ Abandoned: 'abandoned'
31
+ };
32
+ /**
33
+ * Check if a given object implements the QuizSessionListItem interface.
34
+ */
35
+ function instanceOfQuizSessionListItem(value) {
36
+ if (!('id' in value) || value['id'] === undefined)
37
+ return false;
38
+ if (!('quizId' in value) || value['quizId'] === undefined)
39
+ return false;
40
+ if (!('accountUserId' in value) || value['accountUserId'] === undefined)
41
+ return false;
42
+ if (!('status' in value) || value['status'] === undefined)
43
+ return false;
44
+ if (!('startedAt' in value) || value['startedAt'] === undefined)
45
+ return false;
46
+ if (!('completedAt' in value) || value['completedAt'] === undefined)
47
+ return false;
48
+ if (!('quiz' in value) || value['quiz'] === undefined)
49
+ return false;
50
+ if (!('score' in value) || value['score'] === undefined)
51
+ return false;
52
+ return true;
53
+ }
54
+ function QuizSessionListItemFromJSON(json) {
55
+ return QuizSessionListItemFromJSONTyped(json, false);
56
+ }
57
+ function QuizSessionListItemFromJSONTyped(json, ignoreDiscriminator) {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+ 'id': json['id'],
63
+ 'quizId': json['quizId'],
64
+ 'accountUserId': json['accountUserId'],
65
+ 'status': json['status'],
66
+ 'startedAt': (new Date(json['startedAt'])),
67
+ 'completedAt': (json['completedAt'] == null ? null : new Date(json['completedAt'])),
68
+ 'quiz': (0, Quiz_1.QuizFromJSON)(json['quiz']),
69
+ 'score': (0, QuizSessionScore_1.QuizSessionScoreFromJSON)(json['score']),
70
+ };
71
+ }
72
+ function QuizSessionListItemToJSON(json) {
73
+ return QuizSessionListItemToJSONTyped(json, false);
74
+ }
75
+ function QuizSessionListItemToJSONTyped(value, ignoreDiscriminator = false) {
76
+ if (value == null) {
77
+ return value;
78
+ }
79
+ return {
80
+ 'id': value['id'],
81
+ 'quizId': value['quizId'],
82
+ 'accountUserId': value['accountUserId'],
83
+ 'status': value['status'],
84
+ 'startedAt': value['startedAt'].toISOString(),
85
+ 'completedAt': value['completedAt'] == null ? value['completedAt'] : value['completedAt'].toISOString(),
86
+ 'quiz': (0, Quiz_1.QuizToJSON)(value['quiz']),
87
+ 'score': (0, QuizSessionScore_1.QuizSessionScoreToJSON)(value['score']),
88
+ };
89
+ }
@@ -0,0 +1,38 @@
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 QuizSessionScore
16
+ */
17
+ export interface QuizSessionScore {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof QuizSessionScore
22
+ */
23
+ totalCorrect: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof QuizSessionScore
28
+ */
29
+ totalQuestions: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the QuizSessionScore interface.
33
+ */
34
+ export declare function instanceOfQuizSessionScore(value: object): value is QuizSessionScore;
35
+ export declare function QuizSessionScoreFromJSON(json: any): QuizSessionScore;
36
+ export declare function QuizSessionScoreFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuizSessionScore;
37
+ export declare function QuizSessionScoreToJSON(json: any): QuizSessionScore;
38
+ export declare function QuizSessionScoreToJSONTyped(value?: QuizSessionScore | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
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.instanceOfQuizSessionScore = instanceOfQuizSessionScore;
17
+ exports.QuizSessionScoreFromJSON = QuizSessionScoreFromJSON;
18
+ exports.QuizSessionScoreFromJSONTyped = QuizSessionScoreFromJSONTyped;
19
+ exports.QuizSessionScoreToJSON = QuizSessionScoreToJSON;
20
+ exports.QuizSessionScoreToJSONTyped = QuizSessionScoreToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the QuizSessionScore interface.
23
+ */
24
+ function instanceOfQuizSessionScore(value) {
25
+ if (!('totalCorrect' in value) || value['totalCorrect'] === undefined)
26
+ return false;
27
+ if (!('totalQuestions' in value) || value['totalQuestions'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function QuizSessionScoreFromJSON(json) {
32
+ return QuizSessionScoreFromJSONTyped(json, false);
33
+ }
34
+ function QuizSessionScoreFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'totalCorrect': json['totalCorrect'],
40
+ 'totalQuestions': json['totalQuestions'],
41
+ };
42
+ }
43
+ function QuizSessionScoreToJSON(json) {
44
+ return QuizSessionScoreToJSONTyped(json, false);
45
+ }
46
+ function QuizSessionScoreToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'totalCorrect': value['totalCorrect'],
52
+ 'totalQuestions': value['totalQuestions'],
53
+ };
54
+ }
@@ -15,6 +15,7 @@ export * from './ChatAnalysis';
15
15
  export * from './ChatRequest';
16
16
  export * from './ChatRequestAttachmentsInner';
17
17
  export * from './ChatRequestExternalFileUrl';
18
+ export * from './ChatRequestMessageMetadata';
18
19
  export * from './ChatRequestQuizContext';
19
20
  export * from './ChatRequestQuizContextAnswerState';
20
21
  export * from './ChatRequestQuizContextCurrentQuestion';
@@ -43,6 +44,7 @@ export * from './MessagePartsInner';
43
44
  export * from './PaginatedChats';
44
45
  export * from './PaginatedLearningMoments';
45
46
  export * from './PaginatedMessages';
47
+ export * from './PaginatedQuizSessions';
46
48
  export * from './PaginatedQuizzes';
47
49
  export * from './PaginatedTaxonomies';
48
50
  export * from './Plan';
@@ -51,6 +53,8 @@ export * from './QuizListItem';
51
53
  export * from './QuizQuestion';
52
54
  export * from './QuizResponse';
53
55
  export * from './QuizSession';
56
+ export * from './QuizSessionListItem';
57
+ export * from './QuizSessionScore';
54
58
  export * from './QuizSessionSummary';
55
59
  export * from './QuizWithQuestions';
56
60
  export * from './Score';
@@ -33,6 +33,7 @@ __exportStar(require("./ChatAnalysis"), exports);
33
33
  __exportStar(require("./ChatRequest"), exports);
34
34
  __exportStar(require("./ChatRequestAttachmentsInner"), exports);
35
35
  __exportStar(require("./ChatRequestExternalFileUrl"), exports);
36
+ __exportStar(require("./ChatRequestMessageMetadata"), exports);
36
37
  __exportStar(require("./ChatRequestQuizContext"), exports);
37
38
  __exportStar(require("./ChatRequestQuizContextAnswerState"), exports);
38
39
  __exportStar(require("./ChatRequestQuizContextCurrentQuestion"), exports);
@@ -61,6 +62,7 @@ __exportStar(require("./MessagePartsInner"), exports);
61
62
  __exportStar(require("./PaginatedChats"), exports);
62
63
  __exportStar(require("./PaginatedLearningMoments"), exports);
63
64
  __exportStar(require("./PaginatedMessages"), exports);
65
+ __exportStar(require("./PaginatedQuizSessions"), exports);
64
66
  __exportStar(require("./PaginatedQuizzes"), exports);
65
67
  __exportStar(require("./PaginatedTaxonomies"), exports);
66
68
  __exportStar(require("./Plan"), exports);
@@ -69,6 +71,8 @@ __exportStar(require("./QuizListItem"), exports);
69
71
  __exportStar(require("./QuizQuestion"), exports);
70
72
  __exportStar(require("./QuizResponse"), exports);
71
73
  __exportStar(require("./QuizSession"), exports);
74
+ __exportStar(require("./QuizSessionListItem"), exports);
75
+ __exportStar(require("./QuizSessionScore"), exports);
72
76
  __exportStar(require("./QuizSessionSummary"), exports);
73
77
  __exportStar(require("./QuizWithQuestions"), exports);
74
78
  __exportStar(require("./Score"), exports);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@instructure/athena-api-client",
3
3
  "private": false,
4
- "version": "2.12.1",
4
+ "version": "2.14.0",
5
5
  "description": "OpenAPI client for the Athena API",
6
6
  "author": "Instructure",
7
7
  "repository": {