@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
@@ -9,10 +9,44 @@ export interface FloridayOrder {
9
9
  lineCount: number;
10
10
  totalAmount: number | null;
11
11
  currency: string | null;
12
+ createdAt: string | null;
12
13
  }
13
14
  export declare const getFloridayOrders: import("@tanstack/start-client-core").OptionalFetcher<readonly [import("@tanstack/start-client-core").FunctionMiddlewareAfterServer<{}, unknown, undefined, {
14
15
  supabase: SupabaseClient<import("../integrations/supabase/types").Database, "public", "public", {
15
16
  Tables: {
17
+ afhandeling_settings: {
18
+ Row: {
19
+ created_at: string;
20
+ id: string;
21
+ max_workdays_earlier_pick: number;
22
+ pick_days_before_transport: number;
23
+ pick_distribution_enabled: boolean;
24
+ transport_register_days_before: number;
25
+ updated_at: string;
26
+ user_id: string;
27
+ };
28
+ Insert: {
29
+ created_at?: string;
30
+ id?: string;
31
+ max_workdays_earlier_pick?: number;
32
+ pick_days_before_transport?: number;
33
+ pick_distribution_enabled?: boolean;
34
+ transport_register_days_before?: number;
35
+ updated_at?: string;
36
+ user_id: string;
37
+ };
38
+ Update: {
39
+ created_at?: string;
40
+ id?: string;
41
+ max_workdays_earlier_pick?: number;
42
+ pick_days_before_transport?: number;
43
+ pick_distribution_enabled?: boolean;
44
+ transport_register_days_before?: number;
45
+ updated_at?: string;
46
+ user_id?: string;
47
+ };
48
+ Relationships: [];
49
+ };
16
50
  agenda_connections: {
17
51
  Row: {
18
52
  account_email: string | null;
@@ -199,6 +233,156 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
199
233
  };
200
234
  Relationships: [];
201
235
  };
236
+ app_settings: {
237
+ Row: {
238
+ created_at: string;
239
+ id: string;
240
+ key: string;
241
+ updated_at: string;
242
+ value: string | null;
243
+ };
244
+ Insert: {
245
+ created_at?: string;
246
+ id?: string;
247
+ key: string;
248
+ updated_at?: string;
249
+ value?: string | null;
250
+ };
251
+ Update: {
252
+ created_at?: string;
253
+ id?: string;
254
+ key?: string;
255
+ updated_at?: string;
256
+ value?: string | null;
257
+ };
258
+ Relationships: [];
259
+ };
260
+ booking_items: {
261
+ Row: {
262
+ booking_id: string;
263
+ created_at: string;
264
+ extra_id: string;
265
+ id: string;
266
+ quantity: number;
267
+ total_price: number;
268
+ unit_price: number;
269
+ };
270
+ Insert: {
271
+ booking_id: string;
272
+ created_at?: string;
273
+ extra_id: string;
274
+ id?: string;
275
+ quantity?: number;
276
+ total_price?: number;
277
+ unit_price?: number;
278
+ };
279
+ Update: {
280
+ booking_id?: string;
281
+ created_at?: string;
282
+ extra_id?: string;
283
+ id?: string;
284
+ quantity?: number;
285
+ total_price?: number;
286
+ unit_price?: number;
287
+ };
288
+ Relationships: [{
289
+ foreignKeyName: "booking_items_booking_id_fkey";
290
+ columns: ["booking_id"];
291
+ isOneToOne: false;
292
+ referencedRelation: "bookings";
293
+ referencedColumns: ["id"];
294
+ }, {
295
+ foreignKeyName: "booking_items_extra_id_fkey";
296
+ columns: ["extra_id"];
297
+ isOneToOne: false;
298
+ referencedRelation: "extras";
299
+ referencedColumns: ["id"];
300
+ }];
301
+ };
302
+ bookings: {
303
+ Row: {
304
+ company_name: string | null;
305
+ conflict_checked_at: string | null;
306
+ conflict_reason: string | null;
307
+ created_at: string;
308
+ created_by_role: string | null;
309
+ customer_email: string | null;
310
+ customer_name: string | null;
311
+ end_time: string;
312
+ exact_debiteur_id: string | null;
313
+ has_conflict: boolean;
314
+ id: string;
315
+ invoice_run_id: string | null;
316
+ invoice_status: string | null;
317
+ invoiced_at: string | null;
318
+ notes: string | null;
319
+ number_of_people: number;
320
+ room_id: string;
321
+ start_time: string;
322
+ status: string;
323
+ total_excl_vat: number | null;
324
+ total_incl_vat: number | null;
325
+ user_id: string | null;
326
+ vat_amount: number | null;
327
+ };
328
+ Insert: {
329
+ company_name?: string | null;
330
+ conflict_checked_at?: string | null;
331
+ conflict_reason?: string | null;
332
+ created_at?: string;
333
+ created_by_role?: string | null;
334
+ customer_email?: string | null;
335
+ customer_name?: string | null;
336
+ end_time: string;
337
+ exact_debiteur_id?: string | null;
338
+ has_conflict?: boolean;
339
+ id?: string;
340
+ invoice_run_id?: string | null;
341
+ invoice_status?: string | null;
342
+ invoiced_at?: string | null;
343
+ notes?: string | null;
344
+ number_of_people?: number;
345
+ room_id: string;
346
+ start_time: string;
347
+ status?: string;
348
+ total_excl_vat?: number | null;
349
+ total_incl_vat?: number | null;
350
+ user_id?: string | null;
351
+ vat_amount?: number | null;
352
+ };
353
+ Update: {
354
+ company_name?: string | null;
355
+ conflict_checked_at?: string | null;
356
+ conflict_reason?: string | null;
357
+ created_at?: string;
358
+ created_by_role?: string | null;
359
+ customer_email?: string | null;
360
+ customer_name?: string | null;
361
+ end_time?: string;
362
+ exact_debiteur_id?: string | null;
363
+ has_conflict?: boolean;
364
+ id?: string;
365
+ invoice_run_id?: string | null;
366
+ invoice_status?: string | null;
367
+ invoiced_at?: string | null;
368
+ notes?: string | null;
369
+ number_of_people?: number;
370
+ room_id?: string;
371
+ start_time?: string;
372
+ status?: string;
373
+ total_excl_vat?: number | null;
374
+ total_incl_vat?: number | null;
375
+ user_id?: string | null;
376
+ vat_amount?: number | null;
377
+ };
378
+ Relationships: [{
379
+ foreignKeyName: "bookings_room_id_fkey";
380
+ columns: ["room_id"];
381
+ isOneToOne: false;
382
+ referencedRelation: "rooms";
383
+ referencedColumns: ["id"];
384
+ }];
385
+ };
202
386
  bugs: {
203
387
  Row: {
204
388
  attachment_url: string | null;
@@ -273,9 +457,12 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
273
457
  delivery_days: number | null;
274
458
  email: string | null;
275
459
  id: string;
460
+ is_default: boolean;
276
461
  name: string;
277
462
  notes: string | null;
278
463
  phone: string | null;
464
+ pickup_moments: import("../integrations/supabase/types").Json;
465
+ signup_days_before_delivery: number;
279
466
  signup_time_1: string | null;
280
467
  signup_time_2: string | null;
281
468
  updated_at: string;
@@ -288,9 +475,12 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
288
475
  delivery_days?: number | null;
289
476
  email?: string | null;
290
477
  id?: string;
478
+ is_default?: boolean;
291
479
  name: string;
292
480
  notes?: string | null;
293
481
  phone?: string | null;
482
+ pickup_moments?: import("../integrations/supabase/types").Json;
483
+ signup_days_before_delivery?: number;
294
484
  signup_time_1?: string | null;
295
485
  signup_time_2?: string | null;
296
486
  updated_at?: string;
@@ -303,9 +493,12 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
303
493
  delivery_days?: number | null;
304
494
  email?: string | null;
305
495
  id?: string;
496
+ is_default?: boolean;
306
497
  name?: string;
307
498
  notes?: string | null;
308
499
  phone?: string | null;
500
+ pickup_moments?: import("../integrations/supabase/types").Json;
501
+ signup_days_before_delivery?: number;
309
502
  signup_time_1?: string | null;
310
503
  signup_time_2?: string | null;
311
504
  updated_at?: string;
@@ -1030,17 +1223,26 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
1030
1223
  created_at: string;
1031
1224
  created_by: string | null;
1032
1225
  display_name: string | null;
1226
+ gmail_history_id: string | null;
1227
+ gmail_watch_expires_at: string | null;
1228
+ graph_subscription_expires_at: string | null;
1229
+ graph_subscription_id: string | null;
1033
1230
  id: string;
1034
1231
  imap_host: string | null;
1232
+ imap_last_uid: number | null;
1035
1233
  imap_password_encrypted: string | null;
1036
1234
  imap_port: number | null;
1037
1235
  imap_secure: boolean | null;
1236
+ imap_uid_validity: number | null;
1038
1237
  imap_username: string | null;
1039
1238
  is_active: boolean;
1040
1239
  last_error: string | null;
1240
+ last_event_at: string | null;
1041
1241
  last_verified_at: string | null;
1042
1242
  oauth_mode: string | null;
1043
1243
  provider: string;
1244
+ purpose_assignments: import("../integrations/supabase/types").Json;
1245
+ realtime_mode: string;
1044
1246
  refresh_token_encrypted: string | null;
1045
1247
  scopes: string[] | null;
1046
1248
  smtp_host: string | null;
@@ -1060,17 +1262,26 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
1060
1262
  created_at?: string;
1061
1263
  created_by?: string | null;
1062
1264
  display_name?: string | null;
1265
+ gmail_history_id?: string | null;
1266
+ gmail_watch_expires_at?: string | null;
1267
+ graph_subscription_expires_at?: string | null;
1268
+ graph_subscription_id?: string | null;
1063
1269
  id?: string;
1064
1270
  imap_host?: string | null;
1271
+ imap_last_uid?: number | null;
1065
1272
  imap_password_encrypted?: string | null;
1066
1273
  imap_port?: number | null;
1067
1274
  imap_secure?: boolean | null;
1275
+ imap_uid_validity?: number | null;
1068
1276
  imap_username?: string | null;
1069
1277
  is_active?: boolean;
1070
1278
  last_error?: string | null;
1279
+ last_event_at?: string | null;
1071
1280
  last_verified_at?: string | null;
1072
1281
  oauth_mode?: string | null;
1073
1282
  provider: string;
1283
+ purpose_assignments?: import("../integrations/supabase/types").Json;
1284
+ realtime_mode?: string;
1074
1285
  refresh_token_encrypted?: string | null;
1075
1286
  scopes?: string[] | null;
1076
1287
  smtp_host?: string | null;
@@ -1090,17 +1301,26 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
1090
1301
  created_at?: string;
1091
1302
  created_by?: string | null;
1092
1303
  display_name?: string | null;
1304
+ gmail_history_id?: string | null;
1305
+ gmail_watch_expires_at?: string | null;
1306
+ graph_subscription_expires_at?: string | null;
1307
+ graph_subscription_id?: string | null;
1093
1308
  id?: string;
1094
1309
  imap_host?: string | null;
1310
+ imap_last_uid?: number | null;
1095
1311
  imap_password_encrypted?: string | null;
1096
1312
  imap_port?: number | null;
1097
1313
  imap_secure?: boolean | null;
1314
+ imap_uid_validity?: number | null;
1098
1315
  imap_username?: string | null;
1099
1316
  is_active?: boolean;
1100
1317
  last_error?: string | null;
1318
+ last_event_at?: string | null;
1101
1319
  last_verified_at?: string | null;
1102
1320
  oauth_mode?: string | null;
1103
1321
  provider?: string;
1322
+ purpose_assignments?: import("../integrations/supabase/types").Json;
1323
+ realtime_mode?: string;
1104
1324
  refresh_token_encrypted?: string | null;
1105
1325
  scopes?: string[] | null;
1106
1326
  smtp_host?: string | null;
@@ -1114,6 +1334,195 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
1114
1334
  };
1115
1335
  Relationships: [];
1116
1336
  };
1337
+ email_auth_events: {
1338
+ Row: {
1339
+ connection_id: string;
1340
+ consumed_at: string | null;
1341
+ created_at: string;
1342
+ event_type: string;
1343
+ external_id: string | null;
1344
+ id: string;
1345
+ payload: import("../integrations/supabase/types").Json;
1346
+ provider: string;
1347
+ received_at: string;
1348
+ };
1349
+ Insert: {
1350
+ connection_id: string;
1351
+ consumed_at?: string | null;
1352
+ created_at?: string;
1353
+ event_type: string;
1354
+ external_id?: string | null;
1355
+ id?: string;
1356
+ payload?: import("../integrations/supabase/types").Json;
1357
+ provider: string;
1358
+ received_at?: string;
1359
+ };
1360
+ Update: {
1361
+ connection_id?: string;
1362
+ consumed_at?: string | null;
1363
+ created_at?: string;
1364
+ event_type?: string;
1365
+ external_id?: string | null;
1366
+ id?: string;
1367
+ payload?: import("../integrations/supabase/types").Json;
1368
+ provider?: string;
1369
+ received_at?: string;
1370
+ };
1371
+ Relationships: [{
1372
+ foreignKeyName: "email_auth_events_connection_id_fkey";
1373
+ columns: ["connection_id"];
1374
+ isOneToOne: false;
1375
+ referencedRelation: "email_auth_connections";
1376
+ referencedColumns: ["id"];
1377
+ }, {
1378
+ foreignKeyName: "email_auth_events_connection_id_fkey";
1379
+ columns: ["connection_id"];
1380
+ isOneToOne: false;
1381
+ referencedRelation: "email_auth_connections_safe";
1382
+ referencedColumns: ["id"];
1383
+ }];
1384
+ };
1385
+ email_auth_outbox: {
1386
+ Row: {
1387
+ attempts: number;
1388
+ bcc_addresses: string[];
1389
+ cc_addresses: string[];
1390
+ connection_id: string | null;
1391
+ created_at: string;
1392
+ created_by: string | null;
1393
+ external_message_id: string | null;
1394
+ headers: import("../integrations/supabase/types").Json;
1395
+ html_body: string | null;
1396
+ id: string;
1397
+ last_error: string | null;
1398
+ purpose: string;
1399
+ reply_to: string | null;
1400
+ scheduled_at: string;
1401
+ sent_at: string | null;
1402
+ status: string;
1403
+ subject: string;
1404
+ text_body: string | null;
1405
+ to_addresses: string[];
1406
+ updated_at: string;
1407
+ };
1408
+ Insert: {
1409
+ attempts?: number;
1410
+ bcc_addresses?: string[];
1411
+ cc_addresses?: string[];
1412
+ connection_id?: string | null;
1413
+ created_at?: string;
1414
+ created_by?: string | null;
1415
+ external_message_id?: string | null;
1416
+ headers?: import("../integrations/supabase/types").Json;
1417
+ html_body?: string | null;
1418
+ id?: string;
1419
+ last_error?: string | null;
1420
+ purpose: string;
1421
+ reply_to?: string | null;
1422
+ scheduled_at?: string;
1423
+ sent_at?: string | null;
1424
+ status?: string;
1425
+ subject: string;
1426
+ text_body?: string | null;
1427
+ to_addresses: string[];
1428
+ updated_at?: string;
1429
+ };
1430
+ Update: {
1431
+ attempts?: number;
1432
+ bcc_addresses?: string[];
1433
+ cc_addresses?: string[];
1434
+ connection_id?: string | null;
1435
+ created_at?: string;
1436
+ created_by?: string | null;
1437
+ external_message_id?: string | null;
1438
+ headers?: import("../integrations/supabase/types").Json;
1439
+ html_body?: string | null;
1440
+ id?: string;
1441
+ last_error?: string | null;
1442
+ purpose?: string;
1443
+ reply_to?: string | null;
1444
+ scheduled_at?: string;
1445
+ sent_at?: string | null;
1446
+ status?: string;
1447
+ subject?: string;
1448
+ text_body?: string | null;
1449
+ to_addresses?: string[];
1450
+ updated_at?: string;
1451
+ };
1452
+ Relationships: [{
1453
+ foreignKeyName: "email_auth_outbox_connection_id_fkey";
1454
+ columns: ["connection_id"];
1455
+ isOneToOne: false;
1456
+ referencedRelation: "email_auth_connections";
1457
+ referencedColumns: ["id"];
1458
+ }, {
1459
+ foreignKeyName: "email_auth_outbox_connection_id_fkey";
1460
+ columns: ["connection_id"];
1461
+ isOneToOne: false;
1462
+ referencedRelation: "email_auth_connections_safe";
1463
+ referencedColumns: ["id"];
1464
+ }];
1465
+ };
1466
+ email_auth_purpose_settings: {
1467
+ Row: {
1468
+ purpose: string;
1469
+ reply_to: string | null;
1470
+ updated_at: string;
1471
+ updated_by: string | null;
1472
+ };
1473
+ Insert: {
1474
+ purpose: string;
1475
+ reply_to?: string | null;
1476
+ updated_at?: string;
1477
+ updated_by?: string | null;
1478
+ };
1479
+ Update: {
1480
+ purpose?: string;
1481
+ reply_to?: string | null;
1482
+ updated_at?: string;
1483
+ updated_by?: string | null;
1484
+ };
1485
+ Relationships: [];
1486
+ };
1487
+ email_auth_token_refresh_log: {
1488
+ Row: {
1489
+ connection_id: string;
1490
+ error_message: string | null;
1491
+ id: string;
1492
+ refreshed_at: string;
1493
+ success: boolean;
1494
+ trigger_source: string;
1495
+ };
1496
+ Insert: {
1497
+ connection_id: string;
1498
+ error_message?: string | null;
1499
+ id?: string;
1500
+ refreshed_at?: string;
1501
+ success: boolean;
1502
+ trigger_source: string;
1503
+ };
1504
+ Update: {
1505
+ connection_id?: string;
1506
+ error_message?: string | null;
1507
+ id?: string;
1508
+ refreshed_at?: string;
1509
+ success?: boolean;
1510
+ trigger_source?: string;
1511
+ };
1512
+ Relationships: [{
1513
+ foreignKeyName: "email_auth_token_refresh_log_connection_id_fkey";
1514
+ columns: ["connection_id"];
1515
+ isOneToOne: false;
1516
+ referencedRelation: "email_auth_connections";
1517
+ referencedColumns: ["id"];
1518
+ }, {
1519
+ foreignKeyName: "email_auth_token_refresh_log_connection_id_fkey";
1520
+ columns: ["connection_id"];
1521
+ isOneToOne: false;
1522
+ referencedRelation: "email_auth_connections_safe";
1523
+ referencedColumns: ["id"];
1524
+ }];
1525
+ };
1117
1526
  exact_account_analytics_cache: {
1118
1527
  Row: {
1119
1528
  account_id: string;
@@ -1837,32 +2246,115 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
1837
2246
  referencedColumns: ["id"];
1838
2247
  }];
1839
2248
  };
1840
- exact_refresh_locks: {
2249
+ exact_push_queue: {
1841
2250
  Row: {
1842
- environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
1843
- locked_by: string;
1844
- locked_until: string;
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("../integrations/supabase/types").Json;
2259
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_push_status"];
1845
2260
  updated_at: string;
1846
2261
  };
1847
2262
  Insert: {
1848
- environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
1849
- locked_by: string;
1850
- locked_until: string;
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("../integrations/supabase/types").Json;
2271
+ status?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_push_status"];
1851
2272
  updated_at?: string;
1852
2273
  };
1853
2274
  Update: {
1854
- environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
1855
- locked_by?: string;
1856
- locked_until?: string;
1857
- updated_at?: string;
1858
- };
1859
- Relationships: [];
1860
- };
1861
- exact_sync_state: {
1862
- Row: {
2275
+ attempts?: number;
2276
+ connection_id?: string;
2277
+ created_at?: string;
2278
+ external_id?: string | null;
2279
+ id?: string;
2280
+ idempotency_hash?: string;
2281
+ last_error?: string | null;
2282
+ payload?: import("../integrations/supabase/types").Json;
2283
+ status?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_push_status"];
2284
+ updated_at?: string;
2285
+ };
2286
+ Relationships: [{
2287
+ foreignKeyName: "exact_push_queue_connection_id_fkey";
2288
+ columns: ["connection_id"];
2289
+ isOneToOne: false;
2290
+ referencedRelation: "exact_connections";
2291
+ referencedColumns: ["id"];
2292
+ }];
2293
+ };
2294
+ exact_refresh_locks: {
2295
+ Row: {
2296
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
2297
+ locked_by: string;
2298
+ locked_until: string;
2299
+ updated_at: string;
2300
+ };
2301
+ Insert: {
2302
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
2303
+ locked_by: string;
2304
+ locked_until: string;
2305
+ updated_at?: string;
2306
+ };
2307
+ Update: {
2308
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
2309
+ locked_by?: string;
2310
+ locked_until?: string;
2311
+ updated_at?: string;
2312
+ };
2313
+ Relationships: [];
2314
+ };
2315
+ exact_settings: {
2316
+ Row: {
2317
+ client_id: string | null;
2318
+ client_secret: string | null;
2319
+ connection_status: string;
2320
+ created_at: string;
2321
+ division_id: string | null;
2322
+ id: string;
2323
+ last_sync_at: string | null;
2324
+ redirect_uri: string | null;
2325
+ updated_at: string;
2326
+ };
2327
+ Insert: {
2328
+ client_id?: string | null;
2329
+ client_secret?: string | null;
2330
+ connection_status?: string;
2331
+ created_at?: string;
2332
+ division_id?: string | null;
2333
+ id?: string;
2334
+ last_sync_at?: string | null;
2335
+ redirect_uri?: string | null;
2336
+ updated_at?: string;
2337
+ };
2338
+ Update: {
2339
+ client_id?: string | null;
2340
+ client_secret?: string | null;
2341
+ connection_status?: string;
2342
+ created_at?: string;
2343
+ division_id?: string | null;
2344
+ id?: string;
2345
+ last_sync_at?: string | null;
2346
+ redirect_uri?: string | null;
2347
+ updated_at?: string;
2348
+ };
2349
+ Relationships: [];
2350
+ };
2351
+ exact_sync_state: {
2352
+ Row: {
1863
2353
  connection_id: string;
1864
2354
  last_error: string | null;
1865
2355
  last_modified_cursor: string | null;
2356
+ last_modified_cursor_customers: string | null;
2357
+ last_modified_cursor_invoices: string | null;
1866
2358
  last_synced_at: string | null;
1867
2359
  status: string;
1868
2360
  updated_at: string;
@@ -1871,6 +2363,8 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
1871
2363
  connection_id: string;
1872
2364
  last_error?: string | null;
1873
2365
  last_modified_cursor?: string | null;
2366
+ last_modified_cursor_customers?: string | null;
2367
+ last_modified_cursor_invoices?: string | null;
1874
2368
  last_synced_at?: string | null;
1875
2369
  status?: string;
1876
2370
  updated_at?: string;
@@ -1879,12 +2373,155 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
1879
2373
  connection_id?: string;
1880
2374
  last_error?: string | null;
1881
2375
  last_modified_cursor?: string | null;
2376
+ last_modified_cursor_customers?: string | null;
2377
+ last_modified_cursor_invoices?: string | null;
1882
2378
  last_synced_at?: string | null;
1883
2379
  status?: string;
1884
2380
  updated_at?: string;
1885
2381
  };
1886
2382
  Relationships: [];
1887
2383
  };
2384
+ external_customer_providers: {
2385
+ Row: {
2386
+ color: string | null;
2387
+ created_at: string;
2388
+ icon: string | null;
2389
+ is_enabled: boolean;
2390
+ label: string;
2391
+ last_synced_at: string | null;
2392
+ provider: string;
2393
+ sort_order: number;
2394
+ updated_at: string;
2395
+ };
2396
+ Insert: {
2397
+ color?: string | null;
2398
+ created_at?: string;
2399
+ icon?: string | null;
2400
+ is_enabled?: boolean;
2401
+ label: string;
2402
+ last_synced_at?: string | null;
2403
+ provider: string;
2404
+ sort_order?: number;
2405
+ updated_at?: string;
2406
+ };
2407
+ Update: {
2408
+ color?: string | null;
2409
+ created_at?: string;
2410
+ icon?: string | null;
2411
+ is_enabled?: boolean;
2412
+ label?: string;
2413
+ last_synced_at?: string | null;
2414
+ provider?: string;
2415
+ sort_order?: number;
2416
+ updated_at?: string;
2417
+ };
2418
+ Relationships: [];
2419
+ };
2420
+ external_invoice_providers: {
2421
+ Row: {
2422
+ color: string | null;
2423
+ created_at: string;
2424
+ hmac_secret_name: string | null;
2425
+ icon: string | null;
2426
+ is_enabled: boolean;
2427
+ label: string;
2428
+ last_synced_at: string | null;
2429
+ provider: string;
2430
+ push_endpoint: string | null;
2431
+ sort_order: number;
2432
+ status_endpoint: string | null;
2433
+ sync_endpoint: string | null;
2434
+ updated_at: string;
2435
+ };
2436
+ Insert: {
2437
+ color?: string | null;
2438
+ created_at?: string;
2439
+ hmac_secret_name?: string | null;
2440
+ icon?: string | null;
2441
+ is_enabled?: boolean;
2442
+ label: string;
2443
+ last_synced_at?: string | null;
2444
+ provider: string;
2445
+ push_endpoint?: string | null;
2446
+ sort_order?: number;
2447
+ status_endpoint?: string | null;
2448
+ sync_endpoint?: string | null;
2449
+ updated_at?: string;
2450
+ };
2451
+ Update: {
2452
+ color?: string | null;
2453
+ created_at?: string;
2454
+ hmac_secret_name?: string | null;
2455
+ icon?: string | null;
2456
+ is_enabled?: boolean;
2457
+ label?: string;
2458
+ last_synced_at?: string | null;
2459
+ provider?: string;
2460
+ push_endpoint?: string | null;
2461
+ sort_order?: number;
2462
+ status_endpoint?: string | null;
2463
+ sync_endpoint?: string | null;
2464
+ updated_at?: string;
2465
+ };
2466
+ Relationships: [];
2467
+ };
2468
+ extra_categories: {
2469
+ Row: {
2470
+ created_at: string;
2471
+ id: string;
2472
+ name: string;
2473
+ sort_order: number;
2474
+ updated_at: string;
2475
+ };
2476
+ Insert: {
2477
+ created_at?: string;
2478
+ id?: string;
2479
+ name: string;
2480
+ sort_order?: number;
2481
+ updated_at?: string;
2482
+ };
2483
+ Update: {
2484
+ created_at?: string;
2485
+ id?: string;
2486
+ name?: string;
2487
+ sort_order?: number;
2488
+ updated_at?: string;
2489
+ };
2490
+ Relationships: [];
2491
+ };
2492
+ extras: {
2493
+ Row: {
2494
+ category: string;
2495
+ created_at: string;
2496
+ exact_article_id: string | null;
2497
+ id: string;
2498
+ is_active: boolean;
2499
+ name: string;
2500
+ price: number;
2501
+ pricing_type: string;
2502
+ };
2503
+ Insert: {
2504
+ category: string;
2505
+ created_at?: string;
2506
+ exact_article_id?: string | null;
2507
+ id?: string;
2508
+ is_active?: boolean;
2509
+ name: string;
2510
+ price?: number;
2511
+ pricing_type?: string;
2512
+ };
2513
+ Update: {
2514
+ category?: string;
2515
+ created_at?: string;
2516
+ exact_article_id?: string | null;
2517
+ id?: string;
2518
+ is_active?: boolean;
2519
+ name?: string;
2520
+ price?: number;
2521
+ pricing_type?: string;
2522
+ };
2523
+ Relationships: [];
2524
+ };
1888
2525
  floricode_connection_settings: {
1889
2526
  Row: {
1890
2527
  catalog_key: string | null;
@@ -1975,6 +2612,48 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
1975
2612
  };
1976
2613
  Relationships: [];
1977
2614
  };
2615
+ floriday_carriers_cache: {
2616
+ Row: {
2617
+ connection_id: string | null;
2618
+ created_at: string;
2619
+ data: import("../integrations/supabase/types").Json;
2620
+ fetched_at: string;
2621
+ gln_code: string | null;
2622
+ id: string;
2623
+ name: string | null;
2624
+ organization_id: string;
2625
+ updated_at: string;
2626
+ };
2627
+ Insert: {
2628
+ connection_id?: string | null;
2629
+ created_at?: string;
2630
+ data: import("../integrations/supabase/types").Json;
2631
+ fetched_at?: string;
2632
+ gln_code?: string | null;
2633
+ id?: string;
2634
+ name?: string | null;
2635
+ organization_id: string;
2636
+ updated_at?: string;
2637
+ };
2638
+ Update: {
2639
+ connection_id?: string | null;
2640
+ created_at?: string;
2641
+ data?: import("../integrations/supabase/types").Json;
2642
+ fetched_at?: string;
2643
+ gln_code?: string | null;
2644
+ id?: string;
2645
+ name?: string | null;
2646
+ organization_id?: string;
2647
+ updated_at?: string;
2648
+ };
2649
+ Relationships: [{
2650
+ foreignKeyName: "floriday_carriers_cache_connection_id_fkey";
2651
+ columns: ["connection_id"];
2652
+ isOneToOne: false;
2653
+ referencedRelation: "floriday_connections";
2654
+ referencedColumns: ["id"];
2655
+ }];
2656
+ };
1978
2657
  floriday_connections: {
1979
2658
  Row: {
1980
2659
  access_token: string | null;
@@ -2494,38 +3173,186 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
2494
3173
  };
2495
3174
  Relationships: [];
2496
3175
  };
2497
- locations: {
3176
+ invoice_push_log: {
2498
3177
  Row: {
3178
+ connection_id: string | null;
2499
3179
  created_at: string;
3180
+ created_by: string;
3181
+ customer_id: string | null;
2500
3182
  id: string;
2501
- name: string;
2502
- sort_order: number;
3183
+ last_error: string | null;
3184
+ last_polled_at: string | null;
3185
+ payload: import("../integrations/supabase/types").Json;
3186
+ provider_id: string;
3187
+ queue_id: string | null;
3188
+ status: string;
2503
3189
  updated_at: string;
2504
3190
  };
2505
3191
  Insert: {
3192
+ connection_id?: string | null;
2506
3193
  created_at?: string;
3194
+ created_by?: string;
3195
+ customer_id?: string | null;
2507
3196
  id?: string;
2508
- name: string;
2509
- sort_order?: number;
3197
+ last_error?: string | null;
3198
+ last_polled_at?: string | null;
3199
+ payload?: import("../integrations/supabase/types").Json;
3200
+ provider_id: string;
3201
+ queue_id?: string | null;
3202
+ status?: string;
2510
3203
  updated_at?: string;
2511
3204
  };
2512
3205
  Update: {
3206
+ connection_id?: string | null;
2513
3207
  created_at?: string;
3208
+ created_by?: string;
3209
+ customer_id?: string | null;
2514
3210
  id?: string;
2515
- name?: string;
2516
- sort_order?: number;
3211
+ last_error?: string | null;
3212
+ last_polled_at?: string | null;
3213
+ payload?: import("../integrations/supabase/types").Json;
3214
+ provider_id?: string;
3215
+ queue_id?: string | null;
3216
+ status?: string;
2517
3217
  updated_at?: string;
2518
3218
  };
2519
- Relationships: [];
3219
+ Relationships: [{
3220
+ foreignKeyName: "invoice_push_log_provider_id_fkey";
3221
+ columns: ["provider_id"];
3222
+ isOneToOne: false;
3223
+ referencedRelation: "external_invoice_providers";
3224
+ referencedColumns: ["provider"];
3225
+ }];
2520
3226
  };
2521
- mailbox_messages: {
3227
+ invoice_run_items: {
2522
3228
  Row: {
2523
- body_html: string | null;
2524
- body_text: string | null;
3229
+ booking_id: string | null;
3230
+ company_name: string | null;
2525
3231
  created_at: string;
2526
- error_message: string | null;
2527
- from_email: string | null;
2528
- from_name: string | null;
3232
+ customer_email: string | null;
3233
+ description: string | null;
3234
+ exact_article_id: string | null;
3235
+ id: string;
3236
+ invoice_run_id: string | null;
3237
+ quantity: number | null;
3238
+ total_excl_vat: number | null;
3239
+ total_incl_vat: number | null;
3240
+ unit_price: number | null;
3241
+ vat_amount: number | null;
3242
+ };
3243
+ Insert: {
3244
+ booking_id?: string | null;
3245
+ company_name?: string | null;
3246
+ created_at?: string;
3247
+ customer_email?: string | null;
3248
+ description?: string | null;
3249
+ exact_article_id?: string | null;
3250
+ id?: string;
3251
+ invoice_run_id?: string | null;
3252
+ quantity?: number | null;
3253
+ total_excl_vat?: number | null;
3254
+ total_incl_vat?: number | null;
3255
+ unit_price?: number | null;
3256
+ vat_amount?: number | null;
3257
+ };
3258
+ Update: {
3259
+ booking_id?: string | null;
3260
+ company_name?: string | null;
3261
+ created_at?: string;
3262
+ customer_email?: string | null;
3263
+ description?: string | null;
3264
+ exact_article_id?: string | null;
3265
+ id?: string;
3266
+ invoice_run_id?: string | null;
3267
+ quantity?: number | null;
3268
+ total_excl_vat?: number | null;
3269
+ total_incl_vat?: number | null;
3270
+ unit_price?: number | null;
3271
+ vat_amount?: number | null;
3272
+ };
3273
+ Relationships: [{
3274
+ foreignKeyName: "invoice_run_items_booking_id_fkey";
3275
+ columns: ["booking_id"];
3276
+ isOneToOne: false;
3277
+ referencedRelation: "bookings";
3278
+ referencedColumns: ["id"];
3279
+ }, {
3280
+ foreignKeyName: "invoice_run_items_invoice_run_id_fkey";
3281
+ columns: ["invoice_run_id"];
3282
+ isOneToOne: false;
3283
+ referencedRelation: "invoice_runs";
3284
+ referencedColumns: ["id"];
3285
+ }];
3286
+ };
3287
+ invoice_runs: {
3288
+ Row: {
3289
+ created_at: string;
3290
+ created_by: string | null;
3291
+ id: string;
3292
+ period_end: string;
3293
+ period_start: string;
3294
+ status: string;
3295
+ total_excl_vat: number | null;
3296
+ total_incl_vat: number | null;
3297
+ vat_amount: number | null;
3298
+ };
3299
+ Insert: {
3300
+ created_at?: string;
3301
+ created_by?: string | null;
3302
+ id?: string;
3303
+ period_end: string;
3304
+ period_start: string;
3305
+ status?: string;
3306
+ total_excl_vat?: number | null;
3307
+ total_incl_vat?: number | null;
3308
+ vat_amount?: number | null;
3309
+ };
3310
+ Update: {
3311
+ created_at?: string;
3312
+ created_by?: string | null;
3313
+ id?: string;
3314
+ period_end?: string;
3315
+ period_start?: string;
3316
+ status?: string;
3317
+ total_excl_vat?: number | null;
3318
+ total_incl_vat?: number | null;
3319
+ vat_amount?: number | null;
3320
+ };
3321
+ Relationships: [];
3322
+ };
3323
+ locations: {
3324
+ Row: {
3325
+ created_at: string;
3326
+ id: string;
3327
+ name: string;
3328
+ sort_order: number;
3329
+ updated_at: string;
3330
+ };
3331
+ Insert: {
3332
+ created_at?: string;
3333
+ id?: string;
3334
+ name: string;
3335
+ sort_order?: number;
3336
+ updated_at?: string;
3337
+ };
3338
+ Update: {
3339
+ created_at?: string;
3340
+ id?: string;
3341
+ name?: string;
3342
+ sort_order?: number;
3343
+ updated_at?: string;
3344
+ };
3345
+ Relationships: [];
3346
+ };
3347
+ mailbox_messages: {
3348
+ Row: {
3349
+ body_html: string | null;
3350
+ body_text: string | null;
3351
+ created_at: string;
3352
+ error_message: string | null;
3353
+ external_id: string | null;
3354
+ from_email: string | null;
3355
+ from_name: string | null;
2529
3356
  id: string;
2530
3357
  message_id: string | null;
2531
3358
  profile_id: string | null;
@@ -2533,7 +3360,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
2533
3360
  received_at: string | null;
2534
3361
  status: string;
2535
3362
  subject: string | null;
2536
- uid: number;
3363
+ uid: number | null;
2537
3364
  updated_at: string;
2538
3365
  };
2539
3366
  Insert: {
@@ -2541,6 +3368,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
2541
3368
  body_text?: string | null;
2542
3369
  created_at?: string;
2543
3370
  error_message?: string | null;
3371
+ external_id?: string | null;
2544
3372
  from_email?: string | null;
2545
3373
  from_name?: string | null;
2546
3374
  id?: string;
@@ -2550,7 +3378,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
2550
3378
  received_at?: string | null;
2551
3379
  status?: string;
2552
3380
  subject?: string | null;
2553
- uid: number;
3381
+ uid?: number | null;
2554
3382
  updated_at?: string;
2555
3383
  };
2556
3384
  Update: {
@@ -2558,6 +3386,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
2558
3386
  body_text?: string | null;
2559
3387
  created_at?: string;
2560
3388
  error_message?: string | null;
3389
+ external_id?: string | null;
2561
3390
  from_email?: string | null;
2562
3391
  from_name?: string | null;
2563
3392
  id?: string;
@@ -2567,7 +3396,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
2567
3396
  received_at?: string | null;
2568
3397
  status?: string;
2569
3398
  subject?: string | null;
2570
- uid?: number;
3399
+ uid?: number | null;
2571
3400
  updated_at?: string;
2572
3401
  };
2573
3402
  Relationships: [{
@@ -2839,6 +3668,60 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
2839
3668
  };
2840
3669
  Relationships: [];
2841
3670
  };
3671
+ monteurs: {
3672
+ Row: {
3673
+ avatar_url: string | null;
3674
+ color: string | null;
3675
+ created_at: string;
3676
+ email: string | null;
3677
+ id: string;
3678
+ is_active: boolean;
3679
+ leave_balance_hours: number;
3680
+ name: string;
3681
+ persnr: number | null;
3682
+ phone: string | null;
3683
+ role: string;
3684
+ tenant_id: string;
3685
+ updated_at: string;
3686
+ };
3687
+ Insert: {
3688
+ avatar_url?: string | null;
3689
+ color?: string | null;
3690
+ created_at?: string;
3691
+ email?: string | null;
3692
+ id?: string;
3693
+ is_active?: boolean;
3694
+ leave_balance_hours?: number;
3695
+ name: string;
3696
+ persnr?: number | null;
3697
+ phone?: string | null;
3698
+ role?: string;
3699
+ tenant_id: string;
3700
+ updated_at?: string;
3701
+ };
3702
+ Update: {
3703
+ avatar_url?: string | null;
3704
+ color?: string | null;
3705
+ created_at?: string;
3706
+ email?: string | null;
3707
+ id?: string;
3708
+ is_active?: boolean;
3709
+ leave_balance_hours?: number;
3710
+ name?: string;
3711
+ persnr?: number | null;
3712
+ phone?: string | null;
3713
+ role?: string;
3714
+ tenant_id?: string;
3715
+ updated_at?: string;
3716
+ };
3717
+ Relationships: [{
3718
+ foreignKeyName: "monteurs_tenant_id_fkey";
3719
+ columns: ["tenant_id"];
3720
+ isOneToOne: false;
3721
+ referencedRelation: "tenants";
3722
+ referencedColumns: ["id"];
3723
+ }];
3724
+ };
2842
3725
  notifications: {
2843
3726
  Row: {
2844
3727
  created_at: string;
@@ -3448,6 +4331,36 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
3448
4331
  };
3449
4332
  Relationships: [];
3450
4333
  };
4334
+ pickstation_print_log: {
4335
+ Row: {
4336
+ customer_name: string | null;
4337
+ documents: string[];
4338
+ id: string;
4339
+ ip_address: string | null;
4340
+ order_id: string;
4341
+ order_number: string | null;
4342
+ printed_at: string;
4343
+ };
4344
+ Insert: {
4345
+ customer_name?: string | null;
4346
+ documents?: string[];
4347
+ id?: string;
4348
+ ip_address?: string | null;
4349
+ order_id: string;
4350
+ order_number?: string | null;
4351
+ printed_at?: string;
4352
+ };
4353
+ Update: {
4354
+ customer_name?: string | null;
4355
+ documents?: string[];
4356
+ id?: string;
4357
+ ip_address?: string | null;
4358
+ order_id?: string;
4359
+ order_number?: string | null;
4360
+ printed_at?: string;
4361
+ };
4362
+ Relationships: [];
4363
+ };
3451
4364
  pipeline_settings: {
3452
4365
  Row: {
3453
4366
  created_at: string;
@@ -3671,6 +4584,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
3671
4584
  email: string | null;
3672
4585
  id: string;
3673
4586
  notification_preferences: import("../integrations/supabase/types").Json;
4587
+ tenant_id: string | null;
3674
4588
  updated_at: string;
3675
4589
  };
3676
4590
  Insert: {
@@ -3679,6 +4593,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
3679
4593
  email?: string | null;
3680
4594
  id: string;
3681
4595
  notification_preferences?: import("../integrations/supabase/types").Json;
4596
+ tenant_id?: string | null;
3682
4597
  updated_at?: string;
3683
4598
  };
3684
4599
  Update: {
@@ -3687,9 +4602,16 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
3687
4602
  email?: string | null;
3688
4603
  id?: string;
3689
4604
  notification_preferences?: import("../integrations/supabase/types").Json;
4605
+ tenant_id?: string | null;
3690
4606
  updated_at?: string;
3691
4607
  };
3692
- Relationships: [];
4608
+ Relationships: [{
4609
+ foreignKeyName: "profiles_tenant_id_fkey";
4610
+ columns: ["tenant_id"];
4611
+ isOneToOne: false;
4612
+ referencedRelation: "tenants";
4613
+ referencedColumns: ["id"];
4614
+ }];
3693
4615
  };
3694
4616
  projects: {
3695
4617
  Row: {
@@ -4393,6 +5315,81 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
4393
5315
  referencedColumns: ["id"];
4394
5316
  }];
4395
5317
  };
5318
+ reception_notifications: {
5319
+ Row: {
5320
+ booking_id: string | null;
5321
+ created_at: string;
5322
+ id: string;
5323
+ is_read: boolean;
5324
+ message: string;
5325
+ recipient_email: string | null;
5326
+ title: string;
5327
+ type: string;
5328
+ };
5329
+ Insert: {
5330
+ booking_id?: string | null;
5331
+ created_at?: string;
5332
+ id?: string;
5333
+ is_read?: boolean;
5334
+ message: string;
5335
+ recipient_email?: string | null;
5336
+ title: string;
5337
+ type: string;
5338
+ };
5339
+ Update: {
5340
+ booking_id?: string | null;
5341
+ created_at?: string;
5342
+ id?: string;
5343
+ is_read?: boolean;
5344
+ message?: string;
5345
+ recipient_email?: string | null;
5346
+ title?: string;
5347
+ type?: string;
5348
+ };
5349
+ Relationships: [{
5350
+ foreignKeyName: "reception_notifications_booking_id_fkey";
5351
+ columns: ["booking_id"];
5352
+ isOneToOne: false;
5353
+ referencedRelation: "bookings";
5354
+ referencedColumns: ["id"];
5355
+ }];
5356
+ };
5357
+ rooms: {
5358
+ Row: {
5359
+ capacity: number;
5360
+ color_code: string | null;
5361
+ created_at: string;
5362
+ description: string | null;
5363
+ hourly_rate: number;
5364
+ id: string;
5365
+ image_url: string | null;
5366
+ is_active: boolean;
5367
+ name: string;
5368
+ };
5369
+ Insert: {
5370
+ capacity?: number;
5371
+ color_code?: string | null;
5372
+ created_at?: string;
5373
+ description?: string | null;
5374
+ hourly_rate?: number;
5375
+ id?: string;
5376
+ image_url?: string | null;
5377
+ is_active?: boolean;
5378
+ name: string;
5379
+ };
5380
+ Update: {
5381
+ capacity?: number;
5382
+ color_code?: string | null;
5383
+ created_at?: string;
5384
+ description?: string | null;
5385
+ hourly_rate?: number;
5386
+ id?: string;
5387
+ image_url?: string | null;
5388
+ is_active?: boolean;
5389
+ name?: string;
5390
+ };
5391
+ Relationships: [];
5392
+ };
4396
5393
  supplier_products: {
4397
5394
  Row: {
4398
5395
  article_number: string | null;
@@ -4486,6 +5483,30 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
4486
5483
  };
4487
5484
  Relationships: [];
4488
5485
  };
5486
+ tenants: {
5487
+ Row: {
5488
+ created_at: string;
5489
+ id: string;
5490
+ name: string;
5491
+ slug: string | null;
5492
+ updated_at: string;
5493
+ };
5494
+ Insert: {
5495
+ created_at?: string;
5496
+ id?: string;
5497
+ name?: string;
5498
+ slug?: string | null;
5499
+ updated_at?: string;
5500
+ };
5501
+ Update: {
5502
+ created_at?: string;
5503
+ id?: string;
5504
+ name?: string;
5505
+ slug?: string | null;
5506
+ updated_at?: string;
5507
+ };
5508
+ Relationships: [];
5509
+ };
4489
5510
  trade_item_drafts: {
4490
5511
  Row: {
4491
5512
  connection_id: string | null;
@@ -4513,59 +5534,122 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
4513
5534
  };
4514
5535
  Relationships: [];
4515
5536
  };
4516
- twinfield_credentials: {
5537
+ twinfield_connections: {
4517
5538
  Row: {
4518
- administration_code: string | null;
4519
- client_id: string | null;
5539
+ access_token: string | null;
5540
+ client_id: string;
4520
5541
  client_secret: string | null;
4521
- cluster: string | null;
5542
+ cluster_uri: string | null;
5543
+ company_code: string | null;
5544
+ company_name: string | null;
4522
5545
  connected_at: string | null;
4523
5546
  created_at: string;
4524
- environment: string | null;
5547
+ environment: string;
4525
5548
  id: string;
4526
- redirect_uri: string | null;
5549
+ is_active: boolean;
5550
+ label: string | null;
5551
+ office_code: string | null;
5552
+ redirect_uri: string;
4527
5553
  refresh_token: string | null;
5554
+ token_expires_at: string | null;
4528
5555
  updated_at: string;
4529
5556
  user_id: string;
4530
5557
  };
4531
5558
  Insert: {
4532
- administration_code?: string | null;
4533
- client_id?: string | null;
5559
+ access_token?: string | null;
5560
+ client_id: string;
4534
5561
  client_secret?: string | null;
4535
- cluster?: string | null;
5562
+ cluster_uri?: string | null;
5563
+ company_code?: string | null;
5564
+ company_name?: string | null;
4536
5565
  connected_at?: string | null;
4537
5566
  created_at?: string;
4538
- environment?: string | null;
5567
+ environment: string;
4539
5568
  id?: string;
4540
- redirect_uri?: string | null;
5569
+ is_active?: boolean;
5570
+ label?: string | null;
5571
+ office_code?: string | null;
5572
+ redirect_uri: string;
4541
5573
  refresh_token?: string | null;
5574
+ token_expires_at?: string | null;
4542
5575
  updated_at?: string;
4543
5576
  user_id: string;
4544
5577
  };
4545
5578
  Update: {
4546
- administration_code?: string | null;
4547
- client_id?: string | null;
5579
+ access_token?: string | null;
5580
+ client_id?: string;
4548
5581
  client_secret?: string | null;
4549
- cluster?: string | null;
5582
+ cluster_uri?: string | null;
5583
+ company_code?: string | null;
5584
+ company_name?: string | null;
4550
5585
  connected_at?: string | null;
4551
5586
  created_at?: string;
4552
- environment?: string | null;
5587
+ environment?: string;
4553
5588
  id?: string;
4554
- redirect_uri?: string | null;
5589
+ is_active?: boolean;
5590
+ label?: string | null;
5591
+ office_code?: string | null;
5592
+ redirect_uri?: string;
4555
5593
  refresh_token?: string | null;
5594
+ token_expires_at?: string | null;
4556
5595
  updated_at?: string;
4557
5596
  user_id?: string;
4558
5597
  };
4559
5598
  Relationships: [];
4560
5599
  };
4561
- twinfield_customers: {
5600
+ twinfield_credentials: {
4562
5601
  Row: {
4563
- address: string | null;
4564
- city: string | null;
4565
- country: string | null;
4566
- created_at: string;
4567
- email: string | null;
4568
- id: string;
5602
+ administration_code: string | null;
5603
+ client_id: string | null;
5604
+ client_secret: string | null;
5605
+ cluster: string | null;
5606
+ connected_at: string | null;
5607
+ created_at: string;
5608
+ environment: string | null;
5609
+ id: string;
5610
+ redirect_uri: string | null;
5611
+ refresh_token: string | null;
5612
+ updated_at: string;
5613
+ user_id: string;
5614
+ };
5615
+ Insert: {
5616
+ administration_code?: string | null;
5617
+ client_id?: string | null;
5618
+ client_secret?: string | null;
5619
+ cluster?: string | null;
5620
+ connected_at?: string | null;
5621
+ created_at?: string;
5622
+ environment?: string | null;
5623
+ id?: string;
5624
+ redirect_uri?: string | null;
5625
+ refresh_token?: string | null;
5626
+ updated_at?: string;
5627
+ user_id: string;
5628
+ };
5629
+ Update: {
5630
+ administration_code?: string | null;
5631
+ client_id?: string | null;
5632
+ client_secret?: string | null;
5633
+ cluster?: string | null;
5634
+ connected_at?: string | null;
5635
+ created_at?: string;
5636
+ environment?: string | null;
5637
+ id?: string;
5638
+ redirect_uri?: string | null;
5639
+ refresh_token?: string | null;
5640
+ updated_at?: string;
5641
+ user_id?: string;
5642
+ };
5643
+ Relationships: [];
5644
+ };
5645
+ twinfield_customers: {
5646
+ Row: {
5647
+ address: string | null;
5648
+ city: string | null;
5649
+ country: string | null;
5650
+ created_at: string;
5651
+ email: string | null;
5652
+ id: string;
4569
5653
  last_synced_at: string | null;
4570
5654
  name: string;
4571
5655
  phone: string | null;
@@ -4615,6 +5699,48 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
4615
5699
  };
4616
5700
  Relationships: [];
4617
5701
  };
5702
+ twinfield_customers_cache: {
5703
+ Row: {
5704
+ connection_id: string;
5705
+ country: string | null;
5706
+ data: import("../integrations/supabase/types").Json;
5707
+ email: string | null;
5708
+ fetched_at: string;
5709
+ modified_at: string | null;
5710
+ name: string | null;
5711
+ twinfield_code: string;
5712
+ vat_number: string | null;
5713
+ };
5714
+ Insert: {
5715
+ connection_id: string;
5716
+ country?: string | null;
5717
+ data?: import("../integrations/supabase/types").Json;
5718
+ email?: string | null;
5719
+ fetched_at?: string;
5720
+ modified_at?: string | null;
5721
+ name?: string | null;
5722
+ twinfield_code: string;
5723
+ vat_number?: string | null;
5724
+ };
5725
+ Update: {
5726
+ connection_id?: string;
5727
+ country?: string | null;
5728
+ data?: import("../integrations/supabase/types").Json;
5729
+ email?: string | null;
5730
+ fetched_at?: string;
5731
+ modified_at?: string | null;
5732
+ name?: string | null;
5733
+ twinfield_code?: string;
5734
+ vat_number?: string | null;
5735
+ };
5736
+ Relationships: [{
5737
+ foreignKeyName: "twinfield_customers_cache_connection_id_fkey";
5738
+ columns: ["connection_id"];
5739
+ isOneToOne: false;
5740
+ referencedRelation: "twinfield_connections";
5741
+ referencedColumns: ["id"];
5742
+ }];
5743
+ };
4618
5744
  twinfield_invoice_lines: {
4619
5745
  Row: {
4620
5746
  article_code: string | null;
@@ -4669,6 +5795,57 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
4669
5795
  referencedColumns: ["id"];
4670
5796
  }];
4671
5797
  };
5798
+ twinfield_invoice_lines_cache_v2: {
5799
+ Row: {
5800
+ article_code: string | null;
5801
+ connection_id: string;
5802
+ data: import("../integrations/supabase/types").Json;
5803
+ description: string | null;
5804
+ fetched_at: string;
5805
+ invoice_number: string;
5806
+ line_number: number;
5807
+ line_total: number | null;
5808
+ quantity: number | null;
5809
+ unit_price: number | null;
5810
+ vat_code: string | null;
5811
+ vat_rate: number | null;
5812
+ };
5813
+ Insert: {
5814
+ article_code?: string | null;
5815
+ connection_id: string;
5816
+ data?: import("../integrations/supabase/types").Json;
5817
+ description?: string | null;
5818
+ fetched_at?: string;
5819
+ invoice_number: string;
5820
+ line_number: number;
5821
+ line_total?: number | null;
5822
+ quantity?: number | null;
5823
+ unit_price?: number | null;
5824
+ vat_code?: string | null;
5825
+ vat_rate?: number | null;
5826
+ };
5827
+ Update: {
5828
+ article_code?: string | null;
5829
+ connection_id?: string;
5830
+ data?: import("../integrations/supabase/types").Json;
5831
+ description?: string | null;
5832
+ fetched_at?: string;
5833
+ invoice_number?: string;
5834
+ line_number?: number;
5835
+ line_total?: number | null;
5836
+ quantity?: number | null;
5837
+ unit_price?: number | null;
5838
+ vat_code?: string | null;
5839
+ vat_rate?: number | null;
5840
+ };
5841
+ Relationships: [{
5842
+ foreignKeyName: "twinfield_invoice_lines_cache_v2_connection_id_fkey";
5843
+ columns: ["connection_id"];
5844
+ isOneToOne: false;
5845
+ referencedRelation: "twinfield_connections";
5846
+ referencedColumns: ["id"];
5847
+ }];
5848
+ };
4672
5849
  twinfield_invoice_settings: {
4673
5850
  Row: {
4674
5851
  created_at: string;
@@ -4825,103 +6002,455 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
4825
6002
  };
4826
6003
  Relationships: [];
4827
6004
  };
4828
- user_roles: {
6005
+ twinfield_invoices_cache_v2: {
6006
+ Row: {
6007
+ connection_id: string;
6008
+ currency: string | null;
6009
+ customer_code: string | null;
6010
+ data: import("../integrations/supabase/types").Json;
6011
+ due_date: string | null;
6012
+ fetched_at: string;
6013
+ invoice_date: string | null;
6014
+ invoice_number: string;
6015
+ modified_at: string | null;
6016
+ outstanding_amount: number | null;
6017
+ status: string | null;
6018
+ status_label: string | null;
6019
+ total_excl: number | null;
6020
+ total_incl: number | null;
6021
+ vat_amount: number | null;
6022
+ };
6023
+ Insert: {
6024
+ connection_id: string;
6025
+ currency?: string | null;
6026
+ customer_code?: string | null;
6027
+ data?: import("../integrations/supabase/types").Json;
6028
+ due_date?: string | null;
6029
+ fetched_at?: string;
6030
+ invoice_date?: string | null;
6031
+ invoice_number: string;
6032
+ modified_at?: string | null;
6033
+ outstanding_amount?: number | null;
6034
+ status?: string | null;
6035
+ status_label?: string | null;
6036
+ total_excl?: number | null;
6037
+ total_incl?: number | null;
6038
+ vat_amount?: number | null;
6039
+ };
6040
+ Update: {
6041
+ connection_id?: string;
6042
+ currency?: string | null;
6043
+ customer_code?: string | null;
6044
+ data?: import("../integrations/supabase/types").Json;
6045
+ due_date?: string | null;
6046
+ fetched_at?: string;
6047
+ invoice_date?: string | null;
6048
+ invoice_number?: string;
6049
+ modified_at?: string | null;
6050
+ outstanding_amount?: number | null;
6051
+ status?: string | null;
6052
+ status_label?: string | null;
6053
+ total_excl?: number | null;
6054
+ total_incl?: number | null;
6055
+ vat_amount?: number | null;
6056
+ };
6057
+ Relationships: [{
6058
+ foreignKeyName: "twinfield_invoices_cache_v2_connection_id_fkey";
6059
+ columns: ["connection_id"];
6060
+ isOneToOne: false;
6061
+ referencedRelation: "twinfield_connections";
6062
+ referencedColumns: ["id"];
6063
+ }];
6064
+ };
6065
+ twinfield_oauth_state: {
4829
6066
  Row: {
4830
6067
  created_at: string;
4831
- id: string;
4832
- role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
6068
+ environment: string;
6069
+ nonce: string | null;
6070
+ state: string;
4833
6071
  user_id: string;
4834
6072
  };
4835
6073
  Insert: {
4836
6074
  created_at?: string;
4837
- id?: string;
4838
- role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
6075
+ environment: string;
6076
+ nonce?: string | null;
6077
+ state: string;
4839
6078
  user_id: string;
4840
6079
  };
4841
6080
  Update: {
4842
6081
  created_at?: string;
4843
- id?: string;
4844
- role?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
6082
+ environment?: string;
6083
+ nonce?: string | null;
6084
+ state?: string;
4845
6085
  user_id?: string;
4846
6086
  };
4847
- Relationships: [{
4848
- foreignKeyName: "user_roles_user_id_fkey";
4849
- columns: ["user_id"];
4850
- isOneToOne: false;
4851
- referencedRelation: "profiles";
4852
- referencedColumns: ["id"];
4853
- }];
6087
+ Relationships: [];
4854
6088
  };
4855
- };
4856
- Views: {
4857
- email_auth_connections_safe: {
6089
+ twinfield_push_queue: {
4858
6090
  Row: {
4859
- account_email: string | null;
4860
- created_at: string | null;
4861
- created_by: string | null;
4862
- display_name: string | null;
4863
- has_access_token: boolean | null;
4864
- has_client_id: boolean | null;
4865
- has_client_secret: boolean | null;
4866
- has_imap_password: boolean | null;
4867
- has_refresh_token: boolean | null;
4868
- has_smtp_password: boolean | null;
4869
- id: string | null;
4870
- imap_host: string | null;
4871
- imap_port: number | null;
4872
- imap_secure: boolean | null;
4873
- imap_username: string | null;
4874
- is_active: boolean | null;
6091
+ attempts: number;
6092
+ connection_id: string;
6093
+ created_at: string;
6094
+ external_id: string | null;
6095
+ id: string;
6096
+ idempotency_key: string;
4875
6097
  last_error: string | null;
4876
- last_verified_at: string | null;
4877
- oauth_mode: string | null;
4878
- provider: string | null;
4879
- scopes: string[] | null;
4880
- smtp_host: string | null;
4881
- smtp_port: number | null;
4882
- smtp_secure: boolean | null;
4883
- smtp_username: string | null;
4884
- status: string | null;
4885
- token_expires_at: string | null;
4886
- updated_at: string | null;
6098
+ next_attempt_at: string;
6099
+ office_code: string;
6100
+ payload: import("../integrations/supabase/types").Json;
6101
+ status: string;
6102
+ updated_at: string;
4887
6103
  };
4888
6104
  Insert: {
4889
- account_email?: string | null;
4890
- created_at?: string | null;
4891
- created_by?: string | null;
4892
- display_name?: string | null;
4893
- has_access_token?: never;
4894
- has_client_id?: never;
4895
- has_client_secret?: never;
4896
- has_imap_password?: never;
4897
- has_refresh_token?: never;
4898
- has_smtp_password?: never;
4899
- id?: string | null;
4900
- imap_host?: string | null;
4901
- imap_port?: number | null;
4902
- imap_secure?: boolean | null;
4903
- imap_username?: string | null;
4904
- is_active?: boolean | null;
6105
+ attempts?: number;
6106
+ connection_id: string;
6107
+ created_at?: string;
6108
+ external_id?: string | null;
6109
+ id?: string;
6110
+ idempotency_key: string;
4905
6111
  last_error?: string | null;
4906
- last_verified_at?: string | null;
4907
- oauth_mode?: string | null;
4908
- provider?: string | null;
4909
- scopes?: string[] | null;
4910
- smtp_host?: string | null;
4911
- smtp_port?: number | null;
4912
- smtp_secure?: boolean | null;
4913
- smtp_username?: string | null;
4914
- status?: string | null;
4915
- token_expires_at?: string | null;
4916
- updated_at?: string | null;
6112
+ next_attempt_at?: string;
6113
+ office_code: string;
6114
+ payload: import("../integrations/supabase/types").Json;
6115
+ status?: string;
6116
+ updated_at?: string;
4917
6117
  };
4918
6118
  Update: {
4919
- account_email?: string | null;
4920
- created_at?: string | null;
4921
- created_by?: string | null;
4922
- display_name?: string | null;
4923
- has_access_token?: never;
4924
- has_client_id?: never;
6119
+ attempts?: number;
6120
+ connection_id?: string;
6121
+ created_at?: string;
6122
+ external_id?: string | null;
6123
+ id?: string;
6124
+ idempotency_key?: string;
6125
+ last_error?: string | null;
6126
+ next_attempt_at?: string;
6127
+ office_code?: string;
6128
+ payload?: import("../integrations/supabase/types").Json;
6129
+ status?: string;
6130
+ updated_at?: string;
6131
+ };
6132
+ Relationships: [{
6133
+ foreignKeyName: "twinfield_push_queue_connection_id_fkey";
6134
+ columns: ["connection_id"];
6135
+ isOneToOne: false;
6136
+ referencedRelation: "twinfield_connections";
6137
+ referencedColumns: ["id"];
6138
+ }];
6139
+ };
6140
+ twinfield_settings: {
6141
+ Row: {
6142
+ active_environment: string;
6143
+ id: number;
6144
+ updated_at: string;
6145
+ };
6146
+ Insert: {
6147
+ active_environment?: string;
6148
+ id?: number;
6149
+ updated_at?: string;
6150
+ };
6151
+ Update: {
6152
+ active_environment?: string;
6153
+ id?: number;
6154
+ updated_at?: string;
6155
+ };
6156
+ Relationships: [];
6157
+ };
6158
+ twinfield_sync_state: {
6159
+ Row: {
6160
+ connection_id: string;
6161
+ entity_type: string;
6162
+ last_error: string | null;
6163
+ last_modified_since: string;
6164
+ last_synced_at: string | null;
6165
+ updated_at: string;
6166
+ };
6167
+ Insert: {
6168
+ connection_id: string;
6169
+ entity_type: string;
6170
+ last_error?: string | null;
6171
+ last_modified_since?: string;
6172
+ last_synced_at?: string | null;
6173
+ updated_at?: string;
6174
+ };
6175
+ Update: {
6176
+ connection_id?: string;
6177
+ entity_type?: string;
6178
+ last_error?: string | null;
6179
+ last_modified_since?: string;
6180
+ last_synced_at?: string | null;
6181
+ updated_at?: string;
6182
+ };
6183
+ Relationships: [{
6184
+ foreignKeyName: "twinfield_sync_state_connection_id_fkey";
6185
+ columns: ["connection_id"];
6186
+ isOneToOne: false;
6187
+ referencedRelation: "twinfield_connections";
6188
+ referencedColumns: ["id"];
6189
+ }];
6190
+ };
6191
+ twinfield_token_refresh_log: {
6192
+ Row: {
6193
+ attempted_at: string;
6194
+ connection_id: string;
6195
+ error: string | null;
6196
+ expires_at: string | null;
6197
+ id: string;
6198
+ ok: boolean;
6199
+ };
6200
+ Insert: {
6201
+ attempted_at?: string;
6202
+ connection_id: string;
6203
+ error?: string | null;
6204
+ expires_at?: string | null;
6205
+ id?: string;
6206
+ ok: boolean;
6207
+ };
6208
+ Update: {
6209
+ attempted_at?: string;
6210
+ connection_id?: string;
6211
+ error?: string | null;
6212
+ expires_at?: string | null;
6213
+ id?: string;
6214
+ ok?: boolean;
6215
+ };
6216
+ Relationships: [{
6217
+ foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
6218
+ columns: ["connection_id"];
6219
+ isOneToOne: false;
6220
+ referencedRelation: "twinfield_connections";
6221
+ referencedColumns: ["id"];
6222
+ }];
6223
+ };
6224
+ user_roles: {
6225
+ Row: {
6226
+ created_at: string;
6227
+ id: string;
6228
+ role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
6229
+ user_id: string;
6230
+ };
6231
+ Insert: {
6232
+ created_at?: string;
6233
+ id?: string;
6234
+ role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
6235
+ user_id: string;
6236
+ };
6237
+ Update: {
6238
+ created_at?: string;
6239
+ id?: string;
6240
+ role?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
6241
+ user_id?: string;
6242
+ };
6243
+ Relationships: [{
6244
+ foreignKeyName: "user_roles_user_id_fkey";
6245
+ columns: ["user_id"];
6246
+ isOneToOne: false;
6247
+ referencedRelation: "profiles";
6248
+ referencedColumns: ["id"];
6249
+ }];
6250
+ };
6251
+ work_order_monteurs: {
6252
+ Row: {
6253
+ created_at: string;
6254
+ id: string;
6255
+ monteur_id: string;
6256
+ work_order_id: string;
6257
+ };
6258
+ Insert: {
6259
+ created_at?: string;
6260
+ id?: string;
6261
+ monteur_id: string;
6262
+ work_order_id: string;
6263
+ };
6264
+ Update: {
6265
+ created_at?: string;
6266
+ id?: string;
6267
+ monteur_id?: string;
6268
+ work_order_id?: string;
6269
+ };
6270
+ Relationships: [{
6271
+ foreignKeyName: "work_order_monteurs_monteur_id_fkey";
6272
+ columns: ["monteur_id"];
6273
+ isOneToOne: false;
6274
+ referencedRelation: "monteurs";
6275
+ referencedColumns: ["id"];
6276
+ }, {
6277
+ foreignKeyName: "work_order_monteurs_work_order_id_fkey";
6278
+ columns: ["work_order_id"];
6279
+ isOneToOne: false;
6280
+ referencedRelation: "work_orders";
6281
+ referencedColumns: ["id"];
6282
+ }];
6283
+ };
6284
+ work_orders: {
6285
+ Row: {
6286
+ assigned_to: string | null;
6287
+ city: string | null;
6288
+ contact_person: string | null;
6289
+ created_at: string;
6290
+ custom_fields: import("../integrations/supabase/types").Json;
6291
+ customer_name: string;
6292
+ description: string;
6293
+ email: string | null;
6294
+ email_source: string | null;
6295
+ estimated_duration_hours: number | null;
6296
+ external_reference: string | null;
6297
+ follow_up_needed: boolean;
6298
+ id: string;
6299
+ mandate: string;
6300
+ mandate_budget: number;
6301
+ mandate_used: number;
6302
+ order_number: string;
6303
+ parent_work_order_id: string | null;
6304
+ pdf_url: string | null;
6305
+ phone: string | null;
6306
+ postal_code: string;
6307
+ priority: string;
6308
+ project_number: string | null;
6309
+ report_validated: boolean;
6310
+ room_number: string;
6311
+ scheduled_date: string | null;
6312
+ scheduled_end_time: string | null;
6313
+ scheduled_start_time: string | null;
6314
+ status: string;
6315
+ tenant_id: string;
6316
+ total_hours_worked: number | null;
6317
+ total_price: number | null;
6318
+ travel_time_minutes: number | null;
6319
+ updated_at: string;
6320
+ work_address: string;
6321
+ work_report: string | null;
6322
+ };
6323
+ Insert: {
6324
+ assigned_to?: string | null;
6325
+ city?: string | null;
6326
+ contact_person?: string | null;
6327
+ created_at?: string;
6328
+ custom_fields?: import("../integrations/supabase/types").Json;
6329
+ customer_name?: string;
6330
+ description?: string;
6331
+ email?: string | null;
6332
+ email_source?: string | null;
6333
+ estimated_duration_hours?: number | null;
6334
+ external_reference?: string | null;
6335
+ follow_up_needed?: boolean;
6336
+ id?: string;
6337
+ mandate?: string;
6338
+ mandate_budget?: number;
6339
+ mandate_used?: number;
6340
+ order_number?: string;
6341
+ parent_work_order_id?: string | null;
6342
+ pdf_url?: string | null;
6343
+ phone?: string | null;
6344
+ postal_code?: string;
6345
+ priority?: string;
6346
+ project_number?: string | null;
6347
+ report_validated?: boolean;
6348
+ room_number?: string;
6349
+ scheduled_date?: string | null;
6350
+ scheduled_end_time?: string | null;
6351
+ scheduled_start_time?: string | null;
6352
+ status?: string;
6353
+ tenant_id: string;
6354
+ total_hours_worked?: number | null;
6355
+ total_price?: number | null;
6356
+ travel_time_minutes?: number | null;
6357
+ updated_at?: string;
6358
+ work_address?: string;
6359
+ work_report?: string | null;
6360
+ };
6361
+ Update: {
6362
+ assigned_to?: string | null;
6363
+ city?: string | null;
6364
+ contact_person?: string | null;
6365
+ created_at?: string;
6366
+ custom_fields?: import("../integrations/supabase/types").Json;
6367
+ customer_name?: string;
6368
+ description?: string;
6369
+ email?: string | null;
6370
+ email_source?: string | null;
6371
+ estimated_duration_hours?: number | null;
6372
+ external_reference?: string | null;
6373
+ follow_up_needed?: boolean;
6374
+ id?: string;
6375
+ mandate?: string;
6376
+ mandate_budget?: number;
6377
+ mandate_used?: number;
6378
+ order_number?: string;
6379
+ parent_work_order_id?: string | null;
6380
+ pdf_url?: string | null;
6381
+ phone?: string | null;
6382
+ postal_code?: string;
6383
+ priority?: string;
6384
+ project_number?: string | null;
6385
+ report_validated?: boolean;
6386
+ room_number?: string;
6387
+ scheduled_date?: string | null;
6388
+ scheduled_end_time?: string | null;
6389
+ scheduled_start_time?: string | null;
6390
+ status?: string;
6391
+ tenant_id?: string;
6392
+ total_hours_worked?: number | null;
6393
+ total_price?: number | null;
6394
+ travel_time_minutes?: number | null;
6395
+ updated_at?: string;
6396
+ work_address?: string;
6397
+ work_report?: string | null;
6398
+ };
6399
+ Relationships: [{
6400
+ foreignKeyName: "work_orders_parent_work_order_id_fkey";
6401
+ columns: ["parent_work_order_id"];
6402
+ isOneToOne: false;
6403
+ referencedRelation: "work_orders";
6404
+ referencedColumns: ["id"];
6405
+ }, {
6406
+ foreignKeyName: "work_orders_tenant_id_fkey";
6407
+ columns: ["tenant_id"];
6408
+ isOneToOne: false;
6409
+ referencedRelation: "tenants";
6410
+ referencedColumns: ["id"];
6411
+ }];
6412
+ };
6413
+ };
6414
+ Views: {
6415
+ email_auth_connections_safe: {
6416
+ Row: {
6417
+ account_email: string | null;
6418
+ created_at: string | null;
6419
+ created_by: string | null;
6420
+ display_name: string | null;
6421
+ has_access_token: boolean | null;
6422
+ has_client_id: boolean | null;
6423
+ has_client_secret: boolean | null;
6424
+ has_imap_password: boolean | null;
6425
+ has_refresh_token: boolean | null;
6426
+ has_smtp_password: boolean | null;
6427
+ id: string | null;
6428
+ imap_host: string | null;
6429
+ imap_port: number | null;
6430
+ imap_secure: boolean | null;
6431
+ imap_username: string | null;
6432
+ is_active: boolean | null;
6433
+ last_error: string | null;
6434
+ last_verified_at: string | null;
6435
+ oauth_mode: string | null;
6436
+ provider: string | null;
6437
+ purpose_assignments: import("../integrations/supabase/types").Json | null;
6438
+ scopes: string[] | null;
6439
+ smtp_host: string | null;
6440
+ smtp_port: number | null;
6441
+ smtp_secure: boolean | null;
6442
+ smtp_username: string | null;
6443
+ status: string | null;
6444
+ token_expires_at: string | null;
6445
+ updated_at: string | null;
6446
+ };
6447
+ Insert: {
6448
+ account_email?: string | null;
6449
+ created_at?: string | null;
6450
+ created_by?: string | null;
6451
+ display_name?: string | null;
6452
+ has_access_token?: never;
6453
+ has_client_id?: never;
4925
6454
  has_client_secret?: never;
4926
6455
  has_imap_password?: never;
4927
6456
  has_refresh_token?: never;
@@ -4936,19 +6465,399 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
4936
6465
  last_verified_at?: string | null;
4937
6466
  oauth_mode?: string | null;
4938
6467
  provider?: string | null;
6468
+ purpose_assignments?: import("../integrations/supabase/types").Json | null;
4939
6469
  scopes?: string[] | null;
4940
6470
  smtp_host?: string | null;
4941
6471
  smtp_port?: number | null;
4942
6472
  smtp_secure?: boolean | null;
4943
6473
  smtp_username?: string | null;
4944
6474
  status?: string | null;
4945
- token_expires_at?: string | null;
4946
- updated_at?: string | null;
6475
+ token_expires_at?: string | null;
6476
+ updated_at?: string | null;
6477
+ };
6478
+ Update: {
6479
+ account_email?: string | null;
6480
+ created_at?: string | null;
6481
+ created_by?: string | null;
6482
+ display_name?: string | null;
6483
+ has_access_token?: never;
6484
+ has_client_id?: never;
6485
+ has_client_secret?: never;
6486
+ has_imap_password?: never;
6487
+ has_refresh_token?: never;
6488
+ has_smtp_password?: never;
6489
+ id?: string | null;
6490
+ imap_host?: string | null;
6491
+ imap_port?: number | null;
6492
+ imap_secure?: boolean | null;
6493
+ imap_username?: string | null;
6494
+ is_active?: boolean | null;
6495
+ last_error?: string | null;
6496
+ last_verified_at?: string | null;
6497
+ oauth_mode?: string | null;
6498
+ provider?: string | null;
6499
+ purpose_assignments?: import("../integrations/supabase/types").Json | null;
6500
+ scopes?: string[] | null;
6501
+ smtp_host?: string | null;
6502
+ smtp_port?: number | null;
6503
+ smtp_secure?: boolean | null;
6504
+ smtp_username?: string | null;
6505
+ status?: string | null;
6506
+ token_expires_at?: string | null;
6507
+ updated_at?: string | null;
6508
+ };
6509
+ Relationships: [];
6510
+ };
6511
+ external_customers_grouped: {
6512
+ Row: {
6513
+ city: string | null;
6514
+ commercial_name: string | null;
6515
+ contact_person: string | null;
6516
+ country: string | null;
6517
+ display_name: string | null;
6518
+ email: string | null;
6519
+ fetched_at: string | null;
6520
+ gln: string | null;
6521
+ group_key: string | null;
6522
+ is_active: boolean | null;
6523
+ is_merged: boolean | null;
6524
+ logo_url: string | null;
6525
+ match_key: string | null;
6526
+ phone: string | null;
6527
+ providers: string[] | null;
6528
+ source_count: number | null;
6529
+ sources: import("../integrations/supabase/types").Json | null;
6530
+ vat_number: string | null;
6531
+ website: string | null;
6532
+ };
6533
+ Relationships: [];
6534
+ };
6535
+ external_customers_unified: {
6536
+ Row: {
6537
+ city: string | null;
6538
+ commercial_name: string | null;
6539
+ company_name: string | null;
6540
+ connection_id: string | null;
6541
+ contact_person: string | null;
6542
+ country: string | null;
6543
+ email: string | null;
6544
+ external_id: string | null;
6545
+ fetched_at: string | null;
6546
+ gln: string | null;
6547
+ house_number: string | null;
6548
+ is_active: boolean | null;
6549
+ is_deleted: boolean | null;
6550
+ logo_url: string | null;
6551
+ phone: string | null;
6552
+ postal_code: string | null;
6553
+ provider: string | null;
6554
+ raw: import("../integrations/supabase/types").Json | null;
6555
+ status: string | null;
6556
+ street: string | null;
6557
+ vat_number: string | null;
6558
+ website: string | null;
6559
+ };
6560
+ Relationships: [];
6561
+ };
6562
+ external_invoices_grouped: {
6563
+ Row: {
6564
+ currency: string | null;
6565
+ customer_external_id: string | null;
6566
+ customer_name: string | null;
6567
+ customer_vat: string | null;
6568
+ due_at: string | null;
6569
+ group_key: string | null;
6570
+ invoice_number: string | null;
6571
+ is_merged: boolean | null;
6572
+ issued_at: string | null;
6573
+ modified_at: string | null;
6574
+ open_amount: number | null;
6575
+ paid_at: string | null;
6576
+ providers: string[] | null;
6577
+ source_count: number | null;
6578
+ sources: import("../integrations/supabase/types").Json | null;
6579
+ status: string | null;
6580
+ total_excl: number | null;
6581
+ total_incl: number | null;
6582
+ total_vat: number | null;
6583
+ };
6584
+ Relationships: [];
6585
+ };
6586
+ external_invoices_unified: {
6587
+ Row: {
6588
+ connection_id: string | null;
6589
+ currency: string | null;
6590
+ customer_external_id: string | null;
6591
+ customer_name: string | null;
6592
+ customer_vat: string | null;
6593
+ due_at: string | null;
6594
+ external_id: string | null;
6595
+ invoice_number: string | null;
6596
+ issued_at: string | null;
6597
+ open_amount: number | null;
6598
+ owner_user_id: string | null;
6599
+ paid_at: string | null;
6600
+ raw: import("../integrations/supabase/types").Json | null;
6601
+ source: string | null;
6602
+ status: string | null;
6603
+ synced_at: string | null;
6604
+ total_excl: number | null;
6605
+ total_incl: number | null;
6606
+ total_vat: number | null;
6607
+ };
6608
+ Relationships: [];
6609
+ };
6610
+ v_external_customers_exact: {
6611
+ Row: {
6612
+ account_number: string | null;
6613
+ city: string | null;
6614
+ coc_number: string | null;
6615
+ company_name: string | null;
6616
+ connection_id: string | null;
6617
+ country: string | null;
6618
+ currency: string | null;
6619
+ email: string | null;
6620
+ external_id: string | null;
6621
+ is_sales: boolean | null;
6622
+ is_supplier: boolean | null;
6623
+ language: string | null;
6624
+ modified_at: string | null;
6625
+ phone: string | null;
6626
+ postal_code: string | null;
6627
+ raw: import("../integrations/supabase/types").Json | null;
6628
+ source: string | null;
6629
+ street: string | null;
6630
+ synced_at: string | null;
6631
+ vat_number: string | null;
6632
+ website: string | null;
6633
+ };
6634
+ Insert: {
6635
+ account_number?: string | null;
6636
+ city?: string | null;
6637
+ coc_number?: string | null;
6638
+ company_name?: string | null;
6639
+ connection_id?: string | null;
6640
+ country?: string | null;
6641
+ currency?: string | null;
6642
+ email?: string | null;
6643
+ external_id?: string | null;
6644
+ is_sales?: boolean | null;
6645
+ is_supplier?: boolean | null;
6646
+ language?: string | null;
6647
+ modified_at?: string | null;
6648
+ phone?: string | null;
6649
+ postal_code?: string | null;
6650
+ raw?: import("../integrations/supabase/types").Json | null;
6651
+ source?: never;
6652
+ street?: string | null;
6653
+ synced_at?: string | null;
6654
+ vat_number?: string | null;
6655
+ website?: string | null;
6656
+ };
6657
+ Update: {
6658
+ account_number?: string | null;
6659
+ city?: string | null;
6660
+ coc_number?: string | null;
6661
+ company_name?: string | null;
6662
+ connection_id?: string | null;
6663
+ country?: string | null;
6664
+ currency?: string | null;
6665
+ email?: string | null;
6666
+ external_id?: string | null;
6667
+ is_sales?: boolean | null;
6668
+ is_supplier?: boolean | null;
6669
+ language?: string | null;
6670
+ modified_at?: string | null;
6671
+ phone?: string | null;
6672
+ postal_code?: string | null;
6673
+ raw?: import("../integrations/supabase/types").Json | null;
6674
+ source?: never;
6675
+ street?: string | null;
6676
+ synced_at?: string | null;
6677
+ vat_number?: string | null;
6678
+ website?: string | null;
6679
+ };
6680
+ Relationships: [{
6681
+ foreignKeyName: "exact_customers_cache_connection_id_fkey";
6682
+ columns: ["connection_id"];
6683
+ isOneToOne: false;
6684
+ referencedRelation: "exact_connections";
6685
+ referencedColumns: ["id"];
6686
+ }];
6687
+ };
6688
+ v_external_customers_floriday: {
6689
+ Row: {
6690
+ city: string | null;
6691
+ commercial_name: string | null;
6692
+ company_name: string | null;
6693
+ connection_id: string | null;
6694
+ contact_person: string | null;
6695
+ country: string | null;
6696
+ email: string | null;
6697
+ external_id: string | null;
6698
+ fetched_at: string | null;
6699
+ gln: string | null;
6700
+ house_number: string | null;
6701
+ is_active: boolean | null;
6702
+ is_deleted: boolean | null;
6703
+ logo_url: string | null;
6704
+ phone: string | null;
6705
+ postal_code: string | null;
6706
+ provider: string | null;
6707
+ raw: import("../integrations/supabase/types").Json | null;
6708
+ status: string | null;
6709
+ street: string | null;
6710
+ vat_number: string | null;
6711
+ website: string | null;
6712
+ };
6713
+ Relationships: [{
6714
+ foreignKeyName: "floriday_customers_cache_connection_id_fkey";
6715
+ columns: ["connection_id"];
6716
+ isOneToOne: false;
6717
+ referencedRelation: "floriday_connections";
6718
+ referencedColumns: ["id"];
6719
+ }];
6720
+ };
6721
+ v_external_customers_twinfield: {
6722
+ Row: {
6723
+ city: string | null;
6724
+ commercial_name: string | null;
6725
+ company_name: string | null;
6726
+ connection_id: string | null;
6727
+ contact_person: string | null;
6728
+ country: string | null;
6729
+ email: string | null;
6730
+ external_id: string | null;
6731
+ fetched_at: string | null;
6732
+ gln: string | null;
6733
+ house_number: string | null;
6734
+ is_active: boolean | null;
6735
+ is_deleted: boolean | null;
6736
+ logo_url: string | null;
6737
+ phone: string | null;
6738
+ postal_code: string | null;
6739
+ provider: string | null;
6740
+ raw: import("../integrations/supabase/types").Json | null;
6741
+ status: string | null;
6742
+ street: string | null;
6743
+ vat_number: string | null;
6744
+ website: string | null;
6745
+ };
6746
+ Relationships: [{
6747
+ foreignKeyName: "twinfield_customers_cache_connection_id_fkey";
6748
+ columns: ["connection_id"];
6749
+ isOneToOne: false;
6750
+ referencedRelation: "twinfield_connections";
6751
+ referencedColumns: ["id"];
6752
+ }];
6753
+ };
6754
+ v_external_invoices_exact: {
6755
+ Row: {
6756
+ connection_id: string | null;
6757
+ currency: string | null;
6758
+ customer_external_id: string | null;
6759
+ customer_name: string | null;
6760
+ customer_vat: string | null;
6761
+ due_at: string | null;
6762
+ external_id: string | null;
6763
+ invoice_number: string | null;
6764
+ issued_at: string | null;
6765
+ open_amount: number | null;
6766
+ paid_at: string | null;
6767
+ raw: import("../integrations/supabase/types").Json | null;
6768
+ source: string | null;
6769
+ status: string | null;
6770
+ synced_at: string | null;
6771
+ total_excl: number | null;
6772
+ total_incl: number | null;
6773
+ total_vat: number | null;
6774
+ };
6775
+ Insert: {
6776
+ connection_id?: string | null;
6777
+ currency?: never;
6778
+ customer_external_id?: string | null;
6779
+ customer_name?: string | null;
6780
+ customer_vat?: never;
6781
+ due_at?: string | null;
6782
+ external_id?: string | null;
6783
+ invoice_number?: string | null;
6784
+ issued_at?: string | null;
6785
+ open_amount?: number | null;
6786
+ paid_at?: string | null;
6787
+ raw?: import("../integrations/supabase/types").Json | null;
6788
+ source?: never;
6789
+ status?: string | null;
6790
+ synced_at?: string | null;
6791
+ total_excl?: number | null;
6792
+ total_incl?: number | null;
6793
+ total_vat?: number | null;
4947
6794
  };
4948
- Relationships: [];
6795
+ Update: {
6796
+ connection_id?: string | null;
6797
+ currency?: never;
6798
+ customer_external_id?: string | null;
6799
+ customer_name?: string | null;
6800
+ customer_vat?: never;
6801
+ due_at?: string | null;
6802
+ external_id?: string | null;
6803
+ invoice_number?: string | null;
6804
+ issued_at?: string | null;
6805
+ open_amount?: number | null;
6806
+ paid_at?: string | null;
6807
+ raw?: import("../integrations/supabase/types").Json | null;
6808
+ source?: never;
6809
+ status?: string | null;
6810
+ synced_at?: string | null;
6811
+ total_excl?: number | null;
6812
+ total_incl?: number | null;
6813
+ total_vat?: number | null;
6814
+ };
6815
+ Relationships: [{
6816
+ foreignKeyName: "exact_invoices_cache_connection_id_fkey";
6817
+ columns: ["connection_id"];
6818
+ isOneToOne: false;
6819
+ referencedRelation: "exact_connections";
6820
+ referencedColumns: ["id"];
6821
+ }];
6822
+ };
6823
+ v_external_invoices_twinfield: {
6824
+ Row: {
6825
+ connection_id: string | null;
6826
+ currency: string | null;
6827
+ customer_external_id: string | null;
6828
+ customer_name: string | null;
6829
+ customer_vat: string | null;
6830
+ due_at: string | null;
6831
+ external_id: string | null;
6832
+ invoice_number: string | null;
6833
+ issued_at: string | null;
6834
+ open_amount: number | null;
6835
+ owner_user_id: string | null;
6836
+ paid_at: string | null;
6837
+ raw: import("../integrations/supabase/types").Json | null;
6838
+ source: string | null;
6839
+ status: string | null;
6840
+ synced_at: string | null;
6841
+ total_excl: number | null;
6842
+ total_incl: number | null;
6843
+ total_vat: number | null;
6844
+ };
6845
+ Relationships: [{
6846
+ foreignKeyName: "twinfield_invoices_cache_v2_connection_id_fkey";
6847
+ columns: ["connection_id"];
6848
+ isOneToOne: false;
6849
+ referencedRelation: "twinfield_connections";
6850
+ referencedColumns: ["id"];
6851
+ }];
4949
6852
  };
4950
6853
  };
4951
6854
  Functions: {
6855
+ call_exact_route: {
6856
+ Args: {
6857
+ path: string;
6858
+ };
6859
+ Returns: number;
6860
+ };
4952
6861
  dashboard_list_public_schema: {
4953
6862
  Args: never;
4954
6863
  Returns: {
@@ -4969,6 +6878,33 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
4969
6878
  };
4970
6879
  Returns: string;
4971
6880
  };
6881
+ email_auth_fetch_message: {
6882
+ Args: {
6883
+ _connection_id: string;
6884
+ _external_id: string;
6885
+ };
6886
+ Returns: import("../integrations/supabase/types").Json;
6887
+ };
6888
+ email_auth_for_purpose: {
6889
+ Args: {
6890
+ _direction: string;
6891
+ _purpose: string;
6892
+ };
6893
+ Returns: {
6894
+ account_email: string;
6895
+ display_name: string;
6896
+ id: string;
6897
+ last_error: string;
6898
+ last_verified_at: string;
6899
+ needs_reauth: boolean;
6900
+ provider: string;
6901
+ status: string;
6902
+ }[];
6903
+ };
6904
+ ensure_user_tenant: {
6905
+ Args: never;
6906
+ Returns: string;
6907
+ };
4972
6908
  exact_decrypt: {
4973
6909
  Args: {
4974
6910
  cipher: string;
@@ -5015,6 +6951,17 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
5015
6951
  preferred_warehouse_name: string;
5016
6952
  }[];
5017
6953
  };
6954
+ get_active_twinfield_public: {
6955
+ Args: never;
6956
+ Returns: {
6957
+ active_environment: string;
6958
+ company_code: string;
6959
+ company_name: string;
6960
+ connection_id: string;
6961
+ environment: string;
6962
+ office_code: string;
6963
+ }[];
6964
+ };
5018
6965
  get_floriday_cron_jobs: {
5019
6966
  Args: never;
5020
6967
  Returns: {
@@ -5030,6 +6977,37 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
5030
6977
  };
5031
6978
  Returns: import("../integrations/supabase/types").Json;
5032
6979
  };
6980
+ get_room_busy_windows: {
6981
+ Args: {
6982
+ p_from: string;
6983
+ p_to: string;
6984
+ };
6985
+ Returns: {
6986
+ end_time: string;
6987
+ room_id: string;
6988
+ start_time: string;
6989
+ status: string;
6990
+ }[];
6991
+ };
6992
+ get_twinfield_cron_jobs: {
6993
+ Args: never;
6994
+ Returns: {
6995
+ active: boolean;
6996
+ jobname: string;
6997
+ schedule: string;
6998
+ url: string;
6999
+ }[];
7000
+ };
7001
+ get_user_tenant_id: {
7002
+ Args: never;
7003
+ Returns: string;
7004
+ };
7005
+ get_work_order_tenant_id: {
7006
+ Args: {
7007
+ wo_id: string;
7008
+ };
7009
+ Returns: string;
7010
+ };
5033
7011
  has_role: {
5034
7012
  Args: {
5035
7013
  _role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
@@ -5037,6 +7015,34 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
5037
7015
  };
5038
7016
  Returns: boolean;
5039
7017
  };
7018
+ is_authenticated: {
7019
+ Args: never;
7020
+ Returns: boolean;
7021
+ };
7022
+ is_developer: {
7023
+ Args: never;
7024
+ Returns: boolean;
7025
+ };
7026
+ next_work_order_number: {
7027
+ Args: {
7028
+ p_parent_work_order_id?: string;
7029
+ p_tenant_id: string;
7030
+ };
7031
+ Returns: string;
7032
+ };
7033
+ normalize_vat: {
7034
+ Args: {
7035
+ v: string;
7036
+ };
7037
+ Returns: string;
7038
+ };
7039
+ schedule_floriday_carriers_sync: {
7040
+ Args: {
7041
+ p_apikey: string;
7042
+ p_url: string;
7043
+ };
7044
+ Returns: number;
7045
+ };
5040
7046
  schedule_floriday_connections_sync: {
5041
7047
  Args: {
5042
7048
  p_apikey: string;
@@ -5079,6 +7085,56 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
5079
7085
  };
5080
7086
  Returns: number;
5081
7087
  };
7088
+ schedule_twinfield_customers_sync: {
7089
+ Args: {
7090
+ p_apikey: string;
7091
+ p_url: string;
7092
+ };
7093
+ Returns: number;
7094
+ } | {
7095
+ Args: {
7096
+ p_apikey: string;
7097
+ p_cron_secret?: string;
7098
+ p_url: string;
7099
+ };
7100
+ Returns: number;
7101
+ };
7102
+ schedule_twinfield_invoices_sync: {
7103
+ Args: {
7104
+ p_apikey: string;
7105
+ p_url: string;
7106
+ };
7107
+ Returns: number;
7108
+ } | {
7109
+ Args: {
7110
+ p_apikey: string;
7111
+ p_cron_secret?: string;
7112
+ p_url: string;
7113
+ };
7114
+ Returns: number;
7115
+ };
7116
+ schedule_twinfield_push_queue_flush: {
7117
+ Args: {
7118
+ p_apikey: string;
7119
+ p_cron_secret?: string;
7120
+ p_url: string;
7121
+ };
7122
+ Returns: number;
7123
+ };
7124
+ schedule_twinfield_token_refresh: {
7125
+ Args: {
7126
+ p_apikey: string;
7127
+ p_url: string;
7128
+ };
7129
+ Returns: number;
7130
+ } | {
7131
+ Args: {
7132
+ p_apikey: string;
7133
+ p_cron_secret?: string;
7134
+ p_url: string;
7135
+ };
7136
+ Returns: number;
7137
+ };
5082
7138
  show_limit: {
5083
7139
  Args: never;
5084
7140
  Returns: number;
@@ -5089,10 +7145,23 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
5089
7145
  };
5090
7146
  Returns: string[];
5091
7147
  };
7148
+ twinfield_decrypt: {
7149
+ Args: {
7150
+ cipher: string;
7151
+ };
7152
+ Returns: string;
7153
+ };
7154
+ twinfield_encrypt: {
7155
+ Args: {
7156
+ plain: string;
7157
+ };
7158
+ Returns: string;
7159
+ };
5092
7160
  };
5093
7161
  Enums: {
5094
- app_role: "admin" | "manager" | "warehouse" | "sales" | "developer";
7162
+ app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
5095
7163
  exact_env: "staging" | "live";
7164
+ exact_push_status: "pending" | "sent" | "error";
5096
7165
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
5097
7166
  };
5098
7167
  CompositeTypes: { [_ in never]: never; };