@periskope/types 0.6.5 → 0.6.7

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.
@@ -85,6 +85,7 @@ export interface Database {
85
85
  is_status: boolean | null;
86
86
  links: Json | null;
87
87
  location: Json | null;
88
+ media: Json | null;
88
89
  media_key: string | null;
89
90
  mentioned_ids: string[] | null;
90
91
  message_id: string;
@@ -98,7 +99,6 @@ export interface Database {
98
99
  timestamp: string | null;
99
100
  to: string | null;
100
101
  token: string | null;
101
- url: string | null;
102
102
  vcards: string[] | null;
103
103
  };
104
104
  Insert: {
@@ -124,6 +124,7 @@ export interface Database {
124
124
  is_status?: boolean | null;
125
125
  links?: Json | null;
126
126
  location?: Json | null;
127
+ media?: Json | null;
127
128
  media_key?: string | null;
128
129
  mentioned_ids?: string[] | null;
129
130
  message_id: string;
@@ -137,7 +138,6 @@ export interface Database {
137
138
  timestamp?: string | null;
138
139
  to?: string | null;
139
140
  token?: string | null;
140
- url?: string | null;
141
141
  vcards?: string[] | null;
142
142
  };
143
143
  Update: {
@@ -163,6 +163,7 @@ export interface Database {
163
163
  is_status?: boolean | null;
164
164
  links?: Json | null;
165
165
  location?: Json | null;
166
+ media?: Json | null;
166
167
  media_key?: string | null;
167
168
  mentioned_ids?: string[] | null;
168
169
  message_id?: string;
@@ -176,7 +177,6 @@ export interface Database {
176
177
  timestamp?: string | null;
177
178
  to?: string | null;
178
179
  token?: string | null;
179
- url?: string | null;
180
180
  vcards?: string[] | null;
181
181
  };
182
182
  Relationships: [
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@periskope/types",
3
- "version": "0.6.5",
3
+ "version": "0.6.7",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",