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