@vendasta/conversation 0.39.0 → 0.40.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/conversation.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 +50 -1
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/fesm2015/vendasta-conversation.mjs +55 -1
- package/fesm2015/vendasta-conversation.mjs.map +1 -1
- package/fesm2020/vendasta-conversation.mjs +55 -1
- package/fesm2020/vendasta-conversation.mjs.map +1 -1
- package/lib/_internal/conversation.api.service.d.ts +3 -2
- package/lib/_internal/interfaces/api.interface.d.ts +9 -0
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/objects/api.d.ts +15 -0
- package/lib/_internal/objects/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1854,6 +1854,55 @@ class GetParticipantsByKeyResponse {
|
|
|
1854
1854
|
return toReturn;
|
|
1855
1855
|
}
|
|
1856
1856
|
}
|
|
1857
|
+
class GetWidgetConfigRequest {
|
|
1858
|
+
static fromProto(proto) {
|
|
1859
|
+
let m = new GetWidgetConfigRequest();
|
|
1860
|
+
m = Object.assign(m, proto);
|
|
1861
|
+
return m;
|
|
1862
|
+
}
|
|
1863
|
+
constructor(kwargs) {
|
|
1864
|
+
if (!kwargs) {
|
|
1865
|
+
return;
|
|
1866
|
+
}
|
|
1867
|
+
Object.assign(this, kwargs);
|
|
1868
|
+
}
|
|
1869
|
+
toApiJson() {
|
|
1870
|
+
const toReturn = {};
|
|
1871
|
+
if (typeof this.widgetId !== 'undefined') {
|
|
1872
|
+
toReturn['widgetId'] = this.widgetId;
|
|
1873
|
+
}
|
|
1874
|
+
return toReturn;
|
|
1875
|
+
}
|
|
1876
|
+
}
|
|
1877
|
+
class GetWidgetConfigResponse {
|
|
1878
|
+
static fromProto(proto) {
|
|
1879
|
+
let m = new GetWidgetConfigResponse();
|
|
1880
|
+
m = Object.assign(m, proto);
|
|
1881
|
+
return m;
|
|
1882
|
+
}
|
|
1883
|
+
constructor(kwargs) {
|
|
1884
|
+
if (!kwargs) {
|
|
1885
|
+
return;
|
|
1886
|
+
}
|
|
1887
|
+
Object.assign(this, kwargs);
|
|
1888
|
+
}
|
|
1889
|
+
toApiJson() {
|
|
1890
|
+
const toReturn = {};
|
|
1891
|
+
if (typeof this.name !== 'undefined') {
|
|
1892
|
+
toReturn['name'] = this.name;
|
|
1893
|
+
}
|
|
1894
|
+
if (typeof this.color !== 'undefined') {
|
|
1895
|
+
toReturn['color'] = this.color;
|
|
1896
|
+
}
|
|
1897
|
+
if (typeof this.isEnabled !== 'undefined') {
|
|
1898
|
+
toReturn['isEnabled'] = this.isEnabled;
|
|
1899
|
+
}
|
|
1900
|
+
if (typeof this.welcomeMessage !== 'undefined') {
|
|
1901
|
+
toReturn['welcomeMessage'] = this.welcomeMessage;
|
|
1902
|
+
}
|
|
1903
|
+
return toReturn;
|
|
1904
|
+
}
|
|
1905
|
+
}
|
|
1857
1906
|
class GetWidgetConversationResponse {
|
|
1858
1907
|
static fromProto(proto) {
|
|
1859
1908
|
let m = new GetWidgetConversationResponse();
|
|
@@ -2959,6 +3008,11 @@ class ConversationApiService {
|
|
|
2959
3008
|
return this.http.post(this._host + "/conversation.v1.ConversationService/ListWidgets", request.toApiJson(), this.apiOptions())
|
|
2960
3009
|
.pipe(map(resp => ListWidgetsResponse.fromProto(resp)));
|
|
2961
3010
|
}
|
|
3011
|
+
getWidgetConfig(r) {
|
|
3012
|
+
const request = (r.toApiJson) ? r : new GetWidgetConfigRequest(r);
|
|
3013
|
+
return this.http.post(this._host + "/conversation.v1.ConversationService/GetWidgetConfig", request.toApiJson(), this.apiOptions())
|
|
3014
|
+
.pipe(map(resp => GetWidgetConfigResponse.fromProto(resp)));
|
|
3015
|
+
}
|
|
2962
3016
|
}
|
|
2963
3017
|
ConversationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConversationApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2964
3018
|
ConversationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConversationApiService, providedIn: 'root' });
|
|
@@ -3021,5 +3075,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
3021
3075
|
* Generated bundle index. Do not edit.
|
|
3022
3076
|
*/
|
|
3023
3077
|
|
|
3024
|
-
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, 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 };
|
|
3078
|
+
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 };
|
|
3025
3079
|
//# sourceMappingURL=vendasta-conversation.mjs.map
|