@vendasta/conversation 0.31.0 → 0.33.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/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/objects/api.mjs +43 -5
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/fesm2015/vendasta-conversation.mjs +43 -5
- package/fesm2015/vendasta-conversation.mjs.map +1 -1
- package/fesm2020/vendasta-conversation.mjs +43 -5
- package/fesm2020/vendasta-conversation.mjs.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
|
@@ -1032,9 +1032,9 @@ class DeleteMessageRequest {
|
|
|
1032
1032
|
return toReturn;
|
|
1033
1033
|
}
|
|
1034
1034
|
}
|
|
1035
|
-
class
|
|
1035
|
+
class SearchConversationsResponseDetailedConversation {
|
|
1036
1036
|
static fromProto(proto) {
|
|
1037
|
-
let m = new
|
|
1037
|
+
let m = new SearchConversationsResponseDetailedConversation();
|
|
1038
1038
|
m = Object.assign(m, proto);
|
|
1039
1039
|
if (proto.conversation) {
|
|
1040
1040
|
m.conversation = Conversation.fromProto(proto.conversation);
|
|
@@ -1067,9 +1067,9 @@ class GetMultiConversationDetailsResponseDetailedConversation {
|
|
|
1067
1067
|
return toReturn;
|
|
1068
1068
|
}
|
|
1069
1069
|
}
|
|
1070
|
-
class
|
|
1070
|
+
class GetMultiConversationDetailsResponseDetailedConversation {
|
|
1071
1071
|
static fromProto(proto) {
|
|
1072
|
-
let m = new
|
|
1072
|
+
let m = new GetMultiConversationDetailsResponseDetailedConversation();
|
|
1073
1073
|
m = Object.assign(m, proto);
|
|
1074
1074
|
if (proto.conversation) {
|
|
1075
1075
|
m.conversation = Conversation.fromProto(proto.conversation);
|
|
@@ -1517,6 +1517,9 @@ class GetParticipantsByKeyResponse {
|
|
|
1517
1517
|
if (proto.participants) {
|
|
1518
1518
|
m.participants = proto.participants.map(Participant.fromProto);
|
|
1519
1519
|
}
|
|
1520
|
+
if (proto.participant) {
|
|
1521
|
+
m.participant = Participant.fromProto(proto.participant);
|
|
1522
|
+
}
|
|
1520
1523
|
return m;
|
|
1521
1524
|
}
|
|
1522
1525
|
constructor(kwargs) {
|
|
@@ -1530,6 +1533,9 @@ class GetParticipantsByKeyResponse {
|
|
|
1530
1533
|
if (typeof this.participants !== 'undefined' && this.participants !== null) {
|
|
1531
1534
|
toReturn['participants'] = 'toApiJson' in this.participants ? this.participants.toApiJson() : this.participants;
|
|
1532
1535
|
}
|
|
1536
|
+
if (typeof this.participant !== 'undefined' && this.participant !== null) {
|
|
1537
|
+
toReturn['participant'] = 'toApiJson' in this.participant ? this.participant.toApiJson() : this.participant;
|
|
1538
|
+
}
|
|
1533
1539
|
return toReturn;
|
|
1534
1540
|
}
|
|
1535
1541
|
}
|
|
@@ -1716,6 +1722,32 @@ class LookupConversationsResponse {
|
|
|
1716
1722
|
return toReturn;
|
|
1717
1723
|
}
|
|
1718
1724
|
}
|
|
1725
|
+
class Media {
|
|
1726
|
+
static fromProto(proto) {
|
|
1727
|
+
let m = new Media();
|
|
1728
|
+
m = Object.assign(m, proto);
|
|
1729
|
+
return m;
|
|
1730
|
+
}
|
|
1731
|
+
constructor(kwargs) {
|
|
1732
|
+
if (!kwargs) {
|
|
1733
|
+
return;
|
|
1734
|
+
}
|
|
1735
|
+
Object.assign(this, kwargs);
|
|
1736
|
+
}
|
|
1737
|
+
toApiJson() {
|
|
1738
|
+
const toReturn = {};
|
|
1739
|
+
if (typeof this.mediaContentType !== 'undefined') {
|
|
1740
|
+
toReturn['mediaContentType'] = this.mediaContentType;
|
|
1741
|
+
}
|
|
1742
|
+
if (typeof this.mediaLocationPath !== 'undefined') {
|
|
1743
|
+
toReturn['mediaLocationPath'] = this.mediaLocationPath;
|
|
1744
|
+
}
|
|
1745
|
+
if (typeof this.mediaFileName !== 'undefined') {
|
|
1746
|
+
toReturn['mediaFileName'] = this.mediaFileName;
|
|
1747
|
+
}
|
|
1748
|
+
return toReturn;
|
|
1749
|
+
}
|
|
1750
|
+
}
|
|
1719
1751
|
class Metadata {
|
|
1720
1752
|
static fromProto(proto) {
|
|
1721
1753
|
let m = new Metadata();
|
|
@@ -1997,6 +2029,9 @@ class SendMessageRequest {
|
|
|
1997
2029
|
if (proto.originLocation) {
|
|
1998
2030
|
m.originLocation = enumStringToValue(PlatformLocation, proto.originLocation);
|
|
1999
2031
|
}
|
|
2032
|
+
if (proto.media) {
|
|
2033
|
+
m.media = proto.media.map(Media.fromProto);
|
|
2034
|
+
}
|
|
2000
2035
|
return m;
|
|
2001
2036
|
}
|
|
2002
2037
|
constructor(kwargs) {
|
|
@@ -2028,6 +2063,9 @@ class SendMessageRequest {
|
|
|
2028
2063
|
if (typeof this.originLocation !== 'undefined') {
|
|
2029
2064
|
toReturn['originLocation'] = this.originLocation;
|
|
2030
2065
|
}
|
|
2066
|
+
if (typeof this.media !== 'undefined' && this.media !== null) {
|
|
2067
|
+
toReturn['media'] = 'toApiJson' in this.media ? this.media.toApiJson() : this.media;
|
|
2068
|
+
}
|
|
2031
2069
|
return toReturn;
|
|
2032
2070
|
}
|
|
2033
2071
|
}
|
|
@@ -2397,5 +2435,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
2397
2435
|
* Generated bundle index. Do not edit.
|
|
2398
2436
|
*/
|
|
2399
2437
|
|
|
2400
|
-
export { Access, AddConversationToConversationViewRequest, AddMultiParticipantsRequest, AddMultiParticipantsResponse, Address, Configuration, Conversation, ConversationApiService, ConversationChannel, ConversationKey, ConversationMessageCount, CreateConversationRequest, CreateConversationResponse, CreateMultiMessagesRequest, DeleteConversationRequest, DeleteMessageRequest, GetConfigurationRequest, GetConfigurationResponse, GetConversationByKeyRequest, GetConversationByKeyResponse, GetConversationViewsRequest, GetConversationViewsResponse, GetMessageRequest, GetMultiConfigurationRequest, GetMultiConfigurationResponse, GetMultiConversationDetailsRequest, GetMultiConversationDetailsResponse, GetMultiConversationDetailsResponseDetailedConversation, GetMultiConversationMessageCountRequest, GetMultiConversationMessageCountResponse, GetMultiConversationMessageCountResponseCountsEntry, GetMultiMessagesRequest, GetMultiMessagesResponse, GetMultiParticipantsRequest, GetMultiParticipantsResponse, GetParticipantsByKeyRequest, GetParticipantsByKeyResponse, GlobalParticipantType, InboxApiService, LastSeenByParticipant, ListMessagesRequest, ListMessagesRequestListMessagesFilters, ListMessagesResponse, LookupConversationsRequest, LookupConversationsRequestLookupConversationsFilters, LookupConversationsResponse, LookupConversationsResponseConversations, Message, MessageStatus, MessageType, Metadata, MetadataDataEntry, MetadataIdentifier, PagedRequestOptions, PagedResponseMetadata, Participant, ParticipantKey, ParticipantMessageStatus, ParticipantType, PlatformLocation, ReceiveMessageRequest, ReceiveMessageRequestMetadataEntry, RemoveConversationFromConversationViewRequest, SearchConversationsRequest, SearchConversationsResponse, SearchConversationsResponseDetailedConversation, SendMessageRequest, SendMessageResponse, SetLastSeenRequest, SetLastSeenRequestStatus, SetLastSeenResponse, SortDirection, SubjectParticipant, UpdateMessageStatusRequest, UpsertConfigurationRequest, UpsertConfigurationResponse, View, ViewType };
|
|
2438
|
+
export { Access, AddConversationToConversationViewRequest, AddMultiParticipantsRequest, AddMultiParticipantsResponse, Address, Configuration, Conversation, ConversationApiService, ConversationChannel, ConversationKey, ConversationMessageCount, CreateConversationRequest, CreateConversationResponse, CreateMultiMessagesRequest, DeleteConversationRequest, DeleteMessageRequest, GetConfigurationRequest, GetConfigurationResponse, GetConversationByKeyRequest, GetConversationByKeyResponse, GetConversationViewsRequest, GetConversationViewsResponse, GetMessageRequest, GetMultiConfigurationRequest, GetMultiConfigurationResponse, GetMultiConversationDetailsRequest, GetMultiConversationDetailsResponse, GetMultiConversationDetailsResponseDetailedConversation, GetMultiConversationMessageCountRequest, GetMultiConversationMessageCountResponse, GetMultiConversationMessageCountResponseCountsEntry, GetMultiMessagesRequest, GetMultiMessagesResponse, GetMultiParticipantsRequest, GetMultiParticipantsResponse, GetParticipantsByKeyRequest, GetParticipantsByKeyResponse, GlobalParticipantType, InboxApiService, LastSeenByParticipant, ListMessagesRequest, ListMessagesRequestListMessagesFilters, ListMessagesResponse, LookupConversationsRequest, LookupConversationsRequestLookupConversationsFilters, LookupConversationsResponse, LookupConversationsResponseConversations, Media, Message, MessageStatus, MessageType, Metadata, MetadataDataEntry, MetadataIdentifier, PagedRequestOptions, PagedResponseMetadata, Participant, ParticipantKey, ParticipantMessageStatus, ParticipantType, PlatformLocation, ReceiveMessageRequest, ReceiveMessageRequestMetadataEntry, RemoveConversationFromConversationViewRequest, SearchConversationsRequest, SearchConversationsResponse, SearchConversationsResponseDetailedConversation, SendMessageRequest, SendMessageResponse, SetLastSeenRequest, SetLastSeenRequestStatus, SetLastSeenResponse, SortDirection, SubjectParticipant, UpdateMessageStatusRequest, UpsertConfigurationRequest, UpsertConfigurationResponse, View, ViewType };
|
|
2401
2439
|
//# sourceMappingURL=vendasta-conversation.mjs.map
|