@periskope/types 0.6.68 → 0.6.69
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.
- package/dist/supabase.types.d.ts +50 -19
- package/package.json +1 -1
- package/supabase.types.ts +50 -19
package/dist/supabase.types.d.ts
CHANGED
|
@@ -179,6 +179,7 @@ export type Database = {
|
|
|
179
179
|
email: string;
|
|
180
180
|
has_access: boolean | null;
|
|
181
181
|
last_read_timestamp: string | null;
|
|
182
|
+
message_unread_count: number | null;
|
|
182
183
|
org_id: string;
|
|
183
184
|
};
|
|
184
185
|
Insert: {
|
|
@@ -187,6 +188,7 @@ export type Database = {
|
|
|
187
188
|
email: string;
|
|
188
189
|
has_access?: boolean | null;
|
|
189
190
|
last_read_timestamp?: string | null;
|
|
191
|
+
message_unread_count?: number | null;
|
|
190
192
|
org_id: string;
|
|
191
193
|
};
|
|
192
194
|
Update: {
|
|
@@ -195,6 +197,7 @@ export type Database = {
|
|
|
195
197
|
email?: string;
|
|
196
198
|
has_access?: boolean | null;
|
|
197
199
|
last_read_timestamp?: string | null;
|
|
200
|
+
message_unread_count?: number | null;
|
|
198
201
|
org_id?: string;
|
|
199
202
|
};
|
|
200
203
|
Relationships: [
|
|
@@ -447,16 +450,30 @@ export type Database = {
|
|
|
447
450
|
isOneToOne: false;
|
|
448
451
|
referencedRelation: "tbl_chats";
|
|
449
452
|
referencedColumns: ["org_id", "org_phone", "chat_id"];
|
|
450
|
-
},
|
|
451
|
-
{
|
|
452
|
-
foreignKeyName: "tbl_chat_participants_fkey_tbl_chats";
|
|
453
|
-
columns: ["org_id", "org_phone", "chat_id"];
|
|
454
|
-
isOneToOne: false;
|
|
455
|
-
referencedRelation: "view_chats";
|
|
456
|
-
referencedColumns: ["org_id", "org_phone", "chat_id"];
|
|
457
453
|
}
|
|
458
454
|
];
|
|
459
455
|
};
|
|
456
|
+
tbl_chat_properties: {
|
|
457
|
+
Row: {
|
|
458
|
+
chat_id: string;
|
|
459
|
+
custom_properties: Json | null;
|
|
460
|
+
label_ids: Json | null;
|
|
461
|
+
org_id: string;
|
|
462
|
+
};
|
|
463
|
+
Insert: {
|
|
464
|
+
chat_id: string;
|
|
465
|
+
custom_properties?: Json | null;
|
|
466
|
+
label_ids?: Json | null;
|
|
467
|
+
org_id: string;
|
|
468
|
+
};
|
|
469
|
+
Update: {
|
|
470
|
+
chat_id?: string;
|
|
471
|
+
custom_properties?: Json | null;
|
|
472
|
+
label_ids?: Json | null;
|
|
473
|
+
org_id?: string;
|
|
474
|
+
};
|
|
475
|
+
Relationships: [];
|
|
476
|
+
};
|
|
460
477
|
tbl_chat_reactions: {
|
|
461
478
|
Row: {
|
|
462
479
|
ack: number | null;
|
|
@@ -1048,6 +1065,7 @@ export type Database = {
|
|
|
1048
1065
|
invited_at: string | null;
|
|
1049
1066
|
invited_by: string | null;
|
|
1050
1067
|
is_active: boolean;
|
|
1068
|
+
is_owner: boolean | null;
|
|
1051
1069
|
label_ids: string[] | null;
|
|
1052
1070
|
member_color: Database["public"]["Enums"]["enum_chat_colors"];
|
|
1053
1071
|
member_image: string | null;
|
|
@@ -1063,6 +1081,7 @@ export type Database = {
|
|
|
1063
1081
|
invited_at?: string | null;
|
|
1064
1082
|
invited_by?: string | null;
|
|
1065
1083
|
is_active?: boolean;
|
|
1084
|
+
is_owner?: boolean | null;
|
|
1066
1085
|
label_ids?: string[] | null;
|
|
1067
1086
|
member_color?: Database["public"]["Enums"]["enum_chat_colors"];
|
|
1068
1087
|
member_image?: string | null;
|
|
@@ -1078,6 +1097,7 @@ export type Database = {
|
|
|
1078
1097
|
invited_at?: string | null;
|
|
1079
1098
|
invited_by?: string | null;
|
|
1080
1099
|
is_active?: boolean;
|
|
1100
|
+
is_owner?: boolean | null;
|
|
1081
1101
|
label_ids?: string[] | null;
|
|
1082
1102
|
member_color?: Database["public"]["Enums"]["enum_chat_colors"];
|
|
1083
1103
|
member_image?: string | null;
|
|
@@ -1257,6 +1277,26 @@ export type Database = {
|
|
|
1257
1277
|
}
|
|
1258
1278
|
];
|
|
1259
1279
|
};
|
|
1280
|
+
view_chat_participants: {
|
|
1281
|
+
Row: {
|
|
1282
|
+
chat_id: string | null;
|
|
1283
|
+
contact_name: string | null;
|
|
1284
|
+
is_business: boolean | null;
|
|
1285
|
+
is_user: boolean | null;
|
|
1286
|
+
members: Json | null;
|
|
1287
|
+
org_id: string | null;
|
|
1288
|
+
org_phone: string | null;
|
|
1289
|
+
};
|
|
1290
|
+
Relationships: [
|
|
1291
|
+
{
|
|
1292
|
+
foreignKeyName: "tbl_chat_participants_fkey_tbl_chats";
|
|
1293
|
+
columns: ["org_id", "org_phone", "chat_id"];
|
|
1294
|
+
isOneToOne: false;
|
|
1295
|
+
referencedRelation: "tbl_chats";
|
|
1296
|
+
referencedColumns: ["org_id", "org_phone", "chat_id"];
|
|
1297
|
+
}
|
|
1298
|
+
];
|
|
1299
|
+
};
|
|
1260
1300
|
view_chats: {
|
|
1261
1301
|
Row: {
|
|
1262
1302
|
active_phone: string | null;
|
|
@@ -1264,12 +1304,10 @@ export type Database = {
|
|
|
1264
1304
|
chat_id: string | null;
|
|
1265
1305
|
chat_image: string | null;
|
|
1266
1306
|
chat_name: string | null;
|
|
1267
|
-
chat_org_phones: string[] | null;
|
|
1268
1307
|
chat_type: string | null;
|
|
1269
1308
|
created_at: string | null;
|
|
1270
1309
|
custom_properties: Json | null;
|
|
1271
1310
|
group_description: string | null;
|
|
1272
|
-
has_access: boolean | null;
|
|
1273
1311
|
invite_link: string | null;
|
|
1274
1312
|
is_archived: boolean | null;
|
|
1275
1313
|
is_muted: boolean | null;
|
|
@@ -1278,19 +1316,12 @@ export type Database = {
|
|
|
1278
1316
|
latest_message: Json | null;
|
|
1279
1317
|
member_count: number | null;
|
|
1280
1318
|
members: Json | null;
|
|
1319
|
+
message_unread_count: number | null;
|
|
1281
1320
|
org_id: string | null;
|
|
1282
1321
|
org_phone: string | null;
|
|
1283
1322
|
updated_at: string | null;
|
|
1284
1323
|
};
|
|
1285
|
-
Relationships: [
|
|
1286
|
-
{
|
|
1287
|
-
foreignKeyName: "tbl_chats_fkey_tbl_org_phones";
|
|
1288
|
-
columns: ["org_phone", "org_id"];
|
|
1289
|
-
isOneToOne: false;
|
|
1290
|
-
referencedRelation: "tbl_org_phones";
|
|
1291
|
-
referencedColumns: ["org_phone", "org_id"];
|
|
1292
|
-
}
|
|
1293
|
-
];
|
|
1324
|
+
Relationships: [];
|
|
1294
1325
|
};
|
|
1295
1326
|
};
|
|
1296
1327
|
Functions: {
|
|
@@ -1325,7 +1356,7 @@ export type Database = {
|
|
|
1325
1356
|
};
|
|
1326
1357
|
get_chats: {
|
|
1327
1358
|
Args: {
|
|
1328
|
-
org_id_input
|
|
1359
|
+
org_id_input?: string;
|
|
1329
1360
|
chat_id_input?: string[];
|
|
1330
1361
|
with_metadata?: boolean;
|
|
1331
1362
|
last_updated_at_input?: string;
|
package/package.json
CHANGED
package/supabase.types.ts
CHANGED
|
@@ -178,6 +178,7 @@ export type Database = {
|
|
|
178
178
|
email: string
|
|
179
179
|
has_access: boolean | null
|
|
180
180
|
last_read_timestamp: string | null
|
|
181
|
+
message_unread_count: number | null
|
|
181
182
|
org_id: string
|
|
182
183
|
}
|
|
183
184
|
Insert: {
|
|
@@ -186,6 +187,7 @@ export type Database = {
|
|
|
186
187
|
email: string
|
|
187
188
|
has_access?: boolean | null
|
|
188
189
|
last_read_timestamp?: string | null
|
|
190
|
+
message_unread_count?: number | null
|
|
189
191
|
org_id: string
|
|
190
192
|
}
|
|
191
193
|
Update: {
|
|
@@ -194,6 +196,7 @@ export type Database = {
|
|
|
194
196
|
email?: string
|
|
195
197
|
has_access?: boolean | null
|
|
196
198
|
last_read_timestamp?: string | null
|
|
199
|
+
message_unread_count?: number | null
|
|
197
200
|
org_id?: string
|
|
198
201
|
}
|
|
199
202
|
Relationships: [
|
|
@@ -447,15 +450,29 @@ export type Database = {
|
|
|
447
450
|
referencedRelation: "tbl_chats"
|
|
448
451
|
referencedColumns: ["org_id", "org_phone", "chat_id"]
|
|
449
452
|
},
|
|
450
|
-
{
|
|
451
|
-
foreignKeyName: "tbl_chat_participants_fkey_tbl_chats"
|
|
452
|
-
columns: ["org_id", "org_phone", "chat_id"]
|
|
453
|
-
isOneToOne: false
|
|
454
|
-
referencedRelation: "view_chats"
|
|
455
|
-
referencedColumns: ["org_id", "org_phone", "chat_id"]
|
|
456
|
-
},
|
|
457
453
|
]
|
|
458
454
|
}
|
|
455
|
+
tbl_chat_properties: {
|
|
456
|
+
Row: {
|
|
457
|
+
chat_id: string
|
|
458
|
+
custom_properties: Json | null
|
|
459
|
+
label_ids: Json | null
|
|
460
|
+
org_id: string
|
|
461
|
+
}
|
|
462
|
+
Insert: {
|
|
463
|
+
chat_id: string
|
|
464
|
+
custom_properties?: Json | null
|
|
465
|
+
label_ids?: Json | null
|
|
466
|
+
org_id: string
|
|
467
|
+
}
|
|
468
|
+
Update: {
|
|
469
|
+
chat_id?: string
|
|
470
|
+
custom_properties?: Json | null
|
|
471
|
+
label_ids?: Json | null
|
|
472
|
+
org_id?: string
|
|
473
|
+
}
|
|
474
|
+
Relationships: []
|
|
475
|
+
}
|
|
459
476
|
tbl_chat_reactions: {
|
|
460
477
|
Row: {
|
|
461
478
|
ack: number | null
|
|
@@ -1051,6 +1068,7 @@ export type Database = {
|
|
|
1051
1068
|
invited_at: string | null
|
|
1052
1069
|
invited_by: string | null
|
|
1053
1070
|
is_active: boolean
|
|
1071
|
+
is_owner: boolean | null
|
|
1054
1072
|
label_ids: string[] | null
|
|
1055
1073
|
member_color: Database["public"]["Enums"]["enum_chat_colors"]
|
|
1056
1074
|
member_image: string | null
|
|
@@ -1066,6 +1084,7 @@ export type Database = {
|
|
|
1066
1084
|
invited_at?: string | null
|
|
1067
1085
|
invited_by?: string | null
|
|
1068
1086
|
is_active?: boolean
|
|
1087
|
+
is_owner?: boolean | null
|
|
1069
1088
|
label_ids?: string[] | null
|
|
1070
1089
|
member_color?: Database["public"]["Enums"]["enum_chat_colors"]
|
|
1071
1090
|
member_image?: string | null
|
|
@@ -1081,6 +1100,7 @@ export type Database = {
|
|
|
1081
1100
|
invited_at?: string | null
|
|
1082
1101
|
invited_by?: string | null
|
|
1083
1102
|
is_active?: boolean
|
|
1103
|
+
is_owner?: boolean | null
|
|
1084
1104
|
label_ids?: string[] | null
|
|
1085
1105
|
member_color?: Database["public"]["Enums"]["enum_chat_colors"]
|
|
1086
1106
|
member_image?: string | null
|
|
@@ -1260,6 +1280,26 @@ export type Database = {
|
|
|
1260
1280
|
},
|
|
1261
1281
|
]
|
|
1262
1282
|
}
|
|
1283
|
+
view_chat_participants: {
|
|
1284
|
+
Row: {
|
|
1285
|
+
chat_id: string | null
|
|
1286
|
+
contact_name: string | null
|
|
1287
|
+
is_business: boolean | null
|
|
1288
|
+
is_user: boolean | null
|
|
1289
|
+
members: Json | null
|
|
1290
|
+
org_id: string | null
|
|
1291
|
+
org_phone: string | null
|
|
1292
|
+
}
|
|
1293
|
+
Relationships: [
|
|
1294
|
+
{
|
|
1295
|
+
foreignKeyName: "tbl_chat_participants_fkey_tbl_chats"
|
|
1296
|
+
columns: ["org_id", "org_phone", "chat_id"]
|
|
1297
|
+
isOneToOne: false
|
|
1298
|
+
referencedRelation: "tbl_chats"
|
|
1299
|
+
referencedColumns: ["org_id", "org_phone", "chat_id"]
|
|
1300
|
+
},
|
|
1301
|
+
]
|
|
1302
|
+
}
|
|
1263
1303
|
view_chats: {
|
|
1264
1304
|
Row: {
|
|
1265
1305
|
active_phone: string | null
|
|
@@ -1267,12 +1307,10 @@ export type Database = {
|
|
|
1267
1307
|
chat_id: string | null
|
|
1268
1308
|
chat_image: string | null
|
|
1269
1309
|
chat_name: string | null
|
|
1270
|
-
chat_org_phones: string[] | null
|
|
1271
1310
|
chat_type: string | null
|
|
1272
1311
|
created_at: string | null
|
|
1273
1312
|
custom_properties: Json | null
|
|
1274
1313
|
group_description: string | null
|
|
1275
|
-
has_access: boolean | null
|
|
1276
1314
|
invite_link: string | null
|
|
1277
1315
|
is_archived: boolean | null
|
|
1278
1316
|
is_muted: boolean | null
|
|
@@ -1281,19 +1319,12 @@ export type Database = {
|
|
|
1281
1319
|
latest_message: Json | null
|
|
1282
1320
|
member_count: number | null
|
|
1283
1321
|
members: Json | null
|
|
1322
|
+
message_unread_count: number | null
|
|
1284
1323
|
org_id: string | null
|
|
1285
1324
|
org_phone: string | null
|
|
1286
1325
|
updated_at: string | null
|
|
1287
1326
|
}
|
|
1288
|
-
Relationships: [
|
|
1289
|
-
{
|
|
1290
|
-
foreignKeyName: "tbl_chats_fkey_tbl_org_phones"
|
|
1291
|
-
columns: ["org_phone", "org_id"]
|
|
1292
|
-
isOneToOne: false
|
|
1293
|
-
referencedRelation: "tbl_org_phones"
|
|
1294
|
-
referencedColumns: ["org_phone", "org_id"]
|
|
1295
|
-
},
|
|
1296
|
-
]
|
|
1327
|
+
Relationships: []
|
|
1297
1328
|
}
|
|
1298
1329
|
}
|
|
1299
1330
|
Functions: {
|
|
@@ -1328,7 +1359,7 @@ export type Database = {
|
|
|
1328
1359
|
}
|
|
1329
1360
|
get_chats: {
|
|
1330
1361
|
Args: {
|
|
1331
|
-
org_id_input
|
|
1362
|
+
org_id_input?: string
|
|
1332
1363
|
chat_id_input?: string[]
|
|
1333
1364
|
with_metadata?: boolean
|
|
1334
1365
|
last_updated_at_input?: string
|