@instructure/athena-api-client 3.16.2 → 3.17.0

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.
@@ -59,7 +59,21 @@ export interface Message {
59
59
  * @memberof Message
60
60
  */
61
61
  isLearningMoment?: boolean;
62
+ /**
63
+ * Originating client for this message ('web' or 'ios'), or null when the source is unknown. Tracked per-message because a chat may move between platforms over its lifetime.
64
+ * @type {string}
65
+ * @memberof Message
66
+ */
67
+ source: MessageSourceEnum | null;
62
68
  }
69
+ /**
70
+ * @export
71
+ */
72
+ export declare const MessageSourceEnum: {
73
+ readonly Web: "web";
74
+ readonly Ios: "ios";
75
+ };
76
+ export type MessageSourceEnum = typeof MessageSourceEnum[keyof typeof MessageSourceEnum];
63
77
  /**
64
78
  * Check if a given object implements the Message interface.
65
79
  */
@@ -13,6 +13,13 @@
13
13
  */
14
14
  import { MessageAttachmentFromJSON, MessageAttachmentToJSON, } from './MessageAttachment';
15
15
  import { MessagePartsInnerFromJSON, MessagePartsInnerToJSON, } from './MessagePartsInner';
16
+ /**
17
+ * @export
18
+ */
19
+ export const MessageSourceEnum = {
20
+ Web: 'web',
21
+ Ios: 'ios'
22
+ };
16
23
  /**
17
24
  * Check if a given object implements the Message interface.
18
25
  */
@@ -29,6 +36,8 @@ export function instanceOfMessage(value) {
29
36
  return false;
30
37
  if (!('createdAt' in value) || value['createdAt'] === undefined)
31
38
  return false;
39
+ if (!('source' in value) || value['source'] === undefined)
40
+ return false;
32
41
  return true;
33
42
  }
34
43
  export function MessageFromJSON(json) {
@@ -46,6 +55,7 @@ export function MessageFromJSONTyped(json, ignoreDiscriminator) {
46
55
  'attachments': (json['attachments'].map(MessageAttachmentFromJSON)),
47
56
  'createdAt': (new Date(json['createdAt'])),
48
57
  'isLearningMoment': json['isLearningMoment'] == null ? undefined : json['isLearningMoment'],
58
+ 'source': json['source'],
49
59
  };
50
60
  }
51
61
  export function MessageToJSON(json) {
@@ -63,5 +73,6 @@ export function MessageToJSONTyped(value, ignoreDiscriminator = false) {
63
73
  'attachments': (value['attachments'].map(MessageAttachmentToJSON)),
64
74
  'createdAt': value['createdAt'].toISOString(),
65
75
  'isLearningMoment': value['isLearningMoment'],
76
+ 'source': value['source'],
66
77
  };
67
78
  }
@@ -59,7 +59,21 @@ export interface Message {
59
59
  * @memberof Message
60
60
  */
61
61
  isLearningMoment?: boolean;
62
+ /**
63
+ * Originating client for this message ('web' or 'ios'), or null when the source is unknown. Tracked per-message because a chat may move between platforms over its lifetime.
64
+ * @type {string}
65
+ * @memberof Message
66
+ */
67
+ source: MessageSourceEnum | null;
62
68
  }
69
+ /**
70
+ * @export
71
+ */
72
+ export declare const MessageSourceEnum: {
73
+ readonly Web: "web";
74
+ readonly Ios: "ios";
75
+ };
76
+ export type MessageSourceEnum = typeof MessageSourceEnum[keyof typeof MessageSourceEnum];
63
77
  /**
64
78
  * Check if a given object implements the Message interface.
65
79
  */
@@ -13,6 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.MessageSourceEnum = void 0;
16
17
  exports.instanceOfMessage = instanceOfMessage;
17
18
  exports.MessageFromJSON = MessageFromJSON;
18
19
  exports.MessageFromJSONTyped = MessageFromJSONTyped;
@@ -20,6 +21,13 @@ exports.MessageToJSON = MessageToJSON;
20
21
  exports.MessageToJSONTyped = MessageToJSONTyped;
21
22
  const MessageAttachment_1 = require("./MessageAttachment");
22
23
  const MessagePartsInner_1 = require("./MessagePartsInner");
24
+ /**
25
+ * @export
26
+ */
27
+ exports.MessageSourceEnum = {
28
+ Web: 'web',
29
+ Ios: 'ios'
30
+ };
23
31
  /**
24
32
  * Check if a given object implements the Message interface.
25
33
  */
@@ -36,6 +44,8 @@ function instanceOfMessage(value) {
36
44
  return false;
37
45
  if (!('createdAt' in value) || value['createdAt'] === undefined)
38
46
  return false;
47
+ if (!('source' in value) || value['source'] === undefined)
48
+ return false;
39
49
  return true;
40
50
  }
41
51
  function MessageFromJSON(json) {
@@ -53,6 +63,7 @@ function MessageFromJSONTyped(json, ignoreDiscriminator) {
53
63
  'attachments': (json['attachments'].map(MessageAttachment_1.MessageAttachmentFromJSON)),
54
64
  'createdAt': (new Date(json['createdAt'])),
55
65
  'isLearningMoment': json['isLearningMoment'] == null ? undefined : json['isLearningMoment'],
66
+ 'source': json['source'],
56
67
  };
57
68
  }
58
69
  function MessageToJSON(json) {
@@ -70,5 +81,6 @@ function MessageToJSONTyped(value, ignoreDiscriminator = false) {
70
81
  'attachments': (value['attachments'].map(MessageAttachment_1.MessageAttachmentToJSON)),
71
82
  'createdAt': value['createdAt'].toISOString(),
72
83
  'isLearningMoment': value['isLearningMoment'],
84
+ 'source': value['source'],
73
85
  };
74
86
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@instructure/athena-api-client",
3
3
  "private": false,
4
- "version": "3.16.2",
4
+ "version": "3.17.0",
5
5
  "description": "OpenAPI client for the Athena API",
6
6
  "author": "Instructure",
7
7
  "repository": {