@instructure/athena-api-client 3.18.10 → 3.19.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
CHANGED
|
@@ -136,6 +136,7 @@ All URIs are relative to *http://localhost:3000*
|
|
|
136
136
|
*StudyObjectivesApi* | [**deleteStudyObjective**](docs/StudyObjectivesApi.md#deletestudyobjective) | **DELETE** /api/v1/study-objectives/{studyObjectiveId} | Delete a study objective
|
|
137
137
|
*StudyObjectivesApi* | [**getStudyObjective**](docs/StudyObjectivesApi.md#getstudyobjective) | **GET** /api/v1/study-objectives/{studyObjectiveId} | Get a study objective by ID
|
|
138
138
|
*StudyObjectivesApi* | [**listObjectiveResources**](docs/StudyObjectivesApi.md#listobjectiveresources) | **GET** /api/v1/study-objectives/{studyObjectiveId}/resources | List resources attached to a study objective
|
|
139
|
+
*StudyObjectivesApi* | [**listStudyObjectiveQuizzes**](docs/StudyObjectivesApi.md#liststudyobjectivequizzes) | **GET** /api/v1/study-objectives/{studyObjectiveId}/quizzes | List quizzes and flashcards for a study objective
|
|
139
140
|
*StudyObjectivesApi* | [**listStudyObjectives**](docs/StudyObjectivesApi.md#liststudyobjectives) | **GET** /api/v1/study-objectives | List study objectives for a course
|
|
140
141
|
*StudyObjectivesApi* | [**updateStudyObjective**](docs/StudyObjectivesApi.md#updatestudyobjective) | **PATCH** /api/v1/study-objectives/{studyObjectiveId} | Update a study objective
|
|
141
142
|
*StudyPrepApi* | [**assessCanvasKnowledge**](docs/StudyPrepApi.md#assesscanvasknowledge) | **POST** /api/v1/study-prep/knowledge-assessment | Assess user knowledge from Canvas course grades
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CreateObjectiveResourceDto, CreateStudyObjectiveDto, ObjectiveResource, PaginatedObjectiveResources, PaginatedStudyObjectives, StudyObjective, UpdateStudyObjectiveDto } from '../models/index';
|
|
13
|
+
import type { CreateObjectiveResourceDto, CreateStudyObjectiveDto, ObjectiveResource, PaginatedObjectiveResources, PaginatedQuizzes, PaginatedStudyObjectives, StudyObjective, UpdateStudyObjectiveDto } from '../models/index';
|
|
14
14
|
export interface CreateObjectiveResourceRequest {
|
|
15
15
|
xUserId: string;
|
|
16
16
|
studyObjectiveId: string;
|
|
@@ -40,6 +40,13 @@ export interface ListObjectiveResourcesRequest {
|
|
|
40
40
|
limit?: number;
|
|
41
41
|
cursor?: string;
|
|
42
42
|
}
|
|
43
|
+
export interface ListStudyObjectiveQuizzesRequest {
|
|
44
|
+
xUserId: string;
|
|
45
|
+
studyObjectiveId: string;
|
|
46
|
+
limit?: number;
|
|
47
|
+
cursor?: string;
|
|
48
|
+
mode?: ListStudyObjectiveQuizzesModeEnum;
|
|
49
|
+
}
|
|
43
50
|
export interface ListStudyObjectivesRequest {
|
|
44
51
|
xUserId: string;
|
|
45
52
|
courseId: string;
|
|
@@ -110,6 +117,16 @@ export declare class StudyObjectivesApi extends runtime.BaseAPI {
|
|
|
110
117
|
* List resources attached to a study objective
|
|
111
118
|
*/
|
|
112
119
|
listObjectiveResources(requestParameters: ListObjectiveResourcesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedObjectiveResources>;
|
|
120
|
+
/**
|
|
121
|
+
* Returns the quizzes and flashcard sets attached to a study objective, ordered by creation date (newest first). Each item carries the id of the chat it was generated in, so a client can open the originating conversation.
|
|
122
|
+
* List quizzes and flashcards for a study objective
|
|
123
|
+
*/
|
|
124
|
+
listStudyObjectiveQuizzesRaw(requestParameters: ListStudyObjectiveQuizzesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedQuizzes>>;
|
|
125
|
+
/**
|
|
126
|
+
* Returns the quizzes and flashcard sets attached to a study objective, ordered by creation date (newest first). Each item carries the id of the chat it was generated in, so a client can open the originating conversation.
|
|
127
|
+
* List quizzes and flashcards for a study objective
|
|
128
|
+
*/
|
|
129
|
+
listStudyObjectiveQuizzes(requestParameters: ListStudyObjectiveQuizzesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedQuizzes>;
|
|
113
130
|
/**
|
|
114
131
|
* Returns study objectives for the authenticated user filtered by course, ordered by creation date (newest first).
|
|
115
132
|
* List study objectives for a course
|
|
@@ -129,6 +146,14 @@ export declare class StudyObjectivesApi extends runtime.BaseAPI {
|
|
|
129
146
|
*/
|
|
130
147
|
updateStudyObjective(requestParameters: UpdateStudyObjectiveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StudyObjective>;
|
|
131
148
|
}
|
|
149
|
+
/**
|
|
150
|
+
* @export
|
|
151
|
+
*/
|
|
152
|
+
export declare const ListStudyObjectiveQuizzesModeEnum: {
|
|
153
|
+
readonly Quiz: "quiz";
|
|
154
|
+
readonly Flashcards: "flashcards";
|
|
155
|
+
};
|
|
156
|
+
export type ListStudyObjectiveQuizzesModeEnum = typeof ListStudyObjectiveQuizzesModeEnum[keyof typeof ListStudyObjectiveQuizzesModeEnum];
|
|
132
157
|
/**
|
|
133
158
|
* @export
|
|
134
159
|
*/
|
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.ListStudyObjectivesStatusEnum = exports.StudyObjectivesApi = void 0;
|
|
25
|
+
exports.ListStudyObjectivesStatusEnum = exports.ListStudyObjectiveQuizzesModeEnum = exports.StudyObjectivesApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
27
|
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
@@ -286,6 +286,56 @@ class StudyObjectivesApi extends runtime.BaseAPI {
|
|
|
286
286
|
return yield response.value();
|
|
287
287
|
});
|
|
288
288
|
}
|
|
289
|
+
/**
|
|
290
|
+
* Returns the quizzes and flashcard sets attached to a study objective, ordered by creation date (newest first). Each item carries the id of the chat it was generated in, so a client can open the originating conversation.
|
|
291
|
+
* List quizzes and flashcards for a study objective
|
|
292
|
+
*/
|
|
293
|
+
listStudyObjectiveQuizzesRaw(requestParameters, initOverrides) {
|
|
294
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
295
|
+
if (requestParameters['xUserId'] == null) {
|
|
296
|
+
throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling listStudyObjectiveQuizzes().');
|
|
297
|
+
}
|
|
298
|
+
if (requestParameters['studyObjectiveId'] == null) {
|
|
299
|
+
throw new runtime.RequiredError('studyObjectiveId', 'Required parameter "studyObjectiveId" was null or undefined when calling listStudyObjectiveQuizzes().');
|
|
300
|
+
}
|
|
301
|
+
const queryParameters = {};
|
|
302
|
+
if (requestParameters['limit'] != null) {
|
|
303
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
304
|
+
}
|
|
305
|
+
if (requestParameters['cursor'] != null) {
|
|
306
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
307
|
+
}
|
|
308
|
+
if (requestParameters['mode'] != null) {
|
|
309
|
+
queryParameters['mode'] = requestParameters['mode'];
|
|
310
|
+
}
|
|
311
|
+
const headerParameters = {};
|
|
312
|
+
if (requestParameters['xUserId'] != null) {
|
|
313
|
+
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
314
|
+
}
|
|
315
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
316
|
+
headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
|
|
317
|
+
}
|
|
318
|
+
let urlPath = `/api/v1/study-objectives/{studyObjectiveId}/quizzes`;
|
|
319
|
+
urlPath = urlPath.replace(`{${"studyObjectiveId"}}`, encodeURIComponent(String(requestParameters['studyObjectiveId'])));
|
|
320
|
+
const response = yield this.request({
|
|
321
|
+
path: urlPath,
|
|
322
|
+
method: 'GET',
|
|
323
|
+
headers: headerParameters,
|
|
324
|
+
query: queryParameters,
|
|
325
|
+
}, initOverrides);
|
|
326
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PaginatedQuizzesFromJSON)(jsonValue));
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* Returns the quizzes and flashcard sets attached to a study objective, ordered by creation date (newest first). Each item carries the id of the chat it was generated in, so a client can open the originating conversation.
|
|
331
|
+
* List quizzes and flashcards for a study objective
|
|
332
|
+
*/
|
|
333
|
+
listStudyObjectiveQuizzes(requestParameters, initOverrides) {
|
|
334
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
335
|
+
const response = yield this.listStudyObjectiveQuizzesRaw(requestParameters, initOverrides);
|
|
336
|
+
return yield response.value();
|
|
337
|
+
});
|
|
338
|
+
}
|
|
289
339
|
/**
|
|
290
340
|
* Returns study objectives for the authenticated user filtered by course, ordered by creation date (newest first).
|
|
291
341
|
* List study objectives for a course
|
|
@@ -384,6 +434,13 @@ class StudyObjectivesApi extends runtime.BaseAPI {
|
|
|
384
434
|
}
|
|
385
435
|
}
|
|
386
436
|
exports.StudyObjectivesApi = StudyObjectivesApi;
|
|
437
|
+
/**
|
|
438
|
+
* @export
|
|
439
|
+
*/
|
|
440
|
+
exports.ListStudyObjectiveQuizzesModeEnum = {
|
|
441
|
+
Quiz: 'quiz',
|
|
442
|
+
Flashcards: 'flashcards'
|
|
443
|
+
};
|
|
387
444
|
/**
|
|
388
445
|
* @export
|
|
389
446
|
*/
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CreateObjectiveResourceDto, CreateStudyObjectiveDto, ObjectiveResource, PaginatedObjectiveResources, PaginatedStudyObjectives, StudyObjective, UpdateStudyObjectiveDto } from '../models/index';
|
|
13
|
+
import type { CreateObjectiveResourceDto, CreateStudyObjectiveDto, ObjectiveResource, PaginatedObjectiveResources, PaginatedQuizzes, PaginatedStudyObjectives, StudyObjective, UpdateStudyObjectiveDto } from '../models/index';
|
|
14
14
|
export interface CreateObjectiveResourceRequest {
|
|
15
15
|
xUserId: string;
|
|
16
16
|
studyObjectiveId: string;
|
|
@@ -40,6 +40,13 @@ export interface ListObjectiveResourcesRequest {
|
|
|
40
40
|
limit?: number;
|
|
41
41
|
cursor?: string;
|
|
42
42
|
}
|
|
43
|
+
export interface ListStudyObjectiveQuizzesRequest {
|
|
44
|
+
xUserId: string;
|
|
45
|
+
studyObjectiveId: string;
|
|
46
|
+
limit?: number;
|
|
47
|
+
cursor?: string;
|
|
48
|
+
mode?: ListStudyObjectiveQuizzesModeEnum;
|
|
49
|
+
}
|
|
43
50
|
export interface ListStudyObjectivesRequest {
|
|
44
51
|
xUserId: string;
|
|
45
52
|
courseId: string;
|
|
@@ -110,6 +117,16 @@ export declare class StudyObjectivesApi extends runtime.BaseAPI {
|
|
|
110
117
|
* List resources attached to a study objective
|
|
111
118
|
*/
|
|
112
119
|
listObjectiveResources(requestParameters: ListObjectiveResourcesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedObjectiveResources>;
|
|
120
|
+
/**
|
|
121
|
+
* Returns the quizzes and flashcard sets attached to a study objective, ordered by creation date (newest first). Each item carries the id of the chat it was generated in, so a client can open the originating conversation.
|
|
122
|
+
* List quizzes and flashcards for a study objective
|
|
123
|
+
*/
|
|
124
|
+
listStudyObjectiveQuizzesRaw(requestParameters: ListStudyObjectiveQuizzesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedQuizzes>>;
|
|
125
|
+
/**
|
|
126
|
+
* Returns the quizzes and flashcard sets attached to a study objective, ordered by creation date (newest first). Each item carries the id of the chat it was generated in, so a client can open the originating conversation.
|
|
127
|
+
* List quizzes and flashcards for a study objective
|
|
128
|
+
*/
|
|
129
|
+
listStudyObjectiveQuizzes(requestParameters: ListStudyObjectiveQuizzesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedQuizzes>;
|
|
113
130
|
/**
|
|
114
131
|
* Returns study objectives for the authenticated user filtered by course, ordered by creation date (newest first).
|
|
115
132
|
* List study objectives for a course
|
|
@@ -129,6 +146,14 @@ export declare class StudyObjectivesApi extends runtime.BaseAPI {
|
|
|
129
146
|
*/
|
|
130
147
|
updateStudyObjective(requestParameters: UpdateStudyObjectiveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StudyObjective>;
|
|
131
148
|
}
|
|
149
|
+
/**
|
|
150
|
+
* @export
|
|
151
|
+
*/
|
|
152
|
+
export declare const ListStudyObjectiveQuizzesModeEnum: {
|
|
153
|
+
readonly Quiz: "quiz";
|
|
154
|
+
readonly Flashcards: "flashcards";
|
|
155
|
+
};
|
|
156
|
+
export type ListStudyObjectiveQuizzesModeEnum = typeof ListStudyObjectiveQuizzesModeEnum[keyof typeof ListStudyObjectiveQuizzesModeEnum];
|
|
132
157
|
/**
|
|
133
158
|
* @export
|
|
134
159
|
*/
|
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { CreateObjectiveResourceDtoToJSON, CreateStudyObjectiveDtoToJSON, ObjectiveResourceFromJSON, PaginatedObjectiveResourcesFromJSON, PaginatedStudyObjectivesFromJSON, StudyObjectiveFromJSON, UpdateStudyObjectiveDtoToJSON, } from '../models/index';
|
|
24
|
+
import { CreateObjectiveResourceDtoToJSON, CreateStudyObjectiveDtoToJSON, ObjectiveResourceFromJSON, PaginatedObjectiveResourcesFromJSON, PaginatedQuizzesFromJSON, PaginatedStudyObjectivesFromJSON, StudyObjectiveFromJSON, UpdateStudyObjectiveDtoToJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -283,6 +283,56 @@ export class StudyObjectivesApi extends runtime.BaseAPI {
|
|
|
283
283
|
return yield response.value();
|
|
284
284
|
});
|
|
285
285
|
}
|
|
286
|
+
/**
|
|
287
|
+
* Returns the quizzes and flashcard sets attached to a study objective, ordered by creation date (newest first). Each item carries the id of the chat it was generated in, so a client can open the originating conversation.
|
|
288
|
+
* List quizzes and flashcards for a study objective
|
|
289
|
+
*/
|
|
290
|
+
listStudyObjectiveQuizzesRaw(requestParameters, initOverrides) {
|
|
291
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
292
|
+
if (requestParameters['xUserId'] == null) {
|
|
293
|
+
throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling listStudyObjectiveQuizzes().');
|
|
294
|
+
}
|
|
295
|
+
if (requestParameters['studyObjectiveId'] == null) {
|
|
296
|
+
throw new runtime.RequiredError('studyObjectiveId', 'Required parameter "studyObjectiveId" was null or undefined when calling listStudyObjectiveQuizzes().');
|
|
297
|
+
}
|
|
298
|
+
const queryParameters = {};
|
|
299
|
+
if (requestParameters['limit'] != null) {
|
|
300
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
301
|
+
}
|
|
302
|
+
if (requestParameters['cursor'] != null) {
|
|
303
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
304
|
+
}
|
|
305
|
+
if (requestParameters['mode'] != null) {
|
|
306
|
+
queryParameters['mode'] = requestParameters['mode'];
|
|
307
|
+
}
|
|
308
|
+
const headerParameters = {};
|
|
309
|
+
if (requestParameters['xUserId'] != null) {
|
|
310
|
+
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
311
|
+
}
|
|
312
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
313
|
+
headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
|
|
314
|
+
}
|
|
315
|
+
let urlPath = `/api/v1/study-objectives/{studyObjectiveId}/quizzes`;
|
|
316
|
+
urlPath = urlPath.replace(`{${"studyObjectiveId"}}`, encodeURIComponent(String(requestParameters['studyObjectiveId'])));
|
|
317
|
+
const response = yield this.request({
|
|
318
|
+
path: urlPath,
|
|
319
|
+
method: 'GET',
|
|
320
|
+
headers: headerParameters,
|
|
321
|
+
query: queryParameters,
|
|
322
|
+
}, initOverrides);
|
|
323
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedQuizzesFromJSON(jsonValue));
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* Returns the quizzes and flashcard sets attached to a study objective, ordered by creation date (newest first). Each item carries the id of the chat it was generated in, so a client can open the originating conversation.
|
|
328
|
+
* List quizzes and flashcards for a study objective
|
|
329
|
+
*/
|
|
330
|
+
listStudyObjectiveQuizzes(requestParameters, initOverrides) {
|
|
331
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
332
|
+
const response = yield this.listStudyObjectiveQuizzesRaw(requestParameters, initOverrides);
|
|
333
|
+
return yield response.value();
|
|
334
|
+
});
|
|
335
|
+
}
|
|
286
336
|
/**
|
|
287
337
|
* Returns study objectives for the authenticated user filtered by course, ordered by creation date (newest first).
|
|
288
338
|
* List study objectives for a course
|
|
@@ -380,6 +430,13 @@ export class StudyObjectivesApi extends runtime.BaseAPI {
|
|
|
380
430
|
});
|
|
381
431
|
}
|
|
382
432
|
}
|
|
433
|
+
/**
|
|
434
|
+
* @export
|
|
435
|
+
*/
|
|
436
|
+
export const ListStudyObjectiveQuizzesModeEnum = {
|
|
437
|
+
Quiz: 'quiz',
|
|
438
|
+
Flashcards: 'flashcards'
|
|
439
|
+
};
|
|
383
440
|
/**
|
|
384
441
|
* @export
|
|
385
442
|
*/
|