@instructure/athena-api-client 3.17.1 → 3.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/apis/AdminApi.d.ts +15 -1
- package/dist/apis/AdminApi.js +41 -0
- package/dist/esm/apis/AdminApi.d.ts +15 -1
- package/dist/esm/apis/AdminApi.js +42 -1
- package/dist/esm/models/AdminResetLearningDataResponse.d.ts +32 -0
- package/dist/esm/models/AdminResetLearningDataResponse.js +43 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/AdminResetLearningDataResponse.d.ts +32 -0
- package/dist/models/AdminResetLearningDataResponse.js +50 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -71,6 +71,7 @@ All URIs are relative to *http://localhost:3000*
|
|
|
71
71
|
*AdminApi* | [**adminListStudyObjectivesByUser**](docs/AdminApi.md#adminliststudyobjectivesbyuser) | **GET** /api/v1/admin/study-objectives/by-user | Per-user study-objective counts across all account users
|
|
72
72
|
*AdminApi* | [**adminListTaxonomyEnrollments**](docs/AdminApi.md#adminlisttaxonomyenrollments) | **GET** /api/v1/admin/taxonomy-enrollments | List all taxonomy enrollments across the account
|
|
73
73
|
*AdminApi* | [**adminListTopStreaks**](docs/AdminApi.md#adminlisttopstreaks) | **GET** /api/v1/admin/streaks | List top N streaks across the account
|
|
74
|
+
*AdminApi* | [**adminResetUserLearningData**](docs/AdminApi.md#adminresetuserlearningdata) | **POST** /api/v1/admin/users/{externalId}/reset-learning-data | Reset a user\'s Athena learning data to a blank slate
|
|
74
75
|
*AdminApi* | [**adminTriggerChatAnalysis**](docs/AdminApi.md#admintriggerchatanalysis) | **POST** /api/v1/admin/chats/{chatId}/analyze | Trigger re-analysis for a chat
|
|
75
76
|
*AdminApi* | [**adminUpdateChat**](docs/AdminApi.md#adminupdatechatoperation) | **PATCH** /api/v1/admin/chats/{chatId} | Update a chat (admin)
|
|
76
77
|
*CanvasDomainSearchApi* | [**searchCanvasDomain**](docs/CanvasDomainSearchApi.md#searchcanvasdomain) | **POST** /api/v1/canvas/domain-search | AI-ranked Canvas domain search
|
|
@@ -182,6 +183,7 @@ All URIs are relative to *http://localhost:3000*
|
|
|
182
183
|
- [AdminPaginatedTaxonomyEnrollments](docs/AdminPaginatedTaxonomyEnrollments.md)
|
|
183
184
|
- [AdminQuizSessionListItem](docs/AdminQuizSessionListItem.md)
|
|
184
185
|
- [AdminQuizSessionScore](docs/AdminQuizSessionScore.md)
|
|
186
|
+
- [AdminResetLearningDataResponse](docs/AdminResetLearningDataResponse.md)
|
|
185
187
|
- [AdminStreak](docs/AdminStreak.md)
|
|
186
188
|
- [AdminStudyObjectiveCanvasTypeCount](docs/AdminStudyObjectiveCanvasTypeCount.md)
|
|
187
189
|
- [AdminStudyObjectiveListItem](docs/AdminStudyObjectiveListItem.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, 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, AdminUserEngagement, QuizSessionSummary } from '../models/index';
|
|
14
14
|
export interface AdminGetChatRequest {
|
|
15
15
|
xUserId: string;
|
|
16
16
|
chatId: string;
|
|
@@ -87,6 +87,10 @@ export interface AdminListTopStreaksRequest {
|
|
|
87
87
|
xUserId: string;
|
|
88
88
|
limit?: number;
|
|
89
89
|
}
|
|
90
|
+
export interface AdminResetUserLearningDataRequest {
|
|
91
|
+
xUserId: string;
|
|
92
|
+
externalId: string;
|
|
93
|
+
}
|
|
90
94
|
export interface AdminTriggerChatAnalysisRequest {
|
|
91
95
|
xUserId: string;
|
|
92
96
|
chatId: string;
|
|
@@ -222,6 +226,16 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
222
226
|
* List top N streaks across the account
|
|
223
227
|
*/
|
|
224
228
|
adminListTopStreaks(requestParameters: AdminListTopStreaksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AdminStreak>>;
|
|
229
|
+
/**
|
|
230
|
+
* Wipes all per-user learning data (chats, quizzes, flashcards, study objectives, concepts, streaks, files, etc.) for the target user while preserving their account-user and user records — and therefore their external identity and Canvas connection. Does not re-seed any demo data. Intended for single-account demo/test users: learning streaks are keyed on the user (not the account), so a user who belongs to multiple accounts has their streak cleared everywhere.
|
|
231
|
+
* Reset a user\'s Athena learning data to a blank slate
|
|
232
|
+
*/
|
|
233
|
+
adminResetUserLearningDataRaw(requestParameters: AdminResetUserLearningDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AdminResetLearningDataResponse>>;
|
|
234
|
+
/**
|
|
235
|
+
* Wipes all per-user learning data (chats, quizzes, flashcards, study objectives, concepts, streaks, files, etc.) for the target user while preserving their account-user and user records — and therefore their external identity and Canvas connection. Does not re-seed any demo data. Intended for single-account demo/test users: learning streaks are keyed on the user (not the account), so a user who belongs to multiple accounts has their streak cleared everywhere.
|
|
236
|
+
* Reset a user\'s Athena learning data to a blank slate
|
|
237
|
+
*/
|
|
238
|
+
adminResetUserLearningData(requestParameters: AdminResetUserLearningDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminResetLearningDataResponse>;
|
|
225
239
|
/**
|
|
226
240
|
* Trigger re-analysis for a chat
|
|
227
241
|
*/
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -642,6 +642,47 @@ class AdminApi extends runtime.BaseAPI {
|
|
|
642
642
|
return yield response.value();
|
|
643
643
|
});
|
|
644
644
|
}
|
|
645
|
+
/**
|
|
646
|
+
* Wipes all per-user learning data (chats, quizzes, flashcards, study objectives, concepts, streaks, files, etc.) for the target user while preserving their account-user and user records — and therefore their external identity and Canvas connection. Does not re-seed any demo data. Intended for single-account demo/test users: learning streaks are keyed on the user (not the account), so a user who belongs to multiple accounts has their streak cleared everywhere.
|
|
647
|
+
* Reset a user\'s Athena learning data to a blank slate
|
|
648
|
+
*/
|
|
649
|
+
adminResetUserLearningDataRaw(requestParameters, initOverrides) {
|
|
650
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
651
|
+
if (requestParameters['xUserId'] == null) {
|
|
652
|
+
throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling adminResetUserLearningData().');
|
|
653
|
+
}
|
|
654
|
+
if (requestParameters['externalId'] == null) {
|
|
655
|
+
throw new runtime.RequiredError('externalId', 'Required parameter "externalId" was null or undefined when calling adminResetUserLearningData().');
|
|
656
|
+
}
|
|
657
|
+
const queryParameters = {};
|
|
658
|
+
const headerParameters = {};
|
|
659
|
+
if (requestParameters['xUserId'] != null) {
|
|
660
|
+
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
661
|
+
}
|
|
662
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
663
|
+
headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
|
|
664
|
+
}
|
|
665
|
+
let urlPath = `/api/v1/admin/users/{externalId}/reset-learning-data`;
|
|
666
|
+
urlPath = urlPath.replace(`{${"externalId"}}`, encodeURIComponent(String(requestParameters['externalId'])));
|
|
667
|
+
const response = yield this.request({
|
|
668
|
+
path: urlPath,
|
|
669
|
+
method: 'POST',
|
|
670
|
+
headers: headerParameters,
|
|
671
|
+
query: queryParameters,
|
|
672
|
+
}, initOverrides);
|
|
673
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AdminResetLearningDataResponseFromJSON)(jsonValue));
|
|
674
|
+
});
|
|
675
|
+
}
|
|
676
|
+
/**
|
|
677
|
+
* Wipes all per-user learning data (chats, quizzes, flashcards, study objectives, concepts, streaks, files, etc.) for the target user while preserving their account-user and user records — and therefore their external identity and Canvas connection. Does not re-seed any demo data. Intended for single-account demo/test users: learning streaks are keyed on the user (not the account), so a user who belongs to multiple accounts has their streak cleared everywhere.
|
|
678
|
+
* Reset a user\'s Athena learning data to a blank slate
|
|
679
|
+
*/
|
|
680
|
+
adminResetUserLearningData(requestParameters, initOverrides) {
|
|
681
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
682
|
+
const response = yield this.adminResetUserLearningDataRaw(requestParameters, initOverrides);
|
|
683
|
+
return yield response.value();
|
|
684
|
+
});
|
|
685
|
+
}
|
|
645
686
|
/**
|
|
646
687
|
* Trigger re-analysis for a chat
|
|
647
688
|
*/
|
|
@@ -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, 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, AdminUserEngagement, QuizSessionSummary } from '../models/index';
|
|
14
14
|
export interface AdminGetChatRequest {
|
|
15
15
|
xUserId: string;
|
|
16
16
|
chatId: string;
|
|
@@ -87,6 +87,10 @@ export interface AdminListTopStreaksRequest {
|
|
|
87
87
|
xUserId: string;
|
|
88
88
|
limit?: number;
|
|
89
89
|
}
|
|
90
|
+
export interface AdminResetUserLearningDataRequest {
|
|
91
|
+
xUserId: string;
|
|
92
|
+
externalId: string;
|
|
93
|
+
}
|
|
90
94
|
export interface AdminTriggerChatAnalysisRequest {
|
|
91
95
|
xUserId: string;
|
|
92
96
|
chatId: string;
|
|
@@ -222,6 +226,16 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
222
226
|
* List top N streaks across the account
|
|
223
227
|
*/
|
|
224
228
|
adminListTopStreaks(requestParameters: AdminListTopStreaksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AdminStreak>>;
|
|
229
|
+
/**
|
|
230
|
+
* Wipes all per-user learning data (chats, quizzes, flashcards, study objectives, concepts, streaks, files, etc.) for the target user while preserving their account-user and user records — and therefore their external identity and Canvas connection. Does not re-seed any demo data. Intended for single-account demo/test users: learning streaks are keyed on the user (not the account), so a user who belongs to multiple accounts has their streak cleared everywhere.
|
|
231
|
+
* Reset a user\'s Athena learning data to a blank slate
|
|
232
|
+
*/
|
|
233
|
+
adminResetUserLearningDataRaw(requestParameters: AdminResetUserLearningDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AdminResetLearningDataResponse>>;
|
|
234
|
+
/**
|
|
235
|
+
* Wipes all per-user learning data (chats, quizzes, flashcards, study objectives, concepts, streaks, files, etc.) for the target user while preserving their account-user and user records — and therefore their external identity and Canvas connection. Does not re-seed any demo data. Intended for single-account demo/test users: learning streaks are keyed on the user (not the account), so a user who belongs to multiple accounts has their streak cleared everywhere.
|
|
236
|
+
* Reset a user\'s Athena learning data to a blank slate
|
|
237
|
+
*/
|
|
238
|
+
adminResetUserLearningData(requestParameters: AdminResetUserLearningDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminResetLearningDataResponse>;
|
|
225
239
|
/**
|
|
226
240
|
* Trigger re-analysis for a chat
|
|
227
241
|
*/
|
|
@@ -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, 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, AdminUserEngagementFromJSON, QuizSessionSummaryFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -639,6 +639,47 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
639
639
|
return yield response.value();
|
|
640
640
|
});
|
|
641
641
|
}
|
|
642
|
+
/**
|
|
643
|
+
* Wipes all per-user learning data (chats, quizzes, flashcards, study objectives, concepts, streaks, files, etc.) for the target user while preserving their account-user and user records — and therefore their external identity and Canvas connection. Does not re-seed any demo data. Intended for single-account demo/test users: learning streaks are keyed on the user (not the account), so a user who belongs to multiple accounts has their streak cleared everywhere.
|
|
644
|
+
* Reset a user\'s Athena learning data to a blank slate
|
|
645
|
+
*/
|
|
646
|
+
adminResetUserLearningDataRaw(requestParameters, initOverrides) {
|
|
647
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
648
|
+
if (requestParameters['xUserId'] == null) {
|
|
649
|
+
throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling adminResetUserLearningData().');
|
|
650
|
+
}
|
|
651
|
+
if (requestParameters['externalId'] == null) {
|
|
652
|
+
throw new runtime.RequiredError('externalId', 'Required parameter "externalId" was null or undefined when calling adminResetUserLearningData().');
|
|
653
|
+
}
|
|
654
|
+
const queryParameters = {};
|
|
655
|
+
const headerParameters = {};
|
|
656
|
+
if (requestParameters['xUserId'] != null) {
|
|
657
|
+
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
658
|
+
}
|
|
659
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
660
|
+
headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
|
|
661
|
+
}
|
|
662
|
+
let urlPath = `/api/v1/admin/users/{externalId}/reset-learning-data`;
|
|
663
|
+
urlPath = urlPath.replace(`{${"externalId"}}`, encodeURIComponent(String(requestParameters['externalId'])));
|
|
664
|
+
const response = yield this.request({
|
|
665
|
+
path: urlPath,
|
|
666
|
+
method: 'POST',
|
|
667
|
+
headers: headerParameters,
|
|
668
|
+
query: queryParameters,
|
|
669
|
+
}, initOverrides);
|
|
670
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AdminResetLearningDataResponseFromJSON(jsonValue));
|
|
671
|
+
});
|
|
672
|
+
}
|
|
673
|
+
/**
|
|
674
|
+
* Wipes all per-user learning data (chats, quizzes, flashcards, study objectives, concepts, streaks, files, etc.) for the target user while preserving their account-user and user records — and therefore their external identity and Canvas connection. Does not re-seed any demo data. Intended for single-account demo/test users: learning streaks are keyed on the user (not the account), so a user who belongs to multiple accounts has their streak cleared everywhere.
|
|
675
|
+
* Reset a user\'s Athena learning data to a blank slate
|
|
676
|
+
*/
|
|
677
|
+
adminResetUserLearningData(requestParameters, initOverrides) {
|
|
678
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
679
|
+
const response = yield this.adminResetUserLearningDataRaw(requestParameters, initOverrides);
|
|
680
|
+
return yield response.value();
|
|
681
|
+
});
|
|
682
|
+
}
|
|
642
683
|
/**
|
|
643
684
|
* Trigger re-analysis for a chat
|
|
644
685
|
*/
|
|
@@ -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 AdminResetLearningDataResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminResetLearningDataResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof AdminResetLearningDataResponse
|
|
22
|
+
*/
|
|
23
|
+
reset: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AdminResetLearningDataResponse interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfAdminResetLearningDataResponse(value: object): value is AdminResetLearningDataResponse;
|
|
29
|
+
export declare function AdminResetLearningDataResponseFromJSON(json: any): AdminResetLearningDataResponse;
|
|
30
|
+
export declare function AdminResetLearningDataResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminResetLearningDataResponse;
|
|
31
|
+
export declare function AdminResetLearningDataResponseToJSON(json: any): AdminResetLearningDataResponse;
|
|
32
|
+
export declare function AdminResetLearningDataResponseToJSONTyped(value?: AdminResetLearningDataResponse | 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 AdminResetLearningDataResponse interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfAdminResetLearningDataResponse(value) {
|
|
18
|
+
if (!('reset' in value) || value['reset'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function AdminResetLearningDataResponseFromJSON(json) {
|
|
23
|
+
return AdminResetLearningDataResponseFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function AdminResetLearningDataResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'reset': json['reset'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function AdminResetLearningDataResponseToJSON(json) {
|
|
34
|
+
return AdminResetLearningDataResponseToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function AdminResetLearningDataResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'reset': value['reset'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -12,6 +12,7 @@ export * from './AdminPaginatedStudyObjectives';
|
|
|
12
12
|
export * from './AdminPaginatedTaxonomyEnrollments';
|
|
13
13
|
export * from './AdminQuizSessionListItem';
|
|
14
14
|
export * from './AdminQuizSessionScore';
|
|
15
|
+
export * from './AdminResetLearningDataResponse';
|
|
15
16
|
export * from './AdminStreak';
|
|
16
17
|
export * from './AdminStudyObjectiveCanvasTypeCount';
|
|
17
18
|
export * from './AdminStudyObjectiveListItem';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -14,6 +14,7 @@ export * from './AdminPaginatedStudyObjectives';
|
|
|
14
14
|
export * from './AdminPaginatedTaxonomyEnrollments';
|
|
15
15
|
export * from './AdminQuizSessionListItem';
|
|
16
16
|
export * from './AdminQuizSessionScore';
|
|
17
|
+
export * from './AdminResetLearningDataResponse';
|
|
17
18
|
export * from './AdminStreak';
|
|
18
19
|
export * from './AdminStudyObjectiveCanvasTypeCount';
|
|
19
20
|
export * from './AdminStudyObjectiveListItem';
|
|
@@ -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 AdminResetLearningDataResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminResetLearningDataResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof AdminResetLearningDataResponse
|
|
22
|
+
*/
|
|
23
|
+
reset: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AdminResetLearningDataResponse interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfAdminResetLearningDataResponse(value: object): value is AdminResetLearningDataResponse;
|
|
29
|
+
export declare function AdminResetLearningDataResponseFromJSON(json: any): AdminResetLearningDataResponse;
|
|
30
|
+
export declare function AdminResetLearningDataResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminResetLearningDataResponse;
|
|
31
|
+
export declare function AdminResetLearningDataResponseToJSON(json: any): AdminResetLearningDataResponse;
|
|
32
|
+
export declare function AdminResetLearningDataResponseToJSONTyped(value?: AdminResetLearningDataResponse | 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.instanceOfAdminResetLearningDataResponse = instanceOfAdminResetLearningDataResponse;
|
|
17
|
+
exports.AdminResetLearningDataResponseFromJSON = AdminResetLearningDataResponseFromJSON;
|
|
18
|
+
exports.AdminResetLearningDataResponseFromJSONTyped = AdminResetLearningDataResponseFromJSONTyped;
|
|
19
|
+
exports.AdminResetLearningDataResponseToJSON = AdminResetLearningDataResponseToJSON;
|
|
20
|
+
exports.AdminResetLearningDataResponseToJSONTyped = AdminResetLearningDataResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AdminResetLearningDataResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAdminResetLearningDataResponse(value) {
|
|
25
|
+
if (!('reset' in value) || value['reset'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function AdminResetLearningDataResponseFromJSON(json) {
|
|
30
|
+
return AdminResetLearningDataResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function AdminResetLearningDataResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'reset': json['reset'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function AdminResetLearningDataResponseToJSON(json) {
|
|
41
|
+
return AdminResetLearningDataResponseToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AdminResetLearningDataResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'reset': value['reset'],
|
|
49
|
+
};
|
|
50
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export * from './AdminPaginatedStudyObjectives';
|
|
|
12
12
|
export * from './AdminPaginatedTaxonomyEnrollments';
|
|
13
13
|
export * from './AdminQuizSessionListItem';
|
|
14
14
|
export * from './AdminQuizSessionScore';
|
|
15
|
+
export * from './AdminResetLearningDataResponse';
|
|
15
16
|
export * from './AdminStreak';
|
|
16
17
|
export * from './AdminStudyObjectiveCanvasTypeCount';
|
|
17
18
|
export * from './AdminStudyObjectiveListItem';
|
package/dist/models/index.js
CHANGED
|
@@ -30,6 +30,7 @@ __exportStar(require("./AdminPaginatedStudyObjectives"), exports);
|
|
|
30
30
|
__exportStar(require("./AdminPaginatedTaxonomyEnrollments"), exports);
|
|
31
31
|
__exportStar(require("./AdminQuizSessionListItem"), exports);
|
|
32
32
|
__exportStar(require("./AdminQuizSessionScore"), exports);
|
|
33
|
+
__exportStar(require("./AdminResetLearningDataResponse"), exports);
|
|
33
34
|
__exportStar(require("./AdminStreak"), exports);
|
|
34
35
|
__exportStar(require("./AdminStudyObjectiveCanvasTypeCount"), exports);
|
|
35
36
|
__exportStar(require("./AdminStudyObjectiveListItem"), exports);
|