@instructure/athena-api-client 3.12.6 → 3.12.8
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 +6 -0
- package/dist/apis/AdminApi.d.ts +51 -1
- package/dist/apis/AdminApi.js +109 -1
- package/dist/esm/apis/AdminApi.d.ts +51 -1
- package/dist/esm/apis/AdminApi.js +109 -1
- package/dist/esm/models/AdminPaginatedStudyObjectives.d.ts +39 -0
- package/dist/esm/models/AdminPaginatedStudyObjectives.js +48 -0
- package/dist/esm/models/AdminStudyObjectiveCanvasTypeCount.d.ts +38 -0
- package/dist/esm/models/AdminStudyObjectiveCanvasTypeCount.js +47 -0
- package/dist/esm/models/AdminStudyObjectiveListItem.d.ts +169 -0
- package/dist/esm/models/AdminStudyObjectiveListItem.js +138 -0
- package/dist/esm/models/AdminStudyObjectiveSummary.d.ts +93 -0
- package/dist/esm/models/AdminStudyObjectiveSummary.js +84 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/models/AdminPaginatedStudyObjectives.d.ts +39 -0
- package/dist/models/AdminPaginatedStudyObjectives.js +55 -0
- package/dist/models/AdminStudyObjectiveCanvasTypeCount.d.ts +38 -0
- package/dist/models/AdminStudyObjectiveCanvasTypeCount.js +54 -0
- package/dist/models/AdminStudyObjectiveListItem.d.ts +169 -0
- package/dist/models/AdminStudyObjectiveListItem.js +146 -0
- package/dist/models/AdminStudyObjectiveSummary.d.ts +93 -0
- package/dist/models/AdminStudyObjectiveSummary.js +91 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Athena API
|
|
3
|
+
* REST API for the Athena system
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AdminStudyObjectiveCanvasTypeCount
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminStudyObjectiveCanvasTypeCount {
|
|
18
|
+
/**
|
|
19
|
+
* Canvas object type the objectives derive from (e.g. assignment, quiz, page)
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AdminStudyObjectiveCanvasTypeCount
|
|
22
|
+
*/
|
|
23
|
+
objectType: string;
|
|
24
|
+
/**
|
|
25
|
+
* Number of Canvas-sourced objectives of this type
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof AdminStudyObjectiveCanvasTypeCount
|
|
28
|
+
*/
|
|
29
|
+
count: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AdminStudyObjectiveCanvasTypeCount interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfAdminStudyObjectiveCanvasTypeCount(value: object): value is AdminStudyObjectiveCanvasTypeCount;
|
|
35
|
+
export declare function AdminStudyObjectiveCanvasTypeCountFromJSON(json: any): AdminStudyObjectiveCanvasTypeCount;
|
|
36
|
+
export declare function AdminStudyObjectiveCanvasTypeCountFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminStudyObjectiveCanvasTypeCount;
|
|
37
|
+
export declare function AdminStudyObjectiveCanvasTypeCountToJSON(json: any): AdminStudyObjectiveCanvasTypeCount;
|
|
38
|
+
export declare function AdminStudyObjectiveCanvasTypeCountToJSONTyped(value?: AdminStudyObjectiveCanvasTypeCount | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfAdminStudyObjectiveCanvasTypeCount = instanceOfAdminStudyObjectiveCanvasTypeCount;
|
|
17
|
+
exports.AdminStudyObjectiveCanvasTypeCountFromJSON = AdminStudyObjectiveCanvasTypeCountFromJSON;
|
|
18
|
+
exports.AdminStudyObjectiveCanvasTypeCountFromJSONTyped = AdminStudyObjectiveCanvasTypeCountFromJSONTyped;
|
|
19
|
+
exports.AdminStudyObjectiveCanvasTypeCountToJSON = AdminStudyObjectiveCanvasTypeCountToJSON;
|
|
20
|
+
exports.AdminStudyObjectiveCanvasTypeCountToJSONTyped = AdminStudyObjectiveCanvasTypeCountToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AdminStudyObjectiveCanvasTypeCount interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAdminStudyObjectiveCanvasTypeCount(value) {
|
|
25
|
+
if (!('objectType' in value) || value['objectType'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('count' in value) || value['count'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function AdminStudyObjectiveCanvasTypeCountFromJSON(json) {
|
|
32
|
+
return AdminStudyObjectiveCanvasTypeCountFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function AdminStudyObjectiveCanvasTypeCountFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'objectType': json['objectType'],
|
|
40
|
+
'count': json['count'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function AdminStudyObjectiveCanvasTypeCountToJSON(json) {
|
|
44
|
+
return AdminStudyObjectiveCanvasTypeCountToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function AdminStudyObjectiveCanvasTypeCountToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'objectType': value['objectType'],
|
|
52
|
+
'count': value['count'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,169 @@
|
|
|
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 AdminStudyObjectiveListItem
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminStudyObjectiveListItem {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AdminStudyObjectiveListItem
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AdminStudyObjectiveListItem
|
|
28
|
+
*/
|
|
29
|
+
accountUserId: string;
|
|
30
|
+
/**
|
|
31
|
+
* External identifier of the user who owns the objective
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AdminStudyObjectiveListItem
|
|
34
|
+
*/
|
|
35
|
+
userId: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* Derived origin: 'canvas' if linked to a Canvas object, else 'syllabus' or 'custom' based on source
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AdminStudyObjectiveListItem
|
|
40
|
+
*/
|
|
41
|
+
origin: AdminStudyObjectiveListItemOriginEnum;
|
|
42
|
+
/**
|
|
43
|
+
* Stored source of the objective
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AdminStudyObjectiveListItem
|
|
46
|
+
*/
|
|
47
|
+
source: AdminStudyObjectiveListItemSourceEnum;
|
|
48
|
+
/**
|
|
49
|
+
* External course identifier
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof AdminStudyObjectiveListItem
|
|
52
|
+
*/
|
|
53
|
+
courseId: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof AdminStudyObjectiveListItem
|
|
58
|
+
*/
|
|
59
|
+
studySpaceId: string | null;
|
|
60
|
+
/**
|
|
61
|
+
* Objective title
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof AdminStudyObjectiveListItem
|
|
64
|
+
*/
|
|
65
|
+
title: string;
|
|
66
|
+
/**
|
|
67
|
+
* User-authored notes on the objective
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof AdminStudyObjectiveListItem
|
|
70
|
+
*/
|
|
71
|
+
notes: string | null;
|
|
72
|
+
/**
|
|
73
|
+
* Type of the linked Canvas object, when Canvas-sourced
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof AdminStudyObjectiveListItem
|
|
76
|
+
*/
|
|
77
|
+
canvasObjectType: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* Title of the linked Canvas object, when Canvas-sourced
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof AdminStudyObjectiveListItem
|
|
82
|
+
*/
|
|
83
|
+
canvasObjectTitle: string | null;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {Date}
|
|
87
|
+
* @memberof AdminStudyObjectiveListItem
|
|
88
|
+
*/
|
|
89
|
+
dueAt: Date | null;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {Date}
|
|
93
|
+
* @memberof AdminStudyObjectiveListItem
|
|
94
|
+
*/
|
|
95
|
+
archivedAt: Date | null;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {Date}
|
|
99
|
+
* @memberof AdminStudyObjectiveListItem
|
|
100
|
+
*/
|
|
101
|
+
createdAt: Date;
|
|
102
|
+
/**
|
|
103
|
+
* Names of files associated with the objective — both uploaded attachments and Canvas-pulled documents (e.g. study-guide.pdf)
|
|
104
|
+
* @type {Array<string>}
|
|
105
|
+
* @memberof AdminStudyObjectiveListItem
|
|
106
|
+
*/
|
|
107
|
+
fileNames: Array<string>;
|
|
108
|
+
/**
|
|
109
|
+
* Linked chat resources
|
|
110
|
+
* @type {number}
|
|
111
|
+
* @memberof AdminStudyObjectiveListItem
|
|
112
|
+
*/
|
|
113
|
+
chatResourceCount: number;
|
|
114
|
+
/**
|
|
115
|
+
* Linked quiz resources
|
|
116
|
+
* @type {number}
|
|
117
|
+
* @memberof AdminStudyObjectiveListItem
|
|
118
|
+
*/
|
|
119
|
+
quizResourceCount: number;
|
|
120
|
+
/**
|
|
121
|
+
* Linked flashcard resources
|
|
122
|
+
* @type {number}
|
|
123
|
+
* @memberof AdminStudyObjectiveListItem
|
|
124
|
+
*/
|
|
125
|
+
flashcardResourceCount: number;
|
|
126
|
+
/**
|
|
127
|
+
* Concepts tagged on this objective
|
|
128
|
+
* @type {number}
|
|
129
|
+
* @memberof AdminStudyObjectiveListItem
|
|
130
|
+
*/
|
|
131
|
+
conceptCount: number;
|
|
132
|
+
/**
|
|
133
|
+
* Quiz sessions started on quizzes linked to this objective
|
|
134
|
+
* @type {number}
|
|
135
|
+
* @memberof AdminStudyObjectiveListItem
|
|
136
|
+
*/
|
|
137
|
+
quizSessionCount: number;
|
|
138
|
+
/**
|
|
139
|
+
* Quiz responses recorded on quizzes linked to this objective
|
|
140
|
+
* @type {number}
|
|
141
|
+
* @memberof AdminStudyObjectiveListItem
|
|
142
|
+
*/
|
|
143
|
+
quizResponseCount: number;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* @export
|
|
147
|
+
*/
|
|
148
|
+
export declare const AdminStudyObjectiveListItemOriginEnum: {
|
|
149
|
+
readonly Custom: "custom";
|
|
150
|
+
readonly Canvas: "canvas";
|
|
151
|
+
readonly Syllabus: "syllabus";
|
|
152
|
+
};
|
|
153
|
+
export type AdminStudyObjectiveListItemOriginEnum = typeof AdminStudyObjectiveListItemOriginEnum[keyof typeof AdminStudyObjectiveListItemOriginEnum];
|
|
154
|
+
/**
|
|
155
|
+
* @export
|
|
156
|
+
*/
|
|
157
|
+
export declare const AdminStudyObjectiveListItemSourceEnum: {
|
|
158
|
+
readonly User: "user";
|
|
159
|
+
readonly Syllabus: "syllabus";
|
|
160
|
+
};
|
|
161
|
+
export type AdminStudyObjectiveListItemSourceEnum = typeof AdminStudyObjectiveListItemSourceEnum[keyof typeof AdminStudyObjectiveListItemSourceEnum];
|
|
162
|
+
/**
|
|
163
|
+
* Check if a given object implements the AdminStudyObjectiveListItem interface.
|
|
164
|
+
*/
|
|
165
|
+
export declare function instanceOfAdminStudyObjectiveListItem(value: object): value is AdminStudyObjectiveListItem;
|
|
166
|
+
export declare function AdminStudyObjectiveListItemFromJSON(json: any): AdminStudyObjectiveListItem;
|
|
167
|
+
export declare function AdminStudyObjectiveListItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminStudyObjectiveListItem;
|
|
168
|
+
export declare function AdminStudyObjectiveListItemToJSON(json: any): AdminStudyObjectiveListItem;
|
|
169
|
+
export declare function AdminStudyObjectiveListItemToJSONTyped(value?: AdminStudyObjectiveListItem | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,146 @@
|
|
|
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.AdminStudyObjectiveListItemSourceEnum = exports.AdminStudyObjectiveListItemOriginEnum = void 0;
|
|
17
|
+
exports.instanceOfAdminStudyObjectiveListItem = instanceOfAdminStudyObjectiveListItem;
|
|
18
|
+
exports.AdminStudyObjectiveListItemFromJSON = AdminStudyObjectiveListItemFromJSON;
|
|
19
|
+
exports.AdminStudyObjectiveListItemFromJSONTyped = AdminStudyObjectiveListItemFromJSONTyped;
|
|
20
|
+
exports.AdminStudyObjectiveListItemToJSON = AdminStudyObjectiveListItemToJSON;
|
|
21
|
+
exports.AdminStudyObjectiveListItemToJSONTyped = AdminStudyObjectiveListItemToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.AdminStudyObjectiveListItemOriginEnum = {
|
|
26
|
+
Custom: 'custom',
|
|
27
|
+
Canvas: 'canvas',
|
|
28
|
+
Syllabus: 'syllabus'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
exports.AdminStudyObjectiveListItemSourceEnum = {
|
|
34
|
+
User: 'user',
|
|
35
|
+
Syllabus: 'syllabus'
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the AdminStudyObjectiveListItem interface.
|
|
39
|
+
*/
|
|
40
|
+
function instanceOfAdminStudyObjectiveListItem(value) {
|
|
41
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('accountUserId' in value) || value['accountUserId'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('origin' in value) || value['origin'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('source' in value) || value['source'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('courseId' in value) || value['courseId'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('studySpaceId' in value) || value['studySpaceId'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
if (!('notes' in value) || value['notes'] === undefined)
|
|
58
|
+
return false;
|
|
59
|
+
if (!('canvasObjectType' in value) || value['canvasObjectType'] === undefined)
|
|
60
|
+
return false;
|
|
61
|
+
if (!('canvasObjectTitle' in value) || value['canvasObjectTitle'] === undefined)
|
|
62
|
+
return false;
|
|
63
|
+
if (!('dueAt' in value) || value['dueAt'] === undefined)
|
|
64
|
+
return false;
|
|
65
|
+
if (!('archivedAt' in value) || value['archivedAt'] === undefined)
|
|
66
|
+
return false;
|
|
67
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
68
|
+
return false;
|
|
69
|
+
if (!('fileNames' in value) || value['fileNames'] === undefined)
|
|
70
|
+
return false;
|
|
71
|
+
if (!('chatResourceCount' in value) || value['chatResourceCount'] === undefined)
|
|
72
|
+
return false;
|
|
73
|
+
if (!('quizResourceCount' in value) || value['quizResourceCount'] === undefined)
|
|
74
|
+
return false;
|
|
75
|
+
if (!('flashcardResourceCount' in value) || value['flashcardResourceCount'] === undefined)
|
|
76
|
+
return false;
|
|
77
|
+
if (!('conceptCount' in value) || value['conceptCount'] === undefined)
|
|
78
|
+
return false;
|
|
79
|
+
if (!('quizSessionCount' in value) || value['quizSessionCount'] === undefined)
|
|
80
|
+
return false;
|
|
81
|
+
if (!('quizResponseCount' in value) || value['quizResponseCount'] === undefined)
|
|
82
|
+
return false;
|
|
83
|
+
return true;
|
|
84
|
+
}
|
|
85
|
+
function AdminStudyObjectiveListItemFromJSON(json) {
|
|
86
|
+
return AdminStudyObjectiveListItemFromJSONTyped(json, false);
|
|
87
|
+
}
|
|
88
|
+
function AdminStudyObjectiveListItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
89
|
+
if (json == null) {
|
|
90
|
+
return json;
|
|
91
|
+
}
|
|
92
|
+
return {
|
|
93
|
+
'id': json['id'],
|
|
94
|
+
'accountUserId': json['accountUserId'],
|
|
95
|
+
'userId': json['userId'],
|
|
96
|
+
'origin': json['origin'],
|
|
97
|
+
'source': json['source'],
|
|
98
|
+
'courseId': json['courseId'],
|
|
99
|
+
'studySpaceId': json['studySpaceId'],
|
|
100
|
+
'title': json['title'],
|
|
101
|
+
'notes': json['notes'],
|
|
102
|
+
'canvasObjectType': json['canvasObjectType'],
|
|
103
|
+
'canvasObjectTitle': json['canvasObjectTitle'],
|
|
104
|
+
'dueAt': (json['dueAt'] == null ? null : new Date(json['dueAt'])),
|
|
105
|
+
'archivedAt': (json['archivedAt'] == null ? null : new Date(json['archivedAt'])),
|
|
106
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
107
|
+
'fileNames': json['fileNames'],
|
|
108
|
+
'chatResourceCount': json['chatResourceCount'],
|
|
109
|
+
'quizResourceCount': json['quizResourceCount'],
|
|
110
|
+
'flashcardResourceCount': json['flashcardResourceCount'],
|
|
111
|
+
'conceptCount': json['conceptCount'],
|
|
112
|
+
'quizSessionCount': json['quizSessionCount'],
|
|
113
|
+
'quizResponseCount': json['quizResponseCount'],
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
function AdminStudyObjectiveListItemToJSON(json) {
|
|
117
|
+
return AdminStudyObjectiveListItemToJSONTyped(json, false);
|
|
118
|
+
}
|
|
119
|
+
function AdminStudyObjectiveListItemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
120
|
+
if (value == null) {
|
|
121
|
+
return value;
|
|
122
|
+
}
|
|
123
|
+
return {
|
|
124
|
+
'id': value['id'],
|
|
125
|
+
'accountUserId': value['accountUserId'],
|
|
126
|
+
'userId': value['userId'],
|
|
127
|
+
'origin': value['origin'],
|
|
128
|
+
'source': value['source'],
|
|
129
|
+
'courseId': value['courseId'],
|
|
130
|
+
'studySpaceId': value['studySpaceId'],
|
|
131
|
+
'title': value['title'],
|
|
132
|
+
'notes': value['notes'],
|
|
133
|
+
'canvasObjectType': value['canvasObjectType'],
|
|
134
|
+
'canvasObjectTitle': value['canvasObjectTitle'],
|
|
135
|
+
'dueAt': value['dueAt'] == null ? value['dueAt'] : value['dueAt'].toISOString(),
|
|
136
|
+
'archivedAt': value['archivedAt'] == null ? value['archivedAt'] : value['archivedAt'].toISOString(),
|
|
137
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
138
|
+
'fileNames': value['fileNames'],
|
|
139
|
+
'chatResourceCount': value['chatResourceCount'],
|
|
140
|
+
'quizResourceCount': value['quizResourceCount'],
|
|
141
|
+
'flashcardResourceCount': value['flashcardResourceCount'],
|
|
142
|
+
'conceptCount': value['conceptCount'],
|
|
143
|
+
'quizSessionCount': value['quizSessionCount'],
|
|
144
|
+
'quizResponseCount': value['quizResponseCount'],
|
|
145
|
+
};
|
|
146
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Athena API
|
|
3
|
+
* REST API for the Athena system
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AdminStudyObjectiveCanvasTypeCount } from './AdminStudyObjectiveCanvasTypeCount';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AdminStudyObjectiveSummary
|
|
17
|
+
*/
|
|
18
|
+
export interface AdminStudyObjectiveSummary {
|
|
19
|
+
/**
|
|
20
|
+
* All study objectives
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof AdminStudyObjectiveSummary
|
|
23
|
+
*/
|
|
24
|
+
totalObjectives: number;
|
|
25
|
+
/**
|
|
26
|
+
* Objectives that are not archived
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof AdminStudyObjectiveSummary
|
|
29
|
+
*/
|
|
30
|
+
activeObjectives: number;
|
|
31
|
+
/**
|
|
32
|
+
* Objectives that are archived
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof AdminStudyObjectiveSummary
|
|
35
|
+
*/
|
|
36
|
+
archivedObjectives: number;
|
|
37
|
+
/**
|
|
38
|
+
* User-created objectives with no Canvas link (the workaround signal)
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof AdminStudyObjectiveSummary
|
|
41
|
+
*/
|
|
42
|
+
customObjectives: number;
|
|
43
|
+
/**
|
|
44
|
+
* Objectives linked to a mirrored Canvas object
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof AdminStudyObjectiveSummary
|
|
47
|
+
*/
|
|
48
|
+
canvasObjectives: number;
|
|
49
|
+
/**
|
|
50
|
+
* Objectives derived from syllabus analysis
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof AdminStudyObjectiveSummary
|
|
53
|
+
*/
|
|
54
|
+
syllabusObjectives: number;
|
|
55
|
+
/**
|
|
56
|
+
* Distinct users who own at least one objective
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof AdminStudyObjectiveSummary
|
|
59
|
+
*/
|
|
60
|
+
distinctUsers: number;
|
|
61
|
+
/**
|
|
62
|
+
* Distinct users who created at least one custom objective
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof AdminStudyObjectiveSummary
|
|
65
|
+
*/
|
|
66
|
+
usersWithCustomObjective: number;
|
|
67
|
+
/**
|
|
68
|
+
* Custom objectives that have at least one linked resource
|
|
69
|
+
* @type {number}
|
|
70
|
+
* @memberof AdminStudyObjectiveSummary
|
|
71
|
+
*/
|
|
72
|
+
customObjectivesWithResources: number;
|
|
73
|
+
/**
|
|
74
|
+
* Custom objectives that have at least one quiz or flashcard resource
|
|
75
|
+
* @type {number}
|
|
76
|
+
* @memberof AdminStudyObjectiveSummary
|
|
77
|
+
*/
|
|
78
|
+
customObjectivesWithQuiz: number;
|
|
79
|
+
/**
|
|
80
|
+
* Breakdown of Canvas-sourced objectives by the type of Canvas object they derive from
|
|
81
|
+
* @type {Array<AdminStudyObjectiveCanvasTypeCount>}
|
|
82
|
+
* @memberof AdminStudyObjectiveSummary
|
|
83
|
+
*/
|
|
84
|
+
canvasObjectivesByType: Array<AdminStudyObjectiveCanvasTypeCount>;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Check if a given object implements the AdminStudyObjectiveSummary interface.
|
|
88
|
+
*/
|
|
89
|
+
export declare function instanceOfAdminStudyObjectiveSummary(value: object): value is AdminStudyObjectiveSummary;
|
|
90
|
+
export declare function AdminStudyObjectiveSummaryFromJSON(json: any): AdminStudyObjectiveSummary;
|
|
91
|
+
export declare function AdminStudyObjectiveSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminStudyObjectiveSummary;
|
|
92
|
+
export declare function AdminStudyObjectiveSummaryToJSON(json: any): AdminStudyObjectiveSummary;
|
|
93
|
+
export declare function AdminStudyObjectiveSummaryToJSONTyped(value?: AdminStudyObjectiveSummary | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,91 @@
|
|
|
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.instanceOfAdminStudyObjectiveSummary = instanceOfAdminStudyObjectiveSummary;
|
|
17
|
+
exports.AdminStudyObjectiveSummaryFromJSON = AdminStudyObjectiveSummaryFromJSON;
|
|
18
|
+
exports.AdminStudyObjectiveSummaryFromJSONTyped = AdminStudyObjectiveSummaryFromJSONTyped;
|
|
19
|
+
exports.AdminStudyObjectiveSummaryToJSON = AdminStudyObjectiveSummaryToJSON;
|
|
20
|
+
exports.AdminStudyObjectiveSummaryToJSONTyped = AdminStudyObjectiveSummaryToJSONTyped;
|
|
21
|
+
const AdminStudyObjectiveCanvasTypeCount_1 = require("./AdminStudyObjectiveCanvasTypeCount");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AdminStudyObjectiveSummary interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAdminStudyObjectiveSummary(value) {
|
|
26
|
+
if (!('totalObjectives' in value) || value['totalObjectives'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('activeObjectives' in value) || value['activeObjectives'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('archivedObjectives' in value) || value['archivedObjectives'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('customObjectives' in value) || value['customObjectives'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('canvasObjectives' in value) || value['canvasObjectives'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('syllabusObjectives' in value) || value['syllabusObjectives'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('distinctUsers' in value) || value['distinctUsers'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('usersWithCustomObjective' in value) || value['usersWithCustomObjective'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('customObjectivesWithResources' in value) || value['customObjectivesWithResources'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('customObjectivesWithQuiz' in value) || value['customObjectivesWithQuiz'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('canvasObjectivesByType' in value) || value['canvasObjectivesByType'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
function AdminStudyObjectiveSummaryFromJSON(json) {
|
|
51
|
+
return AdminStudyObjectiveSummaryFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function AdminStudyObjectiveSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'totalObjectives': json['totalObjectives'],
|
|
59
|
+
'activeObjectives': json['activeObjectives'],
|
|
60
|
+
'archivedObjectives': json['archivedObjectives'],
|
|
61
|
+
'customObjectives': json['customObjectives'],
|
|
62
|
+
'canvasObjectives': json['canvasObjectives'],
|
|
63
|
+
'syllabusObjectives': json['syllabusObjectives'],
|
|
64
|
+
'distinctUsers': json['distinctUsers'],
|
|
65
|
+
'usersWithCustomObjective': json['usersWithCustomObjective'],
|
|
66
|
+
'customObjectivesWithResources': json['customObjectivesWithResources'],
|
|
67
|
+
'customObjectivesWithQuiz': json['customObjectivesWithQuiz'],
|
|
68
|
+
'canvasObjectivesByType': (json['canvasObjectivesByType'].map(AdminStudyObjectiveCanvasTypeCount_1.AdminStudyObjectiveCanvasTypeCountFromJSON)),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
function AdminStudyObjectiveSummaryToJSON(json) {
|
|
72
|
+
return AdminStudyObjectiveSummaryToJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
function AdminStudyObjectiveSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
75
|
+
if (value == null) {
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
'totalObjectives': value['totalObjectives'],
|
|
80
|
+
'activeObjectives': value['activeObjectives'],
|
|
81
|
+
'archivedObjectives': value['archivedObjectives'],
|
|
82
|
+
'customObjectives': value['customObjectives'],
|
|
83
|
+
'canvasObjectives': value['canvasObjectives'],
|
|
84
|
+
'syllabusObjectives': value['syllabusObjectives'],
|
|
85
|
+
'distinctUsers': value['distinctUsers'],
|
|
86
|
+
'usersWithCustomObjective': value['usersWithCustomObjective'],
|
|
87
|
+
'customObjectivesWithResources': value['customObjectivesWithResources'],
|
|
88
|
+
'customObjectivesWithQuiz': value['customObjectivesWithQuiz'],
|
|
89
|
+
'canvasObjectivesByType': (value['canvasObjectivesByType'].map(AdminStudyObjectiveCanvasTypeCount_1.AdminStudyObjectiveCanvasTypeCountToJSON)),
|
|
90
|
+
};
|
|
91
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -7,10 +7,14 @@ export * from './AdminCohortStats';
|
|
|
7
7
|
export * from './AdminPaginatedActiveStreaks';
|
|
8
8
|
export * from './AdminPaginatedChats';
|
|
9
9
|
export * from './AdminPaginatedQuizSessions';
|
|
10
|
+
export * from './AdminPaginatedStudyObjectives';
|
|
10
11
|
export * from './AdminPaginatedTaxonomyEnrollments';
|
|
11
12
|
export * from './AdminQuizSessionListItem';
|
|
12
13
|
export * from './AdminQuizSessionScore';
|
|
13
14
|
export * from './AdminStreak';
|
|
15
|
+
export * from './AdminStudyObjectiveCanvasTypeCount';
|
|
16
|
+
export * from './AdminStudyObjectiveListItem';
|
|
17
|
+
export * from './AdminStudyObjectiveSummary';
|
|
14
18
|
export * from './AdminTaxonomyEnrollment';
|
|
15
19
|
export * from './AdminTaxonomyEnrollmentTaxonomy';
|
|
16
20
|
export * from './AdminTriggerAnalysisResponse';
|
package/dist/models/index.js
CHANGED
|
@@ -25,10 +25,14 @@ __exportStar(require("./AdminCohortStats"), exports);
|
|
|
25
25
|
__exportStar(require("./AdminPaginatedActiveStreaks"), exports);
|
|
26
26
|
__exportStar(require("./AdminPaginatedChats"), exports);
|
|
27
27
|
__exportStar(require("./AdminPaginatedQuizSessions"), exports);
|
|
28
|
+
__exportStar(require("./AdminPaginatedStudyObjectives"), exports);
|
|
28
29
|
__exportStar(require("./AdminPaginatedTaxonomyEnrollments"), exports);
|
|
29
30
|
__exportStar(require("./AdminQuizSessionListItem"), exports);
|
|
30
31
|
__exportStar(require("./AdminQuizSessionScore"), exports);
|
|
31
32
|
__exportStar(require("./AdminStreak"), exports);
|
|
33
|
+
__exportStar(require("./AdminStudyObjectiveCanvasTypeCount"), exports);
|
|
34
|
+
__exportStar(require("./AdminStudyObjectiveListItem"), exports);
|
|
35
|
+
__exportStar(require("./AdminStudyObjectiveSummary"), exports);
|
|
32
36
|
__exportStar(require("./AdminTaxonomyEnrollment"), exports);
|
|
33
37
|
__exportStar(require("./AdminTaxonomyEnrollmentTaxonomy"), exports);
|
|
34
38
|
__exportStar(require("./AdminTriggerAnalysisResponse"), exports);
|