@periskope/types 0.6.34 → 0.6.36
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 +4 -5
- package/dist/types.d.ts +9 -2
- package/package.json +1 -1
- package/supabase.types.ts +4 -5
- package/types.ts +13 -2
package/dist/supabase.types.d.ts
CHANGED
|
@@ -37,8 +37,8 @@ export interface Database {
|
|
|
37
37
|
created_at: string;
|
|
38
38
|
message_payload: Json | null;
|
|
39
39
|
org_id: string;
|
|
40
|
+
performed_by: string | null;
|
|
40
41
|
scheduled_at: string | null;
|
|
41
|
-
sent_by: string | null;
|
|
42
42
|
status: string | null;
|
|
43
43
|
};
|
|
44
44
|
Insert: {
|
|
@@ -48,8 +48,8 @@ export interface Database {
|
|
|
48
48
|
created_at?: string;
|
|
49
49
|
message_payload?: Json | null;
|
|
50
50
|
org_id?: string;
|
|
51
|
+
performed_by?: string | null;
|
|
51
52
|
scheduled_at?: string | null;
|
|
52
|
-
sent_by?: string | null;
|
|
53
53
|
status?: string | null;
|
|
54
54
|
};
|
|
55
55
|
Update: {
|
|
@@ -59,8 +59,8 @@ export interface Database {
|
|
|
59
59
|
created_at?: string;
|
|
60
60
|
message_payload?: Json | null;
|
|
61
61
|
org_id?: string;
|
|
62
|
+
performed_by?: string | null;
|
|
62
63
|
scheduled_at?: string | null;
|
|
63
|
-
sent_by?: string | null;
|
|
64
64
|
status?: string | null;
|
|
65
65
|
};
|
|
66
66
|
Relationships: [
|
|
@@ -851,12 +851,11 @@ export interface Database {
|
|
|
851
851
|
failed_chats: number | null;
|
|
852
852
|
message_payload: Json | null;
|
|
853
853
|
org_id: string | null;
|
|
854
|
+
performed_by: string | null;
|
|
854
855
|
read_member_count: number | null;
|
|
855
856
|
read_percentage: number | null;
|
|
856
857
|
scheduled_at: string | null;
|
|
857
|
-
sent_by: string | null;
|
|
858
858
|
sent_chats: number | null;
|
|
859
|
-
status: string | null;
|
|
860
859
|
total_chats: number | null;
|
|
861
860
|
total_member_count: number | null;
|
|
862
861
|
};
|
package/dist/types.d.ts
CHANGED
|
@@ -25,8 +25,8 @@ export type ChatType = Merge<Tables<'view_chats'>, {
|
|
|
25
25
|
}>;
|
|
26
26
|
export type MediaType = {
|
|
27
27
|
path: string;
|
|
28
|
-
mimetype
|
|
29
|
-
filename
|
|
28
|
+
mimetype?: string;
|
|
29
|
+
filename?: string;
|
|
30
30
|
};
|
|
31
31
|
export type MessageType = OverrideProperties<Tables<'tbl_chat_messages'>, {
|
|
32
32
|
message_type: MessageTypes;
|
|
@@ -84,3 +84,10 @@ export type LogsType = {
|
|
|
84
84
|
export type BroadcastLogType = Tables<'view_broadcast_logs'> & {
|
|
85
85
|
logs: LogsType[];
|
|
86
86
|
};
|
|
87
|
+
export type ChatParticipantOperation = {
|
|
88
|
+
participant_ids: string[];
|
|
89
|
+
operation_type: 'ADD' | 'REMOVE' | 'PROMOTE' | 'DEMOTE';
|
|
90
|
+
};
|
|
91
|
+
export type ChatParticipantOperationPayload = ChatParticipantOperation & {
|
|
92
|
+
chat_ids: string[];
|
|
93
|
+
};
|
package/package.json
CHANGED
package/supabase.types.ts
CHANGED
|
@@ -36,8 +36,8 @@ export interface Database {
|
|
|
36
36
|
created_at: string
|
|
37
37
|
message_payload: Json | null
|
|
38
38
|
org_id: string
|
|
39
|
+
performed_by: string | null
|
|
39
40
|
scheduled_at: string | null
|
|
40
|
-
sent_by: string | null
|
|
41
41
|
status: string | null
|
|
42
42
|
}
|
|
43
43
|
Insert: {
|
|
@@ -47,8 +47,8 @@ export interface Database {
|
|
|
47
47
|
created_at?: string
|
|
48
48
|
message_payload?: Json | null
|
|
49
49
|
org_id?: string
|
|
50
|
+
performed_by?: string | null
|
|
50
51
|
scheduled_at?: string | null
|
|
51
|
-
sent_by?: string | null
|
|
52
52
|
status?: string | null
|
|
53
53
|
}
|
|
54
54
|
Update: {
|
|
@@ -58,8 +58,8 @@ export interface Database {
|
|
|
58
58
|
created_at?: string
|
|
59
59
|
message_payload?: Json | null
|
|
60
60
|
org_id?: string
|
|
61
|
+
performed_by?: string | null
|
|
61
62
|
scheduled_at?: string | null
|
|
62
|
-
sent_by?: string | null
|
|
63
63
|
status?: string | null
|
|
64
64
|
}
|
|
65
65
|
Relationships: [
|
|
@@ -854,12 +854,11 @@ export interface Database {
|
|
|
854
854
|
failed_chats: number | null
|
|
855
855
|
message_payload: Json | null
|
|
856
856
|
org_id: string | null
|
|
857
|
+
performed_by: string | null
|
|
857
858
|
read_member_count: number | null
|
|
858
859
|
read_percentage: number | null
|
|
859
860
|
scheduled_at: string | null
|
|
860
|
-
sent_by: string | null
|
|
861
861
|
sent_chats: number | null
|
|
862
|
-
status: string | null
|
|
863
862
|
total_chats: number | null
|
|
864
863
|
total_member_count: number | null
|
|
865
864
|
}
|
package/types.ts
CHANGED
|
@@ -42,8 +42,8 @@ export type ChatType = Merge<
|
|
|
42
42
|
|
|
43
43
|
export type MediaType = {
|
|
44
44
|
path: string;
|
|
45
|
-
mimetype
|
|
46
|
-
filename
|
|
45
|
+
mimetype?: string;
|
|
46
|
+
filename?: string;
|
|
47
47
|
};
|
|
48
48
|
|
|
49
49
|
export type MessageType = OverrideProperties<
|
|
@@ -161,3 +161,14 @@ export type LogsType = {
|
|
|
161
161
|
export type BroadcastLogType = Tables<'view_broadcast_logs'> & {
|
|
162
162
|
logs: LogsType[];
|
|
163
163
|
};
|
|
164
|
+
|
|
165
|
+
/* ----------------------- CHAT PARTICIPANT OPERATION ----------------------- */
|
|
166
|
+
|
|
167
|
+
export type ChatParticipantOperation = {
|
|
168
|
+
participant_ids: string[];
|
|
169
|
+
operation_type: 'ADD' | 'REMOVE' | 'PROMOTE' | 'DEMOTE';
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
export type ChatParticipantOperationPayload = ChatParticipantOperation & {
|
|
173
|
+
chat_ids: string[];
|
|
174
|
+
};
|