@vendasta/conversation 0.43.0 → 0.45.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.
- package/esm2020/lib/_internal/enums/message.enum.mjs +2 -1
- package/esm2020/lib/_internal/interfaces/conversation.interface.mjs +1 -1
- package/esm2020/lib/_internal/objects/conversation.mjs +10 -1
- package/fesm2015/vendasta-conversation.mjs +10 -0
- package/fesm2015/vendasta-conversation.mjs.map +1 -1
- package/fesm2020/vendasta-conversation.mjs +10 -0
- package/fesm2020/vendasta-conversation.mjs.map +1 -1
- package/lib/_internal/enums/message.enum.d.ts +2 -1
- package/lib/_internal/interfaces/conversation.interface.d.ts +2 -0
- package/lib/_internal/objects/conversation.d.ts +2 -0
- package/package.json +1 -1
|
@@ -72,6 +72,7 @@ var MessageStatus;
|
|
|
72
72
|
MessageStatus[MessageStatus["MESSAGE_STATUS_DELIVERED"] = 3] = "MESSAGE_STATUS_DELIVERED";
|
|
73
73
|
MessageStatus[MessageStatus["MESSAGE_STATUS_FAILED"] = 4] = "MESSAGE_STATUS_FAILED";
|
|
74
74
|
MessageStatus[MessageStatus["MESSAGE_STATUS_UNDELIVERED"] = 5] = "MESSAGE_STATUS_UNDELIVERED";
|
|
75
|
+
MessageStatus[MessageStatus["MESSAGE_STATUS_SENDING"] = 6] = "MESSAGE_STATUS_SENDING";
|
|
75
76
|
})(MessageStatus || (MessageStatus = {}));
|
|
76
77
|
var MessageType;
|
|
77
78
|
(function (MessageType) {
|
|
@@ -215,6 +216,9 @@ class Conversation {
|
|
|
215
216
|
if (proto.lastSeenByParticipant) {
|
|
216
217
|
m.lastSeenByParticipant = proto.lastSeenByParticipant.map(LastSeenByParticipant.fromProto);
|
|
217
218
|
}
|
|
219
|
+
if (proto.subjectParticipants) {
|
|
220
|
+
m.subjectParticipants = proto.subjectParticipants.map(SubjectParticipant.fromProto);
|
|
221
|
+
}
|
|
218
222
|
return m;
|
|
219
223
|
}
|
|
220
224
|
constructor(kwargs) {
|
|
@@ -261,6 +265,12 @@ class Conversation {
|
|
|
261
265
|
if (typeof this.conversationViewIds !== 'undefined') {
|
|
262
266
|
toReturn['conversationViewIds'] = this.conversationViewIds;
|
|
263
267
|
}
|
|
268
|
+
if (typeof this.subjectParticipantsKey !== 'undefined') {
|
|
269
|
+
toReturn['subjectParticipantsKey'] = this.subjectParticipantsKey;
|
|
270
|
+
}
|
|
271
|
+
if (typeof this.subjectParticipants !== 'undefined' && this.subjectParticipants !== null) {
|
|
272
|
+
toReturn['subjectParticipants'] = 'toApiJson' in this.subjectParticipants ? this.subjectParticipants.toApiJson() : this.subjectParticipants;
|
|
273
|
+
}
|
|
264
274
|
return toReturn;
|
|
265
275
|
}
|
|
266
276
|
}
|