@instructure/athena-api-client 3.44.0 → 3.45.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.
|
@@ -88,13 +88,13 @@ export interface StudyObjectiveAccess {
|
|
|
88
88
|
*/
|
|
89
89
|
moduleReadableFileCount: number | null;
|
|
90
90
|
/**
|
|
91
|
-
* Files of a supported type published through Modules that
|
|
91
|
+
* Files of a supported type published through Modules that Canvas reported locked for the learner whose read stored these facts (one per file). For analytics only: a module lock follows each learner's progress, so it never decides `state` and copy never names it. Null when modules could not be listed, and on facts read before rule 4.
|
|
92
92
|
* @type {number}
|
|
93
93
|
* @memberof StudyObjectiveAccess
|
|
94
94
|
*/
|
|
95
95
|
moduleLockedFileCount: number | null;
|
|
96
96
|
/**
|
|
97
|
-
* Version of the rule that
|
|
97
|
+
* Version of the rule that stored these facts, for joining client analytics to the rule that was live. A course stored as 'unreadable' on module File locks alone (rule 4) is returned as 'unknown' / 'listing-denied', as rule 5 reads it, with its stored version.
|
|
98
98
|
* @type {number}
|
|
99
99
|
* @memberof StudyObjectiveAccess
|
|
100
100
|
*/
|
|
@@ -111,6 +111,12 @@ export interface StudyObjectiveAccess {
|
|
|
111
111
|
* @memberof StudyObjectiveAccess
|
|
112
112
|
*/
|
|
113
113
|
suggestedScope: Array<string> | null;
|
|
114
|
+
/**
|
|
115
|
+
* What built this item's topic list: 'text' (the course syllabus or the item's own text, long enough to count as material) or 'title' (the course and item names, with no syllabus or item text long enough to count). Files never feed the list, so a 'grounded' course can still have a 'title' list. Label a 'title' list as suggested from the course name; key that label on this field, not on `state`. Recorded when the list is extracted; for a list extracted before that record existed it is read from these facts (no syllabus counted and no item text means 'title'), which can read 'text' for a course that gained text after its list was built.
|
|
116
|
+
* @type {string}
|
|
117
|
+
* @memberof StudyObjectiveAccess
|
|
118
|
+
*/
|
|
119
|
+
rosterSource: StudyObjectiveAccessRosterSourceEnum;
|
|
114
120
|
}
|
|
115
121
|
/**
|
|
116
122
|
* @export
|
|
@@ -149,6 +155,14 @@ export declare const StudyObjectiveAccessSyllabusSourceEnum: {
|
|
|
149
155
|
readonly None: "none";
|
|
150
156
|
};
|
|
151
157
|
export type StudyObjectiveAccessSyllabusSourceEnum = typeof StudyObjectiveAccessSyllabusSourceEnum[keyof typeof StudyObjectiveAccessSyllabusSourceEnum];
|
|
158
|
+
/**
|
|
159
|
+
* @export
|
|
160
|
+
*/
|
|
161
|
+
export declare const StudyObjectiveAccessRosterSourceEnum: {
|
|
162
|
+
readonly Title: "title";
|
|
163
|
+
readonly Text: "text";
|
|
164
|
+
};
|
|
165
|
+
export type StudyObjectiveAccessRosterSourceEnum = typeof StudyObjectiveAccessRosterSourceEnum[keyof typeof StudyObjectiveAccessRosterSourceEnum];
|
|
152
166
|
/**
|
|
153
167
|
* Check if a given object implements the StudyObjectiveAccess interface.
|
|
154
168
|
*/
|
|
@@ -44,6 +44,13 @@ export const StudyObjectiveAccessSyllabusSourceEnum = {
|
|
|
44
44
|
Native: 'native',
|
|
45
45
|
None: 'none'
|
|
46
46
|
};
|
|
47
|
+
/**
|
|
48
|
+
* @export
|
|
49
|
+
*/
|
|
50
|
+
export const StudyObjectiveAccessRosterSourceEnum = {
|
|
51
|
+
Title: 'title',
|
|
52
|
+
Text: 'text'
|
|
53
|
+
};
|
|
47
54
|
/**
|
|
48
55
|
* Check if a given object implements the StudyObjectiveAccess interface.
|
|
49
56
|
*/
|
|
@@ -80,6 +87,8 @@ export function instanceOfStudyObjectiveAccess(value) {
|
|
|
80
87
|
return false;
|
|
81
88
|
if (!('suggestedScope' in value) || value['suggestedScope'] === undefined)
|
|
82
89
|
return false;
|
|
90
|
+
if (!('rosterSource' in value) || value['rosterSource'] === undefined)
|
|
91
|
+
return false;
|
|
83
92
|
return true;
|
|
84
93
|
}
|
|
85
94
|
export function StudyObjectiveAccessFromJSON(json) {
|
|
@@ -106,6 +115,7 @@ export function StudyObjectiveAccessFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
106
115
|
'ruleVersion': json['ruleVersion'],
|
|
107
116
|
'readAt': (new Date(json['readAt'])),
|
|
108
117
|
'suggestedScope': json['suggestedScope'] == null ? null : json['suggestedScope'],
|
|
118
|
+
'rosterSource': json['rosterSource'],
|
|
109
119
|
};
|
|
110
120
|
}
|
|
111
121
|
export function StudyObjectiveAccessToJSON(json) {
|
|
@@ -132,5 +142,6 @@ export function StudyObjectiveAccessToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
132
142
|
'ruleVersion': value['ruleVersion'],
|
|
133
143
|
'readAt': value['readAt'].toISOString(),
|
|
134
144
|
'suggestedScope': value['suggestedScope'],
|
|
145
|
+
'rosterSource': value['rosterSource'],
|
|
135
146
|
};
|
|
136
147
|
}
|
|
@@ -88,13 +88,13 @@ export interface StudyObjectiveAccess {
|
|
|
88
88
|
*/
|
|
89
89
|
moduleReadableFileCount: number | null;
|
|
90
90
|
/**
|
|
91
|
-
* Files of a supported type published through Modules that
|
|
91
|
+
* Files of a supported type published through Modules that Canvas reported locked for the learner whose read stored these facts (one per file). For analytics only: a module lock follows each learner's progress, so it never decides `state` and copy never names it. Null when modules could not be listed, and on facts read before rule 4.
|
|
92
92
|
* @type {number}
|
|
93
93
|
* @memberof StudyObjectiveAccess
|
|
94
94
|
*/
|
|
95
95
|
moduleLockedFileCount: number | null;
|
|
96
96
|
/**
|
|
97
|
-
* Version of the rule that
|
|
97
|
+
* Version of the rule that stored these facts, for joining client analytics to the rule that was live. A course stored as 'unreadable' on module File locks alone (rule 4) is returned as 'unknown' / 'listing-denied', as rule 5 reads it, with its stored version.
|
|
98
98
|
* @type {number}
|
|
99
99
|
* @memberof StudyObjectiveAccess
|
|
100
100
|
*/
|
|
@@ -111,6 +111,12 @@ export interface StudyObjectiveAccess {
|
|
|
111
111
|
* @memberof StudyObjectiveAccess
|
|
112
112
|
*/
|
|
113
113
|
suggestedScope: Array<string> | null;
|
|
114
|
+
/**
|
|
115
|
+
* What built this item's topic list: 'text' (the course syllabus or the item's own text, long enough to count as material) or 'title' (the course and item names, with no syllabus or item text long enough to count). Files never feed the list, so a 'grounded' course can still have a 'title' list. Label a 'title' list as suggested from the course name; key that label on this field, not on `state`. Recorded when the list is extracted; for a list extracted before that record existed it is read from these facts (no syllabus counted and no item text means 'title'), which can read 'text' for a course that gained text after its list was built.
|
|
116
|
+
* @type {string}
|
|
117
|
+
* @memberof StudyObjectiveAccess
|
|
118
|
+
*/
|
|
119
|
+
rosterSource: StudyObjectiveAccessRosterSourceEnum;
|
|
114
120
|
}
|
|
115
121
|
/**
|
|
116
122
|
* @export
|
|
@@ -149,6 +155,14 @@ export declare const StudyObjectiveAccessSyllabusSourceEnum: {
|
|
|
149
155
|
readonly None: "none";
|
|
150
156
|
};
|
|
151
157
|
export type StudyObjectiveAccessSyllabusSourceEnum = typeof StudyObjectiveAccessSyllabusSourceEnum[keyof typeof StudyObjectiveAccessSyllabusSourceEnum];
|
|
158
|
+
/**
|
|
159
|
+
* @export
|
|
160
|
+
*/
|
|
161
|
+
export declare const StudyObjectiveAccessRosterSourceEnum: {
|
|
162
|
+
readonly Title: "title";
|
|
163
|
+
readonly Text: "text";
|
|
164
|
+
};
|
|
165
|
+
export type StudyObjectiveAccessRosterSourceEnum = typeof StudyObjectiveAccessRosterSourceEnum[keyof typeof StudyObjectiveAccessRosterSourceEnum];
|
|
152
166
|
/**
|
|
153
167
|
* Check if a given object implements the StudyObjectiveAccess interface.
|
|
154
168
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.StudyObjectiveAccessSyllabusSourceEnum = exports.StudyObjectiveAccessScopeKnownReasonEnum = exports.StudyObjectiveAccessUnknownReasonEnum = exports.StudyObjectiveAccessStateEnum = void 0;
|
|
16
|
+
exports.StudyObjectiveAccessRosterSourceEnum = exports.StudyObjectiveAccessSyllabusSourceEnum = exports.StudyObjectiveAccessScopeKnownReasonEnum = exports.StudyObjectiveAccessUnknownReasonEnum = exports.StudyObjectiveAccessStateEnum = void 0;
|
|
17
17
|
exports.instanceOfStudyObjectiveAccess = instanceOfStudyObjectiveAccess;
|
|
18
18
|
exports.StudyObjectiveAccessFromJSON = StudyObjectiveAccessFromJSON;
|
|
19
19
|
exports.StudyObjectiveAccessFromJSONTyped = StudyObjectiveAccessFromJSONTyped;
|
|
@@ -52,6 +52,13 @@ exports.StudyObjectiveAccessSyllabusSourceEnum = {
|
|
|
52
52
|
Native: 'native',
|
|
53
53
|
None: 'none'
|
|
54
54
|
};
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
exports.StudyObjectiveAccessRosterSourceEnum = {
|
|
59
|
+
Title: 'title',
|
|
60
|
+
Text: 'text'
|
|
61
|
+
};
|
|
55
62
|
/**
|
|
56
63
|
* Check if a given object implements the StudyObjectiveAccess interface.
|
|
57
64
|
*/
|
|
@@ -88,6 +95,8 @@ function instanceOfStudyObjectiveAccess(value) {
|
|
|
88
95
|
return false;
|
|
89
96
|
if (!('suggestedScope' in value) || value['suggestedScope'] === undefined)
|
|
90
97
|
return false;
|
|
98
|
+
if (!('rosterSource' in value) || value['rosterSource'] === undefined)
|
|
99
|
+
return false;
|
|
91
100
|
return true;
|
|
92
101
|
}
|
|
93
102
|
function StudyObjectiveAccessFromJSON(json) {
|
|
@@ -114,6 +123,7 @@ function StudyObjectiveAccessFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
114
123
|
'ruleVersion': json['ruleVersion'],
|
|
115
124
|
'readAt': (new Date(json['readAt'])),
|
|
116
125
|
'suggestedScope': json['suggestedScope'] == null ? null : json['suggestedScope'],
|
|
126
|
+
'rosterSource': json['rosterSource'],
|
|
117
127
|
};
|
|
118
128
|
}
|
|
119
129
|
function StudyObjectiveAccessToJSON(json) {
|
|
@@ -140,5 +150,6 @@ function StudyObjectiveAccessToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
140
150
|
'ruleVersion': value['ruleVersion'],
|
|
141
151
|
'readAt': value['readAt'].toISOString(),
|
|
142
152
|
'suggestedScope': value['suggestedScope'],
|
|
153
|
+
'rosterSource': value['rosterSource'],
|
|
143
154
|
};
|
|
144
155
|
}
|