@vendasta/conversation 0.90.0 → 0.91.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.
- package/esm2022/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2022/lib/_internal/objects/api.mjs +15 -1
- package/fesm2022/vendasta-conversation.mjs +14 -0
- package/fesm2022/vendasta-conversation.mjs.map +1 -1
- package/lib/_internal/interfaces/api.interface.d.ts +2 -0
- package/lib/_internal/objects/api.d.ts +2 -0
- package/package.json +1 -1
|
@@ -2414,6 +2414,8 @@ class GetMultiConversationDetailsResponseDetailedConversation {
|
|
|
2414
2414
|
latestMessage;
|
|
2415
2415
|
participants;
|
|
2416
2416
|
summary;
|
|
2417
|
+
event;
|
|
2418
|
+
message;
|
|
2417
2419
|
static fromProto(proto) {
|
|
2418
2420
|
let m = new GetMultiConversationDetailsResponseDetailedConversation();
|
|
2419
2421
|
m = Object.assign(m, proto);
|
|
@@ -2426,6 +2428,12 @@ class GetMultiConversationDetailsResponseDetailedConversation {
|
|
|
2426
2428
|
if (proto.participants) {
|
|
2427
2429
|
m.participants = proto.participants.map(Participant.fromProto);
|
|
2428
2430
|
}
|
|
2431
|
+
if (proto.event) {
|
|
2432
|
+
m.event = Event.fromProto(proto.event);
|
|
2433
|
+
}
|
|
2434
|
+
if (proto.message) {
|
|
2435
|
+
m.message = Message.fromProto(proto.message);
|
|
2436
|
+
}
|
|
2429
2437
|
return m;
|
|
2430
2438
|
}
|
|
2431
2439
|
constructor(kwargs) {
|
|
@@ -2448,6 +2456,12 @@ class GetMultiConversationDetailsResponseDetailedConversation {
|
|
|
2448
2456
|
if (typeof this.summary !== 'undefined') {
|
|
2449
2457
|
toReturn['summary'] = this.summary;
|
|
2450
2458
|
}
|
|
2459
|
+
if (typeof this.event !== 'undefined' && this.event !== null) {
|
|
2460
|
+
toReturn['event'] = 'toApiJson' in this.event ? this.event.toApiJson() : this.event;
|
|
2461
|
+
}
|
|
2462
|
+
if (typeof this.message !== 'undefined' && this.message !== null) {
|
|
2463
|
+
toReturn['message'] = 'toApiJson' in this.message ? this.message.toApiJson() : this.message;
|
|
2464
|
+
}
|
|
2451
2465
|
return toReturn;
|
|
2452
2466
|
}
|
|
2453
2467
|
}
|