@instructure/athena-api-client 3.29.0 → 3.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/apis/AdminApi.d.ts +15 -1
- package/dist/apis/AdminApi.js +42 -0
- package/dist/esm/apis/AdminApi.d.ts +15 -1
- package/dist/esm/apis/AdminApi.js +43 -1
- package/dist/esm/models/AdminUserActivity.d.ts +39 -0
- package/dist/esm/models/AdminUserActivity.js +48 -0
- package/dist/esm/models/AdminUserActivityDay.d.ts +48 -0
- package/dist/esm/models/AdminUserActivityDay.js +56 -0
- package/dist/esm/models/AdminUsersActivityRequest.d.ts +38 -0
- package/dist/esm/models/AdminUsersActivityRequest.js +45 -0
- package/dist/esm/models/Chat.d.ts +6 -0
- package/dist/esm/models/Chat.js +4 -0
- package/dist/esm/models/QuizQuestionView.d.ts +1 -1
- package/dist/esm/models/SubmittedQuizResponse.d.ts +1 -1
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/models/AdminUserActivity.d.ts +39 -0
- package/dist/models/AdminUserActivity.js +55 -0
- package/dist/models/AdminUserActivityDay.d.ts +48 -0
- package/dist/models/AdminUserActivityDay.js +64 -0
- package/dist/models/AdminUsersActivityRequest.d.ts +38 -0
- package/dist/models/AdminUsersActivityRequest.js +52 -0
- package/dist/models/Chat.d.ts +6 -0
- package/dist/models/Chat.js +4 -0
- package/dist/models/QuizQuestionView.d.ts +1 -1
- package/dist/models/SubmittedQuizResponse.d.ts +1 -1
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -64,6 +64,7 @@ All URIs are relative to *http://localhost:3000*
|
|
|
64
64
|
*AdminApi* | [**adminGetStudyObjectiveSummary**](docs/AdminApi.md#admingetstudyobjectivesummary) | **GET** /api/v1/admin/study-objectives/summary | Aggregate study-objective statistics across all account users
|
|
65
65
|
*AdminApi* | [**adminGetUserChats**](docs/AdminApi.md#admingetuserchats) | **GET** /api/v1/admin/users/{externalId}/chats | Get chats with stats for a user
|
|
66
66
|
*AdminApi* | [**adminGetUserEngagement**](docs/AdminApi.md#admingetuserengagement) | **GET** /api/v1/admin/users/{externalId}/engagement | Get engagement dates for a user
|
|
67
|
+
*AdminApi* | [**adminGetUsersActivity**](docs/AdminApi.md#admingetusersactivity) | **POST** /api/v1/admin/users/activity | Get per-day activity for a batch of users
|
|
67
68
|
*AdminApi* | [**adminListActiveStreaks**](docs/AdminApi.md#adminlistactivestreaks) | **GET** /api/v1/admin/streaks/active | List all active streaks (currentDays > 0) across the account, paginated
|
|
68
69
|
*AdminApi* | [**adminListChats**](docs/AdminApi.md#adminlistchats) | **GET** /api/v1/admin/chats | List recent chats across all account users
|
|
69
70
|
*AdminApi* | [**adminListQuizSessions**](docs/AdminApi.md#adminlistquizsessions) | **GET** /api/v1/admin/quiz-sessions | List recent quiz sessions across all account users
|
|
@@ -206,7 +207,10 @@ All URIs are relative to *http://localhost:3000*
|
|
|
206
207
|
- [AdminTaxonomyEnrollmentTaxonomy](docs/AdminTaxonomyEnrollmentTaxonomy.md)
|
|
207
208
|
- [AdminTriggerAnalysisResponse](docs/AdminTriggerAnalysisResponse.md)
|
|
208
209
|
- [AdminUpdateChatRequest](docs/AdminUpdateChatRequest.md)
|
|
210
|
+
- [AdminUserActivity](docs/AdminUserActivity.md)
|
|
211
|
+
- [AdminUserActivityDay](docs/AdminUserActivityDay.md)
|
|
209
212
|
- [AdminUserEngagement](docs/AdminUserEngagement.md)
|
|
213
|
+
- [AdminUsersActivityRequest](docs/AdminUsersActivityRequest.md)
|
|
210
214
|
- [AssociateUserFileRequest](docs/AssociateUserFileRequest.md)
|
|
211
215
|
- [CanvasCourseAccess](docs/CanvasCourseAccess.md)
|
|
212
216
|
- [CanvasDomainMatch](docs/CanvasDomainMatch.md)
|
package/dist/apis/AdminApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AdminChat, AdminChatAnalysis, AdminChatWithStats, AdminCohortStats, AdminPaginatedActiveStreaks, AdminPaginatedChats, AdminPaginatedQuizSessions, AdminPaginatedStudyObjectiveUserCounts, AdminPaginatedStudyObjectives, AdminPaginatedTaxonomyEnrollments, AdminResetLearningDataResponse, AdminStreak, AdminStudyObjectiveSummary, AdminTriggerAnalysisResponse, AdminUpdateChatRequest, AdminUserEngagement, QuizSessionSummary } from '../models/index';
|
|
13
|
+
import type { AdminChat, AdminChatAnalysis, AdminChatWithStats, AdminCohortStats, AdminPaginatedActiveStreaks, AdminPaginatedChats, AdminPaginatedQuizSessions, AdminPaginatedStudyObjectiveUserCounts, AdminPaginatedStudyObjectives, AdminPaginatedTaxonomyEnrollments, AdminResetLearningDataResponse, AdminStreak, AdminStudyObjectiveSummary, AdminTriggerAnalysisResponse, AdminUpdateChatRequest, AdminUserActivity, AdminUserEngagement, AdminUsersActivityRequest, QuizSessionSummary } from '../models/index';
|
|
14
14
|
export interface AdminGetChatRequest {
|
|
15
15
|
xUserId: string;
|
|
16
16
|
chatId: string;
|
|
@@ -39,6 +39,10 @@ export interface AdminGetUserEngagementRequest {
|
|
|
39
39
|
xUserId: string;
|
|
40
40
|
externalId: string;
|
|
41
41
|
}
|
|
42
|
+
export interface AdminGetUsersActivityRequest {
|
|
43
|
+
xUserId: string;
|
|
44
|
+
adminUsersActivityRequest: AdminUsersActivityRequest;
|
|
45
|
+
}
|
|
42
46
|
export interface AdminListActiveStreaksRequest {
|
|
43
47
|
xUserId: string;
|
|
44
48
|
limit?: number;
|
|
@@ -164,6 +168,16 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
164
168
|
* Get engagement dates for a user
|
|
165
169
|
*/
|
|
166
170
|
adminGetUserEngagement(requestParameters: AdminGetUserEngagementRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminUserEngagement>;
|
|
171
|
+
/**
|
|
172
|
+
* Returns, for each known external user id, the distinct local days (bucketed in the requested timezone, default UTC) on which the user was active, tagged with the kinds of activity: sent a message in a regular or level-up chat, created a quiz or flashcard set (including Canvas practice quizzes), answered a quiz question (including the daily quiz), or viewed flashcards (proxied by starting a flashcards-mode quiz session). Unknown external ids are omitted from the response.
|
|
173
|
+
* Get per-day activity for a batch of users
|
|
174
|
+
*/
|
|
175
|
+
adminGetUsersActivityRaw(requestParameters: AdminGetUsersActivityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AdminUserActivity>>>;
|
|
176
|
+
/**
|
|
177
|
+
* Returns, for each known external user id, the distinct local days (bucketed in the requested timezone, default UTC) on which the user was active, tagged with the kinds of activity: sent a message in a regular or level-up chat, created a quiz or flashcard set (including Canvas practice quizzes), answered a quiz question (including the daily quiz), or viewed flashcards (proxied by starting a flashcards-mode quiz session). Unknown external ids are omitted from the response.
|
|
178
|
+
* Get per-day activity for a batch of users
|
|
179
|
+
*/
|
|
180
|
+
adminGetUsersActivity(requestParameters: AdminGetUsersActivityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AdminUserActivity>>;
|
|
167
181
|
/**
|
|
168
182
|
* List all active streaks (currentDays > 0) across the account, paginated
|
|
169
183
|
*/
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -310,6 +310,48 @@ class AdminApi extends runtime.BaseAPI {
|
|
|
310
310
|
return yield response.value();
|
|
311
311
|
});
|
|
312
312
|
}
|
|
313
|
+
/**
|
|
314
|
+
* Returns, for each known external user id, the distinct local days (bucketed in the requested timezone, default UTC) on which the user was active, tagged with the kinds of activity: sent a message in a regular or level-up chat, created a quiz or flashcard set (including Canvas practice quizzes), answered a quiz question (including the daily quiz), or viewed flashcards (proxied by starting a flashcards-mode quiz session). Unknown external ids are omitted from the response.
|
|
315
|
+
* Get per-day activity for a batch of users
|
|
316
|
+
*/
|
|
317
|
+
adminGetUsersActivityRaw(requestParameters, initOverrides) {
|
|
318
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
319
|
+
if (requestParameters['xUserId'] == null) {
|
|
320
|
+
throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling adminGetUsersActivity().');
|
|
321
|
+
}
|
|
322
|
+
if (requestParameters['adminUsersActivityRequest'] == null) {
|
|
323
|
+
throw new runtime.RequiredError('adminUsersActivityRequest', 'Required parameter "adminUsersActivityRequest" was null or undefined when calling adminGetUsersActivity().');
|
|
324
|
+
}
|
|
325
|
+
const queryParameters = {};
|
|
326
|
+
const headerParameters = {};
|
|
327
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
328
|
+
if (requestParameters['xUserId'] != null) {
|
|
329
|
+
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
330
|
+
}
|
|
331
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
332
|
+
headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
|
|
333
|
+
}
|
|
334
|
+
let urlPath = `/api/v1/admin/users/activity`;
|
|
335
|
+
const response = yield this.request({
|
|
336
|
+
path: urlPath,
|
|
337
|
+
method: 'POST',
|
|
338
|
+
headers: headerParameters,
|
|
339
|
+
query: queryParameters,
|
|
340
|
+
body: (0, index_1.AdminUsersActivityRequestToJSON)(requestParameters['adminUsersActivityRequest']),
|
|
341
|
+
}, initOverrides);
|
|
342
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.AdminUserActivityFromJSON));
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* Returns, for each known external user id, the distinct local days (bucketed in the requested timezone, default UTC) on which the user was active, tagged with the kinds of activity: sent a message in a regular or level-up chat, created a quiz or flashcard set (including Canvas practice quizzes), answered a quiz question (including the daily quiz), or viewed flashcards (proxied by starting a flashcards-mode quiz session). Unknown external ids are omitted from the response.
|
|
347
|
+
* Get per-day activity for a batch of users
|
|
348
|
+
*/
|
|
349
|
+
adminGetUsersActivity(requestParameters, initOverrides) {
|
|
350
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
351
|
+
const response = yield this.adminGetUsersActivityRaw(requestParameters, initOverrides);
|
|
352
|
+
return yield response.value();
|
|
353
|
+
});
|
|
354
|
+
}
|
|
313
355
|
/**
|
|
314
356
|
* List all active streaks (currentDays > 0) across the account, paginated
|
|
315
357
|
*/
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AdminChat, AdminChatAnalysis, AdminChatWithStats, AdminCohortStats, AdminPaginatedActiveStreaks, AdminPaginatedChats, AdminPaginatedQuizSessions, AdminPaginatedStudyObjectiveUserCounts, AdminPaginatedStudyObjectives, AdminPaginatedTaxonomyEnrollments, AdminResetLearningDataResponse, AdminStreak, AdminStudyObjectiveSummary, AdminTriggerAnalysisResponse, AdminUpdateChatRequest, AdminUserEngagement, QuizSessionSummary } from '../models/index';
|
|
13
|
+
import type { AdminChat, AdminChatAnalysis, AdminChatWithStats, AdminCohortStats, AdminPaginatedActiveStreaks, AdminPaginatedChats, AdminPaginatedQuizSessions, AdminPaginatedStudyObjectiveUserCounts, AdminPaginatedStudyObjectives, AdminPaginatedTaxonomyEnrollments, AdminResetLearningDataResponse, AdminStreak, AdminStudyObjectiveSummary, AdminTriggerAnalysisResponse, AdminUpdateChatRequest, AdminUserActivity, AdminUserEngagement, AdminUsersActivityRequest, QuizSessionSummary } from '../models/index';
|
|
14
14
|
export interface AdminGetChatRequest {
|
|
15
15
|
xUserId: string;
|
|
16
16
|
chatId: string;
|
|
@@ -39,6 +39,10 @@ export interface AdminGetUserEngagementRequest {
|
|
|
39
39
|
xUserId: string;
|
|
40
40
|
externalId: string;
|
|
41
41
|
}
|
|
42
|
+
export interface AdminGetUsersActivityRequest {
|
|
43
|
+
xUserId: string;
|
|
44
|
+
adminUsersActivityRequest: AdminUsersActivityRequest;
|
|
45
|
+
}
|
|
42
46
|
export interface AdminListActiveStreaksRequest {
|
|
43
47
|
xUserId: string;
|
|
44
48
|
limit?: number;
|
|
@@ -164,6 +168,16 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
164
168
|
* Get engagement dates for a user
|
|
165
169
|
*/
|
|
166
170
|
adminGetUserEngagement(requestParameters: AdminGetUserEngagementRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminUserEngagement>;
|
|
171
|
+
/**
|
|
172
|
+
* Returns, for each known external user id, the distinct local days (bucketed in the requested timezone, default UTC) on which the user was active, tagged with the kinds of activity: sent a message in a regular or level-up chat, created a quiz or flashcard set (including Canvas practice quizzes), answered a quiz question (including the daily quiz), or viewed flashcards (proxied by starting a flashcards-mode quiz session). Unknown external ids are omitted from the response.
|
|
173
|
+
* Get per-day activity for a batch of users
|
|
174
|
+
*/
|
|
175
|
+
adminGetUsersActivityRaw(requestParameters: AdminGetUsersActivityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AdminUserActivity>>>;
|
|
176
|
+
/**
|
|
177
|
+
* Returns, for each known external user id, the distinct local days (bucketed in the requested timezone, default UTC) on which the user was active, tagged with the kinds of activity: sent a message in a regular or level-up chat, created a quiz or flashcard set (including Canvas practice quizzes), answered a quiz question (including the daily quiz), or viewed flashcards (proxied by starting a flashcards-mode quiz session). Unknown external ids are omitted from the response.
|
|
178
|
+
* Get per-day activity for a batch of users
|
|
179
|
+
*/
|
|
180
|
+
adminGetUsersActivity(requestParameters: AdminGetUsersActivityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AdminUserActivity>>;
|
|
167
181
|
/**
|
|
168
182
|
* List all active streaks (currentDays > 0) across the account, paginated
|
|
169
183
|
*/
|
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { AdminChatFromJSON, AdminChatAnalysisFromJSON, AdminChatWithStatsFromJSON, AdminCohortStatsFromJSON, AdminPaginatedActiveStreaksFromJSON, AdminPaginatedChatsFromJSON, AdminPaginatedQuizSessionsFromJSON, AdminPaginatedStudyObjectiveUserCountsFromJSON, AdminPaginatedStudyObjectivesFromJSON, AdminPaginatedTaxonomyEnrollmentsFromJSON, AdminResetLearningDataResponseFromJSON, AdminStreakFromJSON, AdminStudyObjectiveSummaryFromJSON, AdminTriggerAnalysisResponseFromJSON, AdminUpdateChatRequestToJSON, AdminUserEngagementFromJSON, QuizSessionSummaryFromJSON, } from '../models/index';
|
|
24
|
+
import { AdminChatFromJSON, AdminChatAnalysisFromJSON, AdminChatWithStatsFromJSON, AdminCohortStatsFromJSON, AdminPaginatedActiveStreaksFromJSON, AdminPaginatedChatsFromJSON, AdminPaginatedQuizSessionsFromJSON, AdminPaginatedStudyObjectiveUserCountsFromJSON, AdminPaginatedStudyObjectivesFromJSON, AdminPaginatedTaxonomyEnrollmentsFromJSON, AdminResetLearningDataResponseFromJSON, AdminStreakFromJSON, AdminStudyObjectiveSummaryFromJSON, AdminTriggerAnalysisResponseFromJSON, AdminUpdateChatRequestToJSON, AdminUserActivityFromJSON, AdminUserEngagementFromJSON, AdminUsersActivityRequestToJSON, QuizSessionSummaryFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -307,6 +307,48 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
307
307
|
return yield response.value();
|
|
308
308
|
});
|
|
309
309
|
}
|
|
310
|
+
/**
|
|
311
|
+
* Returns, for each known external user id, the distinct local days (bucketed in the requested timezone, default UTC) on which the user was active, tagged with the kinds of activity: sent a message in a regular or level-up chat, created a quiz or flashcard set (including Canvas practice quizzes), answered a quiz question (including the daily quiz), or viewed flashcards (proxied by starting a flashcards-mode quiz session). Unknown external ids are omitted from the response.
|
|
312
|
+
* Get per-day activity for a batch of users
|
|
313
|
+
*/
|
|
314
|
+
adminGetUsersActivityRaw(requestParameters, initOverrides) {
|
|
315
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
316
|
+
if (requestParameters['xUserId'] == null) {
|
|
317
|
+
throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling adminGetUsersActivity().');
|
|
318
|
+
}
|
|
319
|
+
if (requestParameters['adminUsersActivityRequest'] == null) {
|
|
320
|
+
throw new runtime.RequiredError('adminUsersActivityRequest', 'Required parameter "adminUsersActivityRequest" was null or undefined when calling adminGetUsersActivity().');
|
|
321
|
+
}
|
|
322
|
+
const queryParameters = {};
|
|
323
|
+
const headerParameters = {};
|
|
324
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
325
|
+
if (requestParameters['xUserId'] != null) {
|
|
326
|
+
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
327
|
+
}
|
|
328
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
329
|
+
headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
|
|
330
|
+
}
|
|
331
|
+
let urlPath = `/api/v1/admin/users/activity`;
|
|
332
|
+
const response = yield this.request({
|
|
333
|
+
path: urlPath,
|
|
334
|
+
method: 'POST',
|
|
335
|
+
headers: headerParameters,
|
|
336
|
+
query: queryParameters,
|
|
337
|
+
body: AdminUsersActivityRequestToJSON(requestParameters['adminUsersActivityRequest']),
|
|
338
|
+
}, initOverrides);
|
|
339
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AdminUserActivityFromJSON));
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* Returns, for each known external user id, the distinct local days (bucketed in the requested timezone, default UTC) on which the user was active, tagged with the kinds of activity: sent a message in a regular or level-up chat, created a quiz or flashcard set (including Canvas practice quizzes), answered a quiz question (including the daily quiz), or viewed flashcards (proxied by starting a flashcards-mode quiz session). Unknown external ids are omitted from the response.
|
|
344
|
+
* Get per-day activity for a batch of users
|
|
345
|
+
*/
|
|
346
|
+
adminGetUsersActivity(requestParameters, initOverrides) {
|
|
347
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
348
|
+
const response = yield this.adminGetUsersActivityRaw(requestParameters, initOverrides);
|
|
349
|
+
return yield response.value();
|
|
350
|
+
});
|
|
351
|
+
}
|
|
310
352
|
/**
|
|
311
353
|
* List all active streaks (currentDays > 0) across the account, paginated
|
|
312
354
|
*/
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { AdminUserActivityDay } from './AdminUserActivityDay';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AdminUserActivity
|
|
17
|
+
*/
|
|
18
|
+
export interface AdminUserActivity {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AdminUserActivity
|
|
23
|
+
*/
|
|
24
|
+
externalId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<AdminUserActivityDay>}
|
|
28
|
+
* @memberof AdminUserActivity
|
|
29
|
+
*/
|
|
30
|
+
activeDays: Array<AdminUserActivityDay>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the AdminUserActivity interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfAdminUserActivity(value: object): value is AdminUserActivity;
|
|
36
|
+
export declare function AdminUserActivityFromJSON(json: any): AdminUserActivity;
|
|
37
|
+
export declare function AdminUserActivityFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminUserActivity;
|
|
38
|
+
export declare function AdminUserActivityToJSON(json: any): AdminUserActivity;
|
|
39
|
+
export declare function AdminUserActivityToJSONTyped(value?: AdminUserActivity | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
import { AdminUserActivityDayFromJSON, AdminUserActivityDayToJSON, } from './AdminUserActivityDay';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the AdminUserActivity interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfAdminUserActivity(value) {
|
|
19
|
+
if (!('externalId' in value) || value['externalId'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('activeDays' in value) || value['activeDays'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function AdminUserActivityFromJSON(json) {
|
|
26
|
+
return AdminUserActivityFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function AdminUserActivityFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'externalId': json['externalId'],
|
|
34
|
+
'activeDays': (json['activeDays'].map(AdminUserActivityDayFromJSON)),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function AdminUserActivityToJSON(json) {
|
|
38
|
+
return AdminUserActivityToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function AdminUserActivityToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'externalId': value['externalId'],
|
|
46
|
+
'activeDays': (value['activeDays'].map(AdminUserActivityDayToJSON)),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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 AdminUserActivityDay
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminUserActivityDay {
|
|
18
|
+
/**
|
|
19
|
+
* Local day (YYYY-MM-DD) in the requested timezone
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AdminUserActivityDay
|
|
22
|
+
*/
|
|
23
|
+
day: string;
|
|
24
|
+
/**
|
|
25
|
+
* Kinds of activity the user performed on this day
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof AdminUserActivityDay
|
|
28
|
+
*/
|
|
29
|
+
kinds: Array<AdminUserActivityDayKindsEnum>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const AdminUserActivityDayKindsEnum: {
|
|
35
|
+
readonly Message: "message";
|
|
36
|
+
readonly QuizCreated: "quiz-created";
|
|
37
|
+
readonly QuizAnswered: "quiz-answered";
|
|
38
|
+
readonly FlashcardsViewed: "flashcards-viewed";
|
|
39
|
+
};
|
|
40
|
+
export type AdminUserActivityDayKindsEnum = typeof AdminUserActivityDayKindsEnum[keyof typeof AdminUserActivityDayKindsEnum];
|
|
41
|
+
/**
|
|
42
|
+
* Check if a given object implements the AdminUserActivityDay interface.
|
|
43
|
+
*/
|
|
44
|
+
export declare function instanceOfAdminUserActivityDay(value: object): value is AdminUserActivityDay;
|
|
45
|
+
export declare function AdminUserActivityDayFromJSON(json: any): AdminUserActivityDay;
|
|
46
|
+
export declare function AdminUserActivityDayFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminUserActivityDay;
|
|
47
|
+
export declare function AdminUserActivityDayToJSON(json: any): AdminUserActivityDay;
|
|
48
|
+
export declare function AdminUserActivityDayToJSONTyped(value?: AdminUserActivityDay | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
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 AdminUserActivityDayKindsEnum = {
|
|
18
|
+
Message: 'message',
|
|
19
|
+
QuizCreated: 'quiz-created',
|
|
20
|
+
QuizAnswered: 'quiz-answered',
|
|
21
|
+
FlashcardsViewed: 'flashcards-viewed'
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the AdminUserActivityDay interface.
|
|
25
|
+
*/
|
|
26
|
+
export function instanceOfAdminUserActivityDay(value) {
|
|
27
|
+
if (!('day' in value) || value['day'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('kinds' in value) || value['kinds'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
export function AdminUserActivityDayFromJSON(json) {
|
|
34
|
+
return AdminUserActivityDayFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function AdminUserActivityDayFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'day': json['day'],
|
|
42
|
+
'kinds': json['kinds'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export function AdminUserActivityDayToJSON(json) {
|
|
46
|
+
return AdminUserActivityDayToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
export function AdminUserActivityDayToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'day': value['day'],
|
|
54
|
+
'kinds': value['kinds'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -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 AdminUsersActivityRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminUsersActivityRequest {
|
|
18
|
+
/**
|
|
19
|
+
* External user identifiers to fetch activity for
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof AdminUsersActivityRequest
|
|
22
|
+
*/
|
|
23
|
+
externalIds: Array<string>;
|
|
24
|
+
/**
|
|
25
|
+
* IANA timezone used to bucket activity into local days (defaults to UTC)
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AdminUsersActivityRequest
|
|
28
|
+
*/
|
|
29
|
+
timezone?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AdminUsersActivityRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfAdminUsersActivityRequest(value: object): value is AdminUsersActivityRequest;
|
|
35
|
+
export declare function AdminUsersActivityRequestFromJSON(json: any): AdminUsersActivityRequest;
|
|
36
|
+
export declare function AdminUsersActivityRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminUsersActivityRequest;
|
|
37
|
+
export declare function AdminUsersActivityRequestToJSON(json: any): AdminUsersActivityRequest;
|
|
38
|
+
export declare function AdminUsersActivityRequestToJSONTyped(value?: AdminUsersActivityRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
* Check if a given object implements the AdminUsersActivityRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfAdminUsersActivityRequest(value) {
|
|
18
|
+
if (!('externalIds' in value) || value['externalIds'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function AdminUsersActivityRequestFromJSON(json) {
|
|
23
|
+
return AdminUsersActivityRequestFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function AdminUsersActivityRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'externalIds': json['externalIds'],
|
|
31
|
+
'timezone': json['timezone'] == null ? undefined : json['timezone'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function AdminUsersActivityRequestToJSON(json) {
|
|
35
|
+
return AdminUsersActivityRequestToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function AdminUsersActivityRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'externalIds': value['externalIds'],
|
|
43
|
+
'timezone': value['timezone'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
@@ -105,6 +105,12 @@ export interface Chat {
|
|
|
105
105
|
* @memberof Chat
|
|
106
106
|
*/
|
|
107
107
|
courseId: string | null;
|
|
108
|
+
/**
|
|
109
|
+
* Canvas course this chat's activity should be attributed to, resolved at read time: the chat's own `courseId`, else the course of the study objective the chat was launched from, else the course of that objective's study space, else the course of the practice-quiz slot the chat was minted for. Null when none of them knows a course — the activity is genuinely unattributed. Unlike `courseId`, this field is reporting-only and never affects what the chat stream injects.
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof Chat
|
|
112
|
+
*/
|
|
113
|
+
attributionCourseId: string | null;
|
|
108
114
|
/**
|
|
109
115
|
* Snapshot of the learner's strength (0..1) captured when a learning session chat was created. Only populated for chatType 'level-up' or 'quick-practice'; null otherwise.
|
|
110
116
|
* @type {number}
|
package/dist/esm/models/Chat.js
CHANGED
|
@@ -52,6 +52,8 @@ export function instanceOfChat(value) {
|
|
|
52
52
|
return false;
|
|
53
53
|
if (!('courseId' in value) || value['courseId'] === undefined)
|
|
54
54
|
return false;
|
|
55
|
+
if (!('attributionCourseId' in value) || value['attributionCourseId'] === undefined)
|
|
56
|
+
return false;
|
|
55
57
|
if (!('initialStrength' in value) || value['initialStrength'] === undefined)
|
|
56
58
|
return false;
|
|
57
59
|
if (!('primaryConceptId' in value) || value['primaryConceptId'] === undefined)
|
|
@@ -83,6 +85,7 @@ export function ChatFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
83
85
|
'forReview': json['forReview'],
|
|
84
86
|
'taxonomyId': json['taxonomyId'],
|
|
85
87
|
'courseId': json['courseId'],
|
|
88
|
+
'attributionCourseId': json['attributionCourseId'],
|
|
86
89
|
'initialStrength': json['initialStrength'],
|
|
87
90
|
'primaryConceptId': json['primaryConceptId'],
|
|
88
91
|
'closedAt': (json['closedAt'] == null ? null : new Date(json['closedAt'])),
|
|
@@ -111,6 +114,7 @@ export function ChatToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
111
114
|
'forReview': value['forReview'],
|
|
112
115
|
'taxonomyId': value['taxonomyId'],
|
|
113
116
|
'courseId': value['courseId'],
|
|
117
|
+
'attributionCourseId': value['attributionCourseId'],
|
|
114
118
|
'initialStrength': value['initialStrength'],
|
|
115
119
|
'primaryConceptId': value['primaryConceptId'],
|
|
116
120
|
'closedAt': value['closedAt'] == null ? value['closedAt'] : value['closedAt'].toISOString(),
|
|
@@ -28,7 +28,7 @@ export interface QuizQuestionView {
|
|
|
28
28
|
*/
|
|
29
29
|
viewCount: number;
|
|
30
30
|
/**
|
|
31
|
-
* Canvas course this view is attributable to, resolved from the quiz's chat
|
|
31
|
+
* Canvas course this view is attributable to, resolved from the quiz's chat: the chat's own course grounding, else the study objective the quiz was launched from, else that objective's study space, else the practice-quiz slot the chat was minted for. Null when none of them knows a course — the view is simply unattributed. Matches `Chat.attributionCourseId` for the same chat.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof QuizQuestionView
|
|
34
34
|
*/
|
|
@@ -76,7 +76,7 @@ export interface SubmittedQuizResponse {
|
|
|
76
76
|
*/
|
|
77
77
|
learningMomentCreated: boolean;
|
|
78
78
|
/**
|
|
79
|
-
* Canvas course this answer is attributable to, resolved from the quiz's chat
|
|
79
|
+
* Canvas course this answer is attributable to, resolved from the quiz's chat: the chat's own course grounding, else the study objective the quiz was launched from, else that objective's study space, else the practice-quiz slot the chat was minted for. Null when none of them knows a course — the answer is simply unattributed. Matches `Chat.attributionCourseId` for the same chat.
|
|
80
80
|
* @type {string}
|
|
81
81
|
* @memberof SubmittedQuizResponse
|
|
82
82
|
*/
|
|
@@ -23,7 +23,10 @@ export * from './AdminTaxonomyEnrollment';
|
|
|
23
23
|
export * from './AdminTaxonomyEnrollmentTaxonomy';
|
|
24
24
|
export * from './AdminTriggerAnalysisResponse';
|
|
25
25
|
export * from './AdminUpdateChatRequest';
|
|
26
|
+
export * from './AdminUserActivity';
|
|
27
|
+
export * from './AdminUserActivityDay';
|
|
26
28
|
export * from './AdminUserEngagement';
|
|
29
|
+
export * from './AdminUsersActivityRequest';
|
|
27
30
|
export * from './AssociateUserFileRequest';
|
|
28
31
|
export * from './CanvasCourseAccess';
|
|
29
32
|
export * from './CanvasDomainMatch';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -25,7 +25,10 @@ export * from './AdminTaxonomyEnrollment';
|
|
|
25
25
|
export * from './AdminTaxonomyEnrollmentTaxonomy';
|
|
26
26
|
export * from './AdminTriggerAnalysisResponse';
|
|
27
27
|
export * from './AdminUpdateChatRequest';
|
|
28
|
+
export * from './AdminUserActivity';
|
|
29
|
+
export * from './AdminUserActivityDay';
|
|
28
30
|
export * from './AdminUserEngagement';
|
|
31
|
+
export * from './AdminUsersActivityRequest';
|
|
29
32
|
export * from './AssociateUserFileRequest';
|
|
30
33
|
export * from './CanvasCourseAccess';
|
|
31
34
|
export * from './CanvasDomainMatch';
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { AdminUserActivityDay } from './AdminUserActivityDay';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AdminUserActivity
|
|
17
|
+
*/
|
|
18
|
+
export interface AdminUserActivity {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AdminUserActivity
|
|
23
|
+
*/
|
|
24
|
+
externalId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<AdminUserActivityDay>}
|
|
28
|
+
* @memberof AdminUserActivity
|
|
29
|
+
*/
|
|
30
|
+
activeDays: Array<AdminUserActivityDay>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the AdminUserActivity interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfAdminUserActivity(value: object): value is AdminUserActivity;
|
|
36
|
+
export declare function AdminUserActivityFromJSON(json: any): AdminUserActivity;
|
|
37
|
+
export declare function AdminUserActivityFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminUserActivity;
|
|
38
|
+
export declare function AdminUserActivityToJSON(json: any): AdminUserActivity;
|
|
39
|
+
export declare function AdminUserActivityToJSONTyped(value?: AdminUserActivity | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfAdminUserActivity = instanceOfAdminUserActivity;
|
|
17
|
+
exports.AdminUserActivityFromJSON = AdminUserActivityFromJSON;
|
|
18
|
+
exports.AdminUserActivityFromJSONTyped = AdminUserActivityFromJSONTyped;
|
|
19
|
+
exports.AdminUserActivityToJSON = AdminUserActivityToJSON;
|
|
20
|
+
exports.AdminUserActivityToJSONTyped = AdminUserActivityToJSONTyped;
|
|
21
|
+
const AdminUserActivityDay_1 = require("./AdminUserActivityDay");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AdminUserActivity interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAdminUserActivity(value) {
|
|
26
|
+
if (!('externalId' in value) || value['externalId'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('activeDays' in value) || value['activeDays'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function AdminUserActivityFromJSON(json) {
|
|
33
|
+
return AdminUserActivityFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function AdminUserActivityFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'externalId': json['externalId'],
|
|
41
|
+
'activeDays': (json['activeDays'].map(AdminUserActivityDay_1.AdminUserActivityDayFromJSON)),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function AdminUserActivityToJSON(json) {
|
|
45
|
+
return AdminUserActivityToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function AdminUserActivityToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'externalId': value['externalId'],
|
|
53
|
+
'activeDays': (value['activeDays'].map(AdminUserActivityDay_1.AdminUserActivityDayToJSON)),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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 AdminUserActivityDay
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminUserActivityDay {
|
|
18
|
+
/**
|
|
19
|
+
* Local day (YYYY-MM-DD) in the requested timezone
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AdminUserActivityDay
|
|
22
|
+
*/
|
|
23
|
+
day: string;
|
|
24
|
+
/**
|
|
25
|
+
* Kinds of activity the user performed on this day
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof AdminUserActivityDay
|
|
28
|
+
*/
|
|
29
|
+
kinds: Array<AdminUserActivityDayKindsEnum>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const AdminUserActivityDayKindsEnum: {
|
|
35
|
+
readonly Message: "message";
|
|
36
|
+
readonly QuizCreated: "quiz-created";
|
|
37
|
+
readonly QuizAnswered: "quiz-answered";
|
|
38
|
+
readonly FlashcardsViewed: "flashcards-viewed";
|
|
39
|
+
};
|
|
40
|
+
export type AdminUserActivityDayKindsEnum = typeof AdminUserActivityDayKindsEnum[keyof typeof AdminUserActivityDayKindsEnum];
|
|
41
|
+
/**
|
|
42
|
+
* Check if a given object implements the AdminUserActivityDay interface.
|
|
43
|
+
*/
|
|
44
|
+
export declare function instanceOfAdminUserActivityDay(value: object): value is AdminUserActivityDay;
|
|
45
|
+
export declare function AdminUserActivityDayFromJSON(json: any): AdminUserActivityDay;
|
|
46
|
+
export declare function AdminUserActivityDayFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminUserActivityDay;
|
|
47
|
+
export declare function AdminUserActivityDayToJSON(json: any): AdminUserActivityDay;
|
|
48
|
+
export declare function AdminUserActivityDayToJSONTyped(value?: AdminUserActivityDay | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
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.AdminUserActivityDayKindsEnum = void 0;
|
|
17
|
+
exports.instanceOfAdminUserActivityDay = instanceOfAdminUserActivityDay;
|
|
18
|
+
exports.AdminUserActivityDayFromJSON = AdminUserActivityDayFromJSON;
|
|
19
|
+
exports.AdminUserActivityDayFromJSONTyped = AdminUserActivityDayFromJSONTyped;
|
|
20
|
+
exports.AdminUserActivityDayToJSON = AdminUserActivityDayToJSON;
|
|
21
|
+
exports.AdminUserActivityDayToJSONTyped = AdminUserActivityDayToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.AdminUserActivityDayKindsEnum = {
|
|
26
|
+
Message: 'message',
|
|
27
|
+
QuizCreated: 'quiz-created',
|
|
28
|
+
QuizAnswered: 'quiz-answered',
|
|
29
|
+
FlashcardsViewed: 'flashcards-viewed'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AdminUserActivityDay interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfAdminUserActivityDay(value) {
|
|
35
|
+
if (!('day' in value) || value['day'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('kinds' in value) || value['kinds'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function AdminUserActivityDayFromJSON(json) {
|
|
42
|
+
return AdminUserActivityDayFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AdminUserActivityDayFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'day': json['day'],
|
|
50
|
+
'kinds': json['kinds'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function AdminUserActivityDayToJSON(json) {
|
|
54
|
+
return AdminUserActivityDayToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function AdminUserActivityDayToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'day': value['day'],
|
|
62
|
+
'kinds': value['kinds'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -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 AdminUsersActivityRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminUsersActivityRequest {
|
|
18
|
+
/**
|
|
19
|
+
* External user identifiers to fetch activity for
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof AdminUsersActivityRequest
|
|
22
|
+
*/
|
|
23
|
+
externalIds: Array<string>;
|
|
24
|
+
/**
|
|
25
|
+
* IANA timezone used to bucket activity into local days (defaults to UTC)
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AdminUsersActivityRequest
|
|
28
|
+
*/
|
|
29
|
+
timezone?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AdminUsersActivityRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfAdminUsersActivityRequest(value: object): value is AdminUsersActivityRequest;
|
|
35
|
+
export declare function AdminUsersActivityRequestFromJSON(json: any): AdminUsersActivityRequest;
|
|
36
|
+
export declare function AdminUsersActivityRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminUsersActivityRequest;
|
|
37
|
+
export declare function AdminUsersActivityRequestToJSON(json: any): AdminUsersActivityRequest;
|
|
38
|
+
export declare function AdminUsersActivityRequestToJSONTyped(value?: AdminUsersActivityRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.instanceOfAdminUsersActivityRequest = instanceOfAdminUsersActivityRequest;
|
|
17
|
+
exports.AdminUsersActivityRequestFromJSON = AdminUsersActivityRequestFromJSON;
|
|
18
|
+
exports.AdminUsersActivityRequestFromJSONTyped = AdminUsersActivityRequestFromJSONTyped;
|
|
19
|
+
exports.AdminUsersActivityRequestToJSON = AdminUsersActivityRequestToJSON;
|
|
20
|
+
exports.AdminUsersActivityRequestToJSONTyped = AdminUsersActivityRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AdminUsersActivityRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAdminUsersActivityRequest(value) {
|
|
25
|
+
if (!('externalIds' in value) || value['externalIds'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function AdminUsersActivityRequestFromJSON(json) {
|
|
30
|
+
return AdminUsersActivityRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function AdminUsersActivityRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'externalIds': json['externalIds'],
|
|
38
|
+
'timezone': json['timezone'] == null ? undefined : json['timezone'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function AdminUsersActivityRequestToJSON(json) {
|
|
42
|
+
return AdminUsersActivityRequestToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AdminUsersActivityRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'externalIds': value['externalIds'],
|
|
50
|
+
'timezone': value['timezone'],
|
|
51
|
+
};
|
|
52
|
+
}
|
package/dist/models/Chat.d.ts
CHANGED
|
@@ -105,6 +105,12 @@ export interface Chat {
|
|
|
105
105
|
* @memberof Chat
|
|
106
106
|
*/
|
|
107
107
|
courseId: string | null;
|
|
108
|
+
/**
|
|
109
|
+
* Canvas course this chat's activity should be attributed to, resolved at read time: the chat's own `courseId`, else the course of the study objective the chat was launched from, else the course of that objective's study space, else the course of the practice-quiz slot the chat was minted for. Null when none of them knows a course — the activity is genuinely unattributed. Unlike `courseId`, this field is reporting-only and never affects what the chat stream injects.
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof Chat
|
|
112
|
+
*/
|
|
113
|
+
attributionCourseId: string | null;
|
|
108
114
|
/**
|
|
109
115
|
* Snapshot of the learner's strength (0..1) captured when a learning session chat was created. Only populated for chatType 'level-up' or 'quick-practice'; null otherwise.
|
|
110
116
|
* @type {number}
|
package/dist/models/Chat.js
CHANGED
|
@@ -60,6 +60,8 @@ function instanceOfChat(value) {
|
|
|
60
60
|
return false;
|
|
61
61
|
if (!('courseId' in value) || value['courseId'] === undefined)
|
|
62
62
|
return false;
|
|
63
|
+
if (!('attributionCourseId' in value) || value['attributionCourseId'] === undefined)
|
|
64
|
+
return false;
|
|
63
65
|
if (!('initialStrength' in value) || value['initialStrength'] === undefined)
|
|
64
66
|
return false;
|
|
65
67
|
if (!('primaryConceptId' in value) || value['primaryConceptId'] === undefined)
|
|
@@ -91,6 +93,7 @@ function ChatFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
91
93
|
'forReview': json['forReview'],
|
|
92
94
|
'taxonomyId': json['taxonomyId'],
|
|
93
95
|
'courseId': json['courseId'],
|
|
96
|
+
'attributionCourseId': json['attributionCourseId'],
|
|
94
97
|
'initialStrength': json['initialStrength'],
|
|
95
98
|
'primaryConceptId': json['primaryConceptId'],
|
|
96
99
|
'closedAt': (json['closedAt'] == null ? null : new Date(json['closedAt'])),
|
|
@@ -119,6 +122,7 @@ function ChatToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
119
122
|
'forReview': value['forReview'],
|
|
120
123
|
'taxonomyId': value['taxonomyId'],
|
|
121
124
|
'courseId': value['courseId'],
|
|
125
|
+
'attributionCourseId': value['attributionCourseId'],
|
|
122
126
|
'initialStrength': value['initialStrength'],
|
|
123
127
|
'primaryConceptId': value['primaryConceptId'],
|
|
124
128
|
'closedAt': value['closedAt'] == null ? value['closedAt'] : value['closedAt'].toISOString(),
|
|
@@ -28,7 +28,7 @@ export interface QuizQuestionView {
|
|
|
28
28
|
*/
|
|
29
29
|
viewCount: number;
|
|
30
30
|
/**
|
|
31
|
-
* Canvas course this view is attributable to, resolved from the quiz's chat
|
|
31
|
+
* Canvas course this view is attributable to, resolved from the quiz's chat: the chat's own course grounding, else the study objective the quiz was launched from, else that objective's study space, else the practice-quiz slot the chat was minted for. Null when none of them knows a course — the view is simply unattributed. Matches `Chat.attributionCourseId` for the same chat.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof QuizQuestionView
|
|
34
34
|
*/
|
|
@@ -76,7 +76,7 @@ export interface SubmittedQuizResponse {
|
|
|
76
76
|
*/
|
|
77
77
|
learningMomentCreated: boolean;
|
|
78
78
|
/**
|
|
79
|
-
* Canvas course this answer is attributable to, resolved from the quiz's chat
|
|
79
|
+
* Canvas course this answer is attributable to, resolved from the quiz's chat: the chat's own course grounding, else the study objective the quiz was launched from, else that objective's study space, else the practice-quiz slot the chat was minted for. Null when none of them knows a course — the answer is simply unattributed. Matches `Chat.attributionCourseId` for the same chat.
|
|
80
80
|
* @type {string}
|
|
81
81
|
* @memberof SubmittedQuizResponse
|
|
82
82
|
*/
|
package/dist/models/index.d.ts
CHANGED
|
@@ -23,7 +23,10 @@ export * from './AdminTaxonomyEnrollment';
|
|
|
23
23
|
export * from './AdminTaxonomyEnrollmentTaxonomy';
|
|
24
24
|
export * from './AdminTriggerAnalysisResponse';
|
|
25
25
|
export * from './AdminUpdateChatRequest';
|
|
26
|
+
export * from './AdminUserActivity';
|
|
27
|
+
export * from './AdminUserActivityDay';
|
|
26
28
|
export * from './AdminUserEngagement';
|
|
29
|
+
export * from './AdminUsersActivityRequest';
|
|
27
30
|
export * from './AssociateUserFileRequest';
|
|
28
31
|
export * from './CanvasCourseAccess';
|
|
29
32
|
export * from './CanvasDomainMatch';
|
package/dist/models/index.js
CHANGED
|
@@ -41,7 +41,10 @@ __exportStar(require("./AdminTaxonomyEnrollment"), exports);
|
|
|
41
41
|
__exportStar(require("./AdminTaxonomyEnrollmentTaxonomy"), exports);
|
|
42
42
|
__exportStar(require("./AdminTriggerAnalysisResponse"), exports);
|
|
43
43
|
__exportStar(require("./AdminUpdateChatRequest"), exports);
|
|
44
|
+
__exportStar(require("./AdminUserActivity"), exports);
|
|
45
|
+
__exportStar(require("./AdminUserActivityDay"), exports);
|
|
44
46
|
__exportStar(require("./AdminUserEngagement"), exports);
|
|
47
|
+
__exportStar(require("./AdminUsersActivityRequest"), exports);
|
|
45
48
|
__exportStar(require("./AssociateUserFileRequest"), exports);
|
|
46
49
|
__exportStar(require("./CanvasCourseAccess"), exports);
|
|
47
50
|
__exportStar(require("./CanvasDomainMatch"), exports);
|