@instructure/athena-api-client 2.19.2 → 2.20.1

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.
@@ -99,6 +99,24 @@ export interface Chat {
99
99
  * @memberof Chat
100
100
  */
101
101
  taxonomyId: string | null;
102
+ /**
103
+ * Snapshot of the learner's strength (0..1) captured when a learning session chat was created. Only populated for chatType 'level-up' or 'quick-practice'; null otherwise.
104
+ * @type {number}
105
+ * @memberof Chat
106
+ */
107
+ initialStrength: number | null;
108
+ /**
109
+ * ID of the concept flagged as primary for this chat. Only populated for chatType 'level-up' or 'quick-practice'; null otherwise.
110
+ * @type {string}
111
+ * @memberof Chat
112
+ */
113
+ primaryConceptId: string | null;
114
+ /**
115
+ * Timestamp when a learning session chat was closed by its completion tool. Null for chats that have not been closed.
116
+ * @type {Date}
117
+ * @memberof Chat
118
+ */
119
+ closedAt: Date | null;
102
120
  }
103
121
  /**
104
122
  * @export
@@ -50,6 +50,12 @@ export function instanceOfChat(value) {
50
50
  return false;
51
51
  if (!('taxonomyId' in value) || value['taxonomyId'] === undefined)
52
52
  return false;
53
+ if (!('initialStrength' in value) || value['initialStrength'] === undefined)
54
+ return false;
55
+ if (!('primaryConceptId' in value) || value['primaryConceptId'] === undefined)
56
+ return false;
57
+ if (!('closedAt' in value) || value['closedAt'] === undefined)
58
+ return false;
53
59
  return true;
54
60
  }
55
61
  export function ChatFromJSON(json) {
@@ -74,6 +80,9 @@ export function ChatFromJSONTyped(json, ignoreDiscriminator) {
74
80
  'goalAchieved': json['goalAchieved'],
75
81
  'forReview': json['forReview'],
76
82
  'taxonomyId': json['taxonomyId'],
83
+ 'initialStrength': json['initialStrength'],
84
+ 'primaryConceptId': json['primaryConceptId'],
85
+ 'closedAt': (json['closedAt'] == null ? null : new Date(json['closedAt'])),
77
86
  };
78
87
  }
79
88
  export function ChatToJSON(json) {
@@ -98,5 +107,8 @@ export function ChatToJSONTyped(value, ignoreDiscriminator = false) {
98
107
  'goalAchieved': value['goalAchieved'],
99
108
  'forReview': value['forReview'],
100
109
  'taxonomyId': value['taxonomyId'],
110
+ 'initialStrength': value['initialStrength'],
111
+ 'primaryConceptId': value['primaryConceptId'],
112
+ 'closedAt': value['closedAt'] == null ? value['closedAt'] : value['closedAt'].toISOString(),
101
113
  };
102
114
  }
@@ -99,6 +99,24 @@ export interface Chat {
99
99
  * @memberof Chat
100
100
  */
101
101
  taxonomyId: string | null;
102
+ /**
103
+ * Snapshot of the learner's strength (0..1) captured when a learning session chat was created. Only populated for chatType 'level-up' or 'quick-practice'; null otherwise.
104
+ * @type {number}
105
+ * @memberof Chat
106
+ */
107
+ initialStrength: number | null;
108
+ /**
109
+ * ID of the concept flagged as primary for this chat. Only populated for chatType 'level-up' or 'quick-practice'; null otherwise.
110
+ * @type {string}
111
+ * @memberof Chat
112
+ */
113
+ primaryConceptId: string | null;
114
+ /**
115
+ * Timestamp when a learning session chat was closed by its completion tool. Null for chats that have not been closed.
116
+ * @type {Date}
117
+ * @memberof Chat
118
+ */
119
+ closedAt: Date | null;
102
120
  }
103
121
  /**
104
122
  * @export
@@ -58,6 +58,12 @@ function instanceOfChat(value) {
58
58
  return false;
59
59
  if (!('taxonomyId' in value) || value['taxonomyId'] === undefined)
60
60
  return false;
61
+ if (!('initialStrength' in value) || value['initialStrength'] === undefined)
62
+ return false;
63
+ if (!('primaryConceptId' in value) || value['primaryConceptId'] === undefined)
64
+ return false;
65
+ if (!('closedAt' in value) || value['closedAt'] === undefined)
66
+ return false;
61
67
  return true;
62
68
  }
63
69
  function ChatFromJSON(json) {
@@ -82,6 +88,9 @@ function ChatFromJSONTyped(json, ignoreDiscriminator) {
82
88
  'goalAchieved': json['goalAchieved'],
83
89
  'forReview': json['forReview'],
84
90
  'taxonomyId': json['taxonomyId'],
91
+ 'initialStrength': json['initialStrength'],
92
+ 'primaryConceptId': json['primaryConceptId'],
93
+ 'closedAt': (json['closedAt'] == null ? null : new Date(json['closedAt'])),
85
94
  };
86
95
  }
87
96
  function ChatToJSON(json) {
@@ -106,5 +115,8 @@ function ChatToJSONTyped(value, ignoreDiscriminator = false) {
106
115
  'goalAchieved': value['goalAchieved'],
107
116
  'forReview': value['forReview'],
108
117
  'taxonomyId': value['taxonomyId'],
118
+ 'initialStrength': value['initialStrength'],
119
+ 'primaryConceptId': value['primaryConceptId'],
120
+ 'closedAt': value['closedAt'] == null ? value['closedAt'] : value['closedAt'].toISOString(),
109
121
  };
110
122
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@instructure/athena-api-client",
3
3
  "private": false,
4
- "version": "2.19.2",
4
+ "version": "2.20.1",
5
5
  "description": "OpenAPI client for the Athena API",
6
6
  "author": "Instructure",
7
7
  "repository": {