@instructure/athena-api-client 1.0.10 → 1.0.11

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 (162) hide show
  1. package/README.md +30 -7
  2. package/dist/apis/AccountsApi.d.ts +13 -5
  3. package/dist/apis/AccountsApi.js +38 -4
  4. package/dist/apis/ChatsApi.d.ts +8 -7
  5. package/dist/apis/ChatsApi.js +22 -13
  6. package/dist/apis/FeatureOverridesApi.d.ts +51 -0
  7. package/dist/apis/FeatureOverridesApi.js +131 -0
  8. package/dist/apis/FeaturesApi.d.ts +71 -0
  9. package/dist/apis/FeaturesApi.js +199 -0
  10. package/dist/apis/HealthApi.d.ts +3 -2
  11. package/dist/apis/HealthApi.js +4 -2
  12. package/dist/apis/LearningDaysApi.d.ts +1 -1
  13. package/dist/apis/LearningDaysApi.js +3 -3
  14. package/dist/apis/MessagesApi.d.ts +10 -10
  15. package/dist/apis/MessagesApi.js +18 -18
  16. package/dist/apis/PlansApi.d.ts +71 -0
  17. package/dist/apis/PlansApi.js +199 -0
  18. package/dist/apis/QuizSessionsApi.d.ts +4 -4
  19. package/dist/apis/QuizSessionsApi.js +12 -12
  20. package/dist/apis/QuizzesApi.d.ts +1 -1
  21. package/dist/apis/QuizzesApi.js +3 -3
  22. package/dist/apis/ServiceTokensApi.d.ts +0 -10
  23. package/dist/apis/ServiceTokensApi.js +0 -10
  24. package/dist/apis/TagsApi.d.ts +0 -2
  25. package/dist/apis/TagsApi.js +0 -2
  26. package/dist/apis/VotesApi.d.ts +5 -5
  27. package/dist/apis/VotesApi.js +7 -7
  28. package/dist/apis/index.d.ts +3 -0
  29. package/dist/apis/index.js +3 -0
  30. package/dist/esm/apis/AccountsApi.d.ts +13 -5
  31. package/dist/esm/apis/AccountsApi.js +39 -5
  32. package/dist/esm/apis/ChatsApi.d.ts +8 -7
  33. package/dist/esm/apis/ChatsApi.js +22 -13
  34. package/dist/esm/apis/FeatureOverridesApi.d.ts +51 -0
  35. package/dist/esm/apis/FeatureOverridesApi.js +127 -0
  36. package/dist/esm/apis/FeaturesApi.d.ts +71 -0
  37. package/dist/esm/apis/FeaturesApi.js +195 -0
  38. package/dist/esm/apis/HealthApi.d.ts +3 -2
  39. package/dist/esm/apis/HealthApi.js +4 -2
  40. package/dist/esm/apis/LearningDaysApi.d.ts +1 -1
  41. package/dist/esm/apis/LearningDaysApi.js +3 -3
  42. package/dist/esm/apis/MessagesApi.d.ts +10 -10
  43. package/dist/esm/apis/MessagesApi.js +19 -19
  44. package/dist/esm/apis/PlansApi.d.ts +71 -0
  45. package/dist/esm/apis/PlansApi.js +195 -0
  46. package/dist/esm/apis/QuizSessionsApi.d.ts +4 -4
  47. package/dist/esm/apis/QuizSessionsApi.js +12 -12
  48. package/dist/esm/apis/QuizzesApi.d.ts +1 -1
  49. package/dist/esm/apis/QuizzesApi.js +3 -3
  50. package/dist/esm/apis/ServiceTokensApi.d.ts +0 -10
  51. package/dist/esm/apis/ServiceTokensApi.js +0 -10
  52. package/dist/esm/apis/TagsApi.d.ts +0 -2
  53. package/dist/esm/apis/TagsApi.js +0 -2
  54. package/dist/esm/apis/VotesApi.d.ts +5 -5
  55. package/dist/esm/apis/VotesApi.js +8 -8
  56. package/dist/esm/apis/index.d.ts +3 -0
  57. package/dist/esm/apis/index.js +3 -0
  58. package/dist/esm/models/ChatRequest.d.ts +1 -1
  59. package/dist/esm/models/ChatRequest.js +3 -1
  60. package/dist/esm/models/CreateFeatureDto.d.ts +44 -0
  61. package/dist/esm/models/CreateFeatureDto.js +49 -0
  62. package/dist/esm/models/CreateMessagesRequestMessagesInner.d.ts +8 -4
  63. package/dist/esm/models/CreateMessagesResponse.d.ts +33 -0
  64. package/dist/esm/models/CreateMessagesResponse.js +44 -0
  65. package/dist/esm/models/CreatePlanDto.d.ts +38 -0
  66. package/dist/esm/models/CreatePlanDto.js +47 -0
  67. package/dist/esm/models/FeatureEntity.d.ts +62 -0
  68. package/dist/esm/models/FeatureEntity.js +61 -0
  69. package/dist/esm/models/FeatureOverrideEntity.d.ts +62 -0
  70. package/dist/esm/models/FeatureOverrideEntity.js +63 -0
  71. package/dist/esm/models/HealthCheck.d.ts +1 -8
  72. package/dist/esm/models/HealthCheck.js +0 -6
  73. package/dist/esm/models/LearningMoment.d.ts +3 -3
  74. package/dist/esm/models/LearningMoment.js +9 -3
  75. package/dist/esm/models/LearningStreakResponse.d.ts +2 -2
  76. package/dist/esm/models/LearningStreakResponse.js +6 -2
  77. package/dist/esm/models/Message.d.ts +6 -6
  78. package/dist/esm/models/Message.js +6 -6
  79. package/dist/esm/models/MessageAttachment.d.ts +61 -0
  80. package/dist/esm/models/MessageAttachment.js +61 -0
  81. package/dist/esm/models/MessagePart.d.ts +38 -0
  82. package/dist/esm/models/MessagePart.js +43 -0
  83. package/dist/esm/models/PaginatedMessages.d.ts +1 -1
  84. package/dist/esm/models/Plan.d.ts +56 -0
  85. package/dist/esm/models/Plan.js +59 -0
  86. package/dist/esm/models/QuizQuestion.d.ts +4 -4
  87. package/dist/esm/models/QuizQuestion.js +12 -4
  88. package/dist/esm/models/QuizResponse.d.ts +2 -2
  89. package/dist/esm/models/QuizResponse.js +6 -2
  90. package/dist/esm/models/QuizSessionSummary.d.ts +3 -3
  91. package/dist/esm/models/QuizSessionSummary.js +3 -3
  92. package/dist/esm/models/Score.d.ts +47 -0
  93. package/dist/esm/models/Score.js +53 -0
  94. package/dist/esm/models/UpdateAccountDto.d.ts +32 -0
  95. package/dist/esm/models/UpdateAccountDto.js +43 -0
  96. package/dist/esm/models/UpdateFeatureDto.d.ts +44 -0
  97. package/dist/esm/models/UpdateFeatureDto.js +45 -0
  98. package/dist/esm/models/UpdatePlanDto.d.ts +38 -0
  99. package/dist/esm/models/UpdatePlanDto.js +43 -0
  100. package/dist/esm/models/UploadUrlFile.d.ts +56 -0
  101. package/dist/esm/models/UploadUrlFile.js +59 -0
  102. package/dist/esm/models/UploadUrlResponse.d.ts +3 -3
  103. package/dist/esm/models/UploadUrlResponse.js +3 -3
  104. package/dist/esm/models/UpsertOverrideDto.d.ts +44 -0
  105. package/dist/esm/models/UpsertOverrideDto.js +51 -0
  106. package/dist/esm/models/VotesResponse.d.ts +33 -0
  107. package/dist/esm/models/VotesResponse.js +44 -0
  108. package/dist/esm/models/index.d.ts +16 -7
  109. package/dist/esm/models/index.js +16 -7
  110. package/dist/models/ChatRequest.d.ts +1 -1
  111. package/dist/models/ChatRequest.js +3 -1
  112. package/dist/models/CreateFeatureDto.d.ts +44 -0
  113. package/dist/models/CreateFeatureDto.js +56 -0
  114. package/dist/models/CreateMessagesRequestMessagesInner.d.ts +8 -4
  115. package/dist/models/CreateMessagesResponse.d.ts +33 -0
  116. package/dist/models/CreateMessagesResponse.js +51 -0
  117. package/dist/models/CreatePlanDto.d.ts +38 -0
  118. package/dist/models/CreatePlanDto.js +54 -0
  119. package/dist/models/FeatureEntity.d.ts +62 -0
  120. package/dist/models/FeatureEntity.js +68 -0
  121. package/dist/models/FeatureOverrideEntity.d.ts +62 -0
  122. package/dist/models/FeatureOverrideEntity.js +70 -0
  123. package/dist/models/HealthCheck.d.ts +1 -8
  124. package/dist/models/HealthCheck.js +0 -7
  125. package/dist/models/LearningMoment.d.ts +3 -3
  126. package/dist/models/LearningMoment.js +9 -3
  127. package/dist/models/LearningStreakResponse.d.ts +2 -2
  128. package/dist/models/LearningStreakResponse.js +6 -2
  129. package/dist/models/Message.d.ts +6 -6
  130. package/dist/models/Message.js +6 -6
  131. package/dist/models/MessageAttachment.d.ts +61 -0
  132. package/dist/models/MessageAttachment.js +69 -0
  133. package/dist/models/MessagePart.d.ts +38 -0
  134. package/dist/models/MessagePart.js +50 -0
  135. package/dist/models/PaginatedMessages.d.ts +1 -1
  136. package/dist/models/Plan.d.ts +56 -0
  137. package/dist/models/Plan.js +66 -0
  138. package/dist/models/QuizQuestion.d.ts +4 -4
  139. package/dist/models/QuizQuestion.js +12 -4
  140. package/dist/models/QuizResponse.d.ts +2 -2
  141. package/dist/models/QuizResponse.js +6 -2
  142. package/dist/models/QuizSessionSummary.d.ts +3 -3
  143. package/dist/models/QuizSessionSummary.js +3 -3
  144. package/dist/models/Score.d.ts +47 -0
  145. package/dist/models/Score.js +60 -0
  146. package/dist/models/UpdateAccountDto.d.ts +32 -0
  147. package/dist/models/UpdateAccountDto.js +50 -0
  148. package/dist/models/UpdateFeatureDto.d.ts +44 -0
  149. package/dist/models/UpdateFeatureDto.js +52 -0
  150. package/dist/models/UpdatePlanDto.d.ts +38 -0
  151. package/dist/models/UpdatePlanDto.js +50 -0
  152. package/dist/models/UploadUrlFile.d.ts +56 -0
  153. package/dist/models/UploadUrlFile.js +66 -0
  154. package/dist/models/UploadUrlResponse.d.ts +3 -3
  155. package/dist/models/UploadUrlResponse.js +3 -3
  156. package/dist/models/UpsertOverrideDto.d.ts +44 -0
  157. package/dist/models/UpsertOverrideDto.js +58 -0
  158. package/dist/models/VotesResponse.d.ts +33 -0
  159. package/dist/models/VotesResponse.js +51 -0
  160. package/dist/models/index.d.ts +16 -7
  161. package/dist/models/index.js +16 -7
  162. package/package.json +1 -1
@@ -0,0 +1,69 @@
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.MessageAttachmentMimeTypeEnum = void 0;
17
+ exports.instanceOfMessageAttachment = instanceOfMessageAttachment;
18
+ exports.MessageAttachmentFromJSON = MessageAttachmentFromJSON;
19
+ exports.MessageAttachmentFromJSONTyped = MessageAttachmentFromJSONTyped;
20
+ exports.MessageAttachmentToJSON = MessageAttachmentToJSON;
21
+ exports.MessageAttachmentToJSONTyped = MessageAttachmentToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.MessageAttachmentMimeTypeEnum = {
26
+ ImageJpeg: 'image/jpeg',
27
+ ImageJpg: 'image/jpg',
28
+ ImagePng: 'image/png',
29
+ ImageWebp: 'image/webp',
30
+ ApplicationPdf: 'application/pdf'
31
+ };
32
+ /**
33
+ * Check if a given object implements the MessageAttachment interface.
34
+ */
35
+ function instanceOfMessageAttachment(value) {
36
+ if (!('mimeType' in value) || value['mimeType'] === undefined)
37
+ return false;
38
+ if (!('name' in value) || value['name'] === undefined)
39
+ return false;
40
+ return true;
41
+ }
42
+ function MessageAttachmentFromJSON(json) {
43
+ return MessageAttachmentFromJSONTyped(json, false);
44
+ }
45
+ function MessageAttachmentFromJSONTyped(json, ignoreDiscriminator) {
46
+ if (json == null) {
47
+ return json;
48
+ }
49
+ return {
50
+ 'fileId': json['fileId'] == null ? undefined : json['fileId'],
51
+ 'mimeType': json['mimeType'],
52
+ 'name': json['name'],
53
+ 'url': json['url'] == null ? undefined : json['url'],
54
+ };
55
+ }
56
+ function MessageAttachmentToJSON(json) {
57
+ return MessageAttachmentToJSONTyped(json, false);
58
+ }
59
+ function MessageAttachmentToJSONTyped(value, ignoreDiscriminator = false) {
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+ 'fileId': value['fileId'],
65
+ 'mimeType': value['mimeType'],
66
+ 'name': value['name'],
67
+ 'url': value['url'],
68
+ };
69
+ }
@@ -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 MessagePart
16
+ */
17
+ export interface MessagePart {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof MessagePart
22
+ */
23
+ type?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof MessagePart
28
+ */
29
+ text?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the MessagePart interface.
33
+ */
34
+ export declare function instanceOfMessagePart(value: object): value is MessagePart;
35
+ export declare function MessagePartFromJSON(json: any): MessagePart;
36
+ export declare function MessagePartFromJSONTyped(json: any, ignoreDiscriminator: boolean): MessagePart;
37
+ export declare function MessagePartToJSON(json: any): MessagePart;
38
+ export declare function MessagePartToJSONTyped(value?: MessagePart | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Athena API
6
+ * REST API for the Athena system
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfMessagePart = instanceOfMessagePart;
17
+ exports.MessagePartFromJSON = MessagePartFromJSON;
18
+ exports.MessagePartFromJSONTyped = MessagePartFromJSONTyped;
19
+ exports.MessagePartToJSON = MessagePartToJSON;
20
+ exports.MessagePartToJSONTyped = MessagePartToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the MessagePart interface.
23
+ */
24
+ function instanceOfMessagePart(value) {
25
+ return true;
26
+ }
27
+ function MessagePartFromJSON(json) {
28
+ return MessagePartFromJSONTyped(json, false);
29
+ }
30
+ function MessagePartFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'type': json['type'] == null ? undefined : json['type'],
36
+ 'text': json['text'] == null ? undefined : json['text'],
37
+ };
38
+ }
39
+ function MessagePartToJSON(json) {
40
+ return MessagePartToJSONTyped(json, false);
41
+ }
42
+ function MessagePartToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'type': value['type'],
48
+ 'text': value['text'],
49
+ };
50
+ }
@@ -17,7 +17,7 @@ import type { Message } from './Message';
17
17
  */
18
18
  export interface PaginatedMessages {
19
19
  /**
20
- *
20
+ * Array of message objects
21
21
  * @type {Array<Message>}
22
22
  * @memberof PaginatedMessages
23
23
  */
@@ -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 Plan
16
+ */
17
+ export interface Plan {
18
+ /**
19
+ * Unique identifier
20
+ * @type {string}
21
+ * @memberof Plan
22
+ */
23
+ id: string;
24
+ /**
25
+ * Plan name
26
+ * @type {string}
27
+ * @memberof Plan
28
+ */
29
+ name: string;
30
+ /**
31
+ * Plan rank (higher = better)
32
+ * @type {number}
33
+ * @memberof Plan
34
+ */
35
+ rank: number;
36
+ /**
37
+ * Creation timestamp
38
+ * @type {Date}
39
+ * @memberof Plan
40
+ */
41
+ createdAt: Date;
42
+ /**
43
+ * Last update timestamp
44
+ * @type {Date}
45
+ * @memberof Plan
46
+ */
47
+ updatedAt: Date;
48
+ }
49
+ /**
50
+ * Check if a given object implements the Plan interface.
51
+ */
52
+ export declare function instanceOfPlan(value: object): value is Plan;
53
+ export declare function PlanFromJSON(json: any): Plan;
54
+ export declare function PlanFromJSONTyped(json: any, ignoreDiscriminator: boolean): Plan;
55
+ export declare function PlanToJSON(json: any): Plan;
56
+ export declare function PlanToJSONTyped(value?: Plan | 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.instanceOfPlan = instanceOfPlan;
17
+ exports.PlanFromJSON = PlanFromJSON;
18
+ exports.PlanFromJSONTyped = PlanFromJSONTyped;
19
+ exports.PlanToJSON = PlanToJSON;
20
+ exports.PlanToJSONTyped = PlanToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the Plan interface.
23
+ */
24
+ function instanceOfPlan(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ if (!('rank' in value) || value['rank'] === undefined)
30
+ return false;
31
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
32
+ return false;
33
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function PlanFromJSON(json) {
38
+ return PlanFromJSONTyped(json, false);
39
+ }
40
+ function PlanFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'id': json['id'],
46
+ 'name': json['name'],
47
+ 'rank': json['rank'],
48
+ 'createdAt': (new Date(json['createdAt'])),
49
+ 'updatedAt': (new Date(json['updatedAt'])),
50
+ };
51
+ }
52
+ function PlanToJSON(json) {
53
+ return PlanToJSONTyped(json, false);
54
+ }
55
+ function PlanToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'id': value['id'],
61
+ 'name': value['name'],
62
+ 'rank': value['rank'],
63
+ 'createdAt': value['createdAt'].toISOString(),
64
+ 'updatedAt': value['updatedAt'].toISOString(),
65
+ };
66
+ }
@@ -32,7 +32,7 @@ export interface QuizQuestion {
32
32
  * @type {string}
33
33
  * @memberof QuizQuestion
34
34
  */
35
- conceptId?: string | null;
35
+ conceptId: string | null;
36
36
  /**
37
37
  *
38
38
  * @type {number}
@@ -56,7 +56,7 @@ export interface QuizQuestion {
56
56
  * @type {Array<string>}
57
57
  * @memberof QuizQuestion
58
58
  */
59
- options?: Array<string> | null;
59
+ options: Array<string> | null;
60
60
  /**
61
61
  *
62
62
  * @type {string}
@@ -68,13 +68,13 @@ export interface QuizQuestion {
68
68
  * @type {string}
69
69
  * @memberof QuizQuestion
70
70
  */
71
- explanation?: string | null;
71
+ explanation: string | null;
72
72
  /**
73
73
  *
74
74
  * @type {string}
75
75
  * @memberof QuizQuestion
76
76
  */
77
- topic?: string | null;
77
+ topic: string | null;
78
78
  /**
79
79
  *
80
80
  * @type {Date}
@@ -37,14 +37,22 @@ function instanceOfQuizQuestion(value) {
37
37
  return false;
38
38
  if (!('quizId' in value) || value['quizId'] === undefined)
39
39
  return false;
40
+ if (!('conceptId' in value) || value['conceptId'] === undefined)
41
+ return false;
40
42
  if (!('ordinal' in value) || value['ordinal'] === undefined)
41
43
  return false;
42
44
  if (!('type' in value) || value['type'] === undefined)
43
45
  return false;
44
46
  if (!('question' in value) || value['question'] === undefined)
45
47
  return false;
48
+ if (!('options' in value) || value['options'] === undefined)
49
+ return false;
46
50
  if (!('correctAnswer' in value) || value['correctAnswer'] === undefined)
47
51
  return false;
52
+ if (!('explanation' in value) || value['explanation'] === undefined)
53
+ return false;
54
+ if (!('topic' in value) || value['topic'] === undefined)
55
+ return false;
48
56
  if (!('createdAt' in value) || value['createdAt'] === undefined)
49
57
  return false;
50
58
  return true;
@@ -59,14 +67,14 @@ function QuizQuestionFromJSONTyped(json, ignoreDiscriminator) {
59
67
  return {
60
68
  'id': json['id'],
61
69
  'quizId': json['quizId'],
62
- 'conceptId': json['conceptId'] == null ? undefined : json['conceptId'],
70
+ 'conceptId': json['conceptId'],
63
71
  'ordinal': json['ordinal'],
64
72
  'type': json['type'],
65
73
  'question': json['question'],
66
- 'options': json['options'] == null ? undefined : json['options'],
74
+ 'options': json['options'] == null ? null : json['options'],
67
75
  'correctAnswer': json['correctAnswer'],
68
- 'explanation': json['explanation'] == null ? undefined : json['explanation'],
69
- 'topic': json['topic'] == null ? undefined : json['topic'],
76
+ 'explanation': json['explanation'],
77
+ 'topic': json['topic'],
70
78
  'createdAt': (new Date(json['createdAt'])),
71
79
  };
72
80
  }
@@ -44,13 +44,13 @@ export interface QuizResponse {
44
44
  * @type {boolean}
45
45
  * @memberof QuizResponse
46
46
  */
47
- isCorrect?: boolean | null;
47
+ isCorrect: boolean | null;
48
48
  /**
49
49
  *
50
50
  * @type {string}
51
51
  * @memberof QuizResponse
52
52
  */
53
- rating?: QuizResponseRatingEnum | null;
53
+ rating: QuizResponseRatingEnum | null;
54
54
  /**
55
55
  *
56
56
  * @type {Date}
@@ -38,6 +38,10 @@ function instanceOfQuizResponse(value) {
38
38
  return false;
39
39
  if (!('userAnswer' in value) || value['userAnswer'] === undefined)
40
40
  return false;
41
+ if (!('isCorrect' in value) || value['isCorrect'] === undefined)
42
+ return false;
43
+ if (!('rating' in value) || value['rating'] === undefined)
44
+ return false;
41
45
  if (!('createdAt' in value) || value['createdAt'] === undefined)
42
46
  return false;
43
47
  return true;
@@ -54,8 +58,8 @@ function QuizResponseFromJSONTyped(json, ignoreDiscriminator) {
54
58
  'sessionId': json['sessionId'],
55
59
  'questionId': json['questionId'],
56
60
  'userAnswer': json['userAnswer'],
57
- 'isCorrect': json['isCorrect'] == null ? undefined : json['isCorrect'],
58
- 'rating': json['rating'] == null ? undefined : json['rating'],
61
+ 'isCorrect': json['isCorrect'],
62
+ 'rating': json['rating'],
59
63
  'createdAt': (new Date(json['createdAt'])),
60
64
  };
61
65
  }
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { QuizSessionSummaryScore } from './QuizSessionSummaryScore';
12
+ import type { Score } from './Score';
13
13
  import type { Quiz } from './Quiz';
14
14
  import type { QuizSession } from './QuizSession';
15
15
  import type { QuizQuestion } from './QuizQuestion';
@@ -46,10 +46,10 @@ export interface QuizSessionSummary {
46
46
  responses: Array<QuizResponse>;
47
47
  /**
48
48
  *
49
- * @type {QuizSessionSummaryScore}
49
+ * @type {Score}
50
50
  * @memberof QuizSessionSummary
51
51
  */
52
- score: QuizSessionSummaryScore;
52
+ score: Score;
53
53
  }
54
54
  /**
55
55
  * Check if a given object implements the QuizSessionSummary interface.
@@ -18,7 +18,7 @@ exports.QuizSessionSummaryFromJSON = QuizSessionSummaryFromJSON;
18
18
  exports.QuizSessionSummaryFromJSONTyped = QuizSessionSummaryFromJSONTyped;
19
19
  exports.QuizSessionSummaryToJSON = QuizSessionSummaryToJSON;
20
20
  exports.QuizSessionSummaryToJSONTyped = QuizSessionSummaryToJSONTyped;
21
- const QuizSessionSummaryScore_1 = require("./QuizSessionSummaryScore");
21
+ const Score_1 = require("./Score");
22
22
  const Quiz_1 = require("./Quiz");
23
23
  const QuizSession_1 = require("./QuizSession");
24
24
  const QuizQuestion_1 = require("./QuizQuestion");
@@ -51,7 +51,7 @@ function QuizSessionSummaryFromJSONTyped(json, ignoreDiscriminator) {
51
51
  'quiz': (0, Quiz_1.QuizFromJSON)(json['quiz']),
52
52
  'questions': (json['questions'].map(QuizQuestion_1.QuizQuestionFromJSON)),
53
53
  'responses': (json['responses'].map(QuizResponse_1.QuizResponseFromJSON)),
54
- 'score': (0, QuizSessionSummaryScore_1.QuizSessionSummaryScoreFromJSON)(json['score']),
54
+ 'score': (0, Score_1.ScoreFromJSON)(json['score']),
55
55
  };
56
56
  }
57
57
  function QuizSessionSummaryToJSON(json) {
@@ -66,6 +66,6 @@ function QuizSessionSummaryToJSONTyped(value, ignoreDiscriminator = false) {
66
66
  'quiz': (0, Quiz_1.QuizToJSON)(value['quiz']),
67
67
  'questions': (value['questions'].map(QuizQuestion_1.QuizQuestionToJSON)),
68
68
  'responses': (value['responses'].map(QuizResponse_1.QuizResponseToJSON)),
69
- 'score': (0, QuizSessionSummaryScore_1.QuizSessionSummaryScoreToJSON)(value['score']),
69
+ 'score': (0, Score_1.ScoreToJSON)(value['score']),
70
70
  };
71
71
  }
@@ -0,0 +1,47 @@
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 { ScoreByTypeValue } from './ScoreByTypeValue';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface Score
17
+ */
18
+ export interface Score {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof Score
23
+ */
24
+ totalCorrect: number;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof Score
29
+ */
30
+ totalQuestions: number;
31
+ /**
32
+ *
33
+ * @type {{ [key: string]: ScoreByTypeValue; }}
34
+ * @memberof Score
35
+ */
36
+ byType: {
37
+ [key: string]: ScoreByTypeValue;
38
+ };
39
+ }
40
+ /**
41
+ * Check if a given object implements the Score interface.
42
+ */
43
+ export declare function instanceOfScore(value: object): value is Score;
44
+ export declare function ScoreFromJSON(json: any): Score;
45
+ export declare function ScoreFromJSONTyped(json: any, ignoreDiscriminator: boolean): Score;
46
+ export declare function ScoreToJSON(json: any): Score;
47
+ export declare function ScoreToJSONTyped(value?: Score | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,60 @@
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.instanceOfScore = instanceOfScore;
17
+ exports.ScoreFromJSON = ScoreFromJSON;
18
+ exports.ScoreFromJSONTyped = ScoreFromJSONTyped;
19
+ exports.ScoreToJSON = ScoreToJSON;
20
+ exports.ScoreToJSONTyped = ScoreToJSONTyped;
21
+ const runtime_1 = require("../runtime");
22
+ const ScoreByTypeValue_1 = require("./ScoreByTypeValue");
23
+ /**
24
+ * Check if a given object implements the Score interface.
25
+ */
26
+ function instanceOfScore(value) {
27
+ if (!('totalCorrect' in value) || value['totalCorrect'] === undefined)
28
+ return false;
29
+ if (!('totalQuestions' in value) || value['totalQuestions'] === undefined)
30
+ return false;
31
+ if (!('byType' in value) || value['byType'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function ScoreFromJSON(json) {
36
+ return ScoreFromJSONTyped(json, false);
37
+ }
38
+ function ScoreFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'totalCorrect': json['totalCorrect'],
44
+ 'totalQuestions': json['totalQuestions'],
45
+ 'byType': ((0, runtime_1.mapValues)(json['byType'], ScoreByTypeValue_1.ScoreByTypeValueFromJSON)),
46
+ };
47
+ }
48
+ function ScoreToJSON(json) {
49
+ return ScoreToJSONTyped(json, false);
50
+ }
51
+ function ScoreToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'totalCorrect': value['totalCorrect'],
57
+ 'totalQuestions': value['totalQuestions'],
58
+ 'byType': ((0, runtime_1.mapValues)(value['byType'], ScoreByTypeValue_1.ScoreByTypeValueToJSON)),
59
+ };
60
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Athena API
3
+ * REST API for the Athena system
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface UpdateAccountDto
16
+ */
17
+ export interface UpdateAccountDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof UpdateAccountDto
22
+ */
23
+ planId: string | null;
24
+ }
25
+ /**
26
+ * Check if a given object implements the UpdateAccountDto interface.
27
+ */
28
+ export declare function instanceOfUpdateAccountDto(value: object): value is UpdateAccountDto;
29
+ export declare function UpdateAccountDtoFromJSON(json: any): UpdateAccountDto;
30
+ export declare function UpdateAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAccountDto;
31
+ export declare function UpdateAccountDtoToJSON(json: any): UpdateAccountDto;
32
+ export declare function UpdateAccountDtoToJSONTyped(value?: UpdateAccountDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Athena API
6
+ * REST API for the Athena system
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfUpdateAccountDto = instanceOfUpdateAccountDto;
17
+ exports.UpdateAccountDtoFromJSON = UpdateAccountDtoFromJSON;
18
+ exports.UpdateAccountDtoFromJSONTyped = UpdateAccountDtoFromJSONTyped;
19
+ exports.UpdateAccountDtoToJSON = UpdateAccountDtoToJSON;
20
+ exports.UpdateAccountDtoToJSONTyped = UpdateAccountDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the UpdateAccountDto interface.
23
+ */
24
+ function instanceOfUpdateAccountDto(value) {
25
+ if (!('planId' in value) || value['planId'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function UpdateAccountDtoFromJSON(json) {
30
+ return UpdateAccountDtoFromJSONTyped(json, false);
31
+ }
32
+ function UpdateAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'planId': json['planId'],
38
+ };
39
+ }
40
+ function UpdateAccountDtoToJSON(json) {
41
+ return UpdateAccountDtoToJSONTyped(json, false);
42
+ }
43
+ function UpdateAccountDtoToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'planId': value['planId'],
49
+ };
50
+ }