@pulsecharterconnect/types 0.2.117 → 0.2.119

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,4 +1,4 @@
1
- import { Participant } from "./Trip";
1
+ import { Participant, TripActions } from "./Trip";
2
2
  export declare enum CommunicationsChannelGroupType {
3
3
  ORGANIZATION = "Organization",
4
4
  TRIP = "Trip"
@@ -42,6 +42,11 @@ export declare class CommunicationsChannel implements ICommunicationsChannel {
42
42
  export interface ICommunicationsChannelDto extends ICommunicationsChannel {
43
43
  messageCount: number;
44
44
  usersCount: number;
45
+ tripStatus?: string;
46
+ tripCity?: string;
47
+ tripDate?: number;
48
+ organTypes?: string[];
49
+ tripActionHistory?: TripActions[];
45
50
  }
46
51
  export interface ICommunicationsMessageReaction {
47
52
  emoji: string;
@@ -56,7 +61,22 @@ export interface ICommunicationsMessage {
56
61
  readByParticipantIds: string[];
57
62
  reactions?: ICommunicationsMessageReaction[];
58
63
  }
64
+ export interface IChannelMessageAttachment {
65
+ id: string;
66
+ name: string;
67
+ mimeType: string;
68
+ }
69
+ export interface IResolvedMessageAttachment {
70
+ id: string;
71
+ url: string;
72
+ name: string;
73
+ }
74
+ export type ICommunicationsMessageWithAttachments = ICommunicationsMessage & {
75
+ editedAt?: number;
76
+ editedBy?: Participant;
77
+ attachments?: IResolvedMessageAttachment[];
78
+ };
59
79
  export interface ICommunicationsGetMessagesDto {
60
- messages: ICommunicationsMessage[];
80
+ messages: ICommunicationsMessageWithAttachments[];
61
81
  channelId: string;
62
82
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulsecharterconnect/types",
3
- "version": "0.2.117",
3
+ "version": "0.2.119",
4
4
  "description": "A TypeScript library for enhanced type safety.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",