@vendasta/conversation 0.26.0 → 0.27.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/inbox.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/objects/api.mjs +51 -5
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/fesm2015/vendasta-conversation.mjs +56 -5
- package/fesm2015/vendasta-conversation.mjs.map +1 -1
- package/fesm2020/vendasta-conversation.mjs +56 -5
- package/fesm2020/vendasta-conversation.mjs.map +1 -1
- package/lib/_internal/inbox.api.service.d.ts +3 -2
- package/lib/_internal/interfaces/api.interface.d.ts +8 -2
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/objects/api.d.ts +18 -6
- package/lib/_internal/objects/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -950,7 +950,7 @@ class DeleteMessageRequest {
|
|
|
950
950
|
return toReturn;
|
|
951
951
|
}
|
|
952
952
|
}
|
|
953
|
-
class
|
|
953
|
+
class GetMultiConversationDetailsResponseDetailedConversation {
|
|
954
954
|
constructor(kwargs) {
|
|
955
955
|
if (!kwargs) {
|
|
956
956
|
return;
|
|
@@ -958,7 +958,7 @@ class SearchConversationsResponseDetailedConversation {
|
|
|
958
958
|
Object.assign(this, kwargs);
|
|
959
959
|
}
|
|
960
960
|
static fromProto(proto) {
|
|
961
|
-
let m = new
|
|
961
|
+
let m = new GetMultiConversationDetailsResponseDetailedConversation();
|
|
962
962
|
m = Object.assign(m, proto);
|
|
963
963
|
if (proto.conversation) {
|
|
964
964
|
m.conversation = Conversation.fromProto(proto.conversation);
|
|
@@ -985,7 +985,7 @@ class SearchConversationsResponseDetailedConversation {
|
|
|
985
985
|
return toReturn;
|
|
986
986
|
}
|
|
987
987
|
}
|
|
988
|
-
class
|
|
988
|
+
class SearchConversationsResponseDetailedConversation {
|
|
989
989
|
constructor(kwargs) {
|
|
990
990
|
if (!kwargs) {
|
|
991
991
|
return;
|
|
@@ -993,7 +993,7 @@ class GetMultiConversationDetailsResponseDetailedConversation {
|
|
|
993
993
|
Object.assign(this, kwargs);
|
|
994
994
|
}
|
|
995
995
|
static fromProto(proto) {
|
|
996
|
-
let m = new
|
|
996
|
+
let m = new SearchConversationsResponseDetailedConversation();
|
|
997
997
|
m = Object.assign(m, proto);
|
|
998
998
|
if (proto.conversation) {
|
|
999
999
|
m.conversation = Conversation.fromProto(proto.conversation);
|
|
@@ -1132,6 +1132,52 @@ class GetMessageRequest {
|
|
|
1132
1132
|
return toReturn;
|
|
1133
1133
|
}
|
|
1134
1134
|
}
|
|
1135
|
+
class GetMultiConfigurationRequest {
|
|
1136
|
+
constructor(kwargs) {
|
|
1137
|
+
if (!kwargs) {
|
|
1138
|
+
return;
|
|
1139
|
+
}
|
|
1140
|
+
Object.assign(this, kwargs);
|
|
1141
|
+
}
|
|
1142
|
+
static fromProto(proto) {
|
|
1143
|
+
let m = new GetMultiConfigurationRequest();
|
|
1144
|
+
m = Object.assign(m, proto);
|
|
1145
|
+
if (proto.subjectParticipants) {
|
|
1146
|
+
m.subjectParticipants = proto.subjectParticipants.map(SubjectParticipant.fromProto);
|
|
1147
|
+
}
|
|
1148
|
+
return m;
|
|
1149
|
+
}
|
|
1150
|
+
toApiJson() {
|
|
1151
|
+
const toReturn = {};
|
|
1152
|
+
if (typeof this.subjectParticipants !== 'undefined' && this.subjectParticipants !== null) {
|
|
1153
|
+
toReturn['subjectParticipants'] = 'toApiJson' in this.subjectParticipants ? this.subjectParticipants.toApiJson() : this.subjectParticipants;
|
|
1154
|
+
}
|
|
1155
|
+
return toReturn;
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
class GetMultiConfigurationResponse {
|
|
1159
|
+
constructor(kwargs) {
|
|
1160
|
+
if (!kwargs) {
|
|
1161
|
+
return;
|
|
1162
|
+
}
|
|
1163
|
+
Object.assign(this, kwargs);
|
|
1164
|
+
}
|
|
1165
|
+
static fromProto(proto) {
|
|
1166
|
+
let m = new GetMultiConfigurationResponse();
|
|
1167
|
+
m = Object.assign(m, proto);
|
|
1168
|
+
if (proto.configurations) {
|
|
1169
|
+
m.configurations = proto.configurations.map(Configuration.fromProto);
|
|
1170
|
+
}
|
|
1171
|
+
return m;
|
|
1172
|
+
}
|
|
1173
|
+
toApiJson() {
|
|
1174
|
+
const toReturn = {};
|
|
1175
|
+
if (typeof this.configurations !== 'undefined' && this.configurations !== null) {
|
|
1176
|
+
toReturn['configurations'] = 'toApiJson' in this.configurations ? this.configurations.toApiJson() : this.configurations;
|
|
1177
|
+
}
|
|
1178
|
+
return toReturn;
|
|
1179
|
+
}
|
|
1180
|
+
}
|
|
1135
1181
|
class GetMultiConversationDetailsRequest {
|
|
1136
1182
|
constructor(kwargs) {
|
|
1137
1183
|
if (!kwargs) {
|
|
@@ -2137,6 +2183,11 @@ class InboxApiService {
|
|
|
2137
2183
|
return this.http.post(this._host + "/conversation.v1.InboxService/GetConfiguration", request.toApiJson(), this.apiOptions())
|
|
2138
2184
|
.pipe(map(resp => GetConfigurationResponse.fromProto(resp)));
|
|
2139
2185
|
}
|
|
2186
|
+
getMultiConfiguration(r) {
|
|
2187
|
+
const request = (r.toApiJson) ? r : new GetMultiConfigurationRequest(r);
|
|
2188
|
+
return this.http.post(this._host + "/conversation.v1.InboxService/GetMultiConfiguration", request.toApiJson(), this.apiOptions())
|
|
2189
|
+
.pipe(map(resp => GetMultiConfigurationResponse.fromProto(resp)));
|
|
2190
|
+
}
|
|
2140
2191
|
upsertConfiguration(r) {
|
|
2141
2192
|
const request = (r.toApiJson) ? r : new UpsertConfigurationRequest(r);
|
|
2142
2193
|
return this.http.post(this._host + "/conversation.v1.InboxService/UpsertConfiguration", request.toApiJson(), this.apiOptions())
|
|
@@ -2156,5 +2207,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImpor
|
|
|
2156
2207
|
* Generated bundle index. Do not edit.
|
|
2157
2208
|
*/
|
|
2158
2209
|
|
|
2159
|
-
export { Access, AddMultiParticipantsRequest, AddMultiParticipantsResponse, Address, Configuration, Conversation, ConversationApiService, ConversationChannel, ConversationKey, ConversationMessageCount, CreateConversationRequest, CreateConversationResponse, CreateMultiMessagesRequest, DeleteConversationRequest, DeleteMessageRequest, GetConfigurationRequest, GetConfigurationResponse, GetConversationByKeyRequest, GetConversationByKeyResponse, GetMessageRequest, 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, SearchConversationsRequest, SearchConversationsResponse, SearchConversationsResponseDetailedConversation, SendMessageRequest, SendMessageResponse, SetLastSeenRequest, SetLastSeenRequestStatus, SetLastSeenResponse, SubjectParticipant, UpdateMessageStatusRequest, UpsertConfigurationRequest, UpsertConfigurationResponse };
|
|
2210
|
+
export { Access, AddMultiParticipantsRequest, AddMultiParticipantsResponse, Address, Configuration, Conversation, ConversationApiService, ConversationChannel, ConversationKey, ConversationMessageCount, CreateConversationRequest, CreateConversationResponse, CreateMultiMessagesRequest, DeleteConversationRequest, DeleteMessageRequest, GetConfigurationRequest, GetConfigurationResponse, GetConversationByKeyRequest, GetConversationByKeyResponse, 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, SearchConversationsRequest, SearchConversationsResponse, SearchConversationsResponseDetailedConversation, SendMessageRequest, SendMessageResponse, SetLastSeenRequest, SetLastSeenRequestStatus, SetLastSeenResponse, SubjectParticipant, UpdateMessageStatusRequest, UpsertConfigurationRequest, UpsertConfigurationResponse };
|
|
2160
2211
|
//# sourceMappingURL=vendasta-conversation.mjs.map
|