@flowselections/floriday-afhandeling-module 1.0.7 → 1.0.9
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-lib/components/afhandeling/LeveringenPage.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/LeveringenPage.js +9 -67
- package/dist-lib/components/afhandeling/NieuweLeveringPage.d.ts +2 -0
- package/dist-lib/components/afhandeling/NieuweLeveringPage.d.ts.map +1 -0
- package/dist-lib/components/afhandeling/NieuweLeveringPage.js +7 -0
- package/dist-lib/components/afhandeling/PickAgendaView.d.ts +6 -0
- package/dist-lib/components/afhandeling/PickAgendaView.d.ts.map +1 -0
- package/dist-lib/components/afhandeling/PickAgendaView.js +31 -0
- package/dist-lib/components/afhandeling/PickingPage.d.ts +2 -0
- package/dist-lib/components/afhandeling/PickingPage.d.ts.map +1 -0
- package/dist-lib/components/afhandeling/PickingPage.js +5 -0
- package/dist-lib/components/afhandeling/PlanningAgendaPage.d.ts +9 -0
- package/dist-lib/components/afhandeling/PlanningAgendaPage.d.ts.map +1 -0
- package/dist-lib/components/afhandeling/PlanningAgendaPage.js +7 -0
- package/dist-lib/components/afhandeling/VervoerderForm.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/VervoerderForm.js +24 -10
- package/dist-lib/components/afhandeling/WeekAgendaView.d.ts +12 -0
- package/dist-lib/components/afhandeling/WeekAgendaView.d.ts.map +1 -0
- package/dist-lib/components/afhandeling/WeekAgendaView.js +107 -0
- package/dist-lib/components/pickstation/LanguagePicker.d.ts +5 -0
- package/dist-lib/components/pickstation/LanguagePicker.d.ts.map +1 -0
- package/dist-lib/components/pickstation/LanguagePicker.js +5 -0
- package/dist-lib/components/pickstation/PakbonTemplate.d.ts +17 -0
- package/dist-lib/components/pickstation/PakbonTemplate.d.ts.map +1 -0
- package/dist-lib/components/pickstation/PakbonTemplate.js +74 -0
- package/dist-lib/components/pickstation/printDocuments.d.ts +3 -0
- package/dist-lib/components/pickstation/printDocuments.d.ts.map +1 -0
- package/dist-lib/components/pickstation/printDocuments.js +53 -0
- package/dist-lib/components/settings/AfhandelingSettingsCard.d.ts +2 -0
- package/dist-lib/components/settings/AfhandelingSettingsCard.d.ts.map +1 -0
- package/dist-lib/components/settings/AfhandelingSettingsCard.js +60 -0
- package/dist-lib/components/settings/VervoerdersSettingsCard.d.ts +2 -0
- package/dist-lib/components/settings/VervoerdersSettingsCard.d.ts.map +1 -0
- package/dist-lib/components/settings/VervoerdersSettingsCard.js +30 -0
- package/dist-lib/hooks/useOrderPlanning.d.ts +14 -0
- package/dist-lib/hooks/useOrderPlanning.d.ts.map +1 -0
- package/dist-lib/hooks/useOrderPlanning.js +90 -0
- package/dist-lib/index.d.ts +6 -0
- package/dist-lib/index.d.ts.map +1 -1
- package/dist-lib/index.js +17 -6
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +2206 -138
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +2206 -138
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +2206 -138
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +2252 -126
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.js +9 -1
- package/dist-lib/lib/afhandelingSettings.functions.d.ts +14338 -0
- package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -0
- package/dist-lib/lib/afhandelingSettings.functions.js +73 -0
- package/dist-lib/lib/carriers.functions.d.ts +19092 -10812
- package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
- package/dist-lib/lib/carriers.functions.js +43 -6
- package/dist-lib/lib/floriday.functions.d.ts +2207 -138
- package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday.functions.js +6 -1
- package/dist-lib/lib/pickDate.d.ts +21 -0
- package/dist-lib/lib/pickDate.d.ts.map +1 -0
- package/dist-lib/lib/pickDate.js +71 -0
- package/dist-lib/lib/pickstationI18n.d.ts +31 -0
- package/dist-lib/lib/pickstationI18n.d.ts.map +1 -0
- package/dist-lib/lib/pickstationI18n.js +147 -0
- package/dist-lib/lib/pickstationOrders.server.d.ts +9 -0
- package/dist-lib/lib/pickstationOrders.server.d.ts.map +1 -0
- package/dist-lib/lib/pickstationOrders.server.js +244 -0
- package/dist-lib/lib/pickstationTypes.d.ts +17 -0
- package/dist-lib/lib/pickstationTypes.d.ts.map +1 -0
- package/dist-lib/lib/pickstationTypes.js +1 -0
- package/dist-lib/lib/planning.d.ts +66 -0
- package/dist-lib/lib/planning.d.ts.map +1 -0
- package/dist-lib/lib/planning.js +180 -0
- package/package.json +12 -6
|
@@ -2,6 +2,39 @@ import type { Database } from './types';
|
|
|
2
2
|
export declare const requireSupabaseAuth: import("@tanstack/start-client-core").FunctionMiddlewareAfterServer<{}, unknown, undefined, {
|
|
3
3
|
supabase: import("@supabase/supabase-js").SupabaseClient<Database, "public", "public", {
|
|
4
4
|
Tables: {
|
|
5
|
+
afhandeling_settings: {
|
|
6
|
+
Row: {
|
|
7
|
+
created_at: string;
|
|
8
|
+
id: string;
|
|
9
|
+
max_workdays_earlier_pick: number;
|
|
10
|
+
pick_days_before_transport: number;
|
|
11
|
+
pick_distribution_enabled: boolean;
|
|
12
|
+
transport_register_days_before: number;
|
|
13
|
+
updated_at: string;
|
|
14
|
+
user_id: string;
|
|
15
|
+
};
|
|
16
|
+
Insert: {
|
|
17
|
+
created_at?: string;
|
|
18
|
+
id?: string;
|
|
19
|
+
max_workdays_earlier_pick?: number;
|
|
20
|
+
pick_days_before_transport?: number;
|
|
21
|
+
pick_distribution_enabled?: boolean;
|
|
22
|
+
transport_register_days_before?: number;
|
|
23
|
+
updated_at?: string;
|
|
24
|
+
user_id: string;
|
|
25
|
+
};
|
|
26
|
+
Update: {
|
|
27
|
+
created_at?: string;
|
|
28
|
+
id?: string;
|
|
29
|
+
max_workdays_earlier_pick?: number;
|
|
30
|
+
pick_days_before_transport?: number;
|
|
31
|
+
pick_distribution_enabled?: boolean;
|
|
32
|
+
transport_register_days_before?: number;
|
|
33
|
+
updated_at?: string;
|
|
34
|
+
user_id?: string;
|
|
35
|
+
};
|
|
36
|
+
Relationships: [];
|
|
37
|
+
};
|
|
5
38
|
agenda_connections: {
|
|
6
39
|
Row: {
|
|
7
40
|
account_email: string | null;
|
|
@@ -188,6 +221,156 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
188
221
|
};
|
|
189
222
|
Relationships: [];
|
|
190
223
|
};
|
|
224
|
+
app_settings: {
|
|
225
|
+
Row: {
|
|
226
|
+
created_at: string;
|
|
227
|
+
id: string;
|
|
228
|
+
key: string;
|
|
229
|
+
updated_at: string;
|
|
230
|
+
value: string | null;
|
|
231
|
+
};
|
|
232
|
+
Insert: {
|
|
233
|
+
created_at?: string;
|
|
234
|
+
id?: string;
|
|
235
|
+
key: string;
|
|
236
|
+
updated_at?: string;
|
|
237
|
+
value?: string | null;
|
|
238
|
+
};
|
|
239
|
+
Update: {
|
|
240
|
+
created_at?: string;
|
|
241
|
+
id?: string;
|
|
242
|
+
key?: string;
|
|
243
|
+
updated_at?: string;
|
|
244
|
+
value?: string | null;
|
|
245
|
+
};
|
|
246
|
+
Relationships: [];
|
|
247
|
+
};
|
|
248
|
+
booking_items: {
|
|
249
|
+
Row: {
|
|
250
|
+
booking_id: string;
|
|
251
|
+
created_at: string;
|
|
252
|
+
extra_id: string;
|
|
253
|
+
id: string;
|
|
254
|
+
quantity: number;
|
|
255
|
+
total_price: number;
|
|
256
|
+
unit_price: number;
|
|
257
|
+
};
|
|
258
|
+
Insert: {
|
|
259
|
+
booking_id: string;
|
|
260
|
+
created_at?: string;
|
|
261
|
+
extra_id: string;
|
|
262
|
+
id?: string;
|
|
263
|
+
quantity?: number;
|
|
264
|
+
total_price?: number;
|
|
265
|
+
unit_price?: number;
|
|
266
|
+
};
|
|
267
|
+
Update: {
|
|
268
|
+
booking_id?: string;
|
|
269
|
+
created_at?: string;
|
|
270
|
+
extra_id?: string;
|
|
271
|
+
id?: string;
|
|
272
|
+
quantity?: number;
|
|
273
|
+
total_price?: number;
|
|
274
|
+
unit_price?: number;
|
|
275
|
+
};
|
|
276
|
+
Relationships: [{
|
|
277
|
+
foreignKeyName: "booking_items_booking_id_fkey";
|
|
278
|
+
columns: ["booking_id"];
|
|
279
|
+
isOneToOne: false;
|
|
280
|
+
referencedRelation: "bookings";
|
|
281
|
+
referencedColumns: ["id"];
|
|
282
|
+
}, {
|
|
283
|
+
foreignKeyName: "booking_items_extra_id_fkey";
|
|
284
|
+
columns: ["extra_id"];
|
|
285
|
+
isOneToOne: false;
|
|
286
|
+
referencedRelation: "extras";
|
|
287
|
+
referencedColumns: ["id"];
|
|
288
|
+
}];
|
|
289
|
+
};
|
|
290
|
+
bookings: {
|
|
291
|
+
Row: {
|
|
292
|
+
company_name: string | null;
|
|
293
|
+
conflict_checked_at: string | null;
|
|
294
|
+
conflict_reason: string | null;
|
|
295
|
+
created_at: string;
|
|
296
|
+
created_by_role: string | null;
|
|
297
|
+
customer_email: string | null;
|
|
298
|
+
customer_name: string | null;
|
|
299
|
+
end_time: string;
|
|
300
|
+
exact_debiteur_id: string | null;
|
|
301
|
+
has_conflict: boolean;
|
|
302
|
+
id: string;
|
|
303
|
+
invoice_run_id: string | null;
|
|
304
|
+
invoice_status: string | null;
|
|
305
|
+
invoiced_at: string | null;
|
|
306
|
+
notes: string | null;
|
|
307
|
+
number_of_people: number;
|
|
308
|
+
room_id: string;
|
|
309
|
+
start_time: string;
|
|
310
|
+
status: string;
|
|
311
|
+
total_excl_vat: number | null;
|
|
312
|
+
total_incl_vat: number | null;
|
|
313
|
+
user_id: string | null;
|
|
314
|
+
vat_amount: number | null;
|
|
315
|
+
};
|
|
316
|
+
Insert: {
|
|
317
|
+
company_name?: string | null;
|
|
318
|
+
conflict_checked_at?: string | null;
|
|
319
|
+
conflict_reason?: string | null;
|
|
320
|
+
created_at?: string;
|
|
321
|
+
created_by_role?: string | null;
|
|
322
|
+
customer_email?: string | null;
|
|
323
|
+
customer_name?: string | null;
|
|
324
|
+
end_time: string;
|
|
325
|
+
exact_debiteur_id?: string | null;
|
|
326
|
+
has_conflict?: boolean;
|
|
327
|
+
id?: string;
|
|
328
|
+
invoice_run_id?: string | null;
|
|
329
|
+
invoice_status?: string | null;
|
|
330
|
+
invoiced_at?: string | null;
|
|
331
|
+
notes?: string | null;
|
|
332
|
+
number_of_people?: number;
|
|
333
|
+
room_id: string;
|
|
334
|
+
start_time: string;
|
|
335
|
+
status?: string;
|
|
336
|
+
total_excl_vat?: number | null;
|
|
337
|
+
total_incl_vat?: number | null;
|
|
338
|
+
user_id?: string | null;
|
|
339
|
+
vat_amount?: number | null;
|
|
340
|
+
};
|
|
341
|
+
Update: {
|
|
342
|
+
company_name?: string | null;
|
|
343
|
+
conflict_checked_at?: string | null;
|
|
344
|
+
conflict_reason?: string | null;
|
|
345
|
+
created_at?: string;
|
|
346
|
+
created_by_role?: string | null;
|
|
347
|
+
customer_email?: string | null;
|
|
348
|
+
customer_name?: string | null;
|
|
349
|
+
end_time?: string;
|
|
350
|
+
exact_debiteur_id?: string | null;
|
|
351
|
+
has_conflict?: boolean;
|
|
352
|
+
id?: string;
|
|
353
|
+
invoice_run_id?: string | null;
|
|
354
|
+
invoice_status?: string | null;
|
|
355
|
+
invoiced_at?: string | null;
|
|
356
|
+
notes?: string | null;
|
|
357
|
+
number_of_people?: number;
|
|
358
|
+
room_id?: string;
|
|
359
|
+
start_time?: string;
|
|
360
|
+
status?: string;
|
|
361
|
+
total_excl_vat?: number | null;
|
|
362
|
+
total_incl_vat?: number | null;
|
|
363
|
+
user_id?: string | null;
|
|
364
|
+
vat_amount?: number | null;
|
|
365
|
+
};
|
|
366
|
+
Relationships: [{
|
|
367
|
+
foreignKeyName: "bookings_room_id_fkey";
|
|
368
|
+
columns: ["room_id"];
|
|
369
|
+
isOneToOne: false;
|
|
370
|
+
referencedRelation: "rooms";
|
|
371
|
+
referencedColumns: ["id"];
|
|
372
|
+
}];
|
|
373
|
+
};
|
|
191
374
|
bugs: {
|
|
192
375
|
Row: {
|
|
193
376
|
attachment_url: string | null;
|
|
@@ -262,9 +445,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
262
445
|
delivery_days: number | null;
|
|
263
446
|
email: string | null;
|
|
264
447
|
id: string;
|
|
448
|
+
is_default: boolean;
|
|
265
449
|
name: string;
|
|
266
450
|
notes: string | null;
|
|
267
451
|
phone: string | null;
|
|
452
|
+
pickup_moments: import("./types").Json;
|
|
453
|
+
signup_days_before_delivery: number;
|
|
268
454
|
signup_time_1: string | null;
|
|
269
455
|
signup_time_2: string | null;
|
|
270
456
|
updated_at: string;
|
|
@@ -277,9 +463,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
277
463
|
delivery_days?: number | null;
|
|
278
464
|
email?: string | null;
|
|
279
465
|
id?: string;
|
|
466
|
+
is_default?: boolean;
|
|
280
467
|
name: string;
|
|
281
468
|
notes?: string | null;
|
|
282
469
|
phone?: string | null;
|
|
470
|
+
pickup_moments?: import("./types").Json;
|
|
471
|
+
signup_days_before_delivery?: number;
|
|
283
472
|
signup_time_1?: string | null;
|
|
284
473
|
signup_time_2?: string | null;
|
|
285
474
|
updated_at?: string;
|
|
@@ -292,9 +481,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
292
481
|
delivery_days?: number | null;
|
|
293
482
|
email?: string | null;
|
|
294
483
|
id?: string;
|
|
484
|
+
is_default?: boolean;
|
|
295
485
|
name?: string;
|
|
296
486
|
notes?: string | null;
|
|
297
487
|
phone?: string | null;
|
|
488
|
+
pickup_moments?: import("./types").Json;
|
|
489
|
+
signup_days_before_delivery?: number;
|
|
298
490
|
signup_time_1?: string | null;
|
|
299
491
|
signup_time_2?: string | null;
|
|
300
492
|
updated_at?: string;
|
|
@@ -1019,17 +1211,26 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
1019
1211
|
created_at: string;
|
|
1020
1212
|
created_by: string | null;
|
|
1021
1213
|
display_name: string | null;
|
|
1214
|
+
gmail_history_id: string | null;
|
|
1215
|
+
gmail_watch_expires_at: string | null;
|
|
1216
|
+
graph_subscription_expires_at: string | null;
|
|
1217
|
+
graph_subscription_id: string | null;
|
|
1022
1218
|
id: string;
|
|
1023
1219
|
imap_host: string | null;
|
|
1220
|
+
imap_last_uid: number | null;
|
|
1024
1221
|
imap_password_encrypted: string | null;
|
|
1025
1222
|
imap_port: number | null;
|
|
1026
1223
|
imap_secure: boolean | null;
|
|
1224
|
+
imap_uid_validity: number | null;
|
|
1027
1225
|
imap_username: string | null;
|
|
1028
1226
|
is_active: boolean;
|
|
1029
1227
|
last_error: string | null;
|
|
1228
|
+
last_event_at: string | null;
|
|
1030
1229
|
last_verified_at: string | null;
|
|
1031
1230
|
oauth_mode: string | null;
|
|
1032
1231
|
provider: string;
|
|
1232
|
+
purpose_assignments: import("./types").Json;
|
|
1233
|
+
realtime_mode: string;
|
|
1033
1234
|
refresh_token_encrypted: string | null;
|
|
1034
1235
|
scopes: string[] | null;
|
|
1035
1236
|
smtp_host: string | null;
|
|
@@ -1049,17 +1250,26 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
1049
1250
|
created_at?: string;
|
|
1050
1251
|
created_by?: string | null;
|
|
1051
1252
|
display_name?: string | null;
|
|
1253
|
+
gmail_history_id?: string | null;
|
|
1254
|
+
gmail_watch_expires_at?: string | null;
|
|
1255
|
+
graph_subscription_expires_at?: string | null;
|
|
1256
|
+
graph_subscription_id?: string | null;
|
|
1052
1257
|
id?: string;
|
|
1053
1258
|
imap_host?: string | null;
|
|
1259
|
+
imap_last_uid?: number | null;
|
|
1054
1260
|
imap_password_encrypted?: string | null;
|
|
1055
1261
|
imap_port?: number | null;
|
|
1056
1262
|
imap_secure?: boolean | null;
|
|
1263
|
+
imap_uid_validity?: number | null;
|
|
1057
1264
|
imap_username?: string | null;
|
|
1058
1265
|
is_active?: boolean;
|
|
1059
1266
|
last_error?: string | null;
|
|
1267
|
+
last_event_at?: string | null;
|
|
1060
1268
|
last_verified_at?: string | null;
|
|
1061
1269
|
oauth_mode?: string | null;
|
|
1062
1270
|
provider: string;
|
|
1271
|
+
purpose_assignments?: import("./types").Json;
|
|
1272
|
+
realtime_mode?: string;
|
|
1063
1273
|
refresh_token_encrypted?: string | null;
|
|
1064
1274
|
scopes?: string[] | null;
|
|
1065
1275
|
smtp_host?: string | null;
|
|
@@ -1079,17 +1289,26 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
1079
1289
|
created_at?: string;
|
|
1080
1290
|
created_by?: string | null;
|
|
1081
1291
|
display_name?: string | null;
|
|
1292
|
+
gmail_history_id?: string | null;
|
|
1293
|
+
gmail_watch_expires_at?: string | null;
|
|
1294
|
+
graph_subscription_expires_at?: string | null;
|
|
1295
|
+
graph_subscription_id?: string | null;
|
|
1082
1296
|
id?: string;
|
|
1083
1297
|
imap_host?: string | null;
|
|
1298
|
+
imap_last_uid?: number | null;
|
|
1084
1299
|
imap_password_encrypted?: string | null;
|
|
1085
1300
|
imap_port?: number | null;
|
|
1086
1301
|
imap_secure?: boolean | null;
|
|
1302
|
+
imap_uid_validity?: number | null;
|
|
1087
1303
|
imap_username?: string | null;
|
|
1088
1304
|
is_active?: boolean;
|
|
1089
1305
|
last_error?: string | null;
|
|
1306
|
+
last_event_at?: string | null;
|
|
1090
1307
|
last_verified_at?: string | null;
|
|
1091
1308
|
oauth_mode?: string | null;
|
|
1092
1309
|
provider?: string;
|
|
1310
|
+
purpose_assignments?: import("./types").Json;
|
|
1311
|
+
realtime_mode?: string;
|
|
1093
1312
|
refresh_token_encrypted?: string | null;
|
|
1094
1313
|
scopes?: string[] | null;
|
|
1095
1314
|
smtp_host?: string | null;
|
|
@@ -1103,6 +1322,195 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
1103
1322
|
};
|
|
1104
1323
|
Relationships: [];
|
|
1105
1324
|
};
|
|
1325
|
+
email_auth_events: {
|
|
1326
|
+
Row: {
|
|
1327
|
+
connection_id: string;
|
|
1328
|
+
consumed_at: string | null;
|
|
1329
|
+
created_at: string;
|
|
1330
|
+
event_type: string;
|
|
1331
|
+
external_id: string | null;
|
|
1332
|
+
id: string;
|
|
1333
|
+
payload: import("./types").Json;
|
|
1334
|
+
provider: string;
|
|
1335
|
+
received_at: string;
|
|
1336
|
+
};
|
|
1337
|
+
Insert: {
|
|
1338
|
+
connection_id: string;
|
|
1339
|
+
consumed_at?: string | null;
|
|
1340
|
+
created_at?: string;
|
|
1341
|
+
event_type: string;
|
|
1342
|
+
external_id?: string | null;
|
|
1343
|
+
id?: string;
|
|
1344
|
+
payload?: import("./types").Json;
|
|
1345
|
+
provider: string;
|
|
1346
|
+
received_at?: string;
|
|
1347
|
+
};
|
|
1348
|
+
Update: {
|
|
1349
|
+
connection_id?: string;
|
|
1350
|
+
consumed_at?: string | null;
|
|
1351
|
+
created_at?: string;
|
|
1352
|
+
event_type?: string;
|
|
1353
|
+
external_id?: string | null;
|
|
1354
|
+
id?: string;
|
|
1355
|
+
payload?: import("./types").Json;
|
|
1356
|
+
provider?: string;
|
|
1357
|
+
received_at?: string;
|
|
1358
|
+
};
|
|
1359
|
+
Relationships: [{
|
|
1360
|
+
foreignKeyName: "email_auth_events_connection_id_fkey";
|
|
1361
|
+
columns: ["connection_id"];
|
|
1362
|
+
isOneToOne: false;
|
|
1363
|
+
referencedRelation: "email_auth_connections";
|
|
1364
|
+
referencedColumns: ["id"];
|
|
1365
|
+
}, {
|
|
1366
|
+
foreignKeyName: "email_auth_events_connection_id_fkey";
|
|
1367
|
+
columns: ["connection_id"];
|
|
1368
|
+
isOneToOne: false;
|
|
1369
|
+
referencedRelation: "email_auth_connections_safe";
|
|
1370
|
+
referencedColumns: ["id"];
|
|
1371
|
+
}];
|
|
1372
|
+
};
|
|
1373
|
+
email_auth_outbox: {
|
|
1374
|
+
Row: {
|
|
1375
|
+
attempts: number;
|
|
1376
|
+
bcc_addresses: string[];
|
|
1377
|
+
cc_addresses: string[];
|
|
1378
|
+
connection_id: string | null;
|
|
1379
|
+
created_at: string;
|
|
1380
|
+
created_by: string | null;
|
|
1381
|
+
external_message_id: string | null;
|
|
1382
|
+
headers: import("./types").Json;
|
|
1383
|
+
html_body: string | null;
|
|
1384
|
+
id: string;
|
|
1385
|
+
last_error: string | null;
|
|
1386
|
+
purpose: string;
|
|
1387
|
+
reply_to: string | null;
|
|
1388
|
+
scheduled_at: string;
|
|
1389
|
+
sent_at: string | null;
|
|
1390
|
+
status: string;
|
|
1391
|
+
subject: string;
|
|
1392
|
+
text_body: string | null;
|
|
1393
|
+
to_addresses: string[];
|
|
1394
|
+
updated_at: string;
|
|
1395
|
+
};
|
|
1396
|
+
Insert: {
|
|
1397
|
+
attempts?: number;
|
|
1398
|
+
bcc_addresses?: string[];
|
|
1399
|
+
cc_addresses?: string[];
|
|
1400
|
+
connection_id?: string | null;
|
|
1401
|
+
created_at?: string;
|
|
1402
|
+
created_by?: string | null;
|
|
1403
|
+
external_message_id?: string | null;
|
|
1404
|
+
headers?: import("./types").Json;
|
|
1405
|
+
html_body?: string | null;
|
|
1406
|
+
id?: string;
|
|
1407
|
+
last_error?: string | null;
|
|
1408
|
+
purpose: string;
|
|
1409
|
+
reply_to?: string | null;
|
|
1410
|
+
scheduled_at?: string;
|
|
1411
|
+
sent_at?: string | null;
|
|
1412
|
+
status?: string;
|
|
1413
|
+
subject: string;
|
|
1414
|
+
text_body?: string | null;
|
|
1415
|
+
to_addresses: string[];
|
|
1416
|
+
updated_at?: string;
|
|
1417
|
+
};
|
|
1418
|
+
Update: {
|
|
1419
|
+
attempts?: number;
|
|
1420
|
+
bcc_addresses?: string[];
|
|
1421
|
+
cc_addresses?: string[];
|
|
1422
|
+
connection_id?: string | null;
|
|
1423
|
+
created_at?: string;
|
|
1424
|
+
created_by?: string | null;
|
|
1425
|
+
external_message_id?: string | null;
|
|
1426
|
+
headers?: import("./types").Json;
|
|
1427
|
+
html_body?: string | null;
|
|
1428
|
+
id?: string;
|
|
1429
|
+
last_error?: string | null;
|
|
1430
|
+
purpose?: string;
|
|
1431
|
+
reply_to?: string | null;
|
|
1432
|
+
scheduled_at?: string;
|
|
1433
|
+
sent_at?: string | null;
|
|
1434
|
+
status?: string;
|
|
1435
|
+
subject?: string;
|
|
1436
|
+
text_body?: string | null;
|
|
1437
|
+
to_addresses?: string[];
|
|
1438
|
+
updated_at?: string;
|
|
1439
|
+
};
|
|
1440
|
+
Relationships: [{
|
|
1441
|
+
foreignKeyName: "email_auth_outbox_connection_id_fkey";
|
|
1442
|
+
columns: ["connection_id"];
|
|
1443
|
+
isOneToOne: false;
|
|
1444
|
+
referencedRelation: "email_auth_connections";
|
|
1445
|
+
referencedColumns: ["id"];
|
|
1446
|
+
}, {
|
|
1447
|
+
foreignKeyName: "email_auth_outbox_connection_id_fkey";
|
|
1448
|
+
columns: ["connection_id"];
|
|
1449
|
+
isOneToOne: false;
|
|
1450
|
+
referencedRelation: "email_auth_connections_safe";
|
|
1451
|
+
referencedColumns: ["id"];
|
|
1452
|
+
}];
|
|
1453
|
+
};
|
|
1454
|
+
email_auth_purpose_settings: {
|
|
1455
|
+
Row: {
|
|
1456
|
+
purpose: string;
|
|
1457
|
+
reply_to: string | null;
|
|
1458
|
+
updated_at: string;
|
|
1459
|
+
updated_by: string | null;
|
|
1460
|
+
};
|
|
1461
|
+
Insert: {
|
|
1462
|
+
purpose: string;
|
|
1463
|
+
reply_to?: string | null;
|
|
1464
|
+
updated_at?: string;
|
|
1465
|
+
updated_by?: string | null;
|
|
1466
|
+
};
|
|
1467
|
+
Update: {
|
|
1468
|
+
purpose?: string;
|
|
1469
|
+
reply_to?: string | null;
|
|
1470
|
+
updated_at?: string;
|
|
1471
|
+
updated_by?: string | null;
|
|
1472
|
+
};
|
|
1473
|
+
Relationships: [];
|
|
1474
|
+
};
|
|
1475
|
+
email_auth_token_refresh_log: {
|
|
1476
|
+
Row: {
|
|
1477
|
+
connection_id: string;
|
|
1478
|
+
error_message: string | null;
|
|
1479
|
+
id: string;
|
|
1480
|
+
refreshed_at: string;
|
|
1481
|
+
success: boolean;
|
|
1482
|
+
trigger_source: string;
|
|
1483
|
+
};
|
|
1484
|
+
Insert: {
|
|
1485
|
+
connection_id: string;
|
|
1486
|
+
error_message?: string | null;
|
|
1487
|
+
id?: string;
|
|
1488
|
+
refreshed_at?: string;
|
|
1489
|
+
success: boolean;
|
|
1490
|
+
trigger_source: string;
|
|
1491
|
+
};
|
|
1492
|
+
Update: {
|
|
1493
|
+
connection_id?: string;
|
|
1494
|
+
error_message?: string | null;
|
|
1495
|
+
id?: string;
|
|
1496
|
+
refreshed_at?: string;
|
|
1497
|
+
success?: boolean;
|
|
1498
|
+
trigger_source?: string;
|
|
1499
|
+
};
|
|
1500
|
+
Relationships: [{
|
|
1501
|
+
foreignKeyName: "email_auth_token_refresh_log_connection_id_fkey";
|
|
1502
|
+
columns: ["connection_id"];
|
|
1503
|
+
isOneToOne: false;
|
|
1504
|
+
referencedRelation: "email_auth_connections";
|
|
1505
|
+
referencedColumns: ["id"];
|
|
1506
|
+
}, {
|
|
1507
|
+
foreignKeyName: "email_auth_token_refresh_log_connection_id_fkey";
|
|
1508
|
+
columns: ["connection_id"];
|
|
1509
|
+
isOneToOne: false;
|
|
1510
|
+
referencedRelation: "email_auth_connections_safe";
|
|
1511
|
+
referencedColumns: ["id"];
|
|
1512
|
+
}];
|
|
1513
|
+
};
|
|
1106
1514
|
exact_account_analytics_cache: {
|
|
1107
1515
|
Row: {
|
|
1108
1516
|
account_id: string;
|
|
@@ -1826,32 +2234,115 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
1826
2234
|
referencedColumns: ["id"];
|
|
1827
2235
|
}];
|
|
1828
2236
|
};
|
|
1829
|
-
|
|
2237
|
+
exact_push_queue: {
|
|
1830
2238
|
Row: {
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
2239
|
+
attempts: number;
|
|
2240
|
+
connection_id: string;
|
|
2241
|
+
created_at: string;
|
|
2242
|
+
external_id: string | null;
|
|
2243
|
+
id: string;
|
|
2244
|
+
idempotency_hash: string;
|
|
2245
|
+
last_error: string | null;
|
|
2246
|
+
payload: import("./types").Json;
|
|
2247
|
+
status: Database["public"]["Enums"]["exact_push_status"];
|
|
1834
2248
|
updated_at: string;
|
|
1835
2249
|
};
|
|
1836
2250
|
Insert: {
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
2251
|
+
attempts?: number;
|
|
2252
|
+
connection_id: string;
|
|
2253
|
+
created_at?: string;
|
|
2254
|
+
external_id?: string | null;
|
|
2255
|
+
id?: string;
|
|
2256
|
+
idempotency_hash: string;
|
|
2257
|
+
last_error?: string | null;
|
|
2258
|
+
payload: import("./types").Json;
|
|
2259
|
+
status?: Database["public"]["Enums"]["exact_push_status"];
|
|
1840
2260
|
updated_at?: string;
|
|
1841
2261
|
};
|
|
1842
2262
|
Update: {
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
2263
|
+
attempts?: number;
|
|
2264
|
+
connection_id?: string;
|
|
2265
|
+
created_at?: string;
|
|
2266
|
+
external_id?: string | null;
|
|
2267
|
+
id?: string;
|
|
2268
|
+
idempotency_hash?: string;
|
|
2269
|
+
last_error?: string | null;
|
|
2270
|
+
payload?: import("./types").Json;
|
|
2271
|
+
status?: Database["public"]["Enums"]["exact_push_status"];
|
|
2272
|
+
updated_at?: string;
|
|
2273
|
+
};
|
|
2274
|
+
Relationships: [{
|
|
2275
|
+
foreignKeyName: "exact_push_queue_connection_id_fkey";
|
|
2276
|
+
columns: ["connection_id"];
|
|
2277
|
+
isOneToOne: false;
|
|
2278
|
+
referencedRelation: "exact_connections";
|
|
2279
|
+
referencedColumns: ["id"];
|
|
2280
|
+
}];
|
|
2281
|
+
};
|
|
2282
|
+
exact_refresh_locks: {
|
|
2283
|
+
Row: {
|
|
2284
|
+
environment: Database["public"]["Enums"]["exact_env"];
|
|
2285
|
+
locked_by: string;
|
|
2286
|
+
locked_until: string;
|
|
2287
|
+
updated_at: string;
|
|
2288
|
+
};
|
|
2289
|
+
Insert: {
|
|
2290
|
+
environment: Database["public"]["Enums"]["exact_env"];
|
|
2291
|
+
locked_by: string;
|
|
2292
|
+
locked_until: string;
|
|
2293
|
+
updated_at?: string;
|
|
2294
|
+
};
|
|
2295
|
+
Update: {
|
|
2296
|
+
environment?: Database["public"]["Enums"]["exact_env"];
|
|
2297
|
+
locked_by?: string;
|
|
2298
|
+
locked_until?: string;
|
|
2299
|
+
updated_at?: string;
|
|
2300
|
+
};
|
|
2301
|
+
Relationships: [];
|
|
2302
|
+
};
|
|
2303
|
+
exact_settings: {
|
|
2304
|
+
Row: {
|
|
2305
|
+
client_id: string | null;
|
|
2306
|
+
client_secret: string | null;
|
|
2307
|
+
connection_status: string;
|
|
2308
|
+
created_at: string;
|
|
2309
|
+
division_id: string | null;
|
|
2310
|
+
id: string;
|
|
2311
|
+
last_sync_at: string | null;
|
|
2312
|
+
redirect_uri: string | null;
|
|
2313
|
+
updated_at: string;
|
|
2314
|
+
};
|
|
2315
|
+
Insert: {
|
|
2316
|
+
client_id?: string | null;
|
|
2317
|
+
client_secret?: string | null;
|
|
2318
|
+
connection_status?: string;
|
|
2319
|
+
created_at?: string;
|
|
2320
|
+
division_id?: string | null;
|
|
2321
|
+
id?: string;
|
|
2322
|
+
last_sync_at?: string | null;
|
|
2323
|
+
redirect_uri?: string | null;
|
|
2324
|
+
updated_at?: string;
|
|
2325
|
+
};
|
|
2326
|
+
Update: {
|
|
2327
|
+
client_id?: string | null;
|
|
2328
|
+
client_secret?: string | null;
|
|
2329
|
+
connection_status?: string;
|
|
2330
|
+
created_at?: string;
|
|
2331
|
+
division_id?: string | null;
|
|
2332
|
+
id?: string;
|
|
2333
|
+
last_sync_at?: string | null;
|
|
2334
|
+
redirect_uri?: string | null;
|
|
2335
|
+
updated_at?: string;
|
|
2336
|
+
};
|
|
2337
|
+
Relationships: [];
|
|
2338
|
+
};
|
|
2339
|
+
exact_sync_state: {
|
|
2340
|
+
Row: {
|
|
1852
2341
|
connection_id: string;
|
|
1853
2342
|
last_error: string | null;
|
|
1854
2343
|
last_modified_cursor: string | null;
|
|
2344
|
+
last_modified_cursor_customers: string | null;
|
|
2345
|
+
last_modified_cursor_invoices: string | null;
|
|
1855
2346
|
last_synced_at: string | null;
|
|
1856
2347
|
status: string;
|
|
1857
2348
|
updated_at: string;
|
|
@@ -1860,6 +2351,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
1860
2351
|
connection_id: string;
|
|
1861
2352
|
last_error?: string | null;
|
|
1862
2353
|
last_modified_cursor?: string | null;
|
|
2354
|
+
last_modified_cursor_customers?: string | null;
|
|
2355
|
+
last_modified_cursor_invoices?: string | null;
|
|
1863
2356
|
last_synced_at?: string | null;
|
|
1864
2357
|
status?: string;
|
|
1865
2358
|
updated_at?: string;
|
|
@@ -1868,12 +2361,155 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
1868
2361
|
connection_id?: string;
|
|
1869
2362
|
last_error?: string | null;
|
|
1870
2363
|
last_modified_cursor?: string | null;
|
|
2364
|
+
last_modified_cursor_customers?: string | null;
|
|
2365
|
+
last_modified_cursor_invoices?: string | null;
|
|
1871
2366
|
last_synced_at?: string | null;
|
|
1872
2367
|
status?: string;
|
|
1873
2368
|
updated_at?: string;
|
|
1874
2369
|
};
|
|
1875
2370
|
Relationships: [];
|
|
1876
2371
|
};
|
|
2372
|
+
external_customer_providers: {
|
|
2373
|
+
Row: {
|
|
2374
|
+
color: string | null;
|
|
2375
|
+
created_at: string;
|
|
2376
|
+
icon: string | null;
|
|
2377
|
+
is_enabled: boolean;
|
|
2378
|
+
label: string;
|
|
2379
|
+
last_synced_at: string | null;
|
|
2380
|
+
provider: string;
|
|
2381
|
+
sort_order: number;
|
|
2382
|
+
updated_at: string;
|
|
2383
|
+
};
|
|
2384
|
+
Insert: {
|
|
2385
|
+
color?: string | null;
|
|
2386
|
+
created_at?: string;
|
|
2387
|
+
icon?: string | null;
|
|
2388
|
+
is_enabled?: boolean;
|
|
2389
|
+
label: string;
|
|
2390
|
+
last_synced_at?: string | null;
|
|
2391
|
+
provider: string;
|
|
2392
|
+
sort_order?: number;
|
|
2393
|
+
updated_at?: string;
|
|
2394
|
+
};
|
|
2395
|
+
Update: {
|
|
2396
|
+
color?: string | null;
|
|
2397
|
+
created_at?: string;
|
|
2398
|
+
icon?: string | null;
|
|
2399
|
+
is_enabled?: boolean;
|
|
2400
|
+
label?: string;
|
|
2401
|
+
last_synced_at?: string | null;
|
|
2402
|
+
provider?: string;
|
|
2403
|
+
sort_order?: number;
|
|
2404
|
+
updated_at?: string;
|
|
2405
|
+
};
|
|
2406
|
+
Relationships: [];
|
|
2407
|
+
};
|
|
2408
|
+
external_invoice_providers: {
|
|
2409
|
+
Row: {
|
|
2410
|
+
color: string | null;
|
|
2411
|
+
created_at: string;
|
|
2412
|
+
hmac_secret_name: string | null;
|
|
2413
|
+
icon: string | null;
|
|
2414
|
+
is_enabled: boolean;
|
|
2415
|
+
label: string;
|
|
2416
|
+
last_synced_at: string | null;
|
|
2417
|
+
provider: string;
|
|
2418
|
+
push_endpoint: string | null;
|
|
2419
|
+
sort_order: number;
|
|
2420
|
+
status_endpoint: string | null;
|
|
2421
|
+
sync_endpoint: string | null;
|
|
2422
|
+
updated_at: string;
|
|
2423
|
+
};
|
|
2424
|
+
Insert: {
|
|
2425
|
+
color?: string | null;
|
|
2426
|
+
created_at?: string;
|
|
2427
|
+
hmac_secret_name?: string | null;
|
|
2428
|
+
icon?: string | null;
|
|
2429
|
+
is_enabled?: boolean;
|
|
2430
|
+
label: string;
|
|
2431
|
+
last_synced_at?: string | null;
|
|
2432
|
+
provider: string;
|
|
2433
|
+
push_endpoint?: string | null;
|
|
2434
|
+
sort_order?: number;
|
|
2435
|
+
status_endpoint?: string | null;
|
|
2436
|
+
sync_endpoint?: string | null;
|
|
2437
|
+
updated_at?: string;
|
|
2438
|
+
};
|
|
2439
|
+
Update: {
|
|
2440
|
+
color?: string | null;
|
|
2441
|
+
created_at?: string;
|
|
2442
|
+
hmac_secret_name?: string | null;
|
|
2443
|
+
icon?: string | null;
|
|
2444
|
+
is_enabled?: boolean;
|
|
2445
|
+
label?: string;
|
|
2446
|
+
last_synced_at?: string | null;
|
|
2447
|
+
provider?: string;
|
|
2448
|
+
push_endpoint?: string | null;
|
|
2449
|
+
sort_order?: number;
|
|
2450
|
+
status_endpoint?: string | null;
|
|
2451
|
+
sync_endpoint?: string | null;
|
|
2452
|
+
updated_at?: string;
|
|
2453
|
+
};
|
|
2454
|
+
Relationships: [];
|
|
2455
|
+
};
|
|
2456
|
+
extra_categories: {
|
|
2457
|
+
Row: {
|
|
2458
|
+
created_at: string;
|
|
2459
|
+
id: string;
|
|
2460
|
+
name: string;
|
|
2461
|
+
sort_order: number;
|
|
2462
|
+
updated_at: string;
|
|
2463
|
+
};
|
|
2464
|
+
Insert: {
|
|
2465
|
+
created_at?: string;
|
|
2466
|
+
id?: string;
|
|
2467
|
+
name: string;
|
|
2468
|
+
sort_order?: number;
|
|
2469
|
+
updated_at?: string;
|
|
2470
|
+
};
|
|
2471
|
+
Update: {
|
|
2472
|
+
created_at?: string;
|
|
2473
|
+
id?: string;
|
|
2474
|
+
name?: string;
|
|
2475
|
+
sort_order?: number;
|
|
2476
|
+
updated_at?: string;
|
|
2477
|
+
};
|
|
2478
|
+
Relationships: [];
|
|
2479
|
+
};
|
|
2480
|
+
extras: {
|
|
2481
|
+
Row: {
|
|
2482
|
+
category: string;
|
|
2483
|
+
created_at: string;
|
|
2484
|
+
exact_article_id: string | null;
|
|
2485
|
+
id: string;
|
|
2486
|
+
is_active: boolean;
|
|
2487
|
+
name: string;
|
|
2488
|
+
price: number;
|
|
2489
|
+
pricing_type: string;
|
|
2490
|
+
};
|
|
2491
|
+
Insert: {
|
|
2492
|
+
category: string;
|
|
2493
|
+
created_at?: string;
|
|
2494
|
+
exact_article_id?: string | null;
|
|
2495
|
+
id?: string;
|
|
2496
|
+
is_active?: boolean;
|
|
2497
|
+
name: string;
|
|
2498
|
+
price?: number;
|
|
2499
|
+
pricing_type?: string;
|
|
2500
|
+
};
|
|
2501
|
+
Update: {
|
|
2502
|
+
category?: string;
|
|
2503
|
+
created_at?: string;
|
|
2504
|
+
exact_article_id?: string | null;
|
|
2505
|
+
id?: string;
|
|
2506
|
+
is_active?: boolean;
|
|
2507
|
+
name?: string;
|
|
2508
|
+
price?: number;
|
|
2509
|
+
pricing_type?: string;
|
|
2510
|
+
};
|
|
2511
|
+
Relationships: [];
|
|
2512
|
+
};
|
|
1877
2513
|
floricode_connection_settings: {
|
|
1878
2514
|
Row: {
|
|
1879
2515
|
catalog_key: string | null;
|
|
@@ -1964,6 +2600,48 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
1964
2600
|
};
|
|
1965
2601
|
Relationships: [];
|
|
1966
2602
|
};
|
|
2603
|
+
floriday_carriers_cache: {
|
|
2604
|
+
Row: {
|
|
2605
|
+
connection_id: string | null;
|
|
2606
|
+
created_at: string;
|
|
2607
|
+
data: import("./types").Json;
|
|
2608
|
+
fetched_at: string;
|
|
2609
|
+
gln_code: string | null;
|
|
2610
|
+
id: string;
|
|
2611
|
+
name: string | null;
|
|
2612
|
+
organization_id: string;
|
|
2613
|
+
updated_at: string;
|
|
2614
|
+
};
|
|
2615
|
+
Insert: {
|
|
2616
|
+
connection_id?: string | null;
|
|
2617
|
+
created_at?: string;
|
|
2618
|
+
data: import("./types").Json;
|
|
2619
|
+
fetched_at?: string;
|
|
2620
|
+
gln_code?: string | null;
|
|
2621
|
+
id?: string;
|
|
2622
|
+
name?: string | null;
|
|
2623
|
+
organization_id: string;
|
|
2624
|
+
updated_at?: string;
|
|
2625
|
+
};
|
|
2626
|
+
Update: {
|
|
2627
|
+
connection_id?: string | null;
|
|
2628
|
+
created_at?: string;
|
|
2629
|
+
data?: import("./types").Json;
|
|
2630
|
+
fetched_at?: string;
|
|
2631
|
+
gln_code?: string | null;
|
|
2632
|
+
id?: string;
|
|
2633
|
+
name?: string | null;
|
|
2634
|
+
organization_id?: string;
|
|
2635
|
+
updated_at?: string;
|
|
2636
|
+
};
|
|
2637
|
+
Relationships: [{
|
|
2638
|
+
foreignKeyName: "floriday_carriers_cache_connection_id_fkey";
|
|
2639
|
+
columns: ["connection_id"];
|
|
2640
|
+
isOneToOne: false;
|
|
2641
|
+
referencedRelation: "floriday_connections";
|
|
2642
|
+
referencedColumns: ["id"];
|
|
2643
|
+
}];
|
|
2644
|
+
};
|
|
1967
2645
|
floriday_connections: {
|
|
1968
2646
|
Row: {
|
|
1969
2647
|
access_token: string | null;
|
|
@@ -2483,38 +3161,186 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
2483
3161
|
};
|
|
2484
3162
|
Relationships: [];
|
|
2485
3163
|
};
|
|
2486
|
-
|
|
3164
|
+
invoice_push_log: {
|
|
2487
3165
|
Row: {
|
|
3166
|
+
connection_id: string | null;
|
|
2488
3167
|
created_at: string;
|
|
3168
|
+
created_by: string;
|
|
3169
|
+
customer_id: string | null;
|
|
2489
3170
|
id: string;
|
|
2490
|
-
|
|
2491
|
-
|
|
3171
|
+
last_error: string | null;
|
|
3172
|
+
last_polled_at: string | null;
|
|
3173
|
+
payload: import("./types").Json;
|
|
3174
|
+
provider_id: string;
|
|
3175
|
+
queue_id: string | null;
|
|
3176
|
+
status: string;
|
|
2492
3177
|
updated_at: string;
|
|
2493
3178
|
};
|
|
2494
3179
|
Insert: {
|
|
3180
|
+
connection_id?: string | null;
|
|
2495
3181
|
created_at?: string;
|
|
3182
|
+
created_by?: string;
|
|
3183
|
+
customer_id?: string | null;
|
|
2496
3184
|
id?: string;
|
|
2497
|
-
|
|
2498
|
-
|
|
3185
|
+
last_error?: string | null;
|
|
3186
|
+
last_polled_at?: string | null;
|
|
3187
|
+
payload?: import("./types").Json;
|
|
3188
|
+
provider_id: string;
|
|
3189
|
+
queue_id?: string | null;
|
|
3190
|
+
status?: string;
|
|
2499
3191
|
updated_at?: string;
|
|
2500
3192
|
};
|
|
2501
3193
|
Update: {
|
|
3194
|
+
connection_id?: string | null;
|
|
2502
3195
|
created_at?: string;
|
|
3196
|
+
created_by?: string;
|
|
3197
|
+
customer_id?: string | null;
|
|
2503
3198
|
id?: string;
|
|
2504
|
-
|
|
2505
|
-
|
|
3199
|
+
last_error?: string | null;
|
|
3200
|
+
last_polled_at?: string | null;
|
|
3201
|
+
payload?: import("./types").Json;
|
|
3202
|
+
provider_id?: string;
|
|
3203
|
+
queue_id?: string | null;
|
|
3204
|
+
status?: string;
|
|
2506
3205
|
updated_at?: string;
|
|
2507
3206
|
};
|
|
2508
|
-
Relationships: [
|
|
3207
|
+
Relationships: [{
|
|
3208
|
+
foreignKeyName: "invoice_push_log_provider_id_fkey";
|
|
3209
|
+
columns: ["provider_id"];
|
|
3210
|
+
isOneToOne: false;
|
|
3211
|
+
referencedRelation: "external_invoice_providers";
|
|
3212
|
+
referencedColumns: ["provider"];
|
|
3213
|
+
}];
|
|
2509
3214
|
};
|
|
2510
|
-
|
|
3215
|
+
invoice_run_items: {
|
|
2511
3216
|
Row: {
|
|
2512
|
-
|
|
2513
|
-
|
|
3217
|
+
booking_id: string | null;
|
|
3218
|
+
company_name: string | null;
|
|
2514
3219
|
created_at: string;
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
3220
|
+
customer_email: string | null;
|
|
3221
|
+
description: string | null;
|
|
3222
|
+
exact_article_id: string | null;
|
|
3223
|
+
id: string;
|
|
3224
|
+
invoice_run_id: string | null;
|
|
3225
|
+
quantity: number | null;
|
|
3226
|
+
total_excl_vat: number | null;
|
|
3227
|
+
total_incl_vat: number | null;
|
|
3228
|
+
unit_price: number | null;
|
|
3229
|
+
vat_amount: number | null;
|
|
3230
|
+
};
|
|
3231
|
+
Insert: {
|
|
3232
|
+
booking_id?: string | null;
|
|
3233
|
+
company_name?: string | null;
|
|
3234
|
+
created_at?: string;
|
|
3235
|
+
customer_email?: string | null;
|
|
3236
|
+
description?: string | null;
|
|
3237
|
+
exact_article_id?: string | null;
|
|
3238
|
+
id?: string;
|
|
3239
|
+
invoice_run_id?: string | null;
|
|
3240
|
+
quantity?: number | null;
|
|
3241
|
+
total_excl_vat?: number | null;
|
|
3242
|
+
total_incl_vat?: number | null;
|
|
3243
|
+
unit_price?: number | null;
|
|
3244
|
+
vat_amount?: number | null;
|
|
3245
|
+
};
|
|
3246
|
+
Update: {
|
|
3247
|
+
booking_id?: string | null;
|
|
3248
|
+
company_name?: string | null;
|
|
3249
|
+
created_at?: string;
|
|
3250
|
+
customer_email?: string | null;
|
|
3251
|
+
description?: string | null;
|
|
3252
|
+
exact_article_id?: string | null;
|
|
3253
|
+
id?: string;
|
|
3254
|
+
invoice_run_id?: string | null;
|
|
3255
|
+
quantity?: number | null;
|
|
3256
|
+
total_excl_vat?: number | null;
|
|
3257
|
+
total_incl_vat?: number | null;
|
|
3258
|
+
unit_price?: number | null;
|
|
3259
|
+
vat_amount?: number | null;
|
|
3260
|
+
};
|
|
3261
|
+
Relationships: [{
|
|
3262
|
+
foreignKeyName: "invoice_run_items_booking_id_fkey";
|
|
3263
|
+
columns: ["booking_id"];
|
|
3264
|
+
isOneToOne: false;
|
|
3265
|
+
referencedRelation: "bookings";
|
|
3266
|
+
referencedColumns: ["id"];
|
|
3267
|
+
}, {
|
|
3268
|
+
foreignKeyName: "invoice_run_items_invoice_run_id_fkey";
|
|
3269
|
+
columns: ["invoice_run_id"];
|
|
3270
|
+
isOneToOne: false;
|
|
3271
|
+
referencedRelation: "invoice_runs";
|
|
3272
|
+
referencedColumns: ["id"];
|
|
3273
|
+
}];
|
|
3274
|
+
};
|
|
3275
|
+
invoice_runs: {
|
|
3276
|
+
Row: {
|
|
3277
|
+
created_at: string;
|
|
3278
|
+
created_by: string | null;
|
|
3279
|
+
id: string;
|
|
3280
|
+
period_end: string;
|
|
3281
|
+
period_start: string;
|
|
3282
|
+
status: string;
|
|
3283
|
+
total_excl_vat: number | null;
|
|
3284
|
+
total_incl_vat: number | null;
|
|
3285
|
+
vat_amount: number | null;
|
|
3286
|
+
};
|
|
3287
|
+
Insert: {
|
|
3288
|
+
created_at?: string;
|
|
3289
|
+
created_by?: string | null;
|
|
3290
|
+
id?: string;
|
|
3291
|
+
period_end: string;
|
|
3292
|
+
period_start: string;
|
|
3293
|
+
status?: string;
|
|
3294
|
+
total_excl_vat?: number | null;
|
|
3295
|
+
total_incl_vat?: number | null;
|
|
3296
|
+
vat_amount?: number | null;
|
|
3297
|
+
};
|
|
3298
|
+
Update: {
|
|
3299
|
+
created_at?: string;
|
|
3300
|
+
created_by?: string | null;
|
|
3301
|
+
id?: string;
|
|
3302
|
+
period_end?: string;
|
|
3303
|
+
period_start?: string;
|
|
3304
|
+
status?: string;
|
|
3305
|
+
total_excl_vat?: number | null;
|
|
3306
|
+
total_incl_vat?: number | null;
|
|
3307
|
+
vat_amount?: number | null;
|
|
3308
|
+
};
|
|
3309
|
+
Relationships: [];
|
|
3310
|
+
};
|
|
3311
|
+
locations: {
|
|
3312
|
+
Row: {
|
|
3313
|
+
created_at: string;
|
|
3314
|
+
id: string;
|
|
3315
|
+
name: string;
|
|
3316
|
+
sort_order: number;
|
|
3317
|
+
updated_at: string;
|
|
3318
|
+
};
|
|
3319
|
+
Insert: {
|
|
3320
|
+
created_at?: string;
|
|
3321
|
+
id?: string;
|
|
3322
|
+
name: string;
|
|
3323
|
+
sort_order?: number;
|
|
3324
|
+
updated_at?: string;
|
|
3325
|
+
};
|
|
3326
|
+
Update: {
|
|
3327
|
+
created_at?: string;
|
|
3328
|
+
id?: string;
|
|
3329
|
+
name?: string;
|
|
3330
|
+
sort_order?: number;
|
|
3331
|
+
updated_at?: string;
|
|
3332
|
+
};
|
|
3333
|
+
Relationships: [];
|
|
3334
|
+
};
|
|
3335
|
+
mailbox_messages: {
|
|
3336
|
+
Row: {
|
|
3337
|
+
body_html: string | null;
|
|
3338
|
+
body_text: string | null;
|
|
3339
|
+
created_at: string;
|
|
3340
|
+
error_message: string | null;
|
|
3341
|
+
external_id: string | null;
|
|
3342
|
+
from_email: string | null;
|
|
3343
|
+
from_name: string | null;
|
|
2518
3344
|
id: string;
|
|
2519
3345
|
message_id: string | null;
|
|
2520
3346
|
profile_id: string | null;
|
|
@@ -2522,7 +3348,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
2522
3348
|
received_at: string | null;
|
|
2523
3349
|
status: string;
|
|
2524
3350
|
subject: string | null;
|
|
2525
|
-
uid: number;
|
|
3351
|
+
uid: number | null;
|
|
2526
3352
|
updated_at: string;
|
|
2527
3353
|
};
|
|
2528
3354
|
Insert: {
|
|
@@ -2530,6 +3356,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
2530
3356
|
body_text?: string | null;
|
|
2531
3357
|
created_at?: string;
|
|
2532
3358
|
error_message?: string | null;
|
|
3359
|
+
external_id?: string | null;
|
|
2533
3360
|
from_email?: string | null;
|
|
2534
3361
|
from_name?: string | null;
|
|
2535
3362
|
id?: string;
|
|
@@ -2539,7 +3366,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
2539
3366
|
received_at?: string | null;
|
|
2540
3367
|
status?: string;
|
|
2541
3368
|
subject?: string | null;
|
|
2542
|
-
uid
|
|
3369
|
+
uid?: number | null;
|
|
2543
3370
|
updated_at?: string;
|
|
2544
3371
|
};
|
|
2545
3372
|
Update: {
|
|
@@ -2547,6 +3374,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
2547
3374
|
body_text?: string | null;
|
|
2548
3375
|
created_at?: string;
|
|
2549
3376
|
error_message?: string | null;
|
|
3377
|
+
external_id?: string | null;
|
|
2550
3378
|
from_email?: string | null;
|
|
2551
3379
|
from_name?: string | null;
|
|
2552
3380
|
id?: string;
|
|
@@ -2556,7 +3384,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
2556
3384
|
received_at?: string | null;
|
|
2557
3385
|
status?: string;
|
|
2558
3386
|
subject?: string | null;
|
|
2559
|
-
uid?: number;
|
|
3387
|
+
uid?: number | null;
|
|
2560
3388
|
updated_at?: string;
|
|
2561
3389
|
};
|
|
2562
3390
|
Relationships: [{
|
|
@@ -2828,6 +3656,60 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
2828
3656
|
};
|
|
2829
3657
|
Relationships: [];
|
|
2830
3658
|
};
|
|
3659
|
+
monteurs: {
|
|
3660
|
+
Row: {
|
|
3661
|
+
avatar_url: string | null;
|
|
3662
|
+
color: string | null;
|
|
3663
|
+
created_at: string;
|
|
3664
|
+
email: string | null;
|
|
3665
|
+
id: string;
|
|
3666
|
+
is_active: boolean;
|
|
3667
|
+
leave_balance_hours: number;
|
|
3668
|
+
name: string;
|
|
3669
|
+
persnr: number | null;
|
|
3670
|
+
phone: string | null;
|
|
3671
|
+
role: string;
|
|
3672
|
+
tenant_id: string;
|
|
3673
|
+
updated_at: string;
|
|
3674
|
+
};
|
|
3675
|
+
Insert: {
|
|
3676
|
+
avatar_url?: string | null;
|
|
3677
|
+
color?: string | null;
|
|
3678
|
+
created_at?: string;
|
|
3679
|
+
email?: string | null;
|
|
3680
|
+
id?: string;
|
|
3681
|
+
is_active?: boolean;
|
|
3682
|
+
leave_balance_hours?: number;
|
|
3683
|
+
name: string;
|
|
3684
|
+
persnr?: number | null;
|
|
3685
|
+
phone?: string | null;
|
|
3686
|
+
role?: string;
|
|
3687
|
+
tenant_id: string;
|
|
3688
|
+
updated_at?: string;
|
|
3689
|
+
};
|
|
3690
|
+
Update: {
|
|
3691
|
+
avatar_url?: string | null;
|
|
3692
|
+
color?: string | null;
|
|
3693
|
+
created_at?: string;
|
|
3694
|
+
email?: string | null;
|
|
3695
|
+
id?: string;
|
|
3696
|
+
is_active?: boolean;
|
|
3697
|
+
leave_balance_hours?: number;
|
|
3698
|
+
name?: string;
|
|
3699
|
+
persnr?: number | null;
|
|
3700
|
+
phone?: string | null;
|
|
3701
|
+
role?: string;
|
|
3702
|
+
tenant_id?: string;
|
|
3703
|
+
updated_at?: string;
|
|
3704
|
+
};
|
|
3705
|
+
Relationships: [{
|
|
3706
|
+
foreignKeyName: "monteurs_tenant_id_fkey";
|
|
3707
|
+
columns: ["tenant_id"];
|
|
3708
|
+
isOneToOne: false;
|
|
3709
|
+
referencedRelation: "tenants";
|
|
3710
|
+
referencedColumns: ["id"];
|
|
3711
|
+
}];
|
|
3712
|
+
};
|
|
2831
3713
|
notifications: {
|
|
2832
3714
|
Row: {
|
|
2833
3715
|
created_at: string;
|
|
@@ -3437,6 +4319,36 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
3437
4319
|
};
|
|
3438
4320
|
Relationships: [];
|
|
3439
4321
|
};
|
|
4322
|
+
pickstation_print_log: {
|
|
4323
|
+
Row: {
|
|
4324
|
+
customer_name: string | null;
|
|
4325
|
+
documents: string[];
|
|
4326
|
+
id: string;
|
|
4327
|
+
ip_address: string | null;
|
|
4328
|
+
order_id: string;
|
|
4329
|
+
order_number: string | null;
|
|
4330
|
+
printed_at: string;
|
|
4331
|
+
};
|
|
4332
|
+
Insert: {
|
|
4333
|
+
customer_name?: string | null;
|
|
4334
|
+
documents?: string[];
|
|
4335
|
+
id?: string;
|
|
4336
|
+
ip_address?: string | null;
|
|
4337
|
+
order_id: string;
|
|
4338
|
+
order_number?: string | null;
|
|
4339
|
+
printed_at?: string;
|
|
4340
|
+
};
|
|
4341
|
+
Update: {
|
|
4342
|
+
customer_name?: string | null;
|
|
4343
|
+
documents?: string[];
|
|
4344
|
+
id?: string;
|
|
4345
|
+
ip_address?: string | null;
|
|
4346
|
+
order_id?: string;
|
|
4347
|
+
order_number?: string | null;
|
|
4348
|
+
printed_at?: string;
|
|
4349
|
+
};
|
|
4350
|
+
Relationships: [];
|
|
4351
|
+
};
|
|
3440
4352
|
pipeline_settings: {
|
|
3441
4353
|
Row: {
|
|
3442
4354
|
created_at: string;
|
|
@@ -3660,6 +4572,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
3660
4572
|
email: string | null;
|
|
3661
4573
|
id: string;
|
|
3662
4574
|
notification_preferences: import("./types").Json;
|
|
4575
|
+
tenant_id: string | null;
|
|
3663
4576
|
updated_at: string;
|
|
3664
4577
|
};
|
|
3665
4578
|
Insert: {
|
|
@@ -3668,6 +4581,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
3668
4581
|
email?: string | null;
|
|
3669
4582
|
id: string;
|
|
3670
4583
|
notification_preferences?: import("./types").Json;
|
|
4584
|
+
tenant_id?: string | null;
|
|
3671
4585
|
updated_at?: string;
|
|
3672
4586
|
};
|
|
3673
4587
|
Update: {
|
|
@@ -3676,9 +4590,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
3676
4590
|
email?: string | null;
|
|
3677
4591
|
id?: string;
|
|
3678
4592
|
notification_preferences?: import("./types").Json;
|
|
4593
|
+
tenant_id?: string | null;
|
|
3679
4594
|
updated_at?: string;
|
|
3680
4595
|
};
|
|
3681
|
-
Relationships: [
|
|
4596
|
+
Relationships: [{
|
|
4597
|
+
foreignKeyName: "profiles_tenant_id_fkey";
|
|
4598
|
+
columns: ["tenant_id"];
|
|
4599
|
+
isOneToOne: false;
|
|
4600
|
+
referencedRelation: "tenants";
|
|
4601
|
+
referencedColumns: ["id"];
|
|
4602
|
+
}];
|
|
3682
4603
|
};
|
|
3683
4604
|
projects: {
|
|
3684
4605
|
Row: {
|
|
@@ -4382,6 +5303,81 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
4382
5303
|
referencedColumns: ["id"];
|
|
4383
5304
|
}];
|
|
4384
5305
|
};
|
|
5306
|
+
reception_notifications: {
|
|
5307
|
+
Row: {
|
|
5308
|
+
booking_id: string | null;
|
|
5309
|
+
created_at: string;
|
|
5310
|
+
id: string;
|
|
5311
|
+
is_read: boolean;
|
|
5312
|
+
message: string;
|
|
5313
|
+
recipient_email: string | null;
|
|
5314
|
+
title: string;
|
|
5315
|
+
type: string;
|
|
5316
|
+
};
|
|
5317
|
+
Insert: {
|
|
5318
|
+
booking_id?: string | null;
|
|
5319
|
+
created_at?: string;
|
|
5320
|
+
id?: string;
|
|
5321
|
+
is_read?: boolean;
|
|
5322
|
+
message: string;
|
|
5323
|
+
recipient_email?: string | null;
|
|
5324
|
+
title: string;
|
|
5325
|
+
type: string;
|
|
5326
|
+
};
|
|
5327
|
+
Update: {
|
|
5328
|
+
booking_id?: string | null;
|
|
5329
|
+
created_at?: string;
|
|
5330
|
+
id?: string;
|
|
5331
|
+
is_read?: boolean;
|
|
5332
|
+
message?: string;
|
|
5333
|
+
recipient_email?: string | null;
|
|
5334
|
+
title?: string;
|
|
5335
|
+
type?: string;
|
|
5336
|
+
};
|
|
5337
|
+
Relationships: [{
|
|
5338
|
+
foreignKeyName: "reception_notifications_booking_id_fkey";
|
|
5339
|
+
columns: ["booking_id"];
|
|
5340
|
+
isOneToOne: false;
|
|
5341
|
+
referencedRelation: "bookings";
|
|
5342
|
+
referencedColumns: ["id"];
|
|
5343
|
+
}];
|
|
5344
|
+
};
|
|
5345
|
+
rooms: {
|
|
5346
|
+
Row: {
|
|
5347
|
+
capacity: number;
|
|
5348
|
+
color_code: string | null;
|
|
5349
|
+
created_at: string;
|
|
5350
|
+
description: string | null;
|
|
5351
|
+
hourly_rate: number;
|
|
5352
|
+
id: string;
|
|
5353
|
+
image_url: string | null;
|
|
5354
|
+
is_active: boolean;
|
|
5355
|
+
name: string;
|
|
5356
|
+
};
|
|
5357
|
+
Insert: {
|
|
5358
|
+
capacity?: number;
|
|
5359
|
+
color_code?: string | null;
|
|
5360
|
+
created_at?: string;
|
|
5361
|
+
description?: string | null;
|
|
5362
|
+
hourly_rate?: number;
|
|
5363
|
+
id?: string;
|
|
5364
|
+
image_url?: string | null;
|
|
5365
|
+
is_active?: boolean;
|
|
5366
|
+
name: string;
|
|
5367
|
+
};
|
|
5368
|
+
Update: {
|
|
5369
|
+
capacity?: number;
|
|
5370
|
+
color_code?: string | null;
|
|
5371
|
+
created_at?: string;
|
|
5372
|
+
description?: string | null;
|
|
5373
|
+
hourly_rate?: number;
|
|
5374
|
+
id?: string;
|
|
5375
|
+
image_url?: string | null;
|
|
5376
|
+
is_active?: boolean;
|
|
5377
|
+
name?: string;
|
|
5378
|
+
};
|
|
5379
|
+
Relationships: [];
|
|
5380
|
+
};
|
|
4385
5381
|
supplier_products: {
|
|
4386
5382
|
Row: {
|
|
4387
5383
|
article_number: string | null;
|
|
@@ -4475,6 +5471,30 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
4475
5471
|
};
|
|
4476
5472
|
Relationships: [];
|
|
4477
5473
|
};
|
|
5474
|
+
tenants: {
|
|
5475
|
+
Row: {
|
|
5476
|
+
created_at: string;
|
|
5477
|
+
id: string;
|
|
5478
|
+
name: string;
|
|
5479
|
+
slug: string | null;
|
|
5480
|
+
updated_at: string;
|
|
5481
|
+
};
|
|
5482
|
+
Insert: {
|
|
5483
|
+
created_at?: string;
|
|
5484
|
+
id?: string;
|
|
5485
|
+
name?: string;
|
|
5486
|
+
slug?: string | null;
|
|
5487
|
+
updated_at?: string;
|
|
5488
|
+
};
|
|
5489
|
+
Update: {
|
|
5490
|
+
created_at?: string;
|
|
5491
|
+
id?: string;
|
|
5492
|
+
name?: string;
|
|
5493
|
+
slug?: string | null;
|
|
5494
|
+
updated_at?: string;
|
|
5495
|
+
};
|
|
5496
|
+
Relationships: [];
|
|
5497
|
+
};
|
|
4478
5498
|
trade_item_drafts: {
|
|
4479
5499
|
Row: {
|
|
4480
5500
|
connection_id: string | null;
|
|
@@ -4502,59 +5522,122 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
4502
5522
|
};
|
|
4503
5523
|
Relationships: [];
|
|
4504
5524
|
};
|
|
4505
|
-
|
|
5525
|
+
twinfield_connections: {
|
|
4506
5526
|
Row: {
|
|
4507
|
-
|
|
4508
|
-
client_id: string
|
|
5527
|
+
access_token: string | null;
|
|
5528
|
+
client_id: string;
|
|
4509
5529
|
client_secret: string | null;
|
|
4510
|
-
|
|
5530
|
+
cluster_uri: string | null;
|
|
5531
|
+
company_code: string | null;
|
|
5532
|
+
company_name: string | null;
|
|
4511
5533
|
connected_at: string | null;
|
|
4512
5534
|
created_at: string;
|
|
4513
|
-
environment: string
|
|
5535
|
+
environment: string;
|
|
4514
5536
|
id: string;
|
|
4515
|
-
|
|
5537
|
+
is_active: boolean;
|
|
5538
|
+
label: string | null;
|
|
5539
|
+
office_code: string | null;
|
|
5540
|
+
redirect_uri: string;
|
|
4516
5541
|
refresh_token: string | null;
|
|
5542
|
+
token_expires_at: string | null;
|
|
4517
5543
|
updated_at: string;
|
|
4518
5544
|
user_id: string;
|
|
4519
5545
|
};
|
|
4520
5546
|
Insert: {
|
|
4521
|
-
|
|
4522
|
-
client_id
|
|
5547
|
+
access_token?: string | null;
|
|
5548
|
+
client_id: string;
|
|
4523
5549
|
client_secret?: string | null;
|
|
4524
|
-
|
|
5550
|
+
cluster_uri?: string | null;
|
|
5551
|
+
company_code?: string | null;
|
|
5552
|
+
company_name?: string | null;
|
|
4525
5553
|
connected_at?: string | null;
|
|
4526
5554
|
created_at?: string;
|
|
4527
|
-
environment
|
|
5555
|
+
environment: string;
|
|
4528
5556
|
id?: string;
|
|
4529
|
-
|
|
5557
|
+
is_active?: boolean;
|
|
5558
|
+
label?: string | null;
|
|
5559
|
+
office_code?: string | null;
|
|
5560
|
+
redirect_uri: string;
|
|
4530
5561
|
refresh_token?: string | null;
|
|
5562
|
+
token_expires_at?: string | null;
|
|
4531
5563
|
updated_at?: string;
|
|
4532
5564
|
user_id: string;
|
|
4533
5565
|
};
|
|
4534
5566
|
Update: {
|
|
4535
|
-
|
|
4536
|
-
client_id?: string
|
|
5567
|
+
access_token?: string | null;
|
|
5568
|
+
client_id?: string;
|
|
4537
5569
|
client_secret?: string | null;
|
|
4538
|
-
|
|
5570
|
+
cluster_uri?: string | null;
|
|
5571
|
+
company_code?: string | null;
|
|
5572
|
+
company_name?: string | null;
|
|
4539
5573
|
connected_at?: string | null;
|
|
4540
5574
|
created_at?: string;
|
|
4541
|
-
environment?: string
|
|
5575
|
+
environment?: string;
|
|
4542
5576
|
id?: string;
|
|
4543
|
-
|
|
5577
|
+
is_active?: boolean;
|
|
5578
|
+
label?: string | null;
|
|
5579
|
+
office_code?: string | null;
|
|
5580
|
+
redirect_uri?: string;
|
|
4544
5581
|
refresh_token?: string | null;
|
|
5582
|
+
token_expires_at?: string | null;
|
|
4545
5583
|
updated_at?: string;
|
|
4546
5584
|
user_id?: string;
|
|
4547
5585
|
};
|
|
4548
5586
|
Relationships: [];
|
|
4549
5587
|
};
|
|
4550
|
-
|
|
5588
|
+
twinfield_credentials: {
|
|
4551
5589
|
Row: {
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
5590
|
+
administration_code: string | null;
|
|
5591
|
+
client_id: string | null;
|
|
5592
|
+
client_secret: string | null;
|
|
5593
|
+
cluster: string | null;
|
|
5594
|
+
connected_at: string | null;
|
|
5595
|
+
created_at: string;
|
|
5596
|
+
environment: string | null;
|
|
5597
|
+
id: string;
|
|
5598
|
+
redirect_uri: string | null;
|
|
5599
|
+
refresh_token: string | null;
|
|
5600
|
+
updated_at: string;
|
|
5601
|
+
user_id: string;
|
|
5602
|
+
};
|
|
5603
|
+
Insert: {
|
|
5604
|
+
administration_code?: string | null;
|
|
5605
|
+
client_id?: string | null;
|
|
5606
|
+
client_secret?: string | null;
|
|
5607
|
+
cluster?: string | null;
|
|
5608
|
+
connected_at?: string | null;
|
|
5609
|
+
created_at?: string;
|
|
5610
|
+
environment?: string | null;
|
|
5611
|
+
id?: string;
|
|
5612
|
+
redirect_uri?: string | null;
|
|
5613
|
+
refresh_token?: string | null;
|
|
5614
|
+
updated_at?: string;
|
|
5615
|
+
user_id: string;
|
|
5616
|
+
};
|
|
5617
|
+
Update: {
|
|
5618
|
+
administration_code?: string | null;
|
|
5619
|
+
client_id?: string | null;
|
|
5620
|
+
client_secret?: string | null;
|
|
5621
|
+
cluster?: string | null;
|
|
5622
|
+
connected_at?: string | null;
|
|
5623
|
+
created_at?: string;
|
|
5624
|
+
environment?: string | null;
|
|
5625
|
+
id?: string;
|
|
5626
|
+
redirect_uri?: string | null;
|
|
5627
|
+
refresh_token?: string | null;
|
|
5628
|
+
updated_at?: string;
|
|
5629
|
+
user_id?: string;
|
|
5630
|
+
};
|
|
5631
|
+
Relationships: [];
|
|
5632
|
+
};
|
|
5633
|
+
twinfield_customers: {
|
|
5634
|
+
Row: {
|
|
5635
|
+
address: string | null;
|
|
5636
|
+
city: string | null;
|
|
5637
|
+
country: string | null;
|
|
5638
|
+
created_at: string;
|
|
5639
|
+
email: string | null;
|
|
5640
|
+
id: string;
|
|
4558
5641
|
last_synced_at: string | null;
|
|
4559
5642
|
name: string;
|
|
4560
5643
|
phone: string | null;
|
|
@@ -4604,6 +5687,48 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
4604
5687
|
};
|
|
4605
5688
|
Relationships: [];
|
|
4606
5689
|
};
|
|
5690
|
+
twinfield_customers_cache: {
|
|
5691
|
+
Row: {
|
|
5692
|
+
connection_id: string;
|
|
5693
|
+
country: string | null;
|
|
5694
|
+
data: import("./types").Json;
|
|
5695
|
+
email: string | null;
|
|
5696
|
+
fetched_at: string;
|
|
5697
|
+
modified_at: string | null;
|
|
5698
|
+
name: string | null;
|
|
5699
|
+
twinfield_code: string;
|
|
5700
|
+
vat_number: string | null;
|
|
5701
|
+
};
|
|
5702
|
+
Insert: {
|
|
5703
|
+
connection_id: string;
|
|
5704
|
+
country?: string | null;
|
|
5705
|
+
data?: import("./types").Json;
|
|
5706
|
+
email?: string | null;
|
|
5707
|
+
fetched_at?: string;
|
|
5708
|
+
modified_at?: string | null;
|
|
5709
|
+
name?: string | null;
|
|
5710
|
+
twinfield_code: string;
|
|
5711
|
+
vat_number?: string | null;
|
|
5712
|
+
};
|
|
5713
|
+
Update: {
|
|
5714
|
+
connection_id?: string;
|
|
5715
|
+
country?: string | null;
|
|
5716
|
+
data?: import("./types").Json;
|
|
5717
|
+
email?: string | null;
|
|
5718
|
+
fetched_at?: string;
|
|
5719
|
+
modified_at?: string | null;
|
|
5720
|
+
name?: string | null;
|
|
5721
|
+
twinfield_code?: string;
|
|
5722
|
+
vat_number?: string | null;
|
|
5723
|
+
};
|
|
5724
|
+
Relationships: [{
|
|
5725
|
+
foreignKeyName: "twinfield_customers_cache_connection_id_fkey";
|
|
5726
|
+
columns: ["connection_id"];
|
|
5727
|
+
isOneToOne: false;
|
|
5728
|
+
referencedRelation: "twinfield_connections";
|
|
5729
|
+
referencedColumns: ["id"];
|
|
5730
|
+
}];
|
|
5731
|
+
};
|
|
4607
5732
|
twinfield_invoice_lines: {
|
|
4608
5733
|
Row: {
|
|
4609
5734
|
article_code: string | null;
|
|
@@ -4658,6 +5783,57 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
4658
5783
|
referencedColumns: ["id"];
|
|
4659
5784
|
}];
|
|
4660
5785
|
};
|
|
5786
|
+
twinfield_invoice_lines_cache_v2: {
|
|
5787
|
+
Row: {
|
|
5788
|
+
article_code: string | null;
|
|
5789
|
+
connection_id: string;
|
|
5790
|
+
data: import("./types").Json;
|
|
5791
|
+
description: string | null;
|
|
5792
|
+
fetched_at: string;
|
|
5793
|
+
invoice_number: string;
|
|
5794
|
+
line_number: number;
|
|
5795
|
+
line_total: number | null;
|
|
5796
|
+
quantity: number | null;
|
|
5797
|
+
unit_price: number | null;
|
|
5798
|
+
vat_code: string | null;
|
|
5799
|
+
vat_rate: number | null;
|
|
5800
|
+
};
|
|
5801
|
+
Insert: {
|
|
5802
|
+
article_code?: string | null;
|
|
5803
|
+
connection_id: string;
|
|
5804
|
+
data?: import("./types").Json;
|
|
5805
|
+
description?: string | null;
|
|
5806
|
+
fetched_at?: string;
|
|
5807
|
+
invoice_number: string;
|
|
5808
|
+
line_number: number;
|
|
5809
|
+
line_total?: number | null;
|
|
5810
|
+
quantity?: number | null;
|
|
5811
|
+
unit_price?: number | null;
|
|
5812
|
+
vat_code?: string | null;
|
|
5813
|
+
vat_rate?: number | null;
|
|
5814
|
+
};
|
|
5815
|
+
Update: {
|
|
5816
|
+
article_code?: string | null;
|
|
5817
|
+
connection_id?: string;
|
|
5818
|
+
data?: import("./types").Json;
|
|
5819
|
+
description?: string | null;
|
|
5820
|
+
fetched_at?: string;
|
|
5821
|
+
invoice_number?: string;
|
|
5822
|
+
line_number?: number;
|
|
5823
|
+
line_total?: number | null;
|
|
5824
|
+
quantity?: number | null;
|
|
5825
|
+
unit_price?: number | null;
|
|
5826
|
+
vat_code?: string | null;
|
|
5827
|
+
vat_rate?: number | null;
|
|
5828
|
+
};
|
|
5829
|
+
Relationships: [{
|
|
5830
|
+
foreignKeyName: "twinfield_invoice_lines_cache_v2_connection_id_fkey";
|
|
5831
|
+
columns: ["connection_id"];
|
|
5832
|
+
isOneToOne: false;
|
|
5833
|
+
referencedRelation: "twinfield_connections";
|
|
5834
|
+
referencedColumns: ["id"];
|
|
5835
|
+
}];
|
|
5836
|
+
};
|
|
4661
5837
|
twinfield_invoice_settings: {
|
|
4662
5838
|
Row: {
|
|
4663
5839
|
created_at: string;
|
|
@@ -4814,103 +5990,455 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
4814
5990
|
};
|
|
4815
5991
|
Relationships: [];
|
|
4816
5992
|
};
|
|
4817
|
-
|
|
5993
|
+
twinfield_invoices_cache_v2: {
|
|
5994
|
+
Row: {
|
|
5995
|
+
connection_id: string;
|
|
5996
|
+
currency: string | null;
|
|
5997
|
+
customer_code: string | null;
|
|
5998
|
+
data: import("./types").Json;
|
|
5999
|
+
due_date: string | null;
|
|
6000
|
+
fetched_at: string;
|
|
6001
|
+
invoice_date: string | null;
|
|
6002
|
+
invoice_number: string;
|
|
6003
|
+
modified_at: string | null;
|
|
6004
|
+
outstanding_amount: number | null;
|
|
6005
|
+
status: string | null;
|
|
6006
|
+
status_label: string | null;
|
|
6007
|
+
total_excl: number | null;
|
|
6008
|
+
total_incl: number | null;
|
|
6009
|
+
vat_amount: number | null;
|
|
6010
|
+
};
|
|
6011
|
+
Insert: {
|
|
6012
|
+
connection_id: string;
|
|
6013
|
+
currency?: string | null;
|
|
6014
|
+
customer_code?: string | null;
|
|
6015
|
+
data?: import("./types").Json;
|
|
6016
|
+
due_date?: string | null;
|
|
6017
|
+
fetched_at?: string;
|
|
6018
|
+
invoice_date?: string | null;
|
|
6019
|
+
invoice_number: string;
|
|
6020
|
+
modified_at?: string | null;
|
|
6021
|
+
outstanding_amount?: number | null;
|
|
6022
|
+
status?: string | null;
|
|
6023
|
+
status_label?: string | null;
|
|
6024
|
+
total_excl?: number | null;
|
|
6025
|
+
total_incl?: number | null;
|
|
6026
|
+
vat_amount?: number | null;
|
|
6027
|
+
};
|
|
6028
|
+
Update: {
|
|
6029
|
+
connection_id?: string;
|
|
6030
|
+
currency?: string | null;
|
|
6031
|
+
customer_code?: string | null;
|
|
6032
|
+
data?: import("./types").Json;
|
|
6033
|
+
due_date?: string | null;
|
|
6034
|
+
fetched_at?: string;
|
|
6035
|
+
invoice_date?: string | null;
|
|
6036
|
+
invoice_number?: string;
|
|
6037
|
+
modified_at?: string | null;
|
|
6038
|
+
outstanding_amount?: number | null;
|
|
6039
|
+
status?: string | null;
|
|
6040
|
+
status_label?: string | null;
|
|
6041
|
+
total_excl?: number | null;
|
|
6042
|
+
total_incl?: number | null;
|
|
6043
|
+
vat_amount?: number | null;
|
|
6044
|
+
};
|
|
6045
|
+
Relationships: [{
|
|
6046
|
+
foreignKeyName: "twinfield_invoices_cache_v2_connection_id_fkey";
|
|
6047
|
+
columns: ["connection_id"];
|
|
6048
|
+
isOneToOne: false;
|
|
6049
|
+
referencedRelation: "twinfield_connections";
|
|
6050
|
+
referencedColumns: ["id"];
|
|
6051
|
+
}];
|
|
6052
|
+
};
|
|
6053
|
+
twinfield_oauth_state: {
|
|
4818
6054
|
Row: {
|
|
4819
6055
|
created_at: string;
|
|
4820
|
-
|
|
4821
|
-
|
|
6056
|
+
environment: string;
|
|
6057
|
+
nonce: string | null;
|
|
6058
|
+
state: string;
|
|
4822
6059
|
user_id: string;
|
|
4823
6060
|
};
|
|
4824
6061
|
Insert: {
|
|
4825
6062
|
created_at?: string;
|
|
4826
|
-
|
|
4827
|
-
|
|
6063
|
+
environment: string;
|
|
6064
|
+
nonce?: string | null;
|
|
6065
|
+
state: string;
|
|
4828
6066
|
user_id: string;
|
|
4829
6067
|
};
|
|
4830
6068
|
Update: {
|
|
4831
6069
|
created_at?: string;
|
|
4832
|
-
|
|
4833
|
-
|
|
6070
|
+
environment?: string;
|
|
6071
|
+
nonce?: string | null;
|
|
6072
|
+
state?: string;
|
|
4834
6073
|
user_id?: string;
|
|
4835
6074
|
};
|
|
4836
|
-
Relationships: [
|
|
4837
|
-
foreignKeyName: "user_roles_user_id_fkey";
|
|
4838
|
-
columns: ["user_id"];
|
|
4839
|
-
isOneToOne: false;
|
|
4840
|
-
referencedRelation: "profiles";
|
|
4841
|
-
referencedColumns: ["id"];
|
|
4842
|
-
}];
|
|
6075
|
+
Relationships: [];
|
|
4843
6076
|
};
|
|
4844
|
-
|
|
4845
|
-
Views: {
|
|
4846
|
-
email_auth_connections_safe: {
|
|
6077
|
+
twinfield_push_queue: {
|
|
4847
6078
|
Row: {
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
has_client_secret: boolean | null;
|
|
4855
|
-
has_imap_password: boolean | null;
|
|
4856
|
-
has_refresh_token: boolean | null;
|
|
4857
|
-
has_smtp_password: boolean | null;
|
|
4858
|
-
id: string | null;
|
|
4859
|
-
imap_host: string | null;
|
|
4860
|
-
imap_port: number | null;
|
|
4861
|
-
imap_secure: boolean | null;
|
|
4862
|
-
imap_username: string | null;
|
|
4863
|
-
is_active: boolean | null;
|
|
6079
|
+
attempts: number;
|
|
6080
|
+
connection_id: string;
|
|
6081
|
+
created_at: string;
|
|
6082
|
+
external_id: string | null;
|
|
6083
|
+
id: string;
|
|
6084
|
+
idempotency_key: string;
|
|
4864
6085
|
last_error: string | null;
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
smtp_port: number | null;
|
|
4871
|
-
smtp_secure: boolean | null;
|
|
4872
|
-
smtp_username: string | null;
|
|
4873
|
-
status: string | null;
|
|
4874
|
-
token_expires_at: string | null;
|
|
4875
|
-
updated_at: string | null;
|
|
6086
|
+
next_attempt_at: string;
|
|
6087
|
+
office_code: string;
|
|
6088
|
+
payload: import("./types").Json;
|
|
6089
|
+
status: string;
|
|
6090
|
+
updated_at: string;
|
|
4876
6091
|
};
|
|
4877
6092
|
Insert: {
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
has_client_secret?: never;
|
|
4885
|
-
has_imap_password?: never;
|
|
4886
|
-
has_refresh_token?: never;
|
|
4887
|
-
has_smtp_password?: never;
|
|
4888
|
-
id?: string | null;
|
|
4889
|
-
imap_host?: string | null;
|
|
4890
|
-
imap_port?: number | null;
|
|
4891
|
-
imap_secure?: boolean | null;
|
|
4892
|
-
imap_username?: string | null;
|
|
4893
|
-
is_active?: boolean | null;
|
|
6093
|
+
attempts?: number;
|
|
6094
|
+
connection_id: string;
|
|
6095
|
+
created_at?: string;
|
|
6096
|
+
external_id?: string | null;
|
|
6097
|
+
id?: string;
|
|
6098
|
+
idempotency_key: string;
|
|
4894
6099
|
last_error?: string | null;
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
smtp_port?: number | null;
|
|
4901
|
-
smtp_secure?: boolean | null;
|
|
4902
|
-
smtp_username?: string | null;
|
|
4903
|
-
status?: string | null;
|
|
4904
|
-
token_expires_at?: string | null;
|
|
4905
|
-
updated_at?: string | null;
|
|
6100
|
+
next_attempt_at?: string;
|
|
6101
|
+
office_code: string;
|
|
6102
|
+
payload: import("./types").Json;
|
|
6103
|
+
status?: string;
|
|
6104
|
+
updated_at?: string;
|
|
4906
6105
|
};
|
|
4907
6106
|
Update: {
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
6107
|
+
attempts?: number;
|
|
6108
|
+
connection_id?: string;
|
|
6109
|
+
created_at?: string;
|
|
6110
|
+
external_id?: string | null;
|
|
6111
|
+
id?: string;
|
|
6112
|
+
idempotency_key?: string;
|
|
6113
|
+
last_error?: string | null;
|
|
6114
|
+
next_attempt_at?: string;
|
|
6115
|
+
office_code?: string;
|
|
6116
|
+
payload?: import("./types").Json;
|
|
6117
|
+
status?: string;
|
|
6118
|
+
updated_at?: string;
|
|
6119
|
+
};
|
|
6120
|
+
Relationships: [{
|
|
6121
|
+
foreignKeyName: "twinfield_push_queue_connection_id_fkey";
|
|
6122
|
+
columns: ["connection_id"];
|
|
6123
|
+
isOneToOne: false;
|
|
6124
|
+
referencedRelation: "twinfield_connections";
|
|
6125
|
+
referencedColumns: ["id"];
|
|
6126
|
+
}];
|
|
6127
|
+
};
|
|
6128
|
+
twinfield_settings: {
|
|
6129
|
+
Row: {
|
|
6130
|
+
active_environment: string;
|
|
6131
|
+
id: number;
|
|
6132
|
+
updated_at: string;
|
|
6133
|
+
};
|
|
6134
|
+
Insert: {
|
|
6135
|
+
active_environment?: string;
|
|
6136
|
+
id?: number;
|
|
6137
|
+
updated_at?: string;
|
|
6138
|
+
};
|
|
6139
|
+
Update: {
|
|
6140
|
+
active_environment?: string;
|
|
6141
|
+
id?: number;
|
|
6142
|
+
updated_at?: string;
|
|
6143
|
+
};
|
|
6144
|
+
Relationships: [];
|
|
6145
|
+
};
|
|
6146
|
+
twinfield_sync_state: {
|
|
6147
|
+
Row: {
|
|
6148
|
+
connection_id: string;
|
|
6149
|
+
entity_type: string;
|
|
6150
|
+
last_error: string | null;
|
|
6151
|
+
last_modified_since: string;
|
|
6152
|
+
last_synced_at: string | null;
|
|
6153
|
+
updated_at: string;
|
|
6154
|
+
};
|
|
6155
|
+
Insert: {
|
|
6156
|
+
connection_id: string;
|
|
6157
|
+
entity_type: string;
|
|
6158
|
+
last_error?: string | null;
|
|
6159
|
+
last_modified_since?: string;
|
|
6160
|
+
last_synced_at?: string | null;
|
|
6161
|
+
updated_at?: string;
|
|
6162
|
+
};
|
|
6163
|
+
Update: {
|
|
6164
|
+
connection_id?: string;
|
|
6165
|
+
entity_type?: string;
|
|
6166
|
+
last_error?: string | null;
|
|
6167
|
+
last_modified_since?: string;
|
|
6168
|
+
last_synced_at?: string | null;
|
|
6169
|
+
updated_at?: string;
|
|
6170
|
+
};
|
|
6171
|
+
Relationships: [{
|
|
6172
|
+
foreignKeyName: "twinfield_sync_state_connection_id_fkey";
|
|
6173
|
+
columns: ["connection_id"];
|
|
6174
|
+
isOneToOne: false;
|
|
6175
|
+
referencedRelation: "twinfield_connections";
|
|
6176
|
+
referencedColumns: ["id"];
|
|
6177
|
+
}];
|
|
6178
|
+
};
|
|
6179
|
+
twinfield_token_refresh_log: {
|
|
6180
|
+
Row: {
|
|
6181
|
+
attempted_at: string;
|
|
6182
|
+
connection_id: string;
|
|
6183
|
+
error: string | null;
|
|
6184
|
+
expires_at: string | null;
|
|
6185
|
+
id: string;
|
|
6186
|
+
ok: boolean;
|
|
6187
|
+
};
|
|
6188
|
+
Insert: {
|
|
6189
|
+
attempted_at?: string;
|
|
6190
|
+
connection_id: string;
|
|
6191
|
+
error?: string | null;
|
|
6192
|
+
expires_at?: string | null;
|
|
6193
|
+
id?: string;
|
|
6194
|
+
ok: boolean;
|
|
6195
|
+
};
|
|
6196
|
+
Update: {
|
|
6197
|
+
attempted_at?: string;
|
|
6198
|
+
connection_id?: string;
|
|
6199
|
+
error?: string | null;
|
|
6200
|
+
expires_at?: string | null;
|
|
6201
|
+
id?: string;
|
|
6202
|
+
ok?: boolean;
|
|
6203
|
+
};
|
|
6204
|
+
Relationships: [{
|
|
6205
|
+
foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
|
|
6206
|
+
columns: ["connection_id"];
|
|
6207
|
+
isOneToOne: false;
|
|
6208
|
+
referencedRelation: "twinfield_connections";
|
|
6209
|
+
referencedColumns: ["id"];
|
|
6210
|
+
}];
|
|
6211
|
+
};
|
|
6212
|
+
user_roles: {
|
|
6213
|
+
Row: {
|
|
6214
|
+
created_at: string;
|
|
6215
|
+
id: string;
|
|
6216
|
+
role: Database["public"]["Enums"]["app_role"];
|
|
6217
|
+
user_id: string;
|
|
6218
|
+
};
|
|
6219
|
+
Insert: {
|
|
6220
|
+
created_at?: string;
|
|
6221
|
+
id?: string;
|
|
6222
|
+
role: Database["public"]["Enums"]["app_role"];
|
|
6223
|
+
user_id: string;
|
|
6224
|
+
};
|
|
6225
|
+
Update: {
|
|
6226
|
+
created_at?: string;
|
|
6227
|
+
id?: string;
|
|
6228
|
+
role?: Database["public"]["Enums"]["app_role"];
|
|
6229
|
+
user_id?: string;
|
|
6230
|
+
};
|
|
6231
|
+
Relationships: [{
|
|
6232
|
+
foreignKeyName: "user_roles_user_id_fkey";
|
|
6233
|
+
columns: ["user_id"];
|
|
6234
|
+
isOneToOne: false;
|
|
6235
|
+
referencedRelation: "profiles";
|
|
6236
|
+
referencedColumns: ["id"];
|
|
6237
|
+
}];
|
|
6238
|
+
};
|
|
6239
|
+
work_order_monteurs: {
|
|
6240
|
+
Row: {
|
|
6241
|
+
created_at: string;
|
|
6242
|
+
id: string;
|
|
6243
|
+
monteur_id: string;
|
|
6244
|
+
work_order_id: string;
|
|
6245
|
+
};
|
|
6246
|
+
Insert: {
|
|
6247
|
+
created_at?: string;
|
|
6248
|
+
id?: string;
|
|
6249
|
+
monteur_id: string;
|
|
6250
|
+
work_order_id: string;
|
|
6251
|
+
};
|
|
6252
|
+
Update: {
|
|
6253
|
+
created_at?: string;
|
|
6254
|
+
id?: string;
|
|
6255
|
+
monteur_id?: string;
|
|
6256
|
+
work_order_id?: string;
|
|
6257
|
+
};
|
|
6258
|
+
Relationships: [{
|
|
6259
|
+
foreignKeyName: "work_order_monteurs_monteur_id_fkey";
|
|
6260
|
+
columns: ["monteur_id"];
|
|
6261
|
+
isOneToOne: false;
|
|
6262
|
+
referencedRelation: "monteurs";
|
|
6263
|
+
referencedColumns: ["id"];
|
|
6264
|
+
}, {
|
|
6265
|
+
foreignKeyName: "work_order_monteurs_work_order_id_fkey";
|
|
6266
|
+
columns: ["work_order_id"];
|
|
6267
|
+
isOneToOne: false;
|
|
6268
|
+
referencedRelation: "work_orders";
|
|
6269
|
+
referencedColumns: ["id"];
|
|
6270
|
+
}];
|
|
6271
|
+
};
|
|
6272
|
+
work_orders: {
|
|
6273
|
+
Row: {
|
|
6274
|
+
assigned_to: string | null;
|
|
6275
|
+
city: string | null;
|
|
6276
|
+
contact_person: string | null;
|
|
6277
|
+
created_at: string;
|
|
6278
|
+
custom_fields: import("./types").Json;
|
|
6279
|
+
customer_name: string;
|
|
6280
|
+
description: string;
|
|
6281
|
+
email: string | null;
|
|
6282
|
+
email_source: string | null;
|
|
6283
|
+
estimated_duration_hours: number | null;
|
|
6284
|
+
external_reference: string | null;
|
|
6285
|
+
follow_up_needed: boolean;
|
|
6286
|
+
id: string;
|
|
6287
|
+
mandate: string;
|
|
6288
|
+
mandate_budget: number;
|
|
6289
|
+
mandate_used: number;
|
|
6290
|
+
order_number: string;
|
|
6291
|
+
parent_work_order_id: string | null;
|
|
6292
|
+
pdf_url: string | null;
|
|
6293
|
+
phone: string | null;
|
|
6294
|
+
postal_code: string;
|
|
6295
|
+
priority: string;
|
|
6296
|
+
project_number: string | null;
|
|
6297
|
+
report_validated: boolean;
|
|
6298
|
+
room_number: string;
|
|
6299
|
+
scheduled_date: string | null;
|
|
6300
|
+
scheduled_end_time: string | null;
|
|
6301
|
+
scheduled_start_time: string | null;
|
|
6302
|
+
status: string;
|
|
6303
|
+
tenant_id: string;
|
|
6304
|
+
total_hours_worked: number | null;
|
|
6305
|
+
total_price: number | null;
|
|
6306
|
+
travel_time_minutes: number | null;
|
|
6307
|
+
updated_at: string;
|
|
6308
|
+
work_address: string;
|
|
6309
|
+
work_report: string | null;
|
|
6310
|
+
};
|
|
6311
|
+
Insert: {
|
|
6312
|
+
assigned_to?: string | null;
|
|
6313
|
+
city?: string | null;
|
|
6314
|
+
contact_person?: string | null;
|
|
6315
|
+
created_at?: string;
|
|
6316
|
+
custom_fields?: import("./types").Json;
|
|
6317
|
+
customer_name?: string;
|
|
6318
|
+
description?: string;
|
|
6319
|
+
email?: string | null;
|
|
6320
|
+
email_source?: string | null;
|
|
6321
|
+
estimated_duration_hours?: number | null;
|
|
6322
|
+
external_reference?: string | null;
|
|
6323
|
+
follow_up_needed?: boolean;
|
|
6324
|
+
id?: string;
|
|
6325
|
+
mandate?: string;
|
|
6326
|
+
mandate_budget?: number;
|
|
6327
|
+
mandate_used?: number;
|
|
6328
|
+
order_number?: string;
|
|
6329
|
+
parent_work_order_id?: string | null;
|
|
6330
|
+
pdf_url?: string | null;
|
|
6331
|
+
phone?: string | null;
|
|
6332
|
+
postal_code?: string;
|
|
6333
|
+
priority?: string;
|
|
6334
|
+
project_number?: string | null;
|
|
6335
|
+
report_validated?: boolean;
|
|
6336
|
+
room_number?: string;
|
|
6337
|
+
scheduled_date?: string | null;
|
|
6338
|
+
scheduled_end_time?: string | null;
|
|
6339
|
+
scheduled_start_time?: string | null;
|
|
6340
|
+
status?: string;
|
|
6341
|
+
tenant_id: string;
|
|
6342
|
+
total_hours_worked?: number | null;
|
|
6343
|
+
total_price?: number | null;
|
|
6344
|
+
travel_time_minutes?: number | null;
|
|
6345
|
+
updated_at?: string;
|
|
6346
|
+
work_address?: string;
|
|
6347
|
+
work_report?: string | null;
|
|
6348
|
+
};
|
|
6349
|
+
Update: {
|
|
6350
|
+
assigned_to?: string | null;
|
|
6351
|
+
city?: string | null;
|
|
6352
|
+
contact_person?: string | null;
|
|
6353
|
+
created_at?: string;
|
|
6354
|
+
custom_fields?: import("./types").Json;
|
|
6355
|
+
customer_name?: string;
|
|
6356
|
+
description?: string;
|
|
6357
|
+
email?: string | null;
|
|
6358
|
+
email_source?: string | null;
|
|
6359
|
+
estimated_duration_hours?: number | null;
|
|
6360
|
+
external_reference?: string | null;
|
|
6361
|
+
follow_up_needed?: boolean;
|
|
6362
|
+
id?: string;
|
|
6363
|
+
mandate?: string;
|
|
6364
|
+
mandate_budget?: number;
|
|
6365
|
+
mandate_used?: number;
|
|
6366
|
+
order_number?: string;
|
|
6367
|
+
parent_work_order_id?: string | null;
|
|
6368
|
+
pdf_url?: string | null;
|
|
6369
|
+
phone?: string | null;
|
|
6370
|
+
postal_code?: string;
|
|
6371
|
+
priority?: string;
|
|
6372
|
+
project_number?: string | null;
|
|
6373
|
+
report_validated?: boolean;
|
|
6374
|
+
room_number?: string;
|
|
6375
|
+
scheduled_date?: string | null;
|
|
6376
|
+
scheduled_end_time?: string | null;
|
|
6377
|
+
scheduled_start_time?: string | null;
|
|
6378
|
+
status?: string;
|
|
6379
|
+
tenant_id?: string;
|
|
6380
|
+
total_hours_worked?: number | null;
|
|
6381
|
+
total_price?: number | null;
|
|
6382
|
+
travel_time_minutes?: number | null;
|
|
6383
|
+
updated_at?: string;
|
|
6384
|
+
work_address?: string;
|
|
6385
|
+
work_report?: string | null;
|
|
6386
|
+
};
|
|
6387
|
+
Relationships: [{
|
|
6388
|
+
foreignKeyName: "work_orders_parent_work_order_id_fkey";
|
|
6389
|
+
columns: ["parent_work_order_id"];
|
|
6390
|
+
isOneToOne: false;
|
|
6391
|
+
referencedRelation: "work_orders";
|
|
6392
|
+
referencedColumns: ["id"];
|
|
6393
|
+
}, {
|
|
6394
|
+
foreignKeyName: "work_orders_tenant_id_fkey";
|
|
6395
|
+
columns: ["tenant_id"];
|
|
6396
|
+
isOneToOne: false;
|
|
6397
|
+
referencedRelation: "tenants";
|
|
6398
|
+
referencedColumns: ["id"];
|
|
6399
|
+
}];
|
|
6400
|
+
};
|
|
6401
|
+
};
|
|
6402
|
+
Views: {
|
|
6403
|
+
email_auth_connections_safe: {
|
|
6404
|
+
Row: {
|
|
6405
|
+
account_email: string | null;
|
|
6406
|
+
created_at: string | null;
|
|
6407
|
+
created_by: string | null;
|
|
6408
|
+
display_name: string | null;
|
|
6409
|
+
has_access_token: boolean | null;
|
|
6410
|
+
has_client_id: boolean | null;
|
|
6411
|
+
has_client_secret: boolean | null;
|
|
6412
|
+
has_imap_password: boolean | null;
|
|
6413
|
+
has_refresh_token: boolean | null;
|
|
6414
|
+
has_smtp_password: boolean | null;
|
|
6415
|
+
id: string | null;
|
|
6416
|
+
imap_host: string | null;
|
|
6417
|
+
imap_port: number | null;
|
|
6418
|
+
imap_secure: boolean | null;
|
|
6419
|
+
imap_username: string | null;
|
|
6420
|
+
is_active: boolean | null;
|
|
6421
|
+
last_error: string | null;
|
|
6422
|
+
last_verified_at: string | null;
|
|
6423
|
+
oauth_mode: string | null;
|
|
6424
|
+
provider: string | null;
|
|
6425
|
+
purpose_assignments: import("./types").Json | null;
|
|
6426
|
+
scopes: string[] | null;
|
|
6427
|
+
smtp_host: string | null;
|
|
6428
|
+
smtp_port: number | null;
|
|
6429
|
+
smtp_secure: boolean | null;
|
|
6430
|
+
smtp_username: string | null;
|
|
6431
|
+
status: string | null;
|
|
6432
|
+
token_expires_at: string | null;
|
|
6433
|
+
updated_at: string | null;
|
|
6434
|
+
};
|
|
6435
|
+
Insert: {
|
|
6436
|
+
account_email?: string | null;
|
|
6437
|
+
created_at?: string | null;
|
|
6438
|
+
created_by?: string | null;
|
|
6439
|
+
display_name?: string | null;
|
|
6440
|
+
has_access_token?: never;
|
|
6441
|
+
has_client_id?: never;
|
|
4914
6442
|
has_client_secret?: never;
|
|
4915
6443
|
has_imap_password?: never;
|
|
4916
6444
|
has_refresh_token?: never;
|
|
@@ -4925,19 +6453,399 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
4925
6453
|
last_verified_at?: string | null;
|
|
4926
6454
|
oauth_mode?: string | null;
|
|
4927
6455
|
provider?: string | null;
|
|
6456
|
+
purpose_assignments?: import("./types").Json | null;
|
|
4928
6457
|
scopes?: string[] | null;
|
|
4929
6458
|
smtp_host?: string | null;
|
|
4930
6459
|
smtp_port?: number | null;
|
|
4931
6460
|
smtp_secure?: boolean | null;
|
|
4932
6461
|
smtp_username?: string | null;
|
|
4933
6462
|
status?: string | null;
|
|
4934
|
-
token_expires_at?: string | null;
|
|
4935
|
-
updated_at?: string | null;
|
|
6463
|
+
token_expires_at?: string | null;
|
|
6464
|
+
updated_at?: string | null;
|
|
6465
|
+
};
|
|
6466
|
+
Update: {
|
|
6467
|
+
account_email?: string | null;
|
|
6468
|
+
created_at?: string | null;
|
|
6469
|
+
created_by?: string | null;
|
|
6470
|
+
display_name?: string | null;
|
|
6471
|
+
has_access_token?: never;
|
|
6472
|
+
has_client_id?: never;
|
|
6473
|
+
has_client_secret?: never;
|
|
6474
|
+
has_imap_password?: never;
|
|
6475
|
+
has_refresh_token?: never;
|
|
6476
|
+
has_smtp_password?: never;
|
|
6477
|
+
id?: string | null;
|
|
6478
|
+
imap_host?: string | null;
|
|
6479
|
+
imap_port?: number | null;
|
|
6480
|
+
imap_secure?: boolean | null;
|
|
6481
|
+
imap_username?: string | null;
|
|
6482
|
+
is_active?: boolean | null;
|
|
6483
|
+
last_error?: string | null;
|
|
6484
|
+
last_verified_at?: string | null;
|
|
6485
|
+
oauth_mode?: string | null;
|
|
6486
|
+
provider?: string | null;
|
|
6487
|
+
purpose_assignments?: import("./types").Json | null;
|
|
6488
|
+
scopes?: string[] | null;
|
|
6489
|
+
smtp_host?: string | null;
|
|
6490
|
+
smtp_port?: number | null;
|
|
6491
|
+
smtp_secure?: boolean | null;
|
|
6492
|
+
smtp_username?: string | null;
|
|
6493
|
+
status?: string | null;
|
|
6494
|
+
token_expires_at?: string | null;
|
|
6495
|
+
updated_at?: string | null;
|
|
6496
|
+
};
|
|
6497
|
+
Relationships: [];
|
|
6498
|
+
};
|
|
6499
|
+
external_customers_grouped: {
|
|
6500
|
+
Row: {
|
|
6501
|
+
city: string | null;
|
|
6502
|
+
commercial_name: string | null;
|
|
6503
|
+
contact_person: string | null;
|
|
6504
|
+
country: string | null;
|
|
6505
|
+
display_name: string | null;
|
|
6506
|
+
email: string | null;
|
|
6507
|
+
fetched_at: string | null;
|
|
6508
|
+
gln: string | null;
|
|
6509
|
+
group_key: string | null;
|
|
6510
|
+
is_active: boolean | null;
|
|
6511
|
+
is_merged: boolean | null;
|
|
6512
|
+
logo_url: string | null;
|
|
6513
|
+
match_key: string | null;
|
|
6514
|
+
phone: string | null;
|
|
6515
|
+
providers: string[] | null;
|
|
6516
|
+
source_count: number | null;
|
|
6517
|
+
sources: import("./types").Json | null;
|
|
6518
|
+
vat_number: string | null;
|
|
6519
|
+
website: string | null;
|
|
6520
|
+
};
|
|
6521
|
+
Relationships: [];
|
|
6522
|
+
};
|
|
6523
|
+
external_customers_unified: {
|
|
6524
|
+
Row: {
|
|
6525
|
+
city: string | null;
|
|
6526
|
+
commercial_name: string | null;
|
|
6527
|
+
company_name: string | null;
|
|
6528
|
+
connection_id: string | null;
|
|
6529
|
+
contact_person: string | null;
|
|
6530
|
+
country: string | null;
|
|
6531
|
+
email: string | null;
|
|
6532
|
+
external_id: string | null;
|
|
6533
|
+
fetched_at: string | null;
|
|
6534
|
+
gln: string | null;
|
|
6535
|
+
house_number: string | null;
|
|
6536
|
+
is_active: boolean | null;
|
|
6537
|
+
is_deleted: boolean | null;
|
|
6538
|
+
logo_url: string | null;
|
|
6539
|
+
phone: string | null;
|
|
6540
|
+
postal_code: string | null;
|
|
6541
|
+
provider: string | null;
|
|
6542
|
+
raw: import("./types").Json | null;
|
|
6543
|
+
status: string | null;
|
|
6544
|
+
street: string | null;
|
|
6545
|
+
vat_number: string | null;
|
|
6546
|
+
website: string | null;
|
|
6547
|
+
};
|
|
6548
|
+
Relationships: [];
|
|
6549
|
+
};
|
|
6550
|
+
external_invoices_grouped: {
|
|
6551
|
+
Row: {
|
|
6552
|
+
currency: string | null;
|
|
6553
|
+
customer_external_id: string | null;
|
|
6554
|
+
customer_name: string | null;
|
|
6555
|
+
customer_vat: string | null;
|
|
6556
|
+
due_at: string | null;
|
|
6557
|
+
group_key: string | null;
|
|
6558
|
+
invoice_number: string | null;
|
|
6559
|
+
is_merged: boolean | null;
|
|
6560
|
+
issued_at: string | null;
|
|
6561
|
+
modified_at: string | null;
|
|
6562
|
+
open_amount: number | null;
|
|
6563
|
+
paid_at: string | null;
|
|
6564
|
+
providers: string[] | null;
|
|
6565
|
+
source_count: number | null;
|
|
6566
|
+
sources: import("./types").Json | null;
|
|
6567
|
+
status: string | null;
|
|
6568
|
+
total_excl: number | null;
|
|
6569
|
+
total_incl: number | null;
|
|
6570
|
+
total_vat: number | null;
|
|
6571
|
+
};
|
|
6572
|
+
Relationships: [];
|
|
6573
|
+
};
|
|
6574
|
+
external_invoices_unified: {
|
|
6575
|
+
Row: {
|
|
6576
|
+
connection_id: string | null;
|
|
6577
|
+
currency: string | null;
|
|
6578
|
+
customer_external_id: string | null;
|
|
6579
|
+
customer_name: string | null;
|
|
6580
|
+
customer_vat: string | null;
|
|
6581
|
+
due_at: string | null;
|
|
6582
|
+
external_id: string | null;
|
|
6583
|
+
invoice_number: string | null;
|
|
6584
|
+
issued_at: string | null;
|
|
6585
|
+
open_amount: number | null;
|
|
6586
|
+
owner_user_id: string | null;
|
|
6587
|
+
paid_at: string | null;
|
|
6588
|
+
raw: import("./types").Json | null;
|
|
6589
|
+
source: string | null;
|
|
6590
|
+
status: string | null;
|
|
6591
|
+
synced_at: string | null;
|
|
6592
|
+
total_excl: number | null;
|
|
6593
|
+
total_incl: number | null;
|
|
6594
|
+
total_vat: number | null;
|
|
6595
|
+
};
|
|
6596
|
+
Relationships: [];
|
|
6597
|
+
};
|
|
6598
|
+
v_external_customers_exact: {
|
|
6599
|
+
Row: {
|
|
6600
|
+
account_number: string | null;
|
|
6601
|
+
city: string | null;
|
|
6602
|
+
coc_number: string | null;
|
|
6603
|
+
company_name: string | null;
|
|
6604
|
+
connection_id: string | null;
|
|
6605
|
+
country: string | null;
|
|
6606
|
+
currency: string | null;
|
|
6607
|
+
email: string | null;
|
|
6608
|
+
external_id: string | null;
|
|
6609
|
+
is_sales: boolean | null;
|
|
6610
|
+
is_supplier: boolean | null;
|
|
6611
|
+
language: string | null;
|
|
6612
|
+
modified_at: string | null;
|
|
6613
|
+
phone: string | null;
|
|
6614
|
+
postal_code: string | null;
|
|
6615
|
+
raw: import("./types").Json | null;
|
|
6616
|
+
source: string | null;
|
|
6617
|
+
street: string | null;
|
|
6618
|
+
synced_at: string | null;
|
|
6619
|
+
vat_number: string | null;
|
|
6620
|
+
website: string | null;
|
|
6621
|
+
};
|
|
6622
|
+
Insert: {
|
|
6623
|
+
account_number?: string | null;
|
|
6624
|
+
city?: string | null;
|
|
6625
|
+
coc_number?: string | null;
|
|
6626
|
+
company_name?: string | null;
|
|
6627
|
+
connection_id?: string | null;
|
|
6628
|
+
country?: string | null;
|
|
6629
|
+
currency?: string | null;
|
|
6630
|
+
email?: string | null;
|
|
6631
|
+
external_id?: string | null;
|
|
6632
|
+
is_sales?: boolean | null;
|
|
6633
|
+
is_supplier?: boolean | null;
|
|
6634
|
+
language?: string | null;
|
|
6635
|
+
modified_at?: string | null;
|
|
6636
|
+
phone?: string | null;
|
|
6637
|
+
postal_code?: string | null;
|
|
6638
|
+
raw?: import("./types").Json | null;
|
|
6639
|
+
source?: never;
|
|
6640
|
+
street?: string | null;
|
|
6641
|
+
synced_at?: string | null;
|
|
6642
|
+
vat_number?: string | null;
|
|
6643
|
+
website?: string | null;
|
|
6644
|
+
};
|
|
6645
|
+
Update: {
|
|
6646
|
+
account_number?: string | null;
|
|
6647
|
+
city?: string | null;
|
|
6648
|
+
coc_number?: string | null;
|
|
6649
|
+
company_name?: string | null;
|
|
6650
|
+
connection_id?: string | null;
|
|
6651
|
+
country?: string | null;
|
|
6652
|
+
currency?: string | null;
|
|
6653
|
+
email?: string | null;
|
|
6654
|
+
external_id?: string | null;
|
|
6655
|
+
is_sales?: boolean | null;
|
|
6656
|
+
is_supplier?: boolean | null;
|
|
6657
|
+
language?: string | null;
|
|
6658
|
+
modified_at?: string | null;
|
|
6659
|
+
phone?: string | null;
|
|
6660
|
+
postal_code?: string | null;
|
|
6661
|
+
raw?: import("./types").Json | null;
|
|
6662
|
+
source?: never;
|
|
6663
|
+
street?: string | null;
|
|
6664
|
+
synced_at?: string | null;
|
|
6665
|
+
vat_number?: string | null;
|
|
6666
|
+
website?: string | null;
|
|
6667
|
+
};
|
|
6668
|
+
Relationships: [{
|
|
6669
|
+
foreignKeyName: "exact_customers_cache_connection_id_fkey";
|
|
6670
|
+
columns: ["connection_id"];
|
|
6671
|
+
isOneToOne: false;
|
|
6672
|
+
referencedRelation: "exact_connections";
|
|
6673
|
+
referencedColumns: ["id"];
|
|
6674
|
+
}];
|
|
6675
|
+
};
|
|
6676
|
+
v_external_customers_floriday: {
|
|
6677
|
+
Row: {
|
|
6678
|
+
city: string | null;
|
|
6679
|
+
commercial_name: string | null;
|
|
6680
|
+
company_name: string | null;
|
|
6681
|
+
connection_id: string | null;
|
|
6682
|
+
contact_person: string | null;
|
|
6683
|
+
country: string | null;
|
|
6684
|
+
email: string | null;
|
|
6685
|
+
external_id: string | null;
|
|
6686
|
+
fetched_at: string | null;
|
|
6687
|
+
gln: string | null;
|
|
6688
|
+
house_number: string | null;
|
|
6689
|
+
is_active: boolean | null;
|
|
6690
|
+
is_deleted: boolean | null;
|
|
6691
|
+
logo_url: string | null;
|
|
6692
|
+
phone: string | null;
|
|
6693
|
+
postal_code: string | null;
|
|
6694
|
+
provider: string | null;
|
|
6695
|
+
raw: import("./types").Json | null;
|
|
6696
|
+
status: string | null;
|
|
6697
|
+
street: string | null;
|
|
6698
|
+
vat_number: string | null;
|
|
6699
|
+
website: string | null;
|
|
6700
|
+
};
|
|
6701
|
+
Relationships: [{
|
|
6702
|
+
foreignKeyName: "floriday_customers_cache_connection_id_fkey";
|
|
6703
|
+
columns: ["connection_id"];
|
|
6704
|
+
isOneToOne: false;
|
|
6705
|
+
referencedRelation: "floriday_connections";
|
|
6706
|
+
referencedColumns: ["id"];
|
|
6707
|
+
}];
|
|
6708
|
+
};
|
|
6709
|
+
v_external_customers_twinfield: {
|
|
6710
|
+
Row: {
|
|
6711
|
+
city: string | null;
|
|
6712
|
+
commercial_name: string | null;
|
|
6713
|
+
company_name: string | null;
|
|
6714
|
+
connection_id: string | null;
|
|
6715
|
+
contact_person: string | null;
|
|
6716
|
+
country: string | null;
|
|
6717
|
+
email: string | null;
|
|
6718
|
+
external_id: string | null;
|
|
6719
|
+
fetched_at: string | null;
|
|
6720
|
+
gln: string | null;
|
|
6721
|
+
house_number: string | null;
|
|
6722
|
+
is_active: boolean | null;
|
|
6723
|
+
is_deleted: boolean | null;
|
|
6724
|
+
logo_url: string | null;
|
|
6725
|
+
phone: string | null;
|
|
6726
|
+
postal_code: string | null;
|
|
6727
|
+
provider: string | null;
|
|
6728
|
+
raw: import("./types").Json | null;
|
|
6729
|
+
status: string | null;
|
|
6730
|
+
street: string | null;
|
|
6731
|
+
vat_number: string | null;
|
|
6732
|
+
website: string | null;
|
|
6733
|
+
};
|
|
6734
|
+
Relationships: [{
|
|
6735
|
+
foreignKeyName: "twinfield_customers_cache_connection_id_fkey";
|
|
6736
|
+
columns: ["connection_id"];
|
|
6737
|
+
isOneToOne: false;
|
|
6738
|
+
referencedRelation: "twinfield_connections";
|
|
6739
|
+
referencedColumns: ["id"];
|
|
6740
|
+
}];
|
|
6741
|
+
};
|
|
6742
|
+
v_external_invoices_exact: {
|
|
6743
|
+
Row: {
|
|
6744
|
+
connection_id: string | null;
|
|
6745
|
+
currency: string | null;
|
|
6746
|
+
customer_external_id: string | null;
|
|
6747
|
+
customer_name: string | null;
|
|
6748
|
+
customer_vat: string | null;
|
|
6749
|
+
due_at: string | null;
|
|
6750
|
+
external_id: string | null;
|
|
6751
|
+
invoice_number: string | null;
|
|
6752
|
+
issued_at: string | null;
|
|
6753
|
+
open_amount: number | null;
|
|
6754
|
+
paid_at: string | null;
|
|
6755
|
+
raw: import("./types").Json | null;
|
|
6756
|
+
source: string | null;
|
|
6757
|
+
status: string | null;
|
|
6758
|
+
synced_at: string | null;
|
|
6759
|
+
total_excl: number | null;
|
|
6760
|
+
total_incl: number | null;
|
|
6761
|
+
total_vat: number | null;
|
|
6762
|
+
};
|
|
6763
|
+
Insert: {
|
|
6764
|
+
connection_id?: string | null;
|
|
6765
|
+
currency?: never;
|
|
6766
|
+
customer_external_id?: string | null;
|
|
6767
|
+
customer_name?: string | null;
|
|
6768
|
+
customer_vat?: never;
|
|
6769
|
+
due_at?: string | null;
|
|
6770
|
+
external_id?: string | null;
|
|
6771
|
+
invoice_number?: string | null;
|
|
6772
|
+
issued_at?: string | null;
|
|
6773
|
+
open_amount?: number | null;
|
|
6774
|
+
paid_at?: string | null;
|
|
6775
|
+
raw?: import("./types").Json | null;
|
|
6776
|
+
source?: never;
|
|
6777
|
+
status?: string | null;
|
|
6778
|
+
synced_at?: string | null;
|
|
6779
|
+
total_excl?: number | null;
|
|
6780
|
+
total_incl?: number | null;
|
|
6781
|
+
total_vat?: number | null;
|
|
4936
6782
|
};
|
|
4937
|
-
|
|
6783
|
+
Update: {
|
|
6784
|
+
connection_id?: string | null;
|
|
6785
|
+
currency?: never;
|
|
6786
|
+
customer_external_id?: string | null;
|
|
6787
|
+
customer_name?: string | null;
|
|
6788
|
+
customer_vat?: never;
|
|
6789
|
+
due_at?: string | null;
|
|
6790
|
+
external_id?: string | null;
|
|
6791
|
+
invoice_number?: string | null;
|
|
6792
|
+
issued_at?: string | null;
|
|
6793
|
+
open_amount?: number | null;
|
|
6794
|
+
paid_at?: string | null;
|
|
6795
|
+
raw?: import("./types").Json | null;
|
|
6796
|
+
source?: never;
|
|
6797
|
+
status?: string | null;
|
|
6798
|
+
synced_at?: string | null;
|
|
6799
|
+
total_excl?: number | null;
|
|
6800
|
+
total_incl?: number | null;
|
|
6801
|
+
total_vat?: number | null;
|
|
6802
|
+
};
|
|
6803
|
+
Relationships: [{
|
|
6804
|
+
foreignKeyName: "exact_invoices_cache_connection_id_fkey";
|
|
6805
|
+
columns: ["connection_id"];
|
|
6806
|
+
isOneToOne: false;
|
|
6807
|
+
referencedRelation: "exact_connections";
|
|
6808
|
+
referencedColumns: ["id"];
|
|
6809
|
+
}];
|
|
6810
|
+
};
|
|
6811
|
+
v_external_invoices_twinfield: {
|
|
6812
|
+
Row: {
|
|
6813
|
+
connection_id: string | null;
|
|
6814
|
+
currency: string | null;
|
|
6815
|
+
customer_external_id: string | null;
|
|
6816
|
+
customer_name: string | null;
|
|
6817
|
+
customer_vat: string | null;
|
|
6818
|
+
due_at: string | null;
|
|
6819
|
+
external_id: string | null;
|
|
6820
|
+
invoice_number: string | null;
|
|
6821
|
+
issued_at: string | null;
|
|
6822
|
+
open_amount: number | null;
|
|
6823
|
+
owner_user_id: string | null;
|
|
6824
|
+
paid_at: string | null;
|
|
6825
|
+
raw: import("./types").Json | null;
|
|
6826
|
+
source: string | null;
|
|
6827
|
+
status: string | null;
|
|
6828
|
+
synced_at: string | null;
|
|
6829
|
+
total_excl: number | null;
|
|
6830
|
+
total_incl: number | null;
|
|
6831
|
+
total_vat: number | null;
|
|
6832
|
+
};
|
|
6833
|
+
Relationships: [{
|
|
6834
|
+
foreignKeyName: "twinfield_invoices_cache_v2_connection_id_fkey";
|
|
6835
|
+
columns: ["connection_id"];
|
|
6836
|
+
isOneToOne: false;
|
|
6837
|
+
referencedRelation: "twinfield_connections";
|
|
6838
|
+
referencedColumns: ["id"];
|
|
6839
|
+
}];
|
|
4938
6840
|
};
|
|
4939
6841
|
};
|
|
4940
6842
|
Functions: {
|
|
6843
|
+
call_exact_route: {
|
|
6844
|
+
Args: {
|
|
6845
|
+
path: string;
|
|
6846
|
+
};
|
|
6847
|
+
Returns: number;
|
|
6848
|
+
};
|
|
4941
6849
|
dashboard_list_public_schema: {
|
|
4942
6850
|
Args: never;
|
|
4943
6851
|
Returns: {
|
|
@@ -4958,6 +6866,33 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
4958
6866
|
};
|
|
4959
6867
|
Returns: string;
|
|
4960
6868
|
};
|
|
6869
|
+
email_auth_fetch_message: {
|
|
6870
|
+
Args: {
|
|
6871
|
+
_connection_id: string;
|
|
6872
|
+
_external_id: string;
|
|
6873
|
+
};
|
|
6874
|
+
Returns: import("./types").Json;
|
|
6875
|
+
};
|
|
6876
|
+
email_auth_for_purpose: {
|
|
6877
|
+
Args: {
|
|
6878
|
+
_direction: string;
|
|
6879
|
+
_purpose: string;
|
|
6880
|
+
};
|
|
6881
|
+
Returns: {
|
|
6882
|
+
account_email: string;
|
|
6883
|
+
display_name: string;
|
|
6884
|
+
id: string;
|
|
6885
|
+
last_error: string;
|
|
6886
|
+
last_verified_at: string;
|
|
6887
|
+
needs_reauth: boolean;
|
|
6888
|
+
provider: string;
|
|
6889
|
+
status: string;
|
|
6890
|
+
}[];
|
|
6891
|
+
};
|
|
6892
|
+
ensure_user_tenant: {
|
|
6893
|
+
Args: never;
|
|
6894
|
+
Returns: string;
|
|
6895
|
+
};
|
|
4961
6896
|
exact_decrypt: {
|
|
4962
6897
|
Args: {
|
|
4963
6898
|
cipher: string;
|
|
@@ -5004,6 +6939,17 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
5004
6939
|
preferred_warehouse_name: string;
|
|
5005
6940
|
}[];
|
|
5006
6941
|
};
|
|
6942
|
+
get_active_twinfield_public: {
|
|
6943
|
+
Args: never;
|
|
6944
|
+
Returns: {
|
|
6945
|
+
active_environment: string;
|
|
6946
|
+
company_code: string;
|
|
6947
|
+
company_name: string;
|
|
6948
|
+
connection_id: string;
|
|
6949
|
+
environment: string;
|
|
6950
|
+
office_code: string;
|
|
6951
|
+
}[];
|
|
6952
|
+
};
|
|
5007
6953
|
get_floriday_cron_jobs: {
|
|
5008
6954
|
Args: never;
|
|
5009
6955
|
Returns: {
|
|
@@ -5019,6 +6965,37 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
5019
6965
|
};
|
|
5020
6966
|
Returns: import("./types").Json;
|
|
5021
6967
|
};
|
|
6968
|
+
get_room_busy_windows: {
|
|
6969
|
+
Args: {
|
|
6970
|
+
p_from: string;
|
|
6971
|
+
p_to: string;
|
|
6972
|
+
};
|
|
6973
|
+
Returns: {
|
|
6974
|
+
end_time: string;
|
|
6975
|
+
room_id: string;
|
|
6976
|
+
start_time: string;
|
|
6977
|
+
status: string;
|
|
6978
|
+
}[];
|
|
6979
|
+
};
|
|
6980
|
+
get_twinfield_cron_jobs: {
|
|
6981
|
+
Args: never;
|
|
6982
|
+
Returns: {
|
|
6983
|
+
active: boolean;
|
|
6984
|
+
jobname: string;
|
|
6985
|
+
schedule: string;
|
|
6986
|
+
url: string;
|
|
6987
|
+
}[];
|
|
6988
|
+
};
|
|
6989
|
+
get_user_tenant_id: {
|
|
6990
|
+
Args: never;
|
|
6991
|
+
Returns: string;
|
|
6992
|
+
};
|
|
6993
|
+
get_work_order_tenant_id: {
|
|
6994
|
+
Args: {
|
|
6995
|
+
wo_id: string;
|
|
6996
|
+
};
|
|
6997
|
+
Returns: string;
|
|
6998
|
+
};
|
|
5022
6999
|
has_role: {
|
|
5023
7000
|
Args: {
|
|
5024
7001
|
_role: Database["public"]["Enums"]["app_role"];
|
|
@@ -5026,6 +7003,34 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
5026
7003
|
};
|
|
5027
7004
|
Returns: boolean;
|
|
5028
7005
|
};
|
|
7006
|
+
is_authenticated: {
|
|
7007
|
+
Args: never;
|
|
7008
|
+
Returns: boolean;
|
|
7009
|
+
};
|
|
7010
|
+
is_developer: {
|
|
7011
|
+
Args: never;
|
|
7012
|
+
Returns: boolean;
|
|
7013
|
+
};
|
|
7014
|
+
next_work_order_number: {
|
|
7015
|
+
Args: {
|
|
7016
|
+
p_parent_work_order_id?: string;
|
|
7017
|
+
p_tenant_id: string;
|
|
7018
|
+
};
|
|
7019
|
+
Returns: string;
|
|
7020
|
+
};
|
|
7021
|
+
normalize_vat: {
|
|
7022
|
+
Args: {
|
|
7023
|
+
v: string;
|
|
7024
|
+
};
|
|
7025
|
+
Returns: string;
|
|
7026
|
+
};
|
|
7027
|
+
schedule_floriday_carriers_sync: {
|
|
7028
|
+
Args: {
|
|
7029
|
+
p_apikey: string;
|
|
7030
|
+
p_url: string;
|
|
7031
|
+
};
|
|
7032
|
+
Returns: number;
|
|
7033
|
+
};
|
|
5029
7034
|
schedule_floriday_connections_sync: {
|
|
5030
7035
|
Args: {
|
|
5031
7036
|
p_apikey: string;
|
|
@@ -5068,6 +7073,56 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
5068
7073
|
};
|
|
5069
7074
|
Returns: number;
|
|
5070
7075
|
};
|
|
7076
|
+
schedule_twinfield_customers_sync: {
|
|
7077
|
+
Args: {
|
|
7078
|
+
p_apikey: string;
|
|
7079
|
+
p_url: string;
|
|
7080
|
+
};
|
|
7081
|
+
Returns: number;
|
|
7082
|
+
} | {
|
|
7083
|
+
Args: {
|
|
7084
|
+
p_apikey: string;
|
|
7085
|
+
p_cron_secret?: string;
|
|
7086
|
+
p_url: string;
|
|
7087
|
+
};
|
|
7088
|
+
Returns: number;
|
|
7089
|
+
};
|
|
7090
|
+
schedule_twinfield_invoices_sync: {
|
|
7091
|
+
Args: {
|
|
7092
|
+
p_apikey: string;
|
|
7093
|
+
p_url: string;
|
|
7094
|
+
};
|
|
7095
|
+
Returns: number;
|
|
7096
|
+
} | {
|
|
7097
|
+
Args: {
|
|
7098
|
+
p_apikey: string;
|
|
7099
|
+
p_cron_secret?: string;
|
|
7100
|
+
p_url: string;
|
|
7101
|
+
};
|
|
7102
|
+
Returns: number;
|
|
7103
|
+
};
|
|
7104
|
+
schedule_twinfield_push_queue_flush: {
|
|
7105
|
+
Args: {
|
|
7106
|
+
p_apikey: string;
|
|
7107
|
+
p_cron_secret?: string;
|
|
7108
|
+
p_url: string;
|
|
7109
|
+
};
|
|
7110
|
+
Returns: number;
|
|
7111
|
+
};
|
|
7112
|
+
schedule_twinfield_token_refresh: {
|
|
7113
|
+
Args: {
|
|
7114
|
+
p_apikey: string;
|
|
7115
|
+
p_url: string;
|
|
7116
|
+
};
|
|
7117
|
+
Returns: number;
|
|
7118
|
+
} | {
|
|
7119
|
+
Args: {
|
|
7120
|
+
p_apikey: string;
|
|
7121
|
+
p_cron_secret?: string;
|
|
7122
|
+
p_url: string;
|
|
7123
|
+
};
|
|
7124
|
+
Returns: number;
|
|
7125
|
+
};
|
|
5071
7126
|
show_limit: {
|
|
5072
7127
|
Args: never;
|
|
5073
7128
|
Returns: number;
|
|
@@ -5078,10 +7133,23 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
5078
7133
|
};
|
|
5079
7134
|
Returns: string[];
|
|
5080
7135
|
};
|
|
7136
|
+
twinfield_decrypt: {
|
|
7137
|
+
Args: {
|
|
7138
|
+
cipher: string;
|
|
7139
|
+
};
|
|
7140
|
+
Returns: string;
|
|
7141
|
+
};
|
|
7142
|
+
twinfield_encrypt: {
|
|
7143
|
+
Args: {
|
|
7144
|
+
plain: string;
|
|
7145
|
+
};
|
|
7146
|
+
Returns: string;
|
|
7147
|
+
};
|
|
5081
7148
|
};
|
|
5082
7149
|
Enums: {
|
|
5083
|
-
app_role: "admin" | "manager" | "warehouse" | "sales" | "developer";
|
|
7150
|
+
app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
5084
7151
|
exact_env: "staging" | "live";
|
|
7152
|
+
exact_push_status: "pending" | "sent" | "error";
|
|
5085
7153
|
quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
|
|
5086
7154
|
};
|
|
5087
7155
|
CompositeTypes: { [_ in never]: never; };
|