@periskope/types 0.6.128 → 0.6.130
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 +147 -15
- package/dist/types.d.ts +8 -5
- package/package.json +1 -1
- package/supabase.types.ts +147 -14
- package/types.ts +22 -16
package/dist/supabase.types.d.ts
CHANGED
|
@@ -2,23 +2,92 @@ export type Json = {
|
|
|
2
2
|
[key: string]: any;
|
|
3
3
|
} | any;
|
|
4
4
|
export type Database = {
|
|
5
|
-
|
|
5
|
+
internal: {
|
|
6
6
|
Tables: {
|
|
7
|
-
|
|
7
|
+
config: {
|
|
8
|
+
Row: {
|
|
9
|
+
key: string;
|
|
10
|
+
updated_at: string;
|
|
11
|
+
value: string | null;
|
|
12
|
+
};
|
|
13
|
+
Insert: {
|
|
14
|
+
key: string;
|
|
15
|
+
updated_at?: string;
|
|
16
|
+
value?: string | null;
|
|
17
|
+
};
|
|
18
|
+
Update: {
|
|
19
|
+
key?: string;
|
|
20
|
+
updated_at?: string;
|
|
21
|
+
value?: string | null;
|
|
22
|
+
};
|
|
23
|
+
Relationships: [];
|
|
24
|
+
};
|
|
25
|
+
tbl_communication_logs: {
|
|
26
|
+
Row: {
|
|
27
|
+
communication_type: string | null;
|
|
28
|
+
created_at: string;
|
|
29
|
+
id: number;
|
|
30
|
+
metadata: Json | null;
|
|
31
|
+
org_id: string | null;
|
|
32
|
+
recipient: string | null;
|
|
33
|
+
success: boolean | null;
|
|
34
|
+
type: string | null;
|
|
35
|
+
};
|
|
36
|
+
Insert: {
|
|
37
|
+
communication_type?: string | null;
|
|
38
|
+
created_at?: string;
|
|
39
|
+
id?: number;
|
|
40
|
+
metadata?: Json | null;
|
|
41
|
+
org_id?: string | null;
|
|
42
|
+
recipient?: string | null;
|
|
43
|
+
success?: boolean | null;
|
|
44
|
+
type?: string | null;
|
|
45
|
+
};
|
|
46
|
+
Update: {
|
|
47
|
+
communication_type?: string | null;
|
|
48
|
+
created_at?: string;
|
|
49
|
+
id?: number;
|
|
50
|
+
metadata?: Json | null;
|
|
51
|
+
org_id?: string | null;
|
|
52
|
+
recipient?: string | null;
|
|
53
|
+
success?: boolean | null;
|
|
54
|
+
type?: string | null;
|
|
55
|
+
};
|
|
56
|
+
Relationships: [];
|
|
57
|
+
};
|
|
58
|
+
tbl_trigger_logs: {
|
|
59
|
+
Row: {
|
|
60
|
+
created_at: string;
|
|
61
|
+
id: number;
|
|
62
|
+
request_body: Json;
|
|
63
|
+
request_id: string;
|
|
64
|
+
trace_id: string;
|
|
65
|
+
trigger_name: string;
|
|
66
|
+
};
|
|
67
|
+
Insert: {
|
|
68
|
+
created_at?: string;
|
|
69
|
+
id?: number;
|
|
70
|
+
request_body: Json;
|
|
71
|
+
request_id: string;
|
|
72
|
+
trace_id?: string;
|
|
73
|
+
trigger_name: string;
|
|
74
|
+
};
|
|
75
|
+
Update: {
|
|
76
|
+
created_at?: string;
|
|
77
|
+
id?: number;
|
|
78
|
+
request_body?: Json;
|
|
79
|
+
request_id?: string;
|
|
80
|
+
trace_id?: string;
|
|
81
|
+
trigger_name?: string;
|
|
82
|
+
};
|
|
83
|
+
Relationships: [];
|
|
84
|
+
};
|
|
8
85
|
};
|
|
9
86
|
Views: {
|
|
10
87
|
[_ in never]: never;
|
|
11
88
|
};
|
|
12
89
|
Functions: {
|
|
13
|
-
|
|
14
|
-
Args: {
|
|
15
|
-
operationName?: string;
|
|
16
|
-
query?: string;
|
|
17
|
-
variables?: Json;
|
|
18
|
-
extensions?: Json;
|
|
19
|
-
};
|
|
20
|
-
Returns: Json;
|
|
21
|
-
};
|
|
90
|
+
[_ in never]: never;
|
|
22
91
|
};
|
|
23
92
|
Enums: {
|
|
24
93
|
[_ in never]: never;
|
|
@@ -945,7 +1014,7 @@ export type Database = {
|
|
|
945
1014
|
org_id: string | null;
|
|
946
1015
|
property_id: string;
|
|
947
1016
|
property_name: string;
|
|
948
|
-
property_value:
|
|
1017
|
+
property_value: Json | null;
|
|
949
1018
|
property_value_type: string | null;
|
|
950
1019
|
type: string | null;
|
|
951
1020
|
};
|
|
@@ -955,7 +1024,7 @@ export type Database = {
|
|
|
955
1024
|
org_id?: string | null;
|
|
956
1025
|
property_id?: string;
|
|
957
1026
|
property_name: string;
|
|
958
|
-
property_value?:
|
|
1027
|
+
property_value?: Json | null;
|
|
959
1028
|
property_value_type?: string | null;
|
|
960
1029
|
type?: string | null;
|
|
961
1030
|
};
|
|
@@ -965,7 +1034,7 @@ export type Database = {
|
|
|
965
1034
|
org_id?: string | null;
|
|
966
1035
|
property_id?: string;
|
|
967
1036
|
property_name?: string;
|
|
968
|
-
property_value?:
|
|
1037
|
+
property_value?: Json | null;
|
|
969
1038
|
property_value_type?: string | null;
|
|
970
1039
|
type?: string | null;
|
|
971
1040
|
};
|
|
@@ -1433,6 +1502,63 @@ export type Database = {
|
|
|
1433
1502
|
}
|
|
1434
1503
|
];
|
|
1435
1504
|
};
|
|
1505
|
+
tbl_scheduled_messages: {
|
|
1506
|
+
Row: {
|
|
1507
|
+
chat_id: string;
|
|
1508
|
+
created_at: string;
|
|
1509
|
+
message_id: string | null;
|
|
1510
|
+
message_payload: Json | null;
|
|
1511
|
+
org_id: string;
|
|
1512
|
+
org_phone: string | null;
|
|
1513
|
+
performed_by: string | null;
|
|
1514
|
+
scheduled_at: string;
|
|
1515
|
+
sent_message_id: string;
|
|
1516
|
+
status: string | null;
|
|
1517
|
+
updated_at: string | null;
|
|
1518
|
+
};
|
|
1519
|
+
Insert: {
|
|
1520
|
+
chat_id: string;
|
|
1521
|
+
created_at?: string;
|
|
1522
|
+
message_id?: string | null;
|
|
1523
|
+
message_payload?: Json | null;
|
|
1524
|
+
org_id: string;
|
|
1525
|
+
org_phone?: string | null;
|
|
1526
|
+
performed_by?: string | null;
|
|
1527
|
+
scheduled_at: string;
|
|
1528
|
+
sent_message_id: string;
|
|
1529
|
+
status?: string | null;
|
|
1530
|
+
updated_at?: string | null;
|
|
1531
|
+
};
|
|
1532
|
+
Update: {
|
|
1533
|
+
chat_id?: string;
|
|
1534
|
+
created_at?: string;
|
|
1535
|
+
message_id?: string | null;
|
|
1536
|
+
message_payload?: Json | null;
|
|
1537
|
+
org_id?: string;
|
|
1538
|
+
org_phone?: string | null;
|
|
1539
|
+
performed_by?: string | null;
|
|
1540
|
+
scheduled_at?: string;
|
|
1541
|
+
sent_message_id?: string;
|
|
1542
|
+
status?: string | null;
|
|
1543
|
+
updated_at?: string | null;
|
|
1544
|
+
};
|
|
1545
|
+
Relationships: [
|
|
1546
|
+
{
|
|
1547
|
+
foreignKeyName: "tbl_scheduled_messages_org_id_fkey";
|
|
1548
|
+
columns: ["org_id"];
|
|
1549
|
+
isOneToOne: false;
|
|
1550
|
+
referencedRelation: "tbl_org";
|
|
1551
|
+
referencedColumns: ["org_id"];
|
|
1552
|
+
},
|
|
1553
|
+
{
|
|
1554
|
+
foreignKeyName: "tbl_scheduled_messages_org_id_fkey";
|
|
1555
|
+
columns: ["org_id"];
|
|
1556
|
+
isOneToOne: false;
|
|
1557
|
+
referencedRelation: "view_org";
|
|
1558
|
+
referencedColumns: ["org_id"];
|
|
1559
|
+
}
|
|
1560
|
+
];
|
|
1561
|
+
};
|
|
1436
1562
|
tbl_tools_whatsapp_links: {
|
|
1437
1563
|
Row: {
|
|
1438
1564
|
created_at: string;
|
|
@@ -1831,7 +1957,7 @@ export type Database = {
|
|
|
1831
1957
|
enum_chat_colors: "#B4876E" | "#A5B337" | "#06CF9C" | "#25D366" | "#02A698" | "#7D9EF1" | "#007BFC" | "#5E47DE" | "#7F66FF" | "#9333EA" | "#FA6533" | "#C4532D" | "#DC2626" | "#FF2E74" | "#DB2777";
|
|
1832
1958
|
enum_chat_tickets_status: "open" | "inprogress" | "closed" | "archived";
|
|
1833
1959
|
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" | "chat.notification.created" | "message.created" | "message.updated" | "message.deleted" | "message.ack.updated" | "reaction.created" | "reaction.updated" | "ticket.created" | "ticket.updated" | "ticket.deleted" | "org.integrations.updated";
|
|
1834
|
-
enum_integration_type: "zapier" | "pabbly" | "api" | "webhook" | "hubspot" | "freshdesk" | "slack" | "jira" | "salesforce" | "zohodesk";
|
|
1960
|
+
enum_integration_type: "zapier" | "pabbly" | "api" | "webhook" | "hubspot" | "freshdesk" | "slack" | "jira" | "salesforce" | "zohodesk" | "gsheets";
|
|
1835
1961
|
enum_member_role: "admin" | "member";
|
|
1836
1962
|
};
|
|
1837
1963
|
CompositeTypes: {
|
|
@@ -1912,6 +2038,7 @@ export type Database = {
|
|
|
1912
2038
|
owner_id: string | null;
|
|
1913
2039
|
path_tokens: string[] | null;
|
|
1914
2040
|
updated_at: string | null;
|
|
2041
|
+
user_metadata: Json | null;
|
|
1915
2042
|
version: string | null;
|
|
1916
2043
|
};
|
|
1917
2044
|
Insert: {
|
|
@@ -1925,6 +2052,7 @@ export type Database = {
|
|
|
1925
2052
|
owner_id?: string | null;
|
|
1926
2053
|
path_tokens?: string[] | null;
|
|
1927
2054
|
updated_at?: string | null;
|
|
2055
|
+
user_metadata?: Json | null;
|
|
1928
2056
|
version?: string | null;
|
|
1929
2057
|
};
|
|
1930
2058
|
Update: {
|
|
@@ -1938,6 +2066,7 @@ export type Database = {
|
|
|
1938
2066
|
owner_id?: string | null;
|
|
1939
2067
|
path_tokens?: string[] | null;
|
|
1940
2068
|
updated_at?: string | null;
|
|
2069
|
+
user_metadata?: Json | null;
|
|
1941
2070
|
version?: string | null;
|
|
1942
2071
|
};
|
|
1943
2072
|
Relationships: [
|
|
@@ -1959,6 +2088,7 @@ export type Database = {
|
|
|
1959
2088
|
key: string;
|
|
1960
2089
|
owner_id: string | null;
|
|
1961
2090
|
upload_signature: string;
|
|
2091
|
+
user_metadata: Json | null;
|
|
1962
2092
|
version: string;
|
|
1963
2093
|
};
|
|
1964
2094
|
Insert: {
|
|
@@ -1969,6 +2099,7 @@ export type Database = {
|
|
|
1969
2099
|
key: string;
|
|
1970
2100
|
owner_id?: string | null;
|
|
1971
2101
|
upload_signature: string;
|
|
2102
|
+
user_metadata?: Json | null;
|
|
1972
2103
|
version: string;
|
|
1973
2104
|
};
|
|
1974
2105
|
Update: {
|
|
@@ -1979,6 +2110,7 @@ export type Database = {
|
|
|
1979
2110
|
key?: string;
|
|
1980
2111
|
owner_id?: string | null;
|
|
1981
2112
|
upload_signature?: string;
|
|
2113
|
+
user_metadata?: Json | null;
|
|
1982
2114
|
version?: string;
|
|
1983
2115
|
};
|
|
1984
2116
|
Relationships: [
|
package/dist/types.d.ts
CHANGED
|
@@ -136,7 +136,7 @@ export type MediaType = {
|
|
|
136
136
|
size?: number;
|
|
137
137
|
thumbnail?: string;
|
|
138
138
|
};
|
|
139
|
-
export type MessageType = OverrideProperties<Tables<'tbl_chat_messages'>, {
|
|
139
|
+
export type MessageType = Merge<OverrideProperties<Tables<'tbl_chat_messages'>, {
|
|
140
140
|
message_id: string;
|
|
141
141
|
org_id: string;
|
|
142
142
|
org_phone: string;
|
|
@@ -146,6 +146,11 @@ export type MessageType = OverrideProperties<Tables<'tbl_chat_messages'>, {
|
|
|
146
146
|
flag_metadata: MessageFlagType | null;
|
|
147
147
|
poll_info?: PollSendType | null;
|
|
148
148
|
poll_results?: PollResultType | null;
|
|
149
|
+
}>, {
|
|
150
|
+
reactions?: ReactionType[];
|
|
151
|
+
message_payload?: SingleMessagePayload;
|
|
152
|
+
show_unread?: boolean;
|
|
153
|
+
highlight?: boolean;
|
|
149
154
|
}>;
|
|
150
155
|
export type MessageFlagType = {
|
|
151
156
|
status: boolean;
|
|
@@ -389,8 +394,6 @@ export type PollSendType = {
|
|
|
389
394
|
};
|
|
390
395
|
};
|
|
391
396
|
export type PollResultType = {
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
votes: Record<string, string>;
|
|
395
|
-
}[];
|
|
397
|
+
[name: string]: Record<string, string>;
|
|
398
|
+
};
|
|
396
399
|
export {};
|
package/package.json
CHANGED
package/supabase.types.ts
CHANGED
|
@@ -1,23 +1,92 @@
|
|
|
1
1
|
export type Json = { [key: string]: any } | any
|
|
2
2
|
|
|
3
3
|
export type Database = {
|
|
4
|
-
|
|
4
|
+
internal: {
|
|
5
5
|
Tables: {
|
|
6
|
-
|
|
6
|
+
config: {
|
|
7
|
+
Row: {
|
|
8
|
+
key: string
|
|
9
|
+
updated_at: string
|
|
10
|
+
value: string | null
|
|
11
|
+
}
|
|
12
|
+
Insert: {
|
|
13
|
+
key: string
|
|
14
|
+
updated_at?: string
|
|
15
|
+
value?: string | null
|
|
16
|
+
}
|
|
17
|
+
Update: {
|
|
18
|
+
key?: string
|
|
19
|
+
updated_at?: string
|
|
20
|
+
value?: string | null
|
|
21
|
+
}
|
|
22
|
+
Relationships: []
|
|
23
|
+
}
|
|
24
|
+
tbl_communication_logs: {
|
|
25
|
+
Row: {
|
|
26
|
+
communication_type: string | null
|
|
27
|
+
created_at: string
|
|
28
|
+
id: number
|
|
29
|
+
metadata: Json | null
|
|
30
|
+
org_id: string | null
|
|
31
|
+
recipient: string | null
|
|
32
|
+
success: boolean | null
|
|
33
|
+
type: string | null
|
|
34
|
+
}
|
|
35
|
+
Insert: {
|
|
36
|
+
communication_type?: string | null
|
|
37
|
+
created_at?: string
|
|
38
|
+
id?: number
|
|
39
|
+
metadata?: Json | null
|
|
40
|
+
org_id?: string | null
|
|
41
|
+
recipient?: string | null
|
|
42
|
+
success?: boolean | null
|
|
43
|
+
type?: string | null
|
|
44
|
+
}
|
|
45
|
+
Update: {
|
|
46
|
+
communication_type?: string | null
|
|
47
|
+
created_at?: string
|
|
48
|
+
id?: number
|
|
49
|
+
metadata?: Json | null
|
|
50
|
+
org_id?: string | null
|
|
51
|
+
recipient?: string | null
|
|
52
|
+
success?: boolean | null
|
|
53
|
+
type?: string | null
|
|
54
|
+
}
|
|
55
|
+
Relationships: []
|
|
56
|
+
}
|
|
57
|
+
tbl_trigger_logs: {
|
|
58
|
+
Row: {
|
|
59
|
+
created_at: string
|
|
60
|
+
id: number
|
|
61
|
+
request_body: Json
|
|
62
|
+
request_id: string
|
|
63
|
+
trace_id: string
|
|
64
|
+
trigger_name: string
|
|
65
|
+
}
|
|
66
|
+
Insert: {
|
|
67
|
+
created_at?: string
|
|
68
|
+
id?: number
|
|
69
|
+
request_body: Json
|
|
70
|
+
request_id: string
|
|
71
|
+
trace_id?: string
|
|
72
|
+
trigger_name: string
|
|
73
|
+
}
|
|
74
|
+
Update: {
|
|
75
|
+
created_at?: string
|
|
76
|
+
id?: number
|
|
77
|
+
request_body?: Json
|
|
78
|
+
request_id?: string
|
|
79
|
+
trace_id?: string
|
|
80
|
+
trigger_name?: string
|
|
81
|
+
}
|
|
82
|
+
Relationships: []
|
|
83
|
+
}
|
|
7
84
|
}
|
|
8
85
|
Views: {
|
|
9
86
|
[_ in never]: never
|
|
10
87
|
}
|
|
11
88
|
Functions: {
|
|
12
|
-
|
|
13
|
-
Args: {
|
|
14
|
-
operationName?: string
|
|
15
|
-
query?: string
|
|
16
|
-
variables?: Json
|
|
17
|
-
extensions?: Json
|
|
18
|
-
}
|
|
19
|
-
Returns: Json
|
|
20
|
-
}
|
|
89
|
+
[_ in never]: never
|
|
21
90
|
}
|
|
22
91
|
Enums: {
|
|
23
92
|
[_ in never]: never
|
|
@@ -954,7 +1023,7 @@ export type Database = {
|
|
|
954
1023
|
org_id: string | null
|
|
955
1024
|
property_id: string
|
|
956
1025
|
property_name: string
|
|
957
|
-
property_value:
|
|
1026
|
+
property_value: Json | null
|
|
958
1027
|
property_value_type: string | null
|
|
959
1028
|
type: string | null
|
|
960
1029
|
}
|
|
@@ -964,7 +1033,7 @@ export type Database = {
|
|
|
964
1033
|
org_id?: string | null
|
|
965
1034
|
property_id?: string
|
|
966
1035
|
property_name: string
|
|
967
|
-
property_value?:
|
|
1036
|
+
property_value?: Json | null
|
|
968
1037
|
property_value_type?: string | null
|
|
969
1038
|
type?: string | null
|
|
970
1039
|
}
|
|
@@ -974,7 +1043,7 @@ export type Database = {
|
|
|
974
1043
|
org_id?: string | null
|
|
975
1044
|
property_id?: string
|
|
976
1045
|
property_name?: string
|
|
977
|
-
property_value?:
|
|
1046
|
+
property_value?: Json | null
|
|
978
1047
|
property_value_type?: string | null
|
|
979
1048
|
type?: string | null
|
|
980
1049
|
}
|
|
@@ -1442,6 +1511,63 @@ export type Database = {
|
|
|
1442
1511
|
},
|
|
1443
1512
|
]
|
|
1444
1513
|
}
|
|
1514
|
+
tbl_scheduled_messages: {
|
|
1515
|
+
Row: {
|
|
1516
|
+
chat_id: string
|
|
1517
|
+
created_at: string
|
|
1518
|
+
message_id: string | null
|
|
1519
|
+
message_payload: Json | null
|
|
1520
|
+
org_id: string
|
|
1521
|
+
org_phone: string | null
|
|
1522
|
+
performed_by: string | null
|
|
1523
|
+
scheduled_at: string
|
|
1524
|
+
sent_message_id: string
|
|
1525
|
+
status: string | null
|
|
1526
|
+
updated_at: string | null
|
|
1527
|
+
}
|
|
1528
|
+
Insert: {
|
|
1529
|
+
chat_id: string
|
|
1530
|
+
created_at?: string
|
|
1531
|
+
message_id?: string | null
|
|
1532
|
+
message_payload?: Json | null
|
|
1533
|
+
org_id: string
|
|
1534
|
+
org_phone?: string | null
|
|
1535
|
+
performed_by?: string | null
|
|
1536
|
+
scheduled_at: string
|
|
1537
|
+
sent_message_id: string
|
|
1538
|
+
status?: string | null
|
|
1539
|
+
updated_at?: string | null
|
|
1540
|
+
}
|
|
1541
|
+
Update: {
|
|
1542
|
+
chat_id?: string
|
|
1543
|
+
created_at?: string
|
|
1544
|
+
message_id?: string | null
|
|
1545
|
+
message_payload?: Json | null
|
|
1546
|
+
org_id?: string
|
|
1547
|
+
org_phone?: string | null
|
|
1548
|
+
performed_by?: string | null
|
|
1549
|
+
scheduled_at?: string
|
|
1550
|
+
sent_message_id?: string
|
|
1551
|
+
status?: string | null
|
|
1552
|
+
updated_at?: string | null
|
|
1553
|
+
}
|
|
1554
|
+
Relationships: [
|
|
1555
|
+
{
|
|
1556
|
+
foreignKeyName: "tbl_scheduled_messages_org_id_fkey"
|
|
1557
|
+
columns: ["org_id"]
|
|
1558
|
+
isOneToOne: false
|
|
1559
|
+
referencedRelation: "tbl_org"
|
|
1560
|
+
referencedColumns: ["org_id"]
|
|
1561
|
+
},
|
|
1562
|
+
{
|
|
1563
|
+
foreignKeyName: "tbl_scheduled_messages_org_id_fkey"
|
|
1564
|
+
columns: ["org_id"]
|
|
1565
|
+
isOneToOne: false
|
|
1566
|
+
referencedRelation: "view_org"
|
|
1567
|
+
referencedColumns: ["org_id"]
|
|
1568
|
+
},
|
|
1569
|
+
]
|
|
1570
|
+
}
|
|
1445
1571
|
tbl_tools_whatsapp_links: {
|
|
1446
1572
|
Row: {
|
|
1447
1573
|
created_at: string
|
|
@@ -1889,6 +2015,7 @@ export type Database = {
|
|
|
1889
2015
|
| "jira"
|
|
1890
2016
|
| "salesforce"
|
|
1891
2017
|
| "zohodesk"
|
|
2018
|
+
| "gsheets"
|
|
1892
2019
|
enum_member_role: "admin" | "member"
|
|
1893
2020
|
}
|
|
1894
2021
|
CompositeTypes: {
|
|
@@ -1969,6 +2096,7 @@ export type Database = {
|
|
|
1969
2096
|
owner_id: string | null
|
|
1970
2097
|
path_tokens: string[] | null
|
|
1971
2098
|
updated_at: string | null
|
|
2099
|
+
user_metadata: Json | null
|
|
1972
2100
|
version: string | null
|
|
1973
2101
|
}
|
|
1974
2102
|
Insert: {
|
|
@@ -1982,6 +2110,7 @@ export type Database = {
|
|
|
1982
2110
|
owner_id?: string | null
|
|
1983
2111
|
path_tokens?: string[] | null
|
|
1984
2112
|
updated_at?: string | null
|
|
2113
|
+
user_metadata?: Json | null
|
|
1985
2114
|
version?: string | null
|
|
1986
2115
|
}
|
|
1987
2116
|
Update: {
|
|
@@ -1995,6 +2124,7 @@ export type Database = {
|
|
|
1995
2124
|
owner_id?: string | null
|
|
1996
2125
|
path_tokens?: string[] | null
|
|
1997
2126
|
updated_at?: string | null
|
|
2127
|
+
user_metadata?: Json | null
|
|
1998
2128
|
version?: string | null
|
|
1999
2129
|
}
|
|
2000
2130
|
Relationships: [
|
|
@@ -2016,6 +2146,7 @@ export type Database = {
|
|
|
2016
2146
|
key: string
|
|
2017
2147
|
owner_id: string | null
|
|
2018
2148
|
upload_signature: string
|
|
2149
|
+
user_metadata: Json | null
|
|
2019
2150
|
version: string
|
|
2020
2151
|
}
|
|
2021
2152
|
Insert: {
|
|
@@ -2026,6 +2157,7 @@ export type Database = {
|
|
|
2026
2157
|
key: string
|
|
2027
2158
|
owner_id?: string | null
|
|
2028
2159
|
upload_signature: string
|
|
2160
|
+
user_metadata?: Json | null
|
|
2029
2161
|
version: string
|
|
2030
2162
|
}
|
|
2031
2163
|
Update: {
|
|
@@ -2036,6 +2168,7 @@ export type Database = {
|
|
|
2036
2168
|
key?: string
|
|
2037
2169
|
owner_id?: string | null
|
|
2038
2170
|
upload_signature?: string
|
|
2171
|
+
user_metadata?: Json | null
|
|
2039
2172
|
version?: string
|
|
2040
2173
|
}
|
|
2041
2174
|
Relationships: [
|
package/types.ts
CHANGED
|
@@ -161,18 +161,26 @@ export type MediaType = {
|
|
|
161
161
|
thumbnail?: string;
|
|
162
162
|
};
|
|
163
163
|
|
|
164
|
-
export type MessageType =
|
|
165
|
-
|
|
164
|
+
export type MessageType = Merge<
|
|
165
|
+
OverrideProperties<
|
|
166
|
+
Tables<'tbl_chat_messages'>,
|
|
167
|
+
{
|
|
168
|
+
message_id: string;
|
|
169
|
+
org_id: string;
|
|
170
|
+
org_phone: string;
|
|
171
|
+
chat_id: string;
|
|
172
|
+
message_type: (typeof SUPPORTED_TYPES)[number];
|
|
173
|
+
media: MediaType | null;
|
|
174
|
+
flag_metadata: MessageFlagType | null;
|
|
175
|
+
poll_info?: PollSendType | null;
|
|
176
|
+
poll_results?: PollResultType | null;
|
|
177
|
+
}
|
|
178
|
+
>,
|
|
166
179
|
{
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
message_type: (typeof SUPPORTED_TYPES)[number];
|
|
172
|
-
media: MediaType | null;
|
|
173
|
-
flag_metadata: MessageFlagType | null;
|
|
174
|
-
poll_info?: PollSendType | null;
|
|
175
|
-
poll_results?: PollResultType | null;
|
|
180
|
+
reactions?: ReactionType[];
|
|
181
|
+
message_payload?: SingleMessagePayload;
|
|
182
|
+
show_unread?: boolean;
|
|
183
|
+
highlight?: boolean;
|
|
176
184
|
}
|
|
177
185
|
>;
|
|
178
186
|
|
|
@@ -537,10 +545,8 @@ export type PollSendType = {
|
|
|
537
545
|
messageSecret?: number[] | null;
|
|
538
546
|
pollId?: string;
|
|
539
547
|
};
|
|
540
|
-
}
|
|
548
|
+
};
|
|
541
549
|
|
|
542
550
|
export type PollResultType = {
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
votes: Record<string, string>;
|
|
546
|
-
}[];
|
|
551
|
+
[name: string]: Record<string, string>;
|
|
552
|
+
};
|