@instructure/athena-api-client 4.0.0 → 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 +19 -0
- package/dist/apis/AdminApi.d.ts +14 -12
- package/dist/apis/AdminApi.js +14 -12
- package/dist/apis/ConceptDiagramsApi.d.ts +15 -1
- package/dist/apis/ConceptDiagramsApi.js +41 -0
- package/dist/apis/ConceptImagesApi.d.ts +15 -1
- package/dist/apis/ConceptImagesApi.js +41 -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/AdminApi.d.ts +14 -12
- package/dist/esm/apis/AdminApi.js +14 -12
- package/dist/esm/apis/ConceptDiagramsApi.d.ts +15 -1
- package/dist/esm/apis/ConceptDiagramsApi.js +42 -1
- package/dist/esm/apis/ConceptImagesApi.d.ts +15 -1
- package/dist/esm/apis/ConceptImagesApi.js +42 -1
- 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/AdminConceptDiagram.d.ts +19 -1
- package/dist/esm/models/AdminConceptDiagram.js +12 -0
- package/dist/esm/models/AdminConceptDiagramDetail.d.ts +19 -1
- package/dist/esm/models/AdminConceptDiagramDetail.js +12 -0
- package/dist/esm/models/AdminConceptImage.d.ts +19 -1
- package/dist/esm/models/AdminConceptImage.js +12 -0
- package/dist/esm/models/AdminConceptImageDetail.d.ts +19 -1
- package/dist/esm/models/AdminConceptImageDetail.js +12 -0
- package/dist/esm/models/AdminShownConceptDiagram.d.ts +19 -1
- package/dist/esm/models/AdminShownConceptDiagram.js +12 -0
- package/dist/esm/models/AdminShownConceptImage.d.ts +19 -1
- package/dist/esm/models/AdminShownConceptImage.js +12 -0
- package/dist/esm/models/AssociateUserFileRequest.d.ts +1 -0
- package/dist/esm/models/AssociateUserFileRequest.js +2 -1
- package/dist/esm/models/ConceptMediaFlagResult.d.ts +32 -0
- package/dist/esm/models/ConceptMediaFlagResult.js +43 -0
- 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 +11 -0
- package/dist/esm/models/index.js +11 -0
- package/dist/models/AdminConceptDiagram.d.ts +19 -1
- package/dist/models/AdminConceptDiagram.js +12 -0
- package/dist/models/AdminConceptDiagramDetail.d.ts +19 -1
- package/dist/models/AdminConceptDiagramDetail.js +12 -0
- package/dist/models/AdminConceptImage.d.ts +19 -1
- package/dist/models/AdminConceptImage.js +12 -0
- package/dist/models/AdminConceptImageDetail.d.ts +19 -1
- package/dist/models/AdminConceptImageDetail.js +12 -0
- package/dist/models/AdminShownConceptDiagram.d.ts +19 -1
- package/dist/models/AdminShownConceptDiagram.js +12 -0
- package/dist/models/AdminShownConceptImage.d.ts +19 -1
- package/dist/models/AdminShownConceptImage.js +12 -0
- package/dist/models/AssociateUserFileRequest.d.ts +1 -0
- package/dist/models/AssociateUserFileRequest.js +2 -1
- package/dist/models/ConceptMediaFlagResult.d.ts +32 -0
- package/dist/models/ConceptMediaFlagResult.js +50 -0
- 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 +11 -0
- package/dist/models/index.js +11 -0
- package/package.json +1 -1
|
@@ -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,48 @@
|
|
|
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 { StudyGuideListItemFromJSON, StudyGuideListItemToJSON, } from './StudyGuideListItem';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the PaginatedStudyGuides interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfPaginatedStudyGuides(value) {
|
|
19
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('nextCursor' in value) || value['nextCursor'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function PaginatedStudyGuidesFromJSON(json) {
|
|
26
|
+
return PaginatedStudyGuidesFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function PaginatedStudyGuidesFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'data': (json['data'].map(StudyGuideListItemFromJSON)),
|
|
34
|
+
'nextCursor': json['nextCursor'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function PaginatedStudyGuidesToJSON(json) {
|
|
38
|
+
return PaginatedStudyGuidesToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function PaginatedStudyGuidesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'data': (value['data'].map(StudyGuideListItemToJSON)),
|
|
46
|
+
'nextCursor': value['nextCursor'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -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,43 @@
|
|
|
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 RegenerateStudyGuideRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfRegenerateStudyGuideRequest(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function RegenerateStudyGuideRequestFromJSON(json) {
|
|
21
|
+
return RegenerateStudyGuideRequestFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function RegenerateStudyGuideRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'learnerContext': json['learnerContext'] == null ? undefined : json['learnerContext'],
|
|
29
|
+
'userFileIds': json['userFileIds'] == null ? undefined : json['userFileIds'],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export function RegenerateStudyGuideRequestToJSON(json) {
|
|
33
|
+
return RegenerateStudyGuideRequestToJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function RegenerateStudyGuideRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'learnerContext': value['learnerContext'],
|
|
41
|
+
'userFileIds': value['userFileIds'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -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,127 @@
|
|
|
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 { StudyGuideFileFromJSON, StudyGuideFileToJSON, } from './StudyGuideFile';
|
|
15
|
+
import { StudyGuideSourceSummaryFromJSON, StudyGuideSourceSummaryToJSON, } from './StudyGuideSourceSummary';
|
|
16
|
+
import { StudyGuideConceptFromJSON, StudyGuideConceptToJSON, } from './StudyGuideConcept';
|
|
17
|
+
/**
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const StudyGuideStatusEnum = {
|
|
21
|
+
Generating: 'generating',
|
|
22
|
+
Ready: 'ready',
|
|
23
|
+
NeedsContext: 'needs-context',
|
|
24
|
+
Failed: 'failed'
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the StudyGuide interface.
|
|
28
|
+
*/
|
|
29
|
+
export function instanceOfStudyGuide(value) {
|
|
30
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('accountUserId' in value) || value['accountUserId'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('studySpaceId' in value) || value['studySpaceId'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('studyObjectiveId' in value) || value['studyObjectiveId'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('chatId' in value) || value['chatId'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('courseId' in value) || value['courseId'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('canvasObjectRef' in value) || value['canvasObjectRef'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('assessmentTitle' in value) || value['assessmentTitle'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('learnerContext' in value) || value['learnerContext'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('refusalReason' in value) || value['refusalReason'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('missingContext' in value) || value['missingContext'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('summary' in value) || value['summary'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
if (!('sourceSummary' in value) || value['sourceSummary'] === undefined)
|
|
59
|
+
return false;
|
|
60
|
+
if (!('concepts' in value) || value['concepts'] === undefined)
|
|
61
|
+
return false;
|
|
62
|
+
if (!('files' in value) || value['files'] === undefined)
|
|
63
|
+
return false;
|
|
64
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
65
|
+
return false;
|
|
66
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
67
|
+
return false;
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
export function StudyGuideFromJSON(json) {
|
|
71
|
+
return StudyGuideFromJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
export function StudyGuideFromJSONTyped(json, ignoreDiscriminator) {
|
|
74
|
+
if (json == null) {
|
|
75
|
+
return json;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
'id': json['id'],
|
|
79
|
+
'accountUserId': json['accountUserId'],
|
|
80
|
+
'studySpaceId': json['studySpaceId'],
|
|
81
|
+
'studyObjectiveId': json['studyObjectiveId'],
|
|
82
|
+
'chatId': json['chatId'],
|
|
83
|
+
'courseId': json['courseId'],
|
|
84
|
+
'canvasObjectRef': json['canvasObjectRef'],
|
|
85
|
+
'title': json['title'],
|
|
86
|
+
'assessmentTitle': json['assessmentTitle'],
|
|
87
|
+
'learnerContext': json['learnerContext'],
|
|
88
|
+
'status': json['status'],
|
|
89
|
+
'refusalReason': json['refusalReason'],
|
|
90
|
+
'missingContext': json['missingContext'] == null ? null : json['missingContext'],
|
|
91
|
+
'summary': json['summary'],
|
|
92
|
+
'sourceSummary': StudyGuideSourceSummaryFromJSON(json['sourceSummary']),
|
|
93
|
+
'concepts': (json['concepts'].map(StudyGuideConceptFromJSON)),
|
|
94
|
+
'files': (json['files'].map(StudyGuideFileFromJSON)),
|
|
95
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
96
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
export function StudyGuideToJSON(json) {
|
|
100
|
+
return StudyGuideToJSONTyped(json, false);
|
|
101
|
+
}
|
|
102
|
+
export function StudyGuideToJSONTyped(value, ignoreDiscriminator = false) {
|
|
103
|
+
if (value == null) {
|
|
104
|
+
return value;
|
|
105
|
+
}
|
|
106
|
+
return {
|
|
107
|
+
'id': value['id'],
|
|
108
|
+
'accountUserId': value['accountUserId'],
|
|
109
|
+
'studySpaceId': value['studySpaceId'],
|
|
110
|
+
'studyObjectiveId': value['studyObjectiveId'],
|
|
111
|
+
'chatId': value['chatId'],
|
|
112
|
+
'courseId': value['courseId'],
|
|
113
|
+
'canvasObjectRef': value['canvasObjectRef'],
|
|
114
|
+
'title': value['title'],
|
|
115
|
+
'assessmentTitle': value['assessmentTitle'],
|
|
116
|
+
'learnerContext': value['learnerContext'],
|
|
117
|
+
'status': value['status'],
|
|
118
|
+
'refusalReason': value['refusalReason'],
|
|
119
|
+
'missingContext': value['missingContext'],
|
|
120
|
+
'summary': value['summary'],
|
|
121
|
+
'sourceSummary': StudyGuideSourceSummaryToJSON(value['sourceSummary']),
|
|
122
|
+
'concepts': (value['concepts'].map(StudyGuideConceptToJSON)),
|
|
123
|
+
'files': (value['files'].map(StudyGuideFileToJSON)),
|
|
124
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
125
|
+
'updatedAt': value['updatedAt'].toISOString(),
|
|
126
|
+
};
|
|
127
|
+
}
|
|
@@ -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;
|
|
@@ -0,0 +1,67 @@
|
|
|
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 StudyGuideConcept interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfStudyGuideConcept(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('conceptId' in value) || value['conceptId'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('shortName' in value) || value['shortName'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('displayOrder' in value) || value['displayOrder'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('focusNote' in value) || value['focusNote'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
export function StudyGuideConceptFromJSON(json) {
|
|
35
|
+
return StudyGuideConceptFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function StudyGuideConceptFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'id': json['id'],
|
|
43
|
+
'conceptId': json['conceptId'],
|
|
44
|
+
'name': json['name'],
|
|
45
|
+
'shortName': json['shortName'],
|
|
46
|
+
'description': json['description'],
|
|
47
|
+
'displayOrder': json['displayOrder'],
|
|
48
|
+
'focusNote': json['focusNote'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export function StudyGuideConceptToJSON(json) {
|
|
52
|
+
return StudyGuideConceptToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
export function StudyGuideConceptToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'id': value['id'],
|
|
60
|
+
'conceptId': value['conceptId'],
|
|
61
|
+
'name': value['name'],
|
|
62
|
+
'shortName': value['shortName'],
|
|
63
|
+
'description': value['description'],
|
|
64
|
+
'displayOrder': value['displayOrder'],
|
|
65
|
+
'focusNote': value['focusNote'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 StudyGuideFile
|
|
16
|
+
*/
|
|
17
|
+
export interface StudyGuideFile {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof StudyGuideFile
|
|
22
|
+
*/
|
|
23
|
+
userFileId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof StudyGuideFile
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof StudyGuideFile
|
|
34
|
+
*/
|
|
35
|
+
mimeType: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof StudyGuideFile
|
|
40
|
+
*/
|
|
41
|
+
sizeBytes: number;
|
|
42
|
+
/**
|
|
43
|
+
* Freshly-signed GET URL; do not persist.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof StudyGuideFile
|
|
46
|
+
*/
|
|
47
|
+
previewUrl: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the StudyGuideFile interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfStudyGuideFile(value: object): value is StudyGuideFile;
|
|
53
|
+
export declare function StudyGuideFileFromJSON(json: any): StudyGuideFile;
|
|
54
|
+
export declare function StudyGuideFileFromJSONTyped(json: any, ignoreDiscriminator: boolean): StudyGuideFile;
|
|
55
|
+
export declare function StudyGuideFileToJSON(json: any): StudyGuideFile;
|
|
56
|
+
export declare function StudyGuideFileToJSONTyped(value?: StudyGuideFile | null, ignoreDiscriminator?: boolean): any;
|