@instructure/athena-api-client 3.38.3 → 3.38.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 +18 -0
- package/dist/apis/AdminApi.d.ts +13 -1
- package/dist/apis/AdminApi.js +39 -0
- package/dist/esm/apis/AdminApi.d.ts +13 -1
- package/dist/esm/apis/AdminApi.js +40 -1
- package/dist/esm/models/AdminCanvasCall.d.ts +134 -0
- package/dist/esm/models/AdminCanvasCall.js +117 -0
- package/dist/esm/models/AdminCanvasCourse.d.ts +59 -0
- package/dist/esm/models/AdminCanvasCourse.js +60 -0
- package/dist/esm/models/AdminCanvasFile.d.ts +156 -0
- package/dist/esm/models/AdminCanvasFile.js +128 -0
- package/dist/esm/models/AdminCanvasFileAnalysis.d.ts +50 -0
- package/dist/esm/models/AdminCanvasFileAnalysis.js +55 -0
- package/dist/esm/models/AdminCanvasFileInContext.d.ts +44 -0
- package/dist/esm/models/AdminCanvasFileInContext.js +51 -0
- package/dist/esm/models/AdminCanvasFileModuleRef.d.ts +44 -0
- package/dist/esm/models/AdminCanvasFileModuleRef.js +51 -0
- package/dist/esm/models/AdminCanvasItem.d.ts +83 -0
- package/dist/esm/models/AdminCanvasItem.js +79 -0
- package/dist/esm/models/AdminCanvasItemId.d.ts +21 -0
- package/dist/esm/models/AdminCanvasItemId.js +43 -0
- package/dist/esm/models/AdminCanvasModule.d.ts +90 -0
- package/dist/esm/models/AdminCanvasModule.js +81 -0
- package/dist/esm/models/AdminCanvasModuleItem.d.ts +70 -0
- package/dist/esm/models/AdminCanvasModuleItem.js +67 -0
- package/dist/esm/models/AdminCanvasUsageFirstSeen.d.ts +44 -0
- package/dist/esm/models/AdminCanvasUsageFirstSeen.js +51 -0
- package/dist/esm/models/AdminCanvasUsageSummary.d.ts +74 -0
- package/dist/esm/models/AdminCanvasUsageSummary.js +71 -0
- package/dist/esm/models/AdminChatCanvasUsage.d.ts +81 -0
- package/dist/esm/models/AdminChatCanvasUsage.js +78 -0
- package/dist/esm/models/AdminQuizGeneration.d.ts +104 -0
- package/dist/esm/models/AdminQuizGeneration.js +94 -0
- package/dist/esm/models/AdminQuizGenerationInput.d.ts +64 -0
- package/dist/esm/models/AdminQuizGenerationInput.js +66 -0
- package/dist/esm/models/AdminQuizSourceFile.d.ts +83 -0
- package/dist/esm/models/AdminQuizSourceFile.js +82 -0
- package/dist/esm/models/AdminQuizSourceMaterial.d.ts +45 -0
- package/dist/esm/models/AdminQuizSourceMaterial.js +52 -0
- package/dist/esm/models/index.d.ts +17 -0
- package/dist/esm/models/index.js +17 -0
- package/dist/models/AdminCanvasCall.d.ts +134 -0
- package/dist/models/AdminCanvasCall.js +125 -0
- package/dist/models/AdminCanvasCourse.d.ts +59 -0
- package/dist/models/AdminCanvasCourse.js +67 -0
- package/dist/models/AdminCanvasFile.d.ts +156 -0
- package/dist/models/AdminCanvasFile.js +136 -0
- package/dist/models/AdminCanvasFileAnalysis.d.ts +50 -0
- package/dist/models/AdminCanvasFileAnalysis.js +62 -0
- package/dist/models/AdminCanvasFileInContext.d.ts +44 -0
- package/dist/models/AdminCanvasFileInContext.js +58 -0
- package/dist/models/AdminCanvasFileModuleRef.d.ts +44 -0
- package/dist/models/AdminCanvasFileModuleRef.js +58 -0
- package/dist/models/AdminCanvasItem.d.ts +83 -0
- package/dist/models/AdminCanvasItem.js +87 -0
- package/dist/models/AdminCanvasItemId.d.ts +21 -0
- package/dist/models/AdminCanvasItemId.js +49 -0
- package/dist/models/AdminCanvasModule.d.ts +90 -0
- package/dist/models/AdminCanvasModule.js +88 -0
- package/dist/models/AdminCanvasModuleItem.d.ts +70 -0
- package/dist/models/AdminCanvasModuleItem.js +74 -0
- package/dist/models/AdminCanvasUsageFirstSeen.d.ts +44 -0
- package/dist/models/AdminCanvasUsageFirstSeen.js +58 -0
- package/dist/models/AdminCanvasUsageSummary.d.ts +74 -0
- package/dist/models/AdminCanvasUsageSummary.js +78 -0
- package/dist/models/AdminChatCanvasUsage.d.ts +81 -0
- package/dist/models/AdminChatCanvasUsage.js +85 -0
- package/dist/models/AdminQuizGeneration.d.ts +104 -0
- package/dist/models/AdminQuizGeneration.js +102 -0
- package/dist/models/AdminQuizGenerationInput.d.ts +64 -0
- package/dist/models/AdminQuizGenerationInput.js +74 -0
- package/dist/models/AdminQuizSourceFile.d.ts +83 -0
- package/dist/models/AdminQuizSourceFile.js +90 -0
- package/dist/models/AdminQuizSourceMaterial.d.ts +45 -0
- package/dist/models/AdminQuizSourceMaterial.js +59 -0
- package/dist/models/index.d.ts +17 -0
- package/dist/models/index.js +17 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -59,6 +59,7 @@ All URIs are relative to *http://localhost:3000*
|
|
|
59
59
|
*AccountsApi* | [**updateAccount**](docs/AccountsApi.md#updateaccount) | **PATCH** /api/v1/accounts/{id} | Update an account
|
|
60
60
|
*AdminApi* | [**adminGetChat**](docs/AdminApi.md#admingetchat) | **GET** /api/v1/admin/chats/{chatId} | Get any chat by ID within the account
|
|
61
61
|
*AdminApi* | [**adminGetChatAnalysis**](docs/AdminApi.md#admingetchatanalysis) | **GET** /api/v1/admin/chats/{chatId}/analysis | Get chat analysis for any chat within the account
|
|
62
|
+
*AdminApi* | [**adminGetChatCanvasUsage**](docs/AdminApi.md#admingetchatcanvasusage) | **GET** /api/v1/admin/chats/{chatId}/canvas-usage | Get the Canvas courses, modules, files, and items a chat read, and the files in play for each quiz generation
|
|
62
63
|
*AdminApi* | [**adminGetCohortStats**](docs/AdminApi.md#admingetcohortstats) | **GET** /api/v1/admin/cohort-stats | Get cohort statistics for users created within a date range
|
|
63
64
|
*AdminApi* | [**adminGetQuizSessionSummary**](docs/AdminApi.md#admingetquizsessionsummary) | **GET** /api/v1/admin/quiz-sessions/{sessionId}/summary | Get quiz session summary for any session within the account
|
|
64
65
|
*AdminApi* | [**adminGetStudyObjectiveSummary**](docs/AdminApi.md#admingetstudyobjectivesummary) | **GET** /api/v1/admin/study-objectives/summary | Aggregate study-objective statistics across all account users
|
|
@@ -188,8 +189,21 @@ All URIs are relative to *http://localhost:3000*
|
|
|
188
189
|
|
|
189
190
|
- [Account](docs/Account.md)
|
|
190
191
|
- [AdminActiveStreak](docs/AdminActiveStreak.md)
|
|
192
|
+
- [AdminCanvasCall](docs/AdminCanvasCall.md)
|
|
193
|
+
- [AdminCanvasCourse](docs/AdminCanvasCourse.md)
|
|
194
|
+
- [AdminCanvasFile](docs/AdminCanvasFile.md)
|
|
195
|
+
- [AdminCanvasFileAnalysis](docs/AdminCanvasFileAnalysis.md)
|
|
196
|
+
- [AdminCanvasFileInContext](docs/AdminCanvasFileInContext.md)
|
|
197
|
+
- [AdminCanvasFileModuleRef](docs/AdminCanvasFileModuleRef.md)
|
|
198
|
+
- [AdminCanvasItem](docs/AdminCanvasItem.md)
|
|
199
|
+
- [AdminCanvasItemId](docs/AdminCanvasItemId.md)
|
|
200
|
+
- [AdminCanvasModule](docs/AdminCanvasModule.md)
|
|
201
|
+
- [AdminCanvasModuleItem](docs/AdminCanvasModuleItem.md)
|
|
202
|
+
- [AdminCanvasUsageFirstSeen](docs/AdminCanvasUsageFirstSeen.md)
|
|
203
|
+
- [AdminCanvasUsageSummary](docs/AdminCanvasUsageSummary.md)
|
|
191
204
|
- [AdminChat](docs/AdminChat.md)
|
|
192
205
|
- [AdminChatAnalysis](docs/AdminChatAnalysis.md)
|
|
206
|
+
- [AdminChatCanvasUsage](docs/AdminChatCanvasUsage.md)
|
|
193
207
|
- [AdminChatWithStats](docs/AdminChatWithStats.md)
|
|
194
208
|
- [AdminCohortStats](docs/AdminCohortStats.md)
|
|
195
209
|
- [AdminExchangeChat](docs/AdminExchangeChat.md)
|
|
@@ -202,8 +216,12 @@ All URIs are relative to *http://localhost:3000*
|
|
|
202
216
|
- [AdminPaginatedStudyObjectiveUserCounts](docs/AdminPaginatedStudyObjectiveUserCounts.md)
|
|
203
217
|
- [AdminPaginatedStudyObjectives](docs/AdminPaginatedStudyObjectives.md)
|
|
204
218
|
- [AdminPaginatedTaxonomyEnrollments](docs/AdminPaginatedTaxonomyEnrollments.md)
|
|
219
|
+
- [AdminQuizGeneration](docs/AdminQuizGeneration.md)
|
|
220
|
+
- [AdminQuizGenerationInput](docs/AdminQuizGenerationInput.md)
|
|
205
221
|
- [AdminQuizSessionListItem](docs/AdminQuizSessionListItem.md)
|
|
206
222
|
- [AdminQuizSessionScore](docs/AdminQuizSessionScore.md)
|
|
223
|
+
- [AdminQuizSourceFile](docs/AdminQuizSourceFile.md)
|
|
224
|
+
- [AdminQuizSourceMaterial](docs/AdminQuizSourceMaterial.md)
|
|
207
225
|
- [AdminResetLearningDataResponse](docs/AdminResetLearningDataResponse.md)
|
|
208
226
|
- [AdminStreak](docs/AdminStreak.md)
|
|
209
227
|
- [AdminStudyObjectiveCanvasTypeCount](docs/AdminStudyObjectiveCanvasTypeCount.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, AdminUserActivityTotals, AdminUserEngagement, AdminUsersActivityRequest, AdminUsersActivityTotalsRequest, QuizSessionSummary } from '../models/index';
|
|
13
|
+
import type { AdminChat, AdminChatAnalysis, AdminChatCanvasUsage, 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;
|
|
@@ -19,6 +19,10 @@ export interface AdminGetChatAnalysisRequest {
|
|
|
19
19
|
xUserId: string;
|
|
20
20
|
chatId: string;
|
|
21
21
|
}
|
|
22
|
+
export interface AdminGetChatCanvasUsageRequest {
|
|
23
|
+
xUserId: string;
|
|
24
|
+
chatId: string;
|
|
25
|
+
}
|
|
22
26
|
export interface AdminGetCohortStatsRequest {
|
|
23
27
|
xUserId: string;
|
|
24
28
|
since: Date;
|
|
@@ -137,6 +141,14 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
137
141
|
* Get chat analysis for any chat within the account
|
|
138
142
|
*/
|
|
139
143
|
adminGetChatAnalysis(requestParameters: AdminGetChatAnalysisRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminChatAnalysis>;
|
|
144
|
+
/**
|
|
145
|
+
* Get the Canvas courses, modules, files, and items a chat read, and the files in play for each quiz generation
|
|
146
|
+
*/
|
|
147
|
+
adminGetChatCanvasUsageRaw(requestParameters: AdminGetChatCanvasUsageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AdminChatCanvasUsage>>;
|
|
148
|
+
/**
|
|
149
|
+
* Get the Canvas courses, modules, files, and items a chat read, and the files in play for each quiz generation
|
|
150
|
+
*/
|
|
151
|
+
adminGetChatCanvasUsage(requestParameters: AdminGetChatCanvasUsageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminChatCanvasUsage>;
|
|
140
152
|
/**
|
|
141
153
|
* Get cohort statistics for users created within a date range
|
|
142
154
|
*/
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -107,6 +107,45 @@ class AdminApi extends runtime.BaseAPI {
|
|
|
107
107
|
return yield response.value();
|
|
108
108
|
});
|
|
109
109
|
}
|
|
110
|
+
/**
|
|
111
|
+
* Get the Canvas courses, modules, files, and items a chat read, and the files in play for each quiz generation
|
|
112
|
+
*/
|
|
113
|
+
adminGetChatCanvasUsageRaw(requestParameters, initOverrides) {
|
|
114
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
115
|
+
if (requestParameters['xUserId'] == null) {
|
|
116
|
+
throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling adminGetChatCanvasUsage().');
|
|
117
|
+
}
|
|
118
|
+
if (requestParameters['chatId'] == null) {
|
|
119
|
+
throw new runtime.RequiredError('chatId', 'Required parameter "chatId" was null or undefined when calling adminGetChatCanvasUsage().');
|
|
120
|
+
}
|
|
121
|
+
const queryParameters = {};
|
|
122
|
+
const headerParameters = {};
|
|
123
|
+
if (requestParameters['xUserId'] != null) {
|
|
124
|
+
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
125
|
+
}
|
|
126
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
127
|
+
headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
|
|
128
|
+
}
|
|
129
|
+
let urlPath = `/api/v1/admin/chats/{chatId}/canvas-usage`;
|
|
130
|
+
urlPath = urlPath.replace(`{${"chatId"}}`, encodeURIComponent(String(requestParameters['chatId'])));
|
|
131
|
+
const response = yield this.request({
|
|
132
|
+
path: urlPath,
|
|
133
|
+
method: 'GET',
|
|
134
|
+
headers: headerParameters,
|
|
135
|
+
query: queryParameters,
|
|
136
|
+
}, initOverrides);
|
|
137
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AdminChatCanvasUsageFromJSON)(jsonValue));
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Get the Canvas courses, modules, files, and items a chat read, and the files in play for each quiz generation
|
|
142
|
+
*/
|
|
143
|
+
adminGetChatCanvasUsage(requestParameters, initOverrides) {
|
|
144
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
145
|
+
const response = yield this.adminGetChatCanvasUsageRaw(requestParameters, initOverrides);
|
|
146
|
+
return yield response.value();
|
|
147
|
+
});
|
|
148
|
+
}
|
|
110
149
|
/**
|
|
111
150
|
* Get cohort statistics for users created within a date range
|
|
112
151
|
*/
|
|
@@ -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, AdminUserActivityTotals, AdminUserEngagement, AdminUsersActivityRequest, AdminUsersActivityTotalsRequest, QuizSessionSummary } from '../models/index';
|
|
13
|
+
import type { AdminChat, AdminChatAnalysis, AdminChatCanvasUsage, 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;
|
|
@@ -19,6 +19,10 @@ export interface AdminGetChatAnalysisRequest {
|
|
|
19
19
|
xUserId: string;
|
|
20
20
|
chatId: string;
|
|
21
21
|
}
|
|
22
|
+
export interface AdminGetChatCanvasUsageRequest {
|
|
23
|
+
xUserId: string;
|
|
24
|
+
chatId: string;
|
|
25
|
+
}
|
|
22
26
|
export interface AdminGetCohortStatsRequest {
|
|
23
27
|
xUserId: string;
|
|
24
28
|
since: Date;
|
|
@@ -137,6 +141,14 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
137
141
|
* Get chat analysis for any chat within the account
|
|
138
142
|
*/
|
|
139
143
|
adminGetChatAnalysis(requestParameters: AdminGetChatAnalysisRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminChatAnalysis>;
|
|
144
|
+
/**
|
|
145
|
+
* Get the Canvas courses, modules, files, and items a chat read, and the files in play for each quiz generation
|
|
146
|
+
*/
|
|
147
|
+
adminGetChatCanvasUsageRaw(requestParameters: AdminGetChatCanvasUsageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AdminChatCanvasUsage>>;
|
|
148
|
+
/**
|
|
149
|
+
* Get the Canvas courses, modules, files, and items a chat read, and the files in play for each quiz generation
|
|
150
|
+
*/
|
|
151
|
+
adminGetChatCanvasUsage(requestParameters: AdminGetChatCanvasUsageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminChatCanvasUsage>;
|
|
140
152
|
/**
|
|
141
153
|
* Get cohort statistics for users created within a date range
|
|
142
154
|
*/
|
|
@@ -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, AdminUserActivityTotalsFromJSON, AdminUserEngagementFromJSON, AdminUsersActivityRequestToJSON, AdminUsersActivityTotalsRequestToJSON, QuizSessionSummaryFromJSON, } from '../models/index';
|
|
24
|
+
import { AdminChatFromJSON, AdminChatAnalysisFromJSON, AdminChatCanvasUsageFromJSON, 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
|
*/
|
|
@@ -104,6 +104,45 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
104
104
|
return yield response.value();
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
|
+
/**
|
|
108
|
+
* Get the Canvas courses, modules, files, and items a chat read, and the files in play for each quiz generation
|
|
109
|
+
*/
|
|
110
|
+
adminGetChatCanvasUsageRaw(requestParameters, initOverrides) {
|
|
111
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
112
|
+
if (requestParameters['xUserId'] == null) {
|
|
113
|
+
throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling adminGetChatCanvasUsage().');
|
|
114
|
+
}
|
|
115
|
+
if (requestParameters['chatId'] == null) {
|
|
116
|
+
throw new runtime.RequiredError('chatId', 'Required parameter "chatId" was null or undefined when calling adminGetChatCanvasUsage().');
|
|
117
|
+
}
|
|
118
|
+
const queryParameters = {};
|
|
119
|
+
const headerParameters = {};
|
|
120
|
+
if (requestParameters['xUserId'] != null) {
|
|
121
|
+
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
122
|
+
}
|
|
123
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
124
|
+
headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
|
|
125
|
+
}
|
|
126
|
+
let urlPath = `/api/v1/admin/chats/{chatId}/canvas-usage`;
|
|
127
|
+
urlPath = urlPath.replace(`{${"chatId"}}`, encodeURIComponent(String(requestParameters['chatId'])));
|
|
128
|
+
const response = yield this.request({
|
|
129
|
+
path: urlPath,
|
|
130
|
+
method: 'GET',
|
|
131
|
+
headers: headerParameters,
|
|
132
|
+
query: queryParameters,
|
|
133
|
+
}, initOverrides);
|
|
134
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AdminChatCanvasUsageFromJSON(jsonValue));
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Get the Canvas courses, modules, files, and items a chat read, and the files in play for each quiz generation
|
|
139
|
+
*/
|
|
140
|
+
adminGetChatCanvasUsage(requestParameters, initOverrides) {
|
|
141
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
142
|
+
const response = yield this.adminGetChatCanvasUsageRaw(requestParameters, initOverrides);
|
|
143
|
+
return yield response.value();
|
|
144
|
+
});
|
|
145
|
+
}
|
|
107
146
|
/**
|
|
108
147
|
* Get cohort statistics for users created within a date range
|
|
109
148
|
*/
|
|
@@ -0,0 +1,134 @@
|
|
|
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 AdminCanvasCall
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminCanvasCall {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AdminCanvasCall
|
|
22
|
+
*/
|
|
23
|
+
messageId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof AdminCanvasCall
|
|
28
|
+
*/
|
|
29
|
+
messageCreatedAt: Date;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AdminCanvasCall
|
|
34
|
+
*/
|
|
35
|
+
toolCallId: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AdminCanvasCall
|
|
40
|
+
*/
|
|
41
|
+
path: string;
|
|
42
|
+
/**
|
|
43
|
+
* Query params the model passed with the request
|
|
44
|
+
* @type {{ [key: string]: any; }}
|
|
45
|
+
* @memberof AdminCanvasCall
|
|
46
|
+
*/
|
|
47
|
+
params: {
|
|
48
|
+
[key: string]: any;
|
|
49
|
+
} | null;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof AdminCanvasCall
|
|
54
|
+
*/
|
|
55
|
+
resourceKind: AdminCanvasCallResourceKindEnum;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {number}
|
|
59
|
+
* @memberof AdminCanvasCall
|
|
60
|
+
*/
|
|
61
|
+
courseId: number | null;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof AdminCanvasCall
|
|
66
|
+
*/
|
|
67
|
+
status: AdminCanvasCallStatusEnum;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {number}
|
|
71
|
+
* @memberof AdminCanvasCall
|
|
72
|
+
*/
|
|
73
|
+
httpStatus: number | null;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof AdminCanvasCall
|
|
78
|
+
*/
|
|
79
|
+
errorMessage: string | null;
|
|
80
|
+
/**
|
|
81
|
+
* The course Files index was refused and module file candidates were returned instead
|
|
82
|
+
* @type {boolean}
|
|
83
|
+
* @memberof AdminCanvasCall
|
|
84
|
+
*/
|
|
85
|
+
filesTabHiddenRecovery: boolean;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {boolean}
|
|
89
|
+
* @memberof AdminCanvasCall
|
|
90
|
+
*/
|
|
91
|
+
hasMore: boolean | null;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {number}
|
|
95
|
+
* @memberof AdminCanvasCall
|
|
96
|
+
*/
|
|
97
|
+
resultItemCount: number | null;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* @export
|
|
101
|
+
*/
|
|
102
|
+
export declare const AdminCanvasCallResourceKindEnum: {
|
|
103
|
+
readonly Courses: "courses";
|
|
104
|
+
readonly Course: "course";
|
|
105
|
+
readonly Modules: "modules";
|
|
106
|
+
readonly ModuleItems: "module-items";
|
|
107
|
+
readonly Files: "files";
|
|
108
|
+
readonly File: "file";
|
|
109
|
+
readonly Pages: "pages";
|
|
110
|
+
readonly Page: "page";
|
|
111
|
+
readonly Assignments: "assignments";
|
|
112
|
+
readonly Assignment: "assignment";
|
|
113
|
+
readonly Quizzes: "quizzes";
|
|
114
|
+
readonly Quiz: "quiz";
|
|
115
|
+
readonly Other: "other";
|
|
116
|
+
};
|
|
117
|
+
export type AdminCanvasCallResourceKindEnum = typeof AdminCanvasCallResourceKindEnum[keyof typeof AdminCanvasCallResourceKindEnum];
|
|
118
|
+
/**
|
|
119
|
+
* @export
|
|
120
|
+
*/
|
|
121
|
+
export declare const AdminCanvasCallStatusEnum: {
|
|
122
|
+
readonly Success: "success";
|
|
123
|
+
readonly Error: "error";
|
|
124
|
+
readonly Incomplete: "incomplete";
|
|
125
|
+
};
|
|
126
|
+
export type AdminCanvasCallStatusEnum = typeof AdminCanvasCallStatusEnum[keyof typeof AdminCanvasCallStatusEnum];
|
|
127
|
+
/**
|
|
128
|
+
* Check if a given object implements the AdminCanvasCall interface.
|
|
129
|
+
*/
|
|
130
|
+
export declare function instanceOfAdminCanvasCall(value: object): value is AdminCanvasCall;
|
|
131
|
+
export declare function AdminCanvasCallFromJSON(json: any): AdminCanvasCall;
|
|
132
|
+
export declare function AdminCanvasCallFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminCanvasCall;
|
|
133
|
+
export declare function AdminCanvasCallToJSON(json: any): AdminCanvasCall;
|
|
134
|
+
export declare function AdminCanvasCallToJSONTyped(value?: AdminCanvasCall | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,117 @@
|
|
|
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 AdminCanvasCallResourceKindEnum = {
|
|
18
|
+
Courses: 'courses',
|
|
19
|
+
Course: 'course',
|
|
20
|
+
Modules: 'modules',
|
|
21
|
+
ModuleItems: 'module-items',
|
|
22
|
+
Files: 'files',
|
|
23
|
+
File: 'file',
|
|
24
|
+
Pages: 'pages',
|
|
25
|
+
Page: 'page',
|
|
26
|
+
Assignments: 'assignments',
|
|
27
|
+
Assignment: 'assignment',
|
|
28
|
+
Quizzes: 'quizzes',
|
|
29
|
+
Quiz: 'quiz',
|
|
30
|
+
Other: 'other'
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export const AdminCanvasCallStatusEnum = {
|
|
36
|
+
Success: 'success',
|
|
37
|
+
Error: 'error',
|
|
38
|
+
Incomplete: 'incomplete'
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the AdminCanvasCall interface.
|
|
42
|
+
*/
|
|
43
|
+
export function instanceOfAdminCanvasCall(value) {
|
|
44
|
+
if (!('messageId' in value) || value['messageId'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('messageCreatedAt' in value) || value['messageCreatedAt'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('toolCallId' in value) || value['toolCallId'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('path' in value) || value['path'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('params' in value) || value['params'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('resourceKind' in value) || value['resourceKind'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('courseId' in value) || value['courseId'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
59
|
+
return false;
|
|
60
|
+
if (!('httpStatus' in value) || value['httpStatus'] === undefined)
|
|
61
|
+
return false;
|
|
62
|
+
if (!('errorMessage' in value) || value['errorMessage'] === undefined)
|
|
63
|
+
return false;
|
|
64
|
+
if (!('filesTabHiddenRecovery' in value) || value['filesTabHiddenRecovery'] === undefined)
|
|
65
|
+
return false;
|
|
66
|
+
if (!('hasMore' in value) || value['hasMore'] === undefined)
|
|
67
|
+
return false;
|
|
68
|
+
if (!('resultItemCount' in value) || value['resultItemCount'] === undefined)
|
|
69
|
+
return false;
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
export function AdminCanvasCallFromJSON(json) {
|
|
73
|
+
return AdminCanvasCallFromJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
export function AdminCanvasCallFromJSONTyped(json, ignoreDiscriminator) {
|
|
76
|
+
if (json == null) {
|
|
77
|
+
return json;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
'messageId': json['messageId'],
|
|
81
|
+
'messageCreatedAt': (new Date(json['messageCreatedAt'])),
|
|
82
|
+
'toolCallId': json['toolCallId'],
|
|
83
|
+
'path': json['path'],
|
|
84
|
+
'params': json['params'],
|
|
85
|
+
'resourceKind': json['resourceKind'],
|
|
86
|
+
'courseId': json['courseId'],
|
|
87
|
+
'status': json['status'],
|
|
88
|
+
'httpStatus': json['httpStatus'],
|
|
89
|
+
'errorMessage': json['errorMessage'],
|
|
90
|
+
'filesTabHiddenRecovery': json['filesTabHiddenRecovery'],
|
|
91
|
+
'hasMore': json['hasMore'],
|
|
92
|
+
'resultItemCount': json['resultItemCount'],
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
export function AdminCanvasCallToJSON(json) {
|
|
96
|
+
return AdminCanvasCallToJSONTyped(json, false);
|
|
97
|
+
}
|
|
98
|
+
export function AdminCanvasCallToJSONTyped(value, ignoreDiscriminator = false) {
|
|
99
|
+
if (value == null) {
|
|
100
|
+
return value;
|
|
101
|
+
}
|
|
102
|
+
return {
|
|
103
|
+
'messageId': value['messageId'],
|
|
104
|
+
'messageCreatedAt': value['messageCreatedAt'].toISOString(),
|
|
105
|
+
'toolCallId': value['toolCallId'],
|
|
106
|
+
'path': value['path'],
|
|
107
|
+
'params': value['params'],
|
|
108
|
+
'resourceKind': value['resourceKind'],
|
|
109
|
+
'courseId': value['courseId'],
|
|
110
|
+
'status': value['status'],
|
|
111
|
+
'httpStatus': value['httpStatus'],
|
|
112
|
+
'errorMessage': value['errorMessage'],
|
|
113
|
+
'filesTabHiddenRecovery': value['filesTabHiddenRecovery'],
|
|
114
|
+
'hasMore': value['hasMore'],
|
|
115
|
+
'resultItemCount': value['resultItemCount'],
|
|
116
|
+
};
|
|
117
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
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 { AdminCanvasUsageFirstSeen } from './AdminCanvasUsageFirstSeen';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AdminCanvasCourse
|
|
17
|
+
*/
|
|
18
|
+
export interface AdminCanvasCourse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof AdminCanvasCourse
|
|
23
|
+
*/
|
|
24
|
+
courseId: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AdminCanvasCourse
|
|
29
|
+
*/
|
|
30
|
+
name: string | null;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof AdminCanvasCourse
|
|
35
|
+
*/
|
|
36
|
+
courseCode: string | null;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {AdminCanvasUsageFirstSeen}
|
|
40
|
+
* @memberof AdminCanvasCourse
|
|
41
|
+
*/
|
|
42
|
+
firstSeen: AdminCanvasUsageFirstSeen;
|
|
43
|
+
/**
|
|
44
|
+
* Every field Canvas returned for this object, merged across calls. Signed download URLs are removed or redacted.
|
|
45
|
+
* @type {{ [key: string]: any; }}
|
|
46
|
+
* @memberof AdminCanvasCourse
|
|
47
|
+
*/
|
|
48
|
+
canvas: {
|
|
49
|
+
[key: string]: any;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the AdminCanvasCourse interface.
|
|
54
|
+
*/
|
|
55
|
+
export declare function instanceOfAdminCanvasCourse(value: object): value is AdminCanvasCourse;
|
|
56
|
+
export declare function AdminCanvasCourseFromJSON(json: any): AdminCanvasCourse;
|
|
57
|
+
export declare function AdminCanvasCourseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminCanvasCourse;
|
|
58
|
+
export declare function AdminCanvasCourseToJSON(json: any): AdminCanvasCourse;
|
|
59
|
+
export declare function AdminCanvasCourseToJSONTyped(value?: AdminCanvasCourse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
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 { AdminCanvasUsageFirstSeenFromJSON, AdminCanvasUsageFirstSeenToJSON, } from './AdminCanvasUsageFirstSeen';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the AdminCanvasCourse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfAdminCanvasCourse(value) {
|
|
19
|
+
if (!('courseId' in value) || value['courseId'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('courseCode' in value) || value['courseCode'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('firstSeen' in value) || value['firstSeen'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('canvas' in value) || value['canvas'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
export function AdminCanvasCourseFromJSON(json) {
|
|
32
|
+
return AdminCanvasCourseFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function AdminCanvasCourseFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'courseId': json['courseId'],
|
|
40
|
+
'name': json['name'],
|
|
41
|
+
'courseCode': json['courseCode'],
|
|
42
|
+
'firstSeen': AdminCanvasUsageFirstSeenFromJSON(json['firstSeen']),
|
|
43
|
+
'canvas': json['canvas'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function AdminCanvasCourseToJSON(json) {
|
|
47
|
+
return AdminCanvasCourseToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function AdminCanvasCourseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'courseId': value['courseId'],
|
|
55
|
+
'name': value['name'],
|
|
56
|
+
'courseCode': value['courseCode'],
|
|
57
|
+
'firstSeen': AdminCanvasUsageFirstSeenToJSON(value['firstSeen']),
|
|
58
|
+
'canvas': value['canvas'],
|
|
59
|
+
};
|
|
60
|
+
}
|