@instructure/athena-api-client 2.26.0 → 2.28.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/README.md +6 -0
- package/dist/apis/PracticeQuizzesApi.d.ts +56 -0
- package/dist/apis/PracticeQuizzesApi.js +134 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/PracticeQuizzesApi.d.ts +56 -0
- package/dist/esm/apis/PracticeQuizzesApi.js +130 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/CreateChatRequest.d.ts +6 -0
- package/dist/esm/models/CreateChatRequest.js +2 -0
- package/dist/esm/models/CreatePracticeQuizRequest.d.ts +58 -0
- package/dist/esm/models/CreatePracticeQuizRequest.js +60 -0
- package/dist/esm/models/PracticeQuiz.d.ts +38 -0
- package/dist/esm/models/PracticeQuiz.js +47 -0
- package/dist/esm/models/PracticeQuizStatus.d.ts +67 -0
- package/dist/esm/models/PracticeQuizStatus.js +70 -0
- package/dist/esm/models/PracticeQuizStatusList.d.ts +33 -0
- package/dist/esm/models/PracticeQuizStatusList.js +44 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/models/CreateChatRequest.d.ts +6 -0
- package/dist/models/CreateChatRequest.js +2 -0
- package/dist/models/CreatePracticeQuizRequest.d.ts +58 -0
- package/dist/models/CreatePracticeQuizRequest.js +68 -0
- package/dist/models/PracticeQuiz.d.ts +38 -0
- package/dist/models/PracticeQuiz.js +54 -0
- package/dist/models/PracticeQuizStatus.d.ts +67 -0
- package/dist/models/PracticeQuizStatus.js +78 -0
- package/dist/models/PracticeQuizStatusList.d.ts +33 -0
- package/dist/models/PracticeQuizStatusList.js +51 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,78 @@
|
|
|
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.PracticeQuizStatusSessionStatusEnum = exports.PracticeQuizStatusModeEnum = void 0;
|
|
17
|
+
exports.instanceOfPracticeQuizStatus = instanceOfPracticeQuizStatus;
|
|
18
|
+
exports.PracticeQuizStatusFromJSON = PracticeQuizStatusFromJSON;
|
|
19
|
+
exports.PracticeQuizStatusFromJSONTyped = PracticeQuizStatusFromJSONTyped;
|
|
20
|
+
exports.PracticeQuizStatusToJSON = PracticeQuizStatusToJSON;
|
|
21
|
+
exports.PracticeQuizStatusToJSONTyped = PracticeQuizStatusToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.PracticeQuizStatusModeEnum = {
|
|
26
|
+
Quiz: 'quiz',
|
|
27
|
+
Flashcards: 'flashcards'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
exports.PracticeQuizStatusSessionStatusEnum = {
|
|
33
|
+
Active: 'active',
|
|
34
|
+
Completed: 'completed',
|
|
35
|
+
Abandoned: 'abandoned'
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the PracticeQuizStatus interface.
|
|
39
|
+
*/
|
|
40
|
+
function instanceOfPracticeQuizStatus(value) {
|
|
41
|
+
if (!('canvasObjectId' in value) || value['canvasObjectId'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('mode' in value) || value['mode'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('chatId' in value) || value['chatId'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('sessionStatus' in value) || value['sessionStatus'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
function PracticeQuizStatusFromJSON(json) {
|
|
52
|
+
return PracticeQuizStatusFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function PracticeQuizStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
55
|
+
if (json == null) {
|
|
56
|
+
return json;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'canvasObjectId': json['canvasObjectId'],
|
|
60
|
+
'mode': json['mode'],
|
|
61
|
+
'chatId': json['chatId'],
|
|
62
|
+
'sessionStatus': json['sessionStatus'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function PracticeQuizStatusToJSON(json) {
|
|
66
|
+
return PracticeQuizStatusToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
function PracticeQuizStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
'canvasObjectId': value['canvasObjectId'],
|
|
74
|
+
'mode': value['mode'],
|
|
75
|
+
'chatId': value['chatId'],
|
|
76
|
+
'sessionStatus': value['sessionStatus'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { PracticeQuizStatus } from './PracticeQuizStatus';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PracticeQuizStatusList
|
|
17
|
+
*/
|
|
18
|
+
export interface PracticeQuizStatusList {
|
|
19
|
+
/**
|
|
20
|
+
* One entry per requested (canvasObjectId, mode) pair within the supplied globalCourseId, including nulls for pairs with no row.
|
|
21
|
+
* @type {Array<PracticeQuizStatus>}
|
|
22
|
+
* @memberof PracticeQuizStatusList
|
|
23
|
+
*/
|
|
24
|
+
items: Array<PracticeQuizStatus>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the PracticeQuizStatusList interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfPracticeQuizStatusList(value: object): value is PracticeQuizStatusList;
|
|
30
|
+
export declare function PracticeQuizStatusListFromJSON(json: any): PracticeQuizStatusList;
|
|
31
|
+
export declare function PracticeQuizStatusListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PracticeQuizStatusList;
|
|
32
|
+
export declare function PracticeQuizStatusListToJSON(json: any): PracticeQuizStatusList;
|
|
33
|
+
export declare function PracticeQuizStatusListToJSONTyped(value?: PracticeQuizStatusList | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.instanceOfPracticeQuizStatusList = instanceOfPracticeQuizStatusList;
|
|
17
|
+
exports.PracticeQuizStatusListFromJSON = PracticeQuizStatusListFromJSON;
|
|
18
|
+
exports.PracticeQuizStatusListFromJSONTyped = PracticeQuizStatusListFromJSONTyped;
|
|
19
|
+
exports.PracticeQuizStatusListToJSON = PracticeQuizStatusListToJSON;
|
|
20
|
+
exports.PracticeQuizStatusListToJSONTyped = PracticeQuizStatusListToJSONTyped;
|
|
21
|
+
const PracticeQuizStatus_1 = require("./PracticeQuizStatus");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the PracticeQuizStatusList interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfPracticeQuizStatusList(value) {
|
|
26
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function PracticeQuizStatusListFromJSON(json) {
|
|
31
|
+
return PracticeQuizStatusListFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function PracticeQuizStatusListFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'items': (json['items'].map(PracticeQuizStatus_1.PracticeQuizStatusFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function PracticeQuizStatusListToJSON(json) {
|
|
42
|
+
return PracticeQuizStatusListToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function PracticeQuizStatusListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'items': (value['items'].map(PracticeQuizStatus_1.PracticeQuizStatusToJSON)),
|
|
50
|
+
};
|
|
51
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ export * from './CreateMessagesRequest';
|
|
|
35
35
|
export * from './CreateMessagesRequestMessagesInner';
|
|
36
36
|
export * from './CreateMessagesResponse';
|
|
37
37
|
export * from './CreatePlanDto';
|
|
38
|
+
export * from './CreatePracticeQuizRequest';
|
|
38
39
|
export * from './CreateTokenRequest';
|
|
39
40
|
export * from './CreateTokenResponse';
|
|
40
41
|
export * from './DailyQuizStatus';
|
|
@@ -60,6 +61,9 @@ export * from './PaginatedQuizzes';
|
|
|
60
61
|
export * from './PaginatedTaxonomies';
|
|
61
62
|
export * from './PaginatedUserConcepts';
|
|
62
63
|
export * from './Plan';
|
|
64
|
+
export * from './PracticeQuiz';
|
|
65
|
+
export * from './PracticeQuizStatus';
|
|
66
|
+
export * from './PracticeQuizStatusList';
|
|
63
67
|
export * from './Quiz';
|
|
64
68
|
export * from './QuizListItem';
|
|
65
69
|
export * from './QuizQuestion';
|
package/dist/models/index.js
CHANGED
|
@@ -53,6 +53,7 @@ __exportStar(require("./CreateMessagesRequest"), exports);
|
|
|
53
53
|
__exportStar(require("./CreateMessagesRequestMessagesInner"), exports);
|
|
54
54
|
__exportStar(require("./CreateMessagesResponse"), exports);
|
|
55
55
|
__exportStar(require("./CreatePlanDto"), exports);
|
|
56
|
+
__exportStar(require("./CreatePracticeQuizRequest"), exports);
|
|
56
57
|
__exportStar(require("./CreateTokenRequest"), exports);
|
|
57
58
|
__exportStar(require("./CreateTokenResponse"), exports);
|
|
58
59
|
__exportStar(require("./DailyQuizStatus"), exports);
|
|
@@ -78,6 +79,9 @@ __exportStar(require("./PaginatedQuizzes"), exports);
|
|
|
78
79
|
__exportStar(require("./PaginatedTaxonomies"), exports);
|
|
79
80
|
__exportStar(require("./PaginatedUserConcepts"), exports);
|
|
80
81
|
__exportStar(require("./Plan"), exports);
|
|
82
|
+
__exportStar(require("./PracticeQuiz"), exports);
|
|
83
|
+
__exportStar(require("./PracticeQuizStatus"), exports);
|
|
84
|
+
__exportStar(require("./PracticeQuizStatusList"), exports);
|
|
81
85
|
__exportStar(require("./Quiz"), exports);
|
|
82
86
|
__exportStar(require("./QuizListItem"), exports);
|
|
83
87
|
__exportStar(require("./QuizQuestion"), exports);
|