@vendasta/conversation 0.19.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.
Files changed (29) hide show
  1. package/esm2020/lib/_internal/enums/api.enum.mjs +6 -1
  2. package/esm2020/lib/_internal/enums/index.mjs +2 -2
  3. package/esm2020/lib/_internal/interfaces/annotations.interface.mjs +8 -0
  4. package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
  5. package/esm2020/lib/_internal/interfaces/conversation.interface.mjs +1 -1
  6. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  7. package/esm2020/lib/_internal/interfaces/participant.interface.mjs +1 -1
  8. package/esm2020/lib/_internal/objects/annotations.mjs +30 -0
  9. package/esm2020/lib/_internal/objects/api.mjs +11 -5
  10. package/esm2020/lib/_internal/objects/conversation.mjs +33 -1
  11. package/esm2020/lib/_internal/objects/index.mjs +3 -2
  12. package/esm2020/lib/_internal/objects/participant.mjs +4 -1
  13. package/fesm2015/vendasta-conversation.mjs +94 -18
  14. package/fesm2015/vendasta-conversation.mjs.map +1 -1
  15. package/fesm2020/vendasta-conversation.mjs +94 -18
  16. package/fesm2020/vendasta-conversation.mjs.map +1 -1
  17. package/lib/_internal/enums/api.enum.d.ts +4 -0
  18. package/lib/_internal/enums/index.d.ts +1 -1
  19. package/lib/_internal/interfaces/annotations.interface.d.ts +4 -0
  20. package/lib/_internal/interfaces/api.interface.d.ts +2 -1
  21. package/lib/_internal/interfaces/conversation.interface.d.ts +5 -0
  22. package/lib/_internal/interfaces/index.d.ts +2 -1
  23. package/lib/_internal/interfaces/participant.interface.d.ts +1 -0
  24. package/lib/_internal/objects/annotations.d.ts +9 -0
  25. package/lib/_internal/objects/api.d.ts +2 -1
  26. package/lib/_internal/objects/conversation.d.ts +8 -0
  27. package/lib/_internal/objects/index.d.ts +2 -1
  28. package/lib/_internal/objects/participant.d.ts +1 -0
  29. package/package.json +1 -1
@@ -4,3 +4,7 @@ export declare enum MetadataIdentifier {
4
4
  METADATA_IDENTIFIER_SENDER = 2,
5
5
  METADATA_IDENTIFIER_CONVERSATION = 3
6
6
  }
7
+ export declare enum SetLastSeenRequestStatus {
8
+ SET_LAST_SEEN_REQUEST_STATUS_READ = 0,
9
+ SET_LAST_SEEN_REQUEST_STATUS_UNREAD = 1
10
+ }
@@ -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';
@@ -0,0 +1,4 @@
1
+ export interface AccessInterface {
2
+ scope?: string[];
3
+ public?: boolean;
4
+ }
@@ -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
- lastSeen?: Date;
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';
@@ -25,6 +25,7 @@ export interface ParticipantInterface {
25
25
  address?: AddressInterface;
26
26
  isSubjectParticipant?: boolean;
27
27
  isParticipantInternalInfoDeleted?: boolean;
28
+ profileImageUrl?: string;
28
29
  }
29
30
  export interface ParticipantKeyInterface {
30
31
  internalParticipantId?: string;
@@ -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
- lastSeen: Date;
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';
@@ -30,6 +30,7 @@ export declare class Participant implements i.ParticipantInterface {
30
30
  address: Address;
31
31
  isSubjectParticipant: boolean;
32
32
  isParticipantInternalInfoDeleted: boolean;
33
+ profileImageUrl: string;
33
34
  static fromProto(proto: any): Participant;
34
35
  constructor(kwargs?: i.ParticipantInterface);
35
36
  toApiJson(): object;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendasta/conversation",
3
- "version": "0.19.0",
3
+ "version": "0.21.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^13.0.0",
6
6
  "@angular/core": "^13.0.0"