@instructure/athena-api-client 1.0.9 → 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 (184) hide show
  1. package/README.md +36 -5
  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 +0 -2
  11. package/dist/apis/HealthApi.js +0 -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 +20 -5
  15. package/dist/apis/MessagesApi.js +58 -12
  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 +47 -0
  27. package/dist/apis/VotesApi.js +120 -0
  28. package/dist/apis/index.d.ts +4 -0
  29. package/dist/apis/index.js +4 -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 +0 -2
  39. package/dist/esm/apis/HealthApi.js +0 -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 +20 -5
  43. package/dist/esm/apis/MessagesApi.js +59 -13
  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 +47 -0
  55. package/dist/esm/apis/VotesApi.js +116 -0
  56. package/dist/esm/apis/index.d.ts +4 -0
  57. package/dist/esm/apis/index.js +4 -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/CreateChatMessages201Response.d.ts +33 -0
  61. package/dist/esm/models/CreateChatMessages201Response.js +42 -0
  62. package/dist/esm/models/CreateFeatureDto.d.ts +44 -0
  63. package/dist/esm/models/CreateFeatureDto.js +49 -0
  64. package/dist/esm/models/CreateMessagesRequest.d.ts +33 -0
  65. package/dist/esm/models/CreateMessagesRequest.js +44 -0
  66. package/dist/esm/models/CreateMessagesRequestMessagesInner.d.ts +68 -0
  67. package/dist/esm/models/CreateMessagesRequestMessagesInner.js +62 -0
  68. package/dist/esm/models/CreateMessagesResponse.d.ts +33 -0
  69. package/dist/esm/models/CreateMessagesResponse.js +44 -0
  70. package/dist/esm/models/CreatePlanDto.d.ts +38 -0
  71. package/dist/esm/models/CreatePlanDto.js +47 -0
  72. package/dist/esm/models/FeatureEntity.d.ts +62 -0
  73. package/dist/esm/models/FeatureEntity.js +61 -0
  74. package/dist/esm/models/FeatureOverrideEntity.d.ts +62 -0
  75. package/dist/esm/models/FeatureOverrideEntity.js +63 -0
  76. package/dist/esm/models/HealthCheck.d.ts +1 -8
  77. package/dist/esm/models/HealthCheck.js +0 -6
  78. package/dist/esm/models/LearningMoment.d.ts +3 -3
  79. package/dist/esm/models/LearningMoment.js +9 -3
  80. package/dist/esm/models/LearningStreakResponse.d.ts +2 -2
  81. package/dist/esm/models/LearningStreakResponse.js +6 -2
  82. package/dist/esm/models/ListChatVotes200Response.d.ts +33 -0
  83. package/dist/esm/models/ListChatVotes200Response.js +42 -0
  84. package/dist/esm/models/Message.d.ts +7 -7
  85. package/dist/esm/models/Message.js +7 -9
  86. package/dist/esm/models/MessageAttachment.d.ts +61 -0
  87. package/dist/esm/models/MessageAttachment.js +61 -0
  88. package/dist/esm/models/MessagePart.d.ts +38 -0
  89. package/dist/esm/models/MessagePart.js +43 -0
  90. package/dist/esm/models/PaginatedMessages.d.ts +1 -1
  91. package/dist/esm/models/Plan.d.ts +56 -0
  92. package/dist/esm/models/Plan.js +59 -0
  93. package/dist/esm/models/QuizQuestion.d.ts +4 -4
  94. package/dist/esm/models/QuizQuestion.js +12 -4
  95. package/dist/esm/models/QuizResponse.d.ts +2 -2
  96. package/dist/esm/models/QuizResponse.js +6 -2
  97. package/dist/esm/models/QuizSessionSummary.d.ts +3 -3
  98. package/dist/esm/models/QuizSessionSummary.js +3 -3
  99. package/dist/esm/models/Score.d.ts +47 -0
  100. package/dist/esm/models/Score.js +53 -0
  101. package/dist/esm/models/UpdateAccountDto.d.ts +32 -0
  102. package/dist/esm/models/UpdateAccountDto.js +43 -0
  103. package/dist/esm/models/UpdateFeatureDto.d.ts +44 -0
  104. package/dist/esm/models/UpdateFeatureDto.js +45 -0
  105. package/dist/esm/models/UpdatePlanDto.d.ts +38 -0
  106. package/dist/esm/models/UpdatePlanDto.js +43 -0
  107. package/dist/esm/models/UploadUrlFile.d.ts +56 -0
  108. package/dist/esm/models/UploadUrlFile.js +59 -0
  109. package/dist/esm/models/UploadUrlResponse.d.ts +3 -3
  110. package/dist/esm/models/UploadUrlResponse.js +3 -3
  111. package/dist/esm/models/UpsertOverrideDto.d.ts +44 -0
  112. package/dist/esm/models/UpsertOverrideDto.js +51 -0
  113. package/dist/esm/models/UpsertVoteRequest.d.ts +46 -0
  114. package/dist/esm/models/UpsertVoteRequest.js +54 -0
  115. package/dist/esm/models/Vote.d.ts +44 -0
  116. package/dist/esm/models/Vote.js +51 -0
  117. package/dist/esm/models/VotesResponse.d.ts +33 -0
  118. package/dist/esm/models/VotesResponse.js +44 -0
  119. package/dist/esm/models/index.d.ts +19 -5
  120. package/dist/esm/models/index.js +19 -5
  121. package/dist/models/ChatRequest.d.ts +1 -1
  122. package/dist/models/ChatRequest.js +3 -1
  123. package/dist/models/CreateChatMessages201Response.d.ts +33 -0
  124. package/dist/models/CreateChatMessages201Response.js +49 -0
  125. package/dist/models/CreateFeatureDto.d.ts +44 -0
  126. package/dist/models/CreateFeatureDto.js +56 -0
  127. package/dist/models/CreateMessagesRequest.d.ts +33 -0
  128. package/dist/models/CreateMessagesRequest.js +51 -0
  129. package/dist/models/CreateMessagesRequestMessagesInner.d.ts +68 -0
  130. package/dist/models/CreateMessagesRequestMessagesInner.js +70 -0
  131. package/dist/models/CreateMessagesResponse.d.ts +33 -0
  132. package/dist/models/CreateMessagesResponse.js +51 -0
  133. package/dist/models/CreatePlanDto.d.ts +38 -0
  134. package/dist/models/CreatePlanDto.js +54 -0
  135. package/dist/models/FeatureEntity.d.ts +62 -0
  136. package/dist/models/FeatureEntity.js +68 -0
  137. package/dist/models/FeatureOverrideEntity.d.ts +62 -0
  138. package/dist/models/FeatureOverrideEntity.js +70 -0
  139. package/dist/models/HealthCheck.d.ts +1 -8
  140. package/dist/models/HealthCheck.js +0 -7
  141. package/dist/models/LearningMoment.d.ts +3 -3
  142. package/dist/models/LearningMoment.js +9 -3
  143. package/dist/models/LearningStreakResponse.d.ts +2 -2
  144. package/dist/models/LearningStreakResponse.js +6 -2
  145. package/dist/models/ListChatVotes200Response.d.ts +33 -0
  146. package/dist/models/ListChatVotes200Response.js +49 -0
  147. package/dist/models/Message.d.ts +7 -7
  148. package/dist/models/Message.js +7 -9
  149. package/dist/models/MessageAttachment.d.ts +61 -0
  150. package/dist/models/MessageAttachment.js +69 -0
  151. package/dist/models/MessagePart.d.ts +38 -0
  152. package/dist/models/MessagePart.js +50 -0
  153. package/dist/models/PaginatedMessages.d.ts +1 -1
  154. package/dist/models/Plan.d.ts +56 -0
  155. package/dist/models/Plan.js +66 -0
  156. package/dist/models/QuizQuestion.d.ts +4 -4
  157. package/dist/models/QuizQuestion.js +12 -4
  158. package/dist/models/QuizResponse.d.ts +2 -2
  159. package/dist/models/QuizResponse.js +6 -2
  160. package/dist/models/QuizSessionSummary.d.ts +3 -3
  161. package/dist/models/QuizSessionSummary.js +3 -3
  162. package/dist/models/Score.d.ts +47 -0
  163. package/dist/models/Score.js +60 -0
  164. package/dist/models/UpdateAccountDto.d.ts +32 -0
  165. package/dist/models/UpdateAccountDto.js +50 -0
  166. package/dist/models/UpdateFeatureDto.d.ts +44 -0
  167. package/dist/models/UpdateFeatureDto.js +52 -0
  168. package/dist/models/UpdatePlanDto.d.ts +38 -0
  169. package/dist/models/UpdatePlanDto.js +50 -0
  170. package/dist/models/UploadUrlFile.d.ts +56 -0
  171. package/dist/models/UploadUrlFile.js +66 -0
  172. package/dist/models/UploadUrlResponse.d.ts +3 -3
  173. package/dist/models/UploadUrlResponse.js +3 -3
  174. package/dist/models/UpsertOverrideDto.d.ts +44 -0
  175. package/dist/models/UpsertOverrideDto.js +58 -0
  176. package/dist/models/UpsertVoteRequest.d.ts +46 -0
  177. package/dist/models/UpsertVoteRequest.js +62 -0
  178. package/dist/models/Vote.d.ts +44 -0
  179. package/dist/models/Vote.js +58 -0
  180. package/dist/models/VotesResponse.d.ts +33 -0
  181. package/dist/models/VotesResponse.js +51 -0
  182. package/dist/models/index.d.ts +19 -5
  183. package/dist/models/index.js +19 -5
  184. package/package.json +1 -1
@@ -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
+ }
@@ -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 UpdateFeatureDto
16
+ */
17
+ export interface UpdateFeatureDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof UpdateFeatureDto
22
+ */
23
+ name?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof UpdateFeatureDto
28
+ */
29
+ description?: string | null;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof UpdateFeatureDto
34
+ */
35
+ planId?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the UpdateFeatureDto interface.
39
+ */
40
+ export declare function instanceOfUpdateFeatureDto(value: object): value is UpdateFeatureDto;
41
+ export declare function UpdateFeatureDtoFromJSON(json: any): UpdateFeatureDto;
42
+ export declare function UpdateFeatureDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateFeatureDto;
43
+ export declare function UpdateFeatureDtoToJSON(json: any): UpdateFeatureDto;
44
+ export declare function UpdateFeatureDtoToJSONTyped(value?: UpdateFeatureDto | 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.instanceOfUpdateFeatureDto = instanceOfUpdateFeatureDto;
17
+ exports.UpdateFeatureDtoFromJSON = UpdateFeatureDtoFromJSON;
18
+ exports.UpdateFeatureDtoFromJSONTyped = UpdateFeatureDtoFromJSONTyped;
19
+ exports.UpdateFeatureDtoToJSON = UpdateFeatureDtoToJSON;
20
+ exports.UpdateFeatureDtoToJSONTyped = UpdateFeatureDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the UpdateFeatureDto interface.
23
+ */
24
+ function instanceOfUpdateFeatureDto(value) {
25
+ return true;
26
+ }
27
+ function UpdateFeatureDtoFromJSON(json) {
28
+ return UpdateFeatureDtoFromJSONTyped(json, false);
29
+ }
30
+ function UpdateFeatureDtoFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'name': json['name'] == null ? undefined : json['name'],
36
+ 'description': json['description'] == null ? undefined : json['description'],
37
+ 'planId': json['planId'] == null ? undefined : json['planId'],
38
+ };
39
+ }
40
+ function UpdateFeatureDtoToJSON(json) {
41
+ return UpdateFeatureDtoToJSONTyped(json, false);
42
+ }
43
+ function UpdateFeatureDtoToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'name': value['name'],
49
+ 'description': value['description'],
50
+ 'planId': value['planId'],
51
+ };
52
+ }
@@ -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 UpdatePlanDto
16
+ */
17
+ export interface UpdatePlanDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof UpdatePlanDto
22
+ */
23
+ name?: string;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof UpdatePlanDto
28
+ */
29
+ rank?: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the UpdatePlanDto interface.
33
+ */
34
+ export declare function instanceOfUpdatePlanDto(value: object): value is UpdatePlanDto;
35
+ export declare function UpdatePlanDtoFromJSON(json: any): UpdatePlanDto;
36
+ export declare function UpdatePlanDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdatePlanDto;
37
+ export declare function UpdatePlanDtoToJSON(json: any): UpdatePlanDto;
38
+ export declare function UpdatePlanDtoToJSONTyped(value?: UpdatePlanDto | null, ignoreDiscriminator?: boolean): any;