@vendasta/conversation 0.64.0 → 0.65.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.
@@ -1,6 +1,6 @@
1
1
  export { NamespaceDetailInterface, SubjectParticipantInterface, } from './common.interface';
2
2
  export { ConversationInterface, ConversationKeyInterface, LastSeenByParticipantInterface, } from './conversation.interface';
3
- export { MessageInterface, ParticipantMessageStatusInterface, SendStatusInterface, } from './message.interface';
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';
6
6
  export { ConfigurationInterface, ProductFeatureInterface, } from './configuration.interface';
@@ -1,4 +1,8 @@
1
1
  import * as e from '../enums';
2
+ export interface KeyValuePairInterface {
3
+ key?: string;
4
+ value?: string;
5
+ }
2
6
  export interface MessageInterface {
3
7
  messageId?: string;
4
8
  externalMessageId?: string;
@@ -13,6 +17,7 @@ export interface MessageInterface {
13
17
  media?: string[];
14
18
  sendStatus?: SendStatusInterface;
15
19
  channel?: e.ConversationChannel;
20
+ metadata?: KeyValuePairInterface[];
16
21
  }
17
22
  export interface ParticipantMessageStatusInterface {
18
23
  participantId?: string;
@@ -1,6 +1,6 @@
1
1
  export { NamespaceDetail, SubjectParticipant, } from './common';
2
2
  export { Conversation, ConversationKey, LastSeenByParticipant, } from './conversation';
3
- export { Message, ParticipantMessageStatus, SendStatus, } from './message';
3
+ export { KeyValuePair, Message, ParticipantMessageStatus, SendStatus, } from './message';
4
4
  export { Address, Participant, ParticipantKey, } from './participant';
5
5
  export { Access, } from './annotations';
6
6
  export { Configuration, ProductFeature, } from './configuration';
@@ -1,6 +1,13 @@
1
1
  import * as i from '../interfaces';
2
2
  import * as e from '../enums';
3
3
  export declare function enumStringToValue<E>(enumRef: any, value: string): E;
4
+ export declare class KeyValuePair implements i.KeyValuePairInterface {
5
+ key: string;
6
+ value: string;
7
+ static fromProto(proto: any): KeyValuePair;
8
+ constructor(kwargs?: i.KeyValuePairInterface);
9
+ toApiJson(): object;
10
+ }
4
11
  export declare class Message implements i.MessageInterface {
5
12
  messageId: string;
6
13
  externalMessageId: string;
@@ -15,6 +22,7 @@ export declare class Message implements i.MessageInterface {
15
22
  media: string[];
16
23
  sendStatus: SendStatus;
17
24
  channel: e.ConversationChannel;
25
+ metadata: KeyValuePair[];
18
26
  static fromProto(proto: any): Message;
19
27
  constructor(kwargs?: i.MessageInterface);
20
28
  toApiJson(): object;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendasta/conversation",
3
- "version": "0.64.0",
3
+ "version": "0.65.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.0",
6
6
  "@angular/core": "^17.3.0"