@vendasta/conversation 0.43.0 → 0.44.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/interfaces/conversation.interface.mjs +1 -1
- package/esm2020/lib/_internal/objects/conversation.mjs +10 -1
- package/fesm2015/vendasta-conversation.mjs +9 -0
- package/fesm2015/vendasta-conversation.mjs.map +1 -1
- package/fesm2020/vendasta-conversation.mjs +9 -0
- package/fesm2020/vendasta-conversation.mjs.map +1 -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
|
@@ -215,6 +215,9 @@ class Conversation {
|
|
|
215
215
|
if (proto.lastSeenByParticipant) {
|
|
216
216
|
m.lastSeenByParticipant = proto.lastSeenByParticipant.map(LastSeenByParticipant.fromProto);
|
|
217
217
|
}
|
|
218
|
+
if (proto.subjectParticipants) {
|
|
219
|
+
m.subjectParticipants = proto.subjectParticipants.map(SubjectParticipant.fromProto);
|
|
220
|
+
}
|
|
218
221
|
return m;
|
|
219
222
|
}
|
|
220
223
|
constructor(kwargs) {
|
|
@@ -261,6 +264,12 @@ class Conversation {
|
|
|
261
264
|
if (typeof this.conversationViewIds !== 'undefined') {
|
|
262
265
|
toReturn['conversationViewIds'] = this.conversationViewIds;
|
|
263
266
|
}
|
|
267
|
+
if (typeof this.subjectParticipantsKey !== 'undefined') {
|
|
268
|
+
toReturn['subjectParticipantsKey'] = this.subjectParticipantsKey;
|
|
269
|
+
}
|
|
270
|
+
if (typeof this.subjectParticipants !== 'undefined' && this.subjectParticipants !== null) {
|
|
271
|
+
toReturn['subjectParticipants'] = 'toApiJson' in this.subjectParticipants ? this.subjectParticipants.toApiJson() : this.subjectParticipants;
|
|
272
|
+
}
|
|
264
273
|
return toReturn;
|
|
265
274
|
}
|
|
266
275
|
}
|