@instructure/athena-api-client 3.24.3 → 3.25.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 +1 -1
- package/dist/apis/StudyObjectivesApi.d.ts +8 -7
- package/dist/apis/StudyObjectivesApi.js +9 -9
- package/dist/esm/apis/StudyObjectivesApi.d.ts +8 -7
- package/dist/esm/apis/StudyObjectivesApi.js +9 -9
- package/dist/esm/models/AdminStudyObjectiveListItem.d.ts +2 -2
- package/dist/esm/models/CreateStudyObjectiveDto.d.ts +9 -3
- package/dist/esm/models/CreateStudyObjectiveDto.js +3 -3
- package/dist/esm/models/StudyObjective.d.ts +8 -2
- package/dist/esm/models/StudyObjective.js +4 -0
- package/dist/models/AdminStudyObjectiveListItem.d.ts +2 -2
- package/dist/models/CreateStudyObjectiveDto.d.ts +9 -3
- package/dist/models/CreateStudyObjectiveDto.js +3 -3
- package/dist/models/StudyObjective.d.ts +8 -2
- package/dist/models/StudyObjective.js +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -138,7 +138,7 @@ All URIs are relative to *http://localhost:3000*
|
|
|
138
138
|
*StudyObjectivesApi* | [**getStudyObjective**](docs/StudyObjectivesApi.md#getstudyobjective) | **GET** /api/v1/study-objectives/{studyObjectiveId} | Get a study objective by ID
|
|
139
139
|
*StudyObjectivesApi* | [**listObjectiveResources**](docs/StudyObjectivesApi.md#listobjectiveresources) | **GET** /api/v1/study-objectives/{studyObjectiveId}/resources | List resources attached to a study objective
|
|
140
140
|
*StudyObjectivesApi* | [**listStudyObjectiveQuizzes**](docs/StudyObjectivesApi.md#liststudyobjectivequizzes) | **GET** /api/v1/study-objectives/{studyObjectiveId}/quizzes | List quizzes and flashcards for a study objective
|
|
141
|
-
*StudyObjectivesApi* | [**listStudyObjectives**](docs/StudyObjectivesApi.md#liststudyobjectives) | **GET** /api/v1/study-objectives | List study objectives for a course
|
|
141
|
+
*StudyObjectivesApi* | [**listStudyObjectives**](docs/StudyObjectivesApi.md#liststudyobjectives) | **GET** /api/v1/study-objectives | List study objectives for a course or study space
|
|
142
142
|
*StudyObjectivesApi* | [**updateStudyObjective**](docs/StudyObjectivesApi.md#updatestudyobjective) | **PATCH** /api/v1/study-objectives/{studyObjectiveId} | Update a study objective
|
|
143
143
|
*StudyPlansApi* | [**deleteStudyPlan**](docs/StudyPlansApi.md#deletestudyplan) | **DELETE** /api/v1/study-plans/{planId} | Delete a study plan
|
|
144
144
|
*StudyPlansApi* | [**getStudyObjectiveStudyPlan**](docs/StudyPlansApi.md#getstudyobjectivestudyplan) | **GET** /api/v1/study-objectives/{studyObjectiveId}/study-plan | Get a study objective\'s plan
|
|
@@ -49,9 +49,10 @@ export interface ListStudyObjectiveQuizzesRequest {
|
|
|
49
49
|
}
|
|
50
50
|
export interface ListStudyObjectivesRequest {
|
|
51
51
|
xUserId: string;
|
|
52
|
-
courseId: string;
|
|
53
52
|
limit?: number;
|
|
54
53
|
cursor?: string;
|
|
54
|
+
courseId?: string;
|
|
55
|
+
studySpaceId?: string;
|
|
55
56
|
status?: ListStudyObjectivesStatusEnum;
|
|
56
57
|
}
|
|
57
58
|
export interface UpdateStudyObjectiveRequest {
|
|
@@ -74,12 +75,12 @@ export declare class StudyObjectivesApi extends runtime.BaseAPI {
|
|
|
74
75
|
*/
|
|
75
76
|
createObjectiveResource(requestParameters: CreateObjectiveResourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ObjectiveResource>;
|
|
76
77
|
/**
|
|
77
|
-
* 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.
|
|
78
|
+
* Creates a study objective in one of the learner\'s study spaces, addressed either by `courseId` (the space for that Canvas course, created on first use) or by `studySpaceId` (an existing space, which is how an objective reaches a space that has no Canvas course). Exactly one of the two is required. An objective filed by `studySpaceId` inherits the space\'s course, so a space with no Canvas course produces an objective with no course id, reachable only through `GET ?studySpaceId=`. 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. `canvasObject` requires `courseId` and the X-Canvas-Domain header. Without `canvasObject`, this always inserts a new custom objective.
|
|
78
79
|
* Create or upsert a study objective
|
|
79
80
|
*/
|
|
80
81
|
createStudyObjectiveRaw(requestParameters: CreateStudyObjectiveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<StudyObjective>>;
|
|
81
82
|
/**
|
|
82
|
-
* 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.
|
|
83
|
+
* Creates a study objective in one of the learner\'s study spaces, addressed either by `courseId` (the space for that Canvas course, created on first use) or by `studySpaceId` (an existing space, which is how an objective reaches a space that has no Canvas course). Exactly one of the two is required. An objective filed by `studySpaceId` inherits the space\'s course, so a space with no Canvas course produces an objective with no course id, reachable only through `GET ?studySpaceId=`. 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. `canvasObject` requires `courseId` and the X-Canvas-Domain header. Without `canvasObject`, this always inserts a new custom objective.
|
|
83
84
|
* Create or upsert a study objective
|
|
84
85
|
*/
|
|
85
86
|
createStudyObjective(requestParameters: CreateStudyObjectiveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StudyObjective>;
|
|
@@ -128,13 +129,13 @@ export declare class StudyObjectivesApi extends runtime.BaseAPI {
|
|
|
128
129
|
*/
|
|
129
130
|
listStudyObjectiveQuizzes(requestParameters: ListStudyObjectiveQuizzesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedQuizzes>;
|
|
130
131
|
/**
|
|
131
|
-
* Returns study objectives for the authenticated user
|
|
132
|
-
* List study objectives for a course
|
|
132
|
+
* Returns study objectives for the authenticated user within one scope, ordered by creation date (newest first). Scope is either `courseId` (every objective the learner has for that Canvas course) or `studySpaceId` (every objective filed in that space, which is the only way to reach a space that has no Canvas course). Exactly one of the two is required.
|
|
133
|
+
* List study objectives for a course or study space
|
|
133
134
|
*/
|
|
134
135
|
listStudyObjectivesRaw(requestParameters: ListStudyObjectivesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedStudyObjectives>>;
|
|
135
136
|
/**
|
|
136
|
-
* Returns study objectives for the authenticated user
|
|
137
|
-
* List study objectives for a course
|
|
137
|
+
* Returns study objectives for the authenticated user within one scope, ordered by creation date (newest first). Scope is either `courseId` (every objective the learner has for that Canvas course) or `studySpaceId` (every objective filed in that space, which is the only way to reach a space that has no Canvas course). Exactly one of the two is required.
|
|
138
|
+
* List study objectives for a course or study space
|
|
138
139
|
*/
|
|
139
140
|
listStudyObjectives(requestParameters: ListStudyObjectivesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedStudyObjectives>;
|
|
140
141
|
/**
|
|
@@ -76,7 +76,7 @@ class StudyObjectivesApi extends runtime.BaseAPI {
|
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
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.
|
|
79
|
+
* Creates a study objective in one of the learner\'s study spaces, addressed either by `courseId` (the space for that Canvas course, created on first use) or by `studySpaceId` (an existing space, which is how an objective reaches a space that has no Canvas course). Exactly one of the two is required. An objective filed by `studySpaceId` inherits the space\'s course, so a space with no Canvas course produces an objective with no course id, reachable only through `GET ?studySpaceId=`. 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. `canvasObject` requires `courseId` and the X-Canvas-Domain header. Without `canvasObject`, this always inserts a new custom objective.
|
|
80
80
|
* Create or upsert a study objective
|
|
81
81
|
*/
|
|
82
82
|
createStudyObjectiveRaw(requestParameters, initOverrides) {
|
|
@@ -111,7 +111,7 @@ class StudyObjectivesApi extends runtime.BaseAPI {
|
|
|
111
111
|
});
|
|
112
112
|
}
|
|
113
113
|
/**
|
|
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.
|
|
114
|
+
* Creates a study objective in one of the learner\'s study spaces, addressed either by `courseId` (the space for that Canvas course, created on first use) or by `studySpaceId` (an existing space, which is how an objective reaches a space that has no Canvas course). Exactly one of the two is required. An objective filed by `studySpaceId` inherits the space\'s course, so a space with no Canvas course produces an objective with no course id, reachable only through `GET ?studySpaceId=`. 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. `canvasObject` requires `courseId` and the X-Canvas-Domain header. Without `canvasObject`, this always inserts a new custom objective.
|
|
115
115
|
* Create or upsert a study objective
|
|
116
116
|
*/
|
|
117
117
|
createStudyObjective(requestParameters, initOverrides) {
|
|
@@ -337,17 +337,14 @@ class StudyObjectivesApi extends runtime.BaseAPI {
|
|
|
337
337
|
});
|
|
338
338
|
}
|
|
339
339
|
/**
|
|
340
|
-
* Returns study objectives for the authenticated user
|
|
341
|
-
* List study objectives for a course
|
|
340
|
+
* Returns study objectives for the authenticated user within one scope, ordered by creation date (newest first). Scope is either `courseId` (every objective the learner has for that Canvas course) or `studySpaceId` (every objective filed in that space, which is the only way to reach a space that has no Canvas course). Exactly one of the two is required.
|
|
341
|
+
* List study objectives for a course or study space
|
|
342
342
|
*/
|
|
343
343
|
listStudyObjectivesRaw(requestParameters, initOverrides) {
|
|
344
344
|
return __awaiter(this, void 0, void 0, function* () {
|
|
345
345
|
if (requestParameters['xUserId'] == null) {
|
|
346
346
|
throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling listStudyObjectives().');
|
|
347
347
|
}
|
|
348
|
-
if (requestParameters['courseId'] == null) {
|
|
349
|
-
throw new runtime.RequiredError('courseId', 'Required parameter "courseId" was null or undefined when calling listStudyObjectives().');
|
|
350
|
-
}
|
|
351
348
|
const queryParameters = {};
|
|
352
349
|
if (requestParameters['limit'] != null) {
|
|
353
350
|
queryParameters['limit'] = requestParameters['limit'];
|
|
@@ -358,6 +355,9 @@ class StudyObjectivesApi extends runtime.BaseAPI {
|
|
|
358
355
|
if (requestParameters['courseId'] != null) {
|
|
359
356
|
queryParameters['courseId'] = requestParameters['courseId'];
|
|
360
357
|
}
|
|
358
|
+
if (requestParameters['studySpaceId'] != null) {
|
|
359
|
+
queryParameters['studySpaceId'] = requestParameters['studySpaceId'];
|
|
360
|
+
}
|
|
361
361
|
if (requestParameters['status'] != null) {
|
|
362
362
|
queryParameters['status'] = requestParameters['status'];
|
|
363
363
|
}
|
|
@@ -379,8 +379,8 @@ class StudyObjectivesApi extends runtime.BaseAPI {
|
|
|
379
379
|
});
|
|
380
380
|
}
|
|
381
381
|
/**
|
|
382
|
-
* Returns study objectives for the authenticated user
|
|
383
|
-
* List study objectives for a course
|
|
382
|
+
* Returns study objectives for the authenticated user within one scope, ordered by creation date (newest first). Scope is either `courseId` (every objective the learner has for that Canvas course) or `studySpaceId` (every objective filed in that space, which is the only way to reach a space that has no Canvas course). Exactly one of the two is required.
|
|
383
|
+
* List study objectives for a course or study space
|
|
384
384
|
*/
|
|
385
385
|
listStudyObjectives(requestParameters, initOverrides) {
|
|
386
386
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -49,9 +49,10 @@ export interface ListStudyObjectiveQuizzesRequest {
|
|
|
49
49
|
}
|
|
50
50
|
export interface ListStudyObjectivesRequest {
|
|
51
51
|
xUserId: string;
|
|
52
|
-
courseId: string;
|
|
53
52
|
limit?: number;
|
|
54
53
|
cursor?: string;
|
|
54
|
+
courseId?: string;
|
|
55
|
+
studySpaceId?: string;
|
|
55
56
|
status?: ListStudyObjectivesStatusEnum;
|
|
56
57
|
}
|
|
57
58
|
export interface UpdateStudyObjectiveRequest {
|
|
@@ -74,12 +75,12 @@ export declare class StudyObjectivesApi extends runtime.BaseAPI {
|
|
|
74
75
|
*/
|
|
75
76
|
createObjectiveResource(requestParameters: CreateObjectiveResourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ObjectiveResource>;
|
|
76
77
|
/**
|
|
77
|
-
* 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.
|
|
78
|
+
* Creates a study objective in one of the learner\'s study spaces, addressed either by `courseId` (the space for that Canvas course, created on first use) or by `studySpaceId` (an existing space, which is how an objective reaches a space that has no Canvas course). Exactly one of the two is required. An objective filed by `studySpaceId` inherits the space\'s course, so a space with no Canvas course produces an objective with no course id, reachable only through `GET ?studySpaceId=`. 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. `canvasObject` requires `courseId` and the X-Canvas-Domain header. Without `canvasObject`, this always inserts a new custom objective.
|
|
78
79
|
* Create or upsert a study objective
|
|
79
80
|
*/
|
|
80
81
|
createStudyObjectiveRaw(requestParameters: CreateStudyObjectiveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<StudyObjective>>;
|
|
81
82
|
/**
|
|
82
|
-
* 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.
|
|
83
|
+
* Creates a study objective in one of the learner\'s study spaces, addressed either by `courseId` (the space for that Canvas course, created on first use) or by `studySpaceId` (an existing space, which is how an objective reaches a space that has no Canvas course). Exactly one of the two is required. An objective filed by `studySpaceId` inherits the space\'s course, so a space with no Canvas course produces an objective with no course id, reachable only through `GET ?studySpaceId=`. 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. `canvasObject` requires `courseId` and the X-Canvas-Domain header. Without `canvasObject`, this always inserts a new custom objective.
|
|
83
84
|
* Create or upsert a study objective
|
|
84
85
|
*/
|
|
85
86
|
createStudyObjective(requestParameters: CreateStudyObjectiveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StudyObjective>;
|
|
@@ -128,13 +129,13 @@ export declare class StudyObjectivesApi extends runtime.BaseAPI {
|
|
|
128
129
|
*/
|
|
129
130
|
listStudyObjectiveQuizzes(requestParameters: ListStudyObjectiveQuizzesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedQuizzes>;
|
|
130
131
|
/**
|
|
131
|
-
* Returns study objectives for the authenticated user
|
|
132
|
-
* List study objectives for a course
|
|
132
|
+
* Returns study objectives for the authenticated user within one scope, ordered by creation date (newest first). Scope is either `courseId` (every objective the learner has for that Canvas course) or `studySpaceId` (every objective filed in that space, which is the only way to reach a space that has no Canvas course). Exactly one of the two is required.
|
|
133
|
+
* List study objectives for a course or study space
|
|
133
134
|
*/
|
|
134
135
|
listStudyObjectivesRaw(requestParameters: ListStudyObjectivesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedStudyObjectives>>;
|
|
135
136
|
/**
|
|
136
|
-
* Returns study objectives for the authenticated user
|
|
137
|
-
* List study objectives for a course
|
|
137
|
+
* Returns study objectives for the authenticated user within one scope, ordered by creation date (newest first). Scope is either `courseId` (every objective the learner has for that Canvas course) or `studySpaceId` (every objective filed in that space, which is the only way to reach a space that has no Canvas course). Exactly one of the two is required.
|
|
138
|
+
* List study objectives for a course or study space
|
|
138
139
|
*/
|
|
139
140
|
listStudyObjectives(requestParameters: ListStudyObjectivesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedStudyObjectives>;
|
|
140
141
|
/**
|
|
@@ -73,7 +73,7 @@ export class StudyObjectivesApi extends runtime.BaseAPI {
|
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
75
|
/**
|
|
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.
|
|
76
|
+
* Creates a study objective in one of the learner\'s study spaces, addressed either by `courseId` (the space for that Canvas course, created on first use) or by `studySpaceId` (an existing space, which is how an objective reaches a space that has no Canvas course). Exactly one of the two is required. An objective filed by `studySpaceId` inherits the space\'s course, so a space with no Canvas course produces an objective with no course id, reachable only through `GET ?studySpaceId=`. 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. `canvasObject` requires `courseId` and the X-Canvas-Domain header. Without `canvasObject`, this always inserts a new custom objective.
|
|
77
77
|
* Create or upsert a study objective
|
|
78
78
|
*/
|
|
79
79
|
createStudyObjectiveRaw(requestParameters, initOverrides) {
|
|
@@ -108,7 +108,7 @@ export class StudyObjectivesApi extends runtime.BaseAPI {
|
|
|
108
108
|
});
|
|
109
109
|
}
|
|
110
110
|
/**
|
|
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.
|
|
111
|
+
* Creates a study objective in one of the learner\'s study spaces, addressed either by `courseId` (the space for that Canvas course, created on first use) or by `studySpaceId` (an existing space, which is how an objective reaches a space that has no Canvas course). Exactly one of the two is required. An objective filed by `studySpaceId` inherits the space\'s course, so a space with no Canvas course produces an objective with no course id, reachable only through `GET ?studySpaceId=`. 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. `canvasObject` requires `courseId` and the X-Canvas-Domain header. Without `canvasObject`, this always inserts a new custom objective.
|
|
112
112
|
* Create or upsert a study objective
|
|
113
113
|
*/
|
|
114
114
|
createStudyObjective(requestParameters, initOverrides) {
|
|
@@ -334,17 +334,14 @@ export class StudyObjectivesApi extends runtime.BaseAPI {
|
|
|
334
334
|
});
|
|
335
335
|
}
|
|
336
336
|
/**
|
|
337
|
-
* Returns study objectives for the authenticated user
|
|
338
|
-
* List study objectives for a course
|
|
337
|
+
* Returns study objectives for the authenticated user within one scope, ordered by creation date (newest first). Scope is either `courseId` (every objective the learner has for that Canvas course) or `studySpaceId` (every objective filed in that space, which is the only way to reach a space that has no Canvas course). Exactly one of the two is required.
|
|
338
|
+
* List study objectives for a course or study space
|
|
339
339
|
*/
|
|
340
340
|
listStudyObjectivesRaw(requestParameters, initOverrides) {
|
|
341
341
|
return __awaiter(this, void 0, void 0, function* () {
|
|
342
342
|
if (requestParameters['xUserId'] == null) {
|
|
343
343
|
throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling listStudyObjectives().');
|
|
344
344
|
}
|
|
345
|
-
if (requestParameters['courseId'] == null) {
|
|
346
|
-
throw new runtime.RequiredError('courseId', 'Required parameter "courseId" was null or undefined when calling listStudyObjectives().');
|
|
347
|
-
}
|
|
348
345
|
const queryParameters = {};
|
|
349
346
|
if (requestParameters['limit'] != null) {
|
|
350
347
|
queryParameters['limit'] = requestParameters['limit'];
|
|
@@ -355,6 +352,9 @@ export class StudyObjectivesApi extends runtime.BaseAPI {
|
|
|
355
352
|
if (requestParameters['courseId'] != null) {
|
|
356
353
|
queryParameters['courseId'] = requestParameters['courseId'];
|
|
357
354
|
}
|
|
355
|
+
if (requestParameters['studySpaceId'] != null) {
|
|
356
|
+
queryParameters['studySpaceId'] = requestParameters['studySpaceId'];
|
|
357
|
+
}
|
|
358
358
|
if (requestParameters['status'] != null) {
|
|
359
359
|
queryParameters['status'] = requestParameters['status'];
|
|
360
360
|
}
|
|
@@ -376,8 +376,8 @@ export class StudyObjectivesApi extends runtime.BaseAPI {
|
|
|
376
376
|
});
|
|
377
377
|
}
|
|
378
378
|
/**
|
|
379
|
-
* Returns study objectives for the authenticated user
|
|
380
|
-
* List study objectives for a course
|
|
379
|
+
* Returns study objectives for the authenticated user within one scope, ordered by creation date (newest first). Scope is either `courseId` (every objective the learner has for that Canvas course) or `studySpaceId` (every objective filed in that space, which is the only way to reach a space that has no Canvas course). Exactly one of the two is required.
|
|
380
|
+
* List study objectives for a course or study space
|
|
381
381
|
*/
|
|
382
382
|
listStudyObjectives(requestParameters, initOverrides) {
|
|
383
383
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -46,11 +46,11 @@ export interface AdminStudyObjectiveListItem {
|
|
|
46
46
|
*/
|
|
47
47
|
source: AdminStudyObjectiveListItemSourceEnum;
|
|
48
48
|
/**
|
|
49
|
-
* External course identifier
|
|
49
|
+
* External course identifier, or null for an objective in a study space with no Canvas course
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof AdminStudyObjectiveListItem
|
|
52
52
|
*/
|
|
53
|
-
courseId: string;
|
|
53
|
+
courseId: string | null;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {string}
|
|
@@ -42,13 +42,19 @@ export interface CreateStudyObjectiveDto {
|
|
|
42
42
|
*/
|
|
43
43
|
dueAt?: Date | null;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Canvas course the objective belongs to. The learner's study space for this course is resolved (created on first use) and the objective is linked to it. Mutually exclusive with `studySpaceId`; exactly one of the two is required.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof CreateStudyObjectiveDto
|
|
48
|
+
*/
|
|
49
|
+
courseId?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Existing study space to file the objective in, addressed directly rather than through a Canvas course. Use this for a space with no Canvas course; the objective is created with no course id. Mutually exclusive with `courseId`; exactly one of the two is required.
|
|
46
52
|
* @type {string}
|
|
47
53
|
* @memberof CreateStudyObjectiveDto
|
|
48
54
|
*/
|
|
49
|
-
|
|
55
|
+
studySpaceId?: string;
|
|
50
56
|
/**
|
|
51
|
-
* Display name of the Canvas course. Used to name the learner's study space for this course when it has no name yet; an existing name is never overwritten.
|
|
57
|
+
* Display name of the Canvas course. Used to name the learner's study space for this course when it has no name yet; an existing name is never overwritten. Only meaningful alongside `courseId` — a space addressed by `studySpaceId` already exists and is renamed through the study-spaces endpoint.
|
|
52
58
|
* @type {string}
|
|
53
59
|
* @memberof CreateStudyObjectiveDto
|
|
54
60
|
*/
|
|
@@ -19,8 +19,6 @@ import { CreateStudyObjectiveDtoCanvasObjectFromJSON, CreateStudyObjectiveDtoCan
|
|
|
19
19
|
export function instanceOfCreateStudyObjectiveDto(value) {
|
|
20
20
|
if (!('title' in value) || value['title'] === undefined)
|
|
21
21
|
return false;
|
|
22
|
-
if (!('courseId' in value) || value['courseId'] === undefined)
|
|
23
|
-
return false;
|
|
24
22
|
return true;
|
|
25
23
|
}
|
|
26
24
|
export function CreateStudyObjectiveDtoFromJSON(json) {
|
|
@@ -35,7 +33,8 @@ export function CreateStudyObjectiveDtoFromJSONTyped(json, ignoreDiscriminator)
|
|
|
35
33
|
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
36
34
|
'canvasDocuments': json['canvasDocuments'] == null ? undefined : (json['canvasDocuments'].map(CreateStudyObjectiveDtoCanvasDocumentsInnerFromJSON)),
|
|
37
35
|
'dueAt': json['dueAt'] == null ? undefined : (new Date(json['dueAt'])),
|
|
38
|
-
'courseId': json['courseId'],
|
|
36
|
+
'courseId': json['courseId'] == null ? undefined : json['courseId'],
|
|
37
|
+
'studySpaceId': json['studySpaceId'] == null ? undefined : json['studySpaceId'],
|
|
39
38
|
'courseName': json['courseName'] == null ? undefined : json['courseName'],
|
|
40
39
|
'canvasObject': json['canvasObject'] == null ? undefined : CreateStudyObjectiveDtoCanvasObjectFromJSON(json['canvasObject']),
|
|
41
40
|
};
|
|
@@ -53,6 +52,7 @@ export function CreateStudyObjectiveDtoToJSONTyped(value, ignoreDiscriminator =
|
|
|
53
52
|
'canvasDocuments': value['canvasDocuments'] == null ? undefined : (value['canvasDocuments'].map(CreateStudyObjectiveDtoCanvasDocumentsInnerToJSON)),
|
|
54
53
|
'dueAt': value['dueAt'] == null ? value['dueAt'] : value['dueAt'].toISOString(),
|
|
55
54
|
'courseId': value['courseId'],
|
|
55
|
+
'studySpaceId': value['studySpaceId'],
|
|
56
56
|
'courseName': value['courseName'],
|
|
57
57
|
'canvasObject': CreateStudyObjectiveDtoCanvasObjectToJSON(value['canvasObject']),
|
|
58
58
|
};
|
|
@@ -30,11 +30,17 @@ export interface StudyObjective {
|
|
|
30
30
|
*/
|
|
31
31
|
accountUserId: string;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Canvas course this objective belongs to, or null when it was filed into a study space that has no Canvas course. A null course id means no Canvas surface applies to the objective, and it is discoverable only through the space-scoped list (a single-item GET by id still works).
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof StudyObjective
|
|
36
|
+
*/
|
|
37
|
+
courseId: string | null;
|
|
38
|
+
/**
|
|
39
|
+
* study_spaces.id of the space this objective is filed in. The only route from an objective back to its space, which is what a client needs when `courseId` is null and no course can stand in for it. Null only on rows predating the study-space rollout.
|
|
34
40
|
* @type {string}
|
|
35
41
|
* @memberof StudyObjective
|
|
36
42
|
*/
|
|
37
|
-
|
|
43
|
+
studySpaceId: string | null;
|
|
38
44
|
/**
|
|
39
45
|
* canvas_objects.id of the mirrored Canvas object this objective derives from, or null for user-created objectives.
|
|
40
46
|
* @type {string}
|
|
@@ -30,6 +30,8 @@ export function instanceOfStudyObjective(value) {
|
|
|
30
30
|
return false;
|
|
31
31
|
if (!('courseId' in value) || value['courseId'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
+
if (!('studySpaceId' in value) || value['studySpaceId'] === undefined)
|
|
34
|
+
return false;
|
|
33
35
|
if (!('canvasObjectId' in value) || value['canvasObjectId'] === undefined)
|
|
34
36
|
return false;
|
|
35
37
|
if (!('canvasObjectRef' in value) || value['canvasObjectRef'] === undefined)
|
|
@@ -65,6 +67,7 @@ export function StudyObjectiveFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
65
67
|
'id': json['id'],
|
|
66
68
|
'accountUserId': json['accountUserId'],
|
|
67
69
|
'courseId': json['courseId'],
|
|
70
|
+
'studySpaceId': json['studySpaceId'],
|
|
68
71
|
'canvasObjectId': json['canvasObjectId'],
|
|
69
72
|
'canvasObjectRef': json['canvasObjectRef'],
|
|
70
73
|
'source': json['source'],
|
|
@@ -89,6 +92,7 @@ export function StudyObjectiveToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
89
92
|
'id': value['id'],
|
|
90
93
|
'accountUserId': value['accountUserId'],
|
|
91
94
|
'courseId': value['courseId'],
|
|
95
|
+
'studySpaceId': value['studySpaceId'],
|
|
92
96
|
'canvasObjectId': value['canvasObjectId'],
|
|
93
97
|
'canvasObjectRef': value['canvasObjectRef'],
|
|
94
98
|
'source': value['source'],
|
|
@@ -46,11 +46,11 @@ export interface AdminStudyObjectiveListItem {
|
|
|
46
46
|
*/
|
|
47
47
|
source: AdminStudyObjectiveListItemSourceEnum;
|
|
48
48
|
/**
|
|
49
|
-
* External course identifier
|
|
49
|
+
* External course identifier, or null for an objective in a study space with no Canvas course
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof AdminStudyObjectiveListItem
|
|
52
52
|
*/
|
|
53
|
-
courseId: string;
|
|
53
|
+
courseId: string | null;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {string}
|
|
@@ -42,13 +42,19 @@ export interface CreateStudyObjectiveDto {
|
|
|
42
42
|
*/
|
|
43
43
|
dueAt?: Date | null;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Canvas course the objective belongs to. The learner's study space for this course is resolved (created on first use) and the objective is linked to it. Mutually exclusive with `studySpaceId`; exactly one of the two is required.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof CreateStudyObjectiveDto
|
|
48
|
+
*/
|
|
49
|
+
courseId?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Existing study space to file the objective in, addressed directly rather than through a Canvas course. Use this for a space with no Canvas course; the objective is created with no course id. Mutually exclusive with `courseId`; exactly one of the two is required.
|
|
46
52
|
* @type {string}
|
|
47
53
|
* @memberof CreateStudyObjectiveDto
|
|
48
54
|
*/
|
|
49
|
-
|
|
55
|
+
studySpaceId?: string;
|
|
50
56
|
/**
|
|
51
|
-
* Display name of the Canvas course. Used to name the learner's study space for this course when it has no name yet; an existing name is never overwritten.
|
|
57
|
+
* Display name of the Canvas course. Used to name the learner's study space for this course when it has no name yet; an existing name is never overwritten. Only meaningful alongside `courseId` — a space addressed by `studySpaceId` already exists and is renamed through the study-spaces endpoint.
|
|
52
58
|
* @type {string}
|
|
53
59
|
* @memberof CreateStudyObjectiveDto
|
|
54
60
|
*/
|
|
@@ -26,8 +26,6 @@ const CreateStudyObjectiveDtoCanvasObject_1 = require("./CreateStudyObjectiveDto
|
|
|
26
26
|
function instanceOfCreateStudyObjectiveDto(value) {
|
|
27
27
|
if (!('title' in value) || value['title'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('courseId' in value) || value['courseId'] === undefined)
|
|
30
|
-
return false;
|
|
31
29
|
return true;
|
|
32
30
|
}
|
|
33
31
|
function CreateStudyObjectiveDtoFromJSON(json) {
|
|
@@ -42,7 +40,8 @@ function CreateStudyObjectiveDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
40
|
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
43
41
|
'canvasDocuments': json['canvasDocuments'] == null ? undefined : (json['canvasDocuments'].map(CreateStudyObjectiveDtoCanvasDocumentsInner_1.CreateStudyObjectiveDtoCanvasDocumentsInnerFromJSON)),
|
|
44
42
|
'dueAt': json['dueAt'] == null ? undefined : (new Date(json['dueAt'])),
|
|
45
|
-
'courseId': json['courseId'],
|
|
43
|
+
'courseId': json['courseId'] == null ? undefined : json['courseId'],
|
|
44
|
+
'studySpaceId': json['studySpaceId'] == null ? undefined : json['studySpaceId'],
|
|
46
45
|
'courseName': json['courseName'] == null ? undefined : json['courseName'],
|
|
47
46
|
'canvasObject': json['canvasObject'] == null ? undefined : (0, CreateStudyObjectiveDtoCanvasObject_1.CreateStudyObjectiveDtoCanvasObjectFromJSON)(json['canvasObject']),
|
|
48
47
|
};
|
|
@@ -60,6 +59,7 @@ function CreateStudyObjectiveDtoToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
60
59
|
'canvasDocuments': value['canvasDocuments'] == null ? undefined : (value['canvasDocuments'].map(CreateStudyObjectiveDtoCanvasDocumentsInner_1.CreateStudyObjectiveDtoCanvasDocumentsInnerToJSON)),
|
|
61
60
|
'dueAt': value['dueAt'] == null ? value['dueAt'] : value['dueAt'].toISOString(),
|
|
62
61
|
'courseId': value['courseId'],
|
|
62
|
+
'studySpaceId': value['studySpaceId'],
|
|
63
63
|
'courseName': value['courseName'],
|
|
64
64
|
'canvasObject': (0, CreateStudyObjectiveDtoCanvasObject_1.CreateStudyObjectiveDtoCanvasObjectToJSON)(value['canvasObject']),
|
|
65
65
|
};
|
|
@@ -30,11 +30,17 @@ export interface StudyObjective {
|
|
|
30
30
|
*/
|
|
31
31
|
accountUserId: string;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Canvas course this objective belongs to, or null when it was filed into a study space that has no Canvas course. A null course id means no Canvas surface applies to the objective, and it is discoverable only through the space-scoped list (a single-item GET by id still works).
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof StudyObjective
|
|
36
|
+
*/
|
|
37
|
+
courseId: string | null;
|
|
38
|
+
/**
|
|
39
|
+
* study_spaces.id of the space this objective is filed in. The only route from an objective back to its space, which is what a client needs when `courseId` is null and no course can stand in for it. Null only on rows predating the study-space rollout.
|
|
34
40
|
* @type {string}
|
|
35
41
|
* @memberof StudyObjective
|
|
36
42
|
*/
|
|
37
|
-
|
|
43
|
+
studySpaceId: string | null;
|
|
38
44
|
/**
|
|
39
45
|
* canvas_objects.id of the mirrored Canvas object this objective derives from, or null for user-created objectives.
|
|
40
46
|
* @type {string}
|
|
@@ -38,6 +38,8 @@ function instanceOfStudyObjective(value) {
|
|
|
38
38
|
return false;
|
|
39
39
|
if (!('courseId' in value) || value['courseId'] === undefined)
|
|
40
40
|
return false;
|
|
41
|
+
if (!('studySpaceId' in value) || value['studySpaceId'] === undefined)
|
|
42
|
+
return false;
|
|
41
43
|
if (!('canvasObjectId' in value) || value['canvasObjectId'] === undefined)
|
|
42
44
|
return false;
|
|
43
45
|
if (!('canvasObjectRef' in value) || value['canvasObjectRef'] === undefined)
|
|
@@ -73,6 +75,7 @@ function StudyObjectiveFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
73
75
|
'id': json['id'],
|
|
74
76
|
'accountUserId': json['accountUserId'],
|
|
75
77
|
'courseId': json['courseId'],
|
|
78
|
+
'studySpaceId': json['studySpaceId'],
|
|
76
79
|
'canvasObjectId': json['canvasObjectId'],
|
|
77
80
|
'canvasObjectRef': json['canvasObjectRef'],
|
|
78
81
|
'source': json['source'],
|
|
@@ -97,6 +100,7 @@ function StudyObjectiveToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
97
100
|
'id': value['id'],
|
|
98
101
|
'accountUserId': value['accountUserId'],
|
|
99
102
|
'courseId': value['courseId'],
|
|
103
|
+
'studySpaceId': value['studySpaceId'],
|
|
100
104
|
'canvasObjectId': value['canvasObjectId'],
|
|
101
105
|
'canvasObjectRef': value['canvasObjectRef'],
|
|
102
106
|
'source': value['source'],
|