@instructure/athena-api-client 1.0.14 → 1.0.16
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/esm/models/QuizResponse.d.ts +21 -0
- package/dist/esm/models/QuizResponse.js +16 -0
- package/dist/esm/models/SubmitQuizResponseRequest.d.ts +0 -6
- package/dist/esm/models/SubmitQuizResponseRequest.js +0 -2
- package/dist/models/QuizResponse.d.ts +21 -0
- package/dist/models/QuizResponse.js +17 -1
- package/dist/models/SubmitQuizResponseRequest.d.ts +0 -6
- package/dist/models/SubmitQuizResponseRequest.js +0 -2
- package/package.json +1 -1
|
@@ -51,6 +51,18 @@ export interface QuizResponse {
|
|
|
51
51
|
* @memberof QuizResponse
|
|
52
52
|
*/
|
|
53
53
|
rating: QuizResponseRatingEnum | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof QuizResponse
|
|
58
|
+
*/
|
|
59
|
+
grade: QuizResponseGradeEnum | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof QuizResponse
|
|
64
|
+
*/
|
|
65
|
+
feedback: string | null;
|
|
54
66
|
/**
|
|
55
67
|
*
|
|
56
68
|
* @type {Date}
|
|
@@ -66,6 +78,15 @@ export declare const QuizResponseRatingEnum: {
|
|
|
66
78
|
readonly NeedPractice: "need-practice";
|
|
67
79
|
};
|
|
68
80
|
export type QuizResponseRatingEnum = typeof QuizResponseRatingEnum[keyof typeof QuizResponseRatingEnum];
|
|
81
|
+
/**
|
|
82
|
+
* @export
|
|
83
|
+
*/
|
|
84
|
+
export declare const QuizResponseGradeEnum: {
|
|
85
|
+
readonly Correct: "correct";
|
|
86
|
+
readonly Almost: "almost";
|
|
87
|
+
readonly Incorrect: "incorrect";
|
|
88
|
+
};
|
|
89
|
+
export type QuizResponseGradeEnum = typeof QuizResponseGradeEnum[keyof typeof QuizResponseGradeEnum];
|
|
69
90
|
/**
|
|
70
91
|
* Check if a given object implements the QuizResponse interface.
|
|
71
92
|
*/
|
|
@@ -18,6 +18,14 @@ export const QuizResponseRatingEnum = {
|
|
|
18
18
|
WasRight: 'was-right',
|
|
19
19
|
NeedPractice: 'need-practice'
|
|
20
20
|
};
|
|
21
|
+
/**
|
|
22
|
+
* @export
|
|
23
|
+
*/
|
|
24
|
+
export const QuizResponseGradeEnum = {
|
|
25
|
+
Correct: 'correct',
|
|
26
|
+
Almost: 'almost',
|
|
27
|
+
Incorrect: 'incorrect'
|
|
28
|
+
};
|
|
21
29
|
/**
|
|
22
30
|
* Check if a given object implements the QuizResponse interface.
|
|
23
31
|
*/
|
|
@@ -34,6 +42,10 @@ export function instanceOfQuizResponse(value) {
|
|
|
34
42
|
return false;
|
|
35
43
|
if (!('rating' in value) || value['rating'] === undefined)
|
|
36
44
|
return false;
|
|
45
|
+
if (!('grade' in value) || value['grade'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('feedback' in value) || value['feedback'] === undefined)
|
|
48
|
+
return false;
|
|
37
49
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
38
50
|
return false;
|
|
39
51
|
return true;
|
|
@@ -52,6 +64,8 @@ export function QuizResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
64
|
'userAnswer': json['userAnswer'],
|
|
53
65
|
'isCorrect': json['isCorrect'],
|
|
54
66
|
'rating': json['rating'],
|
|
67
|
+
'grade': json['grade'],
|
|
68
|
+
'feedback': json['feedback'],
|
|
55
69
|
'createdAt': (new Date(json['createdAt'])),
|
|
56
70
|
};
|
|
57
71
|
}
|
|
@@ -69,6 +83,8 @@ export function QuizResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
69
83
|
'userAnswer': value['userAnswer'],
|
|
70
84
|
'isCorrect': value['isCorrect'],
|
|
71
85
|
'rating': value['rating'],
|
|
86
|
+
'grade': value['grade'],
|
|
87
|
+
'feedback': value['feedback'],
|
|
72
88
|
'createdAt': value['createdAt'].toISOString(),
|
|
73
89
|
};
|
|
74
90
|
}
|
|
@@ -27,12 +27,6 @@ export interface SubmitQuizResponseRequest {
|
|
|
27
27
|
* @memberof SubmitQuizResponseRequest
|
|
28
28
|
*/
|
|
29
29
|
userAnswer: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {boolean}
|
|
33
|
-
* @memberof SubmitQuizResponseRequest
|
|
34
|
-
*/
|
|
35
|
-
isCorrect?: boolean | null;
|
|
36
30
|
/**
|
|
37
31
|
*
|
|
38
32
|
* @type {string}
|
|
@@ -38,7 +38,6 @@ export function SubmitQuizResponseRequestFromJSONTyped(json, ignoreDiscriminator
|
|
|
38
38
|
return {
|
|
39
39
|
'questionId': json['questionId'],
|
|
40
40
|
'userAnswer': json['userAnswer'],
|
|
41
|
-
'isCorrect': json['isCorrect'] == null ? undefined : json['isCorrect'],
|
|
42
41
|
'rating': json['rating'] == null ? undefined : json['rating'],
|
|
43
42
|
};
|
|
44
43
|
}
|
|
@@ -52,7 +51,6 @@ export function SubmitQuizResponseRequestToJSONTyped(value, ignoreDiscriminator
|
|
|
52
51
|
return {
|
|
53
52
|
'questionId': value['questionId'],
|
|
54
53
|
'userAnswer': value['userAnswer'],
|
|
55
|
-
'isCorrect': value['isCorrect'],
|
|
56
54
|
'rating': value['rating'],
|
|
57
55
|
};
|
|
58
56
|
}
|
|
@@ -51,6 +51,18 @@ export interface QuizResponse {
|
|
|
51
51
|
* @memberof QuizResponse
|
|
52
52
|
*/
|
|
53
53
|
rating: QuizResponseRatingEnum | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof QuizResponse
|
|
58
|
+
*/
|
|
59
|
+
grade: QuizResponseGradeEnum | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof QuizResponse
|
|
64
|
+
*/
|
|
65
|
+
feedback: string | null;
|
|
54
66
|
/**
|
|
55
67
|
*
|
|
56
68
|
* @type {Date}
|
|
@@ -66,6 +78,15 @@ export declare const QuizResponseRatingEnum: {
|
|
|
66
78
|
readonly NeedPractice: "need-practice";
|
|
67
79
|
};
|
|
68
80
|
export type QuizResponseRatingEnum = typeof QuizResponseRatingEnum[keyof typeof QuizResponseRatingEnum];
|
|
81
|
+
/**
|
|
82
|
+
* @export
|
|
83
|
+
*/
|
|
84
|
+
export declare const QuizResponseGradeEnum: {
|
|
85
|
+
readonly Correct: "correct";
|
|
86
|
+
readonly Almost: "almost";
|
|
87
|
+
readonly Incorrect: "incorrect";
|
|
88
|
+
};
|
|
89
|
+
export type QuizResponseGradeEnum = typeof QuizResponseGradeEnum[keyof typeof QuizResponseGradeEnum];
|
|
69
90
|
/**
|
|
70
91
|
* Check if a given object implements the QuizResponse interface.
|
|
71
92
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.QuizResponseRatingEnum = void 0;
|
|
16
|
+
exports.QuizResponseGradeEnum = exports.QuizResponseRatingEnum = void 0;
|
|
17
17
|
exports.instanceOfQuizResponse = instanceOfQuizResponse;
|
|
18
18
|
exports.QuizResponseFromJSON = QuizResponseFromJSON;
|
|
19
19
|
exports.QuizResponseFromJSONTyped = QuizResponseFromJSONTyped;
|
|
@@ -26,6 +26,14 @@ exports.QuizResponseRatingEnum = {
|
|
|
26
26
|
WasRight: 'was-right',
|
|
27
27
|
NeedPractice: 'need-practice'
|
|
28
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
exports.QuizResponseGradeEnum = {
|
|
33
|
+
Correct: 'correct',
|
|
34
|
+
Almost: 'almost',
|
|
35
|
+
Incorrect: 'incorrect'
|
|
36
|
+
};
|
|
29
37
|
/**
|
|
30
38
|
* Check if a given object implements the QuizResponse interface.
|
|
31
39
|
*/
|
|
@@ -42,6 +50,10 @@ function instanceOfQuizResponse(value) {
|
|
|
42
50
|
return false;
|
|
43
51
|
if (!('rating' in value) || value['rating'] === undefined)
|
|
44
52
|
return false;
|
|
53
|
+
if (!('grade' in value) || value['grade'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('feedback' in value) || value['feedback'] === undefined)
|
|
56
|
+
return false;
|
|
45
57
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
46
58
|
return false;
|
|
47
59
|
return true;
|
|
@@ -60,6 +72,8 @@ function QuizResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
72
|
'userAnswer': json['userAnswer'],
|
|
61
73
|
'isCorrect': json['isCorrect'],
|
|
62
74
|
'rating': json['rating'],
|
|
75
|
+
'grade': json['grade'],
|
|
76
|
+
'feedback': json['feedback'],
|
|
63
77
|
'createdAt': (new Date(json['createdAt'])),
|
|
64
78
|
};
|
|
65
79
|
}
|
|
@@ -77,6 +91,8 @@ function QuizResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
77
91
|
'userAnswer': value['userAnswer'],
|
|
78
92
|
'isCorrect': value['isCorrect'],
|
|
79
93
|
'rating': value['rating'],
|
|
94
|
+
'grade': value['grade'],
|
|
95
|
+
'feedback': value['feedback'],
|
|
80
96
|
'createdAt': value['createdAt'].toISOString(),
|
|
81
97
|
};
|
|
82
98
|
}
|
|
@@ -27,12 +27,6 @@ export interface SubmitQuizResponseRequest {
|
|
|
27
27
|
* @memberof SubmitQuizResponseRequest
|
|
28
28
|
*/
|
|
29
29
|
userAnswer: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {boolean}
|
|
33
|
-
* @memberof SubmitQuizResponseRequest
|
|
34
|
-
*/
|
|
35
|
-
isCorrect?: boolean | null;
|
|
36
30
|
/**
|
|
37
31
|
*
|
|
38
32
|
* @type {string}
|
|
@@ -46,7 +46,6 @@ function SubmitQuizResponseRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
46
|
return {
|
|
47
47
|
'questionId': json['questionId'],
|
|
48
48
|
'userAnswer': json['userAnswer'],
|
|
49
|
-
'isCorrect': json['isCorrect'] == null ? undefined : json['isCorrect'],
|
|
50
49
|
'rating': json['rating'] == null ? undefined : json['rating'],
|
|
51
50
|
};
|
|
52
51
|
}
|
|
@@ -60,7 +59,6 @@ function SubmitQuizResponseRequestToJSONTyped(value, ignoreDiscriminator = false
|
|
|
60
59
|
return {
|
|
61
60
|
'questionId': value['questionId'],
|
|
62
61
|
'userAnswer': value['userAnswer'],
|
|
63
|
-
'isCorrect': value['isCorrect'],
|
|
64
62
|
'rating': value['rating'],
|
|
65
63
|
};
|
|
66
64
|
}
|