@instructure/athena-api-client 1.0.6 → 1.0.8
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/README.md +15 -0
- package/dist/apis/QuizSessionsApi.d.ts +76 -0
- package/dist/apis/QuizSessionsApi.js +207 -0
- package/dist/apis/QuizzesApi.d.ts +32 -0
- package/dist/apis/QuizzesApi.js +74 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/esm/apis/QuizSessionsApi.d.ts +76 -0
- package/dist/esm/apis/QuizSessionsApi.js +203 -0
- package/dist/esm/apis/QuizzesApi.d.ts +32 -0
- package/dist/esm/apis/QuizzesApi.js +70 -0
- package/dist/esm/apis/index.d.ts +2 -0
- package/dist/esm/apis/index.js +2 -0
- package/dist/esm/models/Chat.d.ts +7 -7
- package/dist/esm/models/Chat.js +21 -7
- package/dist/esm/models/ChatRequestAttachmentsInner.d.ts +6 -0
- package/dist/esm/models/ChatRequestAttachmentsInner.js +4 -0
- package/dist/esm/models/MessageAttachmentsInner.d.ts +6 -0
- package/dist/esm/models/MessageAttachmentsInner.js +4 -0
- package/dist/esm/models/Quiz.d.ts +76 -0
- package/dist/esm/models/Quiz.js +72 -0
- package/dist/esm/models/QuizQuestion.d.ts +103 -0
- package/dist/esm/models/QuizQuestion.js +85 -0
- package/dist/esm/models/QuizResponse.d.ts +76 -0
- package/dist/esm/models/QuizResponse.js +70 -0
- package/dist/esm/models/QuizSession.d.ts +71 -0
- package/dist/esm/models/QuizSession.js +69 -0
- package/dist/esm/models/QuizSessionSummary.d.ts +61 -0
- package/dist/esm/models/QuizSessionSummary.js +64 -0
- package/dist/esm/models/QuizSessionSummaryScore.d.ts +47 -0
- package/dist/esm/models/QuizSessionSummaryScore.js +53 -0
- package/dist/esm/models/QuizWithQuestions.d.ts +83 -0
- package/dist/esm/models/QuizWithQuestions.js +77 -0
- package/dist/esm/models/ScoreByTypeValue.d.ts +38 -0
- package/dist/esm/models/ScoreByTypeValue.js +47 -0
- package/dist/esm/models/SubmitQuizResponseRequest.d.ts +58 -0
- package/dist/esm/models/SubmitQuizResponseRequest.js +58 -0
- package/dist/esm/models/UpdateQuizSessionRequest.d.ts +40 -0
- package/dist/esm/models/UpdateQuizSessionRequest.js +50 -0
- package/dist/esm/models/index.d.ts +10 -0
- package/dist/esm/models/index.js +10 -0
- package/dist/models/Chat.d.ts +7 -7
- package/dist/models/Chat.js +21 -7
- package/dist/models/ChatRequestAttachmentsInner.d.ts +6 -0
- package/dist/models/ChatRequestAttachmentsInner.js +4 -0
- package/dist/models/MessageAttachmentsInner.d.ts +6 -0
- package/dist/models/MessageAttachmentsInner.js +4 -0
- package/dist/models/Quiz.d.ts +76 -0
- package/dist/models/Quiz.js +80 -0
- package/dist/models/QuizQuestion.d.ts +103 -0
- package/dist/models/QuizQuestion.js +93 -0
- package/dist/models/QuizResponse.d.ts +76 -0
- package/dist/models/QuizResponse.js +78 -0
- package/dist/models/QuizSession.d.ts +71 -0
- package/dist/models/QuizSession.js +77 -0
- package/dist/models/QuizSessionSummary.d.ts +61 -0
- package/dist/models/QuizSessionSummary.js +71 -0
- package/dist/models/QuizSessionSummaryScore.d.ts +47 -0
- package/dist/models/QuizSessionSummaryScore.js +60 -0
- package/dist/models/QuizWithQuestions.d.ts +83 -0
- package/dist/models/QuizWithQuestions.js +85 -0
- package/dist/models/ScoreByTypeValue.d.ts +38 -0
- package/dist/models/ScoreByTypeValue.js +54 -0
- package/dist/models/SubmitQuizResponseRequest.d.ts +58 -0
- package/dist/models/SubmitQuizResponseRequest.js +66 -0
- package/dist/models/UpdateQuizSessionRequest.d.ts +40 -0
- package/dist/models/UpdateQuizSessionRequest.js +58 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/package.json +1 -1
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Athena API
|
|
5
|
+
* REST API for the Athena system
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { mapValues } from '../runtime';
|
|
15
|
+
import { ScoreByTypeValueFromJSON, ScoreByTypeValueToJSON, } from './ScoreByTypeValue';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the QuizSessionSummaryScore interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfQuizSessionSummaryScore(value) {
|
|
20
|
+
if (!('totalCorrect' in value) || value['totalCorrect'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('totalQuestions' in value) || value['totalQuestions'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('byType' in value) || value['byType'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function QuizSessionSummaryScoreFromJSON(json) {
|
|
29
|
+
return QuizSessionSummaryScoreFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function QuizSessionSummaryScoreFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'totalCorrect': json['totalCorrect'],
|
|
37
|
+
'totalQuestions': json['totalQuestions'],
|
|
38
|
+
'byType': (mapValues(json['byType'], ScoreByTypeValueFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function QuizSessionSummaryScoreToJSON(json) {
|
|
42
|
+
return QuizSessionSummaryScoreToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function QuizSessionSummaryScoreToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'totalCorrect': value['totalCorrect'],
|
|
50
|
+
'totalQuestions': value['totalQuestions'],
|
|
51
|
+
'byType': (mapValues(value['byType'], ScoreByTypeValueToJSON)),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
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 { QuizQuestion } from './QuizQuestion';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface QuizWithQuestions
|
|
17
|
+
*/
|
|
18
|
+
export interface QuizWithQuestions {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof QuizWithQuestions
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof QuizWithQuestions
|
|
29
|
+
*/
|
|
30
|
+
accountUserId: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof QuizWithQuestions
|
|
35
|
+
*/
|
|
36
|
+
chatId?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof QuizWithQuestions
|
|
41
|
+
*/
|
|
42
|
+
title: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof QuizWithQuestions
|
|
47
|
+
*/
|
|
48
|
+
topic: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof QuizWithQuestions
|
|
53
|
+
*/
|
|
54
|
+
mode: QuizWithQuestionsModeEnum;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Date}
|
|
58
|
+
* @memberof QuizWithQuestions
|
|
59
|
+
*/
|
|
60
|
+
createdAt: Date;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Array<QuizQuestion>}
|
|
64
|
+
* @memberof QuizWithQuestions
|
|
65
|
+
*/
|
|
66
|
+
questions: Array<QuizQuestion>;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* @export
|
|
70
|
+
*/
|
|
71
|
+
export declare const QuizWithQuestionsModeEnum: {
|
|
72
|
+
readonly Quiz: "quiz";
|
|
73
|
+
readonly Flashcards: "flashcards";
|
|
74
|
+
};
|
|
75
|
+
export type QuizWithQuestionsModeEnum = typeof QuizWithQuestionsModeEnum[keyof typeof QuizWithQuestionsModeEnum];
|
|
76
|
+
/**
|
|
77
|
+
* Check if a given object implements the QuizWithQuestions interface.
|
|
78
|
+
*/
|
|
79
|
+
export declare function instanceOfQuizWithQuestions(value: object): value is QuizWithQuestions;
|
|
80
|
+
export declare function QuizWithQuestionsFromJSON(json: any): QuizWithQuestions;
|
|
81
|
+
export declare function QuizWithQuestionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuizWithQuestions;
|
|
82
|
+
export declare function QuizWithQuestionsToJSON(json: any): QuizWithQuestions;
|
|
83
|
+
export declare function QuizWithQuestionsToJSONTyped(value?: QuizWithQuestions | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Athena API
|
|
5
|
+
* REST API for the Athena system
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { QuizQuestionFromJSON, QuizQuestionToJSON, } from './QuizQuestion';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const QuizWithQuestionsModeEnum = {
|
|
19
|
+
Quiz: 'quiz',
|
|
20
|
+
Flashcards: 'flashcards'
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the QuizWithQuestions interface.
|
|
24
|
+
*/
|
|
25
|
+
export function instanceOfQuizWithQuestions(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('accountUserId' in value) || value['accountUserId'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('topic' in value) || value['topic'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('mode' in value) || value['mode'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('questions' in value) || value['questions'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
export function QuizWithQuestionsFromJSON(json) {
|
|
43
|
+
return QuizWithQuestionsFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function QuizWithQuestionsFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'id': json['id'],
|
|
51
|
+
'accountUserId': json['accountUserId'],
|
|
52
|
+
'chatId': json['chatId'] == null ? undefined : json['chatId'],
|
|
53
|
+
'title': json['title'],
|
|
54
|
+
'topic': json['topic'],
|
|
55
|
+
'mode': json['mode'],
|
|
56
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
57
|
+
'questions': (json['questions'].map(QuizQuestionFromJSON)),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
export function QuizWithQuestionsToJSON(json) {
|
|
61
|
+
return QuizWithQuestionsToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
export function QuizWithQuestionsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'id': value['id'],
|
|
69
|
+
'accountUserId': value['accountUserId'],
|
|
70
|
+
'chatId': value['chatId'],
|
|
71
|
+
'title': value['title'],
|
|
72
|
+
'topic': value['topic'],
|
|
73
|
+
'mode': value['mode'],
|
|
74
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
75
|
+
'questions': (value['questions'].map(QuizQuestionToJSON)),
|
|
76
|
+
};
|
|
77
|
+
}
|
|
@@ -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 ScoreByTypeValue
|
|
16
|
+
*/
|
|
17
|
+
export interface ScoreByTypeValue {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ScoreByTypeValue
|
|
22
|
+
*/
|
|
23
|
+
correct: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof ScoreByTypeValue
|
|
28
|
+
*/
|
|
29
|
+
total: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ScoreByTypeValue interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfScoreByTypeValue(value: object): value is ScoreByTypeValue;
|
|
35
|
+
export declare function ScoreByTypeValueFromJSON(json: any): ScoreByTypeValue;
|
|
36
|
+
export declare function ScoreByTypeValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScoreByTypeValue;
|
|
37
|
+
export declare function ScoreByTypeValueToJSON(json: any): ScoreByTypeValue;
|
|
38
|
+
export declare function ScoreByTypeValueToJSONTyped(value?: ScoreByTypeValue | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Athena API
|
|
5
|
+
* REST API for the Athena system
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the ScoreByTypeValue interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfScoreByTypeValue(value) {
|
|
18
|
+
if (!('correct' in value) || value['correct'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function ScoreByTypeValueFromJSON(json) {
|
|
25
|
+
return ScoreByTypeValueFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function ScoreByTypeValueFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'correct': json['correct'],
|
|
33
|
+
'total': json['total'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function ScoreByTypeValueToJSON(json) {
|
|
37
|
+
return ScoreByTypeValueToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function ScoreByTypeValueToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'correct': value['correct'],
|
|
45
|
+
'total': value['total'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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 SubmitQuizResponseRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface SubmitQuizResponseRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SubmitQuizResponseRequest
|
|
22
|
+
*/
|
|
23
|
+
questionId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SubmitQuizResponseRequest
|
|
28
|
+
*/
|
|
29
|
+
userAnswer: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof SubmitQuizResponseRequest
|
|
34
|
+
*/
|
|
35
|
+
isCorrect?: boolean | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SubmitQuizResponseRequest
|
|
40
|
+
*/
|
|
41
|
+
rating?: SubmitQuizResponseRequestRatingEnum | null;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const SubmitQuizResponseRequestRatingEnum: {
|
|
47
|
+
readonly WasRight: "was-right";
|
|
48
|
+
readonly NeedPractice: "need-practice";
|
|
49
|
+
};
|
|
50
|
+
export type SubmitQuizResponseRequestRatingEnum = typeof SubmitQuizResponseRequestRatingEnum[keyof typeof SubmitQuizResponseRequestRatingEnum];
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the SubmitQuizResponseRequest interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfSubmitQuizResponseRequest(value: object): value is SubmitQuizResponseRequest;
|
|
55
|
+
export declare function SubmitQuizResponseRequestFromJSON(json: any): SubmitQuizResponseRequest;
|
|
56
|
+
export declare function SubmitQuizResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubmitQuizResponseRequest;
|
|
57
|
+
export declare function SubmitQuizResponseRequestToJSON(json: any): SubmitQuizResponseRequest;
|
|
58
|
+
export declare function SubmitQuizResponseRequestToJSONTyped(value?: SubmitQuizResponseRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Athena API
|
|
5
|
+
* REST API for the Athena system
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const SubmitQuizResponseRequestRatingEnum = {
|
|
18
|
+
WasRight: 'was-right',
|
|
19
|
+
NeedPractice: 'need-practice'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SubmitQuizResponseRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
export function instanceOfSubmitQuizResponseRequest(value) {
|
|
25
|
+
if (!('questionId' in value) || value['questionId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('userAnswer' in value) || value['userAnswer'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
export function SubmitQuizResponseRequestFromJSON(json) {
|
|
32
|
+
return SubmitQuizResponseRequestFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function SubmitQuizResponseRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'questionId': json['questionId'],
|
|
40
|
+
'userAnswer': json['userAnswer'],
|
|
41
|
+
'isCorrect': json['isCorrect'] == null ? undefined : json['isCorrect'],
|
|
42
|
+
'rating': json['rating'] == null ? undefined : json['rating'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export function SubmitQuizResponseRequestToJSON(json) {
|
|
46
|
+
return SubmitQuizResponseRequestToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
export function SubmitQuizResponseRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'questionId': value['questionId'],
|
|
54
|
+
'userAnswer': value['userAnswer'],
|
|
55
|
+
'isCorrect': value['isCorrect'],
|
|
56
|
+
'rating': value['rating'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 UpdateQuizSessionRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateQuizSessionRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpdateQuizSessionRequest
|
|
22
|
+
*/
|
|
23
|
+
status: UpdateQuizSessionRequestStatusEnum;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
export declare const UpdateQuizSessionRequestStatusEnum: {
|
|
29
|
+
readonly Completed: "completed";
|
|
30
|
+
readonly Abandoned: "abandoned";
|
|
31
|
+
};
|
|
32
|
+
export type UpdateQuizSessionRequestStatusEnum = typeof UpdateQuizSessionRequestStatusEnum[keyof typeof UpdateQuizSessionRequestStatusEnum];
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the UpdateQuizSessionRequest interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfUpdateQuizSessionRequest(value: object): value is UpdateQuizSessionRequest;
|
|
37
|
+
export declare function UpdateQuizSessionRequestFromJSON(json: any): UpdateQuizSessionRequest;
|
|
38
|
+
export declare function UpdateQuizSessionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateQuizSessionRequest;
|
|
39
|
+
export declare function UpdateQuizSessionRequestToJSON(json: any): UpdateQuizSessionRequest;
|
|
40
|
+
export declare function UpdateQuizSessionRequestToJSONTyped(value?: UpdateQuizSessionRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Athena API
|
|
5
|
+
* REST API for the Athena system
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const UpdateQuizSessionRequestStatusEnum = {
|
|
18
|
+
Completed: 'completed',
|
|
19
|
+
Abandoned: 'abandoned'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UpdateQuizSessionRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
export function instanceOfUpdateQuizSessionRequest(value) {
|
|
25
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
export function UpdateQuizSessionRequestFromJSON(json) {
|
|
30
|
+
return UpdateQuizSessionRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
export function UpdateQuizSessionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'status': json['status'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export function UpdateQuizSessionRequestToJSON(json) {
|
|
41
|
+
return UpdateQuizSessionRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function UpdateQuizSessionRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'status': value['status'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -18,9 +18,19 @@ export * from './ModelError';
|
|
|
18
18
|
export * from './PaginatedChats';
|
|
19
19
|
export * from './PaginatedLearningMoments';
|
|
20
20
|
export * from './PaginatedMessages';
|
|
21
|
+
export * from './Quiz';
|
|
22
|
+
export * from './QuizQuestion';
|
|
23
|
+
export * from './QuizResponse';
|
|
24
|
+
export * from './QuizSession';
|
|
25
|
+
export * from './QuizSessionSummary';
|
|
26
|
+
export * from './QuizSessionSummaryScore';
|
|
27
|
+
export * from './QuizWithQuestions';
|
|
28
|
+
export * from './ScoreByTypeValue';
|
|
21
29
|
export * from './ServiceToken';
|
|
30
|
+
export * from './SubmitQuizResponseRequest';
|
|
22
31
|
export * from './Tag';
|
|
23
32
|
export * from './UpdateChatRequest';
|
|
33
|
+
export * from './UpdateQuizSessionRequest';
|
|
24
34
|
export * from './UpdateTokenRequest';
|
|
25
35
|
export * from './UpdateTokenResponse';
|
|
26
36
|
export * from './UploadUrlRequest';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -20,9 +20,19 @@ export * from './ModelError';
|
|
|
20
20
|
export * from './PaginatedChats';
|
|
21
21
|
export * from './PaginatedLearningMoments';
|
|
22
22
|
export * from './PaginatedMessages';
|
|
23
|
+
export * from './Quiz';
|
|
24
|
+
export * from './QuizQuestion';
|
|
25
|
+
export * from './QuizResponse';
|
|
26
|
+
export * from './QuizSession';
|
|
27
|
+
export * from './QuizSessionSummary';
|
|
28
|
+
export * from './QuizSessionSummaryScore';
|
|
29
|
+
export * from './QuizWithQuestions';
|
|
30
|
+
export * from './ScoreByTypeValue';
|
|
23
31
|
export * from './ServiceToken';
|
|
32
|
+
export * from './SubmitQuizResponseRequest';
|
|
24
33
|
export * from './Tag';
|
|
25
34
|
export * from './UpdateChatRequest';
|
|
35
|
+
export * from './UpdateQuizSessionRequest';
|
|
26
36
|
export * from './UpdateTokenRequest';
|
|
27
37
|
export * from './UpdateTokenResponse';
|
|
28
38
|
export * from './UploadUrlRequest';
|
package/dist/models/Chat.d.ts
CHANGED
|
@@ -38,13 +38,13 @@ export interface Chat {
|
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof Chat
|
|
40
40
|
*/
|
|
41
|
-
chatType
|
|
41
|
+
chatType: string | null;
|
|
42
42
|
/**
|
|
43
43
|
* Last viewed timestamp
|
|
44
44
|
* @type {Date}
|
|
45
45
|
* @memberof Chat
|
|
46
46
|
*/
|
|
47
|
-
lastViewedAt
|
|
47
|
+
lastViewedAt: Date | null;
|
|
48
48
|
/**
|
|
49
49
|
* External user ID (matches the X-User-Id header value)
|
|
50
50
|
* @type {string}
|
|
@@ -62,31 +62,31 @@ export interface Chat {
|
|
|
62
62
|
* @type {string}
|
|
63
63
|
* @memberof Chat
|
|
64
64
|
*/
|
|
65
|
-
subjectId
|
|
65
|
+
subjectId: string | null;
|
|
66
66
|
/**
|
|
67
67
|
* Latest job ID
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof Chat
|
|
70
70
|
*/
|
|
71
|
-
latestJobId
|
|
71
|
+
latestJobId: string | null;
|
|
72
72
|
/**
|
|
73
73
|
* Scheduled analysis timestamp
|
|
74
74
|
* @type {Date}
|
|
75
75
|
* @memberof Chat
|
|
76
76
|
*/
|
|
77
|
-
analysisScheduledFor
|
|
77
|
+
analysisScheduledFor: Date | null;
|
|
78
78
|
/**
|
|
79
79
|
* Chat goal
|
|
80
80
|
* @type {string}
|
|
81
81
|
* @memberof Chat
|
|
82
82
|
*/
|
|
83
|
-
goal
|
|
83
|
+
goal: string | null;
|
|
84
84
|
/**
|
|
85
85
|
* Whether the goal has been achieved
|
|
86
86
|
* @type {boolean}
|
|
87
87
|
* @memberof Chat
|
|
88
88
|
*/
|
|
89
|
-
goalAchieved
|
|
89
|
+
goalAchieved: boolean | null;
|
|
90
90
|
/**
|
|
91
91
|
* Whether the chat is marked for review
|
|
92
92
|
* @type {boolean}
|
package/dist/models/Chat.js
CHANGED
|
@@ -36,10 +36,24 @@ function instanceOfChat(value) {
|
|
|
36
36
|
return false;
|
|
37
37
|
if (!('title' in value) || value['title'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
+
if (!('chatType' in value) || value['chatType'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('lastViewedAt' in value) || value['lastViewedAt'] === undefined)
|
|
42
|
+
return false;
|
|
39
43
|
if (!('userId' in value) || value['userId'] === undefined)
|
|
40
44
|
return false;
|
|
41
45
|
if (!('visibility' in value) || value['visibility'] === undefined)
|
|
42
46
|
return false;
|
|
47
|
+
if (!('subjectId' in value) || value['subjectId'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('latestJobId' in value) || value['latestJobId'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('analysisScheduledFor' in value) || value['analysisScheduledFor'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('goal' in value) || value['goal'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('goalAchieved' in value) || value['goalAchieved'] === undefined)
|
|
56
|
+
return false;
|
|
43
57
|
if (!('forReview' in value) || value['forReview'] === undefined)
|
|
44
58
|
return false;
|
|
45
59
|
return true;
|
|
@@ -55,15 +69,15 @@ function ChatFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
69
|
'id': json['id'],
|
|
56
70
|
'createdAt': (new Date(json['createdAt'])),
|
|
57
71
|
'title': json['title'],
|
|
58
|
-
'chatType': json['chatType']
|
|
59
|
-
'lastViewedAt': json['lastViewedAt'] == null ?
|
|
72
|
+
'chatType': json['chatType'],
|
|
73
|
+
'lastViewedAt': (json['lastViewedAt'] == null ? null : new Date(json['lastViewedAt'])),
|
|
60
74
|
'userId': json['userId'],
|
|
61
75
|
'visibility': json['visibility'],
|
|
62
|
-
'subjectId': json['subjectId']
|
|
63
|
-
'latestJobId': json['latestJobId']
|
|
64
|
-
'analysisScheduledFor': json['analysisScheduledFor'] == null ?
|
|
65
|
-
'goal': json['goal']
|
|
66
|
-
'goalAchieved': json['goalAchieved']
|
|
76
|
+
'subjectId': json['subjectId'],
|
|
77
|
+
'latestJobId': json['latestJobId'],
|
|
78
|
+
'analysisScheduledFor': (json['analysisScheduledFor'] == null ? null : new Date(json['analysisScheduledFor'])),
|
|
79
|
+
'goal': json['goal'],
|
|
80
|
+
'goalAchieved': json['goalAchieved'],
|
|
67
81
|
'forReview': json['forReview'],
|
|
68
82
|
};
|
|
69
83
|
}
|
|
@@ -27,6 +27,12 @@ export interface ChatRequestAttachmentsInner {
|
|
|
27
27
|
* @memberof ChatRequestAttachmentsInner
|
|
28
28
|
*/
|
|
29
29
|
mimeType: ChatRequestAttachmentsInnerMimeTypeEnum;
|
|
30
|
+
/**
|
|
31
|
+
* Original filename of the uploaded file
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ChatRequestAttachmentsInner
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
30
36
|
}
|
|
31
37
|
/**
|
|
32
38
|
* @export
|