@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.
- package/README.md +36 -5
- package/dist/apis/AccountsApi.d.ts +13 -5
- package/dist/apis/AccountsApi.js +38 -4
- package/dist/apis/ChatsApi.d.ts +8 -7
- package/dist/apis/ChatsApi.js +22 -13
- package/dist/apis/FeatureOverridesApi.d.ts +51 -0
- package/dist/apis/FeatureOverridesApi.js +131 -0
- package/dist/apis/FeaturesApi.d.ts +71 -0
- package/dist/apis/FeaturesApi.js +199 -0
- package/dist/apis/HealthApi.d.ts +0 -2
- package/dist/apis/HealthApi.js +0 -2
- package/dist/apis/LearningDaysApi.d.ts +1 -1
- package/dist/apis/LearningDaysApi.js +3 -3
- package/dist/apis/MessagesApi.d.ts +20 -5
- package/dist/apis/MessagesApi.js +58 -12
- package/dist/apis/PlansApi.d.ts +71 -0
- package/dist/apis/PlansApi.js +199 -0
- package/dist/apis/QuizSessionsApi.d.ts +4 -4
- package/dist/apis/QuizSessionsApi.js +12 -12
- package/dist/apis/QuizzesApi.d.ts +1 -1
- package/dist/apis/QuizzesApi.js +3 -3
- package/dist/apis/ServiceTokensApi.d.ts +0 -10
- package/dist/apis/ServiceTokensApi.js +0 -10
- package/dist/apis/TagsApi.d.ts +0 -2
- package/dist/apis/TagsApi.js +0 -2
- package/dist/apis/VotesApi.d.ts +47 -0
- package/dist/apis/VotesApi.js +120 -0
- package/dist/apis/index.d.ts +4 -0
- package/dist/apis/index.js +4 -0
- package/dist/esm/apis/AccountsApi.d.ts +13 -5
- package/dist/esm/apis/AccountsApi.js +39 -5
- package/dist/esm/apis/ChatsApi.d.ts +8 -7
- package/dist/esm/apis/ChatsApi.js +22 -13
- package/dist/esm/apis/FeatureOverridesApi.d.ts +51 -0
- package/dist/esm/apis/FeatureOverridesApi.js +127 -0
- package/dist/esm/apis/FeaturesApi.d.ts +71 -0
- package/dist/esm/apis/FeaturesApi.js +195 -0
- package/dist/esm/apis/HealthApi.d.ts +0 -2
- package/dist/esm/apis/HealthApi.js +0 -2
- package/dist/esm/apis/LearningDaysApi.d.ts +1 -1
- package/dist/esm/apis/LearningDaysApi.js +3 -3
- package/dist/esm/apis/MessagesApi.d.ts +20 -5
- package/dist/esm/apis/MessagesApi.js +59 -13
- package/dist/esm/apis/PlansApi.d.ts +71 -0
- package/dist/esm/apis/PlansApi.js +195 -0
- package/dist/esm/apis/QuizSessionsApi.d.ts +4 -4
- package/dist/esm/apis/QuizSessionsApi.js +12 -12
- package/dist/esm/apis/QuizzesApi.d.ts +1 -1
- package/dist/esm/apis/QuizzesApi.js +3 -3
- package/dist/esm/apis/ServiceTokensApi.d.ts +0 -10
- package/dist/esm/apis/ServiceTokensApi.js +0 -10
- package/dist/esm/apis/TagsApi.d.ts +0 -2
- package/dist/esm/apis/TagsApi.js +0 -2
- package/dist/esm/apis/VotesApi.d.ts +47 -0
- package/dist/esm/apis/VotesApi.js +116 -0
- package/dist/esm/apis/index.d.ts +4 -0
- package/dist/esm/apis/index.js +4 -0
- package/dist/esm/models/ChatRequest.d.ts +1 -1
- package/dist/esm/models/ChatRequest.js +3 -1
- package/dist/esm/models/CreateChatMessages201Response.d.ts +33 -0
- package/dist/esm/models/CreateChatMessages201Response.js +42 -0
- package/dist/esm/models/CreateFeatureDto.d.ts +44 -0
- package/dist/esm/models/CreateFeatureDto.js +49 -0
- package/dist/esm/models/CreateMessagesRequest.d.ts +33 -0
- package/dist/esm/models/CreateMessagesRequest.js +44 -0
- package/dist/esm/models/CreateMessagesRequestMessagesInner.d.ts +68 -0
- package/dist/esm/models/CreateMessagesRequestMessagesInner.js +62 -0
- package/dist/esm/models/CreateMessagesResponse.d.ts +33 -0
- package/dist/esm/models/CreateMessagesResponse.js +44 -0
- package/dist/esm/models/CreatePlanDto.d.ts +38 -0
- package/dist/esm/models/CreatePlanDto.js +47 -0
- package/dist/esm/models/FeatureEntity.d.ts +62 -0
- package/dist/esm/models/FeatureEntity.js +61 -0
- package/dist/esm/models/FeatureOverrideEntity.d.ts +62 -0
- package/dist/esm/models/FeatureOverrideEntity.js +63 -0
- package/dist/esm/models/HealthCheck.d.ts +1 -8
- package/dist/esm/models/HealthCheck.js +0 -6
- package/dist/esm/models/LearningMoment.d.ts +3 -3
- package/dist/esm/models/LearningMoment.js +9 -3
- package/dist/esm/models/LearningStreakResponse.d.ts +2 -2
- package/dist/esm/models/LearningStreakResponse.js +6 -2
- package/dist/esm/models/ListChatVotes200Response.d.ts +33 -0
- package/dist/esm/models/ListChatVotes200Response.js +42 -0
- package/dist/esm/models/Message.d.ts +7 -7
- package/dist/esm/models/Message.js +7 -9
- package/dist/esm/models/MessageAttachment.d.ts +61 -0
- package/dist/esm/models/MessageAttachment.js +61 -0
- package/dist/esm/models/MessagePart.d.ts +38 -0
- package/dist/esm/models/MessagePart.js +43 -0
- package/dist/esm/models/PaginatedMessages.d.ts +1 -1
- package/dist/esm/models/Plan.d.ts +56 -0
- package/dist/esm/models/Plan.js +59 -0
- package/dist/esm/models/QuizQuestion.d.ts +4 -4
- package/dist/esm/models/QuizQuestion.js +12 -4
- package/dist/esm/models/QuizResponse.d.ts +2 -2
- package/dist/esm/models/QuizResponse.js +6 -2
- package/dist/esm/models/QuizSessionSummary.d.ts +3 -3
- package/dist/esm/models/QuizSessionSummary.js +3 -3
- package/dist/esm/models/Score.d.ts +47 -0
- package/dist/esm/models/Score.js +53 -0
- package/dist/esm/models/UpdateAccountDto.d.ts +32 -0
- package/dist/esm/models/UpdateAccountDto.js +43 -0
- package/dist/esm/models/UpdateFeatureDto.d.ts +44 -0
- package/dist/esm/models/UpdateFeatureDto.js +45 -0
- package/dist/esm/models/UpdatePlanDto.d.ts +38 -0
- package/dist/esm/models/UpdatePlanDto.js +43 -0
- package/dist/esm/models/UploadUrlFile.d.ts +56 -0
- package/dist/esm/models/UploadUrlFile.js +59 -0
- package/dist/esm/models/UploadUrlResponse.d.ts +3 -3
- package/dist/esm/models/UploadUrlResponse.js +3 -3
- package/dist/esm/models/UpsertOverrideDto.d.ts +44 -0
- package/dist/esm/models/UpsertOverrideDto.js +51 -0
- package/dist/esm/models/UpsertVoteRequest.d.ts +46 -0
- package/dist/esm/models/UpsertVoteRequest.js +54 -0
- package/dist/esm/models/Vote.d.ts +44 -0
- package/dist/esm/models/Vote.js +51 -0
- package/dist/esm/models/VotesResponse.d.ts +33 -0
- package/dist/esm/models/VotesResponse.js +44 -0
- package/dist/esm/models/index.d.ts +19 -5
- package/dist/esm/models/index.js +19 -5
- package/dist/models/ChatRequest.d.ts +1 -1
- package/dist/models/ChatRequest.js +3 -1
- package/dist/models/CreateChatMessages201Response.d.ts +33 -0
- package/dist/models/CreateChatMessages201Response.js +49 -0
- package/dist/models/CreateFeatureDto.d.ts +44 -0
- package/dist/models/CreateFeatureDto.js +56 -0
- package/dist/models/CreateMessagesRequest.d.ts +33 -0
- package/dist/models/CreateMessagesRequest.js +51 -0
- package/dist/models/CreateMessagesRequestMessagesInner.d.ts +68 -0
- package/dist/models/CreateMessagesRequestMessagesInner.js +70 -0
- package/dist/models/CreateMessagesResponse.d.ts +33 -0
- package/dist/models/CreateMessagesResponse.js +51 -0
- package/dist/models/CreatePlanDto.d.ts +38 -0
- package/dist/models/CreatePlanDto.js +54 -0
- package/dist/models/FeatureEntity.d.ts +62 -0
- package/dist/models/FeatureEntity.js +68 -0
- package/dist/models/FeatureOverrideEntity.d.ts +62 -0
- package/dist/models/FeatureOverrideEntity.js +70 -0
- package/dist/models/HealthCheck.d.ts +1 -8
- package/dist/models/HealthCheck.js +0 -7
- package/dist/models/LearningMoment.d.ts +3 -3
- package/dist/models/LearningMoment.js +9 -3
- package/dist/models/LearningStreakResponse.d.ts +2 -2
- package/dist/models/LearningStreakResponse.js +6 -2
- package/dist/models/ListChatVotes200Response.d.ts +33 -0
- package/dist/models/ListChatVotes200Response.js +49 -0
- package/dist/models/Message.d.ts +7 -7
- package/dist/models/Message.js +7 -9
- package/dist/models/MessageAttachment.d.ts +61 -0
- package/dist/models/MessageAttachment.js +69 -0
- package/dist/models/MessagePart.d.ts +38 -0
- package/dist/models/MessagePart.js +50 -0
- package/dist/models/PaginatedMessages.d.ts +1 -1
- package/dist/models/Plan.d.ts +56 -0
- package/dist/models/Plan.js +66 -0
- package/dist/models/QuizQuestion.d.ts +4 -4
- package/dist/models/QuizQuestion.js +12 -4
- package/dist/models/QuizResponse.d.ts +2 -2
- package/dist/models/QuizResponse.js +6 -2
- package/dist/models/QuizSessionSummary.d.ts +3 -3
- package/dist/models/QuizSessionSummary.js +3 -3
- package/dist/models/Score.d.ts +47 -0
- package/dist/models/Score.js +60 -0
- package/dist/models/UpdateAccountDto.d.ts +32 -0
- package/dist/models/UpdateAccountDto.js +50 -0
- package/dist/models/UpdateFeatureDto.d.ts +44 -0
- package/dist/models/UpdateFeatureDto.js +52 -0
- package/dist/models/UpdatePlanDto.d.ts +38 -0
- package/dist/models/UpdatePlanDto.js +50 -0
- package/dist/models/UploadUrlFile.d.ts +56 -0
- package/dist/models/UploadUrlFile.js +66 -0
- package/dist/models/UploadUrlResponse.d.ts +3 -3
- package/dist/models/UploadUrlResponse.js +3 -3
- package/dist/models/UpsertOverrideDto.d.ts +44 -0
- package/dist/models/UpsertOverrideDto.js +58 -0
- package/dist/models/UpsertVoteRequest.d.ts +46 -0
- package/dist/models/UpsertVoteRequest.js +62 -0
- package/dist/models/Vote.d.ts +44 -0
- package/dist/models/Vote.js +58 -0
- package/dist/models/VotesResponse.d.ts +33 -0
- package/dist/models/VotesResponse.js +51 -0
- package/dist/models/index.d.ts +19 -5
- package/dist/models/index.js +19 -5
- package/package.json +1 -1
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Athena API
|
|
5
|
+
* REST API for the Athena system
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the MessagePart interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfMessagePart(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function MessagePartFromJSON(json) {
|
|
21
|
+
return MessagePartFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function MessagePartFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
29
|
+
'text': json['text'] == null ? undefined : json['text'],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export function MessagePartToJSON(json) {
|
|
33
|
+
return MessagePartToJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function MessagePartToJSONTyped(value, ignoreDiscriminator = false) {
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'type': value['type'],
|
|
41
|
+
'text': value['text'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -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,59 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Athena API
|
|
5
|
+
* REST API for the Athena system
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the Plan interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPlan(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('rank' in value) || value['rank'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function PlanFromJSON(json) {
|
|
31
|
+
return PlanFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function PlanFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'id': json['id'],
|
|
39
|
+
'name': json['name'],
|
|
40
|
+
'rank': json['rank'],
|
|
41
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
42
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export function PlanToJSON(json) {
|
|
46
|
+
return PlanToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
export function PlanToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'id': value['id'],
|
|
54
|
+
'name': value['name'],
|
|
55
|
+
'rank': value['rank'],
|
|
56
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
57
|
+
'updatedAt': value['updatedAt'].toISOString(),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -32,7 +32,7 @@ export interface QuizQuestion {
|
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof QuizQuestion
|
|
34
34
|
*/
|
|
35
|
-
conceptId
|
|
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
|
|
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
|
|
71
|
+
explanation: string | null;
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof QuizQuestion
|
|
76
76
|
*/
|
|
77
|
-
topic
|
|
77
|
+
topic: string | null;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {Date}
|
|
@@ -29,14 +29,22 @@ export function instanceOfQuizQuestion(value) {
|
|
|
29
29
|
return false;
|
|
30
30
|
if (!('quizId' in value) || value['quizId'] === undefined)
|
|
31
31
|
return false;
|
|
32
|
+
if (!('conceptId' in value) || value['conceptId'] === undefined)
|
|
33
|
+
return false;
|
|
32
34
|
if (!('ordinal' in value) || value['ordinal'] === undefined)
|
|
33
35
|
return false;
|
|
34
36
|
if (!('type' in value) || value['type'] === undefined)
|
|
35
37
|
return false;
|
|
36
38
|
if (!('question' in value) || value['question'] === undefined)
|
|
37
39
|
return false;
|
|
40
|
+
if (!('options' in value) || value['options'] === undefined)
|
|
41
|
+
return false;
|
|
38
42
|
if (!('correctAnswer' in value) || value['correctAnswer'] === undefined)
|
|
39
43
|
return false;
|
|
44
|
+
if (!('explanation' in value) || value['explanation'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('topic' in value) || value['topic'] === undefined)
|
|
47
|
+
return false;
|
|
40
48
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
41
49
|
return false;
|
|
42
50
|
return true;
|
|
@@ -51,14 +59,14 @@ export function QuizQuestionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
59
|
return {
|
|
52
60
|
'id': json['id'],
|
|
53
61
|
'quizId': json['quizId'],
|
|
54
|
-
'conceptId': json['conceptId']
|
|
62
|
+
'conceptId': json['conceptId'],
|
|
55
63
|
'ordinal': json['ordinal'],
|
|
56
64
|
'type': json['type'],
|
|
57
65
|
'question': json['question'],
|
|
58
|
-
'options': json['options'] == null ?
|
|
66
|
+
'options': json['options'] == null ? null : json['options'],
|
|
59
67
|
'correctAnswer': json['correctAnswer'],
|
|
60
|
-
'explanation': json['explanation']
|
|
61
|
-
'topic': json['topic']
|
|
68
|
+
'explanation': json['explanation'],
|
|
69
|
+
'topic': json['topic'],
|
|
62
70
|
'createdAt': (new Date(json['createdAt'])),
|
|
63
71
|
};
|
|
64
72
|
}
|
|
@@ -44,13 +44,13 @@ export interface QuizResponse {
|
|
|
44
44
|
* @type {boolean}
|
|
45
45
|
* @memberof QuizResponse
|
|
46
46
|
*/
|
|
47
|
-
isCorrect
|
|
47
|
+
isCorrect: boolean | null;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof QuizResponse
|
|
52
52
|
*/
|
|
53
|
-
rating
|
|
53
|
+
rating: QuizResponseRatingEnum | null;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {Date}
|
|
@@ -30,6 +30,10 @@ export function instanceOfQuizResponse(value) {
|
|
|
30
30
|
return false;
|
|
31
31
|
if (!('userAnswer' in value) || value['userAnswer'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
+
if (!('isCorrect' in value) || value['isCorrect'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('rating' in value) || value['rating'] === undefined)
|
|
36
|
+
return false;
|
|
33
37
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
34
38
|
return false;
|
|
35
39
|
return true;
|
|
@@ -46,8 +50,8 @@ export function QuizResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
50
|
'sessionId': json['sessionId'],
|
|
47
51
|
'questionId': json['questionId'],
|
|
48
52
|
'userAnswer': json['userAnswer'],
|
|
49
|
-
'isCorrect': json['isCorrect']
|
|
50
|
-
'rating': json['rating']
|
|
53
|
+
'isCorrect': json['isCorrect'],
|
|
54
|
+
'rating': json['rating'],
|
|
51
55
|
'createdAt': (new Date(json['createdAt'])),
|
|
52
56
|
};
|
|
53
57
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
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 {
|
|
49
|
+
* @type {Score}
|
|
50
50
|
* @memberof QuizSessionSummary
|
|
51
51
|
*/
|
|
52
|
-
score:
|
|
52
|
+
score: Score;
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
55
|
* Check if a given object implements the QuizSessionSummary interface.
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
import {
|
|
14
|
+
import { ScoreFromJSON, ScoreToJSON, } from './Score';
|
|
15
15
|
import { QuizFromJSON, QuizToJSON, } from './Quiz';
|
|
16
16
|
import { QuizSessionFromJSON, QuizSessionToJSON, } from './QuizSession';
|
|
17
17
|
import { QuizQuestionFromJSON, QuizQuestionToJSON, } from './QuizQuestion';
|
|
@@ -44,7 +44,7 @@ export function QuizSessionSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
'quiz': QuizFromJSON(json['quiz']),
|
|
45
45
|
'questions': (json['questions'].map(QuizQuestionFromJSON)),
|
|
46
46
|
'responses': (json['responses'].map(QuizResponseFromJSON)),
|
|
47
|
-
'score':
|
|
47
|
+
'score': ScoreFromJSON(json['score']),
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
50
|
export function QuizSessionSummaryToJSON(json) {
|
|
@@ -59,6 +59,6 @@ export function QuizSessionSummaryToJSONTyped(value, ignoreDiscriminator = false
|
|
|
59
59
|
'quiz': QuizToJSON(value['quiz']),
|
|
60
60
|
'questions': (value['questions'].map(QuizQuestionToJSON)),
|
|
61
61
|
'responses': (value['responses'].map(QuizResponseToJSON)),
|
|
62
|
-
'score':
|
|
62
|
+
'score': ScoreToJSON(value['score']),
|
|
63
63
|
};
|
|
64
64
|
}
|
|
@@ -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,53 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Athena API
|
|
5
|
+
* REST API for the Athena system
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { mapValues } from '../runtime';
|
|
15
|
+
import { ScoreByTypeValueFromJSON, ScoreByTypeValueToJSON, } from './ScoreByTypeValue';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the Score interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfScore(value) {
|
|
20
|
+
if (!('totalCorrect' in value) || value['totalCorrect'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('totalQuestions' in value) || value['totalQuestions'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('byType' in value) || value['byType'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function ScoreFromJSON(json) {
|
|
29
|
+
return ScoreFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function ScoreFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'totalCorrect': json['totalCorrect'],
|
|
37
|
+
'totalQuestions': json['totalQuestions'],
|
|
38
|
+
'byType': (mapValues(json['byType'], ScoreByTypeValueFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function ScoreToJSON(json) {
|
|
42
|
+
return ScoreToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function ScoreToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'totalCorrect': value['totalCorrect'],
|
|
50
|
+
'totalQuestions': value['totalQuestions'],
|
|
51
|
+
'byType': (mapValues(value['byType'], ScoreByTypeValueToJSON)),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -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,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Athena API
|
|
5
|
+
* REST API for the Athena system
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the UpdateAccountDto interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfUpdateAccountDto(value) {
|
|
18
|
+
if (!('planId' in value) || value['planId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function UpdateAccountDtoFromJSON(json) {
|
|
23
|
+
return UpdateAccountDtoFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function UpdateAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'planId': json['planId'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function UpdateAccountDtoToJSON(json) {
|
|
34
|
+
return UpdateAccountDtoToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function UpdateAccountDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'planId': value['planId'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -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,45 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Athena API
|
|
5
|
+
* REST API for the Athena system
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the UpdateFeatureDto interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfUpdateFeatureDto(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function UpdateFeatureDtoFromJSON(json) {
|
|
21
|
+
return UpdateFeatureDtoFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function UpdateFeatureDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
29
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
30
|
+
'planId': json['planId'] == null ? undefined : json['planId'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function UpdateFeatureDtoToJSON(json) {
|
|
34
|
+
return UpdateFeatureDtoToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function UpdateFeatureDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'name': value['name'],
|
|
42
|
+
'description': value['description'],
|
|
43
|
+
'planId': value['planId'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
@@ -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;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Athena API
|
|
5
|
+
* REST API for the Athena system
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the UpdatePlanDto interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfUpdatePlanDto(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function UpdatePlanDtoFromJSON(json) {
|
|
21
|
+
return UpdatePlanDtoFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function UpdatePlanDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
29
|
+
'rank': json['rank'] == null ? undefined : json['rank'],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export function UpdatePlanDtoToJSON(json) {
|
|
33
|
+
return UpdatePlanDtoToJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function UpdatePlanDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'name': value['name'],
|
|
41
|
+
'rank': value['rank'],
|
|
42
|
+
};
|
|
43
|
+
}
|