@instructure/athena-api-client 3.38.9 → 3.39.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.
Files changed (42) hide show
  1. package/README.md +8 -0
  2. package/dist/apis/ResourcesApi.d.ts +55 -0
  3. package/dist/apis/ResourcesApi.js +106 -0
  4. package/dist/apis/index.d.ts +1 -0
  5. package/dist/apis/index.js +1 -0
  6. package/dist/esm/apis/ResourcesApi.d.ts +55 -0
  7. package/dist/esm/apis/ResourcesApi.js +102 -0
  8. package/dist/esm/apis/index.d.ts +1 -0
  9. package/dist/esm/apis/index.js +1 -0
  10. package/dist/esm/models/PaginatedResources.d.ts +39 -0
  11. package/dist/esm/models/PaginatedResources.js +48 -0
  12. package/dist/esm/models/ResourceActivity.d.ts +114 -0
  13. package/dist/esm/models/ResourceActivity.js +100 -0
  14. package/dist/esm/models/ResourceChat.d.ts +56 -0
  15. package/dist/esm/models/ResourceChat.js +59 -0
  16. package/dist/esm/models/ResourceListItem.d.ts +145 -0
  17. package/dist/esm/models/ResourceListItem.js +122 -0
  18. package/dist/esm/models/ResourceSession.d.ts +95 -0
  19. package/dist/esm/models/ResourceSession.js +87 -0
  20. package/dist/esm/models/ResourceStudyObjective.d.ts +50 -0
  21. package/dist/esm/models/ResourceStudyObjective.js +55 -0
  22. package/dist/esm/models/ResourceStudySpace.d.ts +44 -0
  23. package/dist/esm/models/ResourceStudySpace.js +51 -0
  24. package/dist/esm/models/index.d.ts +7 -0
  25. package/dist/esm/models/index.js +7 -0
  26. package/dist/models/PaginatedResources.d.ts +39 -0
  27. package/dist/models/PaginatedResources.js +55 -0
  28. package/dist/models/ResourceActivity.d.ts +114 -0
  29. package/dist/models/ResourceActivity.js +108 -0
  30. package/dist/models/ResourceChat.d.ts +56 -0
  31. package/dist/models/ResourceChat.js +66 -0
  32. package/dist/models/ResourceListItem.d.ts +145 -0
  33. package/dist/models/ResourceListItem.js +130 -0
  34. package/dist/models/ResourceSession.d.ts +95 -0
  35. package/dist/models/ResourceSession.js +95 -0
  36. package/dist/models/ResourceStudyObjective.d.ts +50 -0
  37. package/dist/models/ResourceStudyObjective.js +62 -0
  38. package/dist/models/ResourceStudySpace.d.ts +44 -0
  39. package/dist/models/ResourceStudySpace.js +58 -0
  40. package/dist/models/index.d.ts +7 -0
  41. package/dist/models/index.js +7 -0
  42. package/package.json +1 -1
@@ -0,0 +1,145 @@
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 { ResourceStudyObjective } from './ResourceStudyObjective';
13
+ import type { ResourceChat } from './ResourceChat';
14
+ import type { ResourceStudySpace } from './ResourceStudySpace';
15
+ import type { ResourceActivity } from './ResourceActivity';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ResourceListItem
20
+ */
21
+ export interface ResourceListItem {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ResourceListItem
26
+ */
27
+ id: string;
28
+ /**
29
+ * What kind of generated resource this is.
30
+ * @type {string}
31
+ * @memberof ResourceListItem
32
+ */
33
+ type: ResourceListItemTypeEnum;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof ResourceListItem
38
+ */
39
+ title: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof ResourceListItem
44
+ */
45
+ topic: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof ResourceListItem
50
+ */
51
+ generationStatus: ResourceListItemGenerationStatusEnum;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof ResourceListItem
56
+ */
57
+ expectedQuestionCount: number | null;
58
+ /**
59
+ *
60
+ * @type {Date}
61
+ * @memberof ResourceListItem
62
+ */
63
+ createdAt: Date;
64
+ /**
65
+ * Questions (or cards) persisted so far.
66
+ * @type {number}
67
+ * @memberof ResourceListItem
68
+ */
69
+ questionCount: number;
70
+ /**
71
+ * Question count per question type, e.g. {"mcq": 4, "fill-blank": 1}.
72
+ * @type {{ [key: string]: number; }}
73
+ * @memberof ResourceListItem
74
+ */
75
+ questionTypeCounts: {
76
+ [key: string]: number;
77
+ };
78
+ /**
79
+ * Distinct question topics, sorted. Empty when none recorded.
80
+ * @type {Array<string>}
81
+ * @memberof ResourceListItem
82
+ */
83
+ topics: Array<string>;
84
+ /**
85
+ * Distinct knowledge concepts the questions are tagged with.
86
+ * @type {number}
87
+ * @memberof ResourceListItem
88
+ */
89
+ conceptCount: number;
90
+ /**
91
+ * External Canvas course this resource is attributed to, resolved through the chat, its study objective, or its practice slot. Null when no source knows a course.
92
+ * @type {string}
93
+ * @memberof ResourceListItem
94
+ */
95
+ courseId: string | null;
96
+ /**
97
+ * The chat this resource was generated in. Null when that chat has been deleted.
98
+ * @type {ResourceChat}
99
+ * @memberof ResourceListItem
100
+ */
101
+ chat: ResourceChat | null;
102
+ /**
103
+ * The study objective the originating chat was filed under.
104
+ * @type {ResourceStudyObjective}
105
+ * @memberof ResourceListItem
106
+ */
107
+ studyObjective: ResourceStudyObjective | null;
108
+ /**
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.
110
+ * @type {ResourceStudySpace}
111
+ * @memberof ResourceListItem
112
+ */
113
+ studySpace: ResourceStudySpace | null;
114
+ /**
115
+ *
116
+ * @type {ResourceActivity}
117
+ * @memberof ResourceListItem
118
+ */
119
+ activity: ResourceActivity;
120
+ }
121
+ /**
122
+ * @export
123
+ */
124
+ export declare const ResourceListItemTypeEnum: {
125
+ readonly Quiz: "quiz";
126
+ readonly Flashcards: "flashcards";
127
+ };
128
+ export type ResourceListItemTypeEnum = typeof ResourceListItemTypeEnum[keyof typeof ResourceListItemTypeEnum];
129
+ /**
130
+ * @export
131
+ */
132
+ export declare const ResourceListItemGenerationStatusEnum: {
133
+ readonly Generating: "generating";
134
+ readonly Ready: "ready";
135
+ readonly Failed: "failed";
136
+ };
137
+ export type ResourceListItemGenerationStatusEnum = typeof ResourceListItemGenerationStatusEnum[keyof typeof ResourceListItemGenerationStatusEnum];
138
+ /**
139
+ * Check if a given object implements the ResourceListItem interface.
140
+ */
141
+ export declare function instanceOfResourceListItem(value: object): value is ResourceListItem;
142
+ export declare function ResourceListItemFromJSON(json: any): ResourceListItem;
143
+ export declare function ResourceListItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceListItem;
144
+ export declare function ResourceListItemToJSON(json: any): ResourceListItem;
145
+ export declare function ResourceListItemToJSONTyped(value?: ResourceListItem | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,130 @@
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.ResourceListItemGenerationStatusEnum = exports.ResourceListItemTypeEnum = void 0;
17
+ exports.instanceOfResourceListItem = instanceOfResourceListItem;
18
+ exports.ResourceListItemFromJSON = ResourceListItemFromJSON;
19
+ exports.ResourceListItemFromJSONTyped = ResourceListItemFromJSONTyped;
20
+ exports.ResourceListItemToJSON = ResourceListItemToJSON;
21
+ exports.ResourceListItemToJSONTyped = ResourceListItemToJSONTyped;
22
+ const ResourceStudyObjective_1 = require("./ResourceStudyObjective");
23
+ const ResourceChat_1 = require("./ResourceChat");
24
+ const ResourceStudySpace_1 = require("./ResourceStudySpace");
25
+ const ResourceActivity_1 = require("./ResourceActivity");
26
+ /**
27
+ * @export
28
+ */
29
+ exports.ResourceListItemTypeEnum = {
30
+ Quiz: 'quiz',
31
+ Flashcards: 'flashcards'
32
+ };
33
+ /**
34
+ * @export
35
+ */
36
+ exports.ResourceListItemGenerationStatusEnum = {
37
+ Generating: 'generating',
38
+ Ready: 'ready',
39
+ Failed: 'failed'
40
+ };
41
+ /**
42
+ * Check if a given object implements the ResourceListItem interface.
43
+ */
44
+ function instanceOfResourceListItem(value) {
45
+ if (!('id' in value) || value['id'] === undefined)
46
+ return false;
47
+ if (!('type' in value) || value['type'] === undefined)
48
+ return false;
49
+ if (!('title' in value) || value['title'] === undefined)
50
+ return false;
51
+ if (!('topic' in value) || value['topic'] === undefined)
52
+ return false;
53
+ if (!('generationStatus' in value) || value['generationStatus'] === undefined)
54
+ return false;
55
+ if (!('expectedQuestionCount' in value) || value['expectedQuestionCount'] === undefined)
56
+ return false;
57
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
58
+ return false;
59
+ if (!('questionCount' in value) || value['questionCount'] === undefined)
60
+ return false;
61
+ if (!('questionTypeCounts' in value) || value['questionTypeCounts'] === undefined)
62
+ return false;
63
+ if (!('topics' in value) || value['topics'] === undefined)
64
+ return false;
65
+ if (!('conceptCount' in value) || value['conceptCount'] === undefined)
66
+ return false;
67
+ if (!('courseId' in value) || value['courseId'] === undefined)
68
+ return false;
69
+ if (!('chat' in value) || value['chat'] === undefined)
70
+ return false;
71
+ if (!('studyObjective' in value) || value['studyObjective'] === undefined)
72
+ return false;
73
+ if (!('studySpace' in value) || value['studySpace'] === undefined)
74
+ return false;
75
+ if (!('activity' in value) || value['activity'] === undefined)
76
+ return false;
77
+ return true;
78
+ }
79
+ function ResourceListItemFromJSON(json) {
80
+ return ResourceListItemFromJSONTyped(json, false);
81
+ }
82
+ function ResourceListItemFromJSONTyped(json, ignoreDiscriminator) {
83
+ if (json == null) {
84
+ return json;
85
+ }
86
+ return {
87
+ 'id': json['id'],
88
+ 'type': json['type'],
89
+ 'title': json['title'],
90
+ 'topic': json['topic'],
91
+ 'generationStatus': json['generationStatus'],
92
+ 'expectedQuestionCount': json['expectedQuestionCount'],
93
+ 'createdAt': (new Date(json['createdAt'])),
94
+ 'questionCount': json['questionCount'],
95
+ 'questionTypeCounts': json['questionTypeCounts'],
96
+ 'topics': json['topics'],
97
+ 'conceptCount': json['conceptCount'],
98
+ 'courseId': json['courseId'],
99
+ 'chat': (0, ResourceChat_1.ResourceChatFromJSON)(json['chat']),
100
+ 'studyObjective': (0, ResourceStudyObjective_1.ResourceStudyObjectiveFromJSON)(json['studyObjective']),
101
+ 'studySpace': (0, ResourceStudySpace_1.ResourceStudySpaceFromJSON)(json['studySpace']),
102
+ 'activity': (0, ResourceActivity_1.ResourceActivityFromJSON)(json['activity']),
103
+ };
104
+ }
105
+ function ResourceListItemToJSON(json) {
106
+ return ResourceListItemToJSONTyped(json, false);
107
+ }
108
+ function ResourceListItemToJSONTyped(value, ignoreDiscriminator = false) {
109
+ if (value == null) {
110
+ return value;
111
+ }
112
+ return {
113
+ 'id': value['id'],
114
+ 'type': value['type'],
115
+ 'title': value['title'],
116
+ 'topic': value['topic'],
117
+ 'generationStatus': value['generationStatus'],
118
+ 'expectedQuestionCount': value['expectedQuestionCount'],
119
+ 'createdAt': value['createdAt'].toISOString(),
120
+ 'questionCount': value['questionCount'],
121
+ 'questionTypeCounts': value['questionTypeCounts'],
122
+ 'topics': value['topics'],
123
+ 'conceptCount': value['conceptCount'],
124
+ 'courseId': value['courseId'],
125
+ 'chat': (0, ResourceChat_1.ResourceChatToJSON)(value['chat']),
126
+ 'studyObjective': (0, ResourceStudyObjective_1.ResourceStudyObjectiveToJSON)(value['studyObjective']),
127
+ 'studySpace': (0, ResourceStudySpace_1.ResourceStudySpaceToJSON)(value['studySpace']),
128
+ 'activity': (0, ResourceActivity_1.ResourceActivityToJSON)(value['activity']),
129
+ };
130
+ }
@@ -0,0 +1,95 @@
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 ResourceSession
16
+ */
17
+ export interface ResourceSession {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ResourceSession
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ResourceSession
28
+ */
29
+ status: ResourceSessionStatusEnum;
30
+ /**
31
+ *
32
+ * @type {Date}
33
+ * @memberof ResourceSession
34
+ */
35
+ startedAt: Date;
36
+ /**
37
+ *
38
+ * @type {Date}
39
+ * @memberof ResourceSession
40
+ */
41
+ completedAt: Date | null;
42
+ /**
43
+ * When the learner last answered a question in this session.
44
+ * @type {Date}
45
+ * @memberof ResourceSession
46
+ */
47
+ lastResponseAt: Date | null;
48
+ /**
49
+ * Questions the learner answered or rated in this session.
50
+ * @type {number}
51
+ * @memberof ResourceSession
52
+ */
53
+ answeredCount: number;
54
+ /**
55
+ * Answers marked correct, plus flashcards the learner rated as known.
56
+ * @type {number}
57
+ * @memberof ResourceSession
58
+ */
59
+ correctCount: number;
60
+ /**
61
+ * Answers marked incorrect. Flashcard ratings never count here.
62
+ * @type {number}
63
+ * @memberof ResourceSession
64
+ */
65
+ incorrectCount: number;
66
+ /**
67
+ * Flashcards the learner rated as "need practice".
68
+ * @type {number}
69
+ * @memberof ResourceSession
70
+ */
71
+ needPracticeCount: number;
72
+ /**
73
+ * Questions in the quiz the learner has not answered in this session.
74
+ * @type {number}
75
+ * @memberof ResourceSession
76
+ */
77
+ remainingCount: number;
78
+ }
79
+ /**
80
+ * @export
81
+ */
82
+ export declare const ResourceSessionStatusEnum: {
83
+ readonly Active: "active";
84
+ readonly Completed: "completed";
85
+ readonly Abandoned: "abandoned";
86
+ };
87
+ export type ResourceSessionStatusEnum = typeof ResourceSessionStatusEnum[keyof typeof ResourceSessionStatusEnum];
88
+ /**
89
+ * Check if a given object implements the ResourceSession interface.
90
+ */
91
+ export declare function instanceOfResourceSession(value: object): value is ResourceSession;
92
+ export declare function ResourceSessionFromJSON(json: any): ResourceSession;
93
+ export declare function ResourceSessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceSession;
94
+ export declare function ResourceSessionToJSON(json: any): ResourceSession;
95
+ export declare function ResourceSessionToJSONTyped(value?: ResourceSession | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,95 @@
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.ResourceSessionStatusEnum = void 0;
17
+ exports.instanceOfResourceSession = instanceOfResourceSession;
18
+ exports.ResourceSessionFromJSON = ResourceSessionFromJSON;
19
+ exports.ResourceSessionFromJSONTyped = ResourceSessionFromJSONTyped;
20
+ exports.ResourceSessionToJSON = ResourceSessionToJSON;
21
+ exports.ResourceSessionToJSONTyped = ResourceSessionToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.ResourceSessionStatusEnum = {
26
+ Active: 'active',
27
+ Completed: 'completed',
28
+ Abandoned: 'abandoned'
29
+ };
30
+ /**
31
+ * Check if a given object implements the ResourceSession interface.
32
+ */
33
+ function instanceOfResourceSession(value) {
34
+ if (!('id' in value) || value['id'] === undefined)
35
+ return false;
36
+ if (!('status' in value) || value['status'] === undefined)
37
+ return false;
38
+ if (!('startedAt' in value) || value['startedAt'] === undefined)
39
+ return false;
40
+ if (!('completedAt' in value) || value['completedAt'] === undefined)
41
+ return false;
42
+ if (!('lastResponseAt' in value) || value['lastResponseAt'] === undefined)
43
+ return false;
44
+ if (!('answeredCount' in value) || value['answeredCount'] === undefined)
45
+ return false;
46
+ if (!('correctCount' in value) || value['correctCount'] === undefined)
47
+ return false;
48
+ if (!('incorrectCount' in value) || value['incorrectCount'] === undefined)
49
+ return false;
50
+ if (!('needPracticeCount' in value) || value['needPracticeCount'] === undefined)
51
+ return false;
52
+ if (!('remainingCount' in value) || value['remainingCount'] === undefined)
53
+ return false;
54
+ return true;
55
+ }
56
+ function ResourceSessionFromJSON(json) {
57
+ return ResourceSessionFromJSONTyped(json, false);
58
+ }
59
+ function ResourceSessionFromJSONTyped(json, ignoreDiscriminator) {
60
+ if (json == null) {
61
+ return json;
62
+ }
63
+ return {
64
+ 'id': json['id'],
65
+ 'status': json['status'],
66
+ 'startedAt': (new Date(json['startedAt'])),
67
+ 'completedAt': (json['completedAt'] == null ? null : new Date(json['completedAt'])),
68
+ 'lastResponseAt': (json['lastResponseAt'] == null ? null : new Date(json['lastResponseAt'])),
69
+ 'answeredCount': json['answeredCount'],
70
+ 'correctCount': json['correctCount'],
71
+ 'incorrectCount': json['incorrectCount'],
72
+ 'needPracticeCount': json['needPracticeCount'],
73
+ 'remainingCount': json['remainingCount'],
74
+ };
75
+ }
76
+ function ResourceSessionToJSON(json) {
77
+ return ResourceSessionToJSONTyped(json, false);
78
+ }
79
+ function ResourceSessionToJSONTyped(value, ignoreDiscriminator = false) {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+ return {
84
+ 'id': value['id'],
85
+ 'status': value['status'],
86
+ 'startedAt': value['startedAt'].toISOString(),
87
+ 'completedAt': value['completedAt'] == null ? value['completedAt'] : value['completedAt'].toISOString(),
88
+ 'lastResponseAt': value['lastResponseAt'] == null ? value['lastResponseAt'] : value['lastResponseAt'].toISOString(),
89
+ 'answeredCount': value['answeredCount'],
90
+ 'correctCount': value['correctCount'],
91
+ 'incorrectCount': value['incorrectCount'],
92
+ 'needPracticeCount': value['needPracticeCount'],
93
+ 'remainingCount': value['remainingCount'],
94
+ };
95
+ }
@@ -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,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.instanceOfResourceStudyObjective = instanceOfResourceStudyObjective;
17
+ exports.ResourceStudyObjectiveFromJSON = ResourceStudyObjectiveFromJSON;
18
+ exports.ResourceStudyObjectiveFromJSONTyped = ResourceStudyObjectiveFromJSONTyped;
19
+ exports.ResourceStudyObjectiveToJSON = ResourceStudyObjectiveToJSON;
20
+ exports.ResourceStudyObjectiveToJSONTyped = ResourceStudyObjectiveToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ResourceStudyObjective interface.
23
+ */
24
+ function instanceOfResourceStudyObjective(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 (!('dueAt' in value) || value['dueAt'] === undefined)
30
+ return false;
31
+ if (!('studySpaceId' in value) || value['studySpaceId'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function ResourceStudyObjectiveFromJSON(json) {
36
+ return ResourceStudyObjectiveFromJSONTyped(json, false);
37
+ }
38
+ function ResourceStudyObjectiveFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'id': json['id'],
44
+ 'title': json['title'],
45
+ 'dueAt': (json['dueAt'] == null ? null : new Date(json['dueAt'])),
46
+ 'studySpaceId': json['studySpaceId'],
47
+ };
48
+ }
49
+ function ResourceStudyObjectiveToJSON(json) {
50
+ return ResourceStudyObjectiveToJSONTyped(json, false);
51
+ }
52
+ function ResourceStudyObjectiveToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'id': value['id'],
58
+ 'title': value['title'],
59
+ 'dueAt': value['dueAt'] == null ? value['dueAt'] : value['dueAt'].toISOString(),
60
+ 'studySpaceId': value['studySpaceId'],
61
+ };
62
+ }
@@ -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,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.instanceOfResourceStudySpace = instanceOfResourceStudySpace;
17
+ exports.ResourceStudySpaceFromJSON = ResourceStudySpaceFromJSON;
18
+ exports.ResourceStudySpaceFromJSONTyped = ResourceStudySpaceFromJSONTyped;
19
+ exports.ResourceStudySpaceToJSON = ResourceStudySpaceToJSON;
20
+ exports.ResourceStudySpaceToJSONTyped = ResourceStudySpaceToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ResourceStudySpace interface.
23
+ */
24
+ function instanceOfResourceStudySpace(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 (!('courseId' in value) || value['courseId'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function ResourceStudySpaceFromJSON(json) {
34
+ return ResourceStudySpaceFromJSONTyped(json, false);
35
+ }
36
+ function ResourceStudySpaceFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'id': json['id'],
42
+ 'title': json['title'],
43
+ 'courseId': json['courseId'],
44
+ };
45
+ }
46
+ function ResourceStudySpaceToJSON(json) {
47
+ return ResourceStudySpaceToJSONTyped(json, false);
48
+ }
49
+ function ResourceStudySpaceToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'id': value['id'],
55
+ 'title': value['title'],
56
+ 'courseId': value['courseId'],
57
+ };
58
+ }