@instructure/athena-api-client 3.39.3 → 3.41.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 +28 -0
- package/dist/apis/AdminApi.d.ts +17 -1
- package/dist/apis/AdminApi.js +47 -0
- package/dist/apis/QuizzesApi.d.ts +30 -1
- package/dist/apis/QuizzesApi.js +87 -0
- package/dist/apis/ResourcesApi.d.ts +11 -2
- package/dist/apis/ResourcesApi.js +13 -3
- package/dist/apis/SharedQuizzesApi.d.ts +46 -0
- package/dist/apis/SharedQuizzesApi.js +115 -0
- package/dist/apis/StudyObjectivesApi.d.ts +2 -2
- package/dist/apis/StudyObjectivesApi.js +2 -2
- package/dist/apis/StudySpaceTemplatesApi.d.ts +61 -0
- package/dist/apis/StudySpaceTemplatesApi.js +162 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/esm/apis/AdminApi.d.ts +17 -1
- package/dist/esm/apis/AdminApi.js +48 -1
- package/dist/esm/apis/QuizzesApi.d.ts +30 -1
- package/dist/esm/apis/QuizzesApi.js +88 -1
- package/dist/esm/apis/ResourcesApi.d.ts +11 -2
- package/dist/esm/apis/ResourcesApi.js +12 -2
- package/dist/esm/apis/SharedQuizzesApi.d.ts +46 -0
- package/dist/esm/apis/SharedQuizzesApi.js +111 -0
- package/dist/esm/apis/StudyObjectivesApi.d.ts +2 -2
- package/dist/esm/apis/StudyObjectivesApi.js +2 -2
- package/dist/esm/apis/StudySpaceTemplatesApi.d.ts +61 -0
- package/dist/esm/apis/StudySpaceTemplatesApi.js +158 -0
- package/dist/esm/apis/index.d.ts +2 -0
- package/dist/esm/apis/index.js +2 -0
- package/dist/esm/models/AdminPaginatedQuizParticipantSessions.d.ts +39 -0
- package/dist/esm/models/AdminPaginatedQuizParticipantSessions.js +48 -0
- package/dist/esm/models/AdminQuizParticipantSessionListItem.d.ts +84 -0
- package/dist/esm/models/AdminQuizParticipantSessionListItem.js +80 -0
- package/dist/esm/models/AdminQuizParticipantSessionScore.d.ts +44 -0
- package/dist/esm/models/AdminQuizParticipantSessionScore.js +51 -0
- package/dist/esm/models/AdminStudyObjectiveListItem.d.ts +2 -1
- package/dist/esm/models/AdminStudyObjectiveListItem.js +2 -1
- package/dist/esm/models/CreateStudySpaceFromTemplateDto.d.ts +38 -0
- package/dist/esm/models/CreateStudySpaceFromTemplateDto.js +45 -0
- package/dist/esm/models/QuizSharing.d.ts +50 -0
- package/dist/esm/models/QuizSharing.js +55 -0
- package/dist/esm/models/ResourceListItem.d.ts +16 -3
- package/dist/esm/models/ResourceListItem.js +9 -0
- package/dist/esm/models/ResourceSharing.d.ts +44 -0
- package/dist/esm/models/ResourceSharing.js +51 -0
- package/dist/esm/models/ScheduleStudySpaceTemplateDto.d.ts +32 -0
- package/dist/esm/models/ScheduleStudySpaceTemplateDto.js +43 -0
- package/dist/esm/models/SharedQuiz.d.ts +97 -0
- package/dist/esm/models/SharedQuiz.js +90 -0
- package/dist/esm/models/StudyObjective.d.ts +8 -1
- package/dist/esm/models/StudyObjective.js +6 -1
- package/dist/esm/models/StudySpace.d.ts +12 -0
- package/dist/esm/models/StudySpace.js +8 -0
- package/dist/esm/models/StudySpaceFromTemplate.d.ts +40 -0
- package/dist/esm/models/StudySpaceFromTemplate.js +49 -0
- package/dist/esm/models/StudySpaceTemplate.d.ts +117 -0
- package/dist/esm/models/StudySpaceTemplate.js +102 -0
- package/dist/esm/models/StudySpaceTemplateAnchor.d.ts +44 -0
- package/dist/esm/models/StudySpaceTemplateAnchor.js +51 -0
- package/dist/esm/models/StudySpaceTemplateConfirm.d.ts +33 -0
- package/dist/esm/models/StudySpaceTemplateConfirm.js +44 -0
- package/dist/esm/models/StudySpaceTemplateLegal.d.ts +32 -0
- package/dist/esm/models/StudySpaceTemplateLegal.js +43 -0
- package/dist/esm/models/StudySpaceTemplateLink.d.ts +38 -0
- package/dist/esm/models/StudySpaceTemplateLink.js +47 -0
- package/dist/esm/models/StudySpaceTemplateNotice.d.ts +38 -0
- package/dist/esm/models/StudySpaceTemplateNotice.js +47 -0
- package/dist/esm/models/StudySpaceTemplateObjective.d.ts +52 -0
- package/dist/esm/models/StudySpaceTemplateObjective.js +58 -0
- package/dist/esm/models/StudySpaceTemplateProvenance.d.ts +32 -0
- package/dist/esm/models/StudySpaceTemplateProvenance.js +43 -0
- package/dist/esm/models/StudySpaceTemplateSchedule.d.ts +51 -0
- package/dist/esm/models/StudySpaceTemplateSchedule.js +57 -0
- package/dist/esm/models/StudySpaceTemplateScheduleItem.d.ts +50 -0
- package/dist/esm/models/StudySpaceTemplateScheduleItem.js +55 -0
- package/dist/esm/models/SyllabusAnalysisObjective.d.ts +1 -0
- package/dist/esm/models/SyllabusAnalysisObjective.js +2 -1
- package/dist/esm/models/TriggerStudyObjectiveConceptExtractionItemStatus.d.ts +2 -1
- package/dist/esm/models/TriggerStudyObjectiveConceptExtractionItemStatus.js +1 -0
- package/dist/esm/models/UpcomingStudyObjective.d.ts +8 -1
- package/dist/esm/models/UpcomingStudyObjective.js +6 -1
- package/dist/esm/models/UpdateQuizSharingRequest.d.ts +32 -0
- package/dist/esm/models/UpdateQuizSharingRequest.js +43 -0
- package/dist/esm/models/index.d.ts +20 -0
- package/dist/esm/models/index.js +20 -0
- package/dist/models/AdminPaginatedQuizParticipantSessions.d.ts +39 -0
- package/dist/models/AdminPaginatedQuizParticipantSessions.js +55 -0
- package/dist/models/AdminQuizParticipantSessionListItem.d.ts +84 -0
- package/dist/models/AdminQuizParticipantSessionListItem.js +88 -0
- package/dist/models/AdminQuizParticipantSessionScore.d.ts +44 -0
- package/dist/models/AdminQuizParticipantSessionScore.js +58 -0
- package/dist/models/AdminStudyObjectiveListItem.d.ts +2 -1
- package/dist/models/AdminStudyObjectiveListItem.js +2 -1
- package/dist/models/CreateStudySpaceFromTemplateDto.d.ts +38 -0
- package/dist/models/CreateStudySpaceFromTemplateDto.js +52 -0
- package/dist/models/QuizSharing.d.ts +50 -0
- package/dist/models/QuizSharing.js +62 -0
- package/dist/models/ResourceListItem.d.ts +16 -3
- package/dist/models/ResourceListItem.js +9 -0
- package/dist/models/ResourceSharing.d.ts +44 -0
- package/dist/models/ResourceSharing.js +58 -0
- package/dist/models/ScheduleStudySpaceTemplateDto.d.ts +32 -0
- package/dist/models/ScheduleStudySpaceTemplateDto.js +50 -0
- package/dist/models/SharedQuiz.d.ts +97 -0
- package/dist/models/SharedQuiz.js +98 -0
- package/dist/models/StudyObjective.d.ts +8 -1
- package/dist/models/StudyObjective.js +6 -1
- package/dist/models/StudySpace.d.ts +12 -0
- package/dist/models/StudySpace.js +8 -0
- package/dist/models/StudySpaceFromTemplate.d.ts +40 -0
- package/dist/models/StudySpaceFromTemplate.js +56 -0
- package/dist/models/StudySpaceTemplate.d.ts +117 -0
- package/dist/models/StudySpaceTemplate.js +109 -0
- package/dist/models/StudySpaceTemplateAnchor.d.ts +44 -0
- package/dist/models/StudySpaceTemplateAnchor.js +58 -0
- package/dist/models/StudySpaceTemplateConfirm.d.ts +33 -0
- package/dist/models/StudySpaceTemplateConfirm.js +51 -0
- package/dist/models/StudySpaceTemplateLegal.d.ts +32 -0
- package/dist/models/StudySpaceTemplateLegal.js +50 -0
- package/dist/models/StudySpaceTemplateLink.d.ts +38 -0
- package/dist/models/StudySpaceTemplateLink.js +54 -0
- package/dist/models/StudySpaceTemplateNotice.d.ts +38 -0
- package/dist/models/StudySpaceTemplateNotice.js +54 -0
- package/dist/models/StudySpaceTemplateObjective.d.ts +52 -0
- package/dist/models/StudySpaceTemplateObjective.js +66 -0
- package/dist/models/StudySpaceTemplateProvenance.d.ts +32 -0
- package/dist/models/StudySpaceTemplateProvenance.js +50 -0
- package/dist/models/StudySpaceTemplateSchedule.d.ts +51 -0
- package/dist/models/StudySpaceTemplateSchedule.js +65 -0
- package/dist/models/StudySpaceTemplateScheduleItem.d.ts +50 -0
- package/dist/models/StudySpaceTemplateScheduleItem.js +62 -0
- package/dist/models/SyllabusAnalysisObjective.d.ts +1 -0
- package/dist/models/SyllabusAnalysisObjective.js +2 -1
- package/dist/models/TriggerStudyObjectiveConceptExtractionItemStatus.d.ts +2 -1
- package/dist/models/TriggerStudyObjectiveConceptExtractionItemStatus.js +1 -0
- package/dist/models/UpcomingStudyObjective.d.ts +8 -1
- package/dist/models/UpcomingStudyObjective.js +6 -1
- package/dist/models/UpdateQuizSharingRequest.d.ts +32 -0
- package/dist/models/UpdateQuizSharingRequest.js +50 -0
- package/dist/models/index.d.ts +20 -0
- package/dist/models/index.js +20 -0
- package/package.json +1 -1
|
@@ -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.instanceOfAdminPaginatedQuizParticipantSessions = instanceOfAdminPaginatedQuizParticipantSessions;
|
|
17
|
+
exports.AdminPaginatedQuizParticipantSessionsFromJSON = AdminPaginatedQuizParticipantSessionsFromJSON;
|
|
18
|
+
exports.AdminPaginatedQuizParticipantSessionsFromJSONTyped = AdminPaginatedQuizParticipantSessionsFromJSONTyped;
|
|
19
|
+
exports.AdminPaginatedQuizParticipantSessionsToJSON = AdminPaginatedQuizParticipantSessionsToJSON;
|
|
20
|
+
exports.AdminPaginatedQuizParticipantSessionsToJSONTyped = AdminPaginatedQuizParticipantSessionsToJSONTyped;
|
|
21
|
+
const AdminQuizParticipantSessionListItem_1 = require("./AdminQuizParticipantSessionListItem");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AdminPaginatedQuizParticipantSessions interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAdminPaginatedQuizParticipantSessions(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 AdminPaginatedQuizParticipantSessionsFromJSON(json) {
|
|
33
|
+
return AdminPaginatedQuizParticipantSessionsFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function AdminPaginatedQuizParticipantSessionsFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'data': (json['data'].map(AdminQuizParticipantSessionListItem_1.AdminQuizParticipantSessionListItemFromJSON)),
|
|
41
|
+
'nextCursor': json['nextCursor'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function AdminPaginatedQuizParticipantSessionsToJSON(json) {
|
|
45
|
+
return AdminPaginatedQuizParticipantSessionsToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function AdminPaginatedQuizParticipantSessionsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'data': (value['data'].map(AdminQuizParticipantSessionListItem_1.AdminQuizParticipantSessionListItemToJSON)),
|
|
53
|
+
'nextCursor': value['nextCursor'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
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 { AdminQuizParticipantSessionScore } from './AdminQuizParticipantSessionScore';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AdminQuizParticipantSessionListItem
|
|
17
|
+
*/
|
|
18
|
+
export interface AdminQuizParticipantSessionListItem {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AdminQuizParticipantSessionListItem
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AdminQuizParticipantSessionListItem
|
|
29
|
+
*/
|
|
30
|
+
quizId: string;
|
|
31
|
+
/**
|
|
32
|
+
* External identifier of the learner who owns the session.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof AdminQuizParticipantSessionListItem
|
|
35
|
+
*/
|
|
36
|
+
userId: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* True for the quiz owner's own sessions, false for a learner who opened the quiz through its share link.
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
* @memberof AdminQuizParticipantSessionListItem
|
|
41
|
+
*/
|
|
42
|
+
isOwner: boolean;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof AdminQuizParticipantSessionListItem
|
|
47
|
+
*/
|
|
48
|
+
status: AdminQuizParticipantSessionListItemStatusEnum;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Date}
|
|
52
|
+
* @memberof AdminQuizParticipantSessionListItem
|
|
53
|
+
*/
|
|
54
|
+
startedAt: Date;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Date}
|
|
58
|
+
* @memberof AdminQuizParticipantSessionListItem
|
|
59
|
+
*/
|
|
60
|
+
completedAt: Date | null;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {AdminQuizParticipantSessionScore}
|
|
64
|
+
* @memberof AdminQuizParticipantSessionListItem
|
|
65
|
+
*/
|
|
66
|
+
score: AdminQuizParticipantSessionScore;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* @export
|
|
70
|
+
*/
|
|
71
|
+
export declare const AdminQuizParticipantSessionListItemStatusEnum: {
|
|
72
|
+
readonly Active: "active";
|
|
73
|
+
readonly Completed: "completed";
|
|
74
|
+
readonly Abandoned: "abandoned";
|
|
75
|
+
};
|
|
76
|
+
export type AdminQuizParticipantSessionListItemStatusEnum = typeof AdminQuizParticipantSessionListItemStatusEnum[keyof typeof AdminQuizParticipantSessionListItemStatusEnum];
|
|
77
|
+
/**
|
|
78
|
+
* Check if a given object implements the AdminQuizParticipantSessionListItem interface.
|
|
79
|
+
*/
|
|
80
|
+
export declare function instanceOfAdminQuizParticipantSessionListItem(value: object): value is AdminQuizParticipantSessionListItem;
|
|
81
|
+
export declare function AdminQuizParticipantSessionListItemFromJSON(json: any): AdminQuizParticipantSessionListItem;
|
|
82
|
+
export declare function AdminQuizParticipantSessionListItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminQuizParticipantSessionListItem;
|
|
83
|
+
export declare function AdminQuizParticipantSessionListItemToJSON(json: any): AdminQuizParticipantSessionListItem;
|
|
84
|
+
export declare function AdminQuizParticipantSessionListItemToJSONTyped(value?: AdminQuizParticipantSessionListItem | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,88 @@
|
|
|
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.AdminQuizParticipantSessionListItemStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfAdminQuizParticipantSessionListItem = instanceOfAdminQuizParticipantSessionListItem;
|
|
18
|
+
exports.AdminQuizParticipantSessionListItemFromJSON = AdminQuizParticipantSessionListItemFromJSON;
|
|
19
|
+
exports.AdminQuizParticipantSessionListItemFromJSONTyped = AdminQuizParticipantSessionListItemFromJSONTyped;
|
|
20
|
+
exports.AdminQuizParticipantSessionListItemToJSON = AdminQuizParticipantSessionListItemToJSON;
|
|
21
|
+
exports.AdminQuizParticipantSessionListItemToJSONTyped = AdminQuizParticipantSessionListItemToJSONTyped;
|
|
22
|
+
const AdminQuizParticipantSessionScore_1 = require("./AdminQuizParticipantSessionScore");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.AdminQuizParticipantSessionListItemStatusEnum = {
|
|
27
|
+
Active: 'active',
|
|
28
|
+
Completed: 'completed',
|
|
29
|
+
Abandoned: 'abandoned'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AdminQuizParticipantSessionListItem interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfAdminQuizParticipantSessionListItem(value) {
|
|
35
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('quizId' in value) || value['quizId'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('isOwner' in value) || value['isOwner'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('startedAt' in value) || value['startedAt'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('completedAt' in value) || value['completedAt'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('score' in value) || value['score'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
return true;
|
|
52
|
+
}
|
|
53
|
+
function AdminQuizParticipantSessionListItemFromJSON(json) {
|
|
54
|
+
return AdminQuizParticipantSessionListItemFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function AdminQuizParticipantSessionListItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'id': json['id'],
|
|
62
|
+
'quizId': json['quizId'],
|
|
63
|
+
'userId': json['userId'],
|
|
64
|
+
'isOwner': json['isOwner'],
|
|
65
|
+
'status': json['status'],
|
|
66
|
+
'startedAt': (new Date(json['startedAt'])),
|
|
67
|
+
'completedAt': (json['completedAt'] == null ? null : new Date(json['completedAt'])),
|
|
68
|
+
'score': (0, AdminQuizParticipantSessionScore_1.AdminQuizParticipantSessionScoreFromJSON)(json['score']),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
function AdminQuizParticipantSessionListItemToJSON(json) {
|
|
72
|
+
return AdminQuizParticipantSessionListItemToJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
function AdminQuizParticipantSessionListItemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
75
|
+
if (value == null) {
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
'id': value['id'],
|
|
80
|
+
'quizId': value['quizId'],
|
|
81
|
+
'userId': value['userId'],
|
|
82
|
+
'isOwner': value['isOwner'],
|
|
83
|
+
'status': value['status'],
|
|
84
|
+
'startedAt': value['startedAt'].toISOString(),
|
|
85
|
+
'completedAt': value['completedAt'] == null ? value['completedAt'] : value['completedAt'].toISOString(),
|
|
86
|
+
'score': (0, AdminQuizParticipantSessionScore_1.AdminQuizParticipantSessionScoreToJSON)(value['score']),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
@@ -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 AdminQuizParticipantSessionScore
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminQuizParticipantSessionScore {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof AdminQuizParticipantSessionScore
|
|
22
|
+
*/
|
|
23
|
+
totalCorrect: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof AdminQuizParticipantSessionScore
|
|
28
|
+
*/
|
|
29
|
+
totalQuestions: number;
|
|
30
|
+
/**
|
|
31
|
+
* Questions answered or rated in this session.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof AdminQuizParticipantSessionScore
|
|
34
|
+
*/
|
|
35
|
+
answeredCount: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the AdminQuizParticipantSessionScore interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfAdminQuizParticipantSessionScore(value: object): value is AdminQuizParticipantSessionScore;
|
|
41
|
+
export declare function AdminQuizParticipantSessionScoreFromJSON(json: any): AdminQuizParticipantSessionScore;
|
|
42
|
+
export declare function AdminQuizParticipantSessionScoreFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminQuizParticipantSessionScore;
|
|
43
|
+
export declare function AdminQuizParticipantSessionScoreToJSON(json: any): AdminQuizParticipantSessionScore;
|
|
44
|
+
export declare function AdminQuizParticipantSessionScoreToJSONTyped(value?: AdminQuizParticipantSessionScore | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
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.instanceOfAdminQuizParticipantSessionScore = instanceOfAdminQuizParticipantSessionScore;
|
|
17
|
+
exports.AdminQuizParticipantSessionScoreFromJSON = AdminQuizParticipantSessionScoreFromJSON;
|
|
18
|
+
exports.AdminQuizParticipantSessionScoreFromJSONTyped = AdminQuizParticipantSessionScoreFromJSONTyped;
|
|
19
|
+
exports.AdminQuizParticipantSessionScoreToJSON = AdminQuizParticipantSessionScoreToJSON;
|
|
20
|
+
exports.AdminQuizParticipantSessionScoreToJSONTyped = AdminQuizParticipantSessionScoreToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AdminQuizParticipantSessionScore interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAdminQuizParticipantSessionScore(value) {
|
|
25
|
+
if (!('totalCorrect' in value) || value['totalCorrect'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('totalQuestions' in value) || value['totalQuestions'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('answeredCount' in value) || value['answeredCount'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function AdminQuizParticipantSessionScoreFromJSON(json) {
|
|
34
|
+
return AdminQuizParticipantSessionScoreFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function AdminQuizParticipantSessionScoreFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'totalCorrect': json['totalCorrect'],
|
|
42
|
+
'totalQuestions': json['totalQuestions'],
|
|
43
|
+
'answeredCount': json['answeredCount'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function AdminQuizParticipantSessionScoreToJSON(json) {
|
|
47
|
+
return AdminQuizParticipantSessionScoreToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function AdminQuizParticipantSessionScoreToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'totalCorrect': value['totalCorrect'],
|
|
55
|
+
'totalQuestions': value['totalQuestions'],
|
|
56
|
+
'answeredCount': value['answeredCount'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -34,7 +34,7 @@ export interface AdminStudyObjectiveListItem {
|
|
|
34
34
|
*/
|
|
35
35
|
userId: string | null;
|
|
36
36
|
/**
|
|
37
|
-
* Derived origin: 'canvas' if linked to a Canvas object, else 'syllabus'
|
|
37
|
+
* Derived origin: 'canvas' if linked to a Canvas object, else 'syllabus' for syllabus-derived and 'custom' for learner-created or template-created objectives
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof AdminStudyObjectiveListItem
|
|
40
40
|
*/
|
|
@@ -157,6 +157,7 @@ export type AdminStudyObjectiveListItemOriginEnum = typeof AdminStudyObjectiveLi
|
|
|
157
157
|
export declare const AdminStudyObjectiveListItemSourceEnum: {
|
|
158
158
|
readonly User: "user";
|
|
159
159
|
readonly Syllabus: "syllabus";
|
|
160
|
+
readonly Template: "template";
|
|
160
161
|
};
|
|
161
162
|
export type AdminStudyObjectiveListItemSourceEnum = typeof AdminStudyObjectiveListItemSourceEnum[keyof typeof AdminStudyObjectiveListItemSourceEnum];
|
|
162
163
|
/**
|
|
@@ -32,7 +32,8 @@ exports.AdminStudyObjectiveListItemOriginEnum = {
|
|
|
32
32
|
*/
|
|
33
33
|
exports.AdminStudyObjectiveListItemSourceEnum = {
|
|
34
34
|
User: 'user',
|
|
35
|
-
Syllabus: 'syllabus'
|
|
35
|
+
Syllabus: 'syllabus',
|
|
36
|
+
Template: 'template'
|
|
36
37
|
};
|
|
37
38
|
/**
|
|
38
39
|
* Check if a given object implements the AdminStudyObjectiveListItem interface.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Athena API
|
|
3
|
+
* REST API for the Athena system
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CreateStudySpaceFromTemplateDto
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateStudySpaceFromTemplateDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateStudySpaceFromTemplateDto
|
|
22
|
+
*/
|
|
23
|
+
name?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof CreateStudySpaceFromTemplateDto
|
|
28
|
+
*/
|
|
29
|
+
startIndex: number | null;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the CreateStudySpaceFromTemplateDto interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfCreateStudySpaceFromTemplateDto(value: object): value is CreateStudySpaceFromTemplateDto;
|
|
35
|
+
export declare function CreateStudySpaceFromTemplateDtoFromJSON(json: any): CreateStudySpaceFromTemplateDto;
|
|
36
|
+
export declare function CreateStudySpaceFromTemplateDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateStudySpaceFromTemplateDto;
|
|
37
|
+
export declare function CreateStudySpaceFromTemplateDtoToJSON(json: any): CreateStudySpaceFromTemplateDto;
|
|
38
|
+
export declare function CreateStudySpaceFromTemplateDtoToJSONTyped(value?: CreateStudySpaceFromTemplateDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Athena API
|
|
6
|
+
* REST API for the Athena system
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfCreateStudySpaceFromTemplateDto = instanceOfCreateStudySpaceFromTemplateDto;
|
|
17
|
+
exports.CreateStudySpaceFromTemplateDtoFromJSON = CreateStudySpaceFromTemplateDtoFromJSON;
|
|
18
|
+
exports.CreateStudySpaceFromTemplateDtoFromJSONTyped = CreateStudySpaceFromTemplateDtoFromJSONTyped;
|
|
19
|
+
exports.CreateStudySpaceFromTemplateDtoToJSON = CreateStudySpaceFromTemplateDtoToJSON;
|
|
20
|
+
exports.CreateStudySpaceFromTemplateDtoToJSONTyped = CreateStudySpaceFromTemplateDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CreateStudySpaceFromTemplateDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCreateStudySpaceFromTemplateDto(value) {
|
|
25
|
+
if (!('startIndex' in value) || value['startIndex'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function CreateStudySpaceFromTemplateDtoFromJSON(json) {
|
|
30
|
+
return CreateStudySpaceFromTemplateDtoFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function CreateStudySpaceFromTemplateDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
38
|
+
'startIndex': json['startIndex'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function CreateStudySpaceFromTemplateDtoToJSON(json) {
|
|
42
|
+
return CreateStudySpaceFromTemplateDtoToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function CreateStudySpaceFromTemplateDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'name': value['name'],
|
|
50
|
+
'startIndex': value['startIndex'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -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 QuizSharing
|
|
16
|
+
*/
|
|
17
|
+
export interface QuizSharing {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof QuizSharing
|
|
22
|
+
*/
|
|
23
|
+
quizId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Whether other learners can currently open this quiz by link.
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof QuizSharing
|
|
28
|
+
*/
|
|
29
|
+
isShared: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* The link token other learners redeem through the shared-quizzes endpoints. Null while sharing is off. Re-enabling after a disable issues a new token; the old one stays dead.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof QuizSharing
|
|
34
|
+
*/
|
|
35
|
+
shareToken: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* When the current link was issued. Null while sharing is off.
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof QuizSharing
|
|
40
|
+
*/
|
|
41
|
+
sharedAt: Date | null;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the QuizSharing interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfQuizSharing(value: object): value is QuizSharing;
|
|
47
|
+
export declare function QuizSharingFromJSON(json: any): QuizSharing;
|
|
48
|
+
export declare function QuizSharingFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuizSharing;
|
|
49
|
+
export declare function QuizSharingToJSON(json: any): QuizSharing;
|
|
50
|
+
export declare function QuizSharingToJSONTyped(value?: QuizSharing | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Athena API
|
|
6
|
+
* REST API for the Athena system
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfQuizSharing = instanceOfQuizSharing;
|
|
17
|
+
exports.QuizSharingFromJSON = QuizSharingFromJSON;
|
|
18
|
+
exports.QuizSharingFromJSONTyped = QuizSharingFromJSONTyped;
|
|
19
|
+
exports.QuizSharingToJSON = QuizSharingToJSON;
|
|
20
|
+
exports.QuizSharingToJSONTyped = QuizSharingToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the QuizSharing interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfQuizSharing(value) {
|
|
25
|
+
if (!('quizId' in value) || value['quizId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('isShared' in value) || value['isShared'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('shareToken' in value) || value['shareToken'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('sharedAt' in value) || value['sharedAt'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function QuizSharingFromJSON(json) {
|
|
36
|
+
return QuizSharingFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function QuizSharingFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'quizId': json['quizId'],
|
|
44
|
+
'isShared': json['isShared'],
|
|
45
|
+
'shareToken': json['shareToken'],
|
|
46
|
+
'sharedAt': (json['sharedAt'] == null ? null : new Date(json['sharedAt'])),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function QuizSharingToJSON(json) {
|
|
50
|
+
return QuizSharingToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function QuizSharingToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'quizId': value['quizId'],
|
|
58
|
+
'isShared': value['isShared'],
|
|
59
|
+
'shareToken': value['shareToken'],
|
|
60
|
+
'sharedAt': value['sharedAt'] == null ? value['sharedAt'] : value['sharedAt'].toISOString(),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ResourceSharing } from './ResourceSharing';
|
|
12
13
|
import type { ResourceStudyObjective } from './ResourceStudyObjective';
|
|
13
14
|
import type { ResourceChat } from './ResourceChat';
|
|
14
15
|
import type { ResourceStudySpace } from './ResourceStudySpace';
|
|
@@ -61,6 +62,12 @@ export interface ResourceListItem {
|
|
|
61
62
|
* @memberof ResourceListItem
|
|
62
63
|
*/
|
|
63
64
|
createdAt: Date;
|
|
65
|
+
/**
|
|
66
|
+
* True when the caller generated this resource; false when they opened someone else's through a share link. Mirrors the `ownership` filter the list was requested with.
|
|
67
|
+
* @type {boolean}
|
|
68
|
+
* @memberof ResourceListItem
|
|
69
|
+
*/
|
|
70
|
+
isOwner: boolean;
|
|
64
71
|
/**
|
|
65
72
|
* Questions (or cards) persisted so far.
|
|
66
73
|
* @type {number}
|
|
@@ -94,19 +101,19 @@ export interface ResourceListItem {
|
|
|
94
101
|
*/
|
|
95
102
|
courseId: string | null;
|
|
96
103
|
/**
|
|
97
|
-
* The chat this resource was generated in. Null when that chat has been deleted.
|
|
104
|
+
* The chat this resource was generated in. Null when that chat has been deleted, and always null on a shared resource.
|
|
98
105
|
* @type {ResourceChat}
|
|
99
106
|
* @memberof ResourceListItem
|
|
100
107
|
*/
|
|
101
108
|
chat: ResourceChat | null;
|
|
102
109
|
/**
|
|
103
|
-
* The study objective the originating chat was filed under.
|
|
110
|
+
* The study objective the originating chat was filed under. Always null on a shared resource.
|
|
104
111
|
* @type {ResourceStudyObjective}
|
|
105
112
|
* @memberof ResourceListItem
|
|
106
113
|
*/
|
|
107
114
|
studyObjective: ResourceStudyObjective | null;
|
|
108
115
|
/**
|
|
109
|
-
* The study space this resource belongs to: the objective's space when it has one, else the learner's space for the attributed course.
|
|
116
|
+
* The study space this resource belongs to: the objective's space when it has one, else the learner's space for the attributed course. Always null on a shared resource.
|
|
110
117
|
* @type {ResourceStudySpace}
|
|
111
118
|
* @memberof ResourceListItem
|
|
112
119
|
*/
|
|
@@ -117,6 +124,12 @@ export interface ResourceListItem {
|
|
|
117
124
|
* @memberof ResourceListItem
|
|
118
125
|
*/
|
|
119
126
|
activity: ResourceActivity;
|
|
127
|
+
/**
|
|
128
|
+
* Link-sharing state and how many other learners have used the link.
|
|
129
|
+
* @type {ResourceSharing}
|
|
130
|
+
* @memberof ResourceListItem
|
|
131
|
+
*/
|
|
132
|
+
sharing: ResourceSharing;
|
|
120
133
|
}
|
|
121
134
|
/**
|
|
122
135
|
* @export
|
|
@@ -19,6 +19,7 @@ exports.ResourceListItemFromJSON = ResourceListItemFromJSON;
|
|
|
19
19
|
exports.ResourceListItemFromJSONTyped = ResourceListItemFromJSONTyped;
|
|
20
20
|
exports.ResourceListItemToJSON = ResourceListItemToJSON;
|
|
21
21
|
exports.ResourceListItemToJSONTyped = ResourceListItemToJSONTyped;
|
|
22
|
+
const ResourceSharing_1 = require("./ResourceSharing");
|
|
22
23
|
const ResourceStudyObjective_1 = require("./ResourceStudyObjective");
|
|
23
24
|
const ResourceChat_1 = require("./ResourceChat");
|
|
24
25
|
const ResourceStudySpace_1 = require("./ResourceStudySpace");
|
|
@@ -56,6 +57,8 @@ function instanceOfResourceListItem(value) {
|
|
|
56
57
|
return false;
|
|
57
58
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
58
59
|
return false;
|
|
60
|
+
if (!('isOwner' in value) || value['isOwner'] === undefined)
|
|
61
|
+
return false;
|
|
59
62
|
if (!('questionCount' in value) || value['questionCount'] === undefined)
|
|
60
63
|
return false;
|
|
61
64
|
if (!('questionTypeCounts' in value) || value['questionTypeCounts'] === undefined)
|
|
@@ -74,6 +77,8 @@ function instanceOfResourceListItem(value) {
|
|
|
74
77
|
return false;
|
|
75
78
|
if (!('activity' in value) || value['activity'] === undefined)
|
|
76
79
|
return false;
|
|
80
|
+
if (!('sharing' in value) || value['sharing'] === undefined)
|
|
81
|
+
return false;
|
|
77
82
|
return true;
|
|
78
83
|
}
|
|
79
84
|
function ResourceListItemFromJSON(json) {
|
|
@@ -91,6 +96,7 @@ function ResourceListItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
91
96
|
'generationStatus': json['generationStatus'],
|
|
92
97
|
'expectedQuestionCount': json['expectedQuestionCount'],
|
|
93
98
|
'createdAt': (new Date(json['createdAt'])),
|
|
99
|
+
'isOwner': json['isOwner'],
|
|
94
100
|
'questionCount': json['questionCount'],
|
|
95
101
|
'questionTypeCounts': json['questionTypeCounts'],
|
|
96
102
|
'topics': json['topics'],
|
|
@@ -100,6 +106,7 @@ function ResourceListItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
100
106
|
'studyObjective': (0, ResourceStudyObjective_1.ResourceStudyObjectiveFromJSON)(json['studyObjective']),
|
|
101
107
|
'studySpace': (0, ResourceStudySpace_1.ResourceStudySpaceFromJSON)(json['studySpace']),
|
|
102
108
|
'activity': (0, ResourceActivity_1.ResourceActivityFromJSON)(json['activity']),
|
|
109
|
+
'sharing': (0, ResourceSharing_1.ResourceSharingFromJSON)(json['sharing']),
|
|
103
110
|
};
|
|
104
111
|
}
|
|
105
112
|
function ResourceListItemToJSON(json) {
|
|
@@ -117,6 +124,7 @@ function ResourceListItemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
117
124
|
'generationStatus': value['generationStatus'],
|
|
118
125
|
'expectedQuestionCount': value['expectedQuestionCount'],
|
|
119
126
|
'createdAt': value['createdAt'].toISOString(),
|
|
127
|
+
'isOwner': value['isOwner'],
|
|
120
128
|
'questionCount': value['questionCount'],
|
|
121
129
|
'questionTypeCounts': value['questionTypeCounts'],
|
|
122
130
|
'topics': value['topics'],
|
|
@@ -126,5 +134,6 @@ function ResourceListItemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
126
134
|
'studyObjective': (0, ResourceStudyObjective_1.ResourceStudyObjectiveToJSON)(value['studyObjective']),
|
|
127
135
|
'studySpace': (0, ResourceStudySpace_1.ResourceStudySpaceToJSON)(value['studySpace']),
|
|
128
136
|
'activity': (0, ResourceActivity_1.ResourceActivityToJSON)(value['activity']),
|
|
137
|
+
'sharing': (0, ResourceSharing_1.ResourceSharingToJSON)(value['sharing']),
|
|
129
138
|
};
|
|
130
139
|
}
|