@vendasta/conversation 0.30.0 → 0.31.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 +3 -3
- package/esm2020/lib/_internal/conversation.api.service.mjs +14 -10
- package/esm2020/lib/_internal/inbox.api.service.mjs +3 -3
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/conversation-view.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/objects/api.mjs +74 -45
- package/esm2020/lib/_internal/objects/conversation-view.mjs +3 -19
- package/esm2020/lib/_internal/objects/index.mjs +3 -3
- package/fesm2015/vendasta-conversation.mjs +117 -74
- package/fesm2015/vendasta-conversation.mjs.map +1 -1
- package/fesm2020/vendasta-conversation.mjs +117 -74
- 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 +13 -7
- package/lib/_internal/interfaces/conversation-view.interface.d.ts +1 -5
- package/lib/_internal/interfaces/index.d.ts +2 -2
- package/lib/_internal/objects/api.d.ts +22 -13
- package/lib/_internal/objects/conversation-view.d.ts +3 -7
- package/lib/_internal/objects/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,23 +1,16 @@
|
|
|
1
|
-
import * as e from '../enums';
|
|
2
1
|
export function enumStringToValue(enumRef, value) {
|
|
3
2
|
if (typeof value === 'number') {
|
|
4
3
|
return value;
|
|
5
4
|
}
|
|
6
5
|
return enumRef[value];
|
|
7
6
|
}
|
|
8
|
-
export class
|
|
7
|
+
export class View {
|
|
9
8
|
static fromProto(proto) {
|
|
10
|
-
let m = new
|
|
9
|
+
let m = new View();
|
|
11
10
|
m = Object.assign(m, proto);
|
|
12
|
-
if (proto.viewType) {
|
|
13
|
-
m.viewType = enumStringToValue(e.ViewType, proto.viewType);
|
|
14
|
-
}
|
|
15
11
|
if (proto.created) {
|
|
16
12
|
m.created = new Date(proto.created);
|
|
17
13
|
}
|
|
18
|
-
if (proto.updated) {
|
|
19
|
-
m.updated = new Date(proto.updated);
|
|
20
|
-
}
|
|
21
14
|
return m;
|
|
22
15
|
}
|
|
23
16
|
constructor(kwargs) {
|
|
@@ -31,19 +24,10 @@ export class ConversationView {
|
|
|
31
24
|
if (typeof this.viewId !== 'undefined') {
|
|
32
25
|
toReturn['viewId'] = this.viewId;
|
|
33
26
|
}
|
|
34
|
-
if (typeof this.participantId !== 'undefined') {
|
|
35
|
-
toReturn['participantId'] = this.participantId;
|
|
36
|
-
}
|
|
37
|
-
if (typeof this.viewType !== 'undefined') {
|
|
38
|
-
toReturn['viewType'] = this.viewType;
|
|
39
|
-
}
|
|
40
27
|
if (typeof this.created !== 'undefined' && this.created !== null) {
|
|
41
28
|
toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;
|
|
42
29
|
}
|
|
43
|
-
if (typeof this.updated !== 'undefined' && this.updated !== null) {
|
|
44
|
-
toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;
|
|
45
|
-
}
|
|
46
30
|
return toReturn;
|
|
47
31
|
}
|
|
48
32
|
}
|
|
49
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
33
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVyc2F0aW9uLXZpZXcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9jb252ZXJzYXRpb25fc2RrL3NyYy9saWIvX2ludGVybmFsL29iamVjdHMvY29udmVyc2F0aW9uLXZpZXcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBVUEsTUFBTSxVQUFVLGlCQUFpQixDQUFJLE9BQVksRUFBRSxLQUFhO0lBQzlELElBQUksT0FBTyxLQUFLLEtBQUssUUFBUSxFQUFFO1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SB7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cbiAgICAgICAgT2JqZWN0LmFzc2lnbih0aGlzLCBrd2FyZ3MpO1xuICAgIH1cblxuICAgIHRvQXBpSnNvbigpOiBvYmplY3Qge1xuICAgICAgICBjb25zdCB0b1JldHVybjoge1xuICAgICAgICAgICAgW2tleTogc3RyaW5nXTogYW55O1xuICAgICAgICB9ID0ge307XG4gICAgICAgIFxuICAgICAgICBpZiAodHlwZW9mIHRoaXMudmlld0lkICE9PSAndW5kZWZpbmVkJykge3RvUmV0dXJuWyd2aWV3SWQnXSA9IHRoaXMudmlld0lkO31cbiAgICAgICAgaWYgKHR5cGVvZiB0aGlzLmNyZWF0ZWQgIT09ICd1bmRlZmluZWQnICYmIHRoaXMuY3JlYXRlZCAhPT0gbnVsbCkge3RvUmV0dXJuWydjcmVhdGVkJ10gPSAndG9BcGlKc29uJyBpbiB0aGlzLmNyZWF0ZWQgPyAodGhpcy5jcmVhdGVkIGFzIGFueSkudG9BcGlKc29uKCkgOiB0aGlzLmNyZWF0ZWQ7fVxuICAgICAgICByZXR1cm4gdG9SZXR1cm47XG4gICAgfVxufVxuXG4iXX0=
|
|
@@ -10,6 +10,6 @@ export { Conversation, ConversationKey, LastSeenByParticipant, } from './convers
|
|
|
10
10
|
export { Address, Participant, ParticipantKey, } from './participant';
|
|
11
11
|
export { Access, } from './annotations';
|
|
12
12
|
export { Configuration, } from './configuration';
|
|
13
|
-
export {
|
|
14
|
-
export { AddConversationToConversationViewRequest, AddMultiParticipantsRequest, AddMultiParticipantsResponse, ConversationMessageCount, LookupConversationsResponseConversations, GetMultiConversationMessageCountResponseCountsEntry, CreateConversationRequest, CreateConversationResponse, CreateMultiMessagesRequest, MetadataDataEntry, DeleteConversationRequest, DeleteMessageRequest, GetMultiConversationDetailsResponseDetailedConversation, SearchConversationsResponseDetailedConversation, GetConfigurationRequest, GetConfigurationResponse, GetConversationByKeyRequest, GetConversationByKeyResponse, GetMessageRequest, GetMultiConfigurationRequest, GetMultiConfigurationResponse, GetMultiConversationDetailsRequest, GetMultiConversationDetailsResponse, GetMultiConversationMessageCountRequest, GetMultiConversationMessageCountResponse, GetMultiMessagesRequest, GetMultiMessagesResponse, GetMultiParticipantsRequest, GetMultiParticipantsResponse, GetParticipantsByKeyRequest, GetParticipantsByKeyResponse, ListMessagesRequestListMessagesFilters, ListMessagesRequest, ListMessagesResponse,
|
|
15
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
13
|
+
export { View, } from './conversation-view';
|
|
14
|
+
export { AddConversationToConversationViewRequest, AddMultiParticipantsRequest, AddMultiParticipantsResponse, ConversationMessageCount, LookupConversationsResponseConversations, GetMultiConversationMessageCountResponseCountsEntry, CreateConversationRequest, CreateConversationResponse, CreateMultiMessagesRequest, MetadataDataEntry, DeleteConversationRequest, DeleteMessageRequest, GetMultiConversationDetailsResponseDetailedConversation, SearchConversationsResponseDetailedConversation, GetConfigurationRequest, GetConfigurationResponse, GetConversationByKeyRequest, GetConversationByKeyResponse, GetConversationViewsRequest, GetConversationViewsResponse, GetMessageRequest, GetMultiConfigurationRequest, GetMultiConfigurationResponse, GetMultiConversationDetailsRequest, GetMultiConversationDetailsResponse, GetMultiConversationMessageCountRequest, GetMultiConversationMessageCountResponse, GetMultiMessagesRequest, GetMultiMessagesResponse, GetMultiParticipantsRequest, GetMultiParticipantsResponse, GetParticipantsByKeyRequest, GetParticipantsByKeyResponse, ListMessagesRequestListMessagesFilters, ListMessagesRequest, ListMessagesResponse, LookupConversationsRequestLookupConversationsFilters, LookupConversationsRequest, LookupConversationsResponse, Metadata, ReceiveMessageRequestMetadataEntry, PagedRequestOptions, PagedResponseMetadata, ReceiveMessageRequest, RemoveConversationFromConversationViewRequest, SearchConversationsRequest, SearchConversationsResponse, SendMessageRequest, SendMessageResponse, SetLastSeenRequest, SetLastSeenResponse, UpdateMessageStatusRequest, UpsertConfigurationRequest, UpsertConfigurationResponse, } from './api';
|
|
15
|
+
//# sourceMappingURL=data:application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XN0TWVzc2FnZXNGaWx0ZXJzLFxuICAgIExpc3RNZXNzYWdlc1JlcXVlc3QsXG4gICAgTGlzdE1lc3NhZ2VzUmVzcG9uc2UsXG4gICAgTG9va3VwQ29udmVyc2F0aW9uc1JlcXVlc3RMb29rdXBDb252ZXJzYXRpb25zRmlsdGVycyxcbiAgICBMb29rdXBDb252ZXJzYXRpb25zUmVxdWVzdCxcbiAgICBMb29rdXBDb252ZXJzYXRpb25zUmVzcG9uc2UsXG4gICAgTWV0YWRhdGEsXG4gICAgUmVjZWl2ZU1lc3NhZ2VSZXF1ZXN0TWV0YWRhdGFFbnRyeSxcbiAgICBQYWdlZFJlcXVlc3RPcHRpb25zLFxuICAgIFBhZ2VkUmVzcG9uc2VNZXRhZGF0YSxcbiAgICBSZWNlaXZlTWVzc2FnZVJlcXVlc3QsXG4gICAgUmVtb3ZlQ29udmVyc2F0aW9uRnJvbUNvbnZlcnNhdGlvblZpZXdSZXF1ZXN0LFxuICAgIFNlYXJjaENvbnZlcnNhdGlvbnNSZXF1ZXN0LFxuICAgIFNlYXJjaENvbnZlcnNhdGlvbnNSZXNwb25zZSxcbiAgICBTZW5kTWVzc2FnZVJlcXVlc3QsXG4gICAgU2VuZE1lc3NhZ2VSZXNwb25zZSxcbiAgICBTZXRMYXN0U2VlblJlcXVlc3QsXG4gICAgU2V0TGFzdFNlZW5SZXNwb25zZSxcbiAgICBVcGRhdGVNZXNzYWdlU3RhdHVzUmVxdWVzdCxcbiAgICBVcHNlcnRDb25maWd1cmF0aW9uUmVxdWVzdCxcbiAgICBVcHNlcnRDb25maWd1cmF0aW9uUmVzcG9uc2UsXG59IGZyb20gJy4vYXBpJztcblxuIl19
|
|
@@ -127,6 +127,11 @@ var SetLastSeenRequestStatus;
|
|
|
127
127
|
SetLastSeenRequestStatus[SetLastSeenRequestStatus["SET_LAST_SEEN_REQUEST_STATUS_UNREAD"] = 1] = "SET_LAST_SEEN_REQUEST_STATUS_UNREAD";
|
|
128
128
|
})(SetLastSeenRequestStatus || (SetLastSeenRequestStatus = {}));
|
|
129
129
|
|
|
130
|
+
// *********************************
|
|
131
|
+
// Code generated by sdkgen
|
|
132
|
+
// DO NOT EDIT!.
|
|
133
|
+
//
|
|
134
|
+
// Enums Index.
|
|
130
135
|
// *********************************
|
|
131
136
|
|
|
132
137
|
function enumStringToValue$7(enumRef, value) {
|
|
@@ -664,19 +669,13 @@ function enumStringToValue$1(enumRef, value) {
|
|
|
664
669
|
}
|
|
665
670
|
return enumRef[value];
|
|
666
671
|
}
|
|
667
|
-
class
|
|
672
|
+
class View {
|
|
668
673
|
static fromProto(proto) {
|
|
669
|
-
let m = new
|
|
674
|
+
let m = new View();
|
|
670
675
|
m = Object.assign(m, proto);
|
|
671
|
-
if (proto.viewType) {
|
|
672
|
-
m.viewType = enumStringToValue$1(ViewType, proto.viewType);
|
|
673
|
-
}
|
|
674
676
|
if (proto.created) {
|
|
675
677
|
m.created = new Date(proto.created);
|
|
676
678
|
}
|
|
677
|
-
if (proto.updated) {
|
|
678
|
-
m.updated = new Date(proto.updated);
|
|
679
|
-
}
|
|
680
679
|
return m;
|
|
681
680
|
}
|
|
682
681
|
constructor(kwargs) {
|
|
@@ -690,18 +689,9 @@ class ConversationView {
|
|
|
690
689
|
if (typeof this.viewId !== 'undefined') {
|
|
691
690
|
toReturn['viewId'] = this.viewId;
|
|
692
691
|
}
|
|
693
|
-
if (typeof this.participantId !== 'undefined') {
|
|
694
|
-
toReturn['participantId'] = this.participantId;
|
|
695
|
-
}
|
|
696
|
-
if (typeof this.viewType !== 'undefined') {
|
|
697
|
-
toReturn['viewType'] = this.viewType;
|
|
698
|
-
}
|
|
699
692
|
if (typeof this.created !== 'undefined' && this.created !== null) {
|
|
700
693
|
toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;
|
|
701
694
|
}
|
|
702
|
-
if (typeof this.updated !== 'undefined' && this.updated !== null) {
|
|
703
|
-
toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;
|
|
704
|
-
}
|
|
705
695
|
return toReturn;
|
|
706
696
|
}
|
|
707
697
|
}
|
|
@@ -732,6 +722,9 @@ class AddConversationToConversationViewRequest {
|
|
|
732
722
|
if (typeof this.conversationId !== 'undefined') {
|
|
733
723
|
toReturn['conversationId'] = this.conversationId;
|
|
734
724
|
}
|
|
725
|
+
if (typeof this.participantId !== 'undefined') {
|
|
726
|
+
toReturn['participantId'] = this.participantId;
|
|
727
|
+
}
|
|
735
728
|
return toReturn;
|
|
736
729
|
}
|
|
737
730
|
}
|
|
@@ -1201,6 +1194,49 @@ class GetConversationByKeyResponse {
|
|
|
1201
1194
|
return toReturn;
|
|
1202
1195
|
}
|
|
1203
1196
|
}
|
|
1197
|
+
class GetConversationViewsRequest {
|
|
1198
|
+
static fromProto(proto) {
|
|
1199
|
+
let m = new GetConversationViewsRequest();
|
|
1200
|
+
m = Object.assign(m, proto);
|
|
1201
|
+
return m;
|
|
1202
|
+
}
|
|
1203
|
+
constructor(kwargs) {
|
|
1204
|
+
if (!kwargs) {
|
|
1205
|
+
return;
|
|
1206
|
+
}
|
|
1207
|
+
Object.assign(this, kwargs);
|
|
1208
|
+
}
|
|
1209
|
+
toApiJson() {
|
|
1210
|
+
const toReturn = {};
|
|
1211
|
+
if (typeof this.participantId !== 'undefined') {
|
|
1212
|
+
toReturn['participantId'] = this.participantId;
|
|
1213
|
+
}
|
|
1214
|
+
return toReturn;
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
class GetConversationViewsResponse {
|
|
1218
|
+
static fromProto(proto) {
|
|
1219
|
+
let m = new GetConversationViewsResponse();
|
|
1220
|
+
m = Object.assign(m, proto);
|
|
1221
|
+
if (proto.views) {
|
|
1222
|
+
m.views = proto.views.map(View.fromProto);
|
|
1223
|
+
}
|
|
1224
|
+
return m;
|
|
1225
|
+
}
|
|
1226
|
+
constructor(kwargs) {
|
|
1227
|
+
if (!kwargs) {
|
|
1228
|
+
return;
|
|
1229
|
+
}
|
|
1230
|
+
Object.assign(this, kwargs);
|
|
1231
|
+
}
|
|
1232
|
+
toApiJson() {
|
|
1233
|
+
const toReturn = {};
|
|
1234
|
+
if (typeof this.views !== 'undefined' && this.views !== null) {
|
|
1235
|
+
toReturn['views'] = 'toApiJson' in this.views ? this.views.toApiJson() : this.views;
|
|
1236
|
+
}
|
|
1237
|
+
return toReturn;
|
|
1238
|
+
}
|
|
1239
|
+
}
|
|
1204
1240
|
class GetMessageRequest {
|
|
1205
1241
|
static fromProto(proto) {
|
|
1206
1242
|
let m = new GetMessageRequest();
|
|
@@ -1575,49 +1611,6 @@ class ListMessagesResponse {
|
|
|
1575
1611
|
return toReturn;
|
|
1576
1612
|
}
|
|
1577
1613
|
}
|
|
1578
|
-
class ListParticipantConversationViewsRequest {
|
|
1579
|
-
static fromProto(proto) {
|
|
1580
|
-
let m = new ListParticipantConversationViewsRequest();
|
|
1581
|
-
m = Object.assign(m, proto);
|
|
1582
|
-
return m;
|
|
1583
|
-
}
|
|
1584
|
-
constructor(kwargs) {
|
|
1585
|
-
if (!kwargs) {
|
|
1586
|
-
return;
|
|
1587
|
-
}
|
|
1588
|
-
Object.assign(this, kwargs);
|
|
1589
|
-
}
|
|
1590
|
-
toApiJson() {
|
|
1591
|
-
const toReturn = {};
|
|
1592
|
-
if (typeof this.participantId !== 'undefined') {
|
|
1593
|
-
toReturn['participantId'] = this.participantId;
|
|
1594
|
-
}
|
|
1595
|
-
return toReturn;
|
|
1596
|
-
}
|
|
1597
|
-
}
|
|
1598
|
-
class ListParticipantConversationViewsResponse {
|
|
1599
|
-
static fromProto(proto) {
|
|
1600
|
-
let m = new ListParticipantConversationViewsResponse();
|
|
1601
|
-
m = Object.assign(m, proto);
|
|
1602
|
-
if (proto.conversationViews) {
|
|
1603
|
-
m.conversationViews = proto.conversationViews.map(ConversationView.fromProto);
|
|
1604
|
-
}
|
|
1605
|
-
return m;
|
|
1606
|
-
}
|
|
1607
|
-
constructor(kwargs) {
|
|
1608
|
-
if (!kwargs) {
|
|
1609
|
-
return;
|
|
1610
|
-
}
|
|
1611
|
-
Object.assign(this, kwargs);
|
|
1612
|
-
}
|
|
1613
|
-
toApiJson() {
|
|
1614
|
-
const toReturn = {};
|
|
1615
|
-
if (typeof this.conversationViews !== 'undefined' && this.conversationViews !== null) {
|
|
1616
|
-
toReturn['conversationViews'] = 'toApiJson' in this.conversationViews ? this.conversationViews.toApiJson() : this.conversationViews;
|
|
1617
|
-
}
|
|
1618
|
-
return toReturn;
|
|
1619
|
-
}
|
|
1620
|
-
}
|
|
1621
1614
|
class LookupConversationsRequestLookupConversationsFilters {
|
|
1622
1615
|
static fromProto(proto) {
|
|
1623
1616
|
let m = new LookupConversationsRequestLookupConversationsFilters();
|
|
@@ -1892,6 +1885,32 @@ class ReceiveMessageRequest {
|
|
|
1892
1885
|
return toReturn;
|
|
1893
1886
|
}
|
|
1894
1887
|
}
|
|
1888
|
+
class RemoveConversationFromConversationViewRequest {
|
|
1889
|
+
static fromProto(proto) {
|
|
1890
|
+
let m = new RemoveConversationFromConversationViewRequest();
|
|
1891
|
+
m = Object.assign(m, proto);
|
|
1892
|
+
return m;
|
|
1893
|
+
}
|
|
1894
|
+
constructor(kwargs) {
|
|
1895
|
+
if (!kwargs) {
|
|
1896
|
+
return;
|
|
1897
|
+
}
|
|
1898
|
+
Object.assign(this, kwargs);
|
|
1899
|
+
}
|
|
1900
|
+
toApiJson() {
|
|
1901
|
+
const toReturn = {};
|
|
1902
|
+
if (typeof this.viewId !== 'undefined') {
|
|
1903
|
+
toReturn['viewId'] = this.viewId;
|
|
1904
|
+
}
|
|
1905
|
+
if (typeof this.conversationId !== 'undefined') {
|
|
1906
|
+
toReturn['conversationId'] = this.conversationId;
|
|
1907
|
+
}
|
|
1908
|
+
if (typeof this.participantId !== 'undefined') {
|
|
1909
|
+
toReturn['participantId'] = this.participantId;
|
|
1910
|
+
}
|
|
1911
|
+
return toReturn;
|
|
1912
|
+
}
|
|
1913
|
+
}
|
|
1895
1914
|
class SearchConversationsRequest {
|
|
1896
1915
|
static fromProto(proto) {
|
|
1897
1916
|
let m = new SearchConversationsRequest();
|
|
@@ -2163,6 +2182,11 @@ class UpsertConfigurationResponse {
|
|
|
2163
2182
|
}
|
|
2164
2183
|
}
|
|
2165
2184
|
|
|
2185
|
+
// *********************************
|
|
2186
|
+
// Code generated by sdkgen
|
|
2187
|
+
// DO NOT EDIT!.
|
|
2188
|
+
//
|
|
2189
|
+
// Objects Index.
|
|
2166
2190
|
// *********************************
|
|
2167
2191
|
|
|
2168
2192
|
var _a;
|
|
@@ -2182,13 +2206,18 @@ class HostService {
|
|
|
2182
2206
|
return 'https://' + this.host;
|
|
2183
2207
|
}
|
|
2184
2208
|
}
|
|
2185
|
-
HostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
2186
|
-
HostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
2187
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
2209
|
+
HostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HostService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2210
|
+
HostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HostService, providedIn: 'root' });
|
|
2211
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HostService, decorators: [{
|
|
2188
2212
|
type: Injectable,
|
|
2189
2213
|
args: [{ providedIn: 'root' }]
|
|
2190
2214
|
}] });
|
|
2191
2215
|
|
|
2216
|
+
// *********************************
|
|
2217
|
+
// Code generated by sdkgen
|
|
2218
|
+
// DO NOT EDIT!.
|
|
2219
|
+
//
|
|
2220
|
+
// API Service.
|
|
2192
2221
|
// *********************************
|
|
2193
2222
|
class ConversationApiService {
|
|
2194
2223
|
constructor(http, hostService) {
|
|
@@ -2294,23 +2323,32 @@ class ConversationApiService {
|
|
|
2294
2323
|
return this.http.post(this._host + "/conversation.v1.ConversationService/GetParticipantsByKey", request.toApiJson(), this.apiOptions())
|
|
2295
2324
|
.pipe(map(resp => GetParticipantsByKeyResponse.fromProto(resp)));
|
|
2296
2325
|
}
|
|
2297
|
-
|
|
2298
|
-
const request = (r.toApiJson) ? r : new
|
|
2299
|
-
return this.http.post(this._host + "/conversation.v1.ConversationService/
|
|
2300
|
-
.pipe(map(resp =>
|
|
2326
|
+
getConversationViews(r) {
|
|
2327
|
+
const request = (r.toApiJson) ? r : new GetConversationViewsRequest(r);
|
|
2328
|
+
return this.http.post(this._host + "/conversation.v1.ConversationService/GetConversationViews", request.toApiJson(), this.apiOptions())
|
|
2329
|
+
.pipe(map(resp => GetConversationViewsResponse.fromProto(resp)));
|
|
2301
2330
|
}
|
|
2302
2331
|
addConversationToConversationView(r) {
|
|
2303
2332
|
const request = (r.toApiJson) ? r : new AddConversationToConversationViewRequest(r);
|
|
2304
2333
|
return this.http.post(this._host + "/conversation.v1.ConversationService/AddConversationToConversationView", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
2305
2334
|
}
|
|
2335
|
+
removeConversationFromConversationView(r) {
|
|
2336
|
+
const request = (r.toApiJson) ? r : new RemoveConversationFromConversationViewRequest(r);
|
|
2337
|
+
return this.http.post(this._host + "/conversation.v1.ConversationService/RemoveConversationFromConversationView", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
2338
|
+
}
|
|
2306
2339
|
}
|
|
2307
|
-
ConversationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
2308
|
-
ConversationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
2309
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
2340
|
+
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 });
|
|
2341
|
+
ConversationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConversationApiService, providedIn: 'root' });
|
|
2342
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConversationApiService, decorators: [{
|
|
2310
2343
|
type: Injectable,
|
|
2311
2344
|
args: [{ providedIn: 'root' }]
|
|
2312
2345
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
2313
2346
|
|
|
2347
|
+
// *********************************
|
|
2348
|
+
// Code generated by sdkgen
|
|
2349
|
+
// DO NOT EDIT!.
|
|
2350
|
+
//
|
|
2351
|
+
// API Service.
|
|
2314
2352
|
// *********************************
|
|
2315
2353
|
class InboxApiService {
|
|
2316
2354
|
constructor(http, hostService) {
|
|
@@ -2342,18 +2380,23 @@ class InboxApiService {
|
|
|
2342
2380
|
.pipe(map(resp => UpsertConfigurationResponse.fromProto(resp)));
|
|
2343
2381
|
}
|
|
2344
2382
|
}
|
|
2345
|
-
InboxApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
2346
|
-
InboxApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
2347
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
2383
|
+
InboxApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InboxApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2384
|
+
InboxApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InboxApiService, providedIn: 'root' });
|
|
2385
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InboxApiService, decorators: [{
|
|
2348
2386
|
type: Injectable,
|
|
2349
2387
|
args: [{ providedIn: 'root' }]
|
|
2350
2388
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
2351
2389
|
|
|
2352
2390
|
// *********************************
|
|
2391
|
+
// Code generated by sdkgen
|
|
2392
|
+
// DO NOT EDIT!.
|
|
2393
|
+
//
|
|
2394
|
+
// Index.
|
|
2395
|
+
// *********************************
|
|
2353
2396
|
|
|
2354
2397
|
/**
|
|
2355
2398
|
* Generated bundle index. Do not edit.
|
|
2356
2399
|
*/
|
|
2357
2400
|
|
|
2358
|
-
export { Access, AddConversationToConversationViewRequest, AddMultiParticipantsRequest, AddMultiParticipantsResponse, Address, Configuration, Conversation, ConversationApiService, ConversationChannel, ConversationKey, ConversationMessageCount,
|
|
2401
|
+
export { Access, AddConversationToConversationViewRequest, AddMultiParticipantsRequest, AddMultiParticipantsResponse, Address, Configuration, Conversation, ConversationApiService, ConversationChannel, ConversationKey, ConversationMessageCount, CreateConversationRequest, CreateConversationResponse, CreateMultiMessagesRequest, DeleteConversationRequest, DeleteMessageRequest, GetConfigurationRequest, GetConfigurationResponse, GetConversationByKeyRequest, GetConversationByKeyResponse, GetConversationViewsRequest, GetConversationViewsResponse, 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, RemoveConversationFromConversationViewRequest, SearchConversationsRequest, SearchConversationsResponse, SearchConversationsResponseDetailedConversation, SendMessageRequest, SendMessageResponse, SetLastSeenRequest, SetLastSeenRequestStatus, SetLastSeenResponse, SortDirection, SubjectParticipant, UpdateMessageStatusRequest, UpsertConfigurationRequest, UpsertConfigurationResponse, View, ViewType };
|
|
2359
2402
|
//# sourceMappingURL=vendasta-conversation.mjs.map
|