@flowselections/floriday-klanten-module 1.0.7 → 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.
@@ -188,6 +188,156 @@ 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
+ notes: string | null;
274
+ number_of_people: number;
275
+ room_id: string;
276
+ start_time: string;
277
+ status: string;
278
+ total_excl_vat: number | null;
279
+ total_incl_vat: number | null;
280
+ user_id: string | null;
281
+ vat_amount: number | null;
282
+ };
283
+ Insert: {
284
+ company_name?: string | null;
285
+ conflict_checked_at?: string | null;
286
+ conflict_reason?: string | null;
287
+ created_at?: string;
288
+ created_by_role?: string | null;
289
+ customer_email?: string | null;
290
+ customer_name?: string | null;
291
+ end_time: string;
292
+ exact_debiteur_id?: string | null;
293
+ has_conflict?: boolean;
294
+ id?: string;
295
+ invoice_run_id?: string | null;
296
+ invoice_status?: string | null;
297
+ invoiced_at?: string | null;
298
+ notes?: string | null;
299
+ number_of_people?: number;
300
+ room_id: string;
301
+ start_time: string;
302
+ status?: string;
303
+ total_excl_vat?: number | null;
304
+ total_incl_vat?: number | null;
305
+ user_id?: string | null;
306
+ vat_amount?: number | null;
307
+ };
308
+ Update: {
309
+ company_name?: string | null;
310
+ conflict_checked_at?: string | null;
311
+ conflict_reason?: string | null;
312
+ created_at?: string;
313
+ created_by_role?: string | null;
314
+ customer_email?: string | null;
315
+ customer_name?: string | null;
316
+ end_time?: string;
317
+ exact_debiteur_id?: string | null;
318
+ has_conflict?: boolean;
319
+ id?: string;
320
+ invoice_run_id?: string | null;
321
+ invoice_status?: string | null;
322
+ invoiced_at?: string | null;
323
+ notes?: string | null;
324
+ number_of_people?: number;
325
+ room_id?: string;
326
+ start_time?: string;
327
+ status?: string;
328
+ total_excl_vat?: number | null;
329
+ total_incl_vat?: number | null;
330
+ user_id?: string | null;
331
+ vat_amount?: number | null;
332
+ };
333
+ Relationships: [{
334
+ foreignKeyName: "bookings_room_id_fkey";
335
+ columns: ["room_id"];
336
+ isOneToOne: false;
337
+ referencedRelation: "rooms";
338
+ referencedColumns: ["id"];
339
+ }];
340
+ };
191
341
  bugs: {
192
342
  Row: {
193
343
  attachment_url: string | null;
@@ -1019,17 +1169,26 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1019
1169
  created_at: string;
1020
1170
  created_by: string | null;
1021
1171
  display_name: string | null;
1172
+ gmail_history_id: string | null;
1173
+ gmail_watch_expires_at: string | null;
1174
+ graph_subscription_expires_at: string | null;
1175
+ graph_subscription_id: string | null;
1022
1176
  id: string;
1023
1177
  imap_host: string | null;
1178
+ imap_last_uid: number | null;
1024
1179
  imap_password_encrypted: string | null;
1025
1180
  imap_port: number | null;
1026
1181
  imap_secure: boolean | null;
1182
+ imap_uid_validity: number | null;
1027
1183
  imap_username: string | null;
1028
1184
  is_active: boolean;
1029
1185
  last_error: string | null;
1186
+ last_event_at: string | null;
1030
1187
  last_verified_at: string | null;
1031
1188
  oauth_mode: string | null;
1032
1189
  provider: string;
1190
+ purpose_assignments: import("./types").Json;
1191
+ realtime_mode: string;
1033
1192
  refresh_token_encrypted: string | null;
1034
1193
  scopes: string[] | null;
1035
1194
  smtp_host: string | null;
@@ -1049,17 +1208,26 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1049
1208
  created_at?: string;
1050
1209
  created_by?: string | null;
1051
1210
  display_name?: string | null;
1211
+ gmail_history_id?: string | null;
1212
+ gmail_watch_expires_at?: string | null;
1213
+ graph_subscription_expires_at?: string | null;
1214
+ graph_subscription_id?: string | null;
1052
1215
  id?: string;
1053
1216
  imap_host?: string | null;
1217
+ imap_last_uid?: number | null;
1054
1218
  imap_password_encrypted?: string | null;
1055
1219
  imap_port?: number | null;
1056
1220
  imap_secure?: boolean | null;
1221
+ imap_uid_validity?: number | null;
1057
1222
  imap_username?: string | null;
1058
1223
  is_active?: boolean;
1059
1224
  last_error?: string | null;
1225
+ last_event_at?: string | null;
1060
1226
  last_verified_at?: string | null;
1061
1227
  oauth_mode?: string | null;
1062
1228
  provider: string;
1229
+ purpose_assignments?: import("./types").Json;
1230
+ realtime_mode?: string;
1063
1231
  refresh_token_encrypted?: string | null;
1064
1232
  scopes?: string[] | null;
1065
1233
  smtp_host?: string | null;
@@ -1079,17 +1247,26 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1079
1247
  created_at?: string;
1080
1248
  created_by?: string | null;
1081
1249
  display_name?: string | null;
1250
+ gmail_history_id?: string | null;
1251
+ gmail_watch_expires_at?: string | null;
1252
+ graph_subscription_expires_at?: string | null;
1253
+ graph_subscription_id?: string | null;
1082
1254
  id?: string;
1083
1255
  imap_host?: string | null;
1256
+ imap_last_uid?: number | null;
1084
1257
  imap_password_encrypted?: string | null;
1085
1258
  imap_port?: number | null;
1086
1259
  imap_secure?: boolean | null;
1260
+ imap_uid_validity?: number | null;
1087
1261
  imap_username?: string | null;
1088
1262
  is_active?: boolean;
1089
1263
  last_error?: string | null;
1264
+ last_event_at?: string | null;
1090
1265
  last_verified_at?: string | null;
1091
1266
  oauth_mode?: string | null;
1092
1267
  provider?: string;
1268
+ purpose_assignments?: import("./types").Json;
1269
+ realtime_mode?: string;
1093
1270
  refresh_token_encrypted?: string | null;
1094
1271
  scopes?: string[] | null;
1095
1272
  smtp_host?: string | null;
@@ -1103,6 +1280,195 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1103
1280
  };
1104
1281
  Relationships: [];
1105
1282
  };
1283
+ email_auth_events: {
1284
+ Row: {
1285
+ connection_id: string;
1286
+ consumed_at: string | null;
1287
+ created_at: string;
1288
+ event_type: string;
1289
+ external_id: string | null;
1290
+ id: string;
1291
+ payload: import("./types").Json;
1292
+ provider: string;
1293
+ received_at: string;
1294
+ };
1295
+ Insert: {
1296
+ connection_id: string;
1297
+ consumed_at?: string | null;
1298
+ created_at?: string;
1299
+ event_type: string;
1300
+ external_id?: string | null;
1301
+ id?: string;
1302
+ payload?: import("./types").Json;
1303
+ provider: string;
1304
+ received_at?: string;
1305
+ };
1306
+ Update: {
1307
+ connection_id?: string;
1308
+ consumed_at?: string | null;
1309
+ created_at?: string;
1310
+ event_type?: string;
1311
+ external_id?: string | null;
1312
+ id?: string;
1313
+ payload?: import("./types").Json;
1314
+ provider?: string;
1315
+ received_at?: string;
1316
+ };
1317
+ Relationships: [{
1318
+ foreignKeyName: "email_auth_events_connection_id_fkey";
1319
+ columns: ["connection_id"];
1320
+ isOneToOne: false;
1321
+ referencedRelation: "email_auth_connections";
1322
+ referencedColumns: ["id"];
1323
+ }, {
1324
+ foreignKeyName: "email_auth_events_connection_id_fkey";
1325
+ columns: ["connection_id"];
1326
+ isOneToOne: false;
1327
+ referencedRelation: "email_auth_connections_safe";
1328
+ referencedColumns: ["id"];
1329
+ }];
1330
+ };
1331
+ email_auth_outbox: {
1332
+ Row: {
1333
+ attempts: number;
1334
+ bcc_addresses: string[];
1335
+ cc_addresses: string[];
1336
+ connection_id: string | null;
1337
+ created_at: string;
1338
+ created_by: string | null;
1339
+ external_message_id: string | null;
1340
+ headers: import("./types").Json;
1341
+ html_body: string | null;
1342
+ id: string;
1343
+ last_error: string | null;
1344
+ purpose: string;
1345
+ reply_to: string | null;
1346
+ scheduled_at: string;
1347
+ sent_at: string | null;
1348
+ status: string;
1349
+ subject: string;
1350
+ text_body: string | null;
1351
+ to_addresses: string[];
1352
+ updated_at: string;
1353
+ };
1354
+ Insert: {
1355
+ attempts?: number;
1356
+ bcc_addresses?: string[];
1357
+ cc_addresses?: string[];
1358
+ connection_id?: string | null;
1359
+ created_at?: string;
1360
+ created_by?: string | null;
1361
+ external_message_id?: string | null;
1362
+ headers?: import("./types").Json;
1363
+ html_body?: string | null;
1364
+ id?: string;
1365
+ last_error?: string | null;
1366
+ purpose: string;
1367
+ reply_to?: string | null;
1368
+ scheduled_at?: string;
1369
+ sent_at?: string | null;
1370
+ status?: string;
1371
+ subject: string;
1372
+ text_body?: string | null;
1373
+ to_addresses: string[];
1374
+ updated_at?: string;
1375
+ };
1376
+ Update: {
1377
+ attempts?: number;
1378
+ bcc_addresses?: string[];
1379
+ cc_addresses?: string[];
1380
+ connection_id?: string | null;
1381
+ created_at?: string;
1382
+ created_by?: string | null;
1383
+ external_message_id?: string | null;
1384
+ headers?: import("./types").Json;
1385
+ html_body?: string | null;
1386
+ id?: string;
1387
+ last_error?: string | null;
1388
+ purpose?: string;
1389
+ reply_to?: string | null;
1390
+ scheduled_at?: string;
1391
+ sent_at?: string | null;
1392
+ status?: string;
1393
+ subject?: string;
1394
+ text_body?: string | null;
1395
+ to_addresses?: string[];
1396
+ updated_at?: string;
1397
+ };
1398
+ Relationships: [{
1399
+ foreignKeyName: "email_auth_outbox_connection_id_fkey";
1400
+ columns: ["connection_id"];
1401
+ isOneToOne: false;
1402
+ referencedRelation: "email_auth_connections";
1403
+ referencedColumns: ["id"];
1404
+ }, {
1405
+ foreignKeyName: "email_auth_outbox_connection_id_fkey";
1406
+ columns: ["connection_id"];
1407
+ isOneToOne: false;
1408
+ referencedRelation: "email_auth_connections_safe";
1409
+ referencedColumns: ["id"];
1410
+ }];
1411
+ };
1412
+ email_auth_purpose_settings: {
1413
+ Row: {
1414
+ purpose: string;
1415
+ reply_to: string | null;
1416
+ updated_at: string;
1417
+ updated_by: string | null;
1418
+ };
1419
+ Insert: {
1420
+ purpose: string;
1421
+ reply_to?: string | null;
1422
+ updated_at?: string;
1423
+ updated_by?: string | null;
1424
+ };
1425
+ Update: {
1426
+ purpose?: string;
1427
+ reply_to?: string | null;
1428
+ updated_at?: string;
1429
+ updated_by?: string | null;
1430
+ };
1431
+ Relationships: [];
1432
+ };
1433
+ email_auth_token_refresh_log: {
1434
+ Row: {
1435
+ connection_id: string;
1436
+ error_message: string | null;
1437
+ id: string;
1438
+ refreshed_at: string;
1439
+ success: boolean;
1440
+ trigger_source: string;
1441
+ };
1442
+ Insert: {
1443
+ connection_id: string;
1444
+ error_message?: string | null;
1445
+ id?: string;
1446
+ refreshed_at?: string;
1447
+ success: boolean;
1448
+ trigger_source: string;
1449
+ };
1450
+ Update: {
1451
+ connection_id?: string;
1452
+ error_message?: string | null;
1453
+ id?: string;
1454
+ refreshed_at?: string;
1455
+ success?: boolean;
1456
+ trigger_source?: string;
1457
+ };
1458
+ Relationships: [{
1459
+ foreignKeyName: "email_auth_token_refresh_log_connection_id_fkey";
1460
+ columns: ["connection_id"];
1461
+ isOneToOne: false;
1462
+ referencedRelation: "email_auth_connections";
1463
+ referencedColumns: ["id"];
1464
+ }, {
1465
+ foreignKeyName: "email_auth_token_refresh_log_connection_id_fkey";
1466
+ columns: ["connection_id"];
1467
+ isOneToOne: false;
1468
+ referencedRelation: "email_auth_connections_safe";
1469
+ referencedColumns: ["id"];
1470
+ }];
1471
+ };
1106
1472
  exact_account_analytics_cache: {
1107
1473
  Row: {
1108
1474
  account_id: string;
@@ -1847,6 +2213,42 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1847
2213
  };
1848
2214
  Relationships: [];
1849
2215
  };
2216
+ exact_settings: {
2217
+ Row: {
2218
+ client_id: string | null;
2219
+ client_secret: string | null;
2220
+ connection_status: string;
2221
+ created_at: string;
2222
+ division_id: string | null;
2223
+ id: string;
2224
+ last_sync_at: string | null;
2225
+ redirect_uri: string | null;
2226
+ updated_at: string;
2227
+ };
2228
+ Insert: {
2229
+ client_id?: string | null;
2230
+ client_secret?: string | null;
2231
+ connection_status?: string;
2232
+ created_at?: string;
2233
+ division_id?: string | null;
2234
+ id?: string;
2235
+ last_sync_at?: string | null;
2236
+ redirect_uri?: string | null;
2237
+ updated_at?: string;
2238
+ };
2239
+ Update: {
2240
+ client_id?: string | null;
2241
+ client_secret?: string | null;
2242
+ connection_status?: string;
2243
+ created_at?: string;
2244
+ division_id?: string | null;
2245
+ id?: string;
2246
+ last_sync_at?: string | null;
2247
+ redirect_uri?: string | null;
2248
+ updated_at?: string;
2249
+ };
2250
+ Relationships: [];
2251
+ };
1850
2252
  exact_sync_state: {
1851
2253
  Row: {
1852
2254
  connection_id: string;
@@ -1910,6 +2312,63 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1910
2312
  };
1911
2313
  Relationships: [];
1912
2314
  };
2315
+ extra_categories: {
2316
+ Row: {
2317
+ created_at: string;
2318
+ id: string;
2319
+ name: string;
2320
+ sort_order: number;
2321
+ updated_at: string;
2322
+ };
2323
+ Insert: {
2324
+ created_at?: string;
2325
+ id?: string;
2326
+ name: string;
2327
+ sort_order?: number;
2328
+ updated_at?: string;
2329
+ };
2330
+ Update: {
2331
+ created_at?: string;
2332
+ id?: string;
2333
+ name?: string;
2334
+ sort_order?: number;
2335
+ updated_at?: string;
2336
+ };
2337
+ Relationships: [];
2338
+ };
2339
+ extras: {
2340
+ Row: {
2341
+ category: string;
2342
+ created_at: string;
2343
+ exact_article_id: string | null;
2344
+ id: string;
2345
+ is_active: boolean;
2346
+ name: string;
2347
+ price: number;
2348
+ pricing_type: string;
2349
+ };
2350
+ Insert: {
2351
+ category: string;
2352
+ created_at?: string;
2353
+ exact_article_id?: string | null;
2354
+ id?: string;
2355
+ is_active?: boolean;
2356
+ name: string;
2357
+ price?: number;
2358
+ pricing_type?: string;
2359
+ };
2360
+ Update: {
2361
+ category?: string;
2362
+ created_at?: string;
2363
+ exact_article_id?: string | null;
2364
+ id?: string;
2365
+ is_active?: boolean;
2366
+ name?: string;
2367
+ price?: number;
2368
+ pricing_type?: string;
2369
+ };
2370
+ Relationships: [];
2371
+ };
1913
2372
  floricode_connection_settings: {
1914
2373
  Row: {
1915
2374
  catalog_key: string | null;
@@ -2518,46 +2977,142 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2518
2977
  error?: string | null;
2519
2978
  finished_at?: string | null;
2520
2979
  id?: string;
2521
- inserted?: number;
2522
- ok?: boolean | null;
2523
- profile_id?: string | null;
2524
- started_at?: string;
2980
+ inserted?: number;
2981
+ ok?: boolean | null;
2982
+ profile_id?: string | null;
2983
+ started_at?: string;
2984
+ };
2985
+ Relationships: [{
2986
+ foreignKeyName: "imap_sync_log_account_id_fkey";
2987
+ columns: ["account_id"];
2988
+ isOneToOne: false;
2989
+ referencedRelation: "imap_accounts";
2990
+ referencedColumns: ["id"];
2991
+ }, {
2992
+ foreignKeyName: "imap_sync_log_profile_id_fkey";
2993
+ columns: ["profile_id"];
2994
+ isOneToOne: false;
2995
+ referencedRelation: "imap_profiles";
2996
+ referencedColumns: ["id"];
2997
+ }];
2998
+ };
2999
+ inventory_settings: {
3000
+ Row: {
3001
+ created_at: string;
3002
+ hierarchy_levels: string[];
3003
+ id: string;
3004
+ updated_at: string;
3005
+ visible_columns: string[];
3006
+ };
3007
+ Insert: {
3008
+ created_at?: string;
3009
+ hierarchy_levels?: string[];
3010
+ id?: string;
3011
+ updated_at?: string;
3012
+ visible_columns?: string[];
3013
+ };
3014
+ Update: {
3015
+ created_at?: string;
3016
+ hierarchy_levels?: string[];
3017
+ id?: string;
3018
+ updated_at?: string;
3019
+ visible_columns?: string[];
3020
+ };
3021
+ Relationships: [];
3022
+ };
3023
+ invoice_run_items: {
3024
+ Row: {
3025
+ booking_id: string | null;
3026
+ company_name: string | null;
3027
+ created_at: string;
3028
+ customer_email: string | null;
3029
+ description: string | null;
3030
+ exact_article_id: string | null;
3031
+ id: string;
3032
+ invoice_run_id: string | null;
3033
+ quantity: number | null;
3034
+ total_excl_vat: number | null;
3035
+ total_incl_vat: number | null;
3036
+ unit_price: number | null;
3037
+ vat_amount: number | null;
3038
+ };
3039
+ Insert: {
3040
+ booking_id?: string | null;
3041
+ company_name?: string | null;
3042
+ created_at?: string;
3043
+ customer_email?: string | null;
3044
+ description?: string | null;
3045
+ exact_article_id?: string | null;
3046
+ id?: string;
3047
+ invoice_run_id?: string | null;
3048
+ quantity?: number | null;
3049
+ total_excl_vat?: number | null;
3050
+ total_incl_vat?: number | null;
3051
+ unit_price?: number | null;
3052
+ vat_amount?: number | null;
3053
+ };
3054
+ Update: {
3055
+ booking_id?: string | null;
3056
+ company_name?: string | null;
3057
+ created_at?: string;
3058
+ customer_email?: string | null;
3059
+ description?: string | null;
3060
+ exact_article_id?: string | null;
3061
+ id?: string;
3062
+ invoice_run_id?: string | null;
3063
+ quantity?: number | null;
3064
+ total_excl_vat?: number | null;
3065
+ total_incl_vat?: number | null;
3066
+ unit_price?: number | null;
3067
+ vat_amount?: number | null;
2525
3068
  };
2526
3069
  Relationships: [{
2527
- foreignKeyName: "imap_sync_log_account_id_fkey";
2528
- columns: ["account_id"];
3070
+ foreignKeyName: "invoice_run_items_booking_id_fkey";
3071
+ columns: ["booking_id"];
2529
3072
  isOneToOne: false;
2530
- referencedRelation: "imap_accounts";
3073
+ referencedRelation: "bookings";
2531
3074
  referencedColumns: ["id"];
2532
3075
  }, {
2533
- foreignKeyName: "imap_sync_log_profile_id_fkey";
2534
- columns: ["profile_id"];
3076
+ foreignKeyName: "invoice_run_items_invoice_run_id_fkey";
3077
+ columns: ["invoice_run_id"];
2535
3078
  isOneToOne: false;
2536
- referencedRelation: "imap_profiles";
3079
+ referencedRelation: "invoice_runs";
2537
3080
  referencedColumns: ["id"];
2538
3081
  }];
2539
3082
  };
2540
- inventory_settings: {
3083
+ invoice_runs: {
2541
3084
  Row: {
2542
3085
  created_at: string;
2543
- hierarchy_levels: string[];
3086
+ created_by: string | null;
2544
3087
  id: string;
2545
- updated_at: string;
2546
- visible_columns: string[];
3088
+ period_end: string;
3089
+ period_start: string;
3090
+ status: string;
3091
+ total_excl_vat: number | null;
3092
+ total_incl_vat: number | null;
3093
+ vat_amount: number | null;
2547
3094
  };
2548
3095
  Insert: {
2549
3096
  created_at?: string;
2550
- hierarchy_levels?: string[];
3097
+ created_by?: string | null;
2551
3098
  id?: string;
2552
- updated_at?: string;
2553
- visible_columns?: string[];
3099
+ period_end: string;
3100
+ period_start: string;
3101
+ status?: string;
3102
+ total_excl_vat?: number | null;
3103
+ total_incl_vat?: number | null;
3104
+ vat_amount?: number | null;
2554
3105
  };
2555
3106
  Update: {
2556
3107
  created_at?: string;
2557
- hierarchy_levels?: string[];
3108
+ created_by?: string | null;
2558
3109
  id?: string;
2559
- updated_at?: string;
2560
- visible_columns?: string[];
3110
+ period_end?: string;
3111
+ period_start?: string;
3112
+ status?: string;
3113
+ total_excl_vat?: number | null;
3114
+ total_incl_vat?: number | null;
3115
+ vat_amount?: number | null;
2561
3116
  };
2562
3117
  Relationships: [];
2563
3118
  };
@@ -2591,6 +3146,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2591
3146
  body_text: string | null;
2592
3147
  created_at: string;
2593
3148
  error_message: string | null;
3149
+ external_id: string | null;
2594
3150
  from_email: string | null;
2595
3151
  from_name: string | null;
2596
3152
  id: string;
@@ -2600,7 +3156,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2600
3156
  received_at: string | null;
2601
3157
  status: string;
2602
3158
  subject: string | null;
2603
- uid: number;
3159
+ uid: number | null;
2604
3160
  updated_at: string;
2605
3161
  };
2606
3162
  Insert: {
@@ -2608,6 +3164,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2608
3164
  body_text?: string | null;
2609
3165
  created_at?: string;
2610
3166
  error_message?: string | null;
3167
+ external_id?: string | null;
2611
3168
  from_email?: string | null;
2612
3169
  from_name?: string | null;
2613
3170
  id?: string;
@@ -2617,7 +3174,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2617
3174
  received_at?: string | null;
2618
3175
  status?: string;
2619
3176
  subject?: string | null;
2620
- uid: number;
3177
+ uid?: number | null;
2621
3178
  updated_at?: string;
2622
3179
  };
2623
3180
  Update: {
@@ -2625,6 +3182,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2625
3182
  body_text?: string | null;
2626
3183
  created_at?: string;
2627
3184
  error_message?: string | null;
3185
+ external_id?: string | null;
2628
3186
  from_email?: string | null;
2629
3187
  from_name?: string | null;
2630
3188
  id?: string;
@@ -2634,7 +3192,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2634
3192
  received_at?: string | null;
2635
3193
  status?: string;
2636
3194
  subject?: string | null;
2637
- uid?: number;
3195
+ uid?: number | null;
2638
3196
  updated_at?: string;
2639
3197
  };
2640
3198
  Relationships: [{
@@ -2906,6 +3464,60 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2906
3464
  };
2907
3465
  Relationships: [];
2908
3466
  };
3467
+ monteurs: {
3468
+ Row: {
3469
+ avatar_url: string | null;
3470
+ color: string | null;
3471
+ created_at: string;
3472
+ email: string | null;
3473
+ id: string;
3474
+ is_active: boolean;
3475
+ leave_balance_hours: number;
3476
+ name: string;
3477
+ persnr: number | null;
3478
+ phone: string | null;
3479
+ role: string;
3480
+ tenant_id: string;
3481
+ updated_at: string;
3482
+ };
3483
+ Insert: {
3484
+ avatar_url?: string | null;
3485
+ color?: string | null;
3486
+ created_at?: string;
3487
+ email?: string | null;
3488
+ id?: string;
3489
+ is_active?: boolean;
3490
+ leave_balance_hours?: number;
3491
+ name: string;
3492
+ persnr?: number | null;
3493
+ phone?: string | null;
3494
+ role?: string;
3495
+ tenant_id: string;
3496
+ updated_at?: string;
3497
+ };
3498
+ Update: {
3499
+ avatar_url?: string | null;
3500
+ color?: string | null;
3501
+ created_at?: string;
3502
+ email?: string | null;
3503
+ id?: string;
3504
+ is_active?: boolean;
3505
+ leave_balance_hours?: number;
3506
+ name?: string;
3507
+ persnr?: number | null;
3508
+ phone?: string | null;
3509
+ role?: string;
3510
+ tenant_id?: string;
3511
+ updated_at?: string;
3512
+ };
3513
+ Relationships: [{
3514
+ foreignKeyName: "monteurs_tenant_id_fkey";
3515
+ columns: ["tenant_id"];
3516
+ isOneToOne: false;
3517
+ referencedRelation: "tenants";
3518
+ referencedColumns: ["id"];
3519
+ }];
3520
+ };
2909
3521
  notifications: {
2910
3522
  Row: {
2911
3523
  created_at: string;
@@ -3738,6 +4350,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3738
4350
  email: string | null;
3739
4351
  id: string;
3740
4352
  notification_preferences: import("./types").Json;
4353
+ tenant_id: string | null;
3741
4354
  updated_at: string;
3742
4355
  };
3743
4356
  Insert: {
@@ -3746,6 +4359,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3746
4359
  email?: string | null;
3747
4360
  id: string;
3748
4361
  notification_preferences?: import("./types").Json;
4362
+ tenant_id?: string | null;
3749
4363
  updated_at?: string;
3750
4364
  };
3751
4365
  Update: {
@@ -3754,9 +4368,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3754
4368
  email?: string | null;
3755
4369
  id?: string;
3756
4370
  notification_preferences?: import("./types").Json;
4371
+ tenant_id?: string | null;
3757
4372
  updated_at?: string;
3758
4373
  };
3759
- Relationships: [];
4374
+ Relationships: [{
4375
+ foreignKeyName: "profiles_tenant_id_fkey";
4376
+ columns: ["tenant_id"];
4377
+ isOneToOne: false;
4378
+ referencedRelation: "tenants";
4379
+ referencedColumns: ["id"];
4380
+ }];
3760
4381
  };
3761
4382
  projects: {
3762
4383
  Row: {
@@ -4460,6 +5081,81 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4460
5081
  referencedColumns: ["id"];
4461
5082
  }];
4462
5083
  };
5084
+ reception_notifications: {
5085
+ Row: {
5086
+ booking_id: string | null;
5087
+ created_at: string;
5088
+ id: string;
5089
+ is_read: boolean;
5090
+ message: string;
5091
+ recipient_email: string | null;
5092
+ title: string;
5093
+ type: string;
5094
+ };
5095
+ Insert: {
5096
+ booking_id?: string | null;
5097
+ created_at?: string;
5098
+ id?: string;
5099
+ is_read?: boolean;
5100
+ message: string;
5101
+ recipient_email?: string | null;
5102
+ title: string;
5103
+ type: string;
5104
+ };
5105
+ Update: {
5106
+ booking_id?: string | null;
5107
+ created_at?: string;
5108
+ id?: string;
5109
+ is_read?: boolean;
5110
+ message?: string;
5111
+ recipient_email?: string | null;
5112
+ title?: string;
5113
+ type?: string;
5114
+ };
5115
+ Relationships: [{
5116
+ foreignKeyName: "reception_notifications_booking_id_fkey";
5117
+ columns: ["booking_id"];
5118
+ isOneToOne: false;
5119
+ referencedRelation: "bookings";
5120
+ referencedColumns: ["id"];
5121
+ }];
5122
+ };
5123
+ rooms: {
5124
+ Row: {
5125
+ capacity: number;
5126
+ color_code: string | null;
5127
+ created_at: string;
5128
+ description: string | null;
5129
+ hourly_rate: number;
5130
+ id: string;
5131
+ image_url: string | null;
5132
+ is_active: boolean;
5133
+ name: string;
5134
+ };
5135
+ Insert: {
5136
+ capacity?: number;
5137
+ color_code?: string | null;
5138
+ created_at?: string;
5139
+ description?: string | null;
5140
+ hourly_rate?: number;
5141
+ id?: string;
5142
+ image_url?: string | null;
5143
+ is_active?: boolean;
5144
+ name: string;
5145
+ };
5146
+ Update: {
5147
+ capacity?: number;
5148
+ color_code?: string | null;
5149
+ created_at?: string;
5150
+ description?: string | null;
5151
+ hourly_rate?: number;
5152
+ id?: string;
5153
+ image_url?: string | null;
5154
+ is_active?: boolean;
5155
+ name?: string;
5156
+ };
5157
+ Relationships: [];
5158
+ };
4463
5159
  supplier_products: {
4464
5160
  Row: {
4465
5161
  article_number: string | null;
@@ -4553,6 +5249,30 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4553
5249
  };
4554
5250
  Relationships: [];
4555
5251
  };
5252
+ tenants: {
5253
+ Row: {
5254
+ created_at: string;
5255
+ id: string;
5256
+ name: string;
5257
+ slug: string | null;
5258
+ updated_at: string;
5259
+ };
5260
+ Insert: {
5261
+ created_at?: string;
5262
+ id?: string;
5263
+ name?: string;
5264
+ slug?: string | null;
5265
+ updated_at?: string;
5266
+ };
5267
+ Update: {
5268
+ created_at?: string;
5269
+ id?: string;
5270
+ name?: string;
5271
+ slug?: string | null;
5272
+ updated_at?: string;
5273
+ };
5274
+ Relationships: [];
5275
+ };
4556
5276
  trade_item_drafts: {
4557
5277
  Row: {
4558
5278
  connection_id: string | null;
@@ -5228,6 +5948,168 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5228
5948
  referencedColumns: ["id"];
5229
5949
  }];
5230
5950
  };
5951
+ work_order_monteurs: {
5952
+ Row: {
5953
+ created_at: string;
5954
+ id: string;
5955
+ monteur_id: string;
5956
+ work_order_id: string;
5957
+ };
5958
+ Insert: {
5959
+ created_at?: string;
5960
+ id?: string;
5961
+ monteur_id: string;
5962
+ work_order_id: string;
5963
+ };
5964
+ Update: {
5965
+ created_at?: string;
5966
+ id?: string;
5967
+ monteur_id?: string;
5968
+ work_order_id?: string;
5969
+ };
5970
+ Relationships: [{
5971
+ foreignKeyName: "work_order_monteurs_monteur_id_fkey";
5972
+ columns: ["monteur_id"];
5973
+ isOneToOne: false;
5974
+ referencedRelation: "monteurs";
5975
+ referencedColumns: ["id"];
5976
+ }, {
5977
+ foreignKeyName: "work_order_monteurs_work_order_id_fkey";
5978
+ columns: ["work_order_id"];
5979
+ isOneToOne: false;
5980
+ referencedRelation: "work_orders";
5981
+ referencedColumns: ["id"];
5982
+ }];
5983
+ };
5984
+ work_orders: {
5985
+ Row: {
5986
+ assigned_to: string | null;
5987
+ city: string | null;
5988
+ contact_person: string | null;
5989
+ created_at: string;
5990
+ custom_fields: import("./types").Json;
5991
+ customer_name: string;
5992
+ description: string;
5993
+ email: string | null;
5994
+ email_source: string | null;
5995
+ estimated_duration_hours: number | null;
5996
+ external_reference: string | null;
5997
+ follow_up_needed: boolean;
5998
+ id: string;
5999
+ mandate: string;
6000
+ mandate_budget: number;
6001
+ mandate_used: number;
6002
+ order_number: string;
6003
+ parent_work_order_id: string | null;
6004
+ pdf_url: string | null;
6005
+ phone: string | null;
6006
+ postal_code: string;
6007
+ priority: string;
6008
+ project_number: string | null;
6009
+ report_validated: boolean;
6010
+ room_number: string;
6011
+ scheduled_date: string | null;
6012
+ scheduled_end_time: string | null;
6013
+ scheduled_start_time: string | null;
6014
+ status: string;
6015
+ tenant_id: string;
6016
+ total_hours_worked: number | null;
6017
+ total_price: number | null;
6018
+ travel_time_minutes: number | null;
6019
+ updated_at: string;
6020
+ work_address: string;
6021
+ work_report: string | null;
6022
+ };
6023
+ Insert: {
6024
+ assigned_to?: string | null;
6025
+ city?: string | null;
6026
+ contact_person?: string | null;
6027
+ created_at?: string;
6028
+ custom_fields?: import("./types").Json;
6029
+ customer_name?: string;
6030
+ description?: string;
6031
+ email?: string | null;
6032
+ email_source?: string | null;
6033
+ estimated_duration_hours?: number | null;
6034
+ external_reference?: string | null;
6035
+ follow_up_needed?: boolean;
6036
+ id?: string;
6037
+ mandate?: string;
6038
+ mandate_budget?: number;
6039
+ mandate_used?: number;
6040
+ order_number?: string;
6041
+ parent_work_order_id?: string | null;
6042
+ pdf_url?: string | null;
6043
+ phone?: string | null;
6044
+ postal_code?: string;
6045
+ priority?: string;
6046
+ project_number?: string | null;
6047
+ report_validated?: boolean;
6048
+ room_number?: string;
6049
+ scheduled_date?: string | null;
6050
+ scheduled_end_time?: string | null;
6051
+ scheduled_start_time?: string | null;
6052
+ status?: string;
6053
+ tenant_id: string;
6054
+ total_hours_worked?: number | null;
6055
+ total_price?: number | null;
6056
+ travel_time_minutes?: number | null;
6057
+ updated_at?: string;
6058
+ work_address?: string;
6059
+ work_report?: string | null;
6060
+ };
6061
+ Update: {
6062
+ assigned_to?: string | null;
6063
+ city?: string | null;
6064
+ contact_person?: string | null;
6065
+ created_at?: string;
6066
+ custom_fields?: import("./types").Json;
6067
+ customer_name?: string;
6068
+ description?: string;
6069
+ email?: string | null;
6070
+ email_source?: string | null;
6071
+ estimated_duration_hours?: number | null;
6072
+ external_reference?: string | null;
6073
+ follow_up_needed?: boolean;
6074
+ id?: string;
6075
+ mandate?: string;
6076
+ mandate_budget?: number;
6077
+ mandate_used?: number;
6078
+ order_number?: string;
6079
+ parent_work_order_id?: string | null;
6080
+ pdf_url?: string | null;
6081
+ phone?: string | null;
6082
+ postal_code?: string;
6083
+ priority?: string;
6084
+ project_number?: string | null;
6085
+ report_validated?: boolean;
6086
+ room_number?: string;
6087
+ scheduled_date?: string | null;
6088
+ scheduled_end_time?: string | null;
6089
+ scheduled_start_time?: string | null;
6090
+ status?: string;
6091
+ tenant_id?: string;
6092
+ total_hours_worked?: number | null;
6093
+ total_price?: number | null;
6094
+ travel_time_minutes?: number | null;
6095
+ updated_at?: string;
6096
+ work_address?: string;
6097
+ work_report?: string | null;
6098
+ };
6099
+ Relationships: [{
6100
+ foreignKeyName: "work_orders_parent_work_order_id_fkey";
6101
+ columns: ["parent_work_order_id"];
6102
+ isOneToOne: false;
6103
+ referencedRelation: "work_orders";
6104
+ referencedColumns: ["id"];
6105
+ }, {
6106
+ foreignKeyName: "work_orders_tenant_id_fkey";
6107
+ columns: ["tenant_id"];
6108
+ isOneToOne: false;
6109
+ referencedRelation: "tenants";
6110
+ referencedColumns: ["id"];
6111
+ }];
6112
+ };
5231
6113
  };
5232
6114
  Views: {
5233
6115
  email_auth_connections_safe: {
@@ -5252,6 +6134,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5252
6134
  last_verified_at: string | null;
5253
6135
  oauth_mode: string | null;
5254
6136
  provider: string | null;
6137
+ purpose_assignments: import("./types").Json | null;
5255
6138
  scopes: string[] | null;
5256
6139
  smtp_host: string | null;
5257
6140
  smtp_port: number | null;
@@ -5282,6 +6165,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5282
6165
  last_verified_at?: string | null;
5283
6166
  oauth_mode?: string | null;
5284
6167
  provider?: string | null;
6168
+ purpose_assignments?: import("./types").Json | null;
5285
6169
  scopes?: string[] | null;
5286
6170
  smtp_host?: string | null;
5287
6171
  smtp_port?: number | null;
@@ -5312,6 +6196,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5312
6196
  last_verified_at?: string | null;
5313
6197
  oauth_mode?: string | null;
5314
6198
  provider?: string | null;
6199
+ purpose_assignments?: import("./types").Json | null;
5315
6200
  scopes?: string[] | null;
5316
6201
  smtp_host?: string | null;
5317
6202
  smtp_port?: number | null;
@@ -5462,6 +6347,33 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5462
6347
  };
5463
6348
  Returns: string;
5464
6349
  };
6350
+ email_auth_fetch_message: {
6351
+ Args: {
6352
+ _connection_id: string;
6353
+ _external_id: string;
6354
+ };
6355
+ Returns: import("./types").Json;
6356
+ };
6357
+ email_auth_for_purpose: {
6358
+ Args: {
6359
+ _direction: string;
6360
+ _purpose: string;
6361
+ };
6362
+ Returns: {
6363
+ account_email: string;
6364
+ display_name: string;
6365
+ id: string;
6366
+ last_error: string;
6367
+ last_verified_at: string;
6368
+ needs_reauth: boolean;
6369
+ provider: string;
6370
+ status: string;
6371
+ }[];
6372
+ };
6373
+ ensure_user_tenant: {
6374
+ Args: never;
6375
+ Returns: string;
6376
+ };
5465
6377
  exact_decrypt: {
5466
6378
  Args: {
5467
6379
  cipher: string;
@@ -5534,6 +6446,18 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5534
6446
  };
5535
6447
  Returns: import("./types").Json;
5536
6448
  };
6449
+ get_room_busy_windows: {
6450
+ Args: {
6451
+ p_from: string;
6452
+ p_to: string;
6453
+ };
6454
+ Returns: {
6455
+ end_time: string;
6456
+ room_id: string;
6457
+ start_time: string;
6458
+ status: string;
6459
+ }[];
6460
+ };
5537
6461
  get_twinfield_cron_jobs: {
5538
6462
  Args: never;
5539
6463
  Returns: {
@@ -5543,6 +6467,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5543
6467
  url: string;
5544
6468
  }[];
5545
6469
  };
6470
+ get_user_tenant_id: {
6471
+ Args: never;
6472
+ Returns: string;
6473
+ };
6474
+ get_work_order_tenant_id: {
6475
+ Args: {
6476
+ wo_id: string;
6477
+ };
6478
+ Returns: string;
6479
+ };
5546
6480
  has_role: {
5547
6481
  Args: {
5548
6482
  _role: Database["public"]["Enums"]["app_role"];
@@ -5550,6 +6484,21 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5550
6484
  };
5551
6485
  Returns: boolean;
5552
6486
  };
6487
+ is_authenticated: {
6488
+ Args: never;
6489
+ Returns: boolean;
6490
+ };
6491
+ is_developer: {
6492
+ Args: never;
6493
+ Returns: boolean;
6494
+ };
6495
+ next_work_order_number: {
6496
+ Args: {
6497
+ p_parent_work_order_id?: string;
6498
+ p_tenant_id: string;
6499
+ };
6500
+ Returns: string;
6501
+ };
5553
6502
  normalize_vat: {
5554
6503
  Args: {
5555
6504
  v: string;
@@ -5671,7 +6620,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5671
6620
  };
5672
6621
  };
5673
6622
  Enums: {
5674
- app_role: "admin" | "manager" | "warehouse" | "sales" | "developer";
6623
+ app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
5675
6624
  exact_env: "staging" | "live";
5676
6625
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
5677
6626
  };