@instructure/athena-api-client 3.33.2 → 3.33.4
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 +3 -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/AdminUserActivityTotals.d.ts +50 -0
- package/dist/esm/models/AdminUserActivityTotals.js +55 -0
- package/dist/esm/models/AdminUsersActivityTotalsRequest.d.ts +32 -0
- package/dist/esm/models/AdminUsersActivityTotalsRequest.js +43 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/models/AdminUserActivityTotals.d.ts +50 -0
- package/dist/models/AdminUserActivityTotals.js +62 -0
- package/dist/models/AdminUsersActivityTotalsRequest.d.ts +32 -0
- package/dist/models/AdminUsersActivityTotalsRequest.js +50 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -65,6 +65,7 @@ All URIs are relative to *http://localhost:3000*
|
|
|
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
67
|
*AdminApi* | [**adminGetUsersActivity**](docs/AdminApi.md#admingetusersactivity) | **POST** /api/v1/admin/users/activity | Get per-day activity for a batch of users
|
|
68
|
+
*AdminApi* | [**adminGetUsersActivityTotals**](docs/AdminApi.md#admingetusersactivitytotals) | **POST** /api/v1/admin/users/activity-totals | Get lifetime activity totals for a batch of users
|
|
68
69
|
*AdminApi* | [**adminListActiveStreaks**](docs/AdminApi.md#adminlistactivestreaks) | **GET** /api/v1/admin/streaks/active | List all active streaks (currentDays > 0) across the account, paginated
|
|
69
70
|
*AdminApi* | [**adminListChats**](docs/AdminApi.md#adminlistchats) | **GET** /api/v1/admin/chats | List recent chats across all account users
|
|
70
71
|
*AdminApi* | [**adminListLastExchanges**](docs/AdminApi.md#adminlistlastexchanges) | **GET** /api/v1/admin/last-exchanges | List the final user message and assistant reply for low-engagement new users
|
|
@@ -215,8 +216,10 @@ All URIs are relative to *http://localhost:3000*
|
|
|
215
216
|
- [AdminUpdateChatRequest](docs/AdminUpdateChatRequest.md)
|
|
216
217
|
- [AdminUserActivity](docs/AdminUserActivity.md)
|
|
217
218
|
- [AdminUserActivityDay](docs/AdminUserActivityDay.md)
|
|
219
|
+
- [AdminUserActivityTotals](docs/AdminUserActivityTotals.md)
|
|
218
220
|
- [AdminUserEngagement](docs/AdminUserEngagement.md)
|
|
219
221
|
- [AdminUsersActivityRequest](docs/AdminUsersActivityRequest.md)
|
|
222
|
+
- [AdminUsersActivityTotalsRequest](docs/AdminUsersActivityTotalsRequest.md)
|
|
220
223
|
- [AssociateUserFileRequest](docs/AssociateUserFileRequest.md)
|
|
221
224
|
- [CanvasCourseAccess](docs/CanvasCourseAccess.md)
|
|
222
225
|
- [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, AdminPaginatedLastExchanges, AdminPaginatedQuizSessions, AdminPaginatedStudyObjectiveUserCounts, AdminPaginatedStudyObjectives, AdminPaginatedTaxonomyEnrollments, AdminResetLearningDataResponse, AdminStreak, AdminStudyObjectiveSummary, AdminTriggerAnalysisResponse, AdminUpdateChatRequest, AdminUserActivity, AdminUserEngagement, AdminUsersActivityRequest, QuizSessionSummary } from '../models/index';
|
|
13
|
+
import type { AdminChat, AdminChatAnalysis, AdminChatWithStats, AdminCohortStats, AdminPaginatedActiveStreaks, AdminPaginatedChats, AdminPaginatedLastExchanges, AdminPaginatedQuizSessions, AdminPaginatedStudyObjectiveUserCounts, AdminPaginatedStudyObjectives, AdminPaginatedTaxonomyEnrollments, AdminResetLearningDataResponse, AdminStreak, AdminStudyObjectiveSummary, AdminTriggerAnalysisResponse, AdminUpdateChatRequest, AdminUserActivity, AdminUserActivityTotals, AdminUserEngagement, AdminUsersActivityRequest, AdminUsersActivityTotalsRequest, QuizSessionSummary } from '../models/index';
|
|
14
14
|
export interface AdminGetChatRequest {
|
|
15
15
|
xUserId: string;
|
|
16
16
|
chatId: string;
|
|
@@ -43,6 +43,10 @@ export interface AdminGetUsersActivityRequest {
|
|
|
43
43
|
xUserId: string;
|
|
44
44
|
adminUsersActivityRequest: AdminUsersActivityRequest;
|
|
45
45
|
}
|
|
46
|
+
export interface AdminGetUsersActivityTotalsRequest {
|
|
47
|
+
xUserId: string;
|
|
48
|
+
adminUsersActivityTotalsRequest: AdminUsersActivityTotalsRequest;
|
|
49
|
+
}
|
|
46
50
|
export interface AdminListActiveStreaksRequest {
|
|
47
51
|
xUserId: string;
|
|
48
52
|
limit?: number;
|
|
@@ -187,6 +191,16 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
187
191
|
* Get per-day activity for a batch of users
|
|
188
192
|
*/
|
|
189
193
|
adminGetUsersActivity(requestParameters: AdminGetUsersActivityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AdminUserActivity>>;
|
|
194
|
+
/**
|
|
195
|
+
* Returns, for each known external user id, all-time counts of messages sent (in a regular or level-up chat, the same definition the per-day activity endpoint uses), quiz questions answered (daily quiz included), and flashcards viewed (the per-card view counter summed over the flashcard sets the user owns). Unknown external ids are omitted from the response.
|
|
196
|
+
* Get lifetime activity totals for a batch of users
|
|
197
|
+
*/
|
|
198
|
+
adminGetUsersActivityTotalsRaw(requestParameters: AdminGetUsersActivityTotalsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AdminUserActivityTotals>>>;
|
|
199
|
+
/**
|
|
200
|
+
* Returns, for each known external user id, all-time counts of messages sent (in a regular or level-up chat, the same definition the per-day activity endpoint uses), quiz questions answered (daily quiz included), and flashcards viewed (the per-card view counter summed over the flashcard sets the user owns). Unknown external ids are omitted from the response.
|
|
201
|
+
* Get lifetime activity totals for a batch of users
|
|
202
|
+
*/
|
|
203
|
+
adminGetUsersActivityTotals(requestParameters: AdminGetUsersActivityTotalsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AdminUserActivityTotals>>;
|
|
190
204
|
/**
|
|
191
205
|
* List all active streaks (currentDays > 0) across the account, paginated
|
|
192
206
|
*/
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -352,6 +352,48 @@ class AdminApi extends runtime.BaseAPI {
|
|
|
352
352
|
return yield response.value();
|
|
353
353
|
});
|
|
354
354
|
}
|
|
355
|
+
/**
|
|
356
|
+
* Returns, for each known external user id, all-time counts of messages sent (in a regular or level-up chat, the same definition the per-day activity endpoint uses), quiz questions answered (daily quiz included), and flashcards viewed (the per-card view counter summed over the flashcard sets the user owns). Unknown external ids are omitted from the response.
|
|
357
|
+
* Get lifetime activity totals for a batch of users
|
|
358
|
+
*/
|
|
359
|
+
adminGetUsersActivityTotalsRaw(requestParameters, initOverrides) {
|
|
360
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
361
|
+
if (requestParameters['xUserId'] == null) {
|
|
362
|
+
throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling adminGetUsersActivityTotals().');
|
|
363
|
+
}
|
|
364
|
+
if (requestParameters['adminUsersActivityTotalsRequest'] == null) {
|
|
365
|
+
throw new runtime.RequiredError('adminUsersActivityTotalsRequest', 'Required parameter "adminUsersActivityTotalsRequest" was null or undefined when calling adminGetUsersActivityTotals().');
|
|
366
|
+
}
|
|
367
|
+
const queryParameters = {};
|
|
368
|
+
const headerParameters = {};
|
|
369
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
370
|
+
if (requestParameters['xUserId'] != null) {
|
|
371
|
+
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
372
|
+
}
|
|
373
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
374
|
+
headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
|
|
375
|
+
}
|
|
376
|
+
let urlPath = `/api/v1/admin/users/activity-totals`;
|
|
377
|
+
const response = yield this.request({
|
|
378
|
+
path: urlPath,
|
|
379
|
+
method: 'POST',
|
|
380
|
+
headers: headerParameters,
|
|
381
|
+
query: queryParameters,
|
|
382
|
+
body: (0, index_1.AdminUsersActivityTotalsRequestToJSON)(requestParameters['adminUsersActivityTotalsRequest']),
|
|
383
|
+
}, initOverrides);
|
|
384
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.AdminUserActivityTotalsFromJSON));
|
|
385
|
+
});
|
|
386
|
+
}
|
|
387
|
+
/**
|
|
388
|
+
* Returns, for each known external user id, all-time counts of messages sent (in a regular or level-up chat, the same definition the per-day activity endpoint uses), quiz questions answered (daily quiz included), and flashcards viewed (the per-card view counter summed over the flashcard sets the user owns). Unknown external ids are omitted from the response.
|
|
389
|
+
* Get lifetime activity totals for a batch of users
|
|
390
|
+
*/
|
|
391
|
+
adminGetUsersActivityTotals(requestParameters, initOverrides) {
|
|
392
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
393
|
+
const response = yield this.adminGetUsersActivityTotalsRaw(requestParameters, initOverrides);
|
|
394
|
+
return yield response.value();
|
|
395
|
+
});
|
|
396
|
+
}
|
|
355
397
|
/**
|
|
356
398
|
* List all active streaks (currentDays > 0) across the account, paginated
|
|
357
399
|
*/
|
|
@@ -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, AdminPaginatedLastExchanges, AdminPaginatedQuizSessions, AdminPaginatedStudyObjectiveUserCounts, AdminPaginatedStudyObjectives, AdminPaginatedTaxonomyEnrollments, AdminResetLearningDataResponse, AdminStreak, AdminStudyObjectiveSummary, AdminTriggerAnalysisResponse, AdminUpdateChatRequest, AdminUserActivity, AdminUserEngagement, AdminUsersActivityRequest, QuizSessionSummary } from '../models/index';
|
|
13
|
+
import type { AdminChat, AdminChatAnalysis, AdminChatWithStats, AdminCohortStats, AdminPaginatedActiveStreaks, AdminPaginatedChats, AdminPaginatedLastExchanges, AdminPaginatedQuizSessions, AdminPaginatedStudyObjectiveUserCounts, AdminPaginatedStudyObjectives, AdminPaginatedTaxonomyEnrollments, AdminResetLearningDataResponse, AdminStreak, AdminStudyObjectiveSummary, AdminTriggerAnalysisResponse, AdminUpdateChatRequest, AdminUserActivity, AdminUserActivityTotals, AdminUserEngagement, AdminUsersActivityRequest, AdminUsersActivityTotalsRequest, QuizSessionSummary } from '../models/index';
|
|
14
14
|
export interface AdminGetChatRequest {
|
|
15
15
|
xUserId: string;
|
|
16
16
|
chatId: string;
|
|
@@ -43,6 +43,10 @@ export interface AdminGetUsersActivityRequest {
|
|
|
43
43
|
xUserId: string;
|
|
44
44
|
adminUsersActivityRequest: AdminUsersActivityRequest;
|
|
45
45
|
}
|
|
46
|
+
export interface AdminGetUsersActivityTotalsRequest {
|
|
47
|
+
xUserId: string;
|
|
48
|
+
adminUsersActivityTotalsRequest: AdminUsersActivityTotalsRequest;
|
|
49
|
+
}
|
|
46
50
|
export interface AdminListActiveStreaksRequest {
|
|
47
51
|
xUserId: string;
|
|
48
52
|
limit?: number;
|
|
@@ -187,6 +191,16 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
187
191
|
* Get per-day activity for a batch of users
|
|
188
192
|
*/
|
|
189
193
|
adminGetUsersActivity(requestParameters: AdminGetUsersActivityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AdminUserActivity>>;
|
|
194
|
+
/**
|
|
195
|
+
* Returns, for each known external user id, all-time counts of messages sent (in a regular or level-up chat, the same definition the per-day activity endpoint uses), quiz questions answered (daily quiz included), and flashcards viewed (the per-card view counter summed over the flashcard sets the user owns). Unknown external ids are omitted from the response.
|
|
196
|
+
* Get lifetime activity totals for a batch of users
|
|
197
|
+
*/
|
|
198
|
+
adminGetUsersActivityTotalsRaw(requestParameters: AdminGetUsersActivityTotalsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AdminUserActivityTotals>>>;
|
|
199
|
+
/**
|
|
200
|
+
* Returns, for each known external user id, all-time counts of messages sent (in a regular or level-up chat, the same definition the per-day activity endpoint uses), quiz questions answered (daily quiz included), and flashcards viewed (the per-card view counter summed over the flashcard sets the user owns). Unknown external ids are omitted from the response.
|
|
201
|
+
* Get lifetime activity totals for a batch of users
|
|
202
|
+
*/
|
|
203
|
+
adminGetUsersActivityTotals(requestParameters: AdminGetUsersActivityTotalsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AdminUserActivityTotals>>;
|
|
190
204
|
/**
|
|
191
205
|
* List all active streaks (currentDays > 0) across the account, paginated
|
|
192
206
|
*/
|
|
@@ -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, AdminPaginatedLastExchangesFromJSON, AdminPaginatedQuizSessionsFromJSON, AdminPaginatedStudyObjectiveUserCountsFromJSON, AdminPaginatedStudyObjectivesFromJSON, AdminPaginatedTaxonomyEnrollmentsFromJSON, AdminResetLearningDataResponseFromJSON, AdminStreakFromJSON, AdminStudyObjectiveSummaryFromJSON, AdminTriggerAnalysisResponseFromJSON, AdminUpdateChatRequestToJSON, AdminUserActivityFromJSON, AdminUserEngagementFromJSON, AdminUsersActivityRequestToJSON, QuizSessionSummaryFromJSON, } from '../models/index';
|
|
24
|
+
import { AdminChatFromJSON, AdminChatAnalysisFromJSON, AdminChatWithStatsFromJSON, AdminCohortStatsFromJSON, AdminPaginatedActiveStreaksFromJSON, AdminPaginatedChatsFromJSON, AdminPaginatedLastExchangesFromJSON, AdminPaginatedQuizSessionsFromJSON, AdminPaginatedStudyObjectiveUserCountsFromJSON, AdminPaginatedStudyObjectivesFromJSON, AdminPaginatedTaxonomyEnrollmentsFromJSON, AdminResetLearningDataResponseFromJSON, AdminStreakFromJSON, AdminStudyObjectiveSummaryFromJSON, AdminTriggerAnalysisResponseFromJSON, AdminUpdateChatRequestToJSON, AdminUserActivityFromJSON, AdminUserActivityTotalsFromJSON, AdminUserEngagementFromJSON, AdminUsersActivityRequestToJSON, AdminUsersActivityTotalsRequestToJSON, QuizSessionSummaryFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -349,6 +349,48 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
349
349
|
return yield response.value();
|
|
350
350
|
});
|
|
351
351
|
}
|
|
352
|
+
/**
|
|
353
|
+
* Returns, for each known external user id, all-time counts of messages sent (in a regular or level-up chat, the same definition the per-day activity endpoint uses), quiz questions answered (daily quiz included), and flashcards viewed (the per-card view counter summed over the flashcard sets the user owns). Unknown external ids are omitted from the response.
|
|
354
|
+
* Get lifetime activity totals for a batch of users
|
|
355
|
+
*/
|
|
356
|
+
adminGetUsersActivityTotalsRaw(requestParameters, initOverrides) {
|
|
357
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
358
|
+
if (requestParameters['xUserId'] == null) {
|
|
359
|
+
throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling adminGetUsersActivityTotals().');
|
|
360
|
+
}
|
|
361
|
+
if (requestParameters['adminUsersActivityTotalsRequest'] == null) {
|
|
362
|
+
throw new runtime.RequiredError('adminUsersActivityTotalsRequest', 'Required parameter "adminUsersActivityTotalsRequest" was null or undefined when calling adminGetUsersActivityTotals().');
|
|
363
|
+
}
|
|
364
|
+
const queryParameters = {};
|
|
365
|
+
const headerParameters = {};
|
|
366
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
367
|
+
if (requestParameters['xUserId'] != null) {
|
|
368
|
+
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
369
|
+
}
|
|
370
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
371
|
+
headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
|
|
372
|
+
}
|
|
373
|
+
let urlPath = `/api/v1/admin/users/activity-totals`;
|
|
374
|
+
const response = yield this.request({
|
|
375
|
+
path: urlPath,
|
|
376
|
+
method: 'POST',
|
|
377
|
+
headers: headerParameters,
|
|
378
|
+
query: queryParameters,
|
|
379
|
+
body: AdminUsersActivityTotalsRequestToJSON(requestParameters['adminUsersActivityTotalsRequest']),
|
|
380
|
+
}, initOverrides);
|
|
381
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AdminUserActivityTotalsFromJSON));
|
|
382
|
+
});
|
|
383
|
+
}
|
|
384
|
+
/**
|
|
385
|
+
* Returns, for each known external user id, all-time counts of messages sent (in a regular or level-up chat, the same definition the per-day activity endpoint uses), quiz questions answered (daily quiz included), and flashcards viewed (the per-card view counter summed over the flashcard sets the user owns). Unknown external ids are omitted from the response.
|
|
386
|
+
* Get lifetime activity totals for a batch of users
|
|
387
|
+
*/
|
|
388
|
+
adminGetUsersActivityTotals(requestParameters, initOverrides) {
|
|
389
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
390
|
+
const response = yield this.adminGetUsersActivityTotalsRaw(requestParameters, initOverrides);
|
|
391
|
+
return yield response.value();
|
|
392
|
+
});
|
|
393
|
+
}
|
|
352
394
|
/**
|
|
353
395
|
* List all active streaks (currentDays > 0) across the account, paginated
|
|
354
396
|
*/
|
|
@@ -0,0 +1,50 @@
|
|
|
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 AdminUserActivityTotals
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminUserActivityTotals {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AdminUserActivityTotals
|
|
22
|
+
*/
|
|
23
|
+
externalId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Messages the user sent in regular or level-up chats, all time
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof AdminUserActivityTotals
|
|
28
|
+
*/
|
|
29
|
+
messagesSent: number;
|
|
30
|
+
/**
|
|
31
|
+
* Quiz questions the user answered, all time (daily quiz included)
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof AdminUserActivityTotals
|
|
34
|
+
*/
|
|
35
|
+
quizQuestionsAnswered: number;
|
|
36
|
+
/**
|
|
37
|
+
* Card views recorded across the flashcard sets the user owns, all time
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof AdminUserActivityTotals
|
|
40
|
+
*/
|
|
41
|
+
flashcardsViewed: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the AdminUserActivityTotals interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfAdminUserActivityTotals(value: object): value is AdminUserActivityTotals;
|
|
47
|
+
export declare function AdminUserActivityTotalsFromJSON(json: any): AdminUserActivityTotals;
|
|
48
|
+
export declare function AdminUserActivityTotalsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminUserActivityTotals;
|
|
49
|
+
export declare function AdminUserActivityTotalsToJSON(json: any): AdminUserActivityTotals;
|
|
50
|
+
export declare function AdminUserActivityTotalsToJSONTyped(value?: AdminUserActivityTotals | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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 AdminUserActivityTotals interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfAdminUserActivityTotals(value) {
|
|
18
|
+
if (!('externalId' in value) || value['externalId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('messagesSent' in value) || value['messagesSent'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('quizQuestionsAnswered' in value) || value['quizQuestionsAnswered'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('flashcardsViewed' in value) || value['flashcardsViewed'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function AdminUserActivityTotalsFromJSON(json) {
|
|
29
|
+
return AdminUserActivityTotalsFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function AdminUserActivityTotalsFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'externalId': json['externalId'],
|
|
37
|
+
'messagesSent': json['messagesSent'],
|
|
38
|
+
'quizQuestionsAnswered': json['quizQuestionsAnswered'],
|
|
39
|
+
'flashcardsViewed': json['flashcardsViewed'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function AdminUserActivityTotalsToJSON(json) {
|
|
43
|
+
return AdminUserActivityTotalsToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function AdminUserActivityTotalsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'externalId': value['externalId'],
|
|
51
|
+
'messagesSent': value['messagesSent'],
|
|
52
|
+
'quizQuestionsAnswered': value['quizQuestionsAnswered'],
|
|
53
|
+
'flashcardsViewed': value['flashcardsViewed'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 AdminUsersActivityTotalsRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminUsersActivityTotalsRequest {
|
|
18
|
+
/**
|
|
19
|
+
* External user identifiers to fetch activity for
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof AdminUsersActivityTotalsRequest
|
|
22
|
+
*/
|
|
23
|
+
externalIds: Array<string>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AdminUsersActivityTotalsRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfAdminUsersActivityTotalsRequest(value: object): value is AdminUsersActivityTotalsRequest;
|
|
29
|
+
export declare function AdminUsersActivityTotalsRequestFromJSON(json: any): AdminUsersActivityTotalsRequest;
|
|
30
|
+
export declare function AdminUsersActivityTotalsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminUsersActivityTotalsRequest;
|
|
31
|
+
export declare function AdminUsersActivityTotalsRequestToJSON(json: any): AdminUsersActivityTotalsRequest;
|
|
32
|
+
export declare function AdminUsersActivityTotalsRequestToJSONTyped(value?: AdminUsersActivityTotalsRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
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 AdminUsersActivityTotalsRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfAdminUsersActivityTotalsRequest(value) {
|
|
18
|
+
if (!('externalIds' in value) || value['externalIds'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function AdminUsersActivityTotalsRequestFromJSON(json) {
|
|
23
|
+
return AdminUsersActivityTotalsRequestFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function AdminUsersActivityTotalsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'externalIds': json['externalIds'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function AdminUsersActivityTotalsRequestToJSON(json) {
|
|
34
|
+
return AdminUsersActivityTotalsRequestToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function AdminUsersActivityTotalsRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'externalIds': value['externalIds'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -29,8 +29,10 @@ export * from './AdminTriggerAnalysisResponse';
|
|
|
29
29
|
export * from './AdminUpdateChatRequest';
|
|
30
30
|
export * from './AdminUserActivity';
|
|
31
31
|
export * from './AdminUserActivityDay';
|
|
32
|
+
export * from './AdminUserActivityTotals';
|
|
32
33
|
export * from './AdminUserEngagement';
|
|
33
34
|
export * from './AdminUsersActivityRequest';
|
|
35
|
+
export * from './AdminUsersActivityTotalsRequest';
|
|
34
36
|
export * from './AssociateUserFileRequest';
|
|
35
37
|
export * from './CanvasCourseAccess';
|
|
36
38
|
export * from './CanvasDomainMatch';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -31,8 +31,10 @@ export * from './AdminTriggerAnalysisResponse';
|
|
|
31
31
|
export * from './AdminUpdateChatRequest';
|
|
32
32
|
export * from './AdminUserActivity';
|
|
33
33
|
export * from './AdminUserActivityDay';
|
|
34
|
+
export * from './AdminUserActivityTotals';
|
|
34
35
|
export * from './AdminUserEngagement';
|
|
35
36
|
export * from './AdminUsersActivityRequest';
|
|
37
|
+
export * from './AdminUsersActivityTotalsRequest';
|
|
36
38
|
export * from './AssociateUserFileRequest';
|
|
37
39
|
export * from './CanvasCourseAccess';
|
|
38
40
|
export * from './CanvasDomainMatch';
|
|
@@ -0,0 +1,50 @@
|
|
|
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 AdminUserActivityTotals
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminUserActivityTotals {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AdminUserActivityTotals
|
|
22
|
+
*/
|
|
23
|
+
externalId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Messages the user sent in regular or level-up chats, all time
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof AdminUserActivityTotals
|
|
28
|
+
*/
|
|
29
|
+
messagesSent: number;
|
|
30
|
+
/**
|
|
31
|
+
* Quiz questions the user answered, all time (daily quiz included)
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof AdminUserActivityTotals
|
|
34
|
+
*/
|
|
35
|
+
quizQuestionsAnswered: number;
|
|
36
|
+
/**
|
|
37
|
+
* Card views recorded across the flashcard sets the user owns, all time
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof AdminUserActivityTotals
|
|
40
|
+
*/
|
|
41
|
+
flashcardsViewed: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the AdminUserActivityTotals interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfAdminUserActivityTotals(value: object): value is AdminUserActivityTotals;
|
|
47
|
+
export declare function AdminUserActivityTotalsFromJSON(json: any): AdminUserActivityTotals;
|
|
48
|
+
export declare function AdminUserActivityTotalsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminUserActivityTotals;
|
|
49
|
+
export declare function AdminUserActivityTotalsToJSON(json: any): AdminUserActivityTotals;
|
|
50
|
+
export declare function AdminUserActivityTotalsToJSONTyped(value?: AdminUserActivityTotals | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.instanceOfAdminUserActivityTotals = instanceOfAdminUserActivityTotals;
|
|
17
|
+
exports.AdminUserActivityTotalsFromJSON = AdminUserActivityTotalsFromJSON;
|
|
18
|
+
exports.AdminUserActivityTotalsFromJSONTyped = AdminUserActivityTotalsFromJSONTyped;
|
|
19
|
+
exports.AdminUserActivityTotalsToJSON = AdminUserActivityTotalsToJSON;
|
|
20
|
+
exports.AdminUserActivityTotalsToJSONTyped = AdminUserActivityTotalsToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AdminUserActivityTotals interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAdminUserActivityTotals(value) {
|
|
25
|
+
if (!('externalId' in value) || value['externalId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('messagesSent' in value) || value['messagesSent'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('quizQuestionsAnswered' in value) || value['quizQuestionsAnswered'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('flashcardsViewed' in value) || value['flashcardsViewed'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function AdminUserActivityTotalsFromJSON(json) {
|
|
36
|
+
return AdminUserActivityTotalsFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function AdminUserActivityTotalsFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'externalId': json['externalId'],
|
|
44
|
+
'messagesSent': json['messagesSent'],
|
|
45
|
+
'quizQuestionsAnswered': json['quizQuestionsAnswered'],
|
|
46
|
+
'flashcardsViewed': json['flashcardsViewed'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function AdminUserActivityTotalsToJSON(json) {
|
|
50
|
+
return AdminUserActivityTotalsToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function AdminUserActivityTotalsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'externalId': value['externalId'],
|
|
58
|
+
'messagesSent': value['messagesSent'],
|
|
59
|
+
'quizQuestionsAnswered': value['quizQuestionsAnswered'],
|
|
60
|
+
'flashcardsViewed': value['flashcardsViewed'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 AdminUsersActivityTotalsRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminUsersActivityTotalsRequest {
|
|
18
|
+
/**
|
|
19
|
+
* External user identifiers to fetch activity for
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof AdminUsersActivityTotalsRequest
|
|
22
|
+
*/
|
|
23
|
+
externalIds: Array<string>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AdminUsersActivityTotalsRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfAdminUsersActivityTotalsRequest(value: object): value is AdminUsersActivityTotalsRequest;
|
|
29
|
+
export declare function AdminUsersActivityTotalsRequestFromJSON(json: any): AdminUsersActivityTotalsRequest;
|
|
30
|
+
export declare function AdminUsersActivityTotalsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminUsersActivityTotalsRequest;
|
|
31
|
+
export declare function AdminUsersActivityTotalsRequestToJSON(json: any): AdminUsersActivityTotalsRequest;
|
|
32
|
+
export declare function AdminUsersActivityTotalsRequestToJSONTyped(value?: AdminUsersActivityTotalsRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfAdminUsersActivityTotalsRequest = instanceOfAdminUsersActivityTotalsRequest;
|
|
17
|
+
exports.AdminUsersActivityTotalsRequestFromJSON = AdminUsersActivityTotalsRequestFromJSON;
|
|
18
|
+
exports.AdminUsersActivityTotalsRequestFromJSONTyped = AdminUsersActivityTotalsRequestFromJSONTyped;
|
|
19
|
+
exports.AdminUsersActivityTotalsRequestToJSON = AdminUsersActivityTotalsRequestToJSON;
|
|
20
|
+
exports.AdminUsersActivityTotalsRequestToJSONTyped = AdminUsersActivityTotalsRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AdminUsersActivityTotalsRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAdminUsersActivityTotalsRequest(value) {
|
|
25
|
+
if (!('externalIds' in value) || value['externalIds'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function AdminUsersActivityTotalsRequestFromJSON(json) {
|
|
30
|
+
return AdminUsersActivityTotalsRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function AdminUsersActivityTotalsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'externalIds': json['externalIds'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function AdminUsersActivityTotalsRequestToJSON(json) {
|
|
41
|
+
return AdminUsersActivityTotalsRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AdminUsersActivityTotalsRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'externalIds': value['externalIds'],
|
|
49
|
+
};
|
|
50
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -29,8 +29,10 @@ export * from './AdminTriggerAnalysisResponse';
|
|
|
29
29
|
export * from './AdminUpdateChatRequest';
|
|
30
30
|
export * from './AdminUserActivity';
|
|
31
31
|
export * from './AdminUserActivityDay';
|
|
32
|
+
export * from './AdminUserActivityTotals';
|
|
32
33
|
export * from './AdminUserEngagement';
|
|
33
34
|
export * from './AdminUsersActivityRequest';
|
|
35
|
+
export * from './AdminUsersActivityTotalsRequest';
|
|
34
36
|
export * from './AssociateUserFileRequest';
|
|
35
37
|
export * from './CanvasCourseAccess';
|
|
36
38
|
export * from './CanvasDomainMatch';
|
package/dist/models/index.js
CHANGED
|
@@ -47,8 +47,10 @@ __exportStar(require("./AdminTriggerAnalysisResponse"), exports);
|
|
|
47
47
|
__exportStar(require("./AdminUpdateChatRequest"), exports);
|
|
48
48
|
__exportStar(require("./AdminUserActivity"), exports);
|
|
49
49
|
__exportStar(require("./AdminUserActivityDay"), exports);
|
|
50
|
+
__exportStar(require("./AdminUserActivityTotals"), exports);
|
|
50
51
|
__exportStar(require("./AdminUserEngagement"), exports);
|
|
51
52
|
__exportStar(require("./AdminUsersActivityRequest"), exports);
|
|
53
|
+
__exportStar(require("./AdminUsersActivityTotalsRequest"), exports);
|
|
52
54
|
__exportStar(require("./AssociateUserFileRequest"), exports);
|
|
53
55
|
__exportStar(require("./CanvasCourseAccess"), exports);
|
|
54
56
|
__exportStar(require("./CanvasDomainMatch"), exports);
|