@instructure/athena-api-client 3.38.9 → 3.39.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/dist/apis/ResourcesApi.d.ts +55 -0
- package/dist/apis/ResourcesApi.js +106 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/ResourcesApi.d.ts +55 -0
- package/dist/esm/apis/ResourcesApi.js +102 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/PaginatedResources.d.ts +39 -0
- package/dist/esm/models/PaginatedResources.js +48 -0
- package/dist/esm/models/ResourceActivity.d.ts +114 -0
- package/dist/esm/models/ResourceActivity.js +100 -0
- package/dist/esm/models/ResourceChat.d.ts +56 -0
- package/dist/esm/models/ResourceChat.js +59 -0
- package/dist/esm/models/ResourceListItem.d.ts +145 -0
- package/dist/esm/models/ResourceListItem.js +122 -0
- package/dist/esm/models/ResourceSession.d.ts +95 -0
- package/dist/esm/models/ResourceSession.js +87 -0
- package/dist/esm/models/ResourceStudyObjective.d.ts +50 -0
- package/dist/esm/models/ResourceStudyObjective.js +55 -0
- package/dist/esm/models/ResourceStudySpace.d.ts +44 -0
- package/dist/esm/models/ResourceStudySpace.js +51 -0
- package/dist/esm/models/index.d.ts +7 -0
- package/dist/esm/models/index.js +7 -0
- package/dist/models/PaginatedResources.d.ts +39 -0
- package/dist/models/PaginatedResources.js +55 -0
- package/dist/models/ResourceActivity.d.ts +114 -0
- package/dist/models/ResourceActivity.js +108 -0
- package/dist/models/ResourceChat.d.ts +56 -0
- package/dist/models/ResourceChat.js +66 -0
- package/dist/models/ResourceListItem.d.ts +145 -0
- package/dist/models/ResourceListItem.js +130 -0
- package/dist/models/ResourceSession.d.ts +95 -0
- package/dist/models/ResourceSession.js +95 -0
- package/dist/models/ResourceStudyObjective.d.ts +50 -0
- package/dist/models/ResourceStudyObjective.js +62 -0
- package/dist/models/ResourceStudySpace.d.ts +44 -0
- package/dist/models/ResourceStudySpace.js +58 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/package.json +1 -1
|
@@ -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 ResourceStudyObjective
|
|
16
|
+
*/
|
|
17
|
+
export interface ResourceStudyObjective {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ResourceStudyObjective
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ResourceStudyObjective
|
|
28
|
+
*/
|
|
29
|
+
title: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Date}
|
|
33
|
+
* @memberof ResourceStudyObjective
|
|
34
|
+
*/
|
|
35
|
+
dueAt: Date | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ResourceStudyObjective
|
|
40
|
+
*/
|
|
41
|
+
studySpaceId: string | null;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the ResourceStudyObjective interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfResourceStudyObjective(value: object): value is ResourceStudyObjective;
|
|
47
|
+
export declare function ResourceStudyObjectiveFromJSON(json: any): ResourceStudyObjective;
|
|
48
|
+
export declare function ResourceStudyObjectiveFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceStudyObjective;
|
|
49
|
+
export declare function ResourceStudyObjectiveToJSON(json: any): ResourceStudyObjective;
|
|
50
|
+
export declare function ResourceStudyObjectiveToJSONTyped(value?: ResourceStudyObjective | 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 ResourceStudyObjective interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfResourceStudyObjective(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('dueAt' in value) || value['dueAt'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('studySpaceId' in value) || value['studySpaceId'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function ResourceStudyObjectiveFromJSON(json) {
|
|
29
|
+
return ResourceStudyObjectiveFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function ResourceStudyObjectiveFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'id': json['id'],
|
|
37
|
+
'title': json['title'],
|
|
38
|
+
'dueAt': (json['dueAt'] == null ? null : new Date(json['dueAt'])),
|
|
39
|
+
'studySpaceId': json['studySpaceId'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function ResourceStudyObjectiveToJSON(json) {
|
|
43
|
+
return ResourceStudyObjectiveToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function ResourceStudyObjectiveToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'id': value['id'],
|
|
51
|
+
'title': value['title'],
|
|
52
|
+
'dueAt': value['dueAt'] == null ? value['dueAt'] : value['dueAt'].toISOString(),
|
|
53
|
+
'studySpaceId': value['studySpaceId'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 ResourceStudySpace
|
|
16
|
+
*/
|
|
17
|
+
export interface ResourceStudySpace {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ResourceStudySpace
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Display name. Empty when the space has not been named yet; clients fall back to the course name.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ResourceStudySpace
|
|
28
|
+
*/
|
|
29
|
+
title: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ResourceStudySpace
|
|
34
|
+
*/
|
|
35
|
+
courseId: string | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the ResourceStudySpace interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfResourceStudySpace(value: object): value is ResourceStudySpace;
|
|
41
|
+
export declare function ResourceStudySpaceFromJSON(json: any): ResourceStudySpace;
|
|
42
|
+
export declare function ResourceStudySpaceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceStudySpace;
|
|
43
|
+
export declare function ResourceStudySpaceToJSON(json: any): ResourceStudySpace;
|
|
44
|
+
export declare function ResourceStudySpaceToJSONTyped(value?: ResourceStudySpace | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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 ResourceStudySpace interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfResourceStudySpace(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('courseId' in value) || value['courseId'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function ResourceStudySpaceFromJSON(json) {
|
|
27
|
+
return ResourceStudySpaceFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function ResourceStudySpaceFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'id': json['id'],
|
|
35
|
+
'title': json['title'],
|
|
36
|
+
'courseId': json['courseId'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function ResourceStudySpaceToJSON(json) {
|
|
40
|
+
return ResourceStudySpaceToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function ResourceStudySpaceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'id': value['id'],
|
|
48
|
+
'title': value['title'],
|
|
49
|
+
'courseId': value['courseId'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -109,6 +109,7 @@ export * from './PaginatedMessages';
|
|
|
109
109
|
export * from './PaginatedObjectiveResources';
|
|
110
110
|
export * from './PaginatedQuizSessions';
|
|
111
111
|
export * from './PaginatedQuizzes';
|
|
112
|
+
export * from './PaginatedResources';
|
|
112
113
|
export * from './PaginatedStudyObjectives';
|
|
113
114
|
export * from './PaginatedTaxonomies';
|
|
114
115
|
export * from './PaginatedUserConcepts';
|
|
@@ -128,6 +129,12 @@ export * from './QuizSessionScore';
|
|
|
128
129
|
export * from './QuizSessionSummary';
|
|
129
130
|
export * from './QuizWithQuestions';
|
|
130
131
|
export * from './RecordQuizQuestionViewRequest';
|
|
132
|
+
export * from './ResourceActivity';
|
|
133
|
+
export * from './ResourceChat';
|
|
134
|
+
export * from './ResourceListItem';
|
|
135
|
+
export * from './ResourceSession';
|
|
136
|
+
export * from './ResourceStudyObjective';
|
|
137
|
+
export * from './ResourceStudySpace';
|
|
131
138
|
export * from './Score';
|
|
132
139
|
export * from './ScoreByTypeValue';
|
|
133
140
|
export * from './ServiceToken';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -111,6 +111,7 @@ export * from './PaginatedMessages';
|
|
|
111
111
|
export * from './PaginatedObjectiveResources';
|
|
112
112
|
export * from './PaginatedQuizSessions';
|
|
113
113
|
export * from './PaginatedQuizzes';
|
|
114
|
+
export * from './PaginatedResources';
|
|
114
115
|
export * from './PaginatedStudyObjectives';
|
|
115
116
|
export * from './PaginatedTaxonomies';
|
|
116
117
|
export * from './PaginatedUserConcepts';
|
|
@@ -130,6 +131,12 @@ export * from './QuizSessionScore';
|
|
|
130
131
|
export * from './QuizSessionSummary';
|
|
131
132
|
export * from './QuizWithQuestions';
|
|
132
133
|
export * from './RecordQuizQuestionViewRequest';
|
|
134
|
+
export * from './ResourceActivity';
|
|
135
|
+
export * from './ResourceChat';
|
|
136
|
+
export * from './ResourceListItem';
|
|
137
|
+
export * from './ResourceSession';
|
|
138
|
+
export * from './ResourceStudyObjective';
|
|
139
|
+
export * from './ResourceStudySpace';
|
|
133
140
|
export * from './Score';
|
|
134
141
|
export * from './ScoreByTypeValue';
|
|
135
142
|
export * from './ServiceToken';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Athena API
|
|
3
|
+
* REST API for the Athena system
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ResourceListItem } from './ResourceListItem';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PaginatedResources
|
|
17
|
+
*/
|
|
18
|
+
export interface PaginatedResources {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ResourceListItem>}
|
|
22
|
+
* @memberof PaginatedResources
|
|
23
|
+
*/
|
|
24
|
+
data: Array<ResourceListItem>;
|
|
25
|
+
/**
|
|
26
|
+
* Opaque cursor for fetching the next page. Null when there are no more results.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof PaginatedResources
|
|
29
|
+
*/
|
|
30
|
+
nextCursor: string | null;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the PaginatedResources interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfPaginatedResources(value: object): value is PaginatedResources;
|
|
36
|
+
export declare function PaginatedResourcesFromJSON(json: any): PaginatedResources;
|
|
37
|
+
export declare function PaginatedResourcesFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResources;
|
|
38
|
+
export declare function PaginatedResourcesToJSON(json: any): PaginatedResources;
|
|
39
|
+
export declare function PaginatedResourcesToJSONTyped(value?: PaginatedResources | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Athena API
|
|
6
|
+
* REST API for the Athena system
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfPaginatedResources = instanceOfPaginatedResources;
|
|
17
|
+
exports.PaginatedResourcesFromJSON = PaginatedResourcesFromJSON;
|
|
18
|
+
exports.PaginatedResourcesFromJSONTyped = PaginatedResourcesFromJSONTyped;
|
|
19
|
+
exports.PaginatedResourcesToJSON = PaginatedResourcesToJSON;
|
|
20
|
+
exports.PaginatedResourcesToJSONTyped = PaginatedResourcesToJSONTyped;
|
|
21
|
+
const ResourceListItem_1 = require("./ResourceListItem");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the PaginatedResources interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfPaginatedResources(value) {
|
|
26
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('nextCursor' in value) || value['nextCursor'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function PaginatedResourcesFromJSON(json) {
|
|
33
|
+
return PaginatedResourcesFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function PaginatedResourcesFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'data': (json['data'].map(ResourceListItem_1.ResourceListItemFromJSON)),
|
|
41
|
+
'nextCursor': json['nextCursor'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function PaginatedResourcesToJSON(json) {
|
|
45
|
+
return PaginatedResourcesToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function PaginatedResourcesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'data': (value['data'].map(ResourceListItem_1.ResourceListItemToJSON)),
|
|
53
|
+
'nextCursor': value['nextCursor'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
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 { ResourceSession } from './ResourceSession';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ResourceActivity
|
|
17
|
+
*/
|
|
18
|
+
export interface ResourceActivity {
|
|
19
|
+
/**
|
|
20
|
+
* "completed" once any session finished, "in-progress" once any session exists, otherwise "not-started".
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ResourceActivity
|
|
23
|
+
*/
|
|
24
|
+
progressStatus: ResourceActivityProgressStatusEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ResourceActivity
|
|
29
|
+
*/
|
|
30
|
+
sessionCount: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof ResourceActivity
|
|
35
|
+
*/
|
|
36
|
+
activeSessionCount: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ResourceActivity
|
|
41
|
+
*/
|
|
42
|
+
completedSessionCount: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof ResourceActivity
|
|
47
|
+
*/
|
|
48
|
+
abandonedSessionCount: number;
|
|
49
|
+
/**
|
|
50
|
+
* When the learner first opened this resource.
|
|
51
|
+
* @type {Date}
|
|
52
|
+
* @memberof ResourceActivity
|
|
53
|
+
*/
|
|
54
|
+
firstStartedAt: Date | null;
|
|
55
|
+
/**
|
|
56
|
+
* Most recent session start, completion, or answer. Null when never opened.
|
|
57
|
+
* @type {Date}
|
|
58
|
+
* @memberof ResourceActivity
|
|
59
|
+
*/
|
|
60
|
+
lastActivityAt: Date | null;
|
|
61
|
+
/**
|
|
62
|
+
* The most recently started session.
|
|
63
|
+
* @type {ResourceSession}
|
|
64
|
+
* @memberof ResourceActivity
|
|
65
|
+
*/
|
|
66
|
+
latestSession: ResourceSession | null;
|
|
67
|
+
/**
|
|
68
|
+
* The completed session with the most correct answers. Ties go to the most recent. Null until a session completes.
|
|
69
|
+
* @type {ResourceSession}
|
|
70
|
+
* @memberof ResourceActivity
|
|
71
|
+
*/
|
|
72
|
+
bestSession: ResourceSession | null;
|
|
73
|
+
/**
|
|
74
|
+
* Answers and ratings submitted across every session.
|
|
75
|
+
* @type {number}
|
|
76
|
+
* @memberof ResourceActivity
|
|
77
|
+
*/
|
|
78
|
+
totalAnsweredCount: number;
|
|
79
|
+
/**
|
|
80
|
+
* Correct answers and known ratings across every session.
|
|
81
|
+
* @type {number}
|
|
82
|
+
* @memberof ResourceActivity
|
|
83
|
+
*/
|
|
84
|
+
totalCorrectCount: number;
|
|
85
|
+
/**
|
|
86
|
+
* Distinct questions the learner has viewed at least once. For flashcards this is the number of cards flipped through.
|
|
87
|
+
* @type {number}
|
|
88
|
+
* @memberof ResourceActivity
|
|
89
|
+
*/
|
|
90
|
+
viewedQuestionCount: number;
|
|
91
|
+
/**
|
|
92
|
+
* Every recorded question view, including repeat views.
|
|
93
|
+
* @type {number}
|
|
94
|
+
* @memberof ResourceActivity
|
|
95
|
+
*/
|
|
96
|
+
totalViewCount: number;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* @export
|
|
100
|
+
*/
|
|
101
|
+
export declare const ResourceActivityProgressStatusEnum: {
|
|
102
|
+
readonly NotStarted: "not-started";
|
|
103
|
+
readonly InProgress: "in-progress";
|
|
104
|
+
readonly Completed: "completed";
|
|
105
|
+
};
|
|
106
|
+
export type ResourceActivityProgressStatusEnum = typeof ResourceActivityProgressStatusEnum[keyof typeof ResourceActivityProgressStatusEnum];
|
|
107
|
+
/**
|
|
108
|
+
* Check if a given object implements the ResourceActivity interface.
|
|
109
|
+
*/
|
|
110
|
+
export declare function instanceOfResourceActivity(value: object): value is ResourceActivity;
|
|
111
|
+
export declare function ResourceActivityFromJSON(json: any): ResourceActivity;
|
|
112
|
+
export declare function ResourceActivityFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceActivity;
|
|
113
|
+
export declare function ResourceActivityToJSON(json: any): ResourceActivity;
|
|
114
|
+
export declare function ResourceActivityToJSONTyped(value?: ResourceActivity | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,108 @@
|
|
|
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.ResourceActivityProgressStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfResourceActivity = instanceOfResourceActivity;
|
|
18
|
+
exports.ResourceActivityFromJSON = ResourceActivityFromJSON;
|
|
19
|
+
exports.ResourceActivityFromJSONTyped = ResourceActivityFromJSONTyped;
|
|
20
|
+
exports.ResourceActivityToJSON = ResourceActivityToJSON;
|
|
21
|
+
exports.ResourceActivityToJSONTyped = ResourceActivityToJSONTyped;
|
|
22
|
+
const ResourceSession_1 = require("./ResourceSession");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ResourceActivityProgressStatusEnum = {
|
|
27
|
+
NotStarted: 'not-started',
|
|
28
|
+
InProgress: 'in-progress',
|
|
29
|
+
Completed: 'completed'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ResourceActivity interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfResourceActivity(value) {
|
|
35
|
+
if (!('progressStatus' in value) || value['progressStatus'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('sessionCount' in value) || value['sessionCount'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('activeSessionCount' in value) || value['activeSessionCount'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('completedSessionCount' in value) || value['completedSessionCount'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('abandonedSessionCount' in value) || value['abandonedSessionCount'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('firstStartedAt' in value) || value['firstStartedAt'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('lastActivityAt' in value) || value['lastActivityAt'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('latestSession' in value) || value['latestSession'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('bestSession' in value) || value['bestSession'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('totalAnsweredCount' in value) || value['totalAnsweredCount'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('totalCorrectCount' in value) || value['totalCorrectCount'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
if (!('viewedQuestionCount' in value) || value['viewedQuestionCount'] === undefined)
|
|
58
|
+
return false;
|
|
59
|
+
if (!('totalViewCount' in value) || value['totalViewCount'] === undefined)
|
|
60
|
+
return false;
|
|
61
|
+
return true;
|
|
62
|
+
}
|
|
63
|
+
function ResourceActivityFromJSON(json) {
|
|
64
|
+
return ResourceActivityFromJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
function ResourceActivityFromJSONTyped(json, ignoreDiscriminator) {
|
|
67
|
+
if (json == null) {
|
|
68
|
+
return json;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
'progressStatus': json['progressStatus'],
|
|
72
|
+
'sessionCount': json['sessionCount'],
|
|
73
|
+
'activeSessionCount': json['activeSessionCount'],
|
|
74
|
+
'completedSessionCount': json['completedSessionCount'],
|
|
75
|
+
'abandonedSessionCount': json['abandonedSessionCount'],
|
|
76
|
+
'firstStartedAt': (json['firstStartedAt'] == null ? null : new Date(json['firstStartedAt'])),
|
|
77
|
+
'lastActivityAt': (json['lastActivityAt'] == null ? null : new Date(json['lastActivityAt'])),
|
|
78
|
+
'latestSession': (0, ResourceSession_1.ResourceSessionFromJSON)(json['latestSession']),
|
|
79
|
+
'bestSession': (0, ResourceSession_1.ResourceSessionFromJSON)(json['bestSession']),
|
|
80
|
+
'totalAnsweredCount': json['totalAnsweredCount'],
|
|
81
|
+
'totalCorrectCount': json['totalCorrectCount'],
|
|
82
|
+
'viewedQuestionCount': json['viewedQuestionCount'],
|
|
83
|
+
'totalViewCount': json['totalViewCount'],
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
function ResourceActivityToJSON(json) {
|
|
87
|
+
return ResourceActivityToJSONTyped(json, false);
|
|
88
|
+
}
|
|
89
|
+
function ResourceActivityToJSONTyped(value, ignoreDiscriminator = false) {
|
|
90
|
+
if (value == null) {
|
|
91
|
+
return value;
|
|
92
|
+
}
|
|
93
|
+
return {
|
|
94
|
+
'progressStatus': value['progressStatus'],
|
|
95
|
+
'sessionCount': value['sessionCount'],
|
|
96
|
+
'activeSessionCount': value['activeSessionCount'],
|
|
97
|
+
'completedSessionCount': value['completedSessionCount'],
|
|
98
|
+
'abandonedSessionCount': value['abandonedSessionCount'],
|
|
99
|
+
'firstStartedAt': value['firstStartedAt'] == null ? value['firstStartedAt'] : value['firstStartedAt'].toISOString(),
|
|
100
|
+
'lastActivityAt': value['lastActivityAt'] == null ? value['lastActivityAt'] : value['lastActivityAt'].toISOString(),
|
|
101
|
+
'latestSession': (0, ResourceSession_1.ResourceSessionToJSON)(value['latestSession']),
|
|
102
|
+
'bestSession': (0, ResourceSession_1.ResourceSessionToJSON)(value['bestSession']),
|
|
103
|
+
'totalAnsweredCount': value['totalAnsweredCount'],
|
|
104
|
+
'totalCorrectCount': value['totalCorrectCount'],
|
|
105
|
+
'viewedQuestionCount': value['viewedQuestionCount'],
|
|
106
|
+
'totalViewCount': value['totalViewCount'],
|
|
107
|
+
};
|
|
108
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 ResourceChat
|
|
16
|
+
*/
|
|
17
|
+
export interface ResourceChat {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ResourceChat
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ResourceChat
|
|
28
|
+
*/
|
|
29
|
+
title: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ResourceChat
|
|
34
|
+
*/
|
|
35
|
+
chatType: string | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof ResourceChat
|
|
40
|
+
*/
|
|
41
|
+
createdAt: Date;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof ResourceChat
|
|
46
|
+
*/
|
|
47
|
+
lastViewedAt: Date | null;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the ResourceChat interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfResourceChat(value: object): value is ResourceChat;
|
|
53
|
+
export declare function ResourceChatFromJSON(json: any): ResourceChat;
|
|
54
|
+
export declare function ResourceChatFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceChat;
|
|
55
|
+
export declare function ResourceChatToJSON(json: any): ResourceChat;
|
|
56
|
+
export declare function ResourceChatToJSONTyped(value?: ResourceChat | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
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.instanceOfResourceChat = instanceOfResourceChat;
|
|
17
|
+
exports.ResourceChatFromJSON = ResourceChatFromJSON;
|
|
18
|
+
exports.ResourceChatFromJSONTyped = ResourceChatFromJSONTyped;
|
|
19
|
+
exports.ResourceChatToJSON = ResourceChatToJSON;
|
|
20
|
+
exports.ResourceChatToJSONTyped = ResourceChatToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ResourceChat interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfResourceChat(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('chatType' in value) || value['chatType'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('lastViewedAt' in value) || value['lastViewedAt'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function ResourceChatFromJSON(json) {
|
|
38
|
+
return ResourceChatFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function ResourceChatFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'id': json['id'],
|
|
46
|
+
'title': json['title'],
|
|
47
|
+
'chatType': json['chatType'],
|
|
48
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
49
|
+
'lastViewedAt': (json['lastViewedAt'] == null ? null : new Date(json['lastViewedAt'])),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function ResourceChatToJSON(json) {
|
|
53
|
+
return ResourceChatToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function ResourceChatToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'id': value['id'],
|
|
61
|
+
'title': value['title'],
|
|
62
|
+
'chatType': value['chatType'],
|
|
63
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
64
|
+
'lastViewedAt': value['lastViewedAt'] == null ? value['lastViewedAt'] : value['lastViewedAt'].toISOString(),
|
|
65
|
+
};
|
|
66
|
+
}
|