@instructure/athena-api-client 3.42.1 → 3.43.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 -0
- package/dist/esm/models/StudyObjective.d.ts +28 -0
- package/dist/esm/models/StudyObjective.js +15 -0
- package/dist/esm/models/StudyObjectiveAccess.d.ts +141 -0
- package/dist/esm/models/StudyObjectiveAccess.js +124 -0
- package/dist/esm/models/UpcomingStudyObjective.d.ts +28 -0
- package/dist/esm/models/UpcomingStudyObjective.js +15 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/StudyObjective.d.ts +28 -0
- package/dist/models/StudyObjective.js +16 -1
- package/dist/models/StudyObjectiveAccess.d.ts +141 -0
- package/dist/models/StudyObjectiveAccess.js +132 -0
- package/dist/models/UpcomingStudyObjective.d.ts +28 -0
- package/dist/models/UpcomingStudyObjective.js +16 -1
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -354,6 +354,7 @@ All URIs are relative to *http://localhost:3000*
|
|
|
354
354
|
- [ServiceToken](docs/ServiceToken.md)
|
|
355
355
|
- [SharedQuiz](docs/SharedQuiz.md)
|
|
356
356
|
- [StudyObjective](docs/StudyObjective.md)
|
|
357
|
+
- [StudyObjectiveAccess](docs/StudyObjectiveAccess.md)
|
|
357
358
|
- [StudyObjectiveCanvasDocument](docs/StudyObjectiveCanvasDocument.md)
|
|
358
359
|
- [StudyObjectiveConceptAttachment](docs/StudyObjectiveConceptAttachment.md)
|
|
359
360
|
- [StudyObjectiveConceptAttachmentList](docs/StudyObjectiveConceptAttachmentList.md)
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { StudyObjectiveFileAttachment } from './StudyObjectiveFileAttachment';
|
|
13
|
+
import type { StudyObjectiveAccess } from './StudyObjectiveAccess';
|
|
13
14
|
import type { StudyObjectiveCanvasDocument } from './StudyObjectiveCanvasDocument';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
@@ -101,6 +102,24 @@ export interface StudyObjective {
|
|
|
101
102
|
* @memberof StudyObjective
|
|
102
103
|
*/
|
|
103
104
|
archivedAt: Date | null;
|
|
105
|
+
/**
|
|
106
|
+
* What the Canvas item's course gives Athena to go on, for a Canvas-sourced objective. Null for custom objectives and until Athena has read the course (the read runs with concept extraction and refreshes weekly). Course-level facts shared by every learner on the item, except scopeKnown and scopeKnownReason, which also count this learner's syllabus analysis.
|
|
107
|
+
* @type {StudyObjectiveAccess}
|
|
108
|
+
* @memberof StudyObjective
|
|
109
|
+
*/
|
|
110
|
+
access?: StudyObjectiveAccess | null;
|
|
111
|
+
/**
|
|
112
|
+
* What the learner told Athena this assessment covers, in their own words; null when nothing was told. Per-user and never written by a Canvas re-sync.
|
|
113
|
+
* @type {string}
|
|
114
|
+
* @memberof StudyObjective
|
|
115
|
+
*/
|
|
116
|
+
learnerScope?: string | null;
|
|
117
|
+
/**
|
|
118
|
+
* The access state Athena last told this learner about for this objective (the thin-context ask, or practice generated from a panel showing it); null when never told. Read-only.
|
|
119
|
+
* @type {string}
|
|
120
|
+
* @memberof StudyObjective
|
|
121
|
+
*/
|
|
122
|
+
accessDisclosedState?: StudyObjectiveAccessDisclosedStateEnum | null;
|
|
104
123
|
/**
|
|
105
124
|
*
|
|
106
125
|
* @type {Date}
|
|
@@ -123,6 +142,15 @@ export declare const StudyObjectiveSourceEnum: {
|
|
|
123
142
|
readonly Template: "template";
|
|
124
143
|
};
|
|
125
144
|
export type StudyObjectiveSourceEnum = typeof StudyObjectiveSourceEnum[keyof typeof StudyObjectiveSourceEnum];
|
|
145
|
+
/**
|
|
146
|
+
* @export
|
|
147
|
+
*/
|
|
148
|
+
export declare const StudyObjectiveAccessDisclosedStateEnum: {
|
|
149
|
+
readonly Grounded: "grounded";
|
|
150
|
+
readonly Thin: "thin";
|
|
151
|
+
readonly Unreadable: "unreadable";
|
|
152
|
+
};
|
|
153
|
+
export type StudyObjectiveAccessDisclosedStateEnum = typeof StudyObjectiveAccessDisclosedStateEnum[keyof typeof StudyObjectiveAccessDisclosedStateEnum];
|
|
126
154
|
/**
|
|
127
155
|
* Check if a given object implements the StudyObjective interface.
|
|
128
156
|
*/
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { StudyObjectiveFileAttachmentFromJSON, StudyObjectiveFileAttachmentToJSON, } from './StudyObjectiveFileAttachment';
|
|
15
|
+
import { StudyObjectiveAccessFromJSON, StudyObjectiveAccessToJSON, } from './StudyObjectiveAccess';
|
|
15
16
|
import { StudyObjectiveCanvasDocumentFromJSON, StudyObjectiveCanvasDocumentToJSON, } from './StudyObjectiveCanvasDocument';
|
|
16
17
|
/**
|
|
17
18
|
* @export
|
|
@@ -21,6 +22,14 @@ export const StudyObjectiveSourceEnum = {
|
|
|
21
22
|
Syllabus: 'syllabus',
|
|
22
23
|
Template: 'template'
|
|
23
24
|
};
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
export const StudyObjectiveAccessDisclosedStateEnum = {
|
|
29
|
+
Grounded: 'grounded',
|
|
30
|
+
Thin: 'thin',
|
|
31
|
+
Unreadable: 'unreadable'
|
|
32
|
+
};
|
|
24
33
|
/**
|
|
25
34
|
* Check if a given object implements the StudyObjective interface.
|
|
26
35
|
*/
|
|
@@ -81,6 +90,9 @@ export function StudyObjectiveFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
81
90
|
'canvasDocuments': (json['canvasDocuments'].map(StudyObjectiveCanvasDocumentFromJSON)),
|
|
82
91
|
'dueAt': (json['dueAt'] == null ? null : new Date(json['dueAt'])),
|
|
83
92
|
'archivedAt': (json['archivedAt'] == null ? null : new Date(json['archivedAt'])),
|
|
93
|
+
'access': json['access'] == null ? undefined : StudyObjectiveAccessFromJSON(json['access']),
|
|
94
|
+
'learnerScope': json['learnerScope'] == null ? undefined : json['learnerScope'],
|
|
95
|
+
'accessDisclosedState': json['accessDisclosedState'] == null ? undefined : json['accessDisclosedState'],
|
|
84
96
|
'createdAt': (new Date(json['createdAt'])),
|
|
85
97
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
86
98
|
};
|
|
@@ -107,6 +119,9 @@ export function StudyObjectiveToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
107
119
|
'canvasDocuments': (value['canvasDocuments'].map(StudyObjectiveCanvasDocumentToJSON)),
|
|
108
120
|
'dueAt': value['dueAt'] == null ? value['dueAt'] : value['dueAt'].toISOString(),
|
|
109
121
|
'archivedAt': value['archivedAt'] == null ? value['archivedAt'] : value['archivedAt'].toISOString(),
|
|
122
|
+
'access': StudyObjectiveAccessToJSON(value['access']),
|
|
123
|
+
'learnerScope': value['learnerScope'],
|
|
124
|
+
'accessDisclosedState': value['accessDisclosedState'],
|
|
110
125
|
'createdAt': value['createdAt'].toISOString(),
|
|
111
126
|
'updatedAt': value['updatedAt'].toISOString(),
|
|
112
127
|
};
|
|
@@ -0,0 +1,141 @@
|
|
|
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 StudyObjectiveAccess
|
|
16
|
+
*/
|
|
17
|
+
export interface StudyObjectiveAccess {
|
|
18
|
+
/**
|
|
19
|
+
* What the Canvas item's course gives Athena to go on: 'grounded' (some material Athena can read: a syllabus, the item's own text, or readable course files), 'unknown' (Athena can't tell; see unknownReason), 'unreadable' (nothing readable, but locked files or external-tool items exist that Athena cannot open), or 'thin' (the item's title and dates only).
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof StudyObjectiveAccess
|
|
22
|
+
*/
|
|
23
|
+
state: StudyObjectiveAccessStateEnum;
|
|
24
|
+
/**
|
|
25
|
+
* Why state is 'unknown'; null otherwise. 'pages-only': the course's only candidate material is module pages, which Athena counts but does not open. 'listing-denied': Canvas refused the files or modules listing (for example a hidden Files tab) and nothing Athena could read grounds the course, so it can't say what that listing holds.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof StudyObjectiveAccess
|
|
28
|
+
*/
|
|
29
|
+
unknownReason: StudyObjectiveAccessUnknownReasonEnum | null;
|
|
30
|
+
/**
|
|
31
|
+
* Whether anything says what this item covers, for this learner: the item's own text (description or page body), or topics this learner's syllabus analysis found for the assessment with the same title. A syllabus that only names the item does not count.
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof StudyObjectiveAccess
|
|
34
|
+
*/
|
|
35
|
+
scopeKnown: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Why scopeKnown is true; null when it is false. 'item-text', 'syllabus-topics', or 'syllabus-legacy' (the paired syllabus assessment was analysed before topic counts were stored, so its scope is presumed known).
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof StudyObjectiveAccess
|
|
40
|
+
*/
|
|
41
|
+
scopeKnownReason: StudyObjectiveAccessScopeKnownReasonEnum | null;
|
|
42
|
+
/**
|
|
43
|
+
* Where a syllabus long enough to count as material came from; 'none' when no syllabus counted (absent, or a stub).
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof StudyObjectiveAccess
|
|
46
|
+
*/
|
|
47
|
+
syllabusSource: StudyObjectiveAccessSyllabusSourceEnum;
|
|
48
|
+
/**
|
|
49
|
+
* Course files Athena could read (supported types, visible and unlocked), from the course files list. Null when the files list could not be read.
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof StudyObjectiveAccess
|
|
52
|
+
*/
|
|
53
|
+
readableFileCount: number | null;
|
|
54
|
+
/**
|
|
55
|
+
* Course files of a supported type that are locked for the learner. Null when the files list could not be read.
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof StudyObjectiveAccess
|
|
58
|
+
*/
|
|
59
|
+
lockedFileCount: number | null;
|
|
60
|
+
/**
|
|
61
|
+
* Published module items of type Page. Counted from the module listing; pages are not opened. Null when modules could not be listed.
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof StudyObjectiveAccess
|
|
64
|
+
*/
|
|
65
|
+
modulePageCount: number | null;
|
|
66
|
+
/**
|
|
67
|
+
* Published module items that open in an external tool Athena cannot read. Null when modules could not be listed.
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof StudyObjectiveAccess
|
|
70
|
+
*/
|
|
71
|
+
externalToolItemCount: number | null;
|
|
72
|
+
/**
|
|
73
|
+
* Readable files in the module that holds this item (a quiz or assignment), checked against the course files list. Null when the item is in no module, is another kind of item, or either listing could not be read.
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof StudyObjectiveAccess
|
|
76
|
+
*/
|
|
77
|
+
moduleSiblingFileCount: number | null;
|
|
78
|
+
/**
|
|
79
|
+
* Published pages in the module that holds this item (counted, not opened). Null when the item is in no module, is another kind of item, or modules could not be listed; a files list that could not be read leaves it set.
|
|
80
|
+
* @type {number}
|
|
81
|
+
* @memberof StudyObjectiveAccess
|
|
82
|
+
*/
|
|
83
|
+
moduleSiblingPageCount: number | null;
|
|
84
|
+
/**
|
|
85
|
+
* Version of the rule that produced `state`, for joining client analytics to the rule that was live.
|
|
86
|
+
* @type {number}
|
|
87
|
+
* @memberof StudyObjectiveAccess
|
|
88
|
+
*/
|
|
89
|
+
ruleVersion: number;
|
|
90
|
+
/**
|
|
91
|
+
* When these facts were read from Canvas.
|
|
92
|
+
* @type {Date}
|
|
93
|
+
* @memberof StudyObjectiveAccess
|
|
94
|
+
*/
|
|
95
|
+
readAt: Date;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* @export
|
|
99
|
+
*/
|
|
100
|
+
export declare const StudyObjectiveAccessStateEnum: {
|
|
101
|
+
readonly Grounded: "grounded";
|
|
102
|
+
readonly Thin: "thin";
|
|
103
|
+
readonly Unreadable: "unreadable";
|
|
104
|
+
readonly Unknown: "unknown";
|
|
105
|
+
};
|
|
106
|
+
export type StudyObjectiveAccessStateEnum = typeof StudyObjectiveAccessStateEnum[keyof typeof StudyObjectiveAccessStateEnum];
|
|
107
|
+
/**
|
|
108
|
+
* @export
|
|
109
|
+
*/
|
|
110
|
+
export declare const StudyObjectiveAccessUnknownReasonEnum: {
|
|
111
|
+
readonly PagesOnly: "pages-only";
|
|
112
|
+
readonly ListingDenied: "listing-denied";
|
|
113
|
+
};
|
|
114
|
+
export type StudyObjectiveAccessUnknownReasonEnum = typeof StudyObjectiveAccessUnknownReasonEnum[keyof typeof StudyObjectiveAccessUnknownReasonEnum];
|
|
115
|
+
/**
|
|
116
|
+
* @export
|
|
117
|
+
*/
|
|
118
|
+
export declare const StudyObjectiveAccessScopeKnownReasonEnum: {
|
|
119
|
+
readonly ItemText: "item-text";
|
|
120
|
+
readonly SyllabusTopics: "syllabus-topics";
|
|
121
|
+
readonly SyllabusLegacy: "syllabus-legacy";
|
|
122
|
+
};
|
|
123
|
+
export type StudyObjectiveAccessScopeKnownReasonEnum = typeof StudyObjectiveAccessScopeKnownReasonEnum[keyof typeof StudyObjectiveAccessScopeKnownReasonEnum];
|
|
124
|
+
/**
|
|
125
|
+
* @export
|
|
126
|
+
*/
|
|
127
|
+
export declare const StudyObjectiveAccessSyllabusSourceEnum: {
|
|
128
|
+
readonly Inline: "inline";
|
|
129
|
+
readonly Stored: "stored";
|
|
130
|
+
readonly Native: "native";
|
|
131
|
+
readonly None: "none";
|
|
132
|
+
};
|
|
133
|
+
export type StudyObjectiveAccessSyllabusSourceEnum = typeof StudyObjectiveAccessSyllabusSourceEnum[keyof typeof StudyObjectiveAccessSyllabusSourceEnum];
|
|
134
|
+
/**
|
|
135
|
+
* Check if a given object implements the StudyObjectiveAccess interface.
|
|
136
|
+
*/
|
|
137
|
+
export declare function instanceOfStudyObjectiveAccess(value: object): value is StudyObjectiveAccess;
|
|
138
|
+
export declare function StudyObjectiveAccessFromJSON(json: any): StudyObjectiveAccess;
|
|
139
|
+
export declare function StudyObjectiveAccessFromJSONTyped(json: any, ignoreDiscriminator: boolean): StudyObjectiveAccess;
|
|
140
|
+
export declare function StudyObjectiveAccessToJSON(json: any): StudyObjectiveAccess;
|
|
141
|
+
export declare function StudyObjectiveAccessToJSONTyped(value?: StudyObjectiveAccess | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Athena API
|
|
5
|
+
* REST API for the Athena system
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const StudyObjectiveAccessStateEnum = {
|
|
18
|
+
Grounded: 'grounded',
|
|
19
|
+
Thin: 'thin',
|
|
20
|
+
Unreadable: 'unreadable',
|
|
21
|
+
Unknown: 'unknown'
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
export const StudyObjectiveAccessUnknownReasonEnum = {
|
|
27
|
+
PagesOnly: 'pages-only',
|
|
28
|
+
ListingDenied: 'listing-denied'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
export const StudyObjectiveAccessScopeKnownReasonEnum = {
|
|
34
|
+
ItemText: 'item-text',
|
|
35
|
+
SyllabusTopics: 'syllabus-topics',
|
|
36
|
+
SyllabusLegacy: 'syllabus-legacy'
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* @export
|
|
40
|
+
*/
|
|
41
|
+
export const StudyObjectiveAccessSyllabusSourceEnum = {
|
|
42
|
+
Inline: 'inline',
|
|
43
|
+
Stored: 'stored',
|
|
44
|
+
Native: 'native',
|
|
45
|
+
None: 'none'
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the StudyObjectiveAccess interface.
|
|
49
|
+
*/
|
|
50
|
+
export function instanceOfStudyObjectiveAccess(value) {
|
|
51
|
+
if (!('state' in value) || value['state'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('unknownReason' in value) || value['unknownReason'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('scopeKnown' in value) || value['scopeKnown'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
if (!('scopeKnownReason' in value) || value['scopeKnownReason'] === undefined)
|
|
58
|
+
return false;
|
|
59
|
+
if (!('syllabusSource' in value) || value['syllabusSource'] === undefined)
|
|
60
|
+
return false;
|
|
61
|
+
if (!('readableFileCount' in value) || value['readableFileCount'] === undefined)
|
|
62
|
+
return false;
|
|
63
|
+
if (!('lockedFileCount' in value) || value['lockedFileCount'] === undefined)
|
|
64
|
+
return false;
|
|
65
|
+
if (!('modulePageCount' in value) || value['modulePageCount'] === undefined)
|
|
66
|
+
return false;
|
|
67
|
+
if (!('externalToolItemCount' in value) || value['externalToolItemCount'] === undefined)
|
|
68
|
+
return false;
|
|
69
|
+
if (!('moduleSiblingFileCount' in value) || value['moduleSiblingFileCount'] === undefined)
|
|
70
|
+
return false;
|
|
71
|
+
if (!('moduleSiblingPageCount' in value) || value['moduleSiblingPageCount'] === undefined)
|
|
72
|
+
return false;
|
|
73
|
+
if (!('ruleVersion' in value) || value['ruleVersion'] === undefined)
|
|
74
|
+
return false;
|
|
75
|
+
if (!('readAt' in value) || value['readAt'] === undefined)
|
|
76
|
+
return false;
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
export function StudyObjectiveAccessFromJSON(json) {
|
|
80
|
+
return StudyObjectiveAccessFromJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
export function StudyObjectiveAccessFromJSONTyped(json, ignoreDiscriminator) {
|
|
83
|
+
if (json == null) {
|
|
84
|
+
return json;
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
'state': json['state'],
|
|
88
|
+
'unknownReason': json['unknownReason'],
|
|
89
|
+
'scopeKnown': json['scopeKnown'],
|
|
90
|
+
'scopeKnownReason': json['scopeKnownReason'],
|
|
91
|
+
'syllabusSource': json['syllabusSource'],
|
|
92
|
+
'readableFileCount': json['readableFileCount'],
|
|
93
|
+
'lockedFileCount': json['lockedFileCount'],
|
|
94
|
+
'modulePageCount': json['modulePageCount'],
|
|
95
|
+
'externalToolItemCount': json['externalToolItemCount'],
|
|
96
|
+
'moduleSiblingFileCount': json['moduleSiblingFileCount'],
|
|
97
|
+
'moduleSiblingPageCount': json['moduleSiblingPageCount'],
|
|
98
|
+
'ruleVersion': json['ruleVersion'],
|
|
99
|
+
'readAt': (new Date(json['readAt'])),
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
export function StudyObjectiveAccessToJSON(json) {
|
|
103
|
+
return StudyObjectiveAccessToJSONTyped(json, false);
|
|
104
|
+
}
|
|
105
|
+
export function StudyObjectiveAccessToJSONTyped(value, ignoreDiscriminator = false) {
|
|
106
|
+
if (value == null) {
|
|
107
|
+
return value;
|
|
108
|
+
}
|
|
109
|
+
return {
|
|
110
|
+
'state': value['state'],
|
|
111
|
+
'unknownReason': value['unknownReason'],
|
|
112
|
+
'scopeKnown': value['scopeKnown'],
|
|
113
|
+
'scopeKnownReason': value['scopeKnownReason'],
|
|
114
|
+
'syllabusSource': value['syllabusSource'],
|
|
115
|
+
'readableFileCount': value['readableFileCount'],
|
|
116
|
+
'lockedFileCount': value['lockedFileCount'],
|
|
117
|
+
'modulePageCount': value['modulePageCount'],
|
|
118
|
+
'externalToolItemCount': value['externalToolItemCount'],
|
|
119
|
+
'moduleSiblingFileCount': value['moduleSiblingFileCount'],
|
|
120
|
+
'moduleSiblingPageCount': value['moduleSiblingPageCount'],
|
|
121
|
+
'ruleVersion': value['ruleVersion'],
|
|
122
|
+
'readAt': value['readAt'].toISOString(),
|
|
123
|
+
};
|
|
124
|
+
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { StudyObjectiveFileAttachment } from './StudyObjectiveFileAttachment';
|
|
13
|
+
import type { StudyObjectiveAccess } from './StudyObjectiveAccess';
|
|
13
14
|
import type { StudyObjectiveCanvasDocument } from './StudyObjectiveCanvasDocument';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
@@ -101,6 +102,24 @@ export interface UpcomingStudyObjective {
|
|
|
101
102
|
* @memberof UpcomingStudyObjective
|
|
102
103
|
*/
|
|
103
104
|
archivedAt: Date | null;
|
|
105
|
+
/**
|
|
106
|
+
* What the Canvas item's course gives Athena to go on, for a Canvas-sourced objective. Null for custom objectives and until Athena has read the course (the read runs with concept extraction and refreshes weekly). Course-level facts shared by every learner on the item, except scopeKnown and scopeKnownReason, which also count this learner's syllabus analysis.
|
|
107
|
+
* @type {StudyObjectiveAccess}
|
|
108
|
+
* @memberof UpcomingStudyObjective
|
|
109
|
+
*/
|
|
110
|
+
access?: StudyObjectiveAccess | null;
|
|
111
|
+
/**
|
|
112
|
+
* What the learner told Athena this assessment covers, in their own words; null when nothing was told. Per-user and never written by a Canvas re-sync.
|
|
113
|
+
* @type {string}
|
|
114
|
+
* @memberof UpcomingStudyObjective
|
|
115
|
+
*/
|
|
116
|
+
learnerScope?: string | null;
|
|
117
|
+
/**
|
|
118
|
+
* The access state Athena last told this learner about for this objective (the thin-context ask, or practice generated from a panel showing it); null when never told. Read-only.
|
|
119
|
+
* @type {string}
|
|
120
|
+
* @memberof UpcomingStudyObjective
|
|
121
|
+
*/
|
|
122
|
+
accessDisclosedState?: UpcomingStudyObjectiveAccessDisclosedStateEnum | null;
|
|
104
123
|
/**
|
|
105
124
|
*
|
|
106
125
|
* @type {Date}
|
|
@@ -129,6 +148,15 @@ export declare const UpcomingStudyObjectiveSourceEnum: {
|
|
|
129
148
|
readonly Template: "template";
|
|
130
149
|
};
|
|
131
150
|
export type UpcomingStudyObjectiveSourceEnum = typeof UpcomingStudyObjectiveSourceEnum[keyof typeof UpcomingStudyObjectiveSourceEnum];
|
|
151
|
+
/**
|
|
152
|
+
* @export
|
|
153
|
+
*/
|
|
154
|
+
export declare const UpcomingStudyObjectiveAccessDisclosedStateEnum: {
|
|
155
|
+
readonly Grounded: "grounded";
|
|
156
|
+
readonly Thin: "thin";
|
|
157
|
+
readonly Unreadable: "unreadable";
|
|
158
|
+
};
|
|
159
|
+
export type UpcomingStudyObjectiveAccessDisclosedStateEnum = typeof UpcomingStudyObjectiveAccessDisclosedStateEnum[keyof typeof UpcomingStudyObjectiveAccessDisclosedStateEnum];
|
|
132
160
|
/**
|
|
133
161
|
* Check if a given object implements the UpcomingStudyObjective interface.
|
|
134
162
|
*/
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { StudyObjectiveFileAttachmentFromJSON, StudyObjectiveFileAttachmentToJSON, } from './StudyObjectiveFileAttachment';
|
|
15
|
+
import { StudyObjectiveAccessFromJSON, StudyObjectiveAccessToJSON, } from './StudyObjectiveAccess';
|
|
15
16
|
import { StudyObjectiveCanvasDocumentFromJSON, StudyObjectiveCanvasDocumentToJSON, } from './StudyObjectiveCanvasDocument';
|
|
16
17
|
/**
|
|
17
18
|
* @export
|
|
@@ -21,6 +22,14 @@ export const UpcomingStudyObjectiveSourceEnum = {
|
|
|
21
22
|
Syllabus: 'syllabus',
|
|
22
23
|
Template: 'template'
|
|
23
24
|
};
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
export const UpcomingStudyObjectiveAccessDisclosedStateEnum = {
|
|
29
|
+
Grounded: 'grounded',
|
|
30
|
+
Thin: 'thin',
|
|
31
|
+
Unreadable: 'unreadable'
|
|
32
|
+
};
|
|
24
33
|
/**
|
|
25
34
|
* Check if a given object implements the UpcomingStudyObjective interface.
|
|
26
35
|
*/
|
|
@@ -83,6 +92,9 @@ export function UpcomingStudyObjectiveFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
83
92
|
'canvasDocuments': (json['canvasDocuments'].map(StudyObjectiveCanvasDocumentFromJSON)),
|
|
84
93
|
'dueAt': (json['dueAt'] == null ? null : new Date(json['dueAt'])),
|
|
85
94
|
'archivedAt': (json['archivedAt'] == null ? null : new Date(json['archivedAt'])),
|
|
95
|
+
'access': json['access'] == null ? undefined : StudyObjectiveAccessFromJSON(json['access']),
|
|
96
|
+
'learnerScope': json['learnerScope'] == null ? undefined : json['learnerScope'],
|
|
97
|
+
'accessDisclosedState': json['accessDisclosedState'] == null ? undefined : json['accessDisclosedState'],
|
|
86
98
|
'createdAt': (new Date(json['createdAt'])),
|
|
87
99
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
88
100
|
'studySpaceTitle': json['studySpaceTitle'],
|
|
@@ -110,6 +122,9 @@ export function UpcomingStudyObjectiveToJSONTyped(value, ignoreDiscriminator = f
|
|
|
110
122
|
'canvasDocuments': (value['canvasDocuments'].map(StudyObjectiveCanvasDocumentToJSON)),
|
|
111
123
|
'dueAt': value['dueAt'] == null ? value['dueAt'] : value['dueAt'].toISOString(),
|
|
112
124
|
'archivedAt': value['archivedAt'] == null ? value['archivedAt'] : value['archivedAt'].toISOString(),
|
|
125
|
+
'access': StudyObjectiveAccessToJSON(value['access']),
|
|
126
|
+
'learnerScope': value['learnerScope'],
|
|
127
|
+
'accessDisclosedState': value['accessDisclosedState'],
|
|
113
128
|
'createdAt': value['createdAt'].toISOString(),
|
|
114
129
|
'updatedAt': value['updatedAt'].toISOString(),
|
|
115
130
|
'studySpaceTitle': value['studySpaceTitle'],
|
|
@@ -153,6 +153,7 @@ export * from './ScoreByTypeValue';
|
|
|
153
153
|
export * from './ServiceToken';
|
|
154
154
|
export * from './SharedQuiz';
|
|
155
155
|
export * from './StudyObjective';
|
|
156
|
+
export * from './StudyObjectiveAccess';
|
|
156
157
|
export * from './StudyObjectiveCanvasDocument';
|
|
157
158
|
export * from './StudyObjectiveConceptAttachment';
|
|
158
159
|
export * from './StudyObjectiveConceptAttachmentList';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -155,6 +155,7 @@ export * from './ScoreByTypeValue';
|
|
|
155
155
|
export * from './ServiceToken';
|
|
156
156
|
export * from './SharedQuiz';
|
|
157
157
|
export * from './StudyObjective';
|
|
158
|
+
export * from './StudyObjectiveAccess';
|
|
158
159
|
export * from './StudyObjectiveCanvasDocument';
|
|
159
160
|
export * from './StudyObjectiveConceptAttachment';
|
|
160
161
|
export * from './StudyObjectiveConceptAttachmentList';
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { StudyObjectiveFileAttachment } from './StudyObjectiveFileAttachment';
|
|
13
|
+
import type { StudyObjectiveAccess } from './StudyObjectiveAccess';
|
|
13
14
|
import type { StudyObjectiveCanvasDocument } from './StudyObjectiveCanvasDocument';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
@@ -101,6 +102,24 @@ export interface StudyObjective {
|
|
|
101
102
|
* @memberof StudyObjective
|
|
102
103
|
*/
|
|
103
104
|
archivedAt: Date | null;
|
|
105
|
+
/**
|
|
106
|
+
* What the Canvas item's course gives Athena to go on, for a Canvas-sourced objective. Null for custom objectives and until Athena has read the course (the read runs with concept extraction and refreshes weekly). Course-level facts shared by every learner on the item, except scopeKnown and scopeKnownReason, which also count this learner's syllabus analysis.
|
|
107
|
+
* @type {StudyObjectiveAccess}
|
|
108
|
+
* @memberof StudyObjective
|
|
109
|
+
*/
|
|
110
|
+
access?: StudyObjectiveAccess | null;
|
|
111
|
+
/**
|
|
112
|
+
* What the learner told Athena this assessment covers, in their own words; null when nothing was told. Per-user and never written by a Canvas re-sync.
|
|
113
|
+
* @type {string}
|
|
114
|
+
* @memberof StudyObjective
|
|
115
|
+
*/
|
|
116
|
+
learnerScope?: string | null;
|
|
117
|
+
/**
|
|
118
|
+
* The access state Athena last told this learner about for this objective (the thin-context ask, or practice generated from a panel showing it); null when never told. Read-only.
|
|
119
|
+
* @type {string}
|
|
120
|
+
* @memberof StudyObjective
|
|
121
|
+
*/
|
|
122
|
+
accessDisclosedState?: StudyObjectiveAccessDisclosedStateEnum | null;
|
|
104
123
|
/**
|
|
105
124
|
*
|
|
106
125
|
* @type {Date}
|
|
@@ -123,6 +142,15 @@ export declare const StudyObjectiveSourceEnum: {
|
|
|
123
142
|
readonly Template: "template";
|
|
124
143
|
};
|
|
125
144
|
export type StudyObjectiveSourceEnum = typeof StudyObjectiveSourceEnum[keyof typeof StudyObjectiveSourceEnum];
|
|
145
|
+
/**
|
|
146
|
+
* @export
|
|
147
|
+
*/
|
|
148
|
+
export declare const StudyObjectiveAccessDisclosedStateEnum: {
|
|
149
|
+
readonly Grounded: "grounded";
|
|
150
|
+
readonly Thin: "thin";
|
|
151
|
+
readonly Unreadable: "unreadable";
|
|
152
|
+
};
|
|
153
|
+
export type StudyObjectiveAccessDisclosedStateEnum = typeof StudyObjectiveAccessDisclosedStateEnum[keyof typeof StudyObjectiveAccessDisclosedStateEnum];
|
|
126
154
|
/**
|
|
127
155
|
* Check if a given object implements the StudyObjective interface.
|
|
128
156
|
*/
|
|
@@ -13,13 +13,14 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.StudyObjectiveSourceEnum = void 0;
|
|
16
|
+
exports.StudyObjectiveAccessDisclosedStateEnum = exports.StudyObjectiveSourceEnum = void 0;
|
|
17
17
|
exports.instanceOfStudyObjective = instanceOfStudyObjective;
|
|
18
18
|
exports.StudyObjectiveFromJSON = StudyObjectiveFromJSON;
|
|
19
19
|
exports.StudyObjectiveFromJSONTyped = StudyObjectiveFromJSONTyped;
|
|
20
20
|
exports.StudyObjectiveToJSON = StudyObjectiveToJSON;
|
|
21
21
|
exports.StudyObjectiveToJSONTyped = StudyObjectiveToJSONTyped;
|
|
22
22
|
const StudyObjectiveFileAttachment_1 = require("./StudyObjectiveFileAttachment");
|
|
23
|
+
const StudyObjectiveAccess_1 = require("./StudyObjectiveAccess");
|
|
23
24
|
const StudyObjectiveCanvasDocument_1 = require("./StudyObjectiveCanvasDocument");
|
|
24
25
|
/**
|
|
25
26
|
* @export
|
|
@@ -29,6 +30,14 @@ exports.StudyObjectiveSourceEnum = {
|
|
|
29
30
|
Syllabus: 'syllabus',
|
|
30
31
|
Template: 'template'
|
|
31
32
|
};
|
|
33
|
+
/**
|
|
34
|
+
* @export
|
|
35
|
+
*/
|
|
36
|
+
exports.StudyObjectiveAccessDisclosedStateEnum = {
|
|
37
|
+
Grounded: 'grounded',
|
|
38
|
+
Thin: 'thin',
|
|
39
|
+
Unreadable: 'unreadable'
|
|
40
|
+
};
|
|
32
41
|
/**
|
|
33
42
|
* Check if a given object implements the StudyObjective interface.
|
|
34
43
|
*/
|
|
@@ -89,6 +98,9 @@ function StudyObjectiveFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
89
98
|
'canvasDocuments': (json['canvasDocuments'].map(StudyObjectiveCanvasDocument_1.StudyObjectiveCanvasDocumentFromJSON)),
|
|
90
99
|
'dueAt': (json['dueAt'] == null ? null : new Date(json['dueAt'])),
|
|
91
100
|
'archivedAt': (json['archivedAt'] == null ? null : new Date(json['archivedAt'])),
|
|
101
|
+
'access': json['access'] == null ? undefined : (0, StudyObjectiveAccess_1.StudyObjectiveAccessFromJSON)(json['access']),
|
|
102
|
+
'learnerScope': json['learnerScope'] == null ? undefined : json['learnerScope'],
|
|
103
|
+
'accessDisclosedState': json['accessDisclosedState'] == null ? undefined : json['accessDisclosedState'],
|
|
92
104
|
'createdAt': (new Date(json['createdAt'])),
|
|
93
105
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
94
106
|
};
|
|
@@ -115,6 +127,9 @@ function StudyObjectiveToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
115
127
|
'canvasDocuments': (value['canvasDocuments'].map(StudyObjectiveCanvasDocument_1.StudyObjectiveCanvasDocumentToJSON)),
|
|
116
128
|
'dueAt': value['dueAt'] == null ? value['dueAt'] : value['dueAt'].toISOString(),
|
|
117
129
|
'archivedAt': value['archivedAt'] == null ? value['archivedAt'] : value['archivedAt'].toISOString(),
|
|
130
|
+
'access': (0, StudyObjectiveAccess_1.StudyObjectiveAccessToJSON)(value['access']),
|
|
131
|
+
'learnerScope': value['learnerScope'],
|
|
132
|
+
'accessDisclosedState': value['accessDisclosedState'],
|
|
118
133
|
'createdAt': value['createdAt'].toISOString(),
|
|
119
134
|
'updatedAt': value['updatedAt'].toISOString(),
|
|
120
135
|
};
|
|
@@ -0,0 +1,141 @@
|
|
|
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 StudyObjectiveAccess
|
|
16
|
+
*/
|
|
17
|
+
export interface StudyObjectiveAccess {
|
|
18
|
+
/**
|
|
19
|
+
* What the Canvas item's course gives Athena to go on: 'grounded' (some material Athena can read: a syllabus, the item's own text, or readable course files), 'unknown' (Athena can't tell; see unknownReason), 'unreadable' (nothing readable, but locked files or external-tool items exist that Athena cannot open), or 'thin' (the item's title and dates only).
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof StudyObjectiveAccess
|
|
22
|
+
*/
|
|
23
|
+
state: StudyObjectiveAccessStateEnum;
|
|
24
|
+
/**
|
|
25
|
+
* Why state is 'unknown'; null otherwise. 'pages-only': the course's only candidate material is module pages, which Athena counts but does not open. 'listing-denied': Canvas refused the files or modules listing (for example a hidden Files tab) and nothing Athena could read grounds the course, so it can't say what that listing holds.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof StudyObjectiveAccess
|
|
28
|
+
*/
|
|
29
|
+
unknownReason: StudyObjectiveAccessUnknownReasonEnum | null;
|
|
30
|
+
/**
|
|
31
|
+
* Whether anything says what this item covers, for this learner: the item's own text (description or page body), or topics this learner's syllabus analysis found for the assessment with the same title. A syllabus that only names the item does not count.
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof StudyObjectiveAccess
|
|
34
|
+
*/
|
|
35
|
+
scopeKnown: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Why scopeKnown is true; null when it is false. 'item-text', 'syllabus-topics', or 'syllabus-legacy' (the paired syllabus assessment was analysed before topic counts were stored, so its scope is presumed known).
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof StudyObjectiveAccess
|
|
40
|
+
*/
|
|
41
|
+
scopeKnownReason: StudyObjectiveAccessScopeKnownReasonEnum | null;
|
|
42
|
+
/**
|
|
43
|
+
* Where a syllabus long enough to count as material came from; 'none' when no syllabus counted (absent, or a stub).
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof StudyObjectiveAccess
|
|
46
|
+
*/
|
|
47
|
+
syllabusSource: StudyObjectiveAccessSyllabusSourceEnum;
|
|
48
|
+
/**
|
|
49
|
+
* Course files Athena could read (supported types, visible and unlocked), from the course files list. Null when the files list could not be read.
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof StudyObjectiveAccess
|
|
52
|
+
*/
|
|
53
|
+
readableFileCount: number | null;
|
|
54
|
+
/**
|
|
55
|
+
* Course files of a supported type that are locked for the learner. Null when the files list could not be read.
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof StudyObjectiveAccess
|
|
58
|
+
*/
|
|
59
|
+
lockedFileCount: number | null;
|
|
60
|
+
/**
|
|
61
|
+
* Published module items of type Page. Counted from the module listing; pages are not opened. Null when modules could not be listed.
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof StudyObjectiveAccess
|
|
64
|
+
*/
|
|
65
|
+
modulePageCount: number | null;
|
|
66
|
+
/**
|
|
67
|
+
* Published module items that open in an external tool Athena cannot read. Null when modules could not be listed.
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof StudyObjectiveAccess
|
|
70
|
+
*/
|
|
71
|
+
externalToolItemCount: number | null;
|
|
72
|
+
/**
|
|
73
|
+
* Readable files in the module that holds this item (a quiz or assignment), checked against the course files list. Null when the item is in no module, is another kind of item, or either listing could not be read.
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof StudyObjectiveAccess
|
|
76
|
+
*/
|
|
77
|
+
moduleSiblingFileCount: number | null;
|
|
78
|
+
/**
|
|
79
|
+
* Published pages in the module that holds this item (counted, not opened). Null when the item is in no module, is another kind of item, or modules could not be listed; a files list that could not be read leaves it set.
|
|
80
|
+
* @type {number}
|
|
81
|
+
* @memberof StudyObjectiveAccess
|
|
82
|
+
*/
|
|
83
|
+
moduleSiblingPageCount: number | null;
|
|
84
|
+
/**
|
|
85
|
+
* Version of the rule that produced `state`, for joining client analytics to the rule that was live.
|
|
86
|
+
* @type {number}
|
|
87
|
+
* @memberof StudyObjectiveAccess
|
|
88
|
+
*/
|
|
89
|
+
ruleVersion: number;
|
|
90
|
+
/**
|
|
91
|
+
* When these facts were read from Canvas.
|
|
92
|
+
* @type {Date}
|
|
93
|
+
* @memberof StudyObjectiveAccess
|
|
94
|
+
*/
|
|
95
|
+
readAt: Date;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* @export
|
|
99
|
+
*/
|
|
100
|
+
export declare const StudyObjectiveAccessStateEnum: {
|
|
101
|
+
readonly Grounded: "grounded";
|
|
102
|
+
readonly Thin: "thin";
|
|
103
|
+
readonly Unreadable: "unreadable";
|
|
104
|
+
readonly Unknown: "unknown";
|
|
105
|
+
};
|
|
106
|
+
export type StudyObjectiveAccessStateEnum = typeof StudyObjectiveAccessStateEnum[keyof typeof StudyObjectiveAccessStateEnum];
|
|
107
|
+
/**
|
|
108
|
+
* @export
|
|
109
|
+
*/
|
|
110
|
+
export declare const StudyObjectiveAccessUnknownReasonEnum: {
|
|
111
|
+
readonly PagesOnly: "pages-only";
|
|
112
|
+
readonly ListingDenied: "listing-denied";
|
|
113
|
+
};
|
|
114
|
+
export type StudyObjectiveAccessUnknownReasonEnum = typeof StudyObjectiveAccessUnknownReasonEnum[keyof typeof StudyObjectiveAccessUnknownReasonEnum];
|
|
115
|
+
/**
|
|
116
|
+
* @export
|
|
117
|
+
*/
|
|
118
|
+
export declare const StudyObjectiveAccessScopeKnownReasonEnum: {
|
|
119
|
+
readonly ItemText: "item-text";
|
|
120
|
+
readonly SyllabusTopics: "syllabus-topics";
|
|
121
|
+
readonly SyllabusLegacy: "syllabus-legacy";
|
|
122
|
+
};
|
|
123
|
+
export type StudyObjectiveAccessScopeKnownReasonEnum = typeof StudyObjectiveAccessScopeKnownReasonEnum[keyof typeof StudyObjectiveAccessScopeKnownReasonEnum];
|
|
124
|
+
/**
|
|
125
|
+
* @export
|
|
126
|
+
*/
|
|
127
|
+
export declare const StudyObjectiveAccessSyllabusSourceEnum: {
|
|
128
|
+
readonly Inline: "inline";
|
|
129
|
+
readonly Stored: "stored";
|
|
130
|
+
readonly Native: "native";
|
|
131
|
+
readonly None: "none";
|
|
132
|
+
};
|
|
133
|
+
export type StudyObjectiveAccessSyllabusSourceEnum = typeof StudyObjectiveAccessSyllabusSourceEnum[keyof typeof StudyObjectiveAccessSyllabusSourceEnum];
|
|
134
|
+
/**
|
|
135
|
+
* Check if a given object implements the StudyObjectiveAccess interface.
|
|
136
|
+
*/
|
|
137
|
+
export declare function instanceOfStudyObjectiveAccess(value: object): value is StudyObjectiveAccess;
|
|
138
|
+
export declare function StudyObjectiveAccessFromJSON(json: any): StudyObjectiveAccess;
|
|
139
|
+
export declare function StudyObjectiveAccessFromJSONTyped(json: any, ignoreDiscriminator: boolean): StudyObjectiveAccess;
|
|
140
|
+
export declare function StudyObjectiveAccessToJSON(json: any): StudyObjectiveAccess;
|
|
141
|
+
export declare function StudyObjectiveAccessToJSONTyped(value?: StudyObjectiveAccess | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,132 @@
|
|
|
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.StudyObjectiveAccessSyllabusSourceEnum = exports.StudyObjectiveAccessScopeKnownReasonEnum = exports.StudyObjectiveAccessUnknownReasonEnum = exports.StudyObjectiveAccessStateEnum = void 0;
|
|
17
|
+
exports.instanceOfStudyObjectiveAccess = instanceOfStudyObjectiveAccess;
|
|
18
|
+
exports.StudyObjectiveAccessFromJSON = StudyObjectiveAccessFromJSON;
|
|
19
|
+
exports.StudyObjectiveAccessFromJSONTyped = StudyObjectiveAccessFromJSONTyped;
|
|
20
|
+
exports.StudyObjectiveAccessToJSON = StudyObjectiveAccessToJSON;
|
|
21
|
+
exports.StudyObjectiveAccessToJSONTyped = StudyObjectiveAccessToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.StudyObjectiveAccessStateEnum = {
|
|
26
|
+
Grounded: 'grounded',
|
|
27
|
+
Thin: 'thin',
|
|
28
|
+
Unreadable: 'unreadable',
|
|
29
|
+
Unknown: 'unknown'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
exports.StudyObjectiveAccessUnknownReasonEnum = {
|
|
35
|
+
PagesOnly: 'pages-only',
|
|
36
|
+
ListingDenied: 'listing-denied'
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* @export
|
|
40
|
+
*/
|
|
41
|
+
exports.StudyObjectiveAccessScopeKnownReasonEnum = {
|
|
42
|
+
ItemText: 'item-text',
|
|
43
|
+
SyllabusTopics: 'syllabus-topics',
|
|
44
|
+
SyllabusLegacy: 'syllabus-legacy'
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* @export
|
|
48
|
+
*/
|
|
49
|
+
exports.StudyObjectiveAccessSyllabusSourceEnum = {
|
|
50
|
+
Inline: 'inline',
|
|
51
|
+
Stored: 'stored',
|
|
52
|
+
Native: 'native',
|
|
53
|
+
None: 'none'
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the StudyObjectiveAccess interface.
|
|
57
|
+
*/
|
|
58
|
+
function instanceOfStudyObjectiveAccess(value) {
|
|
59
|
+
if (!('state' in value) || value['state'] === undefined)
|
|
60
|
+
return false;
|
|
61
|
+
if (!('unknownReason' in value) || value['unknownReason'] === undefined)
|
|
62
|
+
return false;
|
|
63
|
+
if (!('scopeKnown' in value) || value['scopeKnown'] === undefined)
|
|
64
|
+
return false;
|
|
65
|
+
if (!('scopeKnownReason' in value) || value['scopeKnownReason'] === undefined)
|
|
66
|
+
return false;
|
|
67
|
+
if (!('syllabusSource' in value) || value['syllabusSource'] === undefined)
|
|
68
|
+
return false;
|
|
69
|
+
if (!('readableFileCount' in value) || value['readableFileCount'] === undefined)
|
|
70
|
+
return false;
|
|
71
|
+
if (!('lockedFileCount' in value) || value['lockedFileCount'] === undefined)
|
|
72
|
+
return false;
|
|
73
|
+
if (!('modulePageCount' in value) || value['modulePageCount'] === undefined)
|
|
74
|
+
return false;
|
|
75
|
+
if (!('externalToolItemCount' in value) || value['externalToolItemCount'] === undefined)
|
|
76
|
+
return false;
|
|
77
|
+
if (!('moduleSiblingFileCount' in value) || value['moduleSiblingFileCount'] === undefined)
|
|
78
|
+
return false;
|
|
79
|
+
if (!('moduleSiblingPageCount' in value) || value['moduleSiblingPageCount'] === undefined)
|
|
80
|
+
return false;
|
|
81
|
+
if (!('ruleVersion' in value) || value['ruleVersion'] === undefined)
|
|
82
|
+
return false;
|
|
83
|
+
if (!('readAt' in value) || value['readAt'] === undefined)
|
|
84
|
+
return false;
|
|
85
|
+
return true;
|
|
86
|
+
}
|
|
87
|
+
function StudyObjectiveAccessFromJSON(json) {
|
|
88
|
+
return StudyObjectiveAccessFromJSONTyped(json, false);
|
|
89
|
+
}
|
|
90
|
+
function StudyObjectiveAccessFromJSONTyped(json, ignoreDiscriminator) {
|
|
91
|
+
if (json == null) {
|
|
92
|
+
return json;
|
|
93
|
+
}
|
|
94
|
+
return {
|
|
95
|
+
'state': json['state'],
|
|
96
|
+
'unknownReason': json['unknownReason'],
|
|
97
|
+
'scopeKnown': json['scopeKnown'],
|
|
98
|
+
'scopeKnownReason': json['scopeKnownReason'],
|
|
99
|
+
'syllabusSource': json['syllabusSource'],
|
|
100
|
+
'readableFileCount': json['readableFileCount'],
|
|
101
|
+
'lockedFileCount': json['lockedFileCount'],
|
|
102
|
+
'modulePageCount': json['modulePageCount'],
|
|
103
|
+
'externalToolItemCount': json['externalToolItemCount'],
|
|
104
|
+
'moduleSiblingFileCount': json['moduleSiblingFileCount'],
|
|
105
|
+
'moduleSiblingPageCount': json['moduleSiblingPageCount'],
|
|
106
|
+
'ruleVersion': json['ruleVersion'],
|
|
107
|
+
'readAt': (new Date(json['readAt'])),
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
function StudyObjectiveAccessToJSON(json) {
|
|
111
|
+
return StudyObjectiveAccessToJSONTyped(json, false);
|
|
112
|
+
}
|
|
113
|
+
function StudyObjectiveAccessToJSONTyped(value, ignoreDiscriminator = false) {
|
|
114
|
+
if (value == null) {
|
|
115
|
+
return value;
|
|
116
|
+
}
|
|
117
|
+
return {
|
|
118
|
+
'state': value['state'],
|
|
119
|
+
'unknownReason': value['unknownReason'],
|
|
120
|
+
'scopeKnown': value['scopeKnown'],
|
|
121
|
+
'scopeKnownReason': value['scopeKnownReason'],
|
|
122
|
+
'syllabusSource': value['syllabusSource'],
|
|
123
|
+
'readableFileCount': value['readableFileCount'],
|
|
124
|
+
'lockedFileCount': value['lockedFileCount'],
|
|
125
|
+
'modulePageCount': value['modulePageCount'],
|
|
126
|
+
'externalToolItemCount': value['externalToolItemCount'],
|
|
127
|
+
'moduleSiblingFileCount': value['moduleSiblingFileCount'],
|
|
128
|
+
'moduleSiblingPageCount': value['moduleSiblingPageCount'],
|
|
129
|
+
'ruleVersion': value['ruleVersion'],
|
|
130
|
+
'readAt': value['readAt'].toISOString(),
|
|
131
|
+
};
|
|
132
|
+
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { StudyObjectiveFileAttachment } from './StudyObjectiveFileAttachment';
|
|
13
|
+
import type { StudyObjectiveAccess } from './StudyObjectiveAccess';
|
|
13
14
|
import type { StudyObjectiveCanvasDocument } from './StudyObjectiveCanvasDocument';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
@@ -101,6 +102,24 @@ export interface UpcomingStudyObjective {
|
|
|
101
102
|
* @memberof UpcomingStudyObjective
|
|
102
103
|
*/
|
|
103
104
|
archivedAt: Date | null;
|
|
105
|
+
/**
|
|
106
|
+
* What the Canvas item's course gives Athena to go on, for a Canvas-sourced objective. Null for custom objectives and until Athena has read the course (the read runs with concept extraction and refreshes weekly). Course-level facts shared by every learner on the item, except scopeKnown and scopeKnownReason, which also count this learner's syllabus analysis.
|
|
107
|
+
* @type {StudyObjectiveAccess}
|
|
108
|
+
* @memberof UpcomingStudyObjective
|
|
109
|
+
*/
|
|
110
|
+
access?: StudyObjectiveAccess | null;
|
|
111
|
+
/**
|
|
112
|
+
* What the learner told Athena this assessment covers, in their own words; null when nothing was told. Per-user and never written by a Canvas re-sync.
|
|
113
|
+
* @type {string}
|
|
114
|
+
* @memberof UpcomingStudyObjective
|
|
115
|
+
*/
|
|
116
|
+
learnerScope?: string | null;
|
|
117
|
+
/**
|
|
118
|
+
* The access state Athena last told this learner about for this objective (the thin-context ask, or practice generated from a panel showing it); null when never told. Read-only.
|
|
119
|
+
* @type {string}
|
|
120
|
+
* @memberof UpcomingStudyObjective
|
|
121
|
+
*/
|
|
122
|
+
accessDisclosedState?: UpcomingStudyObjectiveAccessDisclosedStateEnum | null;
|
|
104
123
|
/**
|
|
105
124
|
*
|
|
106
125
|
* @type {Date}
|
|
@@ -129,6 +148,15 @@ export declare const UpcomingStudyObjectiveSourceEnum: {
|
|
|
129
148
|
readonly Template: "template";
|
|
130
149
|
};
|
|
131
150
|
export type UpcomingStudyObjectiveSourceEnum = typeof UpcomingStudyObjectiveSourceEnum[keyof typeof UpcomingStudyObjectiveSourceEnum];
|
|
151
|
+
/**
|
|
152
|
+
* @export
|
|
153
|
+
*/
|
|
154
|
+
export declare const UpcomingStudyObjectiveAccessDisclosedStateEnum: {
|
|
155
|
+
readonly Grounded: "grounded";
|
|
156
|
+
readonly Thin: "thin";
|
|
157
|
+
readonly Unreadable: "unreadable";
|
|
158
|
+
};
|
|
159
|
+
export type UpcomingStudyObjectiveAccessDisclosedStateEnum = typeof UpcomingStudyObjectiveAccessDisclosedStateEnum[keyof typeof UpcomingStudyObjectiveAccessDisclosedStateEnum];
|
|
132
160
|
/**
|
|
133
161
|
* Check if a given object implements the UpcomingStudyObjective interface.
|
|
134
162
|
*/
|
|
@@ -13,13 +13,14 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.UpcomingStudyObjectiveSourceEnum = void 0;
|
|
16
|
+
exports.UpcomingStudyObjectiveAccessDisclosedStateEnum = exports.UpcomingStudyObjectiveSourceEnum = void 0;
|
|
17
17
|
exports.instanceOfUpcomingStudyObjective = instanceOfUpcomingStudyObjective;
|
|
18
18
|
exports.UpcomingStudyObjectiveFromJSON = UpcomingStudyObjectiveFromJSON;
|
|
19
19
|
exports.UpcomingStudyObjectiveFromJSONTyped = UpcomingStudyObjectiveFromJSONTyped;
|
|
20
20
|
exports.UpcomingStudyObjectiveToJSON = UpcomingStudyObjectiveToJSON;
|
|
21
21
|
exports.UpcomingStudyObjectiveToJSONTyped = UpcomingStudyObjectiveToJSONTyped;
|
|
22
22
|
const StudyObjectiveFileAttachment_1 = require("./StudyObjectiveFileAttachment");
|
|
23
|
+
const StudyObjectiveAccess_1 = require("./StudyObjectiveAccess");
|
|
23
24
|
const StudyObjectiveCanvasDocument_1 = require("./StudyObjectiveCanvasDocument");
|
|
24
25
|
/**
|
|
25
26
|
* @export
|
|
@@ -29,6 +30,14 @@ exports.UpcomingStudyObjectiveSourceEnum = {
|
|
|
29
30
|
Syllabus: 'syllabus',
|
|
30
31
|
Template: 'template'
|
|
31
32
|
};
|
|
33
|
+
/**
|
|
34
|
+
* @export
|
|
35
|
+
*/
|
|
36
|
+
exports.UpcomingStudyObjectiveAccessDisclosedStateEnum = {
|
|
37
|
+
Grounded: 'grounded',
|
|
38
|
+
Thin: 'thin',
|
|
39
|
+
Unreadable: 'unreadable'
|
|
40
|
+
};
|
|
32
41
|
/**
|
|
33
42
|
* Check if a given object implements the UpcomingStudyObjective interface.
|
|
34
43
|
*/
|
|
@@ -91,6 +100,9 @@ function UpcomingStudyObjectiveFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
91
100
|
'canvasDocuments': (json['canvasDocuments'].map(StudyObjectiveCanvasDocument_1.StudyObjectiveCanvasDocumentFromJSON)),
|
|
92
101
|
'dueAt': (json['dueAt'] == null ? null : new Date(json['dueAt'])),
|
|
93
102
|
'archivedAt': (json['archivedAt'] == null ? null : new Date(json['archivedAt'])),
|
|
103
|
+
'access': json['access'] == null ? undefined : (0, StudyObjectiveAccess_1.StudyObjectiveAccessFromJSON)(json['access']),
|
|
104
|
+
'learnerScope': json['learnerScope'] == null ? undefined : json['learnerScope'],
|
|
105
|
+
'accessDisclosedState': json['accessDisclosedState'] == null ? undefined : json['accessDisclosedState'],
|
|
94
106
|
'createdAt': (new Date(json['createdAt'])),
|
|
95
107
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
96
108
|
'studySpaceTitle': json['studySpaceTitle'],
|
|
@@ -118,6 +130,9 @@ function UpcomingStudyObjectiveToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
118
130
|
'canvasDocuments': (value['canvasDocuments'].map(StudyObjectiveCanvasDocument_1.StudyObjectiveCanvasDocumentToJSON)),
|
|
119
131
|
'dueAt': value['dueAt'] == null ? value['dueAt'] : value['dueAt'].toISOString(),
|
|
120
132
|
'archivedAt': value['archivedAt'] == null ? value['archivedAt'] : value['archivedAt'].toISOString(),
|
|
133
|
+
'access': (0, StudyObjectiveAccess_1.StudyObjectiveAccessToJSON)(value['access']),
|
|
134
|
+
'learnerScope': value['learnerScope'],
|
|
135
|
+
'accessDisclosedState': value['accessDisclosedState'],
|
|
121
136
|
'createdAt': value['createdAt'].toISOString(),
|
|
122
137
|
'updatedAt': value['updatedAt'].toISOString(),
|
|
123
138
|
'studySpaceTitle': value['studySpaceTitle'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -153,6 +153,7 @@ export * from './ScoreByTypeValue';
|
|
|
153
153
|
export * from './ServiceToken';
|
|
154
154
|
export * from './SharedQuiz';
|
|
155
155
|
export * from './StudyObjective';
|
|
156
|
+
export * from './StudyObjectiveAccess';
|
|
156
157
|
export * from './StudyObjectiveCanvasDocument';
|
|
157
158
|
export * from './StudyObjectiveConceptAttachment';
|
|
158
159
|
export * from './StudyObjectiveConceptAttachmentList';
|
package/dist/models/index.js
CHANGED
|
@@ -171,6 +171,7 @@ __exportStar(require("./ScoreByTypeValue"), exports);
|
|
|
171
171
|
__exportStar(require("./ServiceToken"), exports);
|
|
172
172
|
__exportStar(require("./SharedQuiz"), exports);
|
|
173
173
|
__exportStar(require("./StudyObjective"), exports);
|
|
174
|
+
__exportStar(require("./StudyObjectiveAccess"), exports);
|
|
174
175
|
__exportStar(require("./StudyObjectiveCanvasDocument"), exports);
|
|
175
176
|
__exportStar(require("./StudyObjectiveConceptAttachment"), exports);
|
|
176
177
|
__exportStar(require("./StudyObjectiveConceptAttachmentList"), exports);
|