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