@flowselections/floriday-afhandeling-module 1.0.6 → 1.0.8

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 (33) hide show
  1. package/dist-lib/components/afhandeling/LeveringenPage.d.ts.map +1 -1
  2. package/dist-lib/components/afhandeling/LeveringenPage.js +23 -2
  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/VervoerderForm.d.ts +6 -0
  7. package/dist-lib/components/afhandeling/VervoerderForm.d.ts.map +1 -0
  8. package/dist-lib/components/afhandeling/VervoerderForm.js +136 -0
  9. package/dist-lib/components/afhandeling/VervoerdersPage.d.ts +2 -0
  10. package/dist-lib/components/afhandeling/VervoerdersPage.d.ts.map +1 -0
  11. package/dist-lib/components/afhandeling/VervoerdersPage.js +41 -0
  12. package/dist-lib/index.d.ts +2 -0
  13. package/dist-lib/index.d.ts.map +1 -1
  14. package/dist-lib/index.js +6 -3
  15. package/dist-lib/integrations/supabase/auth-middleware.d.ts +3038 -234
  16. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  17. package/dist-lib/integrations/supabase/client.d.ts +3038 -234
  18. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  19. package/dist-lib/integrations/supabase/client.server.d.ts +3038 -234
  20. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  21. package/dist-lib/integrations/supabase/types.d.ts +3170 -296
  22. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  23. package/dist-lib/integrations/supabase/types.js +18 -1
  24. package/dist-lib/lib/carriers.functions.d.ts +26576 -0
  25. package/dist-lib/lib/carriers.functions.d.ts.map +1 -0
  26. package/dist-lib/lib/carriers.functions.js +131 -0
  27. package/dist-lib/lib/countries.d.ts +7 -0
  28. package/dist-lib/lib/countries.d.ts.map +1 -0
  29. package/dist-lib/lib/countries.js +47 -0
  30. package/dist-lib/lib/floriday.functions.d.ts +3040 -235
  31. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/floriday.functions.js +4 -5
  33. package/package.json +8 -3
@@ -188,6 +188,153 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
188
188
  };
189
189
  Relationships: [];
190
190
  };
191
+ app_settings: {
192
+ Row: {
193
+ created_at: string;
194
+ id: string;
195
+ key: string;
196
+ updated_at: string;
197
+ value: string | null;
198
+ };
199
+ Insert: {
200
+ created_at?: string;
201
+ id?: string;
202
+ key: string;
203
+ updated_at?: string;
204
+ value?: string | null;
205
+ };
206
+ Update: {
207
+ created_at?: string;
208
+ id?: string;
209
+ key?: string;
210
+ updated_at?: string;
211
+ value?: string | null;
212
+ };
213
+ Relationships: [];
214
+ };
215
+ booking_items: {
216
+ Row: {
217
+ booking_id: string;
218
+ created_at: string;
219
+ extra_id: string;
220
+ id: string;
221
+ quantity: number;
222
+ total_price: number;
223
+ unit_price: number;
224
+ };
225
+ Insert: {
226
+ booking_id: string;
227
+ created_at?: string;
228
+ extra_id: string;
229
+ id?: string;
230
+ quantity?: number;
231
+ total_price?: number;
232
+ unit_price?: number;
233
+ };
234
+ Update: {
235
+ booking_id?: string;
236
+ created_at?: string;
237
+ extra_id?: string;
238
+ id?: string;
239
+ quantity?: number;
240
+ total_price?: number;
241
+ unit_price?: number;
242
+ };
243
+ Relationships: [{
244
+ foreignKeyName: "booking_items_booking_id_fkey";
245
+ columns: ["booking_id"];
246
+ isOneToOne: false;
247
+ referencedRelation: "bookings";
248
+ referencedColumns: ["id"];
249
+ }, {
250
+ foreignKeyName: "booking_items_extra_id_fkey";
251
+ columns: ["extra_id"];
252
+ isOneToOne: false;
253
+ referencedRelation: "extras";
254
+ referencedColumns: ["id"];
255
+ }];
256
+ };
257
+ bookings: {
258
+ Row: {
259
+ company_name: string | null;
260
+ conflict_checked_at: string | null;
261
+ conflict_reason: string | null;
262
+ created_at: string;
263
+ created_by_role: string | null;
264
+ customer_email: string | null;
265
+ customer_name: string | null;
266
+ end_time: string;
267
+ exact_debiteur_id: string | null;
268
+ has_conflict: boolean;
269
+ id: string;
270
+ invoice_run_id: string | null;
271
+ invoice_status: string | null;
272
+ invoiced_at: string | null;
273
+ number_of_people: number;
274
+ room_id: string;
275
+ start_time: string;
276
+ status: string;
277
+ total_excl_vat: number | null;
278
+ total_incl_vat: number | null;
279
+ user_id: string | null;
280
+ vat_amount: number | null;
281
+ };
282
+ Insert: {
283
+ company_name?: string | null;
284
+ conflict_checked_at?: string | null;
285
+ conflict_reason?: string | null;
286
+ created_at?: string;
287
+ created_by_role?: string | null;
288
+ customer_email?: string | null;
289
+ customer_name?: string | null;
290
+ end_time: string;
291
+ exact_debiteur_id?: string | null;
292
+ has_conflict?: boolean;
293
+ id?: string;
294
+ invoice_run_id?: string | null;
295
+ invoice_status?: string | null;
296
+ invoiced_at?: string | null;
297
+ number_of_people?: number;
298
+ room_id: string;
299
+ start_time: string;
300
+ status?: string;
301
+ total_excl_vat?: number | null;
302
+ total_incl_vat?: number | null;
303
+ user_id?: string | null;
304
+ vat_amount?: number | null;
305
+ };
306
+ Update: {
307
+ company_name?: string | null;
308
+ conflict_checked_at?: string | null;
309
+ conflict_reason?: string | null;
310
+ created_at?: string;
311
+ created_by_role?: string | null;
312
+ customer_email?: string | null;
313
+ customer_name?: string | null;
314
+ end_time?: string;
315
+ exact_debiteur_id?: string | null;
316
+ has_conflict?: boolean;
317
+ id?: string;
318
+ invoice_run_id?: string | null;
319
+ invoice_status?: string | null;
320
+ invoiced_at?: string | null;
321
+ number_of_people?: number;
322
+ room_id?: string;
323
+ start_time?: string;
324
+ status?: string;
325
+ total_excl_vat?: number | null;
326
+ total_incl_vat?: number | null;
327
+ user_id?: string | null;
328
+ vat_amount?: number | null;
329
+ };
330
+ Relationships: [{
331
+ foreignKeyName: "bookings_room_id_fkey";
332
+ columns: ["room_id"];
333
+ isOneToOne: false;
334
+ referencedRelation: "rooms";
335
+ referencedColumns: ["id"];
336
+ }];
337
+ };
191
338
  bugs: {
192
339
  Row: {
193
340
  attachment_url: string | null;
@@ -224,6 +371,84 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
224
371
  };
225
372
  Relationships: [];
226
373
  };
374
+ carrier_shipping_rates: {
375
+ Row: {
376
+ carrier_id: string;
377
+ country_code: string;
378
+ created_at: string;
379
+ id: string;
380
+ price_per_trolley: number;
381
+ };
382
+ Insert: {
383
+ carrier_id: string;
384
+ country_code: string;
385
+ created_at?: string;
386
+ id?: string;
387
+ price_per_trolley: number;
388
+ };
389
+ Update: {
390
+ carrier_id?: string;
391
+ country_code?: string;
392
+ created_at?: string;
393
+ id?: string;
394
+ price_per_trolley?: number;
395
+ };
396
+ Relationships: [{
397
+ foreignKeyName: "carrier_shipping_rates_carrier_id_fkey";
398
+ columns: ["carrier_id"];
399
+ isOneToOne: false;
400
+ referencedRelation: "carriers";
401
+ referencedColumns: ["id"];
402
+ }];
403
+ };
404
+ carriers: {
405
+ Row: {
406
+ address: string | null;
407
+ contact_person: string | null;
408
+ created_at: string;
409
+ delivery_days: number | null;
410
+ email: string | null;
411
+ id: string;
412
+ name: string;
413
+ notes: string | null;
414
+ phone: string | null;
415
+ signup_time_1: string | null;
416
+ signup_time_2: string | null;
417
+ updated_at: string;
418
+ user_id: string;
419
+ };
420
+ Insert: {
421
+ address?: string | null;
422
+ contact_person?: string | null;
423
+ created_at?: string;
424
+ delivery_days?: number | null;
425
+ email?: string | null;
426
+ id?: string;
427
+ name: string;
428
+ notes?: string | null;
429
+ phone?: string | null;
430
+ signup_time_1?: string | null;
431
+ signup_time_2?: string | null;
432
+ updated_at?: string;
433
+ user_id: string;
434
+ };
435
+ Update: {
436
+ address?: string | null;
437
+ contact_person?: string | null;
438
+ created_at?: string;
439
+ delivery_days?: number | null;
440
+ email?: string | null;
441
+ id?: string;
442
+ name?: string;
443
+ notes?: string | null;
444
+ phone?: string | null;
445
+ signup_time_1?: string | null;
446
+ signup_time_2?: string | null;
447
+ updated_at?: string;
448
+ user_id?: string;
449
+ };
450
+ Relationships: [];
451
+ };
227
452
  collections: {
228
453
  Row: {
229
454
  created_at: string;
@@ -932,114 +1157,423 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
932
1157
  };
933
1158
  Relationships: [];
934
1159
  };
935
- exact_account_analytics_cache: {
1160
+ email_auth_connections: {
936
1161
  Row: {
937
- account_id: string;
938
- account_name: string | null;
939
- avg_payment_days: number | null;
940
- computed_at: string;
941
- connection_id: string;
942
- expires_at: string | null;
1162
+ access_token_encrypted: string | null;
1163
+ account_email: string | null;
1164
+ client_id_encrypted: string | null;
1165
+ client_secret_encrypted: string | null;
1166
+ created_at: string;
1167
+ created_by: string | null;
1168
+ display_name: string | null;
1169
+ gmail_history_id: string | null;
1170
+ gmail_watch_expires_at: string | null;
1171
+ graph_subscription_expires_at: string | null;
1172
+ graph_subscription_id: string | null;
943
1173
  id: string;
944
- invoice_count: number | null;
945
- last_invoice_date: string | null;
946
- last_payment_date: string | null;
947
- open_balance: number | null;
948
- overdue_balance: number | null;
949
- total_revenue: number | null;
1174
+ imap_host: string | null;
1175
+ imap_last_uid: number | null;
1176
+ imap_password_encrypted: string | null;
1177
+ imap_port: number | null;
1178
+ imap_secure: boolean | null;
1179
+ imap_uid_validity: number | null;
1180
+ imap_username: string | null;
1181
+ is_active: boolean;
1182
+ last_error: string | null;
1183
+ last_event_at: string | null;
1184
+ last_verified_at: string | null;
1185
+ oauth_mode: string | null;
1186
+ provider: string;
1187
+ purpose_assignments: import("./types").Json;
1188
+ realtime_mode: string;
1189
+ refresh_token_encrypted: string | null;
1190
+ scopes: string[] | null;
1191
+ smtp_host: string | null;
1192
+ smtp_password_encrypted: string | null;
1193
+ smtp_port: number | null;
1194
+ smtp_secure: boolean | null;
1195
+ smtp_username: string | null;
1196
+ status: string;
1197
+ token_expires_at: string | null;
1198
+ updated_at: string;
950
1199
  };
951
1200
  Insert: {
952
- account_id: string;
953
- account_name?: string | null;
954
- avg_payment_days?: number | null;
955
- computed_at?: string;
956
- connection_id: string;
957
- expires_at?: string | null;
958
- id?: string;
959
- invoice_count?: number | null;
960
- last_invoice_date?: string | null;
961
- last_payment_date?: string | null;
962
- open_balance?: number | null;
963
- overdue_balance?: number | null;
964
- total_revenue?: number | null;
1201
+ access_token_encrypted?: string | null;
1202
+ account_email?: string | null;
1203
+ client_id_encrypted?: string | null;
1204
+ client_secret_encrypted?: string | null;
1205
+ created_at?: string;
1206
+ created_by?: string | null;
1207
+ display_name?: string | null;
1208
+ gmail_history_id?: string | null;
1209
+ gmail_watch_expires_at?: string | null;
1210
+ graph_subscription_expires_at?: string | null;
1211
+ graph_subscription_id?: string | null;
1212
+ id?: string;
1213
+ imap_host?: string | null;
1214
+ imap_last_uid?: number | null;
1215
+ imap_password_encrypted?: string | null;
1216
+ imap_port?: number | null;
1217
+ imap_secure?: boolean | null;
1218
+ imap_uid_validity?: number | null;
1219
+ imap_username?: string | null;
1220
+ is_active?: boolean;
1221
+ last_error?: string | null;
1222
+ last_event_at?: string | null;
1223
+ last_verified_at?: string | null;
1224
+ oauth_mode?: string | null;
1225
+ provider: string;
1226
+ purpose_assignments?: import("./types").Json;
1227
+ realtime_mode?: string;
1228
+ refresh_token_encrypted?: string | null;
1229
+ scopes?: string[] | null;
1230
+ smtp_host?: string | null;
1231
+ smtp_password_encrypted?: string | null;
1232
+ smtp_port?: number | null;
1233
+ smtp_secure?: boolean | null;
1234
+ smtp_username?: string | null;
1235
+ status?: string;
1236
+ token_expires_at?: string | null;
1237
+ updated_at?: string;
965
1238
  };
966
1239
  Update: {
967
- account_id?: string;
968
- account_name?: string | null;
969
- avg_payment_days?: number | null;
970
- computed_at?: string;
971
- connection_id?: string;
972
- expires_at?: string | null;
973
- id?: string;
974
- invoice_count?: number | null;
975
- last_invoice_date?: string | null;
976
- last_payment_date?: string | null;
977
- open_balance?: number | null;
978
- overdue_balance?: number | null;
979
- total_revenue?: number | null;
1240
+ access_token_encrypted?: string | null;
1241
+ account_email?: string | null;
1242
+ client_id_encrypted?: string | null;
1243
+ client_secret_encrypted?: string | null;
1244
+ created_at?: string;
1245
+ created_by?: string | null;
1246
+ display_name?: string | null;
1247
+ gmail_history_id?: string | null;
1248
+ gmail_watch_expires_at?: string | null;
1249
+ graph_subscription_expires_at?: string | null;
1250
+ graph_subscription_id?: string | null;
1251
+ id?: string;
1252
+ imap_host?: string | null;
1253
+ imap_last_uid?: number | null;
1254
+ imap_password_encrypted?: string | null;
1255
+ imap_port?: number | null;
1256
+ imap_secure?: boolean | null;
1257
+ imap_uid_validity?: number | null;
1258
+ imap_username?: string | null;
1259
+ is_active?: boolean;
1260
+ last_error?: string | null;
1261
+ last_event_at?: string | null;
1262
+ last_verified_at?: string | null;
1263
+ oauth_mode?: string | null;
1264
+ provider?: string;
1265
+ purpose_assignments?: import("./types").Json;
1266
+ realtime_mode?: string;
1267
+ refresh_token_encrypted?: string | null;
1268
+ scopes?: string[] | null;
1269
+ smtp_host?: string | null;
1270
+ smtp_password_encrypted?: string | null;
1271
+ smtp_port?: number | null;
1272
+ smtp_secure?: boolean | null;
1273
+ smtp_username?: string | null;
1274
+ status?: string;
1275
+ token_expires_at?: string | null;
1276
+ updated_at?: string;
980
1277
  };
981
- Relationships: [{
982
- foreignKeyName: "exact_account_analytics_cache_connection_id_fkey";
983
- columns: ["connection_id"];
984
- isOneToOne: false;
985
- referencedRelation: "exact_connections";
986
- referencedColumns: ["id"];
987
- }];
1278
+ Relationships: [];
988
1279
  };
989
- exact_analytics_cache: {
1280
+ email_auth_events: {
990
1281
  Row: {
991
- analytics_type: string;
992
- avg_payment_days: number | null;
993
- computed_at: string;
994
1282
  connection_id: string;
995
- data_raw: import("./types").Json | null;
996
- expires_at: string | null;
1283
+ consumed_at: string | null;
1284
+ created_at: string;
1285
+ event_type: string;
1286
+ external_id: string | null;
997
1287
  id: string;
998
- open_count: number | null;
999
- overdue_amount: number | null;
1000
- paid_this_month: number | null;
1001
- period_key: string;
1002
- total_invoiced: number | null;
1003
- total_open: number | null;
1288
+ payload: import("./types").Json;
1289
+ provider: string;
1290
+ received_at: string;
1004
1291
  };
1005
1292
  Insert: {
1006
- analytics_type: string;
1007
- avg_payment_days?: number | null;
1008
- computed_at?: string;
1009
1293
  connection_id: string;
1010
- data_raw?: import("./types").Json | null;
1011
- expires_at?: string | null;
1294
+ consumed_at?: string | null;
1295
+ created_at?: string;
1296
+ event_type: string;
1297
+ external_id?: string | null;
1012
1298
  id?: string;
1013
- open_count?: number | null;
1014
- overdue_amount?: number | null;
1015
- paid_this_month?: number | null;
1016
- period_key: string;
1017
- total_invoiced?: number | null;
1018
- total_open?: number | null;
1299
+ payload?: import("./types").Json;
1300
+ provider: string;
1301
+ received_at?: string;
1019
1302
  };
1020
1303
  Update: {
1021
- analytics_type?: string;
1022
- avg_payment_days?: number | null;
1023
- computed_at?: string;
1024
1304
  connection_id?: string;
1025
- data_raw?: import("./types").Json | null;
1026
- expires_at?: string | null;
1305
+ consumed_at?: string | null;
1306
+ created_at?: string;
1307
+ event_type?: string;
1308
+ external_id?: string | null;
1027
1309
  id?: string;
1028
- open_count?: number | null;
1029
- overdue_amount?: number | null;
1030
- paid_this_month?: number | null;
1031
- period_key?: string;
1032
- total_invoiced?: number | null;
1033
- total_open?: number | null;
1310
+ payload?: import("./types").Json;
1311
+ provider?: string;
1312
+ received_at?: string;
1034
1313
  };
1035
1314
  Relationships: [{
1036
- foreignKeyName: "exact_analytics_cache_connection_id_fkey";
1315
+ foreignKeyName: "email_auth_events_connection_id_fkey";
1037
1316
  columns: ["connection_id"];
1038
1317
  isOneToOne: false;
1039
- referencedRelation: "exact_connections";
1318
+ referencedRelation: "email_auth_connections";
1040
1319
  referencedColumns: ["id"];
1041
- }];
1042
- };
1320
+ }, {
1321
+ foreignKeyName: "email_auth_events_connection_id_fkey";
1322
+ columns: ["connection_id"];
1323
+ isOneToOne: false;
1324
+ referencedRelation: "email_auth_connections_safe";
1325
+ referencedColumns: ["id"];
1326
+ }];
1327
+ };
1328
+ email_auth_outbox: {
1329
+ Row: {
1330
+ attempts: number;
1331
+ bcc_addresses: string[];
1332
+ cc_addresses: string[];
1333
+ connection_id: string | null;
1334
+ created_at: string;
1335
+ created_by: string | null;
1336
+ external_message_id: string | null;
1337
+ headers: import("./types").Json;
1338
+ html_body: string | null;
1339
+ id: string;
1340
+ last_error: string | null;
1341
+ purpose: string;
1342
+ reply_to: string | null;
1343
+ scheduled_at: string;
1344
+ sent_at: string | null;
1345
+ status: string;
1346
+ subject: string;
1347
+ text_body: string | null;
1348
+ to_addresses: string[];
1349
+ updated_at: string;
1350
+ };
1351
+ Insert: {
1352
+ attempts?: number;
1353
+ bcc_addresses?: string[];
1354
+ cc_addresses?: string[];
1355
+ connection_id?: string | null;
1356
+ created_at?: string;
1357
+ created_by?: string | null;
1358
+ external_message_id?: string | null;
1359
+ headers?: import("./types").Json;
1360
+ html_body?: string | null;
1361
+ id?: string;
1362
+ last_error?: string | null;
1363
+ purpose: string;
1364
+ reply_to?: string | null;
1365
+ scheduled_at?: string;
1366
+ sent_at?: string | null;
1367
+ status?: string;
1368
+ subject: string;
1369
+ text_body?: string | null;
1370
+ to_addresses: string[];
1371
+ updated_at?: string;
1372
+ };
1373
+ Update: {
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
+ Relationships: [{
1396
+ foreignKeyName: "email_auth_outbox_connection_id_fkey";
1397
+ columns: ["connection_id"];
1398
+ isOneToOne: false;
1399
+ referencedRelation: "email_auth_connections";
1400
+ referencedColumns: ["id"];
1401
+ }, {
1402
+ foreignKeyName: "email_auth_outbox_connection_id_fkey";
1403
+ columns: ["connection_id"];
1404
+ isOneToOne: false;
1405
+ referencedRelation: "email_auth_connections_safe";
1406
+ referencedColumns: ["id"];
1407
+ }];
1408
+ };
1409
+ email_auth_purpose_settings: {
1410
+ Row: {
1411
+ purpose: string;
1412
+ reply_to: string | null;
1413
+ updated_at: string;
1414
+ updated_by: string | null;
1415
+ };
1416
+ Insert: {
1417
+ purpose: string;
1418
+ reply_to?: string | null;
1419
+ updated_at?: string;
1420
+ updated_by?: string | null;
1421
+ };
1422
+ Update: {
1423
+ purpose?: string;
1424
+ reply_to?: string | null;
1425
+ updated_at?: string;
1426
+ updated_by?: string | null;
1427
+ };
1428
+ Relationships: [];
1429
+ };
1430
+ email_auth_token_refresh_log: {
1431
+ Row: {
1432
+ connection_id: string;
1433
+ error_message: string | null;
1434
+ id: string;
1435
+ refreshed_at: string;
1436
+ success: boolean;
1437
+ trigger_source: string;
1438
+ };
1439
+ Insert: {
1440
+ connection_id: string;
1441
+ error_message?: string | null;
1442
+ id?: string;
1443
+ refreshed_at?: string;
1444
+ success: boolean;
1445
+ trigger_source: string;
1446
+ };
1447
+ Update: {
1448
+ connection_id?: string;
1449
+ error_message?: string | null;
1450
+ id?: string;
1451
+ refreshed_at?: string;
1452
+ success?: boolean;
1453
+ trigger_source?: string;
1454
+ };
1455
+ Relationships: [{
1456
+ foreignKeyName: "email_auth_token_refresh_log_connection_id_fkey";
1457
+ columns: ["connection_id"];
1458
+ isOneToOne: false;
1459
+ referencedRelation: "email_auth_connections";
1460
+ referencedColumns: ["id"];
1461
+ }, {
1462
+ foreignKeyName: "email_auth_token_refresh_log_connection_id_fkey";
1463
+ columns: ["connection_id"];
1464
+ isOneToOne: false;
1465
+ referencedRelation: "email_auth_connections_safe";
1466
+ referencedColumns: ["id"];
1467
+ }];
1468
+ };
1469
+ exact_account_analytics_cache: {
1470
+ Row: {
1471
+ account_id: string;
1472
+ account_name: string | null;
1473
+ avg_payment_days: number | null;
1474
+ computed_at: string;
1475
+ connection_id: string;
1476
+ expires_at: string | null;
1477
+ id: string;
1478
+ invoice_count: number | null;
1479
+ last_invoice_date: string | null;
1480
+ last_payment_date: string | null;
1481
+ open_balance: number | null;
1482
+ overdue_balance: number | null;
1483
+ total_revenue: number | null;
1484
+ };
1485
+ Insert: {
1486
+ account_id: string;
1487
+ account_name?: string | null;
1488
+ avg_payment_days?: number | null;
1489
+ computed_at?: string;
1490
+ connection_id: string;
1491
+ expires_at?: string | null;
1492
+ id?: string;
1493
+ invoice_count?: number | null;
1494
+ last_invoice_date?: string | null;
1495
+ last_payment_date?: string | null;
1496
+ open_balance?: number | null;
1497
+ overdue_balance?: number | null;
1498
+ total_revenue?: number | null;
1499
+ };
1500
+ Update: {
1501
+ account_id?: string;
1502
+ account_name?: string | null;
1503
+ avg_payment_days?: number | null;
1504
+ computed_at?: string;
1505
+ connection_id?: string;
1506
+ expires_at?: string | null;
1507
+ id?: string;
1508
+ invoice_count?: number | null;
1509
+ last_invoice_date?: string | null;
1510
+ last_payment_date?: string | null;
1511
+ open_balance?: number | null;
1512
+ overdue_balance?: number | null;
1513
+ total_revenue?: number | null;
1514
+ };
1515
+ Relationships: [{
1516
+ foreignKeyName: "exact_account_analytics_cache_connection_id_fkey";
1517
+ columns: ["connection_id"];
1518
+ isOneToOne: false;
1519
+ referencedRelation: "exact_connections";
1520
+ referencedColumns: ["id"];
1521
+ }];
1522
+ };
1523
+ exact_analytics_cache: {
1524
+ Row: {
1525
+ analytics_type: string;
1526
+ avg_payment_days: number | null;
1527
+ computed_at: string;
1528
+ connection_id: string;
1529
+ data_raw: import("./types").Json | null;
1530
+ expires_at: string | null;
1531
+ id: string;
1532
+ open_count: number | null;
1533
+ overdue_amount: number | null;
1534
+ paid_this_month: number | null;
1535
+ period_key: string;
1536
+ total_invoiced: number | null;
1537
+ total_open: number | null;
1538
+ };
1539
+ Insert: {
1540
+ analytics_type: string;
1541
+ avg_payment_days?: number | null;
1542
+ computed_at?: string;
1543
+ connection_id: string;
1544
+ data_raw?: import("./types").Json | null;
1545
+ expires_at?: string | null;
1546
+ id?: string;
1547
+ open_count?: number | null;
1548
+ overdue_amount?: number | null;
1549
+ paid_this_month?: number | null;
1550
+ period_key: string;
1551
+ total_invoiced?: number | null;
1552
+ total_open?: number | null;
1553
+ };
1554
+ Update: {
1555
+ analytics_type?: string;
1556
+ avg_payment_days?: number | null;
1557
+ computed_at?: string;
1558
+ connection_id?: string;
1559
+ data_raw?: import("./types").Json | null;
1560
+ expires_at?: string | null;
1561
+ id?: string;
1562
+ open_count?: number | null;
1563
+ overdue_amount?: number | null;
1564
+ paid_this_month?: number | null;
1565
+ period_key?: string;
1566
+ total_invoiced?: number | null;
1567
+ total_open?: number | null;
1568
+ };
1569
+ Relationships: [{
1570
+ foreignKeyName: "exact_analytics_cache_connection_id_fkey";
1571
+ columns: ["connection_id"];
1572
+ isOneToOne: false;
1573
+ referencedRelation: "exact_connections";
1574
+ referencedColumns: ["id"];
1575
+ }];
1576
+ };
1043
1577
  exact_bulk_operation_items: {
1044
1578
  Row: {
1045
1579
  attempts: number;
@@ -1290,11 +1824,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1290
1824
  address_line1: string | null;
1291
1825
  address_line2: string | null;
1292
1826
  balance: number | null;
1827
+ chamber_of_commerce: string | null;
1293
1828
  city: string | null;
1829
+ classification_description: string | null;
1294
1830
  connection_id: string;
1295
1831
  contact_name: string | null;
1296
1832
  country: string | null;
1833
+ created_at_exact: string | null;
1297
1834
  credit_line: number | null;
1835
+ currency: string | null;
1298
1836
  data_raw: import("./types").Json | null;
1299
1837
  email: string | null;
1300
1838
  exact_id: string;
@@ -1303,12 +1841,18 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1303
1841
  id: string;
1304
1842
  is_sales: boolean | null;
1305
1843
  is_supplier: boolean | null;
1844
+ language: string | null;
1845
+ modified_at_exact: string | null;
1846
+ payment_condition_description: string | null;
1847
+ payment_condition_sales: string | null;
1306
1848
  phone: string | null;
1307
1849
  postal_code: string | null;
1850
+ remarks: string | null;
1308
1851
  search_text: string | null;
1309
1852
  status: string | null;
1310
1853
  updated_at: string;
1311
1854
  vat_number: string | null;
1855
+ website: string | null;
1312
1856
  };
1313
1857
  Insert: {
1314
1858
  account_name?: string | null;
@@ -1316,11 +1860,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1316
1860
  address_line1?: string | null;
1317
1861
  address_line2?: string | null;
1318
1862
  balance?: number | null;
1863
+ chamber_of_commerce?: string | null;
1319
1864
  city?: string | null;
1865
+ classification_description?: string | null;
1320
1866
  connection_id: string;
1321
1867
  contact_name?: string | null;
1322
1868
  country?: string | null;
1869
+ created_at_exact?: string | null;
1323
1870
  credit_line?: number | null;
1871
+ currency?: string | null;
1324
1872
  data_raw?: import("./types").Json | null;
1325
1873
  email?: string | null;
1326
1874
  exact_id: string;
@@ -1329,12 +1877,18 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1329
1877
  id?: string;
1330
1878
  is_sales?: boolean | null;
1331
1879
  is_supplier?: boolean | null;
1880
+ language?: string | null;
1881
+ modified_at_exact?: string | null;
1882
+ payment_condition_description?: string | null;
1883
+ payment_condition_sales?: string | null;
1332
1884
  phone?: string | null;
1333
1885
  postal_code?: string | null;
1886
+ remarks?: string | null;
1334
1887
  search_text?: string | null;
1335
1888
  status?: string | null;
1336
1889
  updated_at?: string;
1337
1890
  vat_number?: string | null;
1891
+ website?: string | null;
1338
1892
  };
1339
1893
  Update: {
1340
1894
  account_name?: string | null;
@@ -1342,11 +1896,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1342
1896
  address_line1?: string | null;
1343
1897
  address_line2?: string | null;
1344
1898
  balance?: number | null;
1899
+ chamber_of_commerce?: string | null;
1345
1900
  city?: string | null;
1901
+ classification_description?: string | null;
1346
1902
  connection_id?: string;
1347
1903
  contact_name?: string | null;
1348
1904
  country?: string | null;
1905
+ created_at_exact?: string | null;
1349
1906
  credit_line?: number | null;
1907
+ currency?: string | null;
1350
1908
  data_raw?: import("./types").Json | null;
1351
1909
  email?: string | null;
1352
1910
  exact_id?: string;
@@ -1355,12 +1913,18 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1355
1913
  id?: string;
1356
1914
  is_sales?: boolean | null;
1357
1915
  is_supplier?: boolean | null;
1916
+ language?: string | null;
1917
+ modified_at_exact?: string | null;
1918
+ payment_condition_description?: string | null;
1919
+ payment_condition_sales?: string | null;
1358
1920
  phone?: string | null;
1359
1921
  postal_code?: string | null;
1922
+ remarks?: string | null;
1360
1923
  search_text?: string | null;
1361
1924
  status?: string | null;
1362
1925
  updated_at?: string;
1363
1926
  vat_number?: string | null;
1927
+ website?: string | null;
1364
1928
  };
1365
1929
  Relationships: [{
1366
1930
  foreignKeyName: "exact_customers_cache_connection_id_fkey";
@@ -1496,6 +2060,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1496
2060
  connection_id: string;
1497
2061
  data_raw: import("./types").Json | null;
1498
2062
  due_date: string | null;
2063
+ entry_id: string | null;
1499
2064
  exact_id: string;
1500
2065
  expires_at: string | null;
1501
2066
  fetched_at: string;
@@ -1521,6 +2086,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1521
2086
  connection_id: string;
1522
2087
  data_raw?: import("./types").Json | null;
1523
2088
  due_date?: string | null;
2089
+ entry_id?: string | null;
1524
2090
  exact_id: string;
1525
2091
  expires_at?: string | null;
1526
2092
  fetched_at?: string;
@@ -1546,6 +2112,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1546
2112
  connection_id?: string;
1547
2113
  data_raw?: import("./types").Json | null;
1548
2114
  due_date?: string | null;
2115
+ entry_id?: string | null;
1549
2116
  exact_id?: string;
1550
2117
  expires_at?: string | null;
1551
2118
  fetched_at?: string;
@@ -1622,6 +2189,63 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1622
2189
  referencedColumns: ["id"];
1623
2190
  }];
1624
2191
  };
2192
+ exact_refresh_locks: {
2193
+ Row: {
2194
+ environment: Database["public"]["Enums"]["exact_env"];
2195
+ locked_by: string;
2196
+ locked_until: string;
2197
+ updated_at: string;
2198
+ };
2199
+ Insert: {
2200
+ environment: Database["public"]["Enums"]["exact_env"];
2201
+ locked_by: string;
2202
+ locked_until: string;
2203
+ updated_at?: string;
2204
+ };
2205
+ Update: {
2206
+ environment?: Database["public"]["Enums"]["exact_env"];
2207
+ locked_by?: string;
2208
+ locked_until?: string;
2209
+ updated_at?: string;
2210
+ };
2211
+ Relationships: [];
2212
+ };
2213
+ exact_settings: {
2214
+ Row: {
2215
+ client_id: string | null;
2216
+ client_secret: string | null;
2217
+ connection_status: string;
2218
+ created_at: string;
2219
+ division_id: string | null;
2220
+ id: string;
2221
+ last_sync_at: string | null;
2222
+ redirect_uri: string | null;
2223
+ updated_at: string;
2224
+ };
2225
+ Insert: {
2226
+ client_id?: string | null;
2227
+ client_secret?: string | null;
2228
+ connection_status?: string;
2229
+ created_at?: string;
2230
+ division_id?: string | null;
2231
+ id?: string;
2232
+ last_sync_at?: string | null;
2233
+ redirect_uri?: string | null;
2234
+ updated_at?: string;
2235
+ };
2236
+ Update: {
2237
+ client_id?: string | null;
2238
+ client_secret?: string | null;
2239
+ connection_status?: string;
2240
+ created_at?: string;
2241
+ division_id?: string | null;
2242
+ id?: string;
2243
+ last_sync_at?: string | null;
2244
+ redirect_uri?: string | null;
2245
+ updated_at?: string;
2246
+ };
2247
+ Relationships: [];
2248
+ };
1625
2249
  exact_sync_state: {
1626
2250
  Row: {
1627
2251
  connection_id: string;
@@ -1649,27 +2273,120 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1649
2273
  };
1650
2274
  Relationships: [];
1651
2275
  };
1652
- floricode_connection_settings: {
2276
+ external_customer_providers: {
1653
2277
  Row: {
1654
- catalog_key: string | null;
1655
- catalog_url: string;
2278
+ color: string | null;
1656
2279
  created_at: string;
1657
- id: number;
1658
- last_meta: import("./types").Json | null;
1659
- last_test_at: string | null;
1660
- last_test_error: string | null;
1661
- last_test_ok: boolean | null;
2280
+ icon: string | null;
2281
+ is_enabled: boolean;
2282
+ label: string;
2283
+ last_synced_at: string | null;
2284
+ provider: string;
2285
+ sort_order: number;
1662
2286
  updated_at: string;
1663
2287
  };
1664
2288
  Insert: {
1665
- catalog_key?: string | null;
1666
- catalog_url?: string;
2289
+ color?: string | null;
1667
2290
  created_at?: string;
1668
- id?: number;
1669
- last_meta?: import("./types").Json | null;
1670
- last_test_at?: string | null;
1671
- last_test_error?: string | null;
1672
- last_test_ok?: boolean | null;
2291
+ icon?: string | null;
2292
+ is_enabled?: boolean;
2293
+ label: string;
2294
+ last_synced_at?: string | null;
2295
+ provider: string;
2296
+ sort_order?: number;
2297
+ updated_at?: string;
2298
+ };
2299
+ Update: {
2300
+ color?: string | null;
2301
+ created_at?: string;
2302
+ icon?: string | null;
2303
+ is_enabled?: boolean;
2304
+ label?: string;
2305
+ last_synced_at?: string | null;
2306
+ provider?: string;
2307
+ sort_order?: number;
2308
+ updated_at?: string;
2309
+ };
2310
+ Relationships: [];
2311
+ };
2312
+ extra_categories: {
2313
+ Row: {
2314
+ created_at: string;
2315
+ id: string;
2316
+ name: string;
2317
+ sort_order: number;
2318
+ updated_at: string;
2319
+ };
2320
+ Insert: {
2321
+ created_at?: string;
2322
+ id?: string;
2323
+ name: string;
2324
+ sort_order?: number;
2325
+ updated_at?: string;
2326
+ };
2327
+ Update: {
2328
+ created_at?: string;
2329
+ id?: string;
2330
+ name?: string;
2331
+ sort_order?: number;
2332
+ updated_at?: string;
2333
+ };
2334
+ Relationships: [];
2335
+ };
2336
+ extras: {
2337
+ Row: {
2338
+ category: string;
2339
+ created_at: string;
2340
+ exact_article_id: string | null;
2341
+ id: string;
2342
+ is_active: boolean;
2343
+ name: string;
2344
+ price: number;
2345
+ pricing_type: string;
2346
+ };
2347
+ Insert: {
2348
+ category: string;
2349
+ created_at?: string;
2350
+ exact_article_id?: string | null;
2351
+ id?: string;
2352
+ is_active?: boolean;
2353
+ name: string;
2354
+ price?: number;
2355
+ pricing_type?: string;
2356
+ };
2357
+ Update: {
2358
+ category?: string;
2359
+ created_at?: string;
2360
+ exact_article_id?: string | null;
2361
+ id?: string;
2362
+ is_active?: boolean;
2363
+ name?: string;
2364
+ price?: number;
2365
+ pricing_type?: string;
2366
+ };
2367
+ Relationships: [];
2368
+ };
2369
+ floricode_connection_settings: {
2370
+ Row: {
2371
+ catalog_key: string | null;
2372
+ catalog_url: string;
2373
+ created_at: string;
2374
+ id: number;
2375
+ last_meta: import("./types").Json | null;
2376
+ last_test_at: string | null;
2377
+ last_test_error: string | null;
2378
+ last_test_ok: boolean | null;
2379
+ updated_at: string;
2380
+ };
2381
+ Insert: {
2382
+ catalog_key?: string | null;
2383
+ catalog_url?: string;
2384
+ created_at?: string;
2385
+ id?: number;
2386
+ last_meta?: import("./types").Json | null;
2387
+ last_test_at?: string | null;
2388
+ last_test_error?: string | null;
2389
+ last_test_ok?: boolean | null;
1673
2390
  updated_at?: string;
1674
2391
  };
1675
2392
  Update: {
@@ -1739,6 +2456,48 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1739
2456
  };
1740
2457
  Relationships: [];
1741
2458
  };
2459
+ floriday_carriers_cache: {
2460
+ Row: {
2461
+ connection_id: string | null;
2462
+ created_at: string;
2463
+ data: import("./types").Json;
2464
+ fetched_at: string;
2465
+ gln_code: string | null;
2466
+ id: string;
2467
+ name: string | null;
2468
+ organization_id: string;
2469
+ updated_at: string;
2470
+ };
2471
+ Insert: {
2472
+ connection_id?: string | null;
2473
+ created_at?: string;
2474
+ data: import("./types").Json;
2475
+ fetched_at?: string;
2476
+ gln_code?: string | null;
2477
+ id?: string;
2478
+ name?: string | null;
2479
+ organization_id: string;
2480
+ updated_at?: string;
2481
+ };
2482
+ Update: {
2483
+ connection_id?: string | null;
2484
+ created_at?: string;
2485
+ data?: import("./types").Json;
2486
+ fetched_at?: string;
2487
+ gln_code?: string | null;
2488
+ id?: string;
2489
+ name?: string | null;
2490
+ organization_id?: string;
2491
+ updated_at?: string;
2492
+ };
2493
+ Relationships: [{
2494
+ foreignKeyName: "floriday_carriers_cache_connection_id_fkey";
2495
+ columns: ["connection_id"];
2496
+ isOneToOne: false;
2497
+ referencedRelation: "floriday_connections";
2498
+ referencedColumns: ["id"];
2499
+ }];
2500
+ };
1742
2501
  floriday_connections: {
1743
2502
  Row: {
1744
2503
  access_token: string | null;
@@ -1796,6 +2555,48 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1796
2555
  };
1797
2556
  Relationships: [];
1798
2557
  };
2558
+ floriday_connections_cache: {
2559
+ Row: {
2560
+ buyer_organization_id: string | null;
2561
+ buyer_organization_name: string | null;
2562
+ connection_id: string;
2563
+ data: import("./types").Json;
2564
+ floriday_connection_id: string;
2565
+ is_deleted: boolean;
2566
+ sequence_number: number;
2567
+ status: string | null;
2568
+ synced_at: string;
2569
+ };
2570
+ Insert: {
2571
+ buyer_organization_id?: string | null;
2572
+ buyer_organization_name?: string | null;
2573
+ connection_id: string;
2574
+ data: import("./types").Json;
2575
+ floriday_connection_id: string;
2576
+ is_deleted?: boolean;
2577
+ sequence_number: number;
2578
+ status?: string | null;
2579
+ synced_at?: string;
2580
+ };
2581
+ Update: {
2582
+ buyer_organization_id?: string | null;
2583
+ buyer_organization_name?: string | null;
2584
+ connection_id?: string;
2585
+ data?: import("./types").Json;
2586
+ floriday_connection_id?: string;
2587
+ is_deleted?: boolean;
2588
+ sequence_number?: number;
2589
+ status?: string | null;
2590
+ synced_at?: string;
2591
+ };
2592
+ Relationships: [{
2593
+ foreignKeyName: "floriday_connections_cache_connection_id_fkey";
2594
+ columns: ["connection_id"];
2595
+ isOneToOne: false;
2596
+ referencedRelation: "floriday_connections";
2597
+ referencedColumns: ["id"];
2598
+ }];
2599
+ };
1799
2600
  floriday_customers_cache: {
1800
2601
  Row: {
1801
2602
  connection_id: string | null;
@@ -1880,6 +2681,48 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1880
2681
  };
1881
2682
  Relationships: [];
1882
2683
  };
2684
+ floriday_salesorders_cache: {
2685
+ Row: {
2686
+ buyer_organization_id: string | null;
2687
+ connection_id: string;
2688
+ created_at: string;
2689
+ data: import("./types").Json;
2690
+ floriday_id: string;
2691
+ is_deleted: boolean;
2692
+ sequence_number: number;
2693
+ status: string | null;
2694
+ updated_at: string;
2695
+ };
2696
+ Insert: {
2697
+ buyer_organization_id?: string | null;
2698
+ connection_id: string;
2699
+ created_at?: string;
2700
+ data: import("./types").Json;
2701
+ floriday_id: string;
2702
+ is_deleted?: boolean;
2703
+ sequence_number: number;
2704
+ status?: string | null;
2705
+ updated_at?: string;
2706
+ };
2707
+ Update: {
2708
+ buyer_organization_id?: string | null;
2709
+ connection_id?: string;
2710
+ created_at?: string;
2711
+ data?: import("./types").Json;
2712
+ floriday_id?: string;
2713
+ is_deleted?: boolean;
2714
+ sequence_number?: number;
2715
+ status?: string | null;
2716
+ updated_at?: string;
2717
+ };
2718
+ Relationships: [{
2719
+ foreignKeyName: "floriday_salesorders_cache_connection_id_fkey";
2720
+ columns: ["connection_id"];
2721
+ isOneToOne: false;
2722
+ referencedRelation: "floriday_connections";
2723
+ referencedColumns: ["id"];
2724
+ }];
2725
+ };
1883
2726
  floriday_settings: {
1884
2727
  Row: {
1885
2728
  active_environment: string;
@@ -1898,6 +2741,108 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1898
2741
  };
1899
2742
  Relationships: [];
1900
2743
  };
2744
+ floriday_sync_state: {
2745
+ Row: {
2746
+ connection_id: string;
2747
+ entity_type: string;
2748
+ last_error: string | null;
2749
+ last_sequence_number: number;
2750
+ last_synced_at: string | null;
2751
+ updated_at: string;
2752
+ };
2753
+ Insert: {
2754
+ connection_id: string;
2755
+ entity_type: string;
2756
+ last_error?: string | null;
2757
+ last_sequence_number?: number;
2758
+ last_synced_at?: string | null;
2759
+ updated_at?: string;
2760
+ };
2761
+ Update: {
2762
+ connection_id?: string;
2763
+ entity_type?: string;
2764
+ last_error?: string | null;
2765
+ last_sequence_number?: number;
2766
+ last_synced_at?: string | null;
2767
+ updated_at?: string;
2768
+ };
2769
+ Relationships: [{
2770
+ foreignKeyName: "floriday_sync_state_connection_id_fkey";
2771
+ columns: ["connection_id"];
2772
+ isOneToOne: false;
2773
+ referencedRelation: "floriday_connections";
2774
+ referencedColumns: ["id"];
2775
+ }];
2776
+ };
2777
+ floriday_token_refresh_log: {
2778
+ Row: {
2779
+ attempted_at: string;
2780
+ connection_id: string | null;
2781
+ environment: string;
2782
+ error: string | null;
2783
+ expires_at: string | null;
2784
+ id: string;
2785
+ ok: boolean;
2786
+ };
2787
+ Insert: {
2788
+ attempted_at?: string;
2789
+ connection_id?: string | null;
2790
+ environment: string;
2791
+ error?: string | null;
2792
+ expires_at?: string | null;
2793
+ id?: string;
2794
+ ok: boolean;
2795
+ };
2796
+ Update: {
2797
+ attempted_at?: string;
2798
+ connection_id?: string | null;
2799
+ environment?: string;
2800
+ error?: string | null;
2801
+ expires_at?: string | null;
2802
+ id?: string;
2803
+ ok?: boolean;
2804
+ };
2805
+ Relationships: [{
2806
+ foreignKeyName: "floriday_token_refresh_log_connection_id_fkey";
2807
+ columns: ["connection_id"];
2808
+ isOneToOne: false;
2809
+ referencedRelation: "floriday_connections";
2810
+ referencedColumns: ["id"];
2811
+ }];
2812
+ };
2813
+ floriday_trade_items_cache: {
2814
+ Row: {
2815
+ connection_id: string;
2816
+ data: import("./types").Json;
2817
+ fetched_at: string;
2818
+ floriday_id: string;
2819
+ is_deleted: boolean;
2820
+ sequence_number: number;
2821
+ };
2822
+ Insert: {
2823
+ connection_id: string;
2824
+ data?: import("./types").Json;
2825
+ fetched_at?: string;
2826
+ floriday_id: string;
2827
+ is_deleted?: boolean;
2828
+ sequence_number?: number;
2829
+ };
2830
+ Update: {
2831
+ connection_id?: string;
2832
+ data?: import("./types").Json;
2833
+ fetched_at?: string;
2834
+ floriday_id?: string;
2835
+ is_deleted?: boolean;
2836
+ sequence_number?: number;
2837
+ };
2838
+ Relationships: [{
2839
+ foreignKeyName: "floriday_trade_items_cache_connection_id_fkey";
2840
+ columns: ["connection_id"];
2841
+ isOneToOne: false;
2842
+ referencedRelation: "floriday_connections";
2843
+ referencedColumns: ["id"];
2844
+ }];
2845
+ };
1901
2846
  imap_accounts: {
1902
2847
  Row: {
1903
2848
  created_at: string;
@@ -2072,7 +3017,103 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2072
3017
  };
2073
3018
  Relationships: [];
2074
3019
  };
2075
- locations: {
3020
+ invoice_run_items: {
3021
+ Row: {
3022
+ booking_id: string | null;
3023
+ company_name: string | null;
3024
+ created_at: string;
3025
+ customer_email: string | null;
3026
+ description: string | null;
3027
+ exact_article_id: string | null;
3028
+ id: string;
3029
+ invoice_run_id: string | null;
3030
+ quantity: number | null;
3031
+ total_excl_vat: number | null;
3032
+ total_incl_vat: number | null;
3033
+ unit_price: number | null;
3034
+ vat_amount: number | null;
3035
+ };
3036
+ Insert: {
3037
+ booking_id?: string | null;
3038
+ company_name?: string | null;
3039
+ created_at?: string;
3040
+ customer_email?: string | null;
3041
+ description?: string | null;
3042
+ exact_article_id?: string | null;
3043
+ id?: string;
3044
+ invoice_run_id?: string | null;
3045
+ quantity?: number | null;
3046
+ total_excl_vat?: number | null;
3047
+ total_incl_vat?: number | null;
3048
+ unit_price?: number | null;
3049
+ vat_amount?: number | null;
3050
+ };
3051
+ Update: {
3052
+ booking_id?: string | null;
3053
+ company_name?: string | null;
3054
+ created_at?: string;
3055
+ customer_email?: string | null;
3056
+ description?: string | null;
3057
+ exact_article_id?: string | null;
3058
+ id?: string;
3059
+ invoice_run_id?: string | null;
3060
+ quantity?: number | null;
3061
+ total_excl_vat?: number | null;
3062
+ total_incl_vat?: number | null;
3063
+ unit_price?: number | null;
3064
+ vat_amount?: number | null;
3065
+ };
3066
+ Relationships: [{
3067
+ foreignKeyName: "invoice_run_items_booking_id_fkey";
3068
+ columns: ["booking_id"];
3069
+ isOneToOne: false;
3070
+ referencedRelation: "bookings";
3071
+ referencedColumns: ["id"];
3072
+ }, {
3073
+ foreignKeyName: "invoice_run_items_invoice_run_id_fkey";
3074
+ columns: ["invoice_run_id"];
3075
+ isOneToOne: false;
3076
+ referencedRelation: "invoice_runs";
3077
+ referencedColumns: ["id"];
3078
+ }];
3079
+ };
3080
+ invoice_runs: {
3081
+ Row: {
3082
+ created_at: string;
3083
+ created_by: string | null;
3084
+ id: string;
3085
+ period_end: string;
3086
+ period_start: string;
3087
+ status: string;
3088
+ total_excl_vat: number | null;
3089
+ total_incl_vat: number | null;
3090
+ vat_amount: number | null;
3091
+ };
3092
+ Insert: {
3093
+ created_at?: string;
3094
+ created_by?: string | null;
3095
+ id?: string;
3096
+ period_end: string;
3097
+ period_start: string;
3098
+ status?: string;
3099
+ total_excl_vat?: number | null;
3100
+ total_incl_vat?: number | null;
3101
+ vat_amount?: number | null;
3102
+ };
3103
+ Update: {
3104
+ created_at?: string;
3105
+ created_by?: string | null;
3106
+ id?: string;
3107
+ period_end?: string;
3108
+ period_start?: string;
3109
+ status?: string;
3110
+ total_excl_vat?: number | null;
3111
+ total_incl_vat?: number | null;
3112
+ vat_amount?: number | null;
3113
+ };
3114
+ Relationships: [];
3115
+ };
3116
+ locations: {
2076
3117
  Row: {
2077
3118
  created_at: string;
2078
3119
  id: string;
@@ -2102,6 +3143,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2102
3143
  body_text: string | null;
2103
3144
  created_at: string;
2104
3145
  error_message: string | null;
3146
+ external_id: string | null;
2105
3147
  from_email: string | null;
2106
3148
  from_name: string | null;
2107
3149
  id: string;
@@ -2111,7 +3153,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2111
3153
  received_at: string | null;
2112
3154
  status: string;
2113
3155
  subject: string | null;
2114
- uid: number;
3156
+ uid: number | null;
2115
3157
  updated_at: string;
2116
3158
  };
2117
3159
  Insert: {
@@ -2119,6 +3161,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2119
3161
  body_text?: string | null;
2120
3162
  created_at?: string;
2121
3163
  error_message?: string | null;
3164
+ external_id?: string | null;
2122
3165
  from_email?: string | null;
2123
3166
  from_name?: string | null;
2124
3167
  id?: string;
@@ -2128,7 +3171,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2128
3171
  received_at?: string | null;
2129
3172
  status?: string;
2130
3173
  subject?: string | null;
2131
- uid: number;
3174
+ uid?: number | null;
2132
3175
  updated_at?: string;
2133
3176
  };
2134
3177
  Update: {
@@ -2136,6 +3179,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2136
3179
  body_text?: string | null;
2137
3180
  created_at?: string;
2138
3181
  error_message?: string | null;
3182
+ external_id?: string | null;
2139
3183
  from_email?: string | null;
2140
3184
  from_name?: string | null;
2141
3185
  id?: string;
@@ -2145,7 +3189,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2145
3189
  received_at?: string | null;
2146
3190
  status?: string;
2147
3191
  subject?: string | null;
2148
- uid?: number;
3192
+ uid?: number | null;
2149
3193
  updated_at?: string;
2150
3194
  };
2151
3195
  Relationships: [{
@@ -2417,6 +3461,60 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2417
3461
  };
2418
3462
  Relationships: [];
2419
3463
  };
3464
+ monteurs: {
3465
+ Row: {
3466
+ avatar_url: string | null;
3467
+ color: string | null;
3468
+ created_at: string;
3469
+ email: string | null;
3470
+ id: string;
3471
+ is_active: boolean;
3472
+ leave_balance_hours: number;
3473
+ name: string;
3474
+ persnr: number | null;
3475
+ phone: string | null;
3476
+ role: string;
3477
+ tenant_id: string;
3478
+ updated_at: string;
3479
+ };
3480
+ Insert: {
3481
+ avatar_url?: string | null;
3482
+ color?: string | null;
3483
+ created_at?: string;
3484
+ email?: string | null;
3485
+ id?: string;
3486
+ is_active?: boolean;
3487
+ leave_balance_hours?: number;
3488
+ name: string;
3489
+ persnr?: number | null;
3490
+ phone?: string | null;
3491
+ role?: string;
3492
+ tenant_id: string;
3493
+ updated_at?: string;
3494
+ };
3495
+ Update: {
3496
+ avatar_url?: string | null;
3497
+ color?: string | null;
3498
+ created_at?: string;
3499
+ email?: string | null;
3500
+ id?: string;
3501
+ is_active?: boolean;
3502
+ leave_balance_hours?: number;
3503
+ name?: string;
3504
+ persnr?: number | null;
3505
+ phone?: string | null;
3506
+ role?: string;
3507
+ tenant_id?: string;
3508
+ updated_at?: string;
3509
+ };
3510
+ Relationships: [{
3511
+ foreignKeyName: "monteurs_tenant_id_fkey";
3512
+ columns: ["tenant_id"];
3513
+ isOneToOne: false;
3514
+ referencedRelation: "tenants";
3515
+ referencedColumns: ["id"];
3516
+ }];
3517
+ };
2420
3518
  notifications: {
2421
3519
  Row: {
2422
3520
  created_at: string;
@@ -3249,6 +4347,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3249
4347
  email: string | null;
3250
4348
  id: string;
3251
4349
  notification_preferences: import("./types").Json;
4350
+ tenant_id: string | null;
3252
4351
  updated_at: string;
3253
4352
  };
3254
4353
  Insert: {
@@ -3257,6 +4356,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3257
4356
  email?: string | null;
3258
4357
  id: string;
3259
4358
  notification_preferences?: import("./types").Json;
4359
+ tenant_id?: string | null;
3260
4360
  updated_at?: string;
3261
4361
  };
3262
4362
  Update: {
@@ -3265,9 +4365,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3265
4365
  email?: string | null;
3266
4366
  id?: string;
3267
4367
  notification_preferences?: import("./types").Json;
4368
+ tenant_id?: string | null;
3268
4369
  updated_at?: string;
3269
4370
  };
3270
- Relationships: [];
4371
+ Relationships: [{
4372
+ foreignKeyName: "profiles_tenant_id_fkey";
4373
+ columns: ["tenant_id"];
4374
+ isOneToOne: false;
4375
+ referencedRelation: "tenants";
4376
+ referencedColumns: ["id"];
4377
+ }];
3271
4378
  };
3272
4379
  projects: {
3273
4380
  Row: {
@@ -3527,233 +4634,1695 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3527
4634
  referencedColumns: ["id"];
3528
4635
  }];
3529
4636
  };
3530
- quote_items: {
4637
+ quote_activities: {
3531
4638
  Row: {
3532
4639
  created_at: string;
3533
- description: string;
4640
+ event_type: string;
3534
4641
  id: string;
3535
- quantity: number;
4642
+ metadata: import("./types").Json;
3536
4643
  quote_id: string;
3537
- sort_order: number;
3538
- unit_price: number;
4644
+ user_id: string | null;
3539
4645
  };
3540
4646
  Insert: {
3541
4647
  created_at?: string;
3542
- description?: string;
4648
+ event_type: string;
3543
4649
  id?: string;
3544
- quantity?: number;
4650
+ metadata?: import("./types").Json;
3545
4651
  quote_id: string;
3546
- sort_order?: number;
3547
- unit_price?: number;
4652
+ user_id?: string | null;
3548
4653
  };
3549
4654
  Update: {
3550
4655
  created_at?: string;
3551
- description?: string;
4656
+ event_type?: string;
3552
4657
  id?: string;
3553
- quantity?: number;
4658
+ metadata?: import("./types").Json;
3554
4659
  quote_id?: string;
3555
- sort_order?: number;
3556
- unit_price?: number;
4660
+ user_id?: string | null;
3557
4661
  };
3558
4662
  Relationships: [{
3559
- foreignKeyName: "quote_items_quote_id_fkey";
4663
+ foreignKeyName: "quote_activities_quote_id_fkey";
3560
4664
  columns: ["quote_id"];
3561
4665
  isOneToOne: false;
3562
4666
  referencedRelation: "quotes";
3563
4667
  referencedColumns: ["id"];
3564
4668
  }];
3565
4669
  };
3566
- quotes: {
4670
+ quote_attachments: {
3567
4671
  Row: {
3568
4672
  created_at: string;
4673
+ file_name: string;
4674
+ file_size: number | null;
4675
+ file_url: string;
3569
4676
  id: string;
3570
- notes: string | null;
3571
- prospect_id: string | null;
3572
- quote_number: string | null;
3573
- status: string;
3574
- title: string;
3575
- updated_at: string;
3576
- valid_until: string | null;
4677
+ mime_type: string | null;
4678
+ quote_id: string;
3577
4679
  };
3578
4680
  Insert: {
3579
4681
  created_at?: string;
4682
+ file_name: string;
4683
+ file_size?: number | null;
4684
+ file_url: string;
3580
4685
  id?: string;
3581
- notes?: string | null;
3582
- prospect_id?: string | null;
3583
- quote_number?: string | null;
3584
- status?: string;
3585
- title?: string;
3586
- updated_at?: string;
3587
- valid_until?: string | null;
4686
+ mime_type?: string | null;
4687
+ quote_id: string;
3588
4688
  };
3589
4689
  Update: {
3590
4690
  created_at?: string;
4691
+ file_name?: string;
4692
+ file_size?: number | null;
4693
+ file_url?: string;
3591
4694
  id?: string;
3592
- notes?: string | null;
3593
- prospect_id?: string | null;
3594
- quote_number?: string | null;
3595
- status?: string;
3596
- title?: string;
3597
- updated_at?: string;
3598
- valid_until?: string | null;
4695
+ mime_type?: string | null;
4696
+ quote_id?: string;
3599
4697
  };
3600
4698
  Relationships: [{
3601
- foreignKeyName: "quotes_prospect_id_fkey";
3602
- columns: ["prospect_id"];
4699
+ foreignKeyName: "quote_attachments_quote_id_fkey";
4700
+ columns: ["quote_id"];
3603
4701
  isOneToOne: false;
3604
- referencedRelation: "prospects";
4702
+ referencedRelation: "quotes";
3605
4703
  referencedColumns: ["id"];
3606
4704
  }];
3607
4705
  };
3608
- supplier_products: {
4706
+ quote_field_options: {
3609
4707
  Row: {
3610
- article_number: string | null;
3611
4708
  created_at: string;
4709
+ field_id: string;
3612
4710
  id: string;
3613
- name: string;
3614
- notes: string | null;
3615
- pot_size: string | null;
3616
- price: number | null;
3617
- quantity: number | null;
3618
- supplier_id: string;
3619
- unit: string;
3620
- updated_at: string;
4711
+ label: string;
4712
+ sort_order: number;
4713
+ value: string;
3621
4714
  };
3622
4715
  Insert: {
3623
- article_number?: string | null;
3624
4716
  created_at?: string;
4717
+ field_id: string;
3625
4718
  id?: string;
3626
- name: string;
3627
- notes?: string | null;
3628
- pot_size?: string | null;
3629
- price?: number | null;
3630
- quantity?: number | null;
3631
- supplier_id: string;
3632
- unit?: string;
3633
- updated_at?: string;
4719
+ label: string;
4720
+ sort_order?: number;
4721
+ value: string;
3634
4722
  };
3635
4723
  Update: {
3636
- article_number?: string | null;
3637
4724
  created_at?: string;
4725
+ field_id?: string;
3638
4726
  id?: string;
3639
- name?: string;
3640
- notes?: string | null;
3641
- pot_size?: string | null;
3642
- price?: number | null;
3643
- quantity?: number | null;
3644
- supplier_id?: string;
3645
- unit?: string;
3646
- updated_at?: string;
4727
+ label?: string;
4728
+ sort_order?: number;
4729
+ value?: string;
3647
4730
  };
3648
4731
  Relationships: [{
3649
- foreignKeyName: "supplier_products_supplier_id_fkey";
3650
- columns: ["supplier_id"];
4732
+ foreignKeyName: "quote_field_options_field_id_fkey";
4733
+ columns: ["field_id"];
3651
4734
  isOneToOne: false;
3652
- referencedRelation: "suppliers";
4735
+ referencedRelation: "quote_field_settings";
3653
4736
  referencedColumns: ["id"];
3654
4737
  }];
3655
4738
  };
3656
- suppliers: {
4739
+ quote_field_settings: {
3657
4740
  Row: {
3658
- address: string | null;
3659
- column_mappings: import("./types").Json | null;
3660
- contact_person: string | null;
3661
4741
  created_at: string;
3662
- default_product_type: string;
3663
- email: string | null;
4742
+ default_value: string | null;
4743
+ field_key: string;
4744
+ field_type: string;
3664
4745
  id: string;
3665
- imported_file_name: string | null;
3666
- name: string;
3667
- notes: string | null;
3668
- phone: string | null;
4746
+ is_system: boolean;
4747
+ label: string;
4748
+ required: boolean;
4749
+ sort_order: number;
3669
4750
  updated_at: string;
4751
+ visible: boolean;
3670
4752
  };
3671
4753
  Insert: {
3672
- address?: string | null;
3673
- column_mappings?: import("./types").Json | null;
3674
- contact_person?: string | null;
3675
4754
  created_at?: string;
3676
- default_product_type?: string;
3677
- email?: string | null;
4755
+ default_value?: string | null;
4756
+ field_key: string;
4757
+ field_type: string;
3678
4758
  id?: string;
3679
- imported_file_name?: string | null;
3680
- name: string;
3681
- notes?: string | null;
3682
- phone?: string | null;
4759
+ is_system?: boolean;
4760
+ label: string;
4761
+ required?: boolean;
4762
+ sort_order?: number;
3683
4763
  updated_at?: string;
4764
+ visible?: boolean;
3684
4765
  };
3685
4766
  Update: {
3686
- address?: string | null;
3687
- column_mappings?: import("./types").Json | null;
3688
- contact_person?: string | null;
3689
4767
  created_at?: string;
3690
- default_product_type?: string;
3691
- email?: string | null;
4768
+ default_value?: string | null;
4769
+ field_key?: string;
4770
+ field_type?: string;
3692
4771
  id?: string;
3693
- imported_file_name?: string | null;
3694
- name?: string;
3695
- notes?: string | null;
3696
- phone?: string | null;
4772
+ is_system?: boolean;
4773
+ label?: string;
4774
+ required?: boolean;
4775
+ sort_order?: number;
3697
4776
  updated_at?: string;
4777
+ visible?: boolean;
3698
4778
  };
3699
4779
  Relationships: [];
3700
4780
  };
3701
- trade_item_drafts: {
4781
+ quote_items: {
3702
4782
  Row: {
3703
- connection_id: string | null;
4783
+ category: string | null;
3704
4784
  created_at: string;
3705
- data: import("./types").Json;
4785
+ description: string;
3706
4786
  id: string;
3707
- updated_at: string;
3708
- user_id: string;
4787
+ line_total: number;
4788
+ module_id: string | null;
4789
+ name: string | null;
4790
+ quantity: number;
4791
+ quote_id: string;
4792
+ sort_order: number;
4793
+ unit_price: number;
3709
4794
  };
3710
4795
  Insert: {
3711
- connection_id?: string | null;
4796
+ category?: string | null;
3712
4797
  created_at?: string;
3713
- data?: import("./types").Json;
4798
+ description?: string;
3714
4799
  id?: string;
3715
- updated_at?: string;
3716
- user_id: string;
4800
+ line_total?: number;
4801
+ module_id?: string | null;
4802
+ name?: string | null;
4803
+ quantity?: number;
4804
+ quote_id: string;
4805
+ sort_order?: number;
4806
+ unit_price?: number;
3717
4807
  };
3718
4808
  Update: {
3719
- connection_id?: string | null;
4809
+ category?: string | null;
3720
4810
  created_at?: string;
3721
- data?: import("./types").Json;
4811
+ description?: string;
3722
4812
  id?: string;
3723
- updated_at?: string;
4813
+ line_total?: number;
4814
+ module_id?: string | null;
4815
+ name?: string | null;
4816
+ quantity?: number;
4817
+ quote_id?: string;
4818
+ sort_order?: number;
4819
+ unit_price?: number;
4820
+ };
4821
+ Relationships: [{
4822
+ foreignKeyName: "quote_items_module_id_fkey";
4823
+ columns: ["module_id"];
4824
+ isOneToOne: false;
4825
+ referencedRelation: "quote_modules";
4826
+ referencedColumns: ["id"];
4827
+ }, {
4828
+ foreignKeyName: "quote_items_quote_id_fkey";
4829
+ columns: ["quote_id"];
4830
+ isOneToOne: false;
4831
+ referencedRelation: "quotes";
4832
+ referencedColumns: ["id"];
4833
+ }];
4834
+ };
4835
+ quote_modules: {
4836
+ Row: {
4837
+ category: string | null;
4838
+ created_at: string;
4839
+ description: string | null;
4840
+ id: string;
4841
+ is_active: boolean;
4842
+ name: string;
4843
+ price: number;
4844
+ sort_order: number;
4845
+ updated_at: string;
4846
+ };
4847
+ Insert: {
4848
+ category?: string | null;
4849
+ created_at?: string;
4850
+ description?: string | null;
4851
+ id?: string;
4852
+ is_active?: boolean;
4853
+ name: string;
4854
+ price?: number;
4855
+ sort_order?: number;
4856
+ updated_at?: string;
4857
+ };
4858
+ Update: {
4859
+ category?: string | null;
4860
+ created_at?: string;
4861
+ description?: string | null;
4862
+ id?: string;
4863
+ is_active?: boolean;
4864
+ name?: string;
4865
+ price?: number;
4866
+ sort_order?: number;
4867
+ updated_at?: string;
4868
+ };
4869
+ Relationships: [];
4870
+ };
4871
+ quote_templates: {
4872
+ Row: {
4873
+ created_at: string;
4874
+ description: string | null;
4875
+ field_values: import("./types").Json;
4876
+ id: string;
4877
+ is_default: boolean;
4878
+ items: import("./types").Json;
4879
+ name: string;
4880
+ updated_at: string;
4881
+ vat_rate: number;
4882
+ };
4883
+ Insert: {
4884
+ created_at?: string;
4885
+ description?: string | null;
4886
+ field_values?: import("./types").Json;
4887
+ id?: string;
4888
+ is_default?: boolean;
4889
+ items?: import("./types").Json;
4890
+ name: string;
4891
+ updated_at?: string;
4892
+ vat_rate?: number;
4893
+ };
4894
+ Update: {
4895
+ created_at?: string;
4896
+ description?: string | null;
4897
+ field_values?: import("./types").Json;
4898
+ id?: string;
4899
+ is_default?: boolean;
4900
+ items?: import("./types").Json;
4901
+ name?: string;
4902
+ updated_at?: string;
4903
+ vat_rate?: number;
4904
+ };
4905
+ Relationships: [];
4906
+ };
4907
+ quote_terms: {
4908
+ Row: {
4909
+ content: string | null;
4910
+ created_at: string;
4911
+ file_url: string | null;
4912
+ id: string;
4913
+ is_active: boolean;
4914
+ name: string;
4915
+ published_at: string | null;
4916
+ updated_at: string;
4917
+ version: string;
4918
+ };
4919
+ Insert: {
4920
+ content?: string | null;
4921
+ created_at?: string;
4922
+ file_url?: string | null;
4923
+ id?: string;
4924
+ is_active?: boolean;
4925
+ name: string;
4926
+ published_at?: string | null;
4927
+ updated_at?: string;
4928
+ version?: string;
4929
+ };
4930
+ Update: {
4931
+ content?: string | null;
4932
+ created_at?: string;
4933
+ file_url?: string | null;
4934
+ id?: string;
4935
+ is_active?: boolean;
4936
+ name?: string;
4937
+ published_at?: string | null;
4938
+ updated_at?: string;
4939
+ version?: string;
4940
+ };
4941
+ Relationships: [];
4942
+ };
4943
+ quotes: {
4944
+ Row: {
4945
+ accepted_at: string | null;
4946
+ archived_at: string | null;
4947
+ contact_id: string | null;
4948
+ created_at: string;
4949
+ customer_id: string | null;
4950
+ discount: number;
4951
+ expires_at: string | null;
4952
+ field_values: import("./types").Json;
4953
+ id: string;
4954
+ notes: string | null;
4955
+ owner_id: string | null;
4956
+ personal_message: string | null;
4957
+ project_id: string | null;
4958
+ prospect_id: string | null;
4959
+ public_token: string;
4960
+ quote_number: string | null;
4961
+ recipient_email: string | null;
4962
+ recipient_name: string | null;
4963
+ rejected_at: string | null;
4964
+ sent_at: string | null;
4965
+ status: string;
4966
+ subtotal: number;
4967
+ template_id: string | null;
4968
+ terms_id: string | null;
4969
+ title: string;
4970
+ total: number;
4971
+ updated_at: string;
4972
+ valid_until: string | null;
4973
+ vat_amount: number;
4974
+ vat_rate: number;
4975
+ viewed_at: string | null;
4976
+ };
4977
+ Insert: {
4978
+ accepted_at?: string | null;
4979
+ archived_at?: string | null;
4980
+ contact_id?: string | null;
4981
+ created_at?: string;
4982
+ customer_id?: string | null;
4983
+ discount?: number;
4984
+ expires_at?: string | null;
4985
+ field_values?: import("./types").Json;
4986
+ id?: string;
4987
+ notes?: string | null;
4988
+ owner_id?: string | null;
4989
+ personal_message?: string | null;
4990
+ project_id?: string | null;
4991
+ prospect_id?: string | null;
4992
+ public_token?: string;
4993
+ quote_number?: string | null;
4994
+ recipient_email?: string | null;
4995
+ recipient_name?: string | null;
4996
+ rejected_at?: string | null;
4997
+ sent_at?: string | null;
4998
+ status?: string;
4999
+ subtotal?: number;
5000
+ template_id?: string | null;
5001
+ terms_id?: string | null;
5002
+ title?: string;
5003
+ total?: number;
5004
+ updated_at?: string;
5005
+ valid_until?: string | null;
5006
+ vat_amount?: number;
5007
+ vat_rate?: number;
5008
+ viewed_at?: string | null;
5009
+ };
5010
+ Update: {
5011
+ accepted_at?: string | null;
5012
+ archived_at?: string | null;
5013
+ contact_id?: string | null;
5014
+ created_at?: string;
5015
+ customer_id?: string | null;
5016
+ discount?: number;
5017
+ expires_at?: string | null;
5018
+ field_values?: import("./types").Json;
5019
+ id?: string;
5020
+ notes?: string | null;
5021
+ owner_id?: string | null;
5022
+ personal_message?: string | null;
5023
+ project_id?: string | null;
5024
+ prospect_id?: string | null;
5025
+ public_token?: string;
5026
+ quote_number?: string | null;
5027
+ recipient_email?: string | null;
5028
+ recipient_name?: string | null;
5029
+ rejected_at?: string | null;
5030
+ sent_at?: string | null;
5031
+ status?: string;
5032
+ subtotal?: number;
5033
+ template_id?: string | null;
5034
+ terms_id?: string | null;
5035
+ title?: string;
5036
+ total?: number;
5037
+ updated_at?: string;
5038
+ valid_until?: string | null;
5039
+ vat_amount?: number;
5040
+ vat_rate?: number;
5041
+ viewed_at?: string | null;
5042
+ };
5043
+ Relationships: [{
5044
+ foreignKeyName: "quotes_contact_id_fkey";
5045
+ columns: ["contact_id"];
5046
+ isOneToOne: false;
5047
+ referencedRelation: "customer_contacts";
5048
+ referencedColumns: ["id"];
5049
+ }, {
5050
+ foreignKeyName: "quotes_customer_id_fkey";
5051
+ columns: ["customer_id"];
5052
+ isOneToOne: false;
5053
+ referencedRelation: "customers";
5054
+ referencedColumns: ["id"];
5055
+ }, {
5056
+ foreignKeyName: "quotes_project_id_fkey";
5057
+ columns: ["project_id"];
5058
+ isOneToOne: false;
5059
+ referencedRelation: "projects";
5060
+ referencedColumns: ["id"];
5061
+ }, {
5062
+ foreignKeyName: "quotes_prospect_id_fkey";
5063
+ columns: ["prospect_id"];
5064
+ isOneToOne: false;
5065
+ referencedRelation: "prospects";
5066
+ referencedColumns: ["id"];
5067
+ }, {
5068
+ foreignKeyName: "quotes_template_id_fkey";
5069
+ columns: ["template_id"];
5070
+ isOneToOne: false;
5071
+ referencedRelation: "quote_templates";
5072
+ referencedColumns: ["id"];
5073
+ }, {
5074
+ foreignKeyName: "quotes_terms_id_fkey";
5075
+ columns: ["terms_id"];
5076
+ isOneToOne: false;
5077
+ referencedRelation: "quote_terms";
5078
+ referencedColumns: ["id"];
5079
+ }];
5080
+ };
5081
+ reception_notifications: {
5082
+ Row: {
5083
+ booking_id: string | null;
5084
+ created_at: string;
5085
+ id: string;
5086
+ is_read: boolean;
5087
+ message: string;
5088
+ recipient_email: string | null;
5089
+ title: string;
5090
+ type: string;
5091
+ };
5092
+ Insert: {
5093
+ booking_id?: string | null;
5094
+ created_at?: string;
5095
+ id?: string;
5096
+ is_read?: boolean;
5097
+ message: string;
5098
+ recipient_email?: string | null;
5099
+ title: string;
5100
+ type: string;
5101
+ };
5102
+ Update: {
5103
+ booking_id?: string | null;
5104
+ created_at?: string;
5105
+ id?: string;
5106
+ is_read?: boolean;
5107
+ message?: string;
5108
+ recipient_email?: string | null;
5109
+ title?: string;
5110
+ type?: string;
5111
+ };
5112
+ Relationships: [{
5113
+ foreignKeyName: "reception_notifications_booking_id_fkey";
5114
+ columns: ["booking_id"];
5115
+ isOneToOne: false;
5116
+ referencedRelation: "bookings";
5117
+ referencedColumns: ["id"];
5118
+ }];
5119
+ };
5120
+ rooms: {
5121
+ Row: {
5122
+ capacity: number;
5123
+ color_code: string | null;
5124
+ created_at: string;
5125
+ description: string | null;
5126
+ hourly_rate: number;
5127
+ id: string;
5128
+ image_url: string | null;
5129
+ is_active: boolean;
5130
+ name: string;
5131
+ };
5132
+ Insert: {
5133
+ capacity?: number;
5134
+ color_code?: string | null;
5135
+ created_at?: string;
5136
+ description?: string | null;
5137
+ hourly_rate?: number;
5138
+ id?: string;
5139
+ image_url?: string | null;
5140
+ is_active?: boolean;
5141
+ name: string;
5142
+ };
5143
+ Update: {
5144
+ capacity?: number;
5145
+ color_code?: string | null;
5146
+ created_at?: string;
5147
+ description?: string | null;
5148
+ hourly_rate?: number;
5149
+ id?: string;
5150
+ image_url?: string | null;
5151
+ is_active?: boolean;
5152
+ name?: string;
5153
+ };
5154
+ Relationships: [];
5155
+ };
5156
+ supplier_products: {
5157
+ Row: {
5158
+ article_number: string | null;
5159
+ created_at: string;
5160
+ id: string;
5161
+ name: string;
5162
+ notes: string | null;
5163
+ pot_size: string | null;
5164
+ price: number | null;
5165
+ quantity: number | null;
5166
+ supplier_id: string;
5167
+ unit: string;
5168
+ updated_at: string;
5169
+ };
5170
+ Insert: {
5171
+ article_number?: string | null;
5172
+ created_at?: string;
5173
+ id?: string;
5174
+ name: string;
5175
+ notes?: string | null;
5176
+ pot_size?: string | null;
5177
+ price?: number | null;
5178
+ quantity?: number | null;
5179
+ supplier_id: string;
5180
+ unit?: string;
5181
+ updated_at?: string;
5182
+ };
5183
+ Update: {
5184
+ article_number?: string | null;
5185
+ created_at?: string;
5186
+ id?: string;
5187
+ name?: string;
5188
+ notes?: string | null;
5189
+ pot_size?: string | null;
5190
+ price?: number | null;
5191
+ quantity?: number | null;
5192
+ supplier_id?: string;
5193
+ unit?: string;
5194
+ updated_at?: string;
5195
+ };
5196
+ Relationships: [{
5197
+ foreignKeyName: "supplier_products_supplier_id_fkey";
5198
+ columns: ["supplier_id"];
5199
+ isOneToOne: false;
5200
+ referencedRelation: "suppliers";
5201
+ referencedColumns: ["id"];
5202
+ }];
5203
+ };
5204
+ suppliers: {
5205
+ Row: {
5206
+ address: string | null;
5207
+ column_mappings: import("./types").Json | null;
5208
+ contact_person: string | null;
5209
+ created_at: string;
5210
+ default_product_type: string;
5211
+ email: string | null;
5212
+ id: string;
5213
+ imported_file_name: string | null;
5214
+ name: string;
5215
+ notes: string | null;
5216
+ phone: string | null;
5217
+ updated_at: string;
5218
+ };
5219
+ Insert: {
5220
+ address?: string | null;
5221
+ column_mappings?: import("./types").Json | null;
5222
+ contact_person?: string | null;
5223
+ created_at?: string;
5224
+ default_product_type?: string;
5225
+ email?: string | null;
5226
+ id?: string;
5227
+ imported_file_name?: string | null;
5228
+ name: string;
5229
+ notes?: string | null;
5230
+ phone?: string | null;
5231
+ updated_at?: string;
5232
+ };
5233
+ Update: {
5234
+ address?: string | null;
5235
+ column_mappings?: import("./types").Json | null;
5236
+ contact_person?: string | null;
5237
+ created_at?: string;
5238
+ default_product_type?: string;
5239
+ email?: string | null;
5240
+ id?: string;
5241
+ imported_file_name?: string | null;
5242
+ name?: string;
5243
+ notes?: string | null;
5244
+ phone?: string | null;
5245
+ updated_at?: string;
5246
+ };
5247
+ Relationships: [];
5248
+ };
5249
+ tenants: {
5250
+ Row: {
5251
+ created_at: string;
5252
+ id: string;
5253
+ name: string;
5254
+ slug: string | null;
5255
+ updated_at: string;
5256
+ };
5257
+ Insert: {
5258
+ created_at?: string;
5259
+ id?: string;
5260
+ name?: string;
5261
+ slug?: string | null;
5262
+ updated_at?: string;
5263
+ };
5264
+ Update: {
5265
+ created_at?: string;
5266
+ id?: string;
5267
+ name?: string;
5268
+ slug?: string | null;
5269
+ updated_at?: string;
5270
+ };
5271
+ Relationships: [];
5272
+ };
5273
+ trade_item_drafts: {
5274
+ Row: {
5275
+ connection_id: string | null;
5276
+ created_at: string;
5277
+ data: import("./types").Json;
5278
+ id: string;
5279
+ updated_at: string;
5280
+ user_id: string;
5281
+ };
5282
+ Insert: {
5283
+ connection_id?: string | null;
5284
+ created_at?: string;
5285
+ data?: import("./types").Json;
5286
+ id?: string;
5287
+ updated_at?: string;
5288
+ user_id: string;
5289
+ };
5290
+ Update: {
5291
+ connection_id?: string | null;
5292
+ created_at?: string;
5293
+ data?: import("./types").Json;
5294
+ id?: string;
5295
+ updated_at?: string;
5296
+ user_id?: string;
5297
+ };
5298
+ Relationships: [];
5299
+ };
5300
+ twinfield_connections: {
5301
+ Row: {
5302
+ access_token: string | null;
5303
+ client_id: string;
5304
+ client_secret: string | null;
5305
+ cluster_uri: string | null;
5306
+ company_code: string | null;
5307
+ company_name: string | null;
5308
+ connected_at: string | null;
5309
+ created_at: string;
5310
+ environment: string;
5311
+ id: string;
5312
+ is_active: boolean;
5313
+ label: string | null;
5314
+ office_code: string | null;
5315
+ redirect_uri: string;
5316
+ refresh_token: string | null;
5317
+ token_expires_at: string | null;
5318
+ updated_at: string;
5319
+ user_id: string;
5320
+ };
5321
+ Insert: {
5322
+ access_token?: string | null;
5323
+ client_id: string;
5324
+ client_secret?: string | null;
5325
+ cluster_uri?: string | null;
5326
+ company_code?: string | null;
5327
+ company_name?: string | null;
5328
+ connected_at?: string | null;
5329
+ created_at?: string;
5330
+ environment: string;
5331
+ id?: string;
5332
+ is_active?: boolean;
5333
+ label?: string | null;
5334
+ office_code?: string | null;
5335
+ redirect_uri: string;
5336
+ refresh_token?: string | null;
5337
+ token_expires_at?: string | null;
5338
+ updated_at?: string;
5339
+ user_id: string;
5340
+ };
5341
+ Update: {
5342
+ access_token?: string | null;
5343
+ client_id?: string;
5344
+ client_secret?: string | null;
5345
+ cluster_uri?: string | null;
5346
+ company_code?: string | null;
5347
+ company_name?: string | null;
5348
+ connected_at?: string | null;
5349
+ created_at?: string;
5350
+ environment?: string;
5351
+ id?: string;
5352
+ is_active?: boolean;
5353
+ label?: string | null;
5354
+ office_code?: string | null;
5355
+ redirect_uri?: string;
5356
+ refresh_token?: string | null;
5357
+ token_expires_at?: string | null;
5358
+ updated_at?: string;
5359
+ user_id?: string;
5360
+ };
5361
+ Relationships: [];
5362
+ };
5363
+ twinfield_credentials: {
5364
+ Row: {
5365
+ administration_code: string | null;
5366
+ client_id: string | null;
5367
+ client_secret: string | null;
5368
+ cluster: string | null;
5369
+ connected_at: string | null;
5370
+ created_at: string;
5371
+ environment: string | null;
5372
+ id: string;
5373
+ redirect_uri: string | null;
5374
+ refresh_token: string | null;
5375
+ updated_at: string;
5376
+ user_id: string;
5377
+ };
5378
+ Insert: {
5379
+ administration_code?: string | null;
5380
+ client_id?: string | null;
5381
+ client_secret?: string | null;
5382
+ cluster?: string | null;
5383
+ connected_at?: string | null;
5384
+ created_at?: string;
5385
+ environment?: string | null;
5386
+ id?: string;
5387
+ redirect_uri?: string | null;
5388
+ refresh_token?: string | null;
5389
+ updated_at?: string;
5390
+ user_id: string;
5391
+ };
5392
+ Update: {
5393
+ administration_code?: string | null;
5394
+ client_id?: string | null;
5395
+ client_secret?: string | null;
5396
+ cluster?: string | null;
5397
+ connected_at?: string | null;
5398
+ created_at?: string;
5399
+ environment?: string | null;
5400
+ id?: string;
5401
+ redirect_uri?: string | null;
5402
+ refresh_token?: string | null;
5403
+ updated_at?: string;
5404
+ user_id?: string;
5405
+ };
5406
+ Relationships: [];
5407
+ };
5408
+ twinfield_customers: {
5409
+ Row: {
5410
+ address: string | null;
5411
+ city: string | null;
5412
+ country: string | null;
5413
+ created_at: string;
5414
+ email: string | null;
5415
+ id: string;
5416
+ last_synced_at: string | null;
5417
+ name: string;
5418
+ phone: string | null;
5419
+ postal_code: string | null;
5420
+ status: string;
5421
+ sync_error: string | null;
5422
+ sync_status: string;
5423
+ twinfield_code: string | null;
5424
+ updated_at: string;
5425
+ user_id: string;
5426
+ };
5427
+ Insert: {
5428
+ address?: string | null;
5429
+ city?: string | null;
5430
+ country?: string | null;
5431
+ created_at?: string;
5432
+ email?: string | null;
5433
+ id?: string;
5434
+ last_synced_at?: string | null;
5435
+ name: string;
5436
+ phone?: string | null;
5437
+ postal_code?: string | null;
5438
+ status?: string;
5439
+ sync_error?: string | null;
5440
+ sync_status?: string;
5441
+ twinfield_code?: string | null;
5442
+ updated_at?: string;
5443
+ user_id: string;
5444
+ };
5445
+ Update: {
5446
+ address?: string | null;
5447
+ city?: string | null;
5448
+ country?: string | null;
5449
+ created_at?: string;
5450
+ email?: string | null;
5451
+ id?: string;
5452
+ last_synced_at?: string | null;
5453
+ name?: string;
5454
+ phone?: string | null;
5455
+ postal_code?: string | null;
5456
+ status?: string;
5457
+ sync_error?: string | null;
5458
+ sync_status?: string;
5459
+ twinfield_code?: string | null;
5460
+ updated_at?: string;
5461
+ user_id?: string;
5462
+ };
5463
+ Relationships: [];
5464
+ };
5465
+ twinfield_customers_cache: {
5466
+ Row: {
5467
+ connection_id: string;
5468
+ country: string | null;
5469
+ data: import("./types").Json;
5470
+ email: string | null;
5471
+ fetched_at: string;
5472
+ modified_at: string | null;
5473
+ name: string | null;
5474
+ twinfield_code: string;
5475
+ vat_number: string | null;
5476
+ };
5477
+ Insert: {
5478
+ connection_id: string;
5479
+ country?: string | null;
5480
+ data?: import("./types").Json;
5481
+ email?: string | null;
5482
+ fetched_at?: string;
5483
+ modified_at?: string | null;
5484
+ name?: string | null;
5485
+ twinfield_code: string;
5486
+ vat_number?: string | null;
5487
+ };
5488
+ Update: {
5489
+ connection_id?: string;
5490
+ country?: string | null;
5491
+ data?: import("./types").Json;
5492
+ email?: string | null;
5493
+ fetched_at?: string;
5494
+ modified_at?: string | null;
5495
+ name?: string | null;
5496
+ twinfield_code?: string;
5497
+ vat_number?: string | null;
5498
+ };
5499
+ Relationships: [{
5500
+ foreignKeyName: "twinfield_customers_cache_connection_id_fkey";
5501
+ columns: ["connection_id"];
5502
+ isOneToOne: false;
5503
+ referencedRelation: "twinfield_connections";
5504
+ referencedColumns: ["id"];
5505
+ }];
5506
+ };
5507
+ twinfield_invoice_lines: {
5508
+ Row: {
5509
+ article_code: string | null;
5510
+ created_at: string;
5511
+ description: string | null;
5512
+ gl_account: string | null;
5513
+ id: string;
5514
+ invoice_id: string;
5515
+ line_number: number | null;
5516
+ line_total: number;
5517
+ quantity: number;
5518
+ unit_price: number;
5519
+ user_id: string;
5520
+ vat_code: string | null;
5521
+ vat_rate: number;
5522
+ };
5523
+ Insert: {
5524
+ article_code?: string | null;
5525
+ created_at?: string;
5526
+ description?: string | null;
5527
+ gl_account?: string | null;
5528
+ id?: string;
5529
+ invoice_id: string;
5530
+ line_number?: number | null;
5531
+ line_total?: number;
5532
+ quantity?: number;
5533
+ unit_price?: number;
5534
+ user_id: string;
5535
+ vat_code?: string | null;
5536
+ vat_rate?: number;
5537
+ };
5538
+ Update: {
5539
+ article_code?: string | null;
5540
+ created_at?: string;
5541
+ description?: string | null;
5542
+ gl_account?: string | null;
5543
+ id?: string;
5544
+ invoice_id?: string;
5545
+ line_number?: number | null;
5546
+ line_total?: number;
5547
+ quantity?: number;
5548
+ unit_price?: number;
5549
+ user_id?: string;
5550
+ vat_code?: string | null;
5551
+ vat_rate?: number;
5552
+ };
5553
+ Relationships: [{
5554
+ foreignKeyName: "twinfield_invoice_lines_invoice_id_fkey";
5555
+ columns: ["invoice_id"];
5556
+ isOneToOne: false;
5557
+ referencedRelation: "twinfield_invoices";
5558
+ referencedColumns: ["id"];
5559
+ }];
5560
+ };
5561
+ twinfield_invoice_lines_cache_v2: {
5562
+ Row: {
5563
+ article_code: string | null;
5564
+ connection_id: string;
5565
+ data: import("./types").Json;
5566
+ description: string | null;
5567
+ fetched_at: string;
5568
+ invoice_number: string;
5569
+ line_number: number;
5570
+ quantity: number | null;
5571
+ unit_price: number | null;
5572
+ vat_code: string | null;
5573
+ };
5574
+ Insert: {
5575
+ article_code?: string | null;
5576
+ connection_id: string;
5577
+ data?: import("./types").Json;
5578
+ description?: string | null;
5579
+ fetched_at?: string;
5580
+ invoice_number: string;
5581
+ line_number: number;
5582
+ quantity?: number | null;
5583
+ unit_price?: number | null;
5584
+ vat_code?: string | null;
5585
+ };
5586
+ Update: {
5587
+ article_code?: string | null;
5588
+ connection_id?: string;
5589
+ data?: import("./types").Json;
5590
+ description?: string | null;
5591
+ fetched_at?: string;
5592
+ invoice_number?: string;
5593
+ line_number?: number;
5594
+ quantity?: number | null;
5595
+ unit_price?: number | null;
5596
+ vat_code?: string | null;
5597
+ };
5598
+ Relationships: [{
5599
+ foreignKeyName: "twinfield_invoice_lines_cache_v2_connection_id_fkey";
5600
+ columns: ["connection_id"];
5601
+ isOneToOne: false;
5602
+ referencedRelation: "twinfield_connections";
5603
+ referencedColumns: ["id"];
5604
+ }];
5605
+ };
5606
+ twinfield_invoice_settings: {
5607
+ Row: {
5608
+ created_at: string;
5609
+ default_gl_account: string;
5610
+ default_invoice_type: string;
5611
+ default_payment_term_days: number;
5612
+ default_vat_code: string;
5613
+ updated_at: string;
5614
+ user_id: string;
5615
+ };
5616
+ Insert: {
5617
+ created_at?: string;
5618
+ default_gl_account?: string;
5619
+ default_invoice_type?: string;
5620
+ default_payment_term_days?: number;
5621
+ default_vat_code?: string;
5622
+ updated_at?: string;
5623
+ user_id: string;
5624
+ };
5625
+ Update: {
5626
+ created_at?: string;
5627
+ default_gl_account?: string;
5628
+ default_invoice_type?: string;
5629
+ default_payment_term_days?: number;
5630
+ default_vat_code?: string;
5631
+ updated_at?: string;
5632
+ user_id?: string;
5633
+ };
5634
+ Relationships: [];
5635
+ };
5636
+ twinfield_invoice_sync_logs: {
5637
+ Row: {
5638
+ created_at: string;
5639
+ details: import("./types").Json | null;
5640
+ duration_ms: number | null;
5641
+ id: string;
5642
+ invoice_lines_fetched: number | null;
5643
+ invoices_fetched: number | null;
5644
+ message: string | null;
5645
+ status: string;
5646
+ step: string | null;
5647
+ user_id: string;
5648
+ };
5649
+ Insert: {
5650
+ created_at?: string;
5651
+ details?: import("./types").Json | null;
5652
+ duration_ms?: number | null;
5653
+ id?: string;
5654
+ invoice_lines_fetched?: number | null;
5655
+ invoices_fetched?: number | null;
5656
+ message?: string | null;
5657
+ status: string;
5658
+ step?: string | null;
5659
+ user_id: string;
5660
+ };
5661
+ Update: {
5662
+ created_at?: string;
5663
+ details?: import("./types").Json | null;
5664
+ duration_ms?: number | null;
5665
+ id?: string;
5666
+ invoice_lines_fetched?: number | null;
5667
+ invoices_fetched?: number | null;
5668
+ message?: string | null;
5669
+ status?: string;
5670
+ step?: string | null;
5671
+ user_id?: string;
5672
+ };
5673
+ Relationships: [];
5674
+ };
5675
+ twinfield_invoices: {
5676
+ Row: {
5677
+ administration_code: string | null;
5678
+ created_at: string;
5679
+ currency: string | null;
5680
+ customer_code: string | null;
5681
+ customer_email: string | null;
5682
+ customer_name: string | null;
5683
+ customer_phone: string | null;
5684
+ due_date: string | null;
5685
+ id: string;
5686
+ invoice_date: string | null;
5687
+ last_synced_at: string;
5688
+ local_invoice_number: string | null;
5689
+ outstanding_amount: number;
5690
+ paid_amount: number;
5691
+ payment_date: string | null;
5692
+ raw_payload: import("./types").Json | null;
5693
+ status: string;
5694
+ subtotal: number;
5695
+ sync_error: string | null;
5696
+ sync_status: string;
5697
+ total: number;
5698
+ twinfield_invoice_number: string;
5699
+ twinfield_transaction_number: string | null;
5700
+ updated_at: string;
5701
+ user_id: string;
5702
+ vat_amount: number;
5703
+ };
5704
+ Insert: {
5705
+ administration_code?: string | null;
5706
+ created_at?: string;
5707
+ currency?: string | null;
5708
+ customer_code?: string | null;
5709
+ customer_email?: string | null;
5710
+ customer_name?: string | null;
5711
+ customer_phone?: string | null;
5712
+ due_date?: string | null;
5713
+ id?: string;
5714
+ invoice_date?: string | null;
5715
+ last_synced_at?: string;
5716
+ local_invoice_number?: string | null;
5717
+ outstanding_amount?: number;
5718
+ paid_amount?: number;
5719
+ payment_date?: string | null;
5720
+ raw_payload?: import("./types").Json | null;
5721
+ status?: string;
5722
+ subtotal?: number;
5723
+ sync_error?: string | null;
5724
+ sync_status?: string;
5725
+ total?: number;
5726
+ twinfield_invoice_number: string;
5727
+ twinfield_transaction_number?: string | null;
5728
+ updated_at?: string;
5729
+ user_id: string;
5730
+ vat_amount?: number;
5731
+ };
5732
+ Update: {
5733
+ administration_code?: string | null;
5734
+ created_at?: string;
5735
+ currency?: string | null;
5736
+ customer_code?: string | null;
5737
+ customer_email?: string | null;
5738
+ customer_name?: string | null;
5739
+ customer_phone?: string | null;
5740
+ due_date?: string | null;
5741
+ id?: string;
5742
+ invoice_date?: string | null;
5743
+ last_synced_at?: string;
5744
+ local_invoice_number?: string | null;
5745
+ outstanding_amount?: number;
5746
+ paid_amount?: number;
5747
+ payment_date?: string | null;
5748
+ raw_payload?: import("./types").Json | null;
5749
+ status?: string;
5750
+ subtotal?: number;
5751
+ sync_error?: string | null;
5752
+ sync_status?: string;
5753
+ total?: number;
5754
+ twinfield_invoice_number?: string;
5755
+ twinfield_transaction_number?: string | null;
5756
+ updated_at?: string;
5757
+ user_id?: string;
5758
+ vat_amount?: number;
5759
+ };
5760
+ Relationships: [];
5761
+ };
5762
+ twinfield_invoices_cache_v2: {
5763
+ Row: {
5764
+ connection_id: string;
5765
+ currency: string | null;
5766
+ customer_code: string | null;
5767
+ data: import("./types").Json;
5768
+ due_date: string | null;
5769
+ fetched_at: string;
5770
+ invoice_date: string | null;
5771
+ invoice_number: string;
5772
+ modified_at: string | null;
5773
+ status: string | null;
5774
+ total_excl: number | null;
5775
+ total_incl: number | null;
5776
+ };
5777
+ Insert: {
5778
+ connection_id: string;
5779
+ currency?: string | null;
5780
+ customer_code?: string | null;
5781
+ data?: import("./types").Json;
5782
+ due_date?: string | null;
5783
+ fetched_at?: string;
5784
+ invoice_date?: string | null;
5785
+ invoice_number: string;
5786
+ modified_at?: string | null;
5787
+ status?: string | null;
5788
+ total_excl?: number | null;
5789
+ total_incl?: number | null;
5790
+ };
5791
+ Update: {
5792
+ connection_id?: string;
5793
+ currency?: string | null;
5794
+ customer_code?: string | null;
5795
+ data?: import("./types").Json;
5796
+ due_date?: string | null;
5797
+ fetched_at?: string;
5798
+ invoice_date?: string | null;
5799
+ invoice_number?: string;
5800
+ modified_at?: string | null;
5801
+ status?: string | null;
5802
+ total_excl?: number | null;
5803
+ total_incl?: number | null;
5804
+ };
5805
+ Relationships: [{
5806
+ foreignKeyName: "twinfield_invoices_cache_v2_connection_id_fkey";
5807
+ columns: ["connection_id"];
5808
+ isOneToOne: false;
5809
+ referencedRelation: "twinfield_connections";
5810
+ referencedColumns: ["id"];
5811
+ }];
5812
+ };
5813
+ twinfield_oauth_state: {
5814
+ Row: {
5815
+ created_at: string;
5816
+ environment: string;
5817
+ nonce: string | null;
5818
+ state: string;
5819
+ user_id: string;
5820
+ };
5821
+ Insert: {
5822
+ created_at?: string;
5823
+ environment: string;
5824
+ nonce?: string | null;
5825
+ state: string;
5826
+ user_id: string;
5827
+ };
5828
+ Update: {
5829
+ created_at?: string;
5830
+ environment?: string;
5831
+ nonce?: string | null;
5832
+ state?: string;
5833
+ user_id?: string;
5834
+ };
5835
+ Relationships: [];
5836
+ };
5837
+ twinfield_settings: {
5838
+ Row: {
5839
+ active_environment: string;
5840
+ id: number;
5841
+ updated_at: string;
5842
+ };
5843
+ Insert: {
5844
+ active_environment?: string;
5845
+ id?: number;
5846
+ updated_at?: string;
5847
+ };
5848
+ Update: {
5849
+ active_environment?: string;
5850
+ id?: number;
5851
+ updated_at?: string;
5852
+ };
5853
+ Relationships: [];
5854
+ };
5855
+ twinfield_sync_state: {
5856
+ Row: {
5857
+ connection_id: string;
5858
+ entity_type: string;
5859
+ last_error: string | null;
5860
+ last_modified_since: string;
5861
+ last_synced_at: string | null;
5862
+ updated_at: string;
5863
+ };
5864
+ Insert: {
5865
+ connection_id: string;
5866
+ entity_type: string;
5867
+ last_error?: string | null;
5868
+ last_modified_since?: string;
5869
+ last_synced_at?: string | null;
5870
+ updated_at?: string;
5871
+ };
5872
+ Update: {
5873
+ connection_id?: string;
5874
+ entity_type?: string;
5875
+ last_error?: string | null;
5876
+ last_modified_since?: string;
5877
+ last_synced_at?: string | null;
5878
+ updated_at?: string;
5879
+ };
5880
+ Relationships: [{
5881
+ foreignKeyName: "twinfield_sync_state_connection_id_fkey";
5882
+ columns: ["connection_id"];
5883
+ isOneToOne: false;
5884
+ referencedRelation: "twinfield_connections";
5885
+ referencedColumns: ["id"];
5886
+ }];
5887
+ };
5888
+ twinfield_token_refresh_log: {
5889
+ Row: {
5890
+ attempted_at: string;
5891
+ connection_id: string;
5892
+ error: string | null;
5893
+ expires_at: string | null;
5894
+ id: string;
5895
+ ok: boolean;
5896
+ };
5897
+ Insert: {
5898
+ attempted_at?: string;
5899
+ connection_id: string;
5900
+ error?: string | null;
5901
+ expires_at?: string | null;
5902
+ id?: string;
5903
+ ok: boolean;
5904
+ };
5905
+ Update: {
5906
+ attempted_at?: string;
5907
+ connection_id?: string;
5908
+ error?: string | null;
5909
+ expires_at?: string | null;
5910
+ id?: string;
5911
+ ok?: boolean;
5912
+ };
5913
+ Relationships: [{
5914
+ foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
5915
+ columns: ["connection_id"];
5916
+ isOneToOne: false;
5917
+ referencedRelation: "twinfield_connections";
5918
+ referencedColumns: ["id"];
5919
+ }];
5920
+ };
5921
+ user_roles: {
5922
+ Row: {
5923
+ created_at: string;
5924
+ id: string;
5925
+ role: Database["public"]["Enums"]["app_role"];
5926
+ user_id: string;
5927
+ };
5928
+ Insert: {
5929
+ created_at?: string;
5930
+ id?: string;
5931
+ role: Database["public"]["Enums"]["app_role"];
5932
+ user_id: string;
5933
+ };
5934
+ Update: {
5935
+ created_at?: string;
5936
+ id?: string;
5937
+ role?: Database["public"]["Enums"]["app_role"];
3724
5938
  user_id?: string;
3725
5939
  };
5940
+ Relationships: [{
5941
+ foreignKeyName: "user_roles_user_id_fkey";
5942
+ columns: ["user_id"];
5943
+ isOneToOne: false;
5944
+ referencedRelation: "profiles";
5945
+ referencedColumns: ["id"];
5946
+ }];
5947
+ };
5948
+ work_order_monteurs: {
5949
+ Row: {
5950
+ created_at: string;
5951
+ id: string;
5952
+ monteur_id: string;
5953
+ work_order_id: string;
5954
+ };
5955
+ Insert: {
5956
+ created_at?: string;
5957
+ id?: string;
5958
+ monteur_id: string;
5959
+ work_order_id: string;
5960
+ };
5961
+ Update: {
5962
+ created_at?: string;
5963
+ id?: string;
5964
+ monteur_id?: string;
5965
+ work_order_id?: string;
5966
+ };
5967
+ Relationships: [{
5968
+ foreignKeyName: "work_order_monteurs_monteur_id_fkey";
5969
+ columns: ["monteur_id"];
5970
+ isOneToOne: false;
5971
+ referencedRelation: "monteurs";
5972
+ referencedColumns: ["id"];
5973
+ }, {
5974
+ foreignKeyName: "work_order_monteurs_work_order_id_fkey";
5975
+ columns: ["work_order_id"];
5976
+ isOneToOne: false;
5977
+ referencedRelation: "work_orders";
5978
+ referencedColumns: ["id"];
5979
+ }];
5980
+ };
5981
+ work_orders: {
5982
+ Row: {
5983
+ assigned_to: string | null;
5984
+ city: string | null;
5985
+ contact_person: string | null;
5986
+ created_at: string;
5987
+ custom_fields: import("./types").Json;
5988
+ customer_name: string;
5989
+ description: string;
5990
+ email: string | null;
5991
+ email_source: string | null;
5992
+ estimated_duration_hours: number | null;
5993
+ external_reference: string | null;
5994
+ follow_up_needed: boolean;
5995
+ id: string;
5996
+ mandate: string;
5997
+ mandate_budget: number;
5998
+ mandate_used: number;
5999
+ order_number: string;
6000
+ parent_work_order_id: string | null;
6001
+ pdf_url: string | null;
6002
+ phone: string | null;
6003
+ postal_code: string;
6004
+ priority: string;
6005
+ project_number: string | null;
6006
+ report_validated: boolean;
6007
+ room_number: string;
6008
+ scheduled_date: string | null;
6009
+ scheduled_end_time: string | null;
6010
+ scheduled_start_time: string | null;
6011
+ status: string;
6012
+ tenant_id: string;
6013
+ total_hours_worked: number | null;
6014
+ total_price: number | null;
6015
+ travel_time_minutes: number | null;
6016
+ updated_at: string;
6017
+ work_address: string;
6018
+ work_report: string | null;
6019
+ };
6020
+ Insert: {
6021
+ assigned_to?: string | null;
6022
+ city?: string | null;
6023
+ contact_person?: string | null;
6024
+ created_at?: string;
6025
+ custom_fields?: import("./types").Json;
6026
+ customer_name?: string;
6027
+ description?: string;
6028
+ email?: string | null;
6029
+ email_source?: string | null;
6030
+ estimated_duration_hours?: number | null;
6031
+ external_reference?: string | null;
6032
+ follow_up_needed?: boolean;
6033
+ id?: string;
6034
+ mandate?: string;
6035
+ mandate_budget?: number;
6036
+ mandate_used?: number;
6037
+ order_number?: string;
6038
+ parent_work_order_id?: string | null;
6039
+ pdf_url?: string | null;
6040
+ phone?: string | null;
6041
+ postal_code?: string;
6042
+ priority?: string;
6043
+ project_number?: string | null;
6044
+ report_validated?: boolean;
6045
+ room_number?: string;
6046
+ scheduled_date?: string | null;
6047
+ scheduled_end_time?: string | null;
6048
+ scheduled_start_time?: string | null;
6049
+ status?: string;
6050
+ tenant_id: string;
6051
+ total_hours_worked?: number | null;
6052
+ total_price?: number | null;
6053
+ travel_time_minutes?: number | null;
6054
+ updated_at?: string;
6055
+ work_address?: string;
6056
+ work_report?: string | null;
6057
+ };
6058
+ Update: {
6059
+ assigned_to?: string | null;
6060
+ city?: string | null;
6061
+ contact_person?: string | null;
6062
+ created_at?: string;
6063
+ custom_fields?: import("./types").Json;
6064
+ customer_name?: string;
6065
+ description?: string;
6066
+ email?: string | null;
6067
+ email_source?: string | null;
6068
+ estimated_duration_hours?: number | null;
6069
+ external_reference?: string | null;
6070
+ follow_up_needed?: boolean;
6071
+ id?: string;
6072
+ mandate?: string;
6073
+ mandate_budget?: number;
6074
+ mandate_used?: number;
6075
+ order_number?: string;
6076
+ parent_work_order_id?: string | null;
6077
+ pdf_url?: string | null;
6078
+ phone?: string | null;
6079
+ postal_code?: string;
6080
+ priority?: string;
6081
+ project_number?: string | null;
6082
+ report_validated?: boolean;
6083
+ room_number?: string;
6084
+ scheduled_date?: string | null;
6085
+ scheduled_end_time?: string | null;
6086
+ scheduled_start_time?: string | null;
6087
+ status?: string;
6088
+ tenant_id?: string;
6089
+ total_hours_worked?: number | null;
6090
+ total_price?: number | null;
6091
+ travel_time_minutes?: number | null;
6092
+ updated_at?: string;
6093
+ work_address?: string;
6094
+ work_report?: string | null;
6095
+ };
6096
+ Relationships: [{
6097
+ foreignKeyName: "work_orders_parent_work_order_id_fkey";
6098
+ columns: ["parent_work_order_id"];
6099
+ isOneToOne: false;
6100
+ referencedRelation: "work_orders";
6101
+ referencedColumns: ["id"];
6102
+ }, {
6103
+ foreignKeyName: "work_orders_tenant_id_fkey";
6104
+ columns: ["tenant_id"];
6105
+ isOneToOne: false;
6106
+ referencedRelation: "tenants";
6107
+ referencedColumns: ["id"];
6108
+ }];
6109
+ };
6110
+ };
6111
+ Views: {
6112
+ email_auth_connections_safe: {
6113
+ Row: {
6114
+ account_email: string | null;
6115
+ created_at: string | null;
6116
+ created_by: string | null;
6117
+ display_name: string | null;
6118
+ has_access_token: boolean | null;
6119
+ has_client_id: boolean | null;
6120
+ has_client_secret: boolean | null;
6121
+ has_imap_password: boolean | null;
6122
+ has_refresh_token: boolean | null;
6123
+ has_smtp_password: boolean | null;
6124
+ id: string | null;
6125
+ imap_host: string | null;
6126
+ imap_port: number | null;
6127
+ imap_secure: boolean | null;
6128
+ imap_username: string | null;
6129
+ is_active: boolean | null;
6130
+ last_error: string | null;
6131
+ last_verified_at: string | null;
6132
+ oauth_mode: string | null;
6133
+ provider: string | null;
6134
+ purpose_assignments: import("./types").Json | null;
6135
+ scopes: string[] | null;
6136
+ smtp_host: string | null;
6137
+ smtp_port: number | null;
6138
+ smtp_secure: boolean | null;
6139
+ smtp_username: string | null;
6140
+ status: string | null;
6141
+ token_expires_at: string | null;
6142
+ updated_at: string | null;
6143
+ };
6144
+ Insert: {
6145
+ account_email?: string | null;
6146
+ created_at?: string | null;
6147
+ created_by?: string | null;
6148
+ display_name?: string | null;
6149
+ has_access_token?: never;
6150
+ has_client_id?: never;
6151
+ has_client_secret?: never;
6152
+ has_imap_password?: never;
6153
+ has_refresh_token?: never;
6154
+ has_smtp_password?: never;
6155
+ id?: string | null;
6156
+ imap_host?: string | null;
6157
+ imap_port?: number | null;
6158
+ imap_secure?: boolean | null;
6159
+ imap_username?: string | null;
6160
+ is_active?: boolean | null;
6161
+ last_error?: string | null;
6162
+ last_verified_at?: string | null;
6163
+ oauth_mode?: string | null;
6164
+ provider?: string | null;
6165
+ purpose_assignments?: import("./types").Json | null;
6166
+ scopes?: string[] | null;
6167
+ smtp_host?: string | null;
6168
+ smtp_port?: number | null;
6169
+ smtp_secure?: boolean | null;
6170
+ smtp_username?: string | null;
6171
+ status?: string | null;
6172
+ token_expires_at?: string | null;
6173
+ updated_at?: string | null;
6174
+ };
6175
+ Update: {
6176
+ account_email?: string | null;
6177
+ created_at?: string | null;
6178
+ created_by?: string | null;
6179
+ display_name?: string | null;
6180
+ has_access_token?: never;
6181
+ has_client_id?: never;
6182
+ has_client_secret?: never;
6183
+ has_imap_password?: never;
6184
+ has_refresh_token?: never;
6185
+ has_smtp_password?: never;
6186
+ id?: string | null;
6187
+ imap_host?: string | null;
6188
+ imap_port?: number | null;
6189
+ imap_secure?: boolean | null;
6190
+ imap_username?: string | null;
6191
+ is_active?: boolean | null;
6192
+ last_error?: string | null;
6193
+ last_verified_at?: string | null;
6194
+ oauth_mode?: string | null;
6195
+ provider?: string | null;
6196
+ purpose_assignments?: import("./types").Json | null;
6197
+ scopes?: string[] | null;
6198
+ smtp_host?: string | null;
6199
+ smtp_port?: number | null;
6200
+ smtp_secure?: boolean | null;
6201
+ smtp_username?: string | null;
6202
+ status?: string | null;
6203
+ token_expires_at?: string | null;
6204
+ updated_at?: string | null;
6205
+ };
6206
+ Relationships: [];
6207
+ };
6208
+ external_customers_grouped: {
6209
+ Row: {
6210
+ city: string | null;
6211
+ commercial_name: string | null;
6212
+ contact_person: string | null;
6213
+ country: string | null;
6214
+ display_name: string | null;
6215
+ email: string | null;
6216
+ fetched_at: string | null;
6217
+ gln: string | null;
6218
+ group_key: string | null;
6219
+ is_active: boolean | null;
6220
+ is_merged: boolean | null;
6221
+ logo_url: string | null;
6222
+ match_key: string | null;
6223
+ phone: string | null;
6224
+ providers: string[] | null;
6225
+ source_count: number | null;
6226
+ sources: import("./types").Json | null;
6227
+ vat_number: string | null;
6228
+ website: string | null;
6229
+ };
3726
6230
  Relationships: [];
3727
6231
  };
3728
- user_roles: {
6232
+ external_customers_unified: {
3729
6233
  Row: {
3730
- created_at: string;
3731
- id: string;
3732
- role: Database["public"]["Enums"]["app_role"];
3733
- user_id: string;
6234
+ city: string | null;
6235
+ commercial_name: string | null;
6236
+ company_name: string | null;
6237
+ connection_id: string | null;
6238
+ contact_person: string | null;
6239
+ country: string | null;
6240
+ email: string | null;
6241
+ external_id: string | null;
6242
+ fetched_at: string | null;
6243
+ gln: string | null;
6244
+ house_number: string | null;
6245
+ is_active: boolean | null;
6246
+ is_deleted: boolean | null;
6247
+ logo_url: string | null;
6248
+ phone: string | null;
6249
+ postal_code: string | null;
6250
+ provider: string | null;
6251
+ raw: import("./types").Json | null;
6252
+ status: string | null;
6253
+ street: string | null;
6254
+ vat_number: string | null;
6255
+ website: string | null;
3734
6256
  };
3735
- Insert: {
3736
- created_at?: string;
3737
- id?: string;
3738
- role: Database["public"]["Enums"]["app_role"];
3739
- user_id: string;
6257
+ Relationships: [];
6258
+ };
6259
+ v_external_customers_floriday: {
6260
+ Row: {
6261
+ city: string | null;
6262
+ commercial_name: string | null;
6263
+ company_name: string | null;
6264
+ connection_id: string | null;
6265
+ contact_person: string | null;
6266
+ country: string | null;
6267
+ email: string | null;
6268
+ external_id: string | null;
6269
+ fetched_at: string | null;
6270
+ gln: string | null;
6271
+ house_number: string | null;
6272
+ is_active: boolean | null;
6273
+ is_deleted: boolean | null;
6274
+ logo_url: string | null;
6275
+ phone: string | null;
6276
+ postal_code: string | null;
6277
+ provider: string | null;
6278
+ raw: import("./types").Json | null;
6279
+ status: string | null;
6280
+ street: string | null;
6281
+ vat_number: string | null;
6282
+ website: string | null;
3740
6283
  };
3741
- Update: {
3742
- created_at?: string;
3743
- id?: string;
3744
- role?: Database["public"]["Enums"]["app_role"];
3745
- user_id?: string;
6284
+ Relationships: [{
6285
+ foreignKeyName: "floriday_customers_cache_connection_id_fkey";
6286
+ columns: ["connection_id"];
6287
+ isOneToOne: false;
6288
+ referencedRelation: "floriday_connections";
6289
+ referencedColumns: ["id"];
6290
+ }];
6291
+ };
6292
+ v_external_customers_twinfield: {
6293
+ Row: {
6294
+ city: string | null;
6295
+ commercial_name: string | null;
6296
+ company_name: string | null;
6297
+ connection_id: string | null;
6298
+ contact_person: string | null;
6299
+ country: string | null;
6300
+ email: string | null;
6301
+ external_id: string | null;
6302
+ fetched_at: string | null;
6303
+ gln: string | null;
6304
+ house_number: string | null;
6305
+ is_active: boolean | null;
6306
+ is_deleted: boolean | null;
6307
+ logo_url: string | null;
6308
+ phone: string | null;
6309
+ postal_code: string | null;
6310
+ provider: string | null;
6311
+ raw: import("./types").Json | null;
6312
+ status: string | null;
6313
+ street: string | null;
6314
+ vat_number: string | null;
6315
+ website: string | null;
3746
6316
  };
3747
6317
  Relationships: [{
3748
- foreignKeyName: "user_roles_user_id_fkey";
3749
- columns: ["user_id"];
6318
+ foreignKeyName: "twinfield_customers_cache_connection_id_fkey";
6319
+ columns: ["connection_id"];
3750
6320
  isOneToOne: false;
3751
- referencedRelation: "profiles";
6321
+ referencedRelation: "twinfield_connections";
3752
6322
  referencedColumns: ["id"];
3753
6323
  }];
3754
6324
  };
3755
6325
  };
3756
- Views: { [_ in never]: never; };
3757
6326
  Functions: {
3758
6327
  dashboard_list_public_schema: {
3759
6328
  Args: never;
@@ -3763,6 +6332,45 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3763
6332
  table_name: string;
3764
6333
  }[];
3765
6334
  };
6335
+ email_auth_decrypt: {
6336
+ Args: {
6337
+ cipher: string;
6338
+ };
6339
+ Returns: string;
6340
+ };
6341
+ email_auth_encrypt: {
6342
+ Args: {
6343
+ plain: string;
6344
+ };
6345
+ Returns: string;
6346
+ };
6347
+ email_auth_fetch_message: {
6348
+ Args: {
6349
+ _connection_id: string;
6350
+ _external_id: string;
6351
+ };
6352
+ Returns: import("./types").Json;
6353
+ };
6354
+ email_auth_for_purpose: {
6355
+ Args: {
6356
+ _direction: string;
6357
+ _purpose: string;
6358
+ };
6359
+ Returns: {
6360
+ account_email: string;
6361
+ display_name: string;
6362
+ id: string;
6363
+ last_error: string;
6364
+ last_verified_at: string;
6365
+ needs_reauth: boolean;
6366
+ provider: string;
6367
+ status: string;
6368
+ }[];
6369
+ };
6370
+ ensure_user_tenant: {
6371
+ Args: never;
6372
+ Returns: string;
6373
+ };
3766
6374
  exact_decrypt: {
3767
6375
  Args: {
3768
6376
  cipher: string;
@@ -3775,12 +6383,97 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3775
6383
  };
3776
6384
  Returns: string;
3777
6385
  };
6386
+ exact_lock_environment: {
6387
+ Args: {
6388
+ _environment: string;
6389
+ };
6390
+ Returns: undefined;
6391
+ };
6392
+ exact_release_refresh_lock: {
6393
+ Args: {
6394
+ _environment: Database["public"]["Enums"]["exact_env"];
6395
+ _locked_by: string;
6396
+ };
6397
+ Returns: undefined;
6398
+ };
6399
+ exact_try_acquire_refresh_lock: {
6400
+ Args: {
6401
+ _environment: Database["public"]["Enums"]["exact_env"];
6402
+ _lease_seconds?: number;
6403
+ _locked_by?: string;
6404
+ };
6405
+ Returns: boolean;
6406
+ };
6407
+ get_active_floriday_connection_public: {
6408
+ Args: never;
6409
+ Returns: {
6410
+ active_environment: string;
6411
+ environment: string;
6412
+ gln_code: string;
6413
+ id: string;
6414
+ label: string;
6415
+ organization_name: string;
6416
+ preferred_warehouse_id: string;
6417
+ preferred_warehouse_name: string;
6418
+ }[];
6419
+ };
6420
+ get_active_twinfield_public: {
6421
+ Args: never;
6422
+ Returns: {
6423
+ active_environment: string;
6424
+ company_code: string;
6425
+ company_name: string;
6426
+ connection_id: string;
6427
+ environment: string;
6428
+ office_code: string;
6429
+ }[];
6430
+ };
6431
+ get_floriday_cron_jobs: {
6432
+ Args: never;
6433
+ Returns: {
6434
+ active: boolean;
6435
+ jobname: string;
6436
+ schedule: string;
6437
+ url: string;
6438
+ }[];
6439
+ };
3778
6440
  get_offer_by_link_code: {
3779
6441
  Args: {
3780
6442
  p_code: string;
3781
6443
  };
3782
6444
  Returns: import("./types").Json;
3783
6445
  };
6446
+ get_room_busy_windows: {
6447
+ Args: {
6448
+ p_from: string;
6449
+ p_to: string;
6450
+ };
6451
+ Returns: {
6452
+ end_time: string;
6453
+ room_id: string;
6454
+ start_time: string;
6455
+ status: string;
6456
+ }[];
6457
+ };
6458
+ get_twinfield_cron_jobs: {
6459
+ Args: never;
6460
+ Returns: {
6461
+ active: boolean;
6462
+ jobname: string;
6463
+ schedule: string;
6464
+ url: string;
6465
+ }[];
6466
+ };
6467
+ get_user_tenant_id: {
6468
+ Args: never;
6469
+ Returns: string;
6470
+ };
6471
+ get_work_order_tenant_id: {
6472
+ Args: {
6473
+ wo_id: string;
6474
+ };
6475
+ Returns: string;
6476
+ };
3784
6477
  has_role: {
3785
6478
  Args: {
3786
6479
  _role: Database["public"]["Enums"]["app_role"];
@@ -3788,6 +6481,48 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3788
6481
  };
3789
6482
  Returns: boolean;
3790
6483
  };
6484
+ is_authenticated: {
6485
+ Args: never;
6486
+ Returns: boolean;
6487
+ };
6488
+ is_developer: {
6489
+ Args: never;
6490
+ Returns: boolean;
6491
+ };
6492
+ next_work_order_number: {
6493
+ Args: {
6494
+ p_parent_work_order_id?: string;
6495
+ p_tenant_id: string;
6496
+ };
6497
+ Returns: string;
6498
+ };
6499
+ normalize_vat: {
6500
+ Args: {
6501
+ v: string;
6502
+ };
6503
+ Returns: string;
6504
+ };
6505
+ schedule_floriday_carriers_sync: {
6506
+ Args: {
6507
+ p_apikey: string;
6508
+ p_url: string;
6509
+ };
6510
+ Returns: number;
6511
+ };
6512
+ schedule_floriday_connections_sync: {
6513
+ Args: {
6514
+ p_apikey: string;
6515
+ p_url: string;
6516
+ };
6517
+ Returns: number;
6518
+ };
6519
+ schedule_floriday_customer_organizations_sync: {
6520
+ Args: {
6521
+ p_apikey: string;
6522
+ p_url: string;
6523
+ };
6524
+ Returns: number;
6525
+ };
3791
6526
  schedule_floriday_network_sync: {
3792
6527
  Args: {
3793
6528
  p_apikey: string;
@@ -3795,6 +6530,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3795
6530
  };
3796
6531
  Returns: number;
3797
6532
  };
6533
+ schedule_floriday_salesorders_sync: {
6534
+ Args: {
6535
+ p_apikey: string;
6536
+ p_url: string;
6537
+ };
6538
+ Returns: number;
6539
+ };
3798
6540
  schedule_floriday_token_refresh: {
3799
6541
  Args: {
3800
6542
  p_apikey: string;
@@ -3802,6 +6544,55 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3802
6544
  };
3803
6545
  Returns: number;
3804
6546
  };
6547
+ schedule_floriday_trade_items_sync: {
6548
+ Args: {
6549
+ p_apikey: string;
6550
+ p_url: string;
6551
+ };
6552
+ Returns: number;
6553
+ };
6554
+ schedule_twinfield_customers_sync: {
6555
+ Args: {
6556
+ p_apikey: string;
6557
+ p_url: string;
6558
+ };
6559
+ Returns: number;
6560
+ } | {
6561
+ Args: {
6562
+ p_apikey: string;
6563
+ p_cron_secret?: string;
6564
+ p_url: string;
6565
+ };
6566
+ Returns: number;
6567
+ };
6568
+ schedule_twinfield_invoices_sync: {
6569
+ Args: {
6570
+ p_apikey: string;
6571
+ p_url: string;
6572
+ };
6573
+ Returns: number;
6574
+ } | {
6575
+ Args: {
6576
+ p_apikey: string;
6577
+ p_cron_secret?: string;
6578
+ p_url: string;
6579
+ };
6580
+ Returns: number;
6581
+ };
6582
+ schedule_twinfield_token_refresh: {
6583
+ Args: {
6584
+ p_apikey: string;
6585
+ p_url: string;
6586
+ };
6587
+ Returns: number;
6588
+ } | {
6589
+ Args: {
6590
+ p_apikey: string;
6591
+ p_cron_secret?: string;
6592
+ p_url: string;
6593
+ };
6594
+ Returns: number;
6595
+ };
3805
6596
  show_limit: {
3806
6597
  Args: never;
3807
6598
  Returns: number;
@@ -3812,10 +6603,23 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3812
6603
  };
3813
6604
  Returns: string[];
3814
6605
  };
6606
+ twinfield_decrypt: {
6607
+ Args: {
6608
+ cipher: string;
6609
+ };
6610
+ Returns: string;
6611
+ };
6612
+ twinfield_encrypt: {
6613
+ Args: {
6614
+ plain: string;
6615
+ };
6616
+ Returns: string;
6617
+ };
3815
6618
  };
3816
6619
  Enums: {
3817
- app_role: "admin" | "manager" | "warehouse" | "sales" | "developer";
6620
+ app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
3818
6621
  exact_env: "staging" | "live";
6622
+ quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
3819
6623
  };
3820
6624
  CompositeTypes: { [_ in never]: never; };
3821
6625
  }, {