@instructure/athena-api-client 1.0.6 → 1.0.7

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.
@@ -38,13 +38,13 @@ export interface Chat {
38
38
  * @type {string}
39
39
  * @memberof Chat
40
40
  */
41
- chatType?: string | null;
41
+ chatType: string | null;
42
42
  /**
43
43
  * Last viewed timestamp
44
44
  * @type {Date}
45
45
  * @memberof Chat
46
46
  */
47
- lastViewedAt?: Date | null;
47
+ lastViewedAt: Date | null;
48
48
  /**
49
49
  * External user ID (matches the X-User-Id header value)
50
50
  * @type {string}
@@ -62,31 +62,31 @@ export interface Chat {
62
62
  * @type {string}
63
63
  * @memberof Chat
64
64
  */
65
- subjectId?: string | null;
65
+ subjectId: string | null;
66
66
  /**
67
67
  * Latest job ID
68
68
  * @type {string}
69
69
  * @memberof Chat
70
70
  */
71
- latestJobId?: string | null;
71
+ latestJobId: string | null;
72
72
  /**
73
73
  * Scheduled analysis timestamp
74
74
  * @type {Date}
75
75
  * @memberof Chat
76
76
  */
77
- analysisScheduledFor?: Date | null;
77
+ analysisScheduledFor: Date | null;
78
78
  /**
79
79
  * Chat goal
80
80
  * @type {string}
81
81
  * @memberof Chat
82
82
  */
83
- goal?: string | null;
83
+ goal: string | null;
84
84
  /**
85
85
  * Whether the goal has been achieved
86
86
  * @type {boolean}
87
87
  * @memberof Chat
88
88
  */
89
- goalAchieved?: boolean | null;
89
+ goalAchieved: boolean | null;
90
90
  /**
91
91
  * Whether the chat is marked for review
92
92
  * @type {boolean}
@@ -28,10 +28,24 @@ export function instanceOfChat(value) {
28
28
  return false;
29
29
  if (!('title' in value) || value['title'] === undefined)
30
30
  return false;
31
+ if (!('chatType' in value) || value['chatType'] === undefined)
32
+ return false;
33
+ if (!('lastViewedAt' in value) || value['lastViewedAt'] === undefined)
34
+ return false;
31
35
  if (!('userId' in value) || value['userId'] === undefined)
32
36
  return false;
33
37
  if (!('visibility' in value) || value['visibility'] === undefined)
34
38
  return false;
39
+ if (!('subjectId' in value) || value['subjectId'] === undefined)
40
+ return false;
41
+ if (!('latestJobId' in value) || value['latestJobId'] === undefined)
42
+ return false;
43
+ if (!('analysisScheduledFor' in value) || value['analysisScheduledFor'] === undefined)
44
+ return false;
45
+ if (!('goal' in value) || value['goal'] === undefined)
46
+ return false;
47
+ if (!('goalAchieved' in value) || value['goalAchieved'] === undefined)
48
+ return false;
35
49
  if (!('forReview' in value) || value['forReview'] === undefined)
36
50
  return false;
37
51
  return true;
@@ -47,15 +61,15 @@ export function ChatFromJSONTyped(json, ignoreDiscriminator) {
47
61
  'id': json['id'],
48
62
  'createdAt': (new Date(json['createdAt'])),
49
63
  'title': json['title'],
50
- 'chatType': json['chatType'] == null ? undefined : json['chatType'],
51
- 'lastViewedAt': json['lastViewedAt'] == null ? undefined : (new Date(json['lastViewedAt'])),
64
+ 'chatType': json['chatType'],
65
+ 'lastViewedAt': (json['lastViewedAt'] == null ? null : new Date(json['lastViewedAt'])),
52
66
  'userId': json['userId'],
53
67
  'visibility': json['visibility'],
54
- 'subjectId': json['subjectId'] == null ? undefined : json['subjectId'],
55
- 'latestJobId': json['latestJobId'] == null ? undefined : json['latestJobId'],
56
- 'analysisScheduledFor': json['analysisScheduledFor'] == null ? undefined : (new Date(json['analysisScheduledFor'])),
57
- 'goal': json['goal'] == null ? undefined : json['goal'],
58
- 'goalAchieved': json['goalAchieved'] == null ? undefined : json['goalAchieved'],
68
+ 'subjectId': json['subjectId'],
69
+ 'latestJobId': json['latestJobId'],
70
+ 'analysisScheduledFor': (json['analysisScheduledFor'] == null ? null : new Date(json['analysisScheduledFor'])),
71
+ 'goal': json['goal'],
72
+ 'goalAchieved': json['goalAchieved'],
59
73
  'forReview': json['forReview'],
60
74
  };
61
75
  }
@@ -38,13 +38,13 @@ export interface Chat {
38
38
  * @type {string}
39
39
  * @memberof Chat
40
40
  */
41
- chatType?: string | null;
41
+ chatType: string | null;
42
42
  /**
43
43
  * Last viewed timestamp
44
44
  * @type {Date}
45
45
  * @memberof Chat
46
46
  */
47
- lastViewedAt?: Date | null;
47
+ lastViewedAt: Date | null;
48
48
  /**
49
49
  * External user ID (matches the X-User-Id header value)
50
50
  * @type {string}
@@ -62,31 +62,31 @@ export interface Chat {
62
62
  * @type {string}
63
63
  * @memberof Chat
64
64
  */
65
- subjectId?: string | null;
65
+ subjectId: string | null;
66
66
  /**
67
67
  * Latest job ID
68
68
  * @type {string}
69
69
  * @memberof Chat
70
70
  */
71
- latestJobId?: string | null;
71
+ latestJobId: string | null;
72
72
  /**
73
73
  * Scheduled analysis timestamp
74
74
  * @type {Date}
75
75
  * @memberof Chat
76
76
  */
77
- analysisScheduledFor?: Date | null;
77
+ analysisScheduledFor: Date | null;
78
78
  /**
79
79
  * Chat goal
80
80
  * @type {string}
81
81
  * @memberof Chat
82
82
  */
83
- goal?: string | null;
83
+ goal: string | null;
84
84
  /**
85
85
  * Whether the goal has been achieved
86
86
  * @type {boolean}
87
87
  * @memberof Chat
88
88
  */
89
- goalAchieved?: boolean | null;
89
+ goalAchieved: boolean | null;
90
90
  /**
91
91
  * Whether the chat is marked for review
92
92
  * @type {boolean}
@@ -36,10 +36,24 @@ function instanceOfChat(value) {
36
36
  return false;
37
37
  if (!('title' in value) || value['title'] === undefined)
38
38
  return false;
39
+ if (!('chatType' in value) || value['chatType'] === undefined)
40
+ return false;
41
+ if (!('lastViewedAt' in value) || value['lastViewedAt'] === undefined)
42
+ return false;
39
43
  if (!('userId' in value) || value['userId'] === undefined)
40
44
  return false;
41
45
  if (!('visibility' in value) || value['visibility'] === undefined)
42
46
  return false;
47
+ if (!('subjectId' in value) || value['subjectId'] === undefined)
48
+ return false;
49
+ if (!('latestJobId' in value) || value['latestJobId'] === undefined)
50
+ return false;
51
+ if (!('analysisScheduledFor' in value) || value['analysisScheduledFor'] === undefined)
52
+ return false;
53
+ if (!('goal' in value) || value['goal'] === undefined)
54
+ return false;
55
+ if (!('goalAchieved' in value) || value['goalAchieved'] === undefined)
56
+ return false;
43
57
  if (!('forReview' in value) || value['forReview'] === undefined)
44
58
  return false;
45
59
  return true;
@@ -55,15 +69,15 @@ function ChatFromJSONTyped(json, ignoreDiscriminator) {
55
69
  'id': json['id'],
56
70
  'createdAt': (new Date(json['createdAt'])),
57
71
  'title': json['title'],
58
- 'chatType': json['chatType'] == null ? undefined : json['chatType'],
59
- 'lastViewedAt': json['lastViewedAt'] == null ? undefined : (new Date(json['lastViewedAt'])),
72
+ 'chatType': json['chatType'],
73
+ 'lastViewedAt': (json['lastViewedAt'] == null ? null : new Date(json['lastViewedAt'])),
60
74
  'userId': json['userId'],
61
75
  'visibility': json['visibility'],
62
- 'subjectId': json['subjectId'] == null ? undefined : json['subjectId'],
63
- 'latestJobId': json['latestJobId'] == null ? undefined : json['latestJobId'],
64
- 'analysisScheduledFor': json['analysisScheduledFor'] == null ? undefined : (new Date(json['analysisScheduledFor'])),
65
- 'goal': json['goal'] == null ? undefined : json['goal'],
66
- 'goalAchieved': json['goalAchieved'] == null ? undefined : json['goalAchieved'],
76
+ 'subjectId': json['subjectId'],
77
+ 'latestJobId': json['latestJobId'],
78
+ 'analysisScheduledFor': (json['analysisScheduledFor'] == null ? null : new Date(json['analysisScheduledFor'])),
79
+ 'goal': json['goal'],
80
+ 'goalAchieved': json['goalAchieved'],
67
81
  'forReview': json['forReview'],
68
82
  };
69
83
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@instructure/athena-api-client",
3
3
  "private": false,
4
- "version": "1.0.6",
4
+ "version": "1.0.7",
5
5
  "description": "OpenAPI client for the Athena API",
6
6
  "author": "Instructure",
7
7
  "repository": {