@vendasta/conversation 0.77.0 → 0.79.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.
@@ -8,7 +8,8 @@ export declare enum ConversationChannel {
8
8
  CONVERSATION_CHANNEL_EMAIL = 6,
9
9
  CONVERSATION_CHANNEL_GOOGLE_BUSINESS_COMMUNICATIONS = 7,
10
10
  CONVERSATION_CHANNEL_WEB_CHAT = 8,
11
- CONVERSATION_CHANNEL_INSTAGRAM = 9
11
+ CONVERSATION_CHANNEL_INSTAGRAM = 9,
12
+ CONVERSATION_CHANNEL_WHATSAPP = 10
12
13
  }
13
14
  export declare enum PlatformLocation {
14
15
  PLATFORM_LOCATION_UNDEFINED = 0,
@@ -20,6 +20,8 @@ export interface ConversationInterface {
20
20
  subjectParticipants?: SubjectParticipantInterface[];
21
21
  isOpen?: boolean;
22
22
  aiConfiguration?: AIConfigurationInterface;
23
+ latestMsgSentTimeBySubjectParticipant?: LatestMessageSentTimeBySubjectParticipantInterface[];
24
+ subjectParticipantKey?: SubjectParticipantKeyInterface;
23
25
  }
24
26
  export interface ConversationKeyInterface {
25
27
  subjectParticipants?: SubjectParticipantInterface[];
@@ -30,3 +32,11 @@ export interface LastSeenByParticipantInterface {
30
32
  participantId?: string;
31
33
  lastSeenTime?: Date;
32
34
  }
35
+ export interface LatestMessageSentTimeBySubjectParticipantInterface {
36
+ subjectParticipant?: SubjectParticipantInterface;
37
+ time?: Date;
38
+ }
39
+ export interface SubjectParticipantKeyInterface {
40
+ subjectParticipantsKey?: string;
41
+ subjectParticipants?: SubjectParticipantInterface[];
42
+ }
@@ -1,5 +1,5 @@
1
1
  export { NamespaceDetailInterface, SubjectParticipantInterface, } from './common.interface';
2
- export { AIConfigurationInterface, ConversationInterface, ConversationKeyInterface, LastSeenByParticipantInterface, } from './conversation.interface';
2
+ export { AIConfigurationInterface, ConversationInterface, ConversationKeyInterface, LastSeenByParticipantInterface, LatestMessageSentTimeBySubjectParticipantInterface, SubjectParticipantKeyInterface, } from './conversation.interface';
3
3
  export { KeyValuePairInterface, MessageInterface, ParticipantMessageStatusInterface, SendStatusInterface, } from './message.interface';
4
4
  export { AddressInterface, ParticipantInterface, ParticipantKeyInterface, } from './participant.interface';
5
5
  export { AccessInterface, } from './annotations.interface';
@@ -25,6 +25,8 @@ export declare class Conversation implements i.ConversationInterface {
25
25
  subjectParticipants: SubjectParticipant[];
26
26
  isOpen: boolean;
27
27
  aiConfiguration: AIConfiguration;
28
+ latestMsgSentTimeBySubjectParticipant: LatestMessageSentTimeBySubjectParticipant[];
29
+ subjectParticipantKey: SubjectParticipantKey;
28
30
  static fromProto(proto: any): Conversation;
29
31
  constructor(kwargs?: i.ConversationInterface);
30
32
  toApiJson(): object;
@@ -44,3 +46,17 @@ export declare class LastSeenByParticipant implements i.LastSeenByParticipantInt
44
46
  constructor(kwargs?: i.LastSeenByParticipantInterface);
45
47
  toApiJson(): object;
46
48
  }
49
+ export declare class LatestMessageSentTimeBySubjectParticipant implements i.LatestMessageSentTimeBySubjectParticipantInterface {
50
+ subjectParticipant: SubjectParticipant;
51
+ time: Date;
52
+ static fromProto(proto: any): LatestMessageSentTimeBySubjectParticipant;
53
+ constructor(kwargs?: i.LatestMessageSentTimeBySubjectParticipantInterface);
54
+ toApiJson(): object;
55
+ }
56
+ export declare class SubjectParticipantKey implements i.SubjectParticipantKeyInterface {
57
+ subjectParticipantsKey: string;
58
+ subjectParticipants: SubjectParticipant[];
59
+ static fromProto(proto: any): SubjectParticipantKey;
60
+ constructor(kwargs?: i.SubjectParticipantKeyInterface);
61
+ toApiJson(): object;
62
+ }
@@ -1,5 +1,5 @@
1
1
  export { NamespaceDetail, SubjectParticipant, } from './common';
2
- export { AIConfiguration, Conversation, ConversationKey, LastSeenByParticipant, } from './conversation';
2
+ export { AIConfiguration, Conversation, ConversationKey, LastSeenByParticipant, LatestMessageSentTimeBySubjectParticipant, SubjectParticipantKey, } from './conversation';
3
3
  export { KeyValuePair, Message, ParticipantMessageStatus, SendStatus, } from './message';
4
4
  export { Address, Participant, ParticipantKey, } from './participant';
5
5
  export { Access, } from './annotations';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendasta/conversation",
3
- "version": "0.77.0",
3
+ "version": "0.79.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.0",
6
6
  "@angular/core": "^17.3.0"