@vendasta/conversation 0.20.0 → 0.21.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 +11 -5
- package/esm2020/lib/_internal/objects/conversation.mjs +33 -1
- package/esm2020/lib/_internal/objects/index.mjs +3 -2
- package/fesm2015/vendasta-conversation.mjs +91 -18
- package/fesm2015/vendasta-conversation.mjs.map +1 -1
- package/fesm2020/vendasta-conversation.mjs +91 -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 +2 -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 +2 -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';
|
|
@@ -183,9 +183,10 @@ export interface SendMessageResponseInterface {
|
|
|
183
183
|
export interface SetLastSeenRequestInterface {
|
|
184
184
|
conversationId?: string;
|
|
185
185
|
participant?: ParticipantInterface;
|
|
186
|
+
status?: e.SetLastSeenRequestStatus;
|
|
186
187
|
}
|
|
187
188
|
export interface SetLastSeenResponseInterface {
|
|
188
|
-
|
|
189
|
+
participant?: ParticipantInterface;
|
|
189
190
|
}
|
|
190
191
|
export interface UpdateMessageStatusRequestInterface {
|
|
191
192
|
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
|
+
}
|
|
@@ -302,12 +302,13 @@ export declare class SendMessageResponse implements i.SendMessageResponseInterfa
|
|
|
302
302
|
export declare class SetLastSeenRequest implements i.SetLastSeenRequestInterface {
|
|
303
303
|
conversationId: string;
|
|
304
304
|
participant: Participant;
|
|
305
|
+
status: e.SetLastSeenRequestStatus;
|
|
305
306
|
static fromProto(proto: any): SetLastSeenRequest;
|
|
306
307
|
constructor(kwargs?: i.SetLastSeenRequestInterface);
|
|
307
308
|
toApiJson(): object;
|
|
308
309
|
}
|
|
309
310
|
export declare class SetLastSeenResponse implements i.SetLastSeenResponseInterface {
|
|
310
|
-
|
|
311
|
+
participant: Participant;
|
|
311
312
|
static fromProto(proto: any): SetLastSeenResponse;
|
|
312
313
|
constructor(kwargs?: i.SetLastSeenResponseInterface);
|
|
313
314
|
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';
|