@vendasta/conversation 0.20.0 → 0.22.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/enums/api.enum.mjs +6 -1
- package/esm2020/lib/_internal/enums/index.mjs +2 -2
- package/esm2020/lib/_internal/interfaces/annotations.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/conversation.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/objects/annotations.mjs +30 -0
- package/esm2020/lib/_internal/objects/api.mjs +17 -5
- package/esm2020/lib/_internal/objects/conversation.mjs +33 -1
- package/esm2020/lib/_internal/objects/index.mjs +3 -2
- package/fesm2015/vendasta-conversation.mjs +97 -18
- package/fesm2015/vendasta-conversation.mjs.map +1 -1
- package/fesm2020/vendasta-conversation.mjs +97 -18
- package/fesm2020/vendasta-conversation.mjs.map +1 -1
- package/lib/_internal/enums/api.enum.d.ts +4 -0
- package/lib/_internal/enums/index.d.ts +1 -1
- package/lib/_internal/interfaces/annotations.interface.d.ts +4 -0
- package/lib/_internal/interfaces/api.interface.d.ts +3 -1
- package/lib/_internal/interfaces/conversation.interface.d.ts +5 -0
- package/lib/_internal/interfaces/index.d.ts +2 -1
- package/lib/_internal/objects/annotations.d.ts +9 -0
- package/lib/_internal/objects/api.d.ts +3 -1
- package/lib/_internal/objects/conversation.d.ts +8 -0
- package/lib/_internal/objects/index.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { MessageStatus, MessageType, } from './message.enum';
|
|
2
2
|
export { ConversationChannel, PlatformLocation, } from './conversation.enum';
|
|
3
3
|
export { GlobalParticipantType, ParticipantType, } from './participant.enum';
|
|
4
|
-
export { MetadataIdentifier, } from './api.enum';
|
|
4
|
+
export { MetadataIdentifier, SetLastSeenRequestStatus, } from './api.enum';
|
|
@@ -176,6 +176,7 @@ export interface SendMessageRequestInterface {
|
|
|
176
176
|
type?: e.MessageType;
|
|
177
177
|
body?: string;
|
|
178
178
|
metadata?: MetadataInterface[];
|
|
179
|
+
originLocation?: e.PlatformLocation;
|
|
179
180
|
}
|
|
180
181
|
export interface SendMessageResponseInterface {
|
|
181
182
|
workflowId?: string;
|
|
@@ -183,9 +184,10 @@ export interface SendMessageResponseInterface {
|
|
|
183
184
|
export interface SetLastSeenRequestInterface {
|
|
184
185
|
conversationId?: string;
|
|
185
186
|
participant?: ParticipantInterface;
|
|
187
|
+
status?: e.SetLastSeenRequestStatus;
|
|
186
188
|
}
|
|
187
189
|
export interface SetLastSeenResponseInterface {
|
|
188
|
-
|
|
190
|
+
participant?: ParticipantInterface;
|
|
189
191
|
}
|
|
190
192
|
export interface UpdateMessageStatusRequestInterface {
|
|
191
193
|
messageId?: string;
|
|
@@ -10,4 +10,9 @@ export interface ConversationInterface {
|
|
|
10
10
|
latestMsgSentTime?: Date;
|
|
11
11
|
originLocation?: e.PlatformLocation;
|
|
12
12
|
originLocationExternalId?: string;
|
|
13
|
+
lastSeenByParticipant?: LastSeenByParticipantInterface[];
|
|
14
|
+
}
|
|
15
|
+
export interface LastSeenByParticipantInterface {
|
|
16
|
+
participantId?: string;
|
|
17
|
+
lastSeenTime?: Date;
|
|
13
18
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { MessageInterface, ParticipantMessageStatusInterface, } from './message.interface';
|
|
2
|
-
export { ConversationInterface, } from './conversation.interface';
|
|
2
|
+
export { ConversationInterface, LastSeenByParticipantInterface, } from './conversation.interface';
|
|
3
3
|
export { AddressInterface, ParticipantInterface, ParticipantKeyInterface, } from './participant.interface';
|
|
4
|
+
export { AccessInterface, } from './annotations.interface';
|
|
4
5
|
export { AddMultiParticipantsRequestInterface, AddMultiParticipantsResponseInterface, ConversationMessageCountInterface, LookupConversationsResponseConversationsInterface, GetMultiConversationMessageCountResponseCountsEntryInterface, CreateConversationRequestInterface, CreateConversationResponseInterface, CreateMultiMessagesRequestInterface, MetadataDataEntryInterface, DeleteConversationRequestInterface, DeleteMessageRequestInterface, SearchConversationsResponseDetailedConversationInterface, GetMultiConversationDetailsResponseDetailedConversationInterface, GetMessageRequestInterface, GetMultiConversationDetailsRequestInterface, GetMultiConversationDetailsResponseInterface, GetMultiConversationMessageCountRequestInterface, GetMultiConversationMessageCountResponseInterface, GetMultiMessagesRequestInterface, GetMultiMessagesResponseInterface, GetMultiParticipantsRequestInterface, GetMultiParticipantsResponseInterface, GetParticipantsByKeyRequestInterface, GetParticipantsByKeyResponseInterface, ListMessagesRequestListMessagesFiltersInterface, ListMessagesRequestInterface, ListMessagesResponseInterface, LookupConversationsRequestLookupConversationsFiltersInterface, LookupConversationsRequestInterface, LookupConversationsResponseInterface, MetadataInterface, ReceiveMessageRequestMetadataEntryInterface, PagedRequestOptionsInterface, PagedResponseMetadataInterface, ReceiveMessageRequestInterface, SearchConversationsRequestInterface, SearchConversationsResponseInterface, SendMessageRequestInterface, SendMessageResponseInterface, SetLastSeenRequestInterface, SetLastSeenResponseInterface, UpdateMessageStatusRequestInterface, } from './api.interface';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i from '../interfaces';
|
|
2
|
+
export declare function enumStringToValue<E>(enumRef: any, value: string): E;
|
|
3
|
+
export declare class Access implements i.AccessInterface {
|
|
4
|
+
scope: string[];
|
|
5
|
+
public: boolean;
|
|
6
|
+
static fromProto(proto: any): Access;
|
|
7
|
+
constructor(kwargs?: i.AccessInterface);
|
|
8
|
+
toApiJson(): object;
|
|
9
|
+
}
|
|
@@ -289,6 +289,7 @@ export declare class SendMessageRequest implements i.SendMessageRequestInterface
|
|
|
289
289
|
type: e.MessageType;
|
|
290
290
|
body: string;
|
|
291
291
|
metadata: Metadata[];
|
|
292
|
+
originLocation: e.PlatformLocation;
|
|
292
293
|
static fromProto(proto: any): SendMessageRequest;
|
|
293
294
|
constructor(kwargs?: i.SendMessageRequestInterface);
|
|
294
295
|
toApiJson(): object;
|
|
@@ -302,12 +303,13 @@ export declare class SendMessageResponse implements i.SendMessageResponseInterfa
|
|
|
302
303
|
export declare class SetLastSeenRequest implements i.SetLastSeenRequestInterface {
|
|
303
304
|
conversationId: string;
|
|
304
305
|
participant: Participant;
|
|
306
|
+
status: e.SetLastSeenRequestStatus;
|
|
305
307
|
static fromProto(proto: any): SetLastSeenRequest;
|
|
306
308
|
constructor(kwargs?: i.SetLastSeenRequestInterface);
|
|
307
309
|
toApiJson(): object;
|
|
308
310
|
}
|
|
309
311
|
export declare class SetLastSeenResponse implements i.SetLastSeenResponseInterface {
|
|
310
|
-
|
|
312
|
+
participant: Participant;
|
|
311
313
|
static fromProto(proto: any): SetLastSeenResponse;
|
|
312
314
|
constructor(kwargs?: i.SetLastSeenResponseInterface);
|
|
313
315
|
toApiJson(): object;
|
|
@@ -12,7 +12,15 @@ export declare class Conversation implements i.ConversationInterface {
|
|
|
12
12
|
latestMsgSentTime: Date;
|
|
13
13
|
originLocation: e.PlatformLocation;
|
|
14
14
|
originLocationExternalId: string;
|
|
15
|
+
lastSeenByParticipant: LastSeenByParticipant[];
|
|
15
16
|
static fromProto(proto: any): Conversation;
|
|
16
17
|
constructor(kwargs?: i.ConversationInterface);
|
|
17
18
|
toApiJson(): object;
|
|
18
19
|
}
|
|
20
|
+
export declare class LastSeenByParticipant implements i.LastSeenByParticipantInterface {
|
|
21
|
+
participantId: string;
|
|
22
|
+
lastSeenTime: Date;
|
|
23
|
+
static fromProto(proto: any): LastSeenByParticipant;
|
|
24
|
+
constructor(kwargs?: i.LastSeenByParticipantInterface);
|
|
25
|
+
toApiJson(): object;
|
|
26
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { Message, ParticipantMessageStatus, } from './message';
|
|
2
|
-
export { Conversation, } from './conversation';
|
|
2
|
+
export { Conversation, LastSeenByParticipant, } from './conversation';
|
|
3
3
|
export { Address, Participant, ParticipantKey, } from './participant';
|
|
4
|
+
export { Access, } from './annotations';
|
|
4
5
|
export { AddMultiParticipantsRequest, AddMultiParticipantsResponse, ConversationMessageCount, LookupConversationsResponseConversations, GetMultiConversationMessageCountResponseCountsEntry, CreateConversationRequest, CreateConversationResponse, CreateMultiMessagesRequest, MetadataDataEntry, DeleteConversationRequest, DeleteMessageRequest, SearchConversationsResponseDetailedConversation, GetMultiConversationDetailsResponseDetailedConversation, GetMessageRequest, GetMultiConversationDetailsRequest, GetMultiConversationDetailsResponse, GetMultiConversationMessageCountRequest, GetMultiConversationMessageCountResponse, GetMultiMessagesRequest, GetMultiMessagesResponse, GetMultiParticipantsRequest, GetMultiParticipantsResponse, GetParticipantsByKeyRequest, GetParticipantsByKeyResponse, ListMessagesRequestListMessagesFilters, ListMessagesRequest, ListMessagesResponse, LookupConversationsRequestLookupConversationsFilters, LookupConversationsRequest, LookupConversationsResponse, Metadata, ReceiveMessageRequestMetadataEntry, PagedRequestOptions, PagedResponseMetadata, ReceiveMessageRequest, SearchConversationsRequest, SearchConversationsResponse, SendMessageRequest, SendMessageResponse, SetLastSeenRequest, SetLastSeenResponse, UpdateMessageStatusRequest, } from './api';
|