@vendasta/conversation 0.76.0 → 0.78.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,
@@ -1,5 +1,8 @@
1
1
  import { SubjectParticipantInterface } from './common.interface';
2
2
  import * as e from '../enums';
3
+ export interface AIConfigurationInterface {
4
+ aiResponseEnabled?: boolean;
5
+ }
3
6
  export interface ConversationInterface {
4
7
  conversationId?: string;
5
8
  channel?: e.ConversationChannel;
@@ -16,6 +19,8 @@ export interface ConversationInterface {
16
19
  subjectParticipantsKey?: string;
17
20
  subjectParticipants?: SubjectParticipantInterface[];
18
21
  isOpen?: boolean;
22
+ aiConfiguration?: AIConfigurationInterface;
23
+ latestMsgSentTimeBySubjectParticipant?: LatestMessageSentTimeBySubjectParticipantInterface[];
19
24
  }
20
25
  export interface ConversationKeyInterface {
21
26
  subjectParticipants?: SubjectParticipantInterface[];
@@ -26,3 +31,7 @@ export interface LastSeenByParticipantInterface {
26
31
  participantId?: string;
27
32
  lastSeenTime?: Date;
28
33
  }
34
+ export interface LatestMessageSentTimeBySubjectParticipantInterface {
35
+ subjectParticipant?: SubjectParticipantInterface;
36
+ time?: Date;
37
+ }
@@ -1,5 +1,5 @@
1
1
  export { NamespaceDetailInterface, SubjectParticipantInterface, } from './common.interface';
2
- export { ConversationInterface, ConversationKeyInterface, LastSeenByParticipantInterface, } from './conversation.interface';
2
+ export { AIConfigurationInterface, ConversationInterface, ConversationKeyInterface, LastSeenByParticipantInterface, LatestMessageSentTimeBySubjectParticipantInterface, } 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';
@@ -2,6 +2,12 @@ import * as i from '../interfaces';
2
2
  import { SubjectParticipant } from './common';
3
3
  import * as e from '../enums';
4
4
  export declare function enumStringToValue<E>(enumRef: any, value: string): E;
5
+ export declare class AIConfiguration implements i.AIConfigurationInterface {
6
+ aiResponseEnabled: boolean;
7
+ static fromProto(proto: any): AIConfiguration;
8
+ constructor(kwargs?: i.AIConfigurationInterface);
9
+ toApiJson(): object;
10
+ }
5
11
  export declare class Conversation implements i.ConversationInterface {
6
12
  conversationId: string;
7
13
  channel: e.ConversationChannel;
@@ -18,6 +24,8 @@ export declare class Conversation implements i.ConversationInterface {
18
24
  subjectParticipantsKey: string;
19
25
  subjectParticipants: SubjectParticipant[];
20
26
  isOpen: boolean;
27
+ aiConfiguration: AIConfiguration;
28
+ latestMsgSentTimeBySubjectParticipant: LatestMessageSentTimeBySubjectParticipant[];
21
29
  static fromProto(proto: any): Conversation;
22
30
  constructor(kwargs?: i.ConversationInterface);
23
31
  toApiJson(): object;
@@ -37,3 +45,10 @@ export declare class LastSeenByParticipant implements i.LastSeenByParticipantInt
37
45
  constructor(kwargs?: i.LastSeenByParticipantInterface);
38
46
  toApiJson(): object;
39
47
  }
48
+ export declare class LatestMessageSentTimeBySubjectParticipant implements i.LatestMessageSentTimeBySubjectParticipantInterface {
49
+ subjectParticipant: SubjectParticipant;
50
+ time: Date;
51
+ static fromProto(proto: any): LatestMessageSentTimeBySubjectParticipant;
52
+ constructor(kwargs?: i.LatestMessageSentTimeBySubjectParticipantInterface);
53
+ toApiJson(): object;
54
+ }
@@ -1,5 +1,5 @@
1
1
  export { NamespaceDetail, SubjectParticipant, } from './common';
2
- export { Conversation, ConversationKey, LastSeenByParticipant, } from './conversation';
2
+ export { AIConfiguration, Conversation, ConversationKey, LastSeenByParticipant, LatestMessageSentTimeBySubjectParticipant, } 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.76.0",
3
+ "version": "0.78.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.0",
6
6
  "@angular/core": "^17.3.0"