@vendasta/conversation 0.7.0 → 0.11.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/bundles/vendasta-conversation.umd.js +229 -0
- package/bundles/vendasta-conversation.umd.js.map +1 -1
- package/bundles/vendasta-conversation.umd.min.js +1 -1
- package/bundles/vendasta-conversation.umd.min.js.map +1 -1
- package/esm2015/lib/_internal/conversation.api.service.js +12 -2
- package/esm2015/lib/_internal/enums/participant.enum.js +3 -1
- package/esm2015/lib/_internal/interfaces/api.interface.js +1 -1
- package/esm2015/lib/_internal/interfaces/index.js +1 -1
- package/esm2015/lib/_internal/objects/api.js +204 -1
- package/esm2015/lib/_internal/objects/index.js +2 -2
- package/fesm2015/vendasta-conversation.js +216 -1
- package/fesm2015/vendasta-conversation.js.map +1 -1
- package/lib/_internal/conversation.api.service.d.ts +4 -2
- package/lib/_internal/enums/participant.enum.d.ts +3 -1
- package/lib/_internal/interfaces/api.interface.d.ts +33 -0
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/objects/api.d.ts +54 -0
- package/lib/_internal/objects/index.d.ts +1 -1
- package/package.json +1 -1
- package/vendasta-conversation.metadata.json +1 -1
|
@@ -2,10 +2,18 @@ import { ConversationInterface } from './conversation.interface';
|
|
|
2
2
|
import { MessageInterface } from './message.interface';
|
|
3
3
|
import { ParticipantInterface } from './participant.interface';
|
|
4
4
|
import * as e from '../enums';
|
|
5
|
+
export interface ConversationMessageCountInterface {
|
|
6
|
+
conversationId?: string;
|
|
7
|
+
count?: number;
|
|
8
|
+
}
|
|
5
9
|
export interface LookupConversationsResponseConversationsInterface {
|
|
6
10
|
conversation?: ConversationInterface;
|
|
7
11
|
participants?: ParticipantInterface[];
|
|
8
12
|
}
|
|
13
|
+
export interface GetMultiConversationMessageCountResponseCountsEntryInterface {
|
|
14
|
+
key?: string;
|
|
15
|
+
value?: number;
|
|
16
|
+
}
|
|
9
17
|
export interface CreateConversationRequestInterface {
|
|
10
18
|
participants?: ParticipantInterface[];
|
|
11
19
|
channel?: e.ConversationChannel;
|
|
@@ -38,6 +46,11 @@ export interface GetMultiConversationDetailsResponseDetailedConversationInterfac
|
|
|
38
46
|
latestMessage?: MessageInterface;
|
|
39
47
|
participants?: ParticipantInterface[];
|
|
40
48
|
}
|
|
49
|
+
export interface SearchConversationsResponseDetailedConversationInterface {
|
|
50
|
+
conversation?: ConversationInterface;
|
|
51
|
+
latestMessage?: MessageInterface;
|
|
52
|
+
participants?: ParticipantInterface[];
|
|
53
|
+
}
|
|
41
54
|
export interface GetMessageRequestInterface {
|
|
42
55
|
messageId?: string;
|
|
43
56
|
}
|
|
@@ -47,6 +60,15 @@ export interface GetMultiConversationDetailsRequestInterface {
|
|
|
47
60
|
export interface GetMultiConversationDetailsResponseInterface {
|
|
48
61
|
conversations?: GetMultiConversationDetailsResponseDetailedConversationInterface[];
|
|
49
62
|
}
|
|
63
|
+
export interface GetMultiConversationMessageCountRequestInterface {
|
|
64
|
+
conversationIds?: string[];
|
|
65
|
+
}
|
|
66
|
+
export interface GetMultiConversationMessageCountResponseInterface {
|
|
67
|
+
messageCounts?: ConversationMessageCountInterface[];
|
|
68
|
+
counts?: {
|
|
69
|
+
[key: string]: number;
|
|
70
|
+
};
|
|
71
|
+
}
|
|
50
72
|
export interface GetMultiMessagesRequestInterface {
|
|
51
73
|
messageIds?: string[];
|
|
52
74
|
}
|
|
@@ -121,6 +143,17 @@ export interface ReceiveMessageRequestInterface {
|
|
|
121
143
|
};
|
|
122
144
|
media?: string[];
|
|
123
145
|
}
|
|
146
|
+
export interface SearchConversationsRequestInterface {
|
|
147
|
+
partnerId?: string;
|
|
148
|
+
accountGroupId?: string;
|
|
149
|
+
location?: e.PlatformLocation;
|
|
150
|
+
searchTerm?: string;
|
|
151
|
+
pagingOptions?: PagedRequestOptionsInterface;
|
|
152
|
+
}
|
|
153
|
+
export interface SearchConversationsResponseInterface {
|
|
154
|
+
conversations?: SearchConversationsResponseDetailedConversationInterface[];
|
|
155
|
+
pagingMetadata?: PagedResponseMetadataInterface;
|
|
156
|
+
}
|
|
124
157
|
export interface SendMessageRequestInterface {
|
|
125
158
|
sender?: ParticipantInterface;
|
|
126
159
|
recipient?: ParticipantInterface;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { MessageInterface, ParticipantMessageStatusInterface, } from './message.interface';
|
|
2
2
|
export { ConversationInterface, } from './conversation.interface';
|
|
3
3
|
export { ParticipantInterface, } from './participant.interface';
|
|
4
|
-
export { LookupConversationsResponseConversationsInterface, CreateConversationRequestInterface, CreateConversationResponseInterface, CreateMultiMessagesRequestInterface, MetadataDataEntryInterface, DeleteConversationRequestInterface, DeleteMessageRequestInterface, GetMultiConversationDetailsResponseDetailedConversationInterface, GetMessageRequestInterface, GetMultiConversationDetailsRequestInterface, GetMultiConversationDetailsResponseInterface, GetMultiMessagesRequestInterface, GetMultiMessagesResponseInterface, GetMultiParticipantsRequestInterface, GetMultiParticipantsResponseInterface, ListMessagesRequestListMessagesFiltersInterface, ListMessagesRequestInterface, ListMessagesResponseInterface, LookupConversationsRequestLookupConversationsFiltersInterface, LookupConversationsRequestInterface, LookupConversationsResponseInterface, MetadataInterface, ReceiveMessageRequestMetadataEntryInterface, PagedRequestOptionsInterface, PagedResponseMetadataInterface, ReceiveMessageRequestInterface, SendMessageRequestInterface, SendMessageResponseInterface, UpdateMessageStatusRequestInterface, } from './api.interface';
|
|
4
|
+
export { ConversationMessageCountInterface, LookupConversationsResponseConversationsInterface, GetMultiConversationMessageCountResponseCountsEntryInterface, CreateConversationRequestInterface, CreateConversationResponseInterface, CreateMultiMessagesRequestInterface, MetadataDataEntryInterface, DeleteConversationRequestInterface, DeleteMessageRequestInterface, SearchConversationsResponseDetailedConversationInterface, GetMultiConversationDetailsResponseDetailedConversationInterface, GetMessageRequestInterface, GetMultiConversationDetailsRequestInterface, GetMultiConversationDetailsResponseInterface, GetMultiConversationMessageCountRequestInterface, GetMultiConversationMessageCountResponseInterface, GetMultiMessagesRequestInterface, GetMultiMessagesResponseInterface, GetMultiParticipantsRequestInterface, GetMultiParticipantsResponseInterface, ListMessagesRequestListMessagesFiltersInterface, ListMessagesRequestInterface, ListMessagesResponseInterface, LookupConversationsRequestLookupConversationsFiltersInterface, LookupConversationsRequestInterface, LookupConversationsResponseInterface, MetadataInterface, ReceiveMessageRequestMetadataEntryInterface, PagedRequestOptionsInterface, PagedResponseMetadataInterface, ReceiveMessageRequestInterface, SearchConversationsRequestInterface, SearchConversationsResponseInterface, SendMessageRequestInterface, SendMessageResponseInterface, UpdateMessageStatusRequestInterface, } from './api.interface';
|
|
@@ -4,6 +4,13 @@ import { Message } from './message';
|
|
|
4
4
|
import { Participant } from './participant';
|
|
5
5
|
import * as e from '../enums';
|
|
6
6
|
export declare function enumStringToValue<E>(enumRef: any, value: string): E;
|
|
7
|
+
export declare class ConversationMessageCount implements i.ConversationMessageCountInterface {
|
|
8
|
+
conversationId: string;
|
|
9
|
+
count: number;
|
|
10
|
+
static fromProto(proto: any): ConversationMessageCount;
|
|
11
|
+
constructor(kwargs?: i.ConversationMessageCountInterface);
|
|
12
|
+
toApiJson(): object;
|
|
13
|
+
}
|
|
7
14
|
export declare class LookupConversationsResponseConversations implements i.LookupConversationsResponseConversationsInterface {
|
|
8
15
|
conversation: Conversation;
|
|
9
16
|
participants: Participant[];
|
|
@@ -11,6 +18,13 @@ export declare class LookupConversationsResponseConversations implements i.Looku
|
|
|
11
18
|
constructor(kwargs?: i.LookupConversationsResponseConversationsInterface);
|
|
12
19
|
toApiJson(): object;
|
|
13
20
|
}
|
|
21
|
+
export declare class GetMultiConversationMessageCountResponseCountsEntry implements i.GetMultiConversationMessageCountResponseCountsEntryInterface {
|
|
22
|
+
key: string;
|
|
23
|
+
value: number;
|
|
24
|
+
static fromProto(proto: any): GetMultiConversationMessageCountResponseCountsEntry;
|
|
25
|
+
constructor(kwargs?: i.GetMultiConversationMessageCountResponseCountsEntryInterface);
|
|
26
|
+
toApiJson(): object;
|
|
27
|
+
}
|
|
14
28
|
export declare class CreateConversationRequest implements i.CreateConversationRequestInterface {
|
|
15
29
|
participants: Participant[];
|
|
16
30
|
channel: e.ConversationChannel;
|
|
@@ -56,6 +70,14 @@ export declare class DeleteMessageRequest implements i.DeleteMessageRequestInter
|
|
|
56
70
|
constructor(kwargs?: i.DeleteMessageRequestInterface);
|
|
57
71
|
toApiJson(): object;
|
|
58
72
|
}
|
|
73
|
+
export declare class SearchConversationsResponseDetailedConversation implements i.SearchConversationsResponseDetailedConversationInterface {
|
|
74
|
+
conversation: Conversation;
|
|
75
|
+
latestMessage: Message;
|
|
76
|
+
participants: Participant[];
|
|
77
|
+
static fromProto(proto: any): SearchConversationsResponseDetailedConversation;
|
|
78
|
+
constructor(kwargs?: i.SearchConversationsResponseDetailedConversationInterface);
|
|
79
|
+
toApiJson(): object;
|
|
80
|
+
}
|
|
59
81
|
export declare class GetMultiConversationDetailsResponseDetailedConversation implements i.GetMultiConversationDetailsResponseDetailedConversationInterface {
|
|
60
82
|
conversation: Conversation;
|
|
61
83
|
latestMessage: Message;
|
|
@@ -82,6 +104,21 @@ export declare class GetMultiConversationDetailsResponse implements i.GetMultiCo
|
|
|
82
104
|
constructor(kwargs?: i.GetMultiConversationDetailsResponseInterface);
|
|
83
105
|
toApiJson(): object;
|
|
84
106
|
}
|
|
107
|
+
export declare class GetMultiConversationMessageCountRequest implements i.GetMultiConversationMessageCountRequestInterface {
|
|
108
|
+
conversationIds: string[];
|
|
109
|
+
static fromProto(proto: any): GetMultiConversationMessageCountRequest;
|
|
110
|
+
constructor(kwargs?: i.GetMultiConversationMessageCountRequestInterface);
|
|
111
|
+
toApiJson(): object;
|
|
112
|
+
}
|
|
113
|
+
export declare class GetMultiConversationMessageCountResponse implements i.GetMultiConversationMessageCountResponseInterface {
|
|
114
|
+
messageCounts: ConversationMessageCount[];
|
|
115
|
+
counts: {
|
|
116
|
+
[key: string]: number;
|
|
117
|
+
};
|
|
118
|
+
static fromProto(proto: any): GetMultiConversationMessageCountResponse;
|
|
119
|
+
constructor(kwargs?: i.GetMultiConversationMessageCountResponseInterface);
|
|
120
|
+
toApiJson(): object;
|
|
121
|
+
}
|
|
85
122
|
export declare class GetMultiMessagesRequest implements i.GetMultiMessagesRequestInterface {
|
|
86
123
|
messageIds: string[];
|
|
87
124
|
static fromProto(proto: any): GetMultiMessagesRequest;
|
|
@@ -201,6 +238,23 @@ export declare class ReceiveMessageRequest implements i.ReceiveMessageRequestInt
|
|
|
201
238
|
constructor(kwargs?: i.ReceiveMessageRequestInterface);
|
|
202
239
|
toApiJson(): object;
|
|
203
240
|
}
|
|
241
|
+
export declare class SearchConversationsRequest implements i.SearchConversationsRequestInterface {
|
|
242
|
+
partnerId: string;
|
|
243
|
+
accountGroupId: string;
|
|
244
|
+
location: e.PlatformLocation;
|
|
245
|
+
searchTerm: string;
|
|
246
|
+
pagingOptions: PagedRequestOptions;
|
|
247
|
+
static fromProto(proto: any): SearchConversationsRequest;
|
|
248
|
+
constructor(kwargs?: i.SearchConversationsRequestInterface);
|
|
249
|
+
toApiJson(): object;
|
|
250
|
+
}
|
|
251
|
+
export declare class SearchConversationsResponse implements i.SearchConversationsResponseInterface {
|
|
252
|
+
conversations: SearchConversationsResponseDetailedConversation[];
|
|
253
|
+
pagingMetadata: PagedResponseMetadata;
|
|
254
|
+
static fromProto(proto: any): SearchConversationsResponse;
|
|
255
|
+
constructor(kwargs?: i.SearchConversationsResponseInterface);
|
|
256
|
+
toApiJson(): object;
|
|
257
|
+
}
|
|
204
258
|
export declare class SendMessageRequest implements i.SendMessageRequestInterface {
|
|
205
259
|
sender: Participant;
|
|
206
260
|
recipient: Participant;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Message, ParticipantMessageStatus, } from './message';
|
|
2
2
|
export { Conversation, } from './conversation';
|
|
3
3
|
export { Participant, } from './participant';
|
|
4
|
-
export { LookupConversationsResponseConversations, CreateConversationRequest, CreateConversationResponse, CreateMultiMessagesRequest, MetadataDataEntry, DeleteConversationRequest, DeleteMessageRequest, GetMultiConversationDetailsResponseDetailedConversation, GetMessageRequest, GetMultiConversationDetailsRequest, GetMultiConversationDetailsResponse, GetMultiMessagesRequest, GetMultiMessagesResponse, GetMultiParticipantsRequest, GetMultiParticipantsResponse, ListMessagesRequestListMessagesFilters, ListMessagesRequest, ListMessagesResponse, LookupConversationsRequestLookupConversationsFilters, LookupConversationsRequest, LookupConversationsResponse, Metadata, ReceiveMessageRequestMetadataEntry, PagedRequestOptions, PagedResponseMetadata, ReceiveMessageRequest, SendMessageRequest, SendMessageResponse, UpdateMessageStatusRequest, } from './api';
|
|
4
|
+
export { ConversationMessageCount, LookupConversationsResponseConversations, GetMultiConversationMessageCountResponseCountsEntry, CreateConversationRequest, CreateConversationResponse, CreateMultiMessagesRequest, MetadataDataEntry, DeleteConversationRequest, DeleteMessageRequest, GetMultiConversationDetailsResponseDetailedConversation, SearchConversationsResponseDetailedConversation, GetMessageRequest, GetMultiConversationDetailsRequest, GetMultiConversationDetailsResponse, GetMultiConversationMessageCountRequest, GetMultiConversationMessageCountResponse, GetMultiMessagesRequest, GetMultiMessagesResponse, GetMultiParticipantsRequest, GetMultiParticipantsResponse, ListMessagesRequestListMessagesFilters, ListMessagesRequest, ListMessagesResponse, LookupConversationsRequestLookupConversationsFilters, LookupConversationsRequest, LookupConversationsResponse, Metadata, ReceiveMessageRequestMetadataEntry, PagedRequestOptions, PagedResponseMetadata, ReceiveMessageRequest, SearchConversationsRequest, SearchConversationsResponse, SendMessageRequest, SendMessageResponse, UpdateMessageStatusRequest, } from './api';
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"__symbolic":"module","version":4,"exports":[{"from":"./lib/enums"},{"from":"./lib/objects"},{"from":"./lib/interfaces"}],"metadata":{"ConversationApiService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":
|
|
1
|
+
{"__symbolic":"module","version":4,"exports":[{"from":"./lib/enums"},{"from":"./lib/objects"},{"from":"./lib/interfaces"}],"metadata":{"ConversationApiService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":66,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":69,"character":30},{"__symbolic":"reference","name":"ɵa"}]}],"apiOptions":[{"__symbolic":"method"}],"sendMessage":[{"__symbolic":"method"}],"getMessage":[{"__symbolic":"method"}],"listMessages":[{"__symbolic":"method"}],"deleteMessage":[{"__symbolic":"method"}],"updateMessageStatus":[{"__symbolic":"method"}],"lookupConversations":[{"__symbolic":"method"}],"createConversation":[{"__symbolic":"method"}],"deleteConversation":[{"__symbolic":"method"}],"receiveMessage":[{"__symbolic":"method"}],"getMultiMessages":[{"__symbolic":"method"}],"createMultiMessages":[{"__symbolic":"method"}],"getMultiConversationDetails":[{"__symbolic":"method"}],"getMultiParticipants":[{"__symbolic":"method"}],"searchConversations":[{"__symbolic":"method"}],"getMultiConversationMessageCount":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":3,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@vendasta/core","name":"EnvironmentService","line":8,"character":44}]}],"host":[{"__symbolic":"method"}],"httpsHost":[{"__symbolic":"method"}],"hostWithScheme":[{"__symbolic":"method"}],"httpsHostWithScheme":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}}},"origins":{"ConversationApiService":"./lib/_internal/conversation.api.service","ɵa":"./lib/_generated/host.service"},"importAs":"@vendasta/conversation"}
|