@vendasta/conversation 0.54.0 → 0.56.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/enums/common.enum.mjs +2 -1
- package/esm2020/lib/_internal/enums/participant.enum.mjs +2 -1
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/common.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/configuration.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/evaluation.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/participant.interface.mjs +1 -7
- package/esm2020/lib/_internal/objects/api.mjs +16 -1
- package/esm2020/lib/_internal/objects/common.mjs +27 -1
- package/esm2020/lib/_internal/objects/configuration.mjs +4 -1
- package/esm2020/lib/_internal/objects/evaluation.mjs +7 -0
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/esm2020/lib/_internal/objects/participant.mjs +14 -1
- package/fesm2015/vendasta-conversation.mjs +59 -1
- package/fesm2015/vendasta-conversation.mjs.map +1 -1
- package/fesm2020/vendasta-conversation.mjs +59 -1
- package/fesm2020/vendasta-conversation.mjs.map +1 -1
- package/lib/_internal/enums/common.enum.d.ts +2 -1
- package/lib/_internal/enums/participant.enum.d.ts +2 -1
- package/lib/_internal/interfaces/api.interface.d.ts +3 -0
- package/lib/_internal/interfaces/common.interface.d.ts +4 -0
- package/lib/_internal/interfaces/configuration.interface.d.ts +1 -0
- package/lib/_internal/interfaces/evaluation.interface.d.ts +1 -0
- package/lib/_internal/interfaces/index.d.ts +2 -1
- package/lib/_internal/interfaces/participant.interface.d.ts +3 -0
- package/lib/_internal/objects/api.d.ts +3 -0
- package/lib/_internal/objects/common.d.ts +7 -0
- package/lib/_internal/objects/configuration.d.ts +1 -0
- package/lib/_internal/objects/evaluation.d.ts +1 -0
- package/lib/_internal/objects/index.d.ts +2 -1
- package/lib/_internal/objects/participant.d.ts +3 -0
- package/package.json +1 -1
|
@@ -22,6 +22,7 @@ var GlobalParticipantType;
|
|
|
22
22
|
GlobalParticipantType[GlobalParticipantType["GLOBAL_PARTICIPANT_TYPE_VENDOR"] = 7] = "GLOBAL_PARTICIPANT_TYPE_VENDOR";
|
|
23
23
|
GlobalParticipantType[GlobalParticipantType["GLOBAL_PARTICIPANT_TYPE_OPENAI_BOT"] = 8] = "GLOBAL_PARTICIPANT_TYPE_OPENAI_BOT";
|
|
24
24
|
GlobalParticipantType[GlobalParticipantType["GLOBAL_PARTICIPANT_TYPE_ANONYMOUS"] = 9] = "GLOBAL_PARTICIPANT_TYPE_ANONYMOUS";
|
|
25
|
+
GlobalParticipantType[GlobalParticipantType["GLOBAL_PARTICIPANT_TYPE_GROUP"] = 10] = "GLOBAL_PARTICIPANT_TYPE_GROUP";
|
|
25
26
|
})(GlobalParticipantType || (GlobalParticipantType = {}));
|
|
26
27
|
var SortDirection;
|
|
27
28
|
(function (SortDirection) {
|
|
@@ -99,6 +100,7 @@ var ParticipantType;
|
|
|
99
100
|
ParticipantType[ParticipantType["PARTICIPANT_TYPE_VENDOR"] = 7] = "PARTICIPANT_TYPE_VENDOR";
|
|
100
101
|
ParticipantType[ParticipantType["PARTICIPANT_TYPE_OPENAI_BOT"] = 8] = "PARTICIPANT_TYPE_OPENAI_BOT";
|
|
101
102
|
ParticipantType[ParticipantType["PARTICIPANT_TYPE_ANONYMOUS"] = 9] = "PARTICIPANT_TYPE_ANONYMOUS";
|
|
103
|
+
ParticipantType[ParticipantType["PARTICIPANT_TYPE_GROUP"] = 10] = "PARTICIPANT_TYPE_GROUP";
|
|
102
104
|
})(ParticipantType || (ParticipantType = {}));
|
|
103
105
|
|
|
104
106
|
// *********************************
|
|
@@ -171,6 +173,32 @@ function enumStringToValue$a(enumRef, value) {
|
|
|
171
173
|
}
|
|
172
174
|
return enumRef[value];
|
|
173
175
|
}
|
|
176
|
+
class NamespaceDetail {
|
|
177
|
+
static fromProto(proto) {
|
|
178
|
+
let m = new NamespaceDetail();
|
|
179
|
+
m = Object.assign(m, proto);
|
|
180
|
+
if (proto.participantType) {
|
|
181
|
+
m.participantType = enumStringToValue$a(GlobalParticipantType, proto.participantType);
|
|
182
|
+
}
|
|
183
|
+
return m;
|
|
184
|
+
}
|
|
185
|
+
constructor(kwargs) {
|
|
186
|
+
if (!kwargs) {
|
|
187
|
+
return;
|
|
188
|
+
}
|
|
189
|
+
Object.assign(this, kwargs);
|
|
190
|
+
}
|
|
191
|
+
toApiJson() {
|
|
192
|
+
const toReturn = {};
|
|
193
|
+
if (typeof this.participantType !== 'undefined') {
|
|
194
|
+
toReturn['participantType'] = this.participantType;
|
|
195
|
+
}
|
|
196
|
+
if (typeof this.internalParticipantId !== 'undefined') {
|
|
197
|
+
toReturn['internalParticipantId'] = this.internalParticipantId;
|
|
198
|
+
}
|
|
199
|
+
return toReturn;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
174
202
|
class SubjectParticipant {
|
|
175
203
|
static fromProto(proto) {
|
|
176
204
|
let m = new SubjectParticipant();
|
|
@@ -563,6 +591,9 @@ class Participant {
|
|
|
563
591
|
if (proto.address) {
|
|
564
592
|
m.address = Address.fromProto(proto.address);
|
|
565
593
|
}
|
|
594
|
+
if (proto.namespaceHierarchy) {
|
|
595
|
+
m.namespaceHierarchy = proto.namespaceHierarchy.map(NamespaceDetail.fromProto);
|
|
596
|
+
}
|
|
566
597
|
return m;
|
|
567
598
|
}
|
|
568
599
|
constructor(kwargs) {
|
|
@@ -627,6 +658,9 @@ class Participant {
|
|
|
627
658
|
if (typeof this.profileImageUrl !== 'undefined') {
|
|
628
659
|
toReturn['profileImageUrl'] = this.profileImageUrl;
|
|
629
660
|
}
|
|
661
|
+
if (typeof this.namespaceHierarchy !== 'undefined' && this.namespaceHierarchy !== null) {
|
|
662
|
+
toReturn['namespaceHierarchy'] = 'toApiJson' in this.namespaceHierarchy ? this.namespaceHierarchy.toApiJson() : this.namespaceHierarchy;
|
|
663
|
+
}
|
|
630
664
|
return toReturn;
|
|
631
665
|
}
|
|
632
666
|
}
|
|
@@ -643,6 +677,9 @@ class ParticipantKey {
|
|
|
643
677
|
if (proto.participantType) {
|
|
644
678
|
m.participantType = enumStringToValue$7(GlobalParticipantType, proto.participantType);
|
|
645
679
|
}
|
|
680
|
+
if (proto.namespaceHierarchy) {
|
|
681
|
+
m.namespaceHierarchy = proto.namespaceHierarchy.map(NamespaceDetail.fromProto);
|
|
682
|
+
}
|
|
646
683
|
return m;
|
|
647
684
|
}
|
|
648
685
|
constructor(kwargs) {
|
|
@@ -671,6 +708,9 @@ class ParticipantKey {
|
|
|
671
708
|
if (typeof this.participantType !== 'undefined') {
|
|
672
709
|
toReturn['participantType'] = this.participantType;
|
|
673
710
|
}
|
|
711
|
+
if (typeof this.namespaceHierarchy !== 'undefined' && this.namespaceHierarchy !== null) {
|
|
712
|
+
toReturn['namespaceHierarchy'] = 'toApiJson' in this.namespaceHierarchy ? this.namespaceHierarchy.toApiJson() : this.namespaceHierarchy;
|
|
713
|
+
}
|
|
674
714
|
return toReturn;
|
|
675
715
|
}
|
|
676
716
|
}
|
|
@@ -764,6 +804,9 @@ class Configuration {
|
|
|
764
804
|
if (typeof this.facebookMessengerEnabled !== 'undefined') {
|
|
765
805
|
toReturn['facebookMessengerEnabled'] = this.facebookMessengerEnabled;
|
|
766
806
|
}
|
|
807
|
+
if (typeof this.multiLocationEnabled !== 'undefined') {
|
|
808
|
+
toReturn['multiLocationEnabled'] = this.multiLocationEnabled;
|
|
809
|
+
}
|
|
767
810
|
return toReturn;
|
|
768
811
|
}
|
|
769
812
|
}
|
|
@@ -1307,6 +1350,9 @@ class CreateWidgetConversationRequest {
|
|
|
1307
1350
|
if (typeof this.widgetId !== 'undefined') {
|
|
1308
1351
|
toReturn['widgetId'] = this.widgetId;
|
|
1309
1352
|
}
|
|
1353
|
+
if (typeof this.chatSourceUrl !== 'undefined') {
|
|
1354
|
+
toReturn['chatSourceUrl'] = this.chatSourceUrl;
|
|
1355
|
+
}
|
|
1310
1356
|
return toReturn;
|
|
1311
1357
|
}
|
|
1312
1358
|
}
|
|
@@ -1629,6 +1675,9 @@ class GetAvailableChannelsForConversationResponse {
|
|
|
1629
1675
|
if (proto.channels) {
|
|
1630
1676
|
m.channels = proto.channels.map((v) => enumStringToValue(ConversationChannel, v));
|
|
1631
1677
|
}
|
|
1678
|
+
if (proto.preferredChannel) {
|
|
1679
|
+
m.preferredChannel = enumStringToValue(ConversationChannel, proto.preferredChannel);
|
|
1680
|
+
}
|
|
1632
1681
|
return m;
|
|
1633
1682
|
}
|
|
1634
1683
|
constructor(kwargs) {
|
|
@@ -1642,6 +1691,9 @@ class GetAvailableChannelsForConversationResponse {
|
|
|
1642
1691
|
if (typeof this.channels !== 'undefined') {
|
|
1643
1692
|
toReturn['channels'] = this.channels;
|
|
1644
1693
|
}
|
|
1694
|
+
if (typeof this.preferredChannel !== 'undefined') {
|
|
1695
|
+
toReturn['preferredChannel'] = this.preferredChannel;
|
|
1696
|
+
}
|
|
1645
1697
|
return toReturn;
|
|
1646
1698
|
}
|
|
1647
1699
|
}
|
|
@@ -3293,6 +3345,9 @@ class UpsertConfigurationRequest {
|
|
|
3293
3345
|
if (proto.configuration) {
|
|
3294
3346
|
m.configuration = Configuration.fromProto(proto.configuration);
|
|
3295
3347
|
}
|
|
3348
|
+
if (proto.fieldMask) {
|
|
3349
|
+
m.fieldMask = FieldMask.fromProto(proto.fieldMask);
|
|
3350
|
+
}
|
|
3296
3351
|
return m;
|
|
3297
3352
|
}
|
|
3298
3353
|
constructor(kwargs) {
|
|
@@ -3306,6 +3361,9 @@ class UpsertConfigurationRequest {
|
|
|
3306
3361
|
if (typeof this.configuration !== 'undefined' && this.configuration !== null) {
|
|
3307
3362
|
toReturn['configuration'] = 'toApiJson' in this.configuration ? this.configuration.toApiJson() : this.configuration;
|
|
3308
3363
|
}
|
|
3364
|
+
if (typeof this.fieldMask !== 'undefined' && this.fieldMask !== null) {
|
|
3365
|
+
toReturn['fieldMask'] = 'toApiJson' in this.fieldMask ? this.fieldMask.toApiJson() : this.fieldMask;
|
|
3366
|
+
}
|
|
3309
3367
|
return toReturn;
|
|
3310
3368
|
}
|
|
3311
3369
|
}
|
|
@@ -3634,5 +3692,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3634
3692
|
* Generated bundle index. Do not edit.
|
|
3635
3693
|
*/
|
|
3636
3694
|
|
|
3637
|
-
export { Access, AddConversationToConversationViewRequest, AddMultiParticipantsRequest, AddMultiParticipantsResponse, Address, Configuration, Conversation, ConversationApiService, ConversationChannel, ConversationKey, ConversationMessageCount, CreateConversationRequest, CreateConversationResponse, CreateMessageTemplateRequest, CreateMessageTemplateResponse, CreateMultiMessagesRequest, CreateWidgetConversationRequest, CreateWidgetConversationResponse, CreateWidgetRequest, CreateWidgetResponse, DataSources, DeleteConversationRequest, DeleteMessageRequest, DeleteMessageTemplateRequest, DeleteWidgetRequest, EvaluateResponseRequest, EvaluationSentiment, FieldMask, GetAvailableChannelsForConversationRequest, GetAvailableChannelsForConversationResponse, GetConfigurationRequest, GetConfigurationResponse, GetConversationByKeyRequest, GetConversationByKeyResponse, GetConversationViewsRequest, GetConversationViewsResponse, GetMessageRequest, GetMessageTemplateRequest, GetMessageTemplateResponse, GetMultiConfigurationRequest, GetMultiConfigurationResponse, GetMultiConversationDetailsRequest, GetMultiConversationDetailsResponse, GetMultiConversationDetailsResponseDetailedConversation, GetMultiConversationMessageCountRequest, GetMultiConversationMessageCountResponse, GetMultiConversationMessageCountResponseCountsEntry, GetMultiMessagesRequest, GetMultiMessagesResponse, GetMultiParticipantsRequest, GetMultiParticipantsResponse, GetMultiWidgetMessagesRequest, GetMultiWidgetMessagesResponse, GetParticipantsByKeyRequest, GetParticipantsByKeyResponse, GetWidgetConfigRequest, GetWidgetConfigResponse, GetWidgetConversationResponse, GetWidgetRequest, GetWidgetResponse, GlobalParticipantType, InboxApiService, LastSeenByParticipant, ListMessageTemplateRequest, ListMessageTemplateResponse, ListMessagesRequest, ListMessagesRequestListMessagesFilters, ListMessagesResponse, ListWidgetsRequest, ListWidgetsResponse, LookupConversationsRequest, LookupConversationsRequestLookupConversationsFilters, LookupConversationsResponse, LookupConversationsResponseConversations, Media, Message, MessageStatus, MessageTemplate, MessageType, Metadata, MetadataDataEntry, MetadataIdentifier, PagedRequestOptions, PagedResponseMetadata, Participant, ParticipantKey, ParticipantMessageStatus, ParticipantType, PlatformLocation, ReceiveMessageRequest, ReceiveMessageRequestMetadataEntry, RemoveConversationFromConversationViewRequest, SearchConversationsRequest, SearchConversationsResponse, SearchConversationsResponseDetailedConversation, SendMessageRequest, SendMessageResponse, SendStatus, SendWidgetMessageRequest, SendWidgetMessageResponse, SetLastSeenRequest, SetLastSeenRequestStatus, SetLastSeenResponse, SortDirection, SubjectParticipant, UpdateConversationRequest, UpdateConversationResponse, UpdateMessageStatusRequest, UpdateMessageTemplateRequest, UpdateMessageTemplateResponse, UpdateWidgetRequest, UpdateWidgetResponse, UpsertConfigurationRequest, UpsertConfigurationResponse, View, ViewType, Widget, WidgetPosition };
|
|
3695
|
+
export { Access, AddConversationToConversationViewRequest, AddMultiParticipantsRequest, AddMultiParticipantsResponse, Address, Configuration, Conversation, ConversationApiService, ConversationChannel, ConversationKey, ConversationMessageCount, CreateConversationRequest, CreateConversationResponse, CreateMessageTemplateRequest, CreateMessageTemplateResponse, CreateMultiMessagesRequest, CreateWidgetConversationRequest, CreateWidgetConversationResponse, CreateWidgetRequest, CreateWidgetResponse, DataSources, DeleteConversationRequest, DeleteMessageRequest, DeleteMessageTemplateRequest, DeleteWidgetRequest, EvaluateResponseRequest, EvaluationSentiment, FieldMask, GetAvailableChannelsForConversationRequest, GetAvailableChannelsForConversationResponse, GetConfigurationRequest, GetConfigurationResponse, GetConversationByKeyRequest, GetConversationByKeyResponse, GetConversationViewsRequest, GetConversationViewsResponse, GetMessageRequest, GetMessageTemplateRequest, GetMessageTemplateResponse, GetMultiConfigurationRequest, GetMultiConfigurationResponse, GetMultiConversationDetailsRequest, GetMultiConversationDetailsResponse, GetMultiConversationDetailsResponseDetailedConversation, GetMultiConversationMessageCountRequest, GetMultiConversationMessageCountResponse, GetMultiConversationMessageCountResponseCountsEntry, GetMultiMessagesRequest, GetMultiMessagesResponse, GetMultiParticipantsRequest, GetMultiParticipantsResponse, GetMultiWidgetMessagesRequest, GetMultiWidgetMessagesResponse, GetParticipantsByKeyRequest, GetParticipantsByKeyResponse, GetWidgetConfigRequest, GetWidgetConfigResponse, GetWidgetConversationResponse, GetWidgetRequest, GetWidgetResponse, GlobalParticipantType, InboxApiService, LastSeenByParticipant, ListMessageTemplateRequest, ListMessageTemplateResponse, ListMessagesRequest, ListMessagesRequestListMessagesFilters, ListMessagesResponse, ListWidgetsRequest, ListWidgetsResponse, LookupConversationsRequest, LookupConversationsRequestLookupConversationsFilters, LookupConversationsResponse, LookupConversationsResponseConversations, Media, Message, MessageStatus, MessageTemplate, MessageType, Metadata, MetadataDataEntry, MetadataIdentifier, NamespaceDetail, PagedRequestOptions, PagedResponseMetadata, Participant, ParticipantKey, ParticipantMessageStatus, ParticipantType, PlatformLocation, ReceiveMessageRequest, ReceiveMessageRequestMetadataEntry, RemoveConversationFromConversationViewRequest, SearchConversationsRequest, SearchConversationsResponse, SearchConversationsResponseDetailedConversation, SendMessageRequest, SendMessageResponse, SendStatus, SendWidgetMessageRequest, SendWidgetMessageResponse, SetLastSeenRequest, SetLastSeenRequestStatus, SetLastSeenResponse, SortDirection, SubjectParticipant, UpdateConversationRequest, UpdateConversationResponse, UpdateMessageStatusRequest, UpdateMessageTemplateRequest, UpdateMessageTemplateResponse, UpdateWidgetRequest, UpdateWidgetResponse, UpsertConfigurationRequest, UpsertConfigurationResponse, View, ViewType, Widget, WidgetPosition };
|
|
3638
3696
|
//# sourceMappingURL=vendasta-conversation.mjs.map
|