@instructure/athena-api-client 3.5.2 → 3.6.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 +2 -1
- package/dist/apis/StudyObjectivesApi.d.ts +5 -2
- package/dist/apis/StudyObjectivesApi.js +7 -2
- package/dist/esm/apis/StudyObjectivesApi.d.ts +5 -2
- package/dist/esm/apis/StudyObjectivesApi.js +7 -2
- package/dist/esm/models/CreateStudyObjectiveDto.d.ts +7 -0
- package/dist/esm/models/CreateStudyObjectiveDto.js +3 -0
- package/dist/esm/models/CreateStudyObjectiveDtoCanvasObject.d.ts +50 -0
- package/dist/esm/models/CreateStudyObjectiveDtoCanvasObject.js +49 -0
- package/dist/esm/models/TriggerStudyObjectiveConceptExtractionRequest.d.ts +6 -0
- package/dist/esm/models/TriggerStudyObjectiveConceptExtractionRequest.js +2 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/CreateStudyObjectiveDto.d.ts +7 -0
- package/dist/models/CreateStudyObjectiveDto.js +3 -0
- package/dist/models/CreateStudyObjectiveDtoCanvasObject.d.ts +50 -0
- package/dist/models/CreateStudyObjectiveDtoCanvasObject.js +56 -0
- package/dist/models/TriggerStudyObjectiveConceptExtractionRequest.d.ts +6 -0
- package/dist/models/TriggerStudyObjectiveConceptExtractionRequest.js +2 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -124,7 +124,7 @@ All URIs are relative to *http://localhost:3000*
|
|
|
124
124
|
*StudyObjectiveConceptsApi* | [**listStudyObjectiveConcepts**](docs/StudyObjectiveConceptsApi.md#liststudyobjectiveconcepts) | **GET** /api/v1/study-objective-concepts | List study-objective concept attachments
|
|
125
125
|
*StudyObjectiveConceptsApi* | [**triggerStudyObjectiveConceptExtraction**](docs/StudyObjectiveConceptsApi.md#triggerstudyobjectiveconceptextractionoperation) | **POST** /api/v1/study-objective-concepts/extract | Trigger study-objective concept extraction
|
|
126
126
|
*StudyObjectivesApi* | [**createObjectiveResource**](docs/StudyObjectivesApi.md#createobjectiveresource) | **POST** /api/v1/study-objectives/{studyObjectiveId}/resources | Attach a chat resource to a study objective
|
|
127
|
-
*StudyObjectivesApi* | [**createStudyObjective**](docs/StudyObjectivesApi.md#createstudyobjective) | **POST** /api/v1/study-objectives | Create a study objective
|
|
127
|
+
*StudyObjectivesApi* | [**createStudyObjective**](docs/StudyObjectivesApi.md#createstudyobjective) | **POST** /api/v1/study-objectives | Create or upsert a study objective
|
|
128
128
|
*StudyObjectivesApi* | [**deleteObjectiveResource**](docs/StudyObjectivesApi.md#deleteobjectiveresource) | **DELETE** /api/v1/study-objectives/{studyObjectiveId}/resources/{resourceId} | Detach a resource from a study objective
|
|
129
129
|
*StudyObjectivesApi* | [**deleteStudyObjective**](docs/StudyObjectivesApi.md#deletestudyobjective) | **DELETE** /api/v1/study-objectives/{studyObjectiveId} | Delete a study objective
|
|
130
130
|
*StudyObjectivesApi* | [**getStudyObjective**](docs/StudyObjectivesApi.md#getstudyobjective) | **GET** /api/v1/study-objectives/{studyObjectiveId} | Get a study objective by ID
|
|
@@ -205,6 +205,7 @@ All URIs are relative to *http://localhost:3000*
|
|
|
205
205
|
- [CreatePracticeQuizRequest](docs/CreatePracticeQuizRequest.md)
|
|
206
206
|
- [CreateStudyObjectiveDto](docs/CreateStudyObjectiveDto.md)
|
|
207
207
|
- [CreateStudyObjectiveDtoCanvasDocumentsInner](docs/CreateStudyObjectiveDtoCanvasDocumentsInner.md)
|
|
208
|
+
- [CreateStudyObjectiveDtoCanvasObject](docs/CreateStudyObjectiveDtoCanvasObject.md)
|
|
208
209
|
- [CreateTokenRequest](docs/CreateTokenRequest.md)
|
|
209
210
|
- [CreateTokenResponse](docs/CreateTokenResponse.md)
|
|
210
211
|
- [DailyQuizStatus](docs/DailyQuizStatus.md)
|
|
@@ -19,6 +19,7 @@ export interface CreateObjectiveResourceRequest {
|
|
|
19
19
|
export interface CreateStudyObjectiveRequest {
|
|
20
20
|
xUserId: string;
|
|
21
21
|
createStudyObjectiveDto: CreateStudyObjectiveDto;
|
|
22
|
+
xCanvasDomain?: string;
|
|
22
23
|
}
|
|
23
24
|
export interface DeleteObjectiveResourceRequest {
|
|
24
25
|
xUserId: string;
|
|
@@ -65,11 +66,13 @@ export declare class StudyObjectivesApi extends runtime.BaseAPI {
|
|
|
65
66
|
*/
|
|
66
67
|
createObjectiveResource(requestParameters: CreateObjectiveResourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ObjectiveResource>;
|
|
67
68
|
/**
|
|
68
|
-
*
|
|
69
|
+
* Creates a study objective. When the body includes `canvasObject` metadata, the Canvas object is mirrored into the source-of-truth table (upserted on its Canvas identity) and the objective is upserted on (user, Canvas object): re-syncing the same Canvas item updates the user\'s existing objective rather than inserting a duplicate. The X-Canvas-Domain header is required when `canvasObject` is present. Without `canvasObject`, this always inserts a new custom objective.
|
|
70
|
+
* Create or upsert a study objective
|
|
69
71
|
*/
|
|
70
72
|
createStudyObjectiveRaw(requestParameters: CreateStudyObjectiveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<StudyObjective>>;
|
|
71
73
|
/**
|
|
72
|
-
*
|
|
74
|
+
* Creates a study objective. When the body includes `canvasObject` metadata, the Canvas object is mirrored into the source-of-truth table (upserted on its Canvas identity) and the objective is upserted on (user, Canvas object): re-syncing the same Canvas item updates the user\'s existing objective rather than inserting a duplicate. The X-Canvas-Domain header is required when `canvasObject` is present. Without `canvasObject`, this always inserts a new custom objective.
|
|
75
|
+
* Create or upsert a study objective
|
|
73
76
|
*/
|
|
74
77
|
createStudyObjective(requestParameters: CreateStudyObjectiveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StudyObjective>;
|
|
75
78
|
/**
|
|
@@ -76,7 +76,8 @@ class StudyObjectivesApi extends runtime.BaseAPI {
|
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
|
-
*
|
|
79
|
+
* Creates a study objective. When the body includes `canvasObject` metadata, the Canvas object is mirrored into the source-of-truth table (upserted on its Canvas identity) and the objective is upserted on (user, Canvas object): re-syncing the same Canvas item updates the user\'s existing objective rather than inserting a duplicate. The X-Canvas-Domain header is required when `canvasObject` is present. Without `canvasObject`, this always inserts a new custom objective.
|
|
80
|
+
* Create or upsert a study objective
|
|
80
81
|
*/
|
|
81
82
|
createStudyObjectiveRaw(requestParameters, initOverrides) {
|
|
82
83
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -92,6 +93,9 @@ class StudyObjectivesApi extends runtime.BaseAPI {
|
|
|
92
93
|
if (requestParameters['xUserId'] != null) {
|
|
93
94
|
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
94
95
|
}
|
|
96
|
+
if (requestParameters['xCanvasDomain'] != null) {
|
|
97
|
+
headerParameters['X-Canvas-Domain'] = String(requestParameters['xCanvasDomain']);
|
|
98
|
+
}
|
|
95
99
|
if (this.configuration && this.configuration.apiKey) {
|
|
96
100
|
headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
|
|
97
101
|
}
|
|
@@ -107,7 +111,8 @@ class StudyObjectivesApi extends runtime.BaseAPI {
|
|
|
107
111
|
});
|
|
108
112
|
}
|
|
109
113
|
/**
|
|
110
|
-
*
|
|
114
|
+
* Creates a study objective. When the body includes `canvasObject` metadata, the Canvas object is mirrored into the source-of-truth table (upserted on its Canvas identity) and the objective is upserted on (user, Canvas object): re-syncing the same Canvas item updates the user\'s existing objective rather than inserting a duplicate. The X-Canvas-Domain header is required when `canvasObject` is present. Without `canvasObject`, this always inserts a new custom objective.
|
|
115
|
+
* Create or upsert a study objective
|
|
111
116
|
*/
|
|
112
117
|
createStudyObjective(requestParameters, initOverrides) {
|
|
113
118
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -19,6 +19,7 @@ export interface CreateObjectiveResourceRequest {
|
|
|
19
19
|
export interface CreateStudyObjectiveRequest {
|
|
20
20
|
xUserId: string;
|
|
21
21
|
createStudyObjectiveDto: CreateStudyObjectiveDto;
|
|
22
|
+
xCanvasDomain?: string;
|
|
22
23
|
}
|
|
23
24
|
export interface DeleteObjectiveResourceRequest {
|
|
24
25
|
xUserId: string;
|
|
@@ -65,11 +66,13 @@ export declare class StudyObjectivesApi extends runtime.BaseAPI {
|
|
|
65
66
|
*/
|
|
66
67
|
createObjectiveResource(requestParameters: CreateObjectiveResourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ObjectiveResource>;
|
|
67
68
|
/**
|
|
68
|
-
*
|
|
69
|
+
* Creates a study objective. When the body includes `canvasObject` metadata, the Canvas object is mirrored into the source-of-truth table (upserted on its Canvas identity) and the objective is upserted on (user, Canvas object): re-syncing the same Canvas item updates the user\'s existing objective rather than inserting a duplicate. The X-Canvas-Domain header is required when `canvasObject` is present. Without `canvasObject`, this always inserts a new custom objective.
|
|
70
|
+
* Create or upsert a study objective
|
|
69
71
|
*/
|
|
70
72
|
createStudyObjectiveRaw(requestParameters: CreateStudyObjectiveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<StudyObjective>>;
|
|
71
73
|
/**
|
|
72
|
-
*
|
|
74
|
+
* Creates a study objective. When the body includes `canvasObject` metadata, the Canvas object is mirrored into the source-of-truth table (upserted on its Canvas identity) and the objective is upserted on (user, Canvas object): re-syncing the same Canvas item updates the user\'s existing objective rather than inserting a duplicate. The X-Canvas-Domain header is required when `canvasObject` is present. Without `canvasObject`, this always inserts a new custom objective.
|
|
75
|
+
* Create or upsert a study objective
|
|
73
76
|
*/
|
|
74
77
|
createStudyObjective(requestParameters: CreateStudyObjectiveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StudyObjective>;
|
|
75
78
|
/**
|
|
@@ -73,7 +73,8 @@ export class StudyObjectivesApi extends runtime.BaseAPI {
|
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
75
|
/**
|
|
76
|
-
*
|
|
76
|
+
* Creates a study objective. When the body includes `canvasObject` metadata, the Canvas object is mirrored into the source-of-truth table (upserted on its Canvas identity) and the objective is upserted on (user, Canvas object): re-syncing the same Canvas item updates the user\'s existing objective rather than inserting a duplicate. The X-Canvas-Domain header is required when `canvasObject` is present. Without `canvasObject`, this always inserts a new custom objective.
|
|
77
|
+
* Create or upsert a study objective
|
|
77
78
|
*/
|
|
78
79
|
createStudyObjectiveRaw(requestParameters, initOverrides) {
|
|
79
80
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -89,6 +90,9 @@ export class StudyObjectivesApi extends runtime.BaseAPI {
|
|
|
89
90
|
if (requestParameters['xUserId'] != null) {
|
|
90
91
|
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
91
92
|
}
|
|
93
|
+
if (requestParameters['xCanvasDomain'] != null) {
|
|
94
|
+
headerParameters['X-Canvas-Domain'] = String(requestParameters['xCanvasDomain']);
|
|
95
|
+
}
|
|
92
96
|
if (this.configuration && this.configuration.apiKey) {
|
|
93
97
|
headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
|
|
94
98
|
}
|
|
@@ -104,7 +108,8 @@ export class StudyObjectivesApi extends runtime.BaseAPI {
|
|
|
104
108
|
});
|
|
105
109
|
}
|
|
106
110
|
/**
|
|
107
|
-
*
|
|
111
|
+
* Creates a study objective. When the body includes `canvasObject` metadata, the Canvas object is mirrored into the source-of-truth table (upserted on its Canvas identity) and the objective is upserted on (user, Canvas object): re-syncing the same Canvas item updates the user\'s existing objective rather than inserting a duplicate. The X-Canvas-Domain header is required when `canvasObject` is present. Without `canvasObject`, this always inserts a new custom objective.
|
|
112
|
+
* Create or upsert a study objective
|
|
108
113
|
*/
|
|
109
114
|
createStudyObjective(requestParameters, initOverrides) {
|
|
110
115
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { CreateStudyObjectiveDtoCanvasDocumentsInner } from './CreateStudyObjectiveDtoCanvasDocumentsInner';
|
|
13
|
+
import type { CreateStudyObjectiveDtoCanvasObject } from './CreateStudyObjectiveDtoCanvasObject';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -46,6 +47,12 @@ export interface CreateStudyObjectiveDto {
|
|
|
46
47
|
* @memberof CreateStudyObjectiveDto
|
|
47
48
|
*/
|
|
48
49
|
courseId: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {CreateStudyObjectiveDtoCanvasObject}
|
|
53
|
+
* @memberof CreateStudyObjectiveDto
|
|
54
|
+
*/
|
|
55
|
+
canvasObject?: CreateStudyObjectiveDtoCanvasObject;
|
|
49
56
|
}
|
|
50
57
|
/**
|
|
51
58
|
* Check if a given object implements the CreateStudyObjectiveDto interface.
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { CreateStudyObjectiveDtoCanvasDocumentsInnerFromJSON, CreateStudyObjectiveDtoCanvasDocumentsInnerToJSON, } from './CreateStudyObjectiveDtoCanvasDocumentsInner';
|
|
15
|
+
import { CreateStudyObjectiveDtoCanvasObjectFromJSON, CreateStudyObjectiveDtoCanvasObjectToJSON, } from './CreateStudyObjectiveDtoCanvasObject';
|
|
15
16
|
/**
|
|
16
17
|
* Check if a given object implements the CreateStudyObjectiveDto interface.
|
|
17
18
|
*/
|
|
@@ -35,6 +36,7 @@ export function CreateStudyObjectiveDtoFromJSONTyped(json, ignoreDiscriminator)
|
|
|
35
36
|
'canvasDocuments': json['canvasDocuments'] == null ? undefined : (json['canvasDocuments'].map(CreateStudyObjectiveDtoCanvasDocumentsInnerFromJSON)),
|
|
36
37
|
'dueAt': json['dueAt'] == null ? undefined : (new Date(json['dueAt'])),
|
|
37
38
|
'courseId': json['courseId'],
|
|
39
|
+
'canvasObject': json['canvasObject'] == null ? undefined : CreateStudyObjectiveDtoCanvasObjectFromJSON(json['canvasObject']),
|
|
38
40
|
};
|
|
39
41
|
}
|
|
40
42
|
export function CreateStudyObjectiveDtoToJSON(json) {
|
|
@@ -50,5 +52,6 @@ export function CreateStudyObjectiveDtoToJSONTyped(value, ignoreDiscriminator =
|
|
|
50
52
|
'canvasDocuments': value['canvasDocuments'] == null ? undefined : (value['canvasDocuments'].map(CreateStudyObjectiveDtoCanvasDocumentsInnerToJSON)),
|
|
51
53
|
'dueAt': value['dueAt'] == null ? value['dueAt'] : value['dueAt'].toISOString(),
|
|
52
54
|
'courseId': value['courseId'],
|
|
55
|
+
'canvasObject': CreateStudyObjectiveDtoCanvasObjectToJSON(value['canvasObject']),
|
|
53
56
|
};
|
|
54
57
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 CreateStudyObjectiveDtoCanvasObject
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateStudyObjectiveDtoCanvasObject {
|
|
18
|
+
/**
|
|
19
|
+
* Canvas object reference formatted '{type}:{local_id}'.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateStudyObjectiveDtoCanvasObject
|
|
22
|
+
*/
|
|
23
|
+
canvasObjectRef: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateStudyObjectiveDtoCanvasObject
|
|
28
|
+
*/
|
|
29
|
+
title?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreateStudyObjectiveDtoCanvasObject
|
|
34
|
+
*/
|
|
35
|
+
description?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof CreateStudyObjectiveDtoCanvasObject
|
|
40
|
+
*/
|
|
41
|
+
canvasSourceUpdatedAt?: Date | null;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the CreateStudyObjectiveDtoCanvasObject interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfCreateStudyObjectiveDtoCanvasObject(value: object): value is CreateStudyObjectiveDtoCanvasObject;
|
|
47
|
+
export declare function CreateStudyObjectiveDtoCanvasObjectFromJSON(json: any): CreateStudyObjectiveDtoCanvasObject;
|
|
48
|
+
export declare function CreateStudyObjectiveDtoCanvasObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateStudyObjectiveDtoCanvasObject;
|
|
49
|
+
export declare function CreateStudyObjectiveDtoCanvasObjectToJSON(json: any): CreateStudyObjectiveDtoCanvasObject;
|
|
50
|
+
export declare function CreateStudyObjectiveDtoCanvasObjectToJSONTyped(value?: CreateStudyObjectiveDtoCanvasObject | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
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 CreateStudyObjectiveDtoCanvasObject interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfCreateStudyObjectiveDtoCanvasObject(value) {
|
|
18
|
+
if (!('canvasObjectRef' in value) || value['canvasObjectRef'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function CreateStudyObjectiveDtoCanvasObjectFromJSON(json) {
|
|
23
|
+
return CreateStudyObjectiveDtoCanvasObjectFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function CreateStudyObjectiveDtoCanvasObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'canvasObjectRef': json['canvasObjectRef'],
|
|
31
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
32
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
33
|
+
'canvasSourceUpdatedAt': json['canvasSourceUpdatedAt'] == null ? undefined : (new Date(json['canvasSourceUpdatedAt'])),
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function CreateStudyObjectiveDtoCanvasObjectToJSON(json) {
|
|
37
|
+
return CreateStudyObjectiveDtoCanvasObjectToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function CreateStudyObjectiveDtoCanvasObjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'canvasObjectRef': value['canvasObjectRef'],
|
|
45
|
+
'title': value['title'],
|
|
46
|
+
'description': value['description'],
|
|
47
|
+
'canvasSourceUpdatedAt': value['canvasSourceUpdatedAt'] == null ? value['canvasSourceUpdatedAt'] : value['canvasSourceUpdatedAt'].toISOString(),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -22,6 +22,12 @@ export interface TriggerStudyObjectiveConceptExtractionRequest {
|
|
|
22
22
|
* @memberof TriggerStudyObjectiveConceptExtractionRequest
|
|
23
23
|
*/
|
|
24
24
|
canvasCourseId?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof TriggerStudyObjectiveConceptExtractionRequest
|
|
29
|
+
*/
|
|
30
|
+
syllabusHtml?: string | null;
|
|
25
31
|
/**
|
|
26
32
|
* One to fifty items whose study-objective concepts should be extracted — Canvas objects and/or user-defined study objectives.
|
|
27
33
|
* @type {Array<TriggerStudyObjectiveConceptExtractionRequestItemsInner>}
|
|
@@ -29,6 +29,7 @@ export function TriggerStudyObjectiveConceptExtractionRequestFromJSONTyped(json,
|
|
|
29
29
|
}
|
|
30
30
|
return {
|
|
31
31
|
'canvasCourseId': json['canvasCourseId'] == null ? undefined : json['canvasCourseId'],
|
|
32
|
+
'syllabusHtml': json['syllabusHtml'] == null ? undefined : json['syllabusHtml'],
|
|
32
33
|
'items': (json['items'].map(TriggerStudyObjectiveConceptExtractionRequestItemsInnerFromJSON)),
|
|
33
34
|
};
|
|
34
35
|
}
|
|
@@ -41,6 +42,7 @@ export function TriggerStudyObjectiveConceptExtractionRequestToJSONTyped(value,
|
|
|
41
42
|
}
|
|
42
43
|
return {
|
|
43
44
|
'canvasCourseId': value['canvasCourseId'],
|
|
45
|
+
'syllabusHtml': value['syllabusHtml'],
|
|
44
46
|
'items': (value['items'].map(TriggerStudyObjectiveConceptExtractionRequestItemsInnerToJSON)),
|
|
45
47
|
};
|
|
46
48
|
}
|
|
@@ -40,6 +40,7 @@ export * from './CreatePlanDto';
|
|
|
40
40
|
export * from './CreatePracticeQuizRequest';
|
|
41
41
|
export * from './CreateStudyObjectiveDto';
|
|
42
42
|
export * from './CreateStudyObjectiveDtoCanvasDocumentsInner';
|
|
43
|
+
export * from './CreateStudyObjectiveDtoCanvasObject';
|
|
43
44
|
export * from './CreateTokenRequest';
|
|
44
45
|
export * from './CreateTokenResponse';
|
|
45
46
|
export * from './DailyQuizStatus';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -42,6 +42,7 @@ export * from './CreatePlanDto';
|
|
|
42
42
|
export * from './CreatePracticeQuizRequest';
|
|
43
43
|
export * from './CreateStudyObjectiveDto';
|
|
44
44
|
export * from './CreateStudyObjectiveDtoCanvasDocumentsInner';
|
|
45
|
+
export * from './CreateStudyObjectiveDtoCanvasObject';
|
|
45
46
|
export * from './CreateTokenRequest';
|
|
46
47
|
export * from './CreateTokenResponse';
|
|
47
48
|
export * from './DailyQuizStatus';
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { CreateStudyObjectiveDtoCanvasDocumentsInner } from './CreateStudyObjectiveDtoCanvasDocumentsInner';
|
|
13
|
+
import type { CreateStudyObjectiveDtoCanvasObject } from './CreateStudyObjectiveDtoCanvasObject';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -46,6 +47,12 @@ export interface CreateStudyObjectiveDto {
|
|
|
46
47
|
* @memberof CreateStudyObjectiveDto
|
|
47
48
|
*/
|
|
48
49
|
courseId: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {CreateStudyObjectiveDtoCanvasObject}
|
|
53
|
+
* @memberof CreateStudyObjectiveDto
|
|
54
|
+
*/
|
|
55
|
+
canvasObject?: CreateStudyObjectiveDtoCanvasObject;
|
|
49
56
|
}
|
|
50
57
|
/**
|
|
51
58
|
* Check if a given object implements the CreateStudyObjectiveDto interface.
|
|
@@ -19,6 +19,7 @@ exports.CreateStudyObjectiveDtoFromJSONTyped = CreateStudyObjectiveDtoFromJSONTy
|
|
|
19
19
|
exports.CreateStudyObjectiveDtoToJSON = CreateStudyObjectiveDtoToJSON;
|
|
20
20
|
exports.CreateStudyObjectiveDtoToJSONTyped = CreateStudyObjectiveDtoToJSONTyped;
|
|
21
21
|
const CreateStudyObjectiveDtoCanvasDocumentsInner_1 = require("./CreateStudyObjectiveDtoCanvasDocumentsInner");
|
|
22
|
+
const CreateStudyObjectiveDtoCanvasObject_1 = require("./CreateStudyObjectiveDtoCanvasObject");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the CreateStudyObjectiveDto interface.
|
|
24
25
|
*/
|
|
@@ -42,6 +43,7 @@ function CreateStudyObjectiveDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
43
|
'canvasDocuments': json['canvasDocuments'] == null ? undefined : (json['canvasDocuments'].map(CreateStudyObjectiveDtoCanvasDocumentsInner_1.CreateStudyObjectiveDtoCanvasDocumentsInnerFromJSON)),
|
|
43
44
|
'dueAt': json['dueAt'] == null ? undefined : (new Date(json['dueAt'])),
|
|
44
45
|
'courseId': json['courseId'],
|
|
46
|
+
'canvasObject': json['canvasObject'] == null ? undefined : (0, CreateStudyObjectiveDtoCanvasObject_1.CreateStudyObjectiveDtoCanvasObjectFromJSON)(json['canvasObject']),
|
|
45
47
|
};
|
|
46
48
|
}
|
|
47
49
|
function CreateStudyObjectiveDtoToJSON(json) {
|
|
@@ -57,5 +59,6 @@ function CreateStudyObjectiveDtoToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
57
59
|
'canvasDocuments': value['canvasDocuments'] == null ? undefined : (value['canvasDocuments'].map(CreateStudyObjectiveDtoCanvasDocumentsInner_1.CreateStudyObjectiveDtoCanvasDocumentsInnerToJSON)),
|
|
58
60
|
'dueAt': value['dueAt'] == null ? value['dueAt'] : value['dueAt'].toISOString(),
|
|
59
61
|
'courseId': value['courseId'],
|
|
62
|
+
'canvasObject': (0, CreateStudyObjectiveDtoCanvasObject_1.CreateStudyObjectiveDtoCanvasObjectToJSON)(value['canvasObject']),
|
|
60
63
|
};
|
|
61
64
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 CreateStudyObjectiveDtoCanvasObject
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateStudyObjectiveDtoCanvasObject {
|
|
18
|
+
/**
|
|
19
|
+
* Canvas object reference formatted '{type}:{local_id}'.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateStudyObjectiveDtoCanvasObject
|
|
22
|
+
*/
|
|
23
|
+
canvasObjectRef: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateStudyObjectiveDtoCanvasObject
|
|
28
|
+
*/
|
|
29
|
+
title?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreateStudyObjectiveDtoCanvasObject
|
|
34
|
+
*/
|
|
35
|
+
description?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof CreateStudyObjectiveDtoCanvasObject
|
|
40
|
+
*/
|
|
41
|
+
canvasSourceUpdatedAt?: Date | null;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the CreateStudyObjectiveDtoCanvasObject interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfCreateStudyObjectiveDtoCanvasObject(value: object): value is CreateStudyObjectiveDtoCanvasObject;
|
|
47
|
+
export declare function CreateStudyObjectiveDtoCanvasObjectFromJSON(json: any): CreateStudyObjectiveDtoCanvasObject;
|
|
48
|
+
export declare function CreateStudyObjectiveDtoCanvasObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateStudyObjectiveDtoCanvasObject;
|
|
49
|
+
export declare function CreateStudyObjectiveDtoCanvasObjectToJSON(json: any): CreateStudyObjectiveDtoCanvasObject;
|
|
50
|
+
export declare function CreateStudyObjectiveDtoCanvasObjectToJSONTyped(value?: CreateStudyObjectiveDtoCanvasObject | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
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.instanceOfCreateStudyObjectiveDtoCanvasObject = instanceOfCreateStudyObjectiveDtoCanvasObject;
|
|
17
|
+
exports.CreateStudyObjectiveDtoCanvasObjectFromJSON = CreateStudyObjectiveDtoCanvasObjectFromJSON;
|
|
18
|
+
exports.CreateStudyObjectiveDtoCanvasObjectFromJSONTyped = CreateStudyObjectiveDtoCanvasObjectFromJSONTyped;
|
|
19
|
+
exports.CreateStudyObjectiveDtoCanvasObjectToJSON = CreateStudyObjectiveDtoCanvasObjectToJSON;
|
|
20
|
+
exports.CreateStudyObjectiveDtoCanvasObjectToJSONTyped = CreateStudyObjectiveDtoCanvasObjectToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CreateStudyObjectiveDtoCanvasObject interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCreateStudyObjectiveDtoCanvasObject(value) {
|
|
25
|
+
if (!('canvasObjectRef' in value) || value['canvasObjectRef'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function CreateStudyObjectiveDtoCanvasObjectFromJSON(json) {
|
|
30
|
+
return CreateStudyObjectiveDtoCanvasObjectFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function CreateStudyObjectiveDtoCanvasObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'canvasObjectRef': json['canvasObjectRef'],
|
|
38
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
39
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
40
|
+
'canvasSourceUpdatedAt': json['canvasSourceUpdatedAt'] == null ? undefined : (new Date(json['canvasSourceUpdatedAt'])),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function CreateStudyObjectiveDtoCanvasObjectToJSON(json) {
|
|
44
|
+
return CreateStudyObjectiveDtoCanvasObjectToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function CreateStudyObjectiveDtoCanvasObjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'canvasObjectRef': value['canvasObjectRef'],
|
|
52
|
+
'title': value['title'],
|
|
53
|
+
'description': value['description'],
|
|
54
|
+
'canvasSourceUpdatedAt': value['canvasSourceUpdatedAt'] == null ? value['canvasSourceUpdatedAt'] : value['canvasSourceUpdatedAt'].toISOString(),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -22,6 +22,12 @@ export interface TriggerStudyObjectiveConceptExtractionRequest {
|
|
|
22
22
|
* @memberof TriggerStudyObjectiveConceptExtractionRequest
|
|
23
23
|
*/
|
|
24
24
|
canvasCourseId?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof TriggerStudyObjectiveConceptExtractionRequest
|
|
29
|
+
*/
|
|
30
|
+
syllabusHtml?: string | null;
|
|
25
31
|
/**
|
|
26
32
|
* One to fifty items whose study-objective concepts should be extracted — Canvas objects and/or user-defined study objectives.
|
|
27
33
|
* @type {Array<TriggerStudyObjectiveConceptExtractionRequestItemsInner>}
|
|
@@ -36,6 +36,7 @@ function TriggerStudyObjectiveConceptExtractionRequestFromJSONTyped(json, ignore
|
|
|
36
36
|
}
|
|
37
37
|
return {
|
|
38
38
|
'canvasCourseId': json['canvasCourseId'] == null ? undefined : json['canvasCourseId'],
|
|
39
|
+
'syllabusHtml': json['syllabusHtml'] == null ? undefined : json['syllabusHtml'],
|
|
39
40
|
'items': (json['items'].map(TriggerStudyObjectiveConceptExtractionRequestItemsInner_1.TriggerStudyObjectiveConceptExtractionRequestItemsInnerFromJSON)),
|
|
40
41
|
};
|
|
41
42
|
}
|
|
@@ -48,6 +49,7 @@ function TriggerStudyObjectiveConceptExtractionRequestToJSONTyped(value, ignoreD
|
|
|
48
49
|
}
|
|
49
50
|
return {
|
|
50
51
|
'canvasCourseId': value['canvasCourseId'],
|
|
52
|
+
'syllabusHtml': value['syllabusHtml'],
|
|
51
53
|
'items': (value['items'].map(TriggerStudyObjectiveConceptExtractionRequestItemsInner_1.TriggerStudyObjectiveConceptExtractionRequestItemsInnerToJSON)),
|
|
52
54
|
};
|
|
53
55
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ export * from './CreatePlanDto';
|
|
|
40
40
|
export * from './CreatePracticeQuizRequest';
|
|
41
41
|
export * from './CreateStudyObjectiveDto';
|
|
42
42
|
export * from './CreateStudyObjectiveDtoCanvasDocumentsInner';
|
|
43
|
+
export * from './CreateStudyObjectiveDtoCanvasObject';
|
|
43
44
|
export * from './CreateTokenRequest';
|
|
44
45
|
export * from './CreateTokenResponse';
|
|
45
46
|
export * from './DailyQuizStatus';
|
package/dist/models/index.js
CHANGED
|
@@ -58,6 +58,7 @@ __exportStar(require("./CreatePlanDto"), exports);
|
|
|
58
58
|
__exportStar(require("./CreatePracticeQuizRequest"), exports);
|
|
59
59
|
__exportStar(require("./CreateStudyObjectiveDto"), exports);
|
|
60
60
|
__exportStar(require("./CreateStudyObjectiveDtoCanvasDocumentsInner"), exports);
|
|
61
|
+
__exportStar(require("./CreateStudyObjectiveDtoCanvasObject"), exports);
|
|
61
62
|
__exportStar(require("./CreateTokenRequest"), exports);
|
|
62
63
|
__exportStar(require("./CreateTokenResponse"), exports);
|
|
63
64
|
__exportStar(require("./DailyQuizStatus"), exports);
|