@periskope/types 0.6.140 → 0.6.142
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 +56 -0
- package/dist/types.d.ts +1 -0
- package/package.json +1 -1
- package/supabase.types.ts +56 -0
- package/types.ts +1 -0
package/dist/supabase.types.d.ts
CHANGED
|
@@ -161,6 +161,60 @@ export type Database = {
|
|
|
161
161
|
};
|
|
162
162
|
Relationships: [];
|
|
163
163
|
};
|
|
164
|
+
tbl_automation_rules: {
|
|
165
|
+
Row: {
|
|
166
|
+
actions: Json;
|
|
167
|
+
conditions: Json;
|
|
168
|
+
created_at: string;
|
|
169
|
+
id: string;
|
|
170
|
+
is_active: boolean;
|
|
171
|
+
last_updated_at: string;
|
|
172
|
+
last_updated_by: string;
|
|
173
|
+
org_id: string;
|
|
174
|
+
rule_name: string;
|
|
175
|
+
trigger: string;
|
|
176
|
+
};
|
|
177
|
+
Insert: {
|
|
178
|
+
actions: Json;
|
|
179
|
+
conditions: Json;
|
|
180
|
+
created_at?: string;
|
|
181
|
+
id?: string;
|
|
182
|
+
is_active?: boolean;
|
|
183
|
+
last_updated_at?: string;
|
|
184
|
+
last_updated_by: string;
|
|
185
|
+
org_id: string;
|
|
186
|
+
rule_name: string;
|
|
187
|
+
trigger: string;
|
|
188
|
+
};
|
|
189
|
+
Update: {
|
|
190
|
+
actions?: Json;
|
|
191
|
+
conditions?: Json;
|
|
192
|
+
created_at?: string;
|
|
193
|
+
id?: string;
|
|
194
|
+
is_active?: boolean;
|
|
195
|
+
last_updated_at?: string;
|
|
196
|
+
last_updated_by?: string;
|
|
197
|
+
org_id?: string;
|
|
198
|
+
rule_name?: string;
|
|
199
|
+
trigger?: string;
|
|
200
|
+
};
|
|
201
|
+
Relationships: [
|
|
202
|
+
{
|
|
203
|
+
foreignKeyName: "public_tbl_automation_rules_org_id_fkey";
|
|
204
|
+
columns: ["org_id"];
|
|
205
|
+
isOneToOne: false;
|
|
206
|
+
referencedRelation: "tbl_org";
|
|
207
|
+
referencedColumns: ["org_id"];
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
foreignKeyName: "public_tbl_automation_rules_org_id_fkey";
|
|
211
|
+
columns: ["org_id"];
|
|
212
|
+
isOneToOne: false;
|
|
213
|
+
referencedRelation: "view_org";
|
|
214
|
+
referencedColumns: ["org_id"];
|
|
215
|
+
}
|
|
216
|
+
];
|
|
217
|
+
};
|
|
164
218
|
tbl_broadcast_logs: {
|
|
165
219
|
Row: {
|
|
166
220
|
broadcast_id: string;
|
|
@@ -1818,6 +1872,8 @@ export type Database = {
|
|
|
1818
1872
|
chat_id_input?: string[];
|
|
1819
1873
|
with_members?: boolean;
|
|
1820
1874
|
last_updated_at?: string;
|
|
1875
|
+
batch_limit?: number;
|
|
1876
|
+
batch_offset?: number;
|
|
1821
1877
|
};
|
|
1822
1878
|
Returns: Json;
|
|
1823
1879
|
};
|
package/dist/types.d.ts
CHANGED
|
@@ -96,6 +96,7 @@ export type ChatMemberType = Merge<Tables<'tbl_chat_participants'>, Tables<'tbl_
|
|
|
96
96
|
export type ChatType = Merge<Tables<'view_chats'>, {
|
|
97
97
|
chat_id: string;
|
|
98
98
|
latest_message: MessageType | null;
|
|
99
|
+
latest_message_timestamp: number | null;
|
|
99
100
|
members: {
|
|
100
101
|
[key: string]: ChatMemberType;
|
|
101
102
|
} | null;
|
package/package.json
CHANGED
package/supabase.types.ts
CHANGED
|
@@ -160,6 +160,60 @@ export type Database = {
|
|
|
160
160
|
}
|
|
161
161
|
Relationships: []
|
|
162
162
|
}
|
|
163
|
+
tbl_automation_rules: {
|
|
164
|
+
Row: {
|
|
165
|
+
actions: Json
|
|
166
|
+
conditions: Json
|
|
167
|
+
created_at: string
|
|
168
|
+
id: string
|
|
169
|
+
is_active: boolean
|
|
170
|
+
last_updated_at: string
|
|
171
|
+
last_updated_by: string
|
|
172
|
+
org_id: string
|
|
173
|
+
rule_name: string
|
|
174
|
+
trigger: string
|
|
175
|
+
}
|
|
176
|
+
Insert: {
|
|
177
|
+
actions: Json
|
|
178
|
+
conditions: Json
|
|
179
|
+
created_at?: string
|
|
180
|
+
id?: string
|
|
181
|
+
is_active?: boolean
|
|
182
|
+
last_updated_at?: string
|
|
183
|
+
last_updated_by: string
|
|
184
|
+
org_id: string
|
|
185
|
+
rule_name: string
|
|
186
|
+
trigger: string
|
|
187
|
+
}
|
|
188
|
+
Update: {
|
|
189
|
+
actions?: Json
|
|
190
|
+
conditions?: Json
|
|
191
|
+
created_at?: string
|
|
192
|
+
id?: string
|
|
193
|
+
is_active?: boolean
|
|
194
|
+
last_updated_at?: string
|
|
195
|
+
last_updated_by?: string
|
|
196
|
+
org_id?: string
|
|
197
|
+
rule_name?: string
|
|
198
|
+
trigger?: string
|
|
199
|
+
}
|
|
200
|
+
Relationships: [
|
|
201
|
+
{
|
|
202
|
+
foreignKeyName: "public_tbl_automation_rules_org_id_fkey"
|
|
203
|
+
columns: ["org_id"]
|
|
204
|
+
isOneToOne: false
|
|
205
|
+
referencedRelation: "tbl_org"
|
|
206
|
+
referencedColumns: ["org_id"]
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
foreignKeyName: "public_tbl_automation_rules_org_id_fkey"
|
|
210
|
+
columns: ["org_id"]
|
|
211
|
+
isOneToOne: false
|
|
212
|
+
referencedRelation: "view_org"
|
|
213
|
+
referencedColumns: ["org_id"]
|
|
214
|
+
},
|
|
215
|
+
]
|
|
216
|
+
}
|
|
163
217
|
tbl_broadcast_logs: {
|
|
164
218
|
Row: {
|
|
165
219
|
broadcast_id: string
|
|
@@ -1829,6 +1883,8 @@ export type Database = {
|
|
|
1829
1883
|
chat_id_input?: string[]
|
|
1830
1884
|
with_members?: boolean
|
|
1831
1885
|
last_updated_at?: string
|
|
1886
|
+
batch_limit?: number
|
|
1887
|
+
batch_offset?: number
|
|
1832
1888
|
}
|
|
1833
1889
|
Returns: Json
|
|
1834
1890
|
}
|
package/types.ts
CHANGED
|
@@ -128,6 +128,7 @@ export type ChatType = Merge<
|
|
|
128
128
|
{
|
|
129
129
|
chat_id: string;
|
|
130
130
|
latest_message: MessageType | null;
|
|
131
|
+
latest_message_timestamp: number | null;
|
|
131
132
|
members: { [key: string]: ChatMemberType } | null;
|
|
132
133
|
chat_type: 'user' | 'group' | 'business' | 'unknown';
|
|
133
134
|
chat_access: { [key: string]: boolean };
|