@periskope/types 0.6.6 → 0.6.8

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.
@@ -94,6 +94,7 @@ export interface Database {
94
94
  org_id: string;
95
95
  org_phone: string;
96
96
  performed_by: string | null;
97
+ quoted_message_id: string | null;
97
98
  raw_data: Json | null;
98
99
  sender_phone: string | null;
99
100
  timestamp: string | null;
@@ -133,6 +134,7 @@ export interface Database {
133
134
  org_id: string;
134
135
  org_phone: string;
135
136
  performed_by?: string | null;
137
+ quoted_message_id?: string | null;
136
138
  raw_data?: Json | null;
137
139
  sender_phone?: string | null;
138
140
  timestamp?: string | null;
@@ -172,6 +174,7 @@ export interface Database {
172
174
  org_id?: string;
173
175
  org_phone?: string;
174
176
  performed_by?: string | null;
177
+ quoted_message_id?: string | null;
175
178
  raw_data?: Json | null;
176
179
  sender_phone?: string | null;
177
180
  timestamp?: string | null;
package/dist/types.d.ts CHANGED
@@ -23,8 +23,14 @@ export type ChatType = Merge<Tables<'view_chats'>, {
23
23
  chat_access: Record<string, boolean>;
24
24
  label_ids: Record<string, boolean>;
25
25
  }>;
26
+ export type MediaType = {
27
+ path: string;
28
+ mimetype: string | null;
29
+ filename: string | null;
30
+ };
26
31
  export type MessageType = OverrideProperties<Tables<'tbl_chat_messages'>, {
27
32
  message_type: MessageTypes;
33
+ media: MediaType | null;
28
34
  }>;
29
35
  export type ContactType = Merge<Tables<'tbl_contacts'>, {
30
36
  chats: ChatType[] | null;
@@ -32,5 +38,10 @@ export type ContactType = Merge<Tables<'tbl_contacts'>, {
32
38
  chat_ids: string[] | null;
33
39
  }>;
34
40
  export type ChatAccessType = Merge<Partial<Tables<'tbl_chat_access'>>, Tables<'tbl_org_members'>>;
41
+ export type ServerStateType = {
42
+ loading: boolean;
43
+ percent: number | null;
44
+ ready: boolean;
45
+ };
35
46
  export declare const labelColors: string[];
36
47
  export declare const enumChatColors: readonly ["#B4876E", "#A5B337", "#06CF9C", "#25D366", "#02A698", "#7D9EF1", "#007BFC", "#5E47DE", "#7F66FF", "#9333EA", "#FA6533", "#C4532D", "#DC2626", "#FF2E74", "#DB2777"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@periskope/types",
3
- "version": "0.6.6",
3
+ "version": "0.6.8",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/supabase.types.ts CHANGED
@@ -93,6 +93,7 @@ export interface Database {
93
93
  org_id: string
94
94
  org_phone: string
95
95
  performed_by: string | null
96
+ quoted_message_id: string | null
96
97
  raw_data: Json | null
97
98
  sender_phone: string | null
98
99
  timestamp: string | null
@@ -132,6 +133,7 @@ export interface Database {
132
133
  org_id: string
133
134
  org_phone: string
134
135
  performed_by?: string | null
136
+ quoted_message_id?: string | null
135
137
  raw_data?: Json | null
136
138
  sender_phone?: string | null
137
139
  timestamp?: string | null
@@ -171,6 +173,7 @@ export interface Database {
171
173
  org_id?: string
172
174
  org_phone?: string
173
175
  performed_by?: string | null
176
+ quoted_message_id?: string | null
174
177
  raw_data?: Json | null
175
178
  sender_phone?: string | null
176
179
  timestamp?: string | null
package/types.ts CHANGED
@@ -38,8 +38,15 @@ export type ChatType = Merge<
38
38
  }
39
39
  >;
40
40
 
41
+ export type MediaType = {
42
+ path: string;
43
+ mimetype: string | null;
44
+ filename: string | null;
45
+ }
46
+
41
47
  export type MessageType = OverrideProperties<Tables<'tbl_chat_messages'>, {
42
48
  message_type: MessageTypes;
49
+ media: MediaType | null;
43
50
  }>;
44
51
 
45
52
  export type ContactType = Merge<
@@ -49,6 +56,12 @@ export type ContactType = Merge<
49
56
 
50
57
  export type ChatAccessType = Merge<Partial<Tables<'tbl_chat_access'>>,Tables<'tbl_org_members'>>;
51
58
 
59
+ export type ServerStateType = {
60
+ loading: boolean;
61
+ percent: number | null;
62
+ ready: boolean;
63
+ }
64
+
52
65
  /* -------------------------------- CONSTANTS ------------------------------- */
53
66
 
54
67
  export const labelColors = [