@vendasta/conversation 0.67.0 → 0.68.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/esm2022/lib/_generated/host.service.mjs +3 -3
- package/esm2022/lib/_internal/conversation.api.service.mjs +3 -3
- package/esm2022/lib/_internal/email.api.service.mjs +3 -3
- package/esm2022/lib/_internal/enums/api.enum.mjs +7 -1
- package/esm2022/lib/_internal/enums/index.mjs +2 -2
- package/esm2022/lib/_internal/inbox.api.service.mjs +3 -3
- package/esm2022/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2022/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2022/lib/_internal/interfaces/widget.interface.mjs +1 -1
- package/esm2022/lib/_internal/objects/api.mjs +91 -9
- package/esm2022/lib/_internal/objects/index.mjs +2 -2
- package/esm2022/lib/_internal/objects/widget.mjs +9 -1
- package/fesm2022/vendasta-conversation.mjs +117 -21
- package/fesm2022/vendasta-conversation.mjs.map +1 -1
- package/lib/_internal/enums/api.enum.d.ts +5 -0
- package/lib/_internal/enums/index.d.ts +1 -1
- package/lib/_internal/interfaces/api.interface.d.ts +16 -3
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/interfaces/widget.interface.d.ts +2 -0
- package/lib/_internal/objects/api.d.ts +26 -7
- package/lib/_internal/objects/index.d.ts +1 -1
- package/lib/_internal/objects/widget.d.ts +2 -0
- package/package.json +1 -1
|
@@ -5,4 +5,4 @@ export { ParticipantType, } from './participant.enum';
|
|
|
5
5
|
export { ViewType, } from './conversation-view.enum';
|
|
6
6
|
export { WidgetPosition, } from './widget.enum';
|
|
7
7
|
export { EvaluationSentiment, } from './evaluation.enum';
|
|
8
|
-
export { MetadataIdentifier, SetLastSeenRequestStatus, } from './api.enum';
|
|
8
|
+
export { MetadataIdentifier, SetLastSeenRequestStatus, Status, } from './api.enum';
|
|
@@ -26,6 +26,15 @@ export interface CapturedLeadInterface {
|
|
|
26
26
|
phone?: string;
|
|
27
27
|
contactId?: string;
|
|
28
28
|
}
|
|
29
|
+
export interface ChannelAvailabilityInterface {
|
|
30
|
+
channel?: e.ConversationChannel;
|
|
31
|
+
isAvailable?: boolean;
|
|
32
|
+
statuses?: ChannelStatusInterface[];
|
|
33
|
+
}
|
|
34
|
+
export interface ChannelStatusInterface {
|
|
35
|
+
status?: e.Status;
|
|
36
|
+
i18nKey?: string;
|
|
37
|
+
}
|
|
29
38
|
export interface ConversationMessageCountInterface {
|
|
30
39
|
conversationId?: string;
|
|
31
40
|
count?: number;
|
|
@@ -80,6 +89,7 @@ export interface CreateWidgetRequestInterface {
|
|
|
80
89
|
textColor?: string;
|
|
81
90
|
accentColor?: string;
|
|
82
91
|
accentTextColor?: string;
|
|
92
|
+
skipContactCapture?: boolean;
|
|
83
93
|
}
|
|
84
94
|
export interface CreateWidgetResponseInterface {
|
|
85
95
|
widget?: WidgetInterface;
|
|
@@ -100,16 +110,16 @@ export interface DeleteMessageTemplateRequestInterface {
|
|
|
100
110
|
export interface DeleteWidgetRequestInterface {
|
|
101
111
|
widgetId?: string;
|
|
102
112
|
}
|
|
103
|
-
export interface
|
|
113
|
+
export interface GetMultiConversationDetailsResponseDetailedConversationInterface {
|
|
104
114
|
conversation?: ConversationInterface;
|
|
105
115
|
latestMessage?: MessageInterface;
|
|
106
116
|
participants?: ParticipantInterface[];
|
|
117
|
+
summary?: string;
|
|
107
118
|
}
|
|
108
|
-
export interface
|
|
119
|
+
export interface SearchConversationsResponseDetailedConversationInterface {
|
|
109
120
|
conversation?: ConversationInterface;
|
|
110
121
|
latestMessage?: MessageInterface;
|
|
111
122
|
participants?: ParticipantInterface[];
|
|
112
|
-
summary?: string;
|
|
113
123
|
}
|
|
114
124
|
export interface EvaluateResponseRequestInterface {
|
|
115
125
|
messageId?: string;
|
|
@@ -122,6 +132,7 @@ export interface GetAvailableChannelsForConversationRequestInterface {
|
|
|
122
132
|
export interface GetAvailableChannelsForConversationResponseInterface {
|
|
123
133
|
channels?: e.ConversationChannel[];
|
|
124
134
|
preferredChannel?: e.ConversationChannel;
|
|
135
|
+
channelAvailabilities?: ChannelAvailabilityInterface[];
|
|
125
136
|
}
|
|
126
137
|
export interface GetConfigurationRequestInterface {
|
|
127
138
|
subjectParticipant?: SubjectParticipantInterface;
|
|
@@ -227,6 +238,7 @@ export interface GetWidgetConfigResponseInterface {
|
|
|
227
238
|
textColor?: string;
|
|
228
239
|
accentColor?: string;
|
|
229
240
|
accentTextColor?: string;
|
|
241
|
+
skipContactCapture?: boolean;
|
|
230
242
|
}
|
|
231
243
|
export interface GetWidgetConversationResponseInterface {
|
|
232
244
|
conversation?: ConversationInterface;
|
|
@@ -413,6 +425,7 @@ export interface UpdateWidgetRequestInterface {
|
|
|
413
425
|
textColor?: string;
|
|
414
426
|
accentColor?: string;
|
|
415
427
|
accentTextColor?: string;
|
|
428
|
+
skipContactCapture?: boolean;
|
|
416
429
|
}
|
|
417
430
|
export interface UpdateWidgetResponseInterface {
|
|
418
431
|
widget?: WidgetInterface;
|
|
@@ -8,4 +8,4 @@ export { ViewInterface, } from './conversation-view.interface';
|
|
|
8
8
|
export { DataSourcesInterface, WidgetInterface, } from './widget.interface';
|
|
9
9
|
export { FieldMaskInterface, } from './field-mask.interface';
|
|
10
10
|
export { MessageTemplateInterface, } from './message-template.interface';
|
|
11
|
-
export { AddConversationToConversationViewRequestInterface, AddMultiParticipantsRequestInterface, AddMultiParticipantsResponseInterface, CapturedLeadInterface, ConversationMessageCountInterface, LookupConversationsResponseConversationsInterface, GetMultiConversationMessageCountResponseCountsEntryInterface, CreateConversationRequestInterface, CreateConversationResponseInterface, CreateMessageTemplateRequestInterface, CreateMessageTemplateResponseInterface, CreateMultiMessagesRequestInterface, CreateWidgetConversationRequestInterface, CreateWidgetConversationResponseInterface, CreateWidgetRequestInterface, CreateWidgetResponseInterface, MetadataDataEntryInterface, DeleteConversationRequestInterface, DeleteMessageRequestInterface, DeleteMessageTemplateRequestInterface, DeleteWidgetRequestInterface,
|
|
11
|
+
export { AddConversationToConversationViewRequestInterface, AddMultiParticipantsRequestInterface, AddMultiParticipantsResponseInterface, CapturedLeadInterface, ChannelAvailabilityInterface, ChannelStatusInterface, ConversationMessageCountInterface, LookupConversationsResponseConversationsInterface, GetMultiConversationMessageCountResponseCountsEntryInterface, CreateConversationRequestInterface, CreateConversationResponseInterface, CreateMessageTemplateRequestInterface, CreateMessageTemplateResponseInterface, CreateMultiMessagesRequestInterface, CreateWidgetConversationRequestInterface, CreateWidgetConversationResponseInterface, CreateWidgetRequestInterface, CreateWidgetResponseInterface, MetadataDataEntryInterface, DeleteConversationRequestInterface, DeleteMessageRequestInterface, DeleteMessageTemplateRequestInterface, DeleteWidgetRequestInterface, GetMultiConversationDetailsResponseDetailedConversationInterface, SearchConversationsResponseDetailedConversationInterface, EvaluateResponseRequestInterface, GetAvailableChannelsForConversationRequestInterface, GetAvailableChannelsForConversationResponseInterface, GetConfigurationRequestInterface, GetConfigurationResponseInterface, GetConversationByKeyRequestInterface, GetConversationByKeyResponseInterface, GetConversationSummaryRequestInterface, GetConversationSummaryResponseInterface, GetConversationViewsRequestInterface, GetConversationViewsResponseInterface, GetMessageOptionsInterface, GetMessageRequestInterface, GetMessageTemplateRequestInterface, GetMessageTemplateResponseInterface, GetMultiConfigurationRequestInterface, GetMultiConfigurationResponseInterface, GetMultiConversationDetailsRequestInterface, GetMultiConversationDetailsResponseInterface, GetMultiConversationMessageCountRequestInterface, GetMultiConversationMessageCountResponseInterface, GetMultiMessagesRequestInterface, GetMultiMessagesResponseInterface, GetMultiParticipantsRequestInterface, GetMultiParticipantsResponseInterface, GetMultiWidgetMessagesRequestInterface, GetMultiWidgetMessagesResponseInterface, GetOwnerEmailRequestInterface, GetOwnerEmailResponseInterface, GetParticipantsByKeyRequestInterface, GetParticipantsByKeyResponseInterface, GetWidgetConfigRequestInterface, GetWidgetConfigResponseInterface, GetWidgetConversationResponseInterface, GetWidgetRequestInterface, GetWidgetResponseInterface, ListMessageTemplateRequestInterface, ListMessageTemplateResponseInterface, ListMessagesRequestListMessagesFiltersInterface, ListMessagesRequestInterface, ListMessagesResponseInterface, ListWidgetsRequestInterface, ListWidgetsResponseInterface, LookupConversationsRequestLookupConversationsFiltersInterface, LookupConversationsRequestInterface, LookupConversationsResponseInterface, MediaInterface, MetadataInterface, ReceiveMessageRequestMetadataEntryInterface, NewInboxLeadCapturedRequestInterface, NewInboxLeadCapturedResponseInterface, PagedRequestOptionsInterface, PagedResponseMetadataInterface, ReceiveMessageRequestInterface, RemoveConversationFromConversationViewRequestInterface, SearchConversationsRequestInterface, SearchConversationsResponseInterface, SendMessageRequestInterface, SendMessageResponseInterface, SendWidgetMessageRequestInterface, SendWidgetMessageResponseInterface, SetLastSeenRequestInterface, SetLastSeenResponseInterface, UpdateConversationRequestInterface, UpdateConversationResponseInterface, UpdateMessageStatusRequestInterface, UpdateMessageTemplateRequestInterface, UpdateMessageTemplateResponseInterface, UpdateWidgetRequestInterface, UpdateWidgetResponseInterface, UpsertConfigurationRequestInterface, UpsertConfigurationResponseInterface, UpsertProductFeatureRequestInterface, UpsertProductFeatureResponseInterface, } from './api.interface';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as e from '../enums';
|
|
2
2
|
export interface DataSourcesInterface {
|
|
3
3
|
businessProfile?: boolean;
|
|
4
|
+
businessWebsite?: boolean;
|
|
4
5
|
}
|
|
5
6
|
export interface WidgetInterface {
|
|
6
7
|
widgetId?: string;
|
|
@@ -16,4 +17,5 @@ export interface WidgetInterface {
|
|
|
16
17
|
textColor?: string;
|
|
17
18
|
accentColor?: string;
|
|
18
19
|
accentTextColor?: string;
|
|
20
|
+
skipContactCapture?: boolean;
|
|
19
21
|
}
|
|
@@ -40,6 +40,21 @@ export declare class CapturedLead implements i.CapturedLeadInterface {
|
|
|
40
40
|
constructor(kwargs?: i.CapturedLeadInterface);
|
|
41
41
|
toApiJson(): object;
|
|
42
42
|
}
|
|
43
|
+
export declare class ChannelAvailability implements i.ChannelAvailabilityInterface {
|
|
44
|
+
channel: e.ConversationChannel;
|
|
45
|
+
isAvailable: boolean;
|
|
46
|
+
statuses: ChannelStatus[];
|
|
47
|
+
static fromProto(proto: any): ChannelAvailability;
|
|
48
|
+
constructor(kwargs?: i.ChannelAvailabilityInterface);
|
|
49
|
+
toApiJson(): object;
|
|
50
|
+
}
|
|
51
|
+
export declare class ChannelStatus implements i.ChannelStatusInterface {
|
|
52
|
+
status: e.Status;
|
|
53
|
+
i18nKey: string;
|
|
54
|
+
static fromProto(proto: any): ChannelStatus;
|
|
55
|
+
constructor(kwargs?: i.ChannelStatusInterface);
|
|
56
|
+
toApiJson(): object;
|
|
57
|
+
}
|
|
43
58
|
export declare class ConversationMessageCount implements i.ConversationMessageCountInterface {
|
|
44
59
|
conversationId: string;
|
|
45
60
|
count: number;
|
|
@@ -124,6 +139,7 @@ export declare class CreateWidgetRequest implements i.CreateWidgetRequestInterfa
|
|
|
124
139
|
textColor: string;
|
|
125
140
|
accentColor: string;
|
|
126
141
|
accentTextColor: string;
|
|
142
|
+
skipContactCapture: boolean;
|
|
127
143
|
static fromProto(proto: any): CreateWidgetRequest;
|
|
128
144
|
constructor(kwargs?: i.CreateWidgetRequestInterface);
|
|
129
145
|
toApiJson(): object;
|
|
@@ -165,21 +181,21 @@ export declare class DeleteWidgetRequest implements i.DeleteWidgetRequestInterfa
|
|
|
165
181
|
constructor(kwargs?: i.DeleteWidgetRequestInterface);
|
|
166
182
|
toApiJson(): object;
|
|
167
183
|
}
|
|
168
|
-
export declare class
|
|
184
|
+
export declare class GetMultiConversationDetailsResponseDetailedConversation implements i.GetMultiConversationDetailsResponseDetailedConversationInterface {
|
|
169
185
|
conversation: Conversation;
|
|
170
186
|
latestMessage: Message;
|
|
171
187
|
participants: Participant[];
|
|
172
|
-
|
|
173
|
-
|
|
188
|
+
summary: string;
|
|
189
|
+
static fromProto(proto: any): GetMultiConversationDetailsResponseDetailedConversation;
|
|
190
|
+
constructor(kwargs?: i.GetMultiConversationDetailsResponseDetailedConversationInterface);
|
|
174
191
|
toApiJson(): object;
|
|
175
192
|
}
|
|
176
|
-
export declare class
|
|
193
|
+
export declare class SearchConversationsResponseDetailedConversation implements i.SearchConversationsResponseDetailedConversationInterface {
|
|
177
194
|
conversation: Conversation;
|
|
178
195
|
latestMessage: Message;
|
|
179
196
|
participants: Participant[];
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
constructor(kwargs?: i.GetMultiConversationDetailsResponseDetailedConversationInterface);
|
|
197
|
+
static fromProto(proto: any): SearchConversationsResponseDetailedConversation;
|
|
198
|
+
constructor(kwargs?: i.SearchConversationsResponseDetailedConversationInterface);
|
|
183
199
|
toApiJson(): object;
|
|
184
200
|
}
|
|
185
201
|
export declare class EvaluateResponseRequest implements i.EvaluateResponseRequestInterface {
|
|
@@ -199,6 +215,7 @@ export declare class GetAvailableChannelsForConversationRequest implements i.Get
|
|
|
199
215
|
export declare class GetAvailableChannelsForConversationResponse implements i.GetAvailableChannelsForConversationResponseInterface {
|
|
200
216
|
channels: e.ConversationChannel[];
|
|
201
217
|
preferredChannel: e.ConversationChannel;
|
|
218
|
+
channelAvailabilities: ChannelAvailability[];
|
|
202
219
|
static fromProto(proto: any): GetAvailableChannelsForConversationResponse;
|
|
203
220
|
constructor(kwargs?: i.GetAvailableChannelsForConversationResponseInterface);
|
|
204
221
|
toApiJson(): object;
|
|
@@ -394,6 +411,7 @@ export declare class GetWidgetConfigResponse implements i.GetWidgetConfigRespons
|
|
|
394
411
|
textColor: string;
|
|
395
412
|
accentColor: string;
|
|
396
413
|
accentTextColor: string;
|
|
414
|
+
skipContactCapture: boolean;
|
|
397
415
|
static fromProto(proto: any): GetWidgetConfigResponse;
|
|
398
416
|
constructor(kwargs?: i.GetWidgetConfigResponseInterface);
|
|
399
417
|
toApiJson(): object;
|
|
@@ -688,6 +706,7 @@ export declare class UpdateWidgetRequest implements i.UpdateWidgetRequestInterfa
|
|
|
688
706
|
textColor: string;
|
|
689
707
|
accentColor: string;
|
|
690
708
|
accentTextColor: string;
|
|
709
|
+
skipContactCapture: boolean;
|
|
691
710
|
static fromProto(proto: any): UpdateWidgetRequest;
|
|
692
711
|
constructor(kwargs?: i.UpdateWidgetRequestInterface);
|
|
693
712
|
toApiJson(): object;
|
|
@@ -8,4 +8,4 @@ export { View, } from './conversation-view';
|
|
|
8
8
|
export { DataSources, Widget, } from './widget';
|
|
9
9
|
export { FieldMask, } from './field-mask';
|
|
10
10
|
export { MessageTemplate, } from './message-template';
|
|
11
|
-
export { AddConversationToConversationViewRequest, AddMultiParticipantsRequest, AddMultiParticipantsResponse, CapturedLead, ConversationMessageCount, LookupConversationsResponseConversations, GetMultiConversationMessageCountResponseCountsEntry, CreateConversationRequest, CreateConversationResponse, CreateMessageTemplateRequest, CreateMessageTemplateResponse, CreateMultiMessagesRequest, CreateWidgetConversationRequest, CreateWidgetConversationResponse, CreateWidgetRequest, CreateWidgetResponse, MetadataDataEntry, DeleteConversationRequest, DeleteMessageRequest, DeleteMessageTemplateRequest, DeleteWidgetRequest,
|
|
11
|
+
export { AddConversationToConversationViewRequest, AddMultiParticipantsRequest, AddMultiParticipantsResponse, CapturedLead, ChannelAvailability, ChannelStatus, ConversationMessageCount, LookupConversationsResponseConversations, GetMultiConversationMessageCountResponseCountsEntry, CreateConversationRequest, CreateConversationResponse, CreateMessageTemplateRequest, CreateMessageTemplateResponse, CreateMultiMessagesRequest, CreateWidgetConversationRequest, CreateWidgetConversationResponse, CreateWidgetRequest, CreateWidgetResponse, MetadataDataEntry, DeleteConversationRequest, DeleteMessageRequest, DeleteMessageTemplateRequest, DeleteWidgetRequest, GetMultiConversationDetailsResponseDetailedConversation, SearchConversationsResponseDetailedConversation, EvaluateResponseRequest, GetAvailableChannelsForConversationRequest, GetAvailableChannelsForConversationResponse, GetConfigurationRequest, GetConfigurationResponse, GetConversationByKeyRequest, GetConversationByKeyResponse, GetConversationSummaryRequest, GetConversationSummaryResponse, GetConversationViewsRequest, GetConversationViewsResponse, GetMessageOptions, GetMessageRequest, GetMessageTemplateRequest, GetMessageTemplateResponse, GetMultiConfigurationRequest, GetMultiConfigurationResponse, GetMultiConversationDetailsRequest, GetMultiConversationDetailsResponse, GetMultiConversationMessageCountRequest, GetMultiConversationMessageCountResponse, GetMultiMessagesRequest, GetMultiMessagesResponse, GetMultiParticipantsRequest, GetMultiParticipantsResponse, GetMultiWidgetMessagesRequest, GetMultiWidgetMessagesResponse, GetOwnerEmailRequest, GetOwnerEmailResponse, GetParticipantsByKeyRequest, GetParticipantsByKeyResponse, GetWidgetConfigRequest, GetWidgetConfigResponse, GetWidgetConversationResponse, GetWidgetRequest, GetWidgetResponse, ListMessageTemplateRequest, ListMessageTemplateResponse, ListMessagesRequestListMessagesFilters, ListMessagesRequest, ListMessagesResponse, ListWidgetsRequest, ListWidgetsResponse, LookupConversationsRequestLookupConversationsFilters, LookupConversationsRequest, LookupConversationsResponse, Media, Metadata, ReceiveMessageRequestMetadataEntry, NewInboxLeadCapturedRequest, NewInboxLeadCapturedResponse, PagedRequestOptions, PagedResponseMetadata, ReceiveMessageRequest, RemoveConversationFromConversationViewRequest, SearchConversationsRequest, SearchConversationsResponse, SendMessageRequest, SendMessageResponse, SendWidgetMessageRequest, SendWidgetMessageResponse, SetLastSeenRequest, SetLastSeenResponse, UpdateConversationRequest, UpdateConversationResponse, UpdateMessageStatusRequest, UpdateMessageTemplateRequest, UpdateMessageTemplateResponse, UpdateWidgetRequest, UpdateWidgetResponse, UpsertConfigurationRequest, UpsertConfigurationResponse, UpsertProductFeatureRequest, UpsertProductFeatureResponse, } from './api';
|
|
@@ -3,6 +3,7 @@ import * as e from '../enums';
|
|
|
3
3
|
export declare function enumStringToValue<E>(enumRef: any, value: string): E;
|
|
4
4
|
export declare class DataSources implements i.DataSourcesInterface {
|
|
5
5
|
businessProfile: boolean;
|
|
6
|
+
businessWebsite: boolean;
|
|
6
7
|
static fromProto(proto: any): DataSources;
|
|
7
8
|
constructor(kwargs?: i.DataSourcesInterface);
|
|
8
9
|
toApiJson(): object;
|
|
@@ -21,6 +22,7 @@ export declare class Widget implements i.WidgetInterface {
|
|
|
21
22
|
textColor: string;
|
|
22
23
|
accentColor: string;
|
|
23
24
|
accentTextColor: string;
|
|
25
|
+
skipContactCapture: boolean;
|
|
24
26
|
static fromProto(proto: any): Widget;
|
|
25
27
|
constructor(kwargs?: i.WidgetInterface);
|
|
26
28
|
toApiJson(): object;
|