@vendasta/conversation 0.14.0 → 0.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.
- package/esm2020/lib/_internal/conversation.api.service.mjs +7 -2
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/participant.interface.mjs +1 -1
- package/esm2020/lib/_internal/objects/api.mjs +54 -5
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/esm2020/lib/_internal/objects/participant.mjs +4 -1
- package/fesm2015/vendasta-conversation.mjs +62 -5
- package/fesm2015/vendasta-conversation.mjs.map +1 -1
- package/fesm2020/vendasta-conversation.mjs +62 -5
- package/fesm2020/vendasta-conversation.mjs.map +1 -1
- package/lib/_internal/conversation.api.service.d.ts +3 -2
- package/lib/_internal/interfaces/api.interface.d.ts +10 -2
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/interfaces/participant.interface.d.ts +1 -0
- package/lib/_internal/objects/api.d.ts +20 -6
- package/lib/_internal/objects/index.d.ts +1 -1
- package/lib/_internal/objects/participant.d.ts +1 -0
- package/package.json +1 -1
|
@@ -384,6 +384,9 @@ class Participant {
|
|
|
384
384
|
if (typeof this.isSubjectParticipant !== 'undefined') {
|
|
385
385
|
toReturn['isSubjectParticipant'] = this.isSubjectParticipant;
|
|
386
386
|
}
|
|
387
|
+
if (typeof this.isParticipantInternalInfoDeleted !== 'undefined') {
|
|
388
|
+
toReturn['isParticipantInternalInfoDeleted'] = this.isParticipantInternalInfoDeleted;
|
|
389
|
+
}
|
|
387
390
|
return toReturn;
|
|
388
391
|
}
|
|
389
392
|
}
|
|
@@ -698,7 +701,7 @@ class DeleteMessageRequest {
|
|
|
698
701
|
return toReturn;
|
|
699
702
|
}
|
|
700
703
|
}
|
|
701
|
-
class
|
|
704
|
+
class SearchConversationsResponseDetailedConversation {
|
|
702
705
|
constructor(kwargs) {
|
|
703
706
|
if (!kwargs) {
|
|
704
707
|
return;
|
|
@@ -706,7 +709,7 @@ class GetMultiConversationDetailsResponseDetailedConversation {
|
|
|
706
709
|
Object.assign(this, kwargs);
|
|
707
710
|
}
|
|
708
711
|
static fromProto(proto) {
|
|
709
|
-
let m = new
|
|
712
|
+
let m = new SearchConversationsResponseDetailedConversation();
|
|
710
713
|
m = Object.assign(m, proto);
|
|
711
714
|
if (proto.conversation) {
|
|
712
715
|
m.conversation = Conversation.fromProto(proto.conversation);
|
|
@@ -733,7 +736,7 @@ class GetMultiConversationDetailsResponseDetailedConversation {
|
|
|
733
736
|
return toReturn;
|
|
734
737
|
}
|
|
735
738
|
}
|
|
736
|
-
class
|
|
739
|
+
class GetMultiConversationDetailsResponseDetailedConversation {
|
|
737
740
|
constructor(kwargs) {
|
|
738
741
|
if (!kwargs) {
|
|
739
742
|
return;
|
|
@@ -741,7 +744,7 @@ class SearchConversationsResponseDetailedConversation {
|
|
|
741
744
|
Object.assign(this, kwargs);
|
|
742
745
|
}
|
|
743
746
|
static fromProto(proto) {
|
|
744
|
-
let m = new
|
|
747
|
+
let m = new GetMultiConversationDetailsResponseDetailedConversation();
|
|
745
748
|
m = Object.assign(m, proto);
|
|
746
749
|
if (proto.conversation) {
|
|
747
750
|
m.conversation = Conversation.fromProto(proto.conversation);
|
|
@@ -897,6 +900,9 @@ class GetMultiMessagesRequest {
|
|
|
897
900
|
if (typeof this.messageIds !== 'undefined') {
|
|
898
901
|
toReturn['messageIds'] = this.messageIds;
|
|
899
902
|
}
|
|
903
|
+
if (typeof this.conversationId !== 'undefined') {
|
|
904
|
+
toReturn['conversationId'] = this.conversationId;
|
|
905
|
+
}
|
|
900
906
|
return toReturn;
|
|
901
907
|
}
|
|
902
908
|
}
|
|
@@ -940,6 +946,9 @@ class GetMultiParticipantsRequest {
|
|
|
940
946
|
if (typeof this.participantIds !== 'undefined') {
|
|
941
947
|
toReturn['participantIds'] = this.participantIds;
|
|
942
948
|
}
|
|
949
|
+
if (typeof this.conversationId !== 'undefined') {
|
|
950
|
+
toReturn['conversationId'] = this.conversationId;
|
|
951
|
+
}
|
|
943
952
|
return toReturn;
|
|
944
953
|
}
|
|
945
954
|
}
|
|
@@ -1446,6 +1455,49 @@ class SendMessageResponse {
|
|
|
1446
1455
|
return toReturn;
|
|
1447
1456
|
}
|
|
1448
1457
|
}
|
|
1458
|
+
class SetLastSeenRequest {
|
|
1459
|
+
constructor(kwargs) {
|
|
1460
|
+
if (!kwargs) {
|
|
1461
|
+
return;
|
|
1462
|
+
}
|
|
1463
|
+
Object.assign(this, kwargs);
|
|
1464
|
+
}
|
|
1465
|
+
static fromProto(proto) {
|
|
1466
|
+
let m = new SetLastSeenRequest();
|
|
1467
|
+
m = Object.assign(m, proto);
|
|
1468
|
+
return m;
|
|
1469
|
+
}
|
|
1470
|
+
toApiJson() {
|
|
1471
|
+
const toReturn = {};
|
|
1472
|
+
if (typeof this.conversationId !== 'undefined') {
|
|
1473
|
+
toReturn['conversationId'] = this.conversationId;
|
|
1474
|
+
}
|
|
1475
|
+
return toReturn;
|
|
1476
|
+
}
|
|
1477
|
+
}
|
|
1478
|
+
class SetLastSeenResponse {
|
|
1479
|
+
constructor(kwargs) {
|
|
1480
|
+
if (!kwargs) {
|
|
1481
|
+
return;
|
|
1482
|
+
}
|
|
1483
|
+
Object.assign(this, kwargs);
|
|
1484
|
+
}
|
|
1485
|
+
static fromProto(proto) {
|
|
1486
|
+
let m = new SetLastSeenResponse();
|
|
1487
|
+
m = Object.assign(m, proto);
|
|
1488
|
+
if (proto.lastSeen) {
|
|
1489
|
+
m.lastSeen = new Date(proto.lastSeen);
|
|
1490
|
+
}
|
|
1491
|
+
return m;
|
|
1492
|
+
}
|
|
1493
|
+
toApiJson() {
|
|
1494
|
+
const toReturn = {};
|
|
1495
|
+
if (typeof this.lastSeen !== 'undefined' && this.lastSeen !== null) {
|
|
1496
|
+
toReturn['lastSeen'] = 'toApiJson' in this.lastSeen ? this.lastSeen.toApiJson() : this.lastSeen;
|
|
1497
|
+
}
|
|
1498
|
+
return toReturn;
|
|
1499
|
+
}
|
|
1500
|
+
}
|
|
1449
1501
|
class UpdateMessageStatusRequest {
|
|
1450
1502
|
constructor(kwargs) {
|
|
1451
1503
|
if (!kwargs) {
|
|
@@ -1591,6 +1643,11 @@ class ConversationApiService {
|
|
|
1591
1643
|
return this.http.post(this._host + "/conversation.v1.ConversationService/AddMultiParticipants", request.toApiJson(), this.apiOptions())
|
|
1592
1644
|
.pipe(map(resp => AddMultiParticipantsResponse.fromProto(resp)));
|
|
1593
1645
|
}
|
|
1646
|
+
setLastSeen(r) {
|
|
1647
|
+
const request = (r.toApiJson) ? r : new SetLastSeenRequest(r);
|
|
1648
|
+
return this.http.post(this._host + "/conversation.v1.ConversationService/SetLastSeen", request.toApiJson(), this.apiOptions())
|
|
1649
|
+
.pipe(map(resp => SetLastSeenResponse.fromProto(resp)));
|
|
1650
|
+
}
|
|
1594
1651
|
}
|
|
1595
1652
|
ConversationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: ConversationApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1596
1653
|
ConversationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: ConversationApiService, providedIn: 'root' });
|
|
@@ -1605,5 +1662,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImpor
|
|
|
1605
1662
|
* Generated bundle index. Do not edit.
|
|
1606
1663
|
*/
|
|
1607
1664
|
|
|
1608
|
-
export { AddMultiParticipantsRequest, AddMultiParticipantsResponse, Address, Conversation, ConversationApiService, ConversationChannel, ConversationMessageCount, CreateConversationRequest, CreateConversationResponse, CreateMultiMessagesRequest, DeleteConversationRequest, DeleteMessageRequest, GetMessageRequest, GetMultiConversationDetailsRequest, GetMultiConversationDetailsResponse, GetMultiConversationDetailsResponseDetailedConversation, GetMultiConversationMessageCountRequest, GetMultiConversationMessageCountResponse, GetMultiConversationMessageCountResponseCountsEntry, GetMultiMessagesRequest, GetMultiMessagesResponse, GetMultiParticipantsRequest, GetMultiParticipantsResponse, ListMessagesRequest, ListMessagesRequestListMessagesFilters, ListMessagesResponse, LookupConversationsRequest, LookupConversationsRequestLookupConversationsFilters, LookupConversationsResponse, LookupConversationsResponseConversations, Message, MessageStatus, MessageType, Metadata, MetadataDataEntry, MetadataIdentifier, PagedRequestOptions, PagedResponseMetadata, Participant, ParticipantMessageStatus, ParticipantType, PlatformLocation, ReceiveMessageRequest, ReceiveMessageRequestMetadataEntry, SearchConversationsRequest, SearchConversationsResponse, SearchConversationsResponseDetailedConversation, SendMessageRequest, SendMessageResponse, UpdateMessageStatusRequest };
|
|
1665
|
+
export { AddMultiParticipantsRequest, AddMultiParticipantsResponse, Address, Conversation, ConversationApiService, ConversationChannel, ConversationMessageCount, CreateConversationRequest, CreateConversationResponse, CreateMultiMessagesRequest, DeleteConversationRequest, DeleteMessageRequest, GetMessageRequest, GetMultiConversationDetailsRequest, GetMultiConversationDetailsResponse, GetMultiConversationDetailsResponseDetailedConversation, GetMultiConversationMessageCountRequest, GetMultiConversationMessageCountResponse, GetMultiConversationMessageCountResponseCountsEntry, GetMultiMessagesRequest, GetMultiMessagesResponse, GetMultiParticipantsRequest, GetMultiParticipantsResponse, ListMessagesRequest, ListMessagesRequestListMessagesFilters, ListMessagesResponse, LookupConversationsRequest, LookupConversationsRequestLookupConversationsFilters, LookupConversationsResponse, LookupConversationsResponseConversations, Message, MessageStatus, MessageType, Metadata, MetadataDataEntry, MetadataIdentifier, PagedRequestOptions, PagedResponseMetadata, Participant, ParticipantMessageStatus, ParticipantType, PlatformLocation, ReceiveMessageRequest, ReceiveMessageRequestMetadataEntry, SearchConversationsRequest, SearchConversationsResponse, SearchConversationsResponseDetailedConversation, SendMessageRequest, SendMessageResponse, SetLastSeenRequest, SetLastSeenResponse, UpdateMessageStatusRequest };
|
|
1609
1666
|
//# sourceMappingURL=vendasta-conversation.mjs.map
|