@instructure/athena-api-client 3.6.1 → 3.7.1
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/dist/apis/StudyObjectivesApi.d.ts +10 -0
- package/dist/apis/StudyObjectivesApi.js +12 -1
- package/dist/esm/apis/StudyObjectivesApi.d.ts +10 -0
- package/dist/esm/apis/StudyObjectivesApi.js +11 -0
- package/dist/esm/models/StudyObjective.d.ts +6 -0
- package/dist/esm/models/StudyObjective.js +4 -0
- package/dist/esm/models/UpdateStudyObjectiveDto.d.ts +6 -0
- package/dist/esm/models/UpdateStudyObjectiveDto.js +2 -0
- package/dist/models/StudyObjective.d.ts +6 -0
- package/dist/models/StudyObjective.js +4 -0
- package/dist/models/UpdateStudyObjectiveDto.d.ts +6 -0
- package/dist/models/UpdateStudyObjectiveDto.js +2 -0
- package/package.json +1 -1
|
@@ -45,6 +45,7 @@ export interface ListStudyObjectivesRequest {
|
|
|
45
45
|
courseId: string;
|
|
46
46
|
limit?: number;
|
|
47
47
|
cursor?: string;
|
|
48
|
+
status?: ListStudyObjectivesStatusEnum;
|
|
48
49
|
}
|
|
49
50
|
export interface UpdateStudyObjectiveRequest {
|
|
50
51
|
xUserId: string;
|
|
@@ -128,3 +129,12 @@ export declare class StudyObjectivesApi extends runtime.BaseAPI {
|
|
|
128
129
|
*/
|
|
129
130
|
updateStudyObjective(requestParameters: UpdateStudyObjectiveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StudyObjective>;
|
|
130
131
|
}
|
|
132
|
+
/**
|
|
133
|
+
* @export
|
|
134
|
+
*/
|
|
135
|
+
export declare const ListStudyObjectivesStatusEnum: {
|
|
136
|
+
readonly Active: "active";
|
|
137
|
+
readonly Archived: "archived";
|
|
138
|
+
readonly All: "all";
|
|
139
|
+
};
|
|
140
|
+
export type ListStudyObjectivesStatusEnum = typeof ListStudyObjectivesStatusEnum[keyof typeof ListStudyObjectivesStatusEnum];
|
|
@@ -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.StudyObjectivesApi = void 0;
|
|
25
|
+
exports.ListStudyObjectivesStatusEnum = exports.StudyObjectivesApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
27
|
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
@@ -308,6 +308,9 @@ class StudyObjectivesApi extends runtime.BaseAPI {
|
|
|
308
308
|
if (requestParameters['courseId'] != null) {
|
|
309
309
|
queryParameters['courseId'] = requestParameters['courseId'];
|
|
310
310
|
}
|
|
311
|
+
if (requestParameters['status'] != null) {
|
|
312
|
+
queryParameters['status'] = requestParameters['status'];
|
|
313
|
+
}
|
|
311
314
|
const headerParameters = {};
|
|
312
315
|
if (requestParameters['xUserId'] != null) {
|
|
313
316
|
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
@@ -381,3 +384,11 @@ class StudyObjectivesApi extends runtime.BaseAPI {
|
|
|
381
384
|
}
|
|
382
385
|
}
|
|
383
386
|
exports.StudyObjectivesApi = StudyObjectivesApi;
|
|
387
|
+
/**
|
|
388
|
+
* @export
|
|
389
|
+
*/
|
|
390
|
+
exports.ListStudyObjectivesStatusEnum = {
|
|
391
|
+
Active: 'active',
|
|
392
|
+
Archived: 'archived',
|
|
393
|
+
All: 'all'
|
|
394
|
+
};
|
|
@@ -45,6 +45,7 @@ export interface ListStudyObjectivesRequest {
|
|
|
45
45
|
courseId: string;
|
|
46
46
|
limit?: number;
|
|
47
47
|
cursor?: string;
|
|
48
|
+
status?: ListStudyObjectivesStatusEnum;
|
|
48
49
|
}
|
|
49
50
|
export interface UpdateStudyObjectiveRequest {
|
|
50
51
|
xUserId: string;
|
|
@@ -128,3 +129,12 @@ export declare class StudyObjectivesApi extends runtime.BaseAPI {
|
|
|
128
129
|
*/
|
|
129
130
|
updateStudyObjective(requestParameters: UpdateStudyObjectiveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StudyObjective>;
|
|
130
131
|
}
|
|
132
|
+
/**
|
|
133
|
+
* @export
|
|
134
|
+
*/
|
|
135
|
+
export declare const ListStudyObjectivesStatusEnum: {
|
|
136
|
+
readonly Active: "active";
|
|
137
|
+
readonly Archived: "archived";
|
|
138
|
+
readonly All: "all";
|
|
139
|
+
};
|
|
140
|
+
export type ListStudyObjectivesStatusEnum = typeof ListStudyObjectivesStatusEnum[keyof typeof ListStudyObjectivesStatusEnum];
|
|
@@ -305,6 +305,9 @@ export class StudyObjectivesApi extends runtime.BaseAPI {
|
|
|
305
305
|
if (requestParameters['courseId'] != null) {
|
|
306
306
|
queryParameters['courseId'] = requestParameters['courseId'];
|
|
307
307
|
}
|
|
308
|
+
if (requestParameters['status'] != null) {
|
|
309
|
+
queryParameters['status'] = requestParameters['status'];
|
|
310
|
+
}
|
|
308
311
|
const headerParameters = {};
|
|
309
312
|
if (requestParameters['xUserId'] != null) {
|
|
310
313
|
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
@@ -377,3 +380,11 @@ export class StudyObjectivesApi extends runtime.BaseAPI {
|
|
|
377
380
|
});
|
|
378
381
|
}
|
|
379
382
|
}
|
|
383
|
+
/**
|
|
384
|
+
* @export
|
|
385
|
+
*/
|
|
386
|
+
export const ListStudyObjectivesStatusEnum = {
|
|
387
|
+
Active: 'active',
|
|
388
|
+
Archived: 'archived',
|
|
389
|
+
All: 'all'
|
|
390
|
+
};
|
|
@@ -77,6 +77,12 @@ export interface StudyObjective {
|
|
|
77
77
|
* @memberof StudyObjective
|
|
78
78
|
*/
|
|
79
79
|
dueAt: Date | null;
|
|
80
|
+
/**
|
|
81
|
+
* When this objective was archived, or null if it is active. Per-user state; archiving never affects the shared Canvas object or other students' objectives.
|
|
82
|
+
* @type {Date}
|
|
83
|
+
* @memberof StudyObjective
|
|
84
|
+
*/
|
|
85
|
+
archivedAt: Date | null;
|
|
80
86
|
/**
|
|
81
87
|
*
|
|
82
88
|
* @type {Date}
|
|
@@ -44,6 +44,8 @@ export function instanceOfStudyObjective(value) {
|
|
|
44
44
|
return false;
|
|
45
45
|
if (!('dueAt' in value) || value['dueAt'] === undefined)
|
|
46
46
|
return false;
|
|
47
|
+
if (!('archivedAt' in value) || value['archivedAt'] === undefined)
|
|
48
|
+
return false;
|
|
47
49
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
48
50
|
return false;
|
|
49
51
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
@@ -68,6 +70,7 @@ export function StudyObjectiveFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
68
70
|
'fileAttachments': (json['fileAttachments'].map(StudyObjectiveFileAttachmentFromJSON)),
|
|
69
71
|
'canvasDocuments': (json['canvasDocuments'].map(StudyObjectiveCanvasDocumentFromJSON)),
|
|
70
72
|
'dueAt': (json['dueAt'] == null ? null : new Date(json['dueAt'])),
|
|
73
|
+
'archivedAt': (json['archivedAt'] == null ? null : new Date(json['archivedAt'])),
|
|
71
74
|
'createdAt': (new Date(json['createdAt'])),
|
|
72
75
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
73
76
|
};
|
|
@@ -90,6 +93,7 @@ export function StudyObjectiveToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
90
93
|
'fileAttachments': (value['fileAttachments'].map(StudyObjectiveFileAttachmentToJSON)),
|
|
91
94
|
'canvasDocuments': (value['canvasDocuments'].map(StudyObjectiveCanvasDocumentToJSON)),
|
|
92
95
|
'dueAt': value['dueAt'] == null ? value['dueAt'] : value['dueAt'].toISOString(),
|
|
96
|
+
'archivedAt': value['archivedAt'] == null ? value['archivedAt'] : value['archivedAt'].toISOString(),
|
|
93
97
|
'createdAt': value['createdAt'].toISOString(),
|
|
94
98
|
'updatedAt': value['updatedAt'].toISOString(),
|
|
95
99
|
};
|
|
@@ -40,6 +40,12 @@ export interface UpdateStudyObjectiveDto {
|
|
|
40
40
|
* @memberof UpdateStudyObjectiveDto
|
|
41
41
|
*/
|
|
42
42
|
dueAt?: Date | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof UpdateStudyObjectiveDto
|
|
47
|
+
*/
|
|
48
|
+
archived?: boolean;
|
|
43
49
|
}
|
|
44
50
|
/**
|
|
45
51
|
* Check if a given object implements the UpdateStudyObjectiveDto interface.
|
|
@@ -30,6 +30,7 @@ export function UpdateStudyObjectiveDtoFromJSONTyped(json, ignoreDiscriminator)
|
|
|
30
30
|
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
31
31
|
'canvasDocuments': json['canvasDocuments'] == null ? undefined : (json['canvasDocuments'].map(CreateStudyObjectiveDtoCanvasDocumentsInnerFromJSON)),
|
|
32
32
|
'dueAt': json['dueAt'] == null ? undefined : (new Date(json['dueAt'])),
|
|
33
|
+
'archived': json['archived'] == null ? undefined : json['archived'],
|
|
33
34
|
};
|
|
34
35
|
}
|
|
35
36
|
export function UpdateStudyObjectiveDtoToJSON(json) {
|
|
@@ -44,5 +45,6 @@ export function UpdateStudyObjectiveDtoToJSONTyped(value, ignoreDiscriminator =
|
|
|
44
45
|
'notes': value['notes'],
|
|
45
46
|
'canvasDocuments': value['canvasDocuments'] == null ? undefined : (value['canvasDocuments'].map(CreateStudyObjectiveDtoCanvasDocumentsInnerToJSON)),
|
|
46
47
|
'dueAt': value['dueAt'] == null ? value['dueAt'] : value['dueAt'].toISOString(),
|
|
48
|
+
'archived': value['archived'],
|
|
47
49
|
};
|
|
48
50
|
}
|
|
@@ -77,6 +77,12 @@ export interface StudyObjective {
|
|
|
77
77
|
* @memberof StudyObjective
|
|
78
78
|
*/
|
|
79
79
|
dueAt: Date | null;
|
|
80
|
+
/**
|
|
81
|
+
* When this objective was archived, or null if it is active. Per-user state; archiving never affects the shared Canvas object or other students' objectives.
|
|
82
|
+
* @type {Date}
|
|
83
|
+
* @memberof StudyObjective
|
|
84
|
+
*/
|
|
85
|
+
archivedAt: Date | null;
|
|
80
86
|
/**
|
|
81
87
|
*
|
|
82
88
|
* @type {Date}
|
|
@@ -52,6 +52,8 @@ function instanceOfStudyObjective(value) {
|
|
|
52
52
|
return false;
|
|
53
53
|
if (!('dueAt' in value) || value['dueAt'] === undefined)
|
|
54
54
|
return false;
|
|
55
|
+
if (!('archivedAt' in value) || value['archivedAt'] === undefined)
|
|
56
|
+
return false;
|
|
55
57
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
56
58
|
return false;
|
|
57
59
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
@@ -76,6 +78,7 @@ function StudyObjectiveFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
76
78
|
'fileAttachments': (json['fileAttachments'].map(StudyObjectiveFileAttachment_1.StudyObjectiveFileAttachmentFromJSON)),
|
|
77
79
|
'canvasDocuments': (json['canvasDocuments'].map(StudyObjectiveCanvasDocument_1.StudyObjectiveCanvasDocumentFromJSON)),
|
|
78
80
|
'dueAt': (json['dueAt'] == null ? null : new Date(json['dueAt'])),
|
|
81
|
+
'archivedAt': (json['archivedAt'] == null ? null : new Date(json['archivedAt'])),
|
|
79
82
|
'createdAt': (new Date(json['createdAt'])),
|
|
80
83
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
81
84
|
};
|
|
@@ -98,6 +101,7 @@ function StudyObjectiveToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
98
101
|
'fileAttachments': (value['fileAttachments'].map(StudyObjectiveFileAttachment_1.StudyObjectiveFileAttachmentToJSON)),
|
|
99
102
|
'canvasDocuments': (value['canvasDocuments'].map(StudyObjectiveCanvasDocument_1.StudyObjectiveCanvasDocumentToJSON)),
|
|
100
103
|
'dueAt': value['dueAt'] == null ? value['dueAt'] : value['dueAt'].toISOString(),
|
|
104
|
+
'archivedAt': value['archivedAt'] == null ? value['archivedAt'] : value['archivedAt'].toISOString(),
|
|
101
105
|
'createdAt': value['createdAt'].toISOString(),
|
|
102
106
|
'updatedAt': value['updatedAt'].toISOString(),
|
|
103
107
|
};
|
|
@@ -40,6 +40,12 @@ export interface UpdateStudyObjectiveDto {
|
|
|
40
40
|
* @memberof UpdateStudyObjectiveDto
|
|
41
41
|
*/
|
|
42
42
|
dueAt?: Date | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof UpdateStudyObjectiveDto
|
|
47
|
+
*/
|
|
48
|
+
archived?: boolean;
|
|
43
49
|
}
|
|
44
50
|
/**
|
|
45
51
|
* Check if a given object implements the UpdateStudyObjectiveDto interface.
|
|
@@ -37,6 +37,7 @@ function UpdateStudyObjectiveDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
37
|
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
38
38
|
'canvasDocuments': json['canvasDocuments'] == null ? undefined : (json['canvasDocuments'].map(CreateStudyObjectiveDtoCanvasDocumentsInner_1.CreateStudyObjectiveDtoCanvasDocumentsInnerFromJSON)),
|
|
39
39
|
'dueAt': json['dueAt'] == null ? undefined : (new Date(json['dueAt'])),
|
|
40
|
+
'archived': json['archived'] == null ? undefined : json['archived'],
|
|
40
41
|
};
|
|
41
42
|
}
|
|
42
43
|
function UpdateStudyObjectiveDtoToJSON(json) {
|
|
@@ -51,5 +52,6 @@ function UpdateStudyObjectiveDtoToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
51
52
|
'notes': value['notes'],
|
|
52
53
|
'canvasDocuments': value['canvasDocuments'] == null ? undefined : (value['canvasDocuments'].map(CreateStudyObjectiveDtoCanvasDocumentsInner_1.CreateStudyObjectiveDtoCanvasDocumentsInnerToJSON)),
|
|
53
54
|
'dueAt': value['dueAt'] == null ? value['dueAt'] : value['dueAt'].toISOString(),
|
|
55
|
+
'archived': value['archived'],
|
|
54
56
|
};
|
|
55
57
|
}
|