@instructure/athena-api-client 4.0.1 → 4.0.2
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 +16 -0
- package/dist/apis/StudyGuidesApi.d.ts +112 -0
- package/dist/apis/StudyGuidesApi.js +312 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/StudyGuidesApi.d.ts +112 -0
- package/dist/esm/apis/StudyGuidesApi.js +308 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/AssociateUserFileRequest.d.ts +1 -0
- package/dist/esm/models/AssociateUserFileRequest.js +2 -1
- package/dist/esm/models/CreateStudyGuideQuizRequest.d.ts +46 -0
- package/dist/esm/models/CreateStudyGuideQuizRequest.js +50 -0
- package/dist/esm/models/CreateStudyGuideRequest.d.ts +74 -0
- package/dist/esm/models/CreateStudyGuideRequest.js +55 -0
- package/dist/esm/models/PaginatedStudyGuides.d.ts +39 -0
- package/dist/esm/models/PaginatedStudyGuides.js +48 -0
- package/dist/esm/models/RegenerateStudyGuideRequest.d.ts +38 -0
- package/dist/esm/models/RegenerateStudyGuideRequest.js +43 -0
- package/dist/esm/models/StudyGuide.d.ts +153 -0
- package/dist/esm/models/StudyGuide.js +127 -0
- package/dist/esm/models/StudyGuideConcept.d.ts +68 -0
- package/dist/esm/models/StudyGuideConcept.js +67 -0
- package/dist/esm/models/StudyGuideFile.d.ts +56 -0
- package/dist/esm/models/StudyGuideFile.js +59 -0
- package/dist/esm/models/StudyGuideListItem.d.ts +102 -0
- package/dist/esm/models/StudyGuideListItem.js +92 -0
- package/dist/esm/models/StudyGuideQuiz.d.ts +58 -0
- package/dist/esm/models/StudyGuideQuiz.js +62 -0
- package/dist/esm/models/StudyGuideSourceSummary.d.ts +56 -0
- package/dist/esm/models/StudyGuideSourceSummary.js +59 -0
- package/dist/esm/models/UserFileAssociation.d.ts +1 -0
- package/dist/esm/models/UserFileAssociation.js +2 -1
- package/dist/esm/models/index.d.ts +10 -0
- package/dist/esm/models/index.js +10 -0
- package/dist/models/AssociateUserFileRequest.d.ts +1 -0
- package/dist/models/AssociateUserFileRequest.js +2 -1
- package/dist/models/CreateStudyGuideQuizRequest.d.ts +46 -0
- package/dist/models/CreateStudyGuideQuizRequest.js +58 -0
- package/dist/models/CreateStudyGuideRequest.d.ts +74 -0
- package/dist/models/CreateStudyGuideRequest.js +62 -0
- package/dist/models/PaginatedStudyGuides.d.ts +39 -0
- package/dist/models/PaginatedStudyGuides.js +55 -0
- package/dist/models/RegenerateStudyGuideRequest.d.ts +38 -0
- package/dist/models/RegenerateStudyGuideRequest.js +50 -0
- package/dist/models/StudyGuide.d.ts +153 -0
- package/dist/models/StudyGuide.js +135 -0
- package/dist/models/StudyGuideConcept.d.ts +68 -0
- package/dist/models/StudyGuideConcept.js +74 -0
- package/dist/models/StudyGuideFile.d.ts +56 -0
- package/dist/models/StudyGuideFile.js +66 -0
- package/dist/models/StudyGuideListItem.d.ts +102 -0
- package/dist/models/StudyGuideListItem.js +100 -0
- package/dist/models/StudyGuideQuiz.d.ts +58 -0
- package/dist/models/StudyGuideQuiz.js +70 -0
- package/dist/models/StudyGuideSourceSummary.d.ts +56 -0
- package/dist/models/StudyGuideSourceSummary.js +66 -0
- package/dist/models/UserFileAssociation.d.ts +1 -0
- package/dist/models/UserFileAssociation.js +2 -1
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/package.json +1 -1
|
@@ -0,0 +1,74 @@
|
|
|
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 CreateStudyGuideRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateStudyGuideRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Study objective the guide is for. Its course, study space, Canvas link, due date, notes, attachments and extracted concepts all feed generation. When set, courseId/studySpaceId/canvasObjectRef are taken from it.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateStudyGuideRequest
|
|
22
|
+
*/
|
|
23
|
+
studyObjectiveId?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateStudyGuideRequest
|
|
28
|
+
*/
|
|
29
|
+
studySpaceId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Canvas course id, when the guide is for a Canvas course.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreateStudyGuideRequest
|
|
34
|
+
*/
|
|
35
|
+
courseId?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The Canvas assessment formatted '{type}:{local_id}' (e.g. 'quiz:123'). Read live (title, description, points, due date) when Canvas credentials are sent.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CreateStudyGuideRequest
|
|
40
|
+
*/
|
|
41
|
+
canvasObjectRef?: string;
|
|
42
|
+
/**
|
|
43
|
+
* The chat the guide was requested from, if any.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CreateStudyGuideRequest
|
|
46
|
+
*/
|
|
47
|
+
chatId?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The assessment's name as the learner gave it, used when there is no Canvas item or objective to read it from.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof CreateStudyGuideRequest
|
|
52
|
+
*/
|
|
53
|
+
assessmentTitle?: string;
|
|
54
|
+
/**
|
|
55
|
+
* What the learner says is on the assessment, in their own words (chapters, topics, 'everything since the midterm'). The generator treats it as evidence of scope.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof CreateStudyGuideRequest
|
|
58
|
+
*/
|
|
59
|
+
learnerContext?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Uploaded user files (from POST /api/v1/user-files/upload-url) to attach to the guide and read during generation. Each is associated with the guide as kind 'study_guide'.
|
|
62
|
+
* @type {Array<string>}
|
|
63
|
+
* @memberof CreateStudyGuideRequest
|
|
64
|
+
*/
|
|
65
|
+
userFileIds?: Array<string>;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the CreateStudyGuideRequest interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfCreateStudyGuideRequest(value: object): value is CreateStudyGuideRequest;
|
|
71
|
+
export declare function CreateStudyGuideRequestFromJSON(json: any): CreateStudyGuideRequest;
|
|
72
|
+
export declare function CreateStudyGuideRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateStudyGuideRequest;
|
|
73
|
+
export declare function CreateStudyGuideRequestToJSON(json: any): CreateStudyGuideRequest;
|
|
74
|
+
export declare function CreateStudyGuideRequestToJSONTyped(value?: CreateStudyGuideRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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.instanceOfCreateStudyGuideRequest = instanceOfCreateStudyGuideRequest;
|
|
17
|
+
exports.CreateStudyGuideRequestFromJSON = CreateStudyGuideRequestFromJSON;
|
|
18
|
+
exports.CreateStudyGuideRequestFromJSONTyped = CreateStudyGuideRequestFromJSONTyped;
|
|
19
|
+
exports.CreateStudyGuideRequestToJSON = CreateStudyGuideRequestToJSON;
|
|
20
|
+
exports.CreateStudyGuideRequestToJSONTyped = CreateStudyGuideRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CreateStudyGuideRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCreateStudyGuideRequest(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function CreateStudyGuideRequestFromJSON(json) {
|
|
28
|
+
return CreateStudyGuideRequestFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function CreateStudyGuideRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'studyObjectiveId': json['studyObjectiveId'] == null ? undefined : json['studyObjectiveId'],
|
|
36
|
+
'studySpaceId': json['studySpaceId'] == null ? undefined : json['studySpaceId'],
|
|
37
|
+
'courseId': json['courseId'] == null ? undefined : json['courseId'],
|
|
38
|
+
'canvasObjectRef': json['canvasObjectRef'] == null ? undefined : json['canvasObjectRef'],
|
|
39
|
+
'chatId': json['chatId'] == null ? undefined : json['chatId'],
|
|
40
|
+
'assessmentTitle': json['assessmentTitle'] == null ? undefined : json['assessmentTitle'],
|
|
41
|
+
'learnerContext': json['learnerContext'] == null ? undefined : json['learnerContext'],
|
|
42
|
+
'userFileIds': json['userFileIds'] == null ? undefined : json['userFileIds'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function CreateStudyGuideRequestToJSON(json) {
|
|
46
|
+
return CreateStudyGuideRequestToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function CreateStudyGuideRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'studyObjectiveId': value['studyObjectiveId'],
|
|
54
|
+
'studySpaceId': value['studySpaceId'],
|
|
55
|
+
'courseId': value['courseId'],
|
|
56
|
+
'canvasObjectRef': value['canvasObjectRef'],
|
|
57
|
+
'chatId': value['chatId'],
|
|
58
|
+
'assessmentTitle': value['assessmentTitle'],
|
|
59
|
+
'learnerContext': value['learnerContext'],
|
|
60
|
+
'userFileIds': value['userFileIds'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { StudyGuideListItem } from './StudyGuideListItem';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PaginatedStudyGuides
|
|
17
|
+
*/
|
|
18
|
+
export interface PaginatedStudyGuides {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<StudyGuideListItem>}
|
|
22
|
+
* @memberof PaginatedStudyGuides
|
|
23
|
+
*/
|
|
24
|
+
data: Array<StudyGuideListItem>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof PaginatedStudyGuides
|
|
29
|
+
*/
|
|
30
|
+
nextCursor: string | null;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the PaginatedStudyGuides interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfPaginatedStudyGuides(value: object): value is PaginatedStudyGuides;
|
|
36
|
+
export declare function PaginatedStudyGuidesFromJSON(json: any): PaginatedStudyGuides;
|
|
37
|
+
export declare function PaginatedStudyGuidesFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedStudyGuides;
|
|
38
|
+
export declare function PaginatedStudyGuidesToJSON(json: any): PaginatedStudyGuides;
|
|
39
|
+
export declare function PaginatedStudyGuidesToJSONTyped(value?: PaginatedStudyGuides | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfPaginatedStudyGuides = instanceOfPaginatedStudyGuides;
|
|
17
|
+
exports.PaginatedStudyGuidesFromJSON = PaginatedStudyGuidesFromJSON;
|
|
18
|
+
exports.PaginatedStudyGuidesFromJSONTyped = PaginatedStudyGuidesFromJSONTyped;
|
|
19
|
+
exports.PaginatedStudyGuidesToJSON = PaginatedStudyGuidesToJSON;
|
|
20
|
+
exports.PaginatedStudyGuidesToJSONTyped = PaginatedStudyGuidesToJSONTyped;
|
|
21
|
+
const StudyGuideListItem_1 = require("./StudyGuideListItem");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the PaginatedStudyGuides interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfPaginatedStudyGuides(value) {
|
|
26
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('nextCursor' in value) || value['nextCursor'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function PaginatedStudyGuidesFromJSON(json) {
|
|
33
|
+
return PaginatedStudyGuidesFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function PaginatedStudyGuidesFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'data': (json['data'].map(StudyGuideListItem_1.StudyGuideListItemFromJSON)),
|
|
41
|
+
'nextCursor': json['nextCursor'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function PaginatedStudyGuidesToJSON(json) {
|
|
45
|
+
return PaginatedStudyGuidesToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function PaginatedStudyGuidesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'data': (value['data'].map(StudyGuideListItem_1.StudyGuideListItemToJSON)),
|
|
53
|
+
'nextCursor': value['nextCursor'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -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 RegenerateStudyGuideRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface RegenerateStudyGuideRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Additional context, appended to what the learner already said. Omit to retry with the same inputs.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RegenerateStudyGuideRequest
|
|
22
|
+
*/
|
|
23
|
+
learnerContext?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Uploaded user files (from POST /api/v1/user-files/upload-url) to attach to the guide and read during generation. Each is associated with the guide as kind 'study_guide'.
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof RegenerateStudyGuideRequest
|
|
28
|
+
*/
|
|
29
|
+
userFileIds?: Array<string>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the RegenerateStudyGuideRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfRegenerateStudyGuideRequest(value: object): value is RegenerateStudyGuideRequest;
|
|
35
|
+
export declare function RegenerateStudyGuideRequestFromJSON(json: any): RegenerateStudyGuideRequest;
|
|
36
|
+
export declare function RegenerateStudyGuideRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegenerateStudyGuideRequest;
|
|
37
|
+
export declare function RegenerateStudyGuideRequestToJSON(json: any): RegenerateStudyGuideRequest;
|
|
38
|
+
export declare function RegenerateStudyGuideRequestToJSONTyped(value?: RegenerateStudyGuideRequest | 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.instanceOfRegenerateStudyGuideRequest = instanceOfRegenerateStudyGuideRequest;
|
|
17
|
+
exports.RegenerateStudyGuideRequestFromJSON = RegenerateStudyGuideRequestFromJSON;
|
|
18
|
+
exports.RegenerateStudyGuideRequestFromJSONTyped = RegenerateStudyGuideRequestFromJSONTyped;
|
|
19
|
+
exports.RegenerateStudyGuideRequestToJSON = RegenerateStudyGuideRequestToJSON;
|
|
20
|
+
exports.RegenerateStudyGuideRequestToJSONTyped = RegenerateStudyGuideRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the RegenerateStudyGuideRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfRegenerateStudyGuideRequest(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function RegenerateStudyGuideRequestFromJSON(json) {
|
|
28
|
+
return RegenerateStudyGuideRequestFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function RegenerateStudyGuideRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'learnerContext': json['learnerContext'] == null ? undefined : json['learnerContext'],
|
|
36
|
+
'userFileIds': json['userFileIds'] == null ? undefined : json['userFileIds'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function RegenerateStudyGuideRequestToJSON(json) {
|
|
40
|
+
return RegenerateStudyGuideRequestToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function RegenerateStudyGuideRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'learnerContext': value['learnerContext'],
|
|
48
|
+
'userFileIds': value['userFileIds'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,153 @@
|
|
|
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 { StudyGuideFile } from './StudyGuideFile';
|
|
13
|
+
import type { StudyGuideSourceSummary } from './StudyGuideSourceSummary';
|
|
14
|
+
import type { StudyGuideConcept } from './StudyGuideConcept';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface StudyGuide
|
|
19
|
+
*/
|
|
20
|
+
export interface StudyGuide {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof StudyGuide
|
|
25
|
+
*/
|
|
26
|
+
id: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof StudyGuide
|
|
31
|
+
*/
|
|
32
|
+
accountUserId: string;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof StudyGuide
|
|
37
|
+
*/
|
|
38
|
+
studySpaceId: string | null;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof StudyGuide
|
|
43
|
+
*/
|
|
44
|
+
studyObjectiveId: string | null;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof StudyGuide
|
|
49
|
+
*/
|
|
50
|
+
chatId: string | null;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof StudyGuide
|
|
55
|
+
*/
|
|
56
|
+
courseId: string | null;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof StudyGuide
|
|
61
|
+
*/
|
|
62
|
+
canvasObjectRef: string | null;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof StudyGuide
|
|
67
|
+
*/
|
|
68
|
+
title: string;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof StudyGuide
|
|
73
|
+
*/
|
|
74
|
+
assessmentTitle: string | null;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {string}
|
|
78
|
+
* @memberof StudyGuide
|
|
79
|
+
*/
|
|
80
|
+
learnerContext: string | null;
|
|
81
|
+
/**
|
|
82
|
+
* 'generating' while the generator runs (poll); 'ready' with concepts; 'needs-context' when Athena could not tell what the assessment covers (see refusalReason and missingContext, then regenerate with more); 'failed' on an infrastructure error.
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @memberof StudyGuide
|
|
85
|
+
*/
|
|
86
|
+
status: StudyGuideStatusEnum;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {string}
|
|
90
|
+
* @memberof StudyGuide
|
|
91
|
+
*/
|
|
92
|
+
refusalReason: string | null;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @type {Array<string>}
|
|
96
|
+
* @memberof StudyGuide
|
|
97
|
+
*/
|
|
98
|
+
missingContext: Array<string> | null;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @type {string}
|
|
102
|
+
* @memberof StudyGuide
|
|
103
|
+
*/
|
|
104
|
+
summary: string | null;
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @type {StudyGuideSourceSummary}
|
|
108
|
+
* @memberof StudyGuide
|
|
109
|
+
*/
|
|
110
|
+
sourceSummary: StudyGuideSourceSummary | null;
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @type {Array<StudyGuideConcept>}
|
|
114
|
+
* @memberof StudyGuide
|
|
115
|
+
*/
|
|
116
|
+
concepts: Array<StudyGuideConcept>;
|
|
117
|
+
/**
|
|
118
|
+
*
|
|
119
|
+
* @type {Array<StudyGuideFile>}
|
|
120
|
+
* @memberof StudyGuide
|
|
121
|
+
*/
|
|
122
|
+
files: Array<StudyGuideFile>;
|
|
123
|
+
/**
|
|
124
|
+
*
|
|
125
|
+
* @type {Date}
|
|
126
|
+
* @memberof StudyGuide
|
|
127
|
+
*/
|
|
128
|
+
createdAt: Date;
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
* @type {Date}
|
|
132
|
+
* @memberof StudyGuide
|
|
133
|
+
*/
|
|
134
|
+
updatedAt: Date;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* @export
|
|
138
|
+
*/
|
|
139
|
+
export declare const StudyGuideStatusEnum: {
|
|
140
|
+
readonly Generating: "generating";
|
|
141
|
+
readonly Ready: "ready";
|
|
142
|
+
readonly NeedsContext: "needs-context";
|
|
143
|
+
readonly Failed: "failed";
|
|
144
|
+
};
|
|
145
|
+
export type StudyGuideStatusEnum = typeof StudyGuideStatusEnum[keyof typeof StudyGuideStatusEnum];
|
|
146
|
+
/**
|
|
147
|
+
* Check if a given object implements the StudyGuide interface.
|
|
148
|
+
*/
|
|
149
|
+
export declare function instanceOfStudyGuide(value: object): value is StudyGuide;
|
|
150
|
+
export declare function StudyGuideFromJSON(json: any): StudyGuide;
|
|
151
|
+
export declare function StudyGuideFromJSONTyped(json: any, ignoreDiscriminator: boolean): StudyGuide;
|
|
152
|
+
export declare function StudyGuideToJSON(json: any): StudyGuide;
|
|
153
|
+
export declare function StudyGuideToJSONTyped(value?: StudyGuide | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,135 @@
|
|
|
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.StudyGuideStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfStudyGuide = instanceOfStudyGuide;
|
|
18
|
+
exports.StudyGuideFromJSON = StudyGuideFromJSON;
|
|
19
|
+
exports.StudyGuideFromJSONTyped = StudyGuideFromJSONTyped;
|
|
20
|
+
exports.StudyGuideToJSON = StudyGuideToJSON;
|
|
21
|
+
exports.StudyGuideToJSONTyped = StudyGuideToJSONTyped;
|
|
22
|
+
const StudyGuideFile_1 = require("./StudyGuideFile");
|
|
23
|
+
const StudyGuideSourceSummary_1 = require("./StudyGuideSourceSummary");
|
|
24
|
+
const StudyGuideConcept_1 = require("./StudyGuideConcept");
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
exports.StudyGuideStatusEnum = {
|
|
29
|
+
Generating: 'generating',
|
|
30
|
+
Ready: 'ready',
|
|
31
|
+
NeedsContext: 'needs-context',
|
|
32
|
+
Failed: 'failed'
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the StudyGuide interface.
|
|
36
|
+
*/
|
|
37
|
+
function instanceOfStudyGuide(value) {
|
|
38
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('accountUserId' in value) || value['accountUserId'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('studySpaceId' in value) || value['studySpaceId'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('studyObjectiveId' in value) || value['studyObjectiveId'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('chatId' in value) || value['chatId'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('courseId' in value) || value['courseId'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('canvasObjectRef' in value) || value['canvasObjectRef'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('assessmentTitle' in value) || value['assessmentTitle'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('learnerContext' in value) || value['learnerContext'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
59
|
+
return false;
|
|
60
|
+
if (!('refusalReason' in value) || value['refusalReason'] === undefined)
|
|
61
|
+
return false;
|
|
62
|
+
if (!('missingContext' in value) || value['missingContext'] === undefined)
|
|
63
|
+
return false;
|
|
64
|
+
if (!('summary' in value) || value['summary'] === undefined)
|
|
65
|
+
return false;
|
|
66
|
+
if (!('sourceSummary' in value) || value['sourceSummary'] === undefined)
|
|
67
|
+
return false;
|
|
68
|
+
if (!('concepts' in value) || value['concepts'] === undefined)
|
|
69
|
+
return false;
|
|
70
|
+
if (!('files' in value) || value['files'] === undefined)
|
|
71
|
+
return false;
|
|
72
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
73
|
+
return false;
|
|
74
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
75
|
+
return false;
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
function StudyGuideFromJSON(json) {
|
|
79
|
+
return StudyGuideFromJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
function StudyGuideFromJSONTyped(json, ignoreDiscriminator) {
|
|
82
|
+
if (json == null) {
|
|
83
|
+
return json;
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
'id': json['id'],
|
|
87
|
+
'accountUserId': json['accountUserId'],
|
|
88
|
+
'studySpaceId': json['studySpaceId'],
|
|
89
|
+
'studyObjectiveId': json['studyObjectiveId'],
|
|
90
|
+
'chatId': json['chatId'],
|
|
91
|
+
'courseId': json['courseId'],
|
|
92
|
+
'canvasObjectRef': json['canvasObjectRef'],
|
|
93
|
+
'title': json['title'],
|
|
94
|
+
'assessmentTitle': json['assessmentTitle'],
|
|
95
|
+
'learnerContext': json['learnerContext'],
|
|
96
|
+
'status': json['status'],
|
|
97
|
+
'refusalReason': json['refusalReason'],
|
|
98
|
+
'missingContext': json['missingContext'] == null ? null : json['missingContext'],
|
|
99
|
+
'summary': json['summary'],
|
|
100
|
+
'sourceSummary': (0, StudyGuideSourceSummary_1.StudyGuideSourceSummaryFromJSON)(json['sourceSummary']),
|
|
101
|
+
'concepts': (json['concepts'].map(StudyGuideConcept_1.StudyGuideConceptFromJSON)),
|
|
102
|
+
'files': (json['files'].map(StudyGuideFile_1.StudyGuideFileFromJSON)),
|
|
103
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
104
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
function StudyGuideToJSON(json) {
|
|
108
|
+
return StudyGuideToJSONTyped(json, false);
|
|
109
|
+
}
|
|
110
|
+
function StudyGuideToJSONTyped(value, ignoreDiscriminator = false) {
|
|
111
|
+
if (value == null) {
|
|
112
|
+
return value;
|
|
113
|
+
}
|
|
114
|
+
return {
|
|
115
|
+
'id': value['id'],
|
|
116
|
+
'accountUserId': value['accountUserId'],
|
|
117
|
+
'studySpaceId': value['studySpaceId'],
|
|
118
|
+
'studyObjectiveId': value['studyObjectiveId'],
|
|
119
|
+
'chatId': value['chatId'],
|
|
120
|
+
'courseId': value['courseId'],
|
|
121
|
+
'canvasObjectRef': value['canvasObjectRef'],
|
|
122
|
+
'title': value['title'],
|
|
123
|
+
'assessmentTitle': value['assessmentTitle'],
|
|
124
|
+
'learnerContext': value['learnerContext'],
|
|
125
|
+
'status': value['status'],
|
|
126
|
+
'refusalReason': value['refusalReason'],
|
|
127
|
+
'missingContext': value['missingContext'],
|
|
128
|
+
'summary': value['summary'],
|
|
129
|
+
'sourceSummary': (0, StudyGuideSourceSummary_1.StudyGuideSourceSummaryToJSON)(value['sourceSummary']),
|
|
130
|
+
'concepts': (value['concepts'].map(StudyGuideConcept_1.StudyGuideConceptToJSON)),
|
|
131
|
+
'files': (value['files'].map(StudyGuideFile_1.StudyGuideFileToJSON)),
|
|
132
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
133
|
+
'updatedAt': value['updatedAt'].toISOString(),
|
|
134
|
+
};
|
|
135
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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 StudyGuideConcept
|
|
16
|
+
*/
|
|
17
|
+
export interface StudyGuideConcept {
|
|
18
|
+
/**
|
|
19
|
+
* Row id.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof StudyGuideConcept
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Shared concept id, usable with the quiz and tutoring surfaces.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof StudyGuideConcept
|
|
28
|
+
*/
|
|
29
|
+
conceptId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof StudyGuideConcept
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof StudyGuideConcept
|
|
40
|
+
*/
|
|
41
|
+
shortName: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof StudyGuideConcept
|
|
46
|
+
*/
|
|
47
|
+
description: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof StudyGuideConcept
|
|
52
|
+
*/
|
|
53
|
+
displayOrder: number;
|
|
54
|
+
/**
|
|
55
|
+
* Why this concept is on the assessment and what to focus on, as read from the sources.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof StudyGuideConcept
|
|
58
|
+
*/
|
|
59
|
+
focusNote: string | null;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the StudyGuideConcept interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfStudyGuideConcept(value: object): value is StudyGuideConcept;
|
|
65
|
+
export declare function StudyGuideConceptFromJSON(json: any): StudyGuideConcept;
|
|
66
|
+
export declare function StudyGuideConceptFromJSONTyped(json: any, ignoreDiscriminator: boolean): StudyGuideConcept;
|
|
67
|
+
export declare function StudyGuideConceptToJSON(json: any): StudyGuideConcept;
|
|
68
|
+
export declare function StudyGuideConceptToJSONTyped(value?: StudyGuideConcept | null, ignoreDiscriminator?: boolean): any;
|