@vendasta/conversation 0.42.0 → 0.43.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/_generated/host.service.mjs +4 -4
- package/esm2020/lib/_internal/conversation.api.service.mjs +12 -6
- package/esm2020/lib/_internal/inbox.api.service.mjs +4 -4
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/configuration.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/objects/api.mjs +64 -1
- package/esm2020/lib/_internal/objects/configuration.mjs +4 -1
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/fesm2015/vendasta-conversation.mjs +83 -11
- package/fesm2015/vendasta-conversation.mjs.map +1 -1
- package/fesm2020/vendasta-conversation.mjs +83 -11
- package/fesm2020/vendasta-conversation.mjs.map +1 -1
- package/lib/_internal/conversation.api.service.d.ts +4 -3
- package/lib/_internal/interfaces/api.interface.d.ts +9 -0
- package/lib/_internal/interfaces/configuration.interface.d.ts +1 -0
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/objects/api.d.ts +18 -0
- package/lib/_internal/objects/configuration.d.ts +1 -0
- package/lib/_internal/objects/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -729,6 +729,9 @@ class Configuration {
|
|
|
729
729
|
if (typeof this.smsEnabled !== 'undefined') {
|
|
730
730
|
toReturn['smsEnabled'] = this.smsEnabled;
|
|
731
731
|
}
|
|
732
|
+
if (typeof this.inboxProEnabled !== 'undefined') {
|
|
733
|
+
toReturn['inboxProEnabled'] = this.inboxProEnabled;
|
|
734
|
+
}
|
|
732
735
|
return toReturn;
|
|
733
736
|
}
|
|
734
737
|
}
|
|
@@ -1380,6 +1383,49 @@ class GetMultiConversationDetailsResponseDetailedConversation {
|
|
|
1380
1383
|
return toReturn;
|
|
1381
1384
|
}
|
|
1382
1385
|
}
|
|
1386
|
+
class GetAvailableChannelsForConversationRequest {
|
|
1387
|
+
static fromProto(proto) {
|
|
1388
|
+
let m = new GetAvailableChannelsForConversationRequest();
|
|
1389
|
+
m = Object.assign(m, proto);
|
|
1390
|
+
return m;
|
|
1391
|
+
}
|
|
1392
|
+
constructor(kwargs) {
|
|
1393
|
+
if (!kwargs) {
|
|
1394
|
+
return;
|
|
1395
|
+
}
|
|
1396
|
+
Object.assign(this, kwargs);
|
|
1397
|
+
}
|
|
1398
|
+
toApiJson() {
|
|
1399
|
+
const toReturn = {};
|
|
1400
|
+
if (typeof this.conversationId !== 'undefined') {
|
|
1401
|
+
toReturn['conversationId'] = this.conversationId;
|
|
1402
|
+
}
|
|
1403
|
+
return toReturn;
|
|
1404
|
+
}
|
|
1405
|
+
}
|
|
1406
|
+
class GetAvailableChannelsForConversationResponse {
|
|
1407
|
+
static fromProto(proto) {
|
|
1408
|
+
let m = new GetAvailableChannelsForConversationResponse();
|
|
1409
|
+
m = Object.assign(m, proto);
|
|
1410
|
+
if (proto.channels) {
|
|
1411
|
+
m.channels = proto.channels.map((v) => enumStringToValue(ConversationChannel, v));
|
|
1412
|
+
}
|
|
1413
|
+
return m;
|
|
1414
|
+
}
|
|
1415
|
+
constructor(kwargs) {
|
|
1416
|
+
if (!kwargs) {
|
|
1417
|
+
return;
|
|
1418
|
+
}
|
|
1419
|
+
Object.assign(this, kwargs);
|
|
1420
|
+
}
|
|
1421
|
+
toApiJson() {
|
|
1422
|
+
const toReturn = {};
|
|
1423
|
+
if (typeof this.channels !== 'undefined') {
|
|
1424
|
+
toReturn['channels'] = this.channels;
|
|
1425
|
+
}
|
|
1426
|
+
return toReturn;
|
|
1427
|
+
}
|
|
1428
|
+
}
|
|
1383
1429
|
class GetConfigurationRequest {
|
|
1384
1430
|
static fromProto(proto) {
|
|
1385
1431
|
let m = new GetConfigurationRequest();
|
|
@@ -2636,6 +2682,26 @@ class SendWidgetMessageRequest {
|
|
|
2636
2682
|
return toReturn;
|
|
2637
2683
|
}
|
|
2638
2684
|
}
|
|
2685
|
+
class SendWidgetMessageResponse {
|
|
2686
|
+
static fromProto(proto) {
|
|
2687
|
+
let m = new SendWidgetMessageResponse();
|
|
2688
|
+
m = Object.assign(m, proto);
|
|
2689
|
+
return m;
|
|
2690
|
+
}
|
|
2691
|
+
constructor(kwargs) {
|
|
2692
|
+
if (!kwargs) {
|
|
2693
|
+
return;
|
|
2694
|
+
}
|
|
2695
|
+
Object.assign(this, kwargs);
|
|
2696
|
+
}
|
|
2697
|
+
toApiJson() {
|
|
2698
|
+
const toReturn = {};
|
|
2699
|
+
if (typeof this.messageId !== 'undefined') {
|
|
2700
|
+
toReturn['messageId'] = this.messageId;
|
|
2701
|
+
}
|
|
2702
|
+
return toReturn;
|
|
2703
|
+
}
|
|
2704
|
+
}
|
|
2639
2705
|
class SetLastSeenRequest {
|
|
2640
2706
|
static fromProto(proto) {
|
|
2641
2707
|
let m = new SetLastSeenRequest();
|
|
@@ -2854,9 +2920,9 @@ class HostService {
|
|
|
2854
2920
|
return 'https://' + this.host;
|
|
2855
2921
|
}
|
|
2856
2922
|
}
|
|
2857
|
-
HostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
2858
|
-
HostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
2859
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
2923
|
+
HostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HostService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2924
|
+
HostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HostService, providedIn: 'root' });
|
|
2925
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HostService, decorators: [{
|
|
2860
2926
|
type: Injectable,
|
|
2861
2927
|
args: [{ providedIn: 'root' }]
|
|
2862
2928
|
}] });
|
|
@@ -2996,12 +3062,18 @@ class ConversationApiService {
|
|
|
2996
3062
|
}
|
|
2997
3063
|
sendWidgetMessage(r) {
|
|
2998
3064
|
const request = (r.toApiJson) ? r : new SendWidgetMessageRequest(r);
|
|
2999
|
-
return this.http.post(this._host + "/conversation.v1.ConversationService/SendWidgetMessage", request.toApiJson(),
|
|
3065
|
+
return this.http.post(this._host + "/conversation.v1.ConversationService/SendWidgetMessage", request.toApiJson(), this.apiOptions())
|
|
3066
|
+
.pipe(map(resp => SendWidgetMessageResponse.fromProto(resp)));
|
|
3000
3067
|
}
|
|
3001
3068
|
getWidgetConversation() {
|
|
3002
3069
|
return this.http.post(this._host + "/conversation.v1.ConversationService/GetWidgetConversation", {}, this.apiOptions())
|
|
3003
3070
|
.pipe(map(resp => GetWidgetConversationResponse.fromProto(resp)));
|
|
3004
3071
|
}
|
|
3072
|
+
getAvailableChannelsForConversation(r) {
|
|
3073
|
+
const request = (r.toApiJson) ? r : new GetAvailableChannelsForConversationRequest(r);
|
|
3074
|
+
return this.http.post(this._host + "/conversation.v1.ConversationService/GetAvailableChannelsForConversation", request.toApiJson(), this.apiOptions())
|
|
3075
|
+
.pipe(map(resp => GetAvailableChannelsForConversationResponse.fromProto(resp)));
|
|
3076
|
+
}
|
|
3005
3077
|
createWidget(r) {
|
|
3006
3078
|
const request = (r.toApiJson) ? r : new CreateWidgetRequest(r);
|
|
3007
3079
|
return this.http.post(this._host + "/conversation.v1.ConversationService/CreateWidget", request.toApiJson(), this.apiOptions())
|
|
@@ -3032,9 +3104,9 @@ class ConversationApiService {
|
|
|
3032
3104
|
.pipe(map(resp => GetWidgetConfigResponse.fromProto(resp)));
|
|
3033
3105
|
}
|
|
3034
3106
|
}
|
|
3035
|
-
ConversationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
3036
|
-
ConversationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
3037
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
3107
|
+
ConversationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ConversationApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3108
|
+
ConversationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ConversationApiService, providedIn: 'root' });
|
|
3109
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ConversationApiService, decorators: [{
|
|
3038
3110
|
type: Injectable,
|
|
3039
3111
|
args: [{ providedIn: 'root' }]
|
|
3040
3112
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
@@ -3075,9 +3147,9 @@ class InboxApiService {
|
|
|
3075
3147
|
.pipe(map(resp => UpsertConfigurationResponse.fromProto(resp)));
|
|
3076
3148
|
}
|
|
3077
3149
|
}
|
|
3078
|
-
InboxApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
3079
|
-
InboxApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
3080
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
3150
|
+
InboxApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: InboxApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3151
|
+
InboxApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: InboxApiService, providedIn: 'root' });
|
|
3152
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: InboxApiService, decorators: [{
|
|
3081
3153
|
type: Injectable,
|
|
3082
3154
|
args: [{ providedIn: 'root' }]
|
|
3083
3155
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
@@ -3093,5 +3165,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
3093
3165
|
* Generated bundle index. Do not edit.
|
|
3094
3166
|
*/
|
|
3095
3167
|
|
|
3096
|
-
export { Access, AddConversationToConversationViewRequest, AddMultiParticipantsRequest, AddMultiParticipantsResponse, Address, Configuration, Conversation, ConversationApiService, ConversationChannel, ConversationKey, ConversationMessageCount, CreateConversationRequest, CreateConversationResponse, CreateMultiMessagesRequest, CreateWidgetConversationRequest, CreateWidgetConversationResponse, CreateWidgetRequest, CreateWidgetResponse, DeleteConversationRequest, DeleteMessageRequest, DeleteWidgetRequest, FieldMask, GetConfigurationRequest, GetConfigurationResponse, GetConversationByKeyRequest, GetConversationByKeyResponse, GetConversationViewsRequest, GetConversationViewsResponse, GetMessageRequest, GetMultiConfigurationRequest, GetMultiConfigurationResponse, GetMultiConversationDetailsRequest, GetMultiConversationDetailsResponse, GetMultiConversationDetailsResponseDetailedConversation, GetMultiConversationMessageCountRequest, GetMultiConversationMessageCountResponse, GetMultiConversationMessageCountResponseCountsEntry, GetMultiMessagesRequest, GetMultiMessagesResponse, GetMultiParticipantsRequest, GetMultiParticipantsResponse, GetMultiWidgetMessagesRequest, GetMultiWidgetMessagesResponse, GetParticipantsByKeyRequest, GetParticipantsByKeyResponse, GetWidgetConfigRequest, GetWidgetConfigResponse, GetWidgetConversationResponse, GetWidgetRequest, GetWidgetResponse, GlobalParticipantType, InboxApiService, LastSeenByParticipant, ListMessagesRequest, ListMessagesRequestListMessagesFilters, ListMessagesResponse, ListWidgetsRequest, ListWidgetsResponse, 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, SendStatus, SendWidgetMessageRequest, SetLastSeenRequest, SetLastSeenRequestStatus, SetLastSeenResponse, SortDirection, SubjectParticipant, UpdateMessageStatusRequest, UpdateWidgetRequest, UpdateWidgetResponse, UpsertConfigurationRequest, UpsertConfigurationResponse, View, ViewType, Widget, WidgetPosition };
|
|
3168
|
+
export { Access, AddConversationToConversationViewRequest, AddMultiParticipantsRequest, AddMultiParticipantsResponse, Address, Configuration, Conversation, ConversationApiService, ConversationChannel, ConversationKey, ConversationMessageCount, CreateConversationRequest, CreateConversationResponse, CreateMultiMessagesRequest, CreateWidgetConversationRequest, CreateWidgetConversationResponse, CreateWidgetRequest, CreateWidgetResponse, DeleteConversationRequest, DeleteMessageRequest, DeleteWidgetRequest, FieldMask, GetAvailableChannelsForConversationRequest, GetAvailableChannelsForConversationResponse, GetConfigurationRequest, GetConfigurationResponse, GetConversationByKeyRequest, GetConversationByKeyResponse, GetConversationViewsRequest, GetConversationViewsResponse, GetMessageRequest, GetMultiConfigurationRequest, GetMultiConfigurationResponse, GetMultiConversationDetailsRequest, GetMultiConversationDetailsResponse, GetMultiConversationDetailsResponseDetailedConversation, GetMultiConversationMessageCountRequest, GetMultiConversationMessageCountResponse, GetMultiConversationMessageCountResponseCountsEntry, GetMultiMessagesRequest, GetMultiMessagesResponse, GetMultiParticipantsRequest, GetMultiParticipantsResponse, GetMultiWidgetMessagesRequest, GetMultiWidgetMessagesResponse, GetParticipantsByKeyRequest, GetParticipantsByKeyResponse, GetWidgetConfigRequest, GetWidgetConfigResponse, GetWidgetConversationResponse, GetWidgetRequest, GetWidgetResponse, GlobalParticipantType, InboxApiService, LastSeenByParticipant, ListMessagesRequest, ListMessagesRequestListMessagesFilters, ListMessagesResponse, ListWidgetsRequest, ListWidgetsResponse, 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, SendStatus, SendWidgetMessageRequest, SendWidgetMessageResponse, SetLastSeenRequest, SetLastSeenRequestStatus, SetLastSeenResponse, SortDirection, SubjectParticipant, UpdateMessageStatusRequest, UpdateWidgetRequest, UpdateWidgetResponse, UpsertConfigurationRequest, UpsertConfigurationResponse, View, ViewType, Widget, WidgetPosition };
|
|
3097
3169
|
//# sourceMappingURL=vendasta-conversation.mjs.map
|