@instructure/athena-api-client 2.0.5 → 2.0.6
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.
|
@@ -27,6 +27,12 @@ export interface DailyQuizStatus {
|
|
|
27
27
|
* @memberof DailyQuizStatus
|
|
28
28
|
*/
|
|
29
29
|
chatId: string | null;
|
|
30
|
+
/**
|
|
31
|
+
* True when today's daily-quiz chat exists and the quiz session has been completed. False when no chat exists, or when the quiz is still in progress.
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof DailyQuizStatus
|
|
34
|
+
*/
|
|
35
|
+
completed: boolean;
|
|
30
36
|
/**
|
|
31
37
|
* Human-readable calendar date for "today" in the user's timezone (e.g. for titling a new chat). Returned regardless of featureEnabled so clients can stay consistent with server-side date boundaries.
|
|
32
38
|
* @type {string}
|
|
@@ -19,6 +19,8 @@ export function instanceOfDailyQuizStatus(value) {
|
|
|
19
19
|
return false;
|
|
20
20
|
if (!('chatId' in value) || value['chatId'] === undefined)
|
|
21
21
|
return false;
|
|
22
|
+
if (!('completed' in value) || value['completed'] === undefined)
|
|
23
|
+
return false;
|
|
22
24
|
if (!('todayDate' in value) || value['todayDate'] === undefined)
|
|
23
25
|
return false;
|
|
24
26
|
return true;
|
|
@@ -33,6 +35,7 @@ export function DailyQuizStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
35
|
return {
|
|
34
36
|
'featureEnabled': json['featureEnabled'],
|
|
35
37
|
'chatId': json['chatId'],
|
|
38
|
+
'completed': json['completed'],
|
|
36
39
|
'todayDate': json['todayDate'],
|
|
37
40
|
};
|
|
38
41
|
}
|
|
@@ -46,6 +49,7 @@ export function DailyQuizStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
46
49
|
return {
|
|
47
50
|
'featureEnabled': value['featureEnabled'],
|
|
48
51
|
'chatId': value['chatId'],
|
|
52
|
+
'completed': value['completed'],
|
|
49
53
|
'todayDate': value['todayDate'],
|
|
50
54
|
};
|
|
51
55
|
}
|
|
@@ -27,6 +27,12 @@ export interface DailyQuizStatus {
|
|
|
27
27
|
* @memberof DailyQuizStatus
|
|
28
28
|
*/
|
|
29
29
|
chatId: string | null;
|
|
30
|
+
/**
|
|
31
|
+
* True when today's daily-quiz chat exists and the quiz session has been completed. False when no chat exists, or when the quiz is still in progress.
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof DailyQuizStatus
|
|
34
|
+
*/
|
|
35
|
+
completed: boolean;
|
|
30
36
|
/**
|
|
31
37
|
* Human-readable calendar date for "today" in the user's timezone (e.g. for titling a new chat). Returned regardless of featureEnabled so clients can stay consistent with server-side date boundaries.
|
|
32
38
|
* @type {string}
|
|
@@ -26,6 +26,8 @@ function instanceOfDailyQuizStatus(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('chatId' in value) || value['chatId'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('completed' in value) || value['completed'] === undefined)
|
|
30
|
+
return false;
|
|
29
31
|
if (!('todayDate' in value) || value['todayDate'] === undefined)
|
|
30
32
|
return false;
|
|
31
33
|
return true;
|
|
@@ -40,6 +42,7 @@ function DailyQuizStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
42
|
return {
|
|
41
43
|
'featureEnabled': json['featureEnabled'],
|
|
42
44
|
'chatId': json['chatId'],
|
|
45
|
+
'completed': json['completed'],
|
|
43
46
|
'todayDate': json['todayDate'],
|
|
44
47
|
};
|
|
45
48
|
}
|
|
@@ -53,6 +56,7 @@ function DailyQuizStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
53
56
|
return {
|
|
54
57
|
'featureEnabled': value['featureEnabled'],
|
|
55
58
|
'chatId': value['chatId'],
|
|
59
|
+
'completed': value['completed'],
|
|
56
60
|
'todayDate': value['todayDate'],
|
|
57
61
|
};
|
|
58
62
|
}
|