@vendasta/conversation 0.10.0 → 0.11.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/bundles/vendasta-conversation.umd.js +46 -12
- package/bundles/vendasta-conversation.umd.js.map +1 -1
- package/bundles/vendasta-conversation.umd.min.js +1 -1
- package/bundles/vendasta-conversation.umd.min.js.map +1 -1
- package/esm2015/lib/_internal/interfaces/api.interface.js +1 -1
- package/esm2015/lib/_internal/interfaces/index.js +1 -1
- package/esm2015/lib/_internal/objects/api.js +37 -5
- package/esm2015/lib/_internal/objects/index.js +2 -2
- package/fesm2015/vendasta-conversation.js +37 -5
- package/fesm2015/vendasta-conversation.js.map +1 -1
- package/lib/_internal/interfaces/api.interface.d.ts +9 -2
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/objects/api.d.ts +16 -6
- package/lib/_internal/objects/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -385,6 +385,33 @@
|
|
|
385
385
|
};
|
|
386
386
|
return LookupConversationsResponseConversations;
|
|
387
387
|
}());
|
|
388
|
+
var GetMultiConversationMessageCountResponseCountsEntry = /** @class */ (function () {
|
|
389
|
+
function GetMultiConversationMessageCountResponseCountsEntry(kwargs) {
|
|
390
|
+
if (!kwargs) {
|
|
391
|
+
return;
|
|
392
|
+
}
|
|
393
|
+
Object.assign(this, kwargs);
|
|
394
|
+
}
|
|
395
|
+
GetMultiConversationMessageCountResponseCountsEntry.fromProto = function (proto) {
|
|
396
|
+
var m = new GetMultiConversationMessageCountResponseCountsEntry();
|
|
397
|
+
m = Object.assign(m, proto);
|
|
398
|
+
if (proto.value) {
|
|
399
|
+
m.value = parseInt(proto.value, 10);
|
|
400
|
+
}
|
|
401
|
+
return m;
|
|
402
|
+
};
|
|
403
|
+
GetMultiConversationMessageCountResponseCountsEntry.prototype.toApiJson = function () {
|
|
404
|
+
var toReturn = {};
|
|
405
|
+
if (typeof this.key !== 'undefined') {
|
|
406
|
+
toReturn['key'] = this.key;
|
|
407
|
+
}
|
|
408
|
+
if (typeof this.value !== 'undefined') {
|
|
409
|
+
toReturn['value'] = this.value;
|
|
410
|
+
}
|
|
411
|
+
return toReturn;
|
|
412
|
+
};
|
|
413
|
+
return GetMultiConversationMessageCountResponseCountsEntry;
|
|
414
|
+
}());
|
|
388
415
|
var CreateConversationRequest = /** @class */ (function () {
|
|
389
416
|
function CreateConversationRequest(kwargs) {
|
|
390
417
|
if (!kwargs) {
|
|
@@ -565,15 +592,15 @@
|
|
|
565
592
|
};
|
|
566
593
|
return DeleteMessageRequest;
|
|
567
594
|
}());
|
|
568
|
-
var
|
|
569
|
-
function
|
|
595
|
+
var SearchConversationsResponseDetailedConversation = /** @class */ (function () {
|
|
596
|
+
function SearchConversationsResponseDetailedConversation(kwargs) {
|
|
570
597
|
if (!kwargs) {
|
|
571
598
|
return;
|
|
572
599
|
}
|
|
573
600
|
Object.assign(this, kwargs);
|
|
574
601
|
}
|
|
575
|
-
|
|
576
|
-
var m = new
|
|
602
|
+
SearchConversationsResponseDetailedConversation.fromProto = function (proto) {
|
|
603
|
+
var m = new SearchConversationsResponseDetailedConversation();
|
|
577
604
|
m = Object.assign(m, proto);
|
|
578
605
|
if (proto.conversation) {
|
|
579
606
|
m.conversation = Conversation.fromProto(proto.conversation);
|
|
@@ -586,7 +613,7 @@
|
|
|
586
613
|
}
|
|
587
614
|
return m;
|
|
588
615
|
};
|
|
589
|
-
|
|
616
|
+
SearchConversationsResponseDetailedConversation.prototype.toApiJson = function () {
|
|
590
617
|
var toReturn = {};
|
|
591
618
|
if (typeof this.conversation !== 'undefined' && this.conversation !== null) {
|
|
592
619
|
toReturn['conversation'] = 'toApiJson' in this.conversation ? this.conversation.toApiJson() : this.conversation;
|
|
@@ -599,17 +626,17 @@
|
|
|
599
626
|
}
|
|
600
627
|
return toReturn;
|
|
601
628
|
};
|
|
602
|
-
return
|
|
629
|
+
return SearchConversationsResponseDetailedConversation;
|
|
603
630
|
}());
|
|
604
|
-
var
|
|
605
|
-
function
|
|
631
|
+
var GetMultiConversationDetailsResponseDetailedConversation = /** @class */ (function () {
|
|
632
|
+
function GetMultiConversationDetailsResponseDetailedConversation(kwargs) {
|
|
606
633
|
if (!kwargs) {
|
|
607
634
|
return;
|
|
608
635
|
}
|
|
609
636
|
Object.assign(this, kwargs);
|
|
610
637
|
}
|
|
611
|
-
|
|
612
|
-
var m = new
|
|
638
|
+
GetMultiConversationDetailsResponseDetailedConversation.fromProto = function (proto) {
|
|
639
|
+
var m = new GetMultiConversationDetailsResponseDetailedConversation();
|
|
613
640
|
m = Object.assign(m, proto);
|
|
614
641
|
if (proto.conversation) {
|
|
615
642
|
m.conversation = Conversation.fromProto(proto.conversation);
|
|
@@ -622,7 +649,7 @@
|
|
|
622
649
|
}
|
|
623
650
|
return m;
|
|
624
651
|
};
|
|
625
|
-
|
|
652
|
+
GetMultiConversationDetailsResponseDetailedConversation.prototype.toApiJson = function () {
|
|
626
653
|
var toReturn = {};
|
|
627
654
|
if (typeof this.conversation !== 'undefined' && this.conversation !== null) {
|
|
628
655
|
toReturn['conversation'] = 'toApiJson' in this.conversation ? this.conversation.toApiJson() : this.conversation;
|
|
@@ -635,7 +662,7 @@
|
|
|
635
662
|
}
|
|
636
663
|
return toReturn;
|
|
637
664
|
};
|
|
638
|
-
return
|
|
665
|
+
return GetMultiConversationDetailsResponseDetailedConversation;
|
|
639
666
|
}());
|
|
640
667
|
var GetMessageRequest = /** @class */ (function () {
|
|
641
668
|
function GetMessageRequest(kwargs) {
|
|
@@ -737,6 +764,9 @@
|
|
|
737
764
|
if (proto.messageCounts) {
|
|
738
765
|
m.messageCounts = proto.messageCounts.map(ConversationMessageCount.fromProto);
|
|
739
766
|
}
|
|
767
|
+
if (proto.counts) {
|
|
768
|
+
m.counts = Object.keys(proto.counts).reduce(function (obj, k) { obj[k] = parseInt(proto.counts[k], 10); return obj; }, {});
|
|
769
|
+
}
|
|
740
770
|
return m;
|
|
741
771
|
};
|
|
742
772
|
GetMultiConversationMessageCountResponse.prototype.toApiJson = function () {
|
|
@@ -744,6 +774,9 @@
|
|
|
744
774
|
if (typeof this.messageCounts !== 'undefined' && this.messageCounts !== null) {
|
|
745
775
|
toReturn['messageCounts'] = 'toApiJson' in this.messageCounts ? this.messageCounts.toApiJson() : this.messageCounts;
|
|
746
776
|
}
|
|
777
|
+
if (typeof this.counts !== 'undefined' && this.counts !== null) {
|
|
778
|
+
toReturn['counts'] = 'toApiJson' in this.counts ? this.counts.toApiJson() : this.counts;
|
|
779
|
+
}
|
|
747
780
|
return toReturn;
|
|
748
781
|
};
|
|
749
782
|
return GetMultiConversationMessageCountResponse;
|
|
@@ -1543,6 +1576,7 @@
|
|
|
1543
1576
|
exports.GetMultiConversationDetailsResponseDetailedConversation = GetMultiConversationDetailsResponseDetailedConversation;
|
|
1544
1577
|
exports.GetMultiConversationMessageCountRequest = GetMultiConversationMessageCountRequest;
|
|
1545
1578
|
exports.GetMultiConversationMessageCountResponse = GetMultiConversationMessageCountResponse;
|
|
1579
|
+
exports.GetMultiConversationMessageCountResponseCountsEntry = GetMultiConversationMessageCountResponseCountsEntry;
|
|
1546
1580
|
exports.GetMultiMessagesRequest = GetMultiMessagesRequest;
|
|
1547
1581
|
exports.GetMultiMessagesResponse = GetMultiMessagesResponse;
|
|
1548
1582
|
exports.GetMultiParticipantsRequest = GetMultiParticipantsRequest;
|