@periskope/types 0.6.70 → 0.6.72
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 +7 -30
- package/dist/types.d.ts +1 -1
- package/dist/types.js +1 -1
- package/package.json +1 -1
- package/supabase.types.ts +26 -30
- package/types.ts +1 -1
package/dist/supabase.types.d.ts
CHANGED
|
@@ -603,14 +603,14 @@ export type Database = {
|
|
|
603
603
|
archived: boolean | null;
|
|
604
604
|
chat_id: string;
|
|
605
605
|
chat_image: string | null;
|
|
606
|
-
|
|
606
|
+
chat_name: string | null;
|
|
607
|
+
chat_type: string | null;
|
|
607
608
|
group_metadata: Json | null;
|
|
608
609
|
id: Json | null;
|
|
609
610
|
invite_link: string | null;
|
|
610
611
|
is_group: boolean | null;
|
|
611
612
|
is_muted: boolean | null;
|
|
612
613
|
is_read_only: boolean | null;
|
|
613
|
-
label_ids: Json;
|
|
614
614
|
latest_message: Json | null;
|
|
615
615
|
member_count: number | null;
|
|
616
616
|
mute_expiration: number | null;
|
|
@@ -626,14 +626,14 @@ export type Database = {
|
|
|
626
626
|
archived?: boolean | null;
|
|
627
627
|
chat_id: string;
|
|
628
628
|
chat_image?: string | null;
|
|
629
|
-
|
|
629
|
+
chat_name?: string | null;
|
|
630
|
+
chat_type?: string | null;
|
|
630
631
|
group_metadata?: Json | null;
|
|
631
632
|
id?: Json | null;
|
|
632
633
|
invite_link?: string | null;
|
|
633
634
|
is_group?: boolean | null;
|
|
634
635
|
is_muted?: boolean | null;
|
|
635
636
|
is_read_only?: boolean | null;
|
|
636
|
-
label_ids?: Json;
|
|
637
637
|
latest_message?: Json | null;
|
|
638
638
|
member_count?: number | null;
|
|
639
639
|
mute_expiration?: number | null;
|
|
@@ -649,14 +649,14 @@ export type Database = {
|
|
|
649
649
|
archived?: boolean | null;
|
|
650
650
|
chat_id?: string;
|
|
651
651
|
chat_image?: string | null;
|
|
652
|
-
|
|
652
|
+
chat_name?: string | null;
|
|
653
|
+
chat_type?: string | null;
|
|
653
654
|
group_metadata?: Json | null;
|
|
654
655
|
id?: Json | null;
|
|
655
656
|
invite_link?: string | null;
|
|
656
657
|
is_group?: boolean | null;
|
|
657
658
|
is_muted?: boolean | null;
|
|
658
659
|
is_read_only?: boolean | null;
|
|
659
|
-
label_ids?: Json;
|
|
660
660
|
latest_message?: Json | null;
|
|
661
661
|
member_count?: number | null;
|
|
662
662
|
mute_expiration?: number | null;
|
|
@@ -1271,26 +1271,6 @@ export type Database = {
|
|
|
1271
1271
|
}
|
|
1272
1272
|
];
|
|
1273
1273
|
};
|
|
1274
|
-
view_chat_participants: {
|
|
1275
|
-
Row: {
|
|
1276
|
-
chat_id: string | null;
|
|
1277
|
-
contact_name: string | null;
|
|
1278
|
-
is_business: boolean | null;
|
|
1279
|
-
is_user: boolean | null;
|
|
1280
|
-
members: Json | null;
|
|
1281
|
-
org_id: string | null;
|
|
1282
|
-
org_phone: string | null;
|
|
1283
|
-
};
|
|
1284
|
-
Relationships: [
|
|
1285
|
-
{
|
|
1286
|
-
foreignKeyName: "tbl_chat_participants_fkey_tbl_chats";
|
|
1287
|
-
columns: ["org_id", "org_phone", "chat_id"];
|
|
1288
|
-
isOneToOne: false;
|
|
1289
|
-
referencedRelation: "tbl_chats";
|
|
1290
|
-
referencedColumns: ["org_id", "org_phone", "chat_id"];
|
|
1291
|
-
}
|
|
1292
|
-
];
|
|
1293
|
-
};
|
|
1294
1274
|
view_chats: {
|
|
1295
1275
|
Row: {
|
|
1296
1276
|
active_phone: string | null;
|
|
@@ -1309,7 +1289,6 @@ export type Database = {
|
|
|
1309
1289
|
last_read_timestamp: string | null;
|
|
1310
1290
|
latest_message: Json | null;
|
|
1311
1291
|
member_count: number | null;
|
|
1312
|
-
members: Json | null;
|
|
1313
1292
|
message_unread_count: number | null;
|
|
1314
1293
|
org_id: string | null;
|
|
1315
1294
|
org_phone: string | null;
|
|
@@ -1352,8 +1331,6 @@ export type Database = {
|
|
|
1352
1331
|
Args: {
|
|
1353
1332
|
org_id_input?: string;
|
|
1354
1333
|
chat_id_input?: string[];
|
|
1355
|
-
with_metadata?: boolean;
|
|
1356
|
-
last_updated_at_input?: string;
|
|
1357
1334
|
};
|
|
1358
1335
|
Returns: Json;
|
|
1359
1336
|
};
|
|
@@ -1434,7 +1411,7 @@ export type Database = {
|
|
|
1434
1411
|
Enums: {
|
|
1435
1412
|
enum_chat_colors: "#B4876E" | "#A5B337" | "#06CF9C" | "#25D366" | "#02A698" | "#7D9EF1" | "#007BFC" | "#5E47DE" | "#7F66FF" | "#9333EA" | "#FA6533" | "#C4532D" | "#DC2626" | "#FF2E74" | "#DB2777";
|
|
1436
1413
|
enum_chat_tickets_status: "open" | "inprogress" | "closed" | "archived";
|
|
1437
|
-
enum_integration_name: "
|
|
1414
|
+
enum_integration_name: "org.created" | "org.updated" | "org.member.created" | "org.member.updated" | "org.phone.created" | "org.phone.connected" | "org.phone.disconnected" | "org.subscription.trial_will_end" | "chat.created" | "chat.updated" | "message.created" | "message.updated" | "message.deleted" | "message.ack.updated" | "reaction.created" | "reaction.updated" | "ticket.created" | "ticket.updated" | "ticket.deleted";
|
|
1438
1415
|
enum_member_role: "admin" | "member";
|
|
1439
1416
|
};
|
|
1440
1417
|
CompositeTypes: {
|
package/dist/types.d.ts
CHANGED
|
@@ -160,6 +160,6 @@ export type TicketLogType = OverrideProperties<Tables<'tbl_integration_logs'>, {
|
|
|
160
160
|
}>;
|
|
161
161
|
export type IntegrationLogDetailsType = TicketLogType;
|
|
162
162
|
export declare enum IntegrationLogType {
|
|
163
|
-
NEW_TICKET = "
|
|
163
|
+
NEW_TICKET = "ticket.created"
|
|
164
164
|
}
|
|
165
165
|
export type LogTypeMap<T extends IntegrationLogType> = T extends IntegrationLogType.NEW_TICKET ? TicketLogType : Tables<'tbl_integration_logs'>;
|
package/dist/types.js
CHANGED
|
@@ -51,5 +51,5 @@ exports.SUPPORTED_TYPES = [
|
|
|
51
51
|
];
|
|
52
52
|
var IntegrationLogType;
|
|
53
53
|
(function (IntegrationLogType) {
|
|
54
|
-
IntegrationLogType["NEW_TICKET"] = "
|
|
54
|
+
IntegrationLogType["NEW_TICKET"] = "ticket.created";
|
|
55
55
|
})(IntegrationLogType || (exports.IntegrationLogType = IntegrationLogType = {}));
|
package/package.json
CHANGED
package/supabase.types.ts
CHANGED
|
@@ -606,14 +606,14 @@ export type Database = {
|
|
|
606
606
|
archived: boolean | null
|
|
607
607
|
chat_id: string
|
|
608
608
|
chat_image: string | null
|
|
609
|
-
|
|
609
|
+
chat_name: string | null
|
|
610
|
+
chat_type: string | null
|
|
610
611
|
group_metadata: Json | null
|
|
611
612
|
id: Json | null
|
|
612
613
|
invite_link: string | null
|
|
613
614
|
is_group: boolean | null
|
|
614
615
|
is_muted: boolean | null
|
|
615
616
|
is_read_only: boolean | null
|
|
616
|
-
label_ids: Json
|
|
617
617
|
latest_message: Json | null
|
|
618
618
|
member_count: number | null
|
|
619
619
|
mute_expiration: number | null
|
|
@@ -629,14 +629,14 @@ export type Database = {
|
|
|
629
629
|
archived?: boolean | null
|
|
630
630
|
chat_id: string
|
|
631
631
|
chat_image?: string | null
|
|
632
|
-
|
|
632
|
+
chat_name?: string | null
|
|
633
|
+
chat_type?: string | null
|
|
633
634
|
group_metadata?: Json | null
|
|
634
635
|
id?: Json | null
|
|
635
636
|
invite_link?: string | null
|
|
636
637
|
is_group?: boolean | null
|
|
637
638
|
is_muted?: boolean | null
|
|
638
639
|
is_read_only?: boolean | null
|
|
639
|
-
label_ids?: Json
|
|
640
640
|
latest_message?: Json | null
|
|
641
641
|
member_count?: number | null
|
|
642
642
|
mute_expiration?: number | null
|
|
@@ -652,14 +652,14 @@ export type Database = {
|
|
|
652
652
|
archived?: boolean | null
|
|
653
653
|
chat_id?: string
|
|
654
654
|
chat_image?: string | null
|
|
655
|
-
|
|
655
|
+
chat_name?: string | null
|
|
656
|
+
chat_type?: string | null
|
|
656
657
|
group_metadata?: Json | null
|
|
657
658
|
id?: Json | null
|
|
658
659
|
invite_link?: string | null
|
|
659
660
|
is_group?: boolean | null
|
|
660
661
|
is_muted?: boolean | null
|
|
661
662
|
is_read_only?: boolean | null
|
|
662
|
-
label_ids?: Json
|
|
663
663
|
latest_message?: Json | null
|
|
664
664
|
member_count?: number | null
|
|
665
665
|
mute_expiration?: number | null
|
|
@@ -1274,26 +1274,6 @@ export type Database = {
|
|
|
1274
1274
|
},
|
|
1275
1275
|
]
|
|
1276
1276
|
}
|
|
1277
|
-
view_chat_participants: {
|
|
1278
|
-
Row: {
|
|
1279
|
-
chat_id: string | null
|
|
1280
|
-
contact_name: string | null
|
|
1281
|
-
is_business: boolean | null
|
|
1282
|
-
is_user: boolean | null
|
|
1283
|
-
members: Json | null
|
|
1284
|
-
org_id: string | null
|
|
1285
|
-
org_phone: string | null
|
|
1286
|
-
}
|
|
1287
|
-
Relationships: [
|
|
1288
|
-
{
|
|
1289
|
-
foreignKeyName: "tbl_chat_participants_fkey_tbl_chats"
|
|
1290
|
-
columns: ["org_id", "org_phone", "chat_id"]
|
|
1291
|
-
isOneToOne: false
|
|
1292
|
-
referencedRelation: "tbl_chats"
|
|
1293
|
-
referencedColumns: ["org_id", "org_phone", "chat_id"]
|
|
1294
|
-
},
|
|
1295
|
-
]
|
|
1296
|
-
}
|
|
1297
1277
|
view_chats: {
|
|
1298
1278
|
Row: {
|
|
1299
1279
|
active_phone: string | null
|
|
@@ -1312,7 +1292,6 @@ export type Database = {
|
|
|
1312
1292
|
last_read_timestamp: string | null
|
|
1313
1293
|
latest_message: Json | null
|
|
1314
1294
|
member_count: number | null
|
|
1315
|
-
members: Json | null
|
|
1316
1295
|
message_unread_count: number | null
|
|
1317
1296
|
org_id: string | null
|
|
1318
1297
|
org_phone: string | null
|
|
@@ -1355,8 +1334,6 @@ export type Database = {
|
|
|
1355
1334
|
Args: {
|
|
1356
1335
|
org_id_input?: string
|
|
1357
1336
|
chat_id_input?: string[]
|
|
1358
|
-
with_metadata?: boolean
|
|
1359
|
-
last_updated_at_input?: string
|
|
1360
1337
|
}
|
|
1361
1338
|
Returns: Json
|
|
1362
1339
|
}
|
|
@@ -1452,7 +1429,26 @@ export type Database = {
|
|
|
1452
1429
|
| "#FF2E74"
|
|
1453
1430
|
| "#DB2777"
|
|
1454
1431
|
enum_chat_tickets_status: "open" | "inprogress" | "closed" | "archived"
|
|
1455
|
-
enum_integration_name:
|
|
1432
|
+
enum_integration_name:
|
|
1433
|
+
| "org.created"
|
|
1434
|
+
| "org.updated"
|
|
1435
|
+
| "org.member.created"
|
|
1436
|
+
| "org.member.updated"
|
|
1437
|
+
| "org.phone.created"
|
|
1438
|
+
| "org.phone.connected"
|
|
1439
|
+
| "org.phone.disconnected"
|
|
1440
|
+
| "org.subscription.trial_will_end"
|
|
1441
|
+
| "chat.created"
|
|
1442
|
+
| "chat.updated"
|
|
1443
|
+
| "message.created"
|
|
1444
|
+
| "message.updated"
|
|
1445
|
+
| "message.deleted"
|
|
1446
|
+
| "message.ack.updated"
|
|
1447
|
+
| "reaction.created"
|
|
1448
|
+
| "reaction.updated"
|
|
1449
|
+
| "ticket.created"
|
|
1450
|
+
| "ticket.updated"
|
|
1451
|
+
| "ticket.deleted"
|
|
1456
1452
|
enum_member_role: "admin" | "member"
|
|
1457
1453
|
}
|
|
1458
1454
|
CompositeTypes: {
|
package/types.ts
CHANGED
|
@@ -281,7 +281,7 @@ export type TicketLogType = OverrideProperties<
|
|
|
281
281
|
export type IntegrationLogDetailsType = TicketLogType;
|
|
282
282
|
|
|
283
283
|
export enum IntegrationLogType {
|
|
284
|
-
NEW_TICKET = '
|
|
284
|
+
NEW_TICKET = 'ticket.created',
|
|
285
285
|
}
|
|
286
286
|
|
|
287
287
|
export type LogTypeMap<T extends IntegrationLogType> =
|