@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.
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +974 -25
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +974 -25
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +974 -25
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +998 -20
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.js +8 -1
- package/dist-lib/lib/accounting.functions.d.ts +2969 -122
- package/dist-lib/lib/accounting.functions.d.ts.map +1 -1
- package/dist-lib/lib/customers.functions.d.ts +6678 -35
- package/dist-lib/lib/customers.functions.d.ts.map +1 -1
- package/dist-lib/lib/external-customers.functions.d.ts +3958 -162
- package/dist-lib/lib/external-customers.functions.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -193,6 +193,161 @@ export type Database = {
|
|
|
193
193
|
};
|
|
194
194
|
Relationships: [];
|
|
195
195
|
};
|
|
196
|
+
app_settings: {
|
|
197
|
+
Row: {
|
|
198
|
+
created_at: string;
|
|
199
|
+
id: string;
|
|
200
|
+
key: string;
|
|
201
|
+
updated_at: string;
|
|
202
|
+
value: string | null;
|
|
203
|
+
};
|
|
204
|
+
Insert: {
|
|
205
|
+
created_at?: string;
|
|
206
|
+
id?: string;
|
|
207
|
+
key: string;
|
|
208
|
+
updated_at?: string;
|
|
209
|
+
value?: string | null;
|
|
210
|
+
};
|
|
211
|
+
Update: {
|
|
212
|
+
created_at?: string;
|
|
213
|
+
id?: string;
|
|
214
|
+
key?: string;
|
|
215
|
+
updated_at?: string;
|
|
216
|
+
value?: string | null;
|
|
217
|
+
};
|
|
218
|
+
Relationships: [];
|
|
219
|
+
};
|
|
220
|
+
booking_items: {
|
|
221
|
+
Row: {
|
|
222
|
+
booking_id: string;
|
|
223
|
+
created_at: string;
|
|
224
|
+
extra_id: string;
|
|
225
|
+
id: string;
|
|
226
|
+
quantity: number;
|
|
227
|
+
total_price: number;
|
|
228
|
+
unit_price: number;
|
|
229
|
+
};
|
|
230
|
+
Insert: {
|
|
231
|
+
booking_id: string;
|
|
232
|
+
created_at?: string;
|
|
233
|
+
extra_id: string;
|
|
234
|
+
id?: string;
|
|
235
|
+
quantity?: number;
|
|
236
|
+
total_price?: number;
|
|
237
|
+
unit_price?: number;
|
|
238
|
+
};
|
|
239
|
+
Update: {
|
|
240
|
+
booking_id?: string;
|
|
241
|
+
created_at?: string;
|
|
242
|
+
extra_id?: string;
|
|
243
|
+
id?: string;
|
|
244
|
+
quantity?: number;
|
|
245
|
+
total_price?: number;
|
|
246
|
+
unit_price?: number;
|
|
247
|
+
};
|
|
248
|
+
Relationships: [
|
|
249
|
+
{
|
|
250
|
+
foreignKeyName: "booking_items_booking_id_fkey";
|
|
251
|
+
columns: ["booking_id"];
|
|
252
|
+
isOneToOne: false;
|
|
253
|
+
referencedRelation: "bookings";
|
|
254
|
+
referencedColumns: ["id"];
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
foreignKeyName: "booking_items_extra_id_fkey";
|
|
258
|
+
columns: ["extra_id"];
|
|
259
|
+
isOneToOne: false;
|
|
260
|
+
referencedRelation: "extras";
|
|
261
|
+
referencedColumns: ["id"];
|
|
262
|
+
}
|
|
263
|
+
];
|
|
264
|
+
};
|
|
265
|
+
bookings: {
|
|
266
|
+
Row: {
|
|
267
|
+
company_name: string | null;
|
|
268
|
+
conflict_checked_at: string | null;
|
|
269
|
+
conflict_reason: string | null;
|
|
270
|
+
created_at: string;
|
|
271
|
+
created_by_role: string | null;
|
|
272
|
+
customer_email: string | null;
|
|
273
|
+
customer_name: string | null;
|
|
274
|
+
end_time: string;
|
|
275
|
+
exact_debiteur_id: string | null;
|
|
276
|
+
has_conflict: boolean;
|
|
277
|
+
id: string;
|
|
278
|
+
invoice_run_id: string | null;
|
|
279
|
+
invoice_status: string | null;
|
|
280
|
+
invoiced_at: string | null;
|
|
281
|
+
notes: string | null;
|
|
282
|
+
number_of_people: number;
|
|
283
|
+
room_id: string;
|
|
284
|
+
start_time: string;
|
|
285
|
+
status: string;
|
|
286
|
+
total_excl_vat: number | null;
|
|
287
|
+
total_incl_vat: number | null;
|
|
288
|
+
user_id: string | null;
|
|
289
|
+
vat_amount: number | null;
|
|
290
|
+
};
|
|
291
|
+
Insert: {
|
|
292
|
+
company_name?: string | null;
|
|
293
|
+
conflict_checked_at?: string | null;
|
|
294
|
+
conflict_reason?: string | null;
|
|
295
|
+
created_at?: string;
|
|
296
|
+
created_by_role?: string | null;
|
|
297
|
+
customer_email?: string | null;
|
|
298
|
+
customer_name?: string | null;
|
|
299
|
+
end_time: string;
|
|
300
|
+
exact_debiteur_id?: string | null;
|
|
301
|
+
has_conflict?: boolean;
|
|
302
|
+
id?: string;
|
|
303
|
+
invoice_run_id?: string | null;
|
|
304
|
+
invoice_status?: string | null;
|
|
305
|
+
invoiced_at?: string | null;
|
|
306
|
+
notes?: string | null;
|
|
307
|
+
number_of_people?: number;
|
|
308
|
+
room_id: string;
|
|
309
|
+
start_time: string;
|
|
310
|
+
status?: string;
|
|
311
|
+
total_excl_vat?: number | null;
|
|
312
|
+
total_incl_vat?: number | null;
|
|
313
|
+
user_id?: string | null;
|
|
314
|
+
vat_amount?: number | null;
|
|
315
|
+
};
|
|
316
|
+
Update: {
|
|
317
|
+
company_name?: string | null;
|
|
318
|
+
conflict_checked_at?: string | null;
|
|
319
|
+
conflict_reason?: string | null;
|
|
320
|
+
created_at?: string;
|
|
321
|
+
created_by_role?: string | null;
|
|
322
|
+
customer_email?: string | null;
|
|
323
|
+
customer_name?: string | null;
|
|
324
|
+
end_time?: string;
|
|
325
|
+
exact_debiteur_id?: string | null;
|
|
326
|
+
has_conflict?: boolean;
|
|
327
|
+
id?: string;
|
|
328
|
+
invoice_run_id?: string | null;
|
|
329
|
+
invoice_status?: string | null;
|
|
330
|
+
invoiced_at?: string | null;
|
|
331
|
+
notes?: string | null;
|
|
332
|
+
number_of_people?: number;
|
|
333
|
+
room_id?: string;
|
|
334
|
+
start_time?: string;
|
|
335
|
+
status?: string;
|
|
336
|
+
total_excl_vat?: number | null;
|
|
337
|
+
total_incl_vat?: number | null;
|
|
338
|
+
user_id?: string | null;
|
|
339
|
+
vat_amount?: number | null;
|
|
340
|
+
};
|
|
341
|
+
Relationships: [
|
|
342
|
+
{
|
|
343
|
+
foreignKeyName: "bookings_room_id_fkey";
|
|
344
|
+
columns: ["room_id"];
|
|
345
|
+
isOneToOne: false;
|
|
346
|
+
referencedRelation: "rooms";
|
|
347
|
+
referencedColumns: ["id"];
|
|
348
|
+
}
|
|
349
|
+
];
|
|
350
|
+
};
|
|
196
351
|
bugs: {
|
|
197
352
|
Row: {
|
|
198
353
|
attachment_url: string | null;
|
|
@@ -1047,17 +1202,26 @@ export type Database = {
|
|
|
1047
1202
|
created_at: string;
|
|
1048
1203
|
created_by: string | null;
|
|
1049
1204
|
display_name: string | null;
|
|
1205
|
+
gmail_history_id: string | null;
|
|
1206
|
+
gmail_watch_expires_at: string | null;
|
|
1207
|
+
graph_subscription_expires_at: string | null;
|
|
1208
|
+
graph_subscription_id: string | null;
|
|
1050
1209
|
id: string;
|
|
1051
1210
|
imap_host: string | null;
|
|
1211
|
+
imap_last_uid: number | null;
|
|
1052
1212
|
imap_password_encrypted: string | null;
|
|
1053
1213
|
imap_port: number | null;
|
|
1054
1214
|
imap_secure: boolean | null;
|
|
1215
|
+
imap_uid_validity: number | null;
|
|
1055
1216
|
imap_username: string | null;
|
|
1056
1217
|
is_active: boolean;
|
|
1057
1218
|
last_error: string | null;
|
|
1219
|
+
last_event_at: string | null;
|
|
1058
1220
|
last_verified_at: string | null;
|
|
1059
1221
|
oauth_mode: string | null;
|
|
1060
1222
|
provider: string;
|
|
1223
|
+
purpose_assignments: Json;
|
|
1224
|
+
realtime_mode: string;
|
|
1061
1225
|
refresh_token_encrypted: string | null;
|
|
1062
1226
|
scopes: string[] | null;
|
|
1063
1227
|
smtp_host: string | null;
|
|
@@ -1077,17 +1241,26 @@ export type Database = {
|
|
|
1077
1241
|
created_at?: string;
|
|
1078
1242
|
created_by?: string | null;
|
|
1079
1243
|
display_name?: string | null;
|
|
1244
|
+
gmail_history_id?: string | null;
|
|
1245
|
+
gmail_watch_expires_at?: string | null;
|
|
1246
|
+
graph_subscription_expires_at?: string | null;
|
|
1247
|
+
graph_subscription_id?: string | null;
|
|
1080
1248
|
id?: string;
|
|
1081
1249
|
imap_host?: string | null;
|
|
1250
|
+
imap_last_uid?: number | null;
|
|
1082
1251
|
imap_password_encrypted?: string | null;
|
|
1083
1252
|
imap_port?: number | null;
|
|
1084
1253
|
imap_secure?: boolean | null;
|
|
1254
|
+
imap_uid_validity?: number | null;
|
|
1085
1255
|
imap_username?: string | null;
|
|
1086
1256
|
is_active?: boolean;
|
|
1087
1257
|
last_error?: string | null;
|
|
1258
|
+
last_event_at?: string | null;
|
|
1088
1259
|
last_verified_at?: string | null;
|
|
1089
1260
|
oauth_mode?: string | null;
|
|
1090
1261
|
provider: string;
|
|
1262
|
+
purpose_assignments?: Json;
|
|
1263
|
+
realtime_mode?: string;
|
|
1091
1264
|
refresh_token_encrypted?: string | null;
|
|
1092
1265
|
scopes?: string[] | null;
|
|
1093
1266
|
smtp_host?: string | null;
|
|
@@ -1107,17 +1280,26 @@ export type Database = {
|
|
|
1107
1280
|
created_at?: string;
|
|
1108
1281
|
created_by?: string | null;
|
|
1109
1282
|
display_name?: string | null;
|
|
1283
|
+
gmail_history_id?: string | null;
|
|
1284
|
+
gmail_watch_expires_at?: string | null;
|
|
1285
|
+
graph_subscription_expires_at?: string | null;
|
|
1286
|
+
graph_subscription_id?: string | null;
|
|
1110
1287
|
id?: string;
|
|
1111
1288
|
imap_host?: string | null;
|
|
1289
|
+
imap_last_uid?: number | null;
|
|
1112
1290
|
imap_password_encrypted?: string | null;
|
|
1113
1291
|
imap_port?: number | null;
|
|
1114
1292
|
imap_secure?: boolean | null;
|
|
1293
|
+
imap_uid_validity?: number | null;
|
|
1115
1294
|
imap_username?: string | null;
|
|
1116
1295
|
is_active?: boolean;
|
|
1117
1296
|
last_error?: string | null;
|
|
1297
|
+
last_event_at?: string | null;
|
|
1118
1298
|
last_verified_at?: string | null;
|
|
1119
1299
|
oauth_mode?: string | null;
|
|
1120
1300
|
provider?: string;
|
|
1301
|
+
purpose_assignments?: Json;
|
|
1302
|
+
realtime_mode?: string;
|
|
1121
1303
|
refresh_token_encrypted?: string | null;
|
|
1122
1304
|
scopes?: string[] | null;
|
|
1123
1305
|
smtp_host?: string | null;
|
|
@@ -1131,6 +1313,204 @@ export type Database = {
|
|
|
1131
1313
|
};
|
|
1132
1314
|
Relationships: [];
|
|
1133
1315
|
};
|
|
1316
|
+
email_auth_events: {
|
|
1317
|
+
Row: {
|
|
1318
|
+
connection_id: string;
|
|
1319
|
+
consumed_at: string | null;
|
|
1320
|
+
created_at: string;
|
|
1321
|
+
event_type: string;
|
|
1322
|
+
external_id: string | null;
|
|
1323
|
+
id: string;
|
|
1324
|
+
payload: Json;
|
|
1325
|
+
provider: string;
|
|
1326
|
+
received_at: string;
|
|
1327
|
+
};
|
|
1328
|
+
Insert: {
|
|
1329
|
+
connection_id: string;
|
|
1330
|
+
consumed_at?: string | null;
|
|
1331
|
+
created_at?: string;
|
|
1332
|
+
event_type: string;
|
|
1333
|
+
external_id?: string | null;
|
|
1334
|
+
id?: string;
|
|
1335
|
+
payload?: Json;
|
|
1336
|
+
provider: string;
|
|
1337
|
+
received_at?: string;
|
|
1338
|
+
};
|
|
1339
|
+
Update: {
|
|
1340
|
+
connection_id?: string;
|
|
1341
|
+
consumed_at?: string | null;
|
|
1342
|
+
created_at?: string;
|
|
1343
|
+
event_type?: string;
|
|
1344
|
+
external_id?: string | null;
|
|
1345
|
+
id?: string;
|
|
1346
|
+
payload?: Json;
|
|
1347
|
+
provider?: string;
|
|
1348
|
+
received_at?: string;
|
|
1349
|
+
};
|
|
1350
|
+
Relationships: [
|
|
1351
|
+
{
|
|
1352
|
+
foreignKeyName: "email_auth_events_connection_id_fkey";
|
|
1353
|
+
columns: ["connection_id"];
|
|
1354
|
+
isOneToOne: false;
|
|
1355
|
+
referencedRelation: "email_auth_connections";
|
|
1356
|
+
referencedColumns: ["id"];
|
|
1357
|
+
},
|
|
1358
|
+
{
|
|
1359
|
+
foreignKeyName: "email_auth_events_connection_id_fkey";
|
|
1360
|
+
columns: ["connection_id"];
|
|
1361
|
+
isOneToOne: false;
|
|
1362
|
+
referencedRelation: "email_auth_connections_safe";
|
|
1363
|
+
referencedColumns: ["id"];
|
|
1364
|
+
}
|
|
1365
|
+
];
|
|
1366
|
+
};
|
|
1367
|
+
email_auth_outbox: {
|
|
1368
|
+
Row: {
|
|
1369
|
+
attempts: number;
|
|
1370
|
+
bcc_addresses: string[];
|
|
1371
|
+
cc_addresses: string[];
|
|
1372
|
+
connection_id: string | null;
|
|
1373
|
+
created_at: string;
|
|
1374
|
+
created_by: string | null;
|
|
1375
|
+
external_message_id: string | null;
|
|
1376
|
+
headers: Json;
|
|
1377
|
+
html_body: string | null;
|
|
1378
|
+
id: string;
|
|
1379
|
+
last_error: string | null;
|
|
1380
|
+
purpose: string;
|
|
1381
|
+
reply_to: string | null;
|
|
1382
|
+
scheduled_at: string;
|
|
1383
|
+
sent_at: string | null;
|
|
1384
|
+
status: string;
|
|
1385
|
+
subject: string;
|
|
1386
|
+
text_body: string | null;
|
|
1387
|
+
to_addresses: string[];
|
|
1388
|
+
updated_at: string;
|
|
1389
|
+
};
|
|
1390
|
+
Insert: {
|
|
1391
|
+
attempts?: number;
|
|
1392
|
+
bcc_addresses?: string[];
|
|
1393
|
+
cc_addresses?: string[];
|
|
1394
|
+
connection_id?: string | null;
|
|
1395
|
+
created_at?: string;
|
|
1396
|
+
created_by?: string | null;
|
|
1397
|
+
external_message_id?: string | null;
|
|
1398
|
+
headers?: Json;
|
|
1399
|
+
html_body?: string | null;
|
|
1400
|
+
id?: string;
|
|
1401
|
+
last_error?: string | null;
|
|
1402
|
+
purpose: string;
|
|
1403
|
+
reply_to?: string | null;
|
|
1404
|
+
scheduled_at?: string;
|
|
1405
|
+
sent_at?: string | null;
|
|
1406
|
+
status?: string;
|
|
1407
|
+
subject: string;
|
|
1408
|
+
text_body?: string | null;
|
|
1409
|
+
to_addresses: string[];
|
|
1410
|
+
updated_at?: string;
|
|
1411
|
+
};
|
|
1412
|
+
Update: {
|
|
1413
|
+
attempts?: number;
|
|
1414
|
+
bcc_addresses?: string[];
|
|
1415
|
+
cc_addresses?: string[];
|
|
1416
|
+
connection_id?: string | null;
|
|
1417
|
+
created_at?: string;
|
|
1418
|
+
created_by?: string | null;
|
|
1419
|
+
external_message_id?: string | null;
|
|
1420
|
+
headers?: Json;
|
|
1421
|
+
html_body?: string | null;
|
|
1422
|
+
id?: string;
|
|
1423
|
+
last_error?: string | null;
|
|
1424
|
+
purpose?: string;
|
|
1425
|
+
reply_to?: string | null;
|
|
1426
|
+
scheduled_at?: string;
|
|
1427
|
+
sent_at?: string | null;
|
|
1428
|
+
status?: string;
|
|
1429
|
+
subject?: string;
|
|
1430
|
+
text_body?: string | null;
|
|
1431
|
+
to_addresses?: string[];
|
|
1432
|
+
updated_at?: string;
|
|
1433
|
+
};
|
|
1434
|
+
Relationships: [
|
|
1435
|
+
{
|
|
1436
|
+
foreignKeyName: "email_auth_outbox_connection_id_fkey";
|
|
1437
|
+
columns: ["connection_id"];
|
|
1438
|
+
isOneToOne: false;
|
|
1439
|
+
referencedRelation: "email_auth_connections";
|
|
1440
|
+
referencedColumns: ["id"];
|
|
1441
|
+
},
|
|
1442
|
+
{
|
|
1443
|
+
foreignKeyName: "email_auth_outbox_connection_id_fkey";
|
|
1444
|
+
columns: ["connection_id"];
|
|
1445
|
+
isOneToOne: false;
|
|
1446
|
+
referencedRelation: "email_auth_connections_safe";
|
|
1447
|
+
referencedColumns: ["id"];
|
|
1448
|
+
}
|
|
1449
|
+
];
|
|
1450
|
+
};
|
|
1451
|
+
email_auth_purpose_settings: {
|
|
1452
|
+
Row: {
|
|
1453
|
+
purpose: string;
|
|
1454
|
+
reply_to: string | null;
|
|
1455
|
+
updated_at: string;
|
|
1456
|
+
updated_by: string | null;
|
|
1457
|
+
};
|
|
1458
|
+
Insert: {
|
|
1459
|
+
purpose: string;
|
|
1460
|
+
reply_to?: string | null;
|
|
1461
|
+
updated_at?: string;
|
|
1462
|
+
updated_by?: string | null;
|
|
1463
|
+
};
|
|
1464
|
+
Update: {
|
|
1465
|
+
purpose?: string;
|
|
1466
|
+
reply_to?: string | null;
|
|
1467
|
+
updated_at?: string;
|
|
1468
|
+
updated_by?: string | null;
|
|
1469
|
+
};
|
|
1470
|
+
Relationships: [];
|
|
1471
|
+
};
|
|
1472
|
+
email_auth_token_refresh_log: {
|
|
1473
|
+
Row: {
|
|
1474
|
+
connection_id: string;
|
|
1475
|
+
error_message: string | null;
|
|
1476
|
+
id: string;
|
|
1477
|
+
refreshed_at: string;
|
|
1478
|
+
success: boolean;
|
|
1479
|
+
trigger_source: string;
|
|
1480
|
+
};
|
|
1481
|
+
Insert: {
|
|
1482
|
+
connection_id: string;
|
|
1483
|
+
error_message?: string | null;
|
|
1484
|
+
id?: string;
|
|
1485
|
+
refreshed_at?: string;
|
|
1486
|
+
success: boolean;
|
|
1487
|
+
trigger_source: string;
|
|
1488
|
+
};
|
|
1489
|
+
Update: {
|
|
1490
|
+
connection_id?: string;
|
|
1491
|
+
error_message?: string | null;
|
|
1492
|
+
id?: string;
|
|
1493
|
+
refreshed_at?: string;
|
|
1494
|
+
success?: boolean;
|
|
1495
|
+
trigger_source?: string;
|
|
1496
|
+
};
|
|
1497
|
+
Relationships: [
|
|
1498
|
+
{
|
|
1499
|
+
foreignKeyName: "email_auth_token_refresh_log_connection_id_fkey";
|
|
1500
|
+
columns: ["connection_id"];
|
|
1501
|
+
isOneToOne: false;
|
|
1502
|
+
referencedRelation: "email_auth_connections";
|
|
1503
|
+
referencedColumns: ["id"];
|
|
1504
|
+
},
|
|
1505
|
+
{
|
|
1506
|
+
foreignKeyName: "email_auth_token_refresh_log_connection_id_fkey";
|
|
1507
|
+
columns: ["connection_id"];
|
|
1508
|
+
isOneToOne: false;
|
|
1509
|
+
referencedRelation: "email_auth_connections_safe";
|
|
1510
|
+
referencedColumns: ["id"];
|
|
1511
|
+
}
|
|
1512
|
+
];
|
|
1513
|
+
};
|
|
1134
1514
|
exact_account_analytics_cache: {
|
|
1135
1515
|
Row: {
|
|
1136
1516
|
account_id: string;
|
|
@@ -1898,6 +2278,42 @@ export type Database = {
|
|
|
1898
2278
|
};
|
|
1899
2279
|
Relationships: [];
|
|
1900
2280
|
};
|
|
2281
|
+
exact_settings: {
|
|
2282
|
+
Row: {
|
|
2283
|
+
client_id: string | null;
|
|
2284
|
+
client_secret: string | null;
|
|
2285
|
+
connection_status: string;
|
|
2286
|
+
created_at: string;
|
|
2287
|
+
division_id: string | null;
|
|
2288
|
+
id: string;
|
|
2289
|
+
last_sync_at: string | null;
|
|
2290
|
+
redirect_uri: string | null;
|
|
2291
|
+
updated_at: string;
|
|
2292
|
+
};
|
|
2293
|
+
Insert: {
|
|
2294
|
+
client_id?: string | null;
|
|
2295
|
+
client_secret?: string | null;
|
|
2296
|
+
connection_status?: string;
|
|
2297
|
+
created_at?: string;
|
|
2298
|
+
division_id?: string | null;
|
|
2299
|
+
id?: string;
|
|
2300
|
+
last_sync_at?: string | null;
|
|
2301
|
+
redirect_uri?: string | null;
|
|
2302
|
+
updated_at?: string;
|
|
2303
|
+
};
|
|
2304
|
+
Update: {
|
|
2305
|
+
client_id?: string | null;
|
|
2306
|
+
client_secret?: string | null;
|
|
2307
|
+
connection_status?: string;
|
|
2308
|
+
created_at?: string;
|
|
2309
|
+
division_id?: string | null;
|
|
2310
|
+
id?: string;
|
|
2311
|
+
last_sync_at?: string | null;
|
|
2312
|
+
redirect_uri?: string | null;
|
|
2313
|
+
updated_at?: string;
|
|
2314
|
+
};
|
|
2315
|
+
Relationships: [];
|
|
2316
|
+
};
|
|
1901
2317
|
exact_sync_state: {
|
|
1902
2318
|
Row: {
|
|
1903
2319
|
connection_id: string;
|
|
@@ -1961,6 +2377,63 @@ export type Database = {
|
|
|
1961
2377
|
};
|
|
1962
2378
|
Relationships: [];
|
|
1963
2379
|
};
|
|
2380
|
+
extra_categories: {
|
|
2381
|
+
Row: {
|
|
2382
|
+
created_at: string;
|
|
2383
|
+
id: string;
|
|
2384
|
+
name: string;
|
|
2385
|
+
sort_order: number;
|
|
2386
|
+
updated_at: string;
|
|
2387
|
+
};
|
|
2388
|
+
Insert: {
|
|
2389
|
+
created_at?: string;
|
|
2390
|
+
id?: string;
|
|
2391
|
+
name: string;
|
|
2392
|
+
sort_order?: number;
|
|
2393
|
+
updated_at?: string;
|
|
2394
|
+
};
|
|
2395
|
+
Update: {
|
|
2396
|
+
created_at?: string;
|
|
2397
|
+
id?: string;
|
|
2398
|
+
name?: string;
|
|
2399
|
+
sort_order?: number;
|
|
2400
|
+
updated_at?: string;
|
|
2401
|
+
};
|
|
2402
|
+
Relationships: [];
|
|
2403
|
+
};
|
|
2404
|
+
extras: {
|
|
2405
|
+
Row: {
|
|
2406
|
+
category: string;
|
|
2407
|
+
created_at: string;
|
|
2408
|
+
exact_article_id: string | null;
|
|
2409
|
+
id: string;
|
|
2410
|
+
is_active: boolean;
|
|
2411
|
+
name: string;
|
|
2412
|
+
price: number;
|
|
2413
|
+
pricing_type: string;
|
|
2414
|
+
};
|
|
2415
|
+
Insert: {
|
|
2416
|
+
category: string;
|
|
2417
|
+
created_at?: string;
|
|
2418
|
+
exact_article_id?: string | null;
|
|
2419
|
+
id?: string;
|
|
2420
|
+
is_active?: boolean;
|
|
2421
|
+
name: string;
|
|
2422
|
+
price?: number;
|
|
2423
|
+
pricing_type?: string;
|
|
2424
|
+
};
|
|
2425
|
+
Update: {
|
|
2426
|
+
category?: string;
|
|
2427
|
+
created_at?: string;
|
|
2428
|
+
exact_article_id?: string | null;
|
|
2429
|
+
id?: string;
|
|
2430
|
+
is_active?: boolean;
|
|
2431
|
+
name?: string;
|
|
2432
|
+
price?: number;
|
|
2433
|
+
pricing_type?: string;
|
|
2434
|
+
};
|
|
2435
|
+
Relationships: [];
|
|
2436
|
+
};
|
|
1964
2437
|
floricode_connection_settings: {
|
|
1965
2438
|
Row: {
|
|
1966
2439
|
catalog_key: string | null;
|
|
@@ -2595,39 +3068,138 @@ export type Database = {
|
|
|
2595
3068
|
foreignKeyName: "imap_sync_log_account_id_fkey";
|
|
2596
3069
|
columns: ["account_id"];
|
|
2597
3070
|
isOneToOne: false;
|
|
2598
|
-
referencedRelation: "imap_accounts";
|
|
3071
|
+
referencedRelation: "imap_accounts";
|
|
3072
|
+
referencedColumns: ["id"];
|
|
3073
|
+
},
|
|
3074
|
+
{
|
|
3075
|
+
foreignKeyName: "imap_sync_log_profile_id_fkey";
|
|
3076
|
+
columns: ["profile_id"];
|
|
3077
|
+
isOneToOne: false;
|
|
3078
|
+
referencedRelation: "imap_profiles";
|
|
3079
|
+
referencedColumns: ["id"];
|
|
3080
|
+
}
|
|
3081
|
+
];
|
|
3082
|
+
};
|
|
3083
|
+
inventory_settings: {
|
|
3084
|
+
Row: {
|
|
3085
|
+
created_at: string;
|
|
3086
|
+
hierarchy_levels: string[];
|
|
3087
|
+
id: string;
|
|
3088
|
+
updated_at: string;
|
|
3089
|
+
visible_columns: string[];
|
|
3090
|
+
};
|
|
3091
|
+
Insert: {
|
|
3092
|
+
created_at?: string;
|
|
3093
|
+
hierarchy_levels?: string[];
|
|
3094
|
+
id?: string;
|
|
3095
|
+
updated_at?: string;
|
|
3096
|
+
visible_columns?: string[];
|
|
3097
|
+
};
|
|
3098
|
+
Update: {
|
|
3099
|
+
created_at?: string;
|
|
3100
|
+
hierarchy_levels?: string[];
|
|
3101
|
+
id?: string;
|
|
3102
|
+
updated_at?: string;
|
|
3103
|
+
visible_columns?: string[];
|
|
3104
|
+
};
|
|
3105
|
+
Relationships: [];
|
|
3106
|
+
};
|
|
3107
|
+
invoice_run_items: {
|
|
3108
|
+
Row: {
|
|
3109
|
+
booking_id: string | null;
|
|
3110
|
+
company_name: string | null;
|
|
3111
|
+
created_at: string;
|
|
3112
|
+
customer_email: string | null;
|
|
3113
|
+
description: string | null;
|
|
3114
|
+
exact_article_id: string | null;
|
|
3115
|
+
id: string;
|
|
3116
|
+
invoice_run_id: string | null;
|
|
3117
|
+
quantity: number | null;
|
|
3118
|
+
total_excl_vat: number | null;
|
|
3119
|
+
total_incl_vat: number | null;
|
|
3120
|
+
unit_price: number | null;
|
|
3121
|
+
vat_amount: number | null;
|
|
3122
|
+
};
|
|
3123
|
+
Insert: {
|
|
3124
|
+
booking_id?: string | null;
|
|
3125
|
+
company_name?: string | null;
|
|
3126
|
+
created_at?: string;
|
|
3127
|
+
customer_email?: string | null;
|
|
3128
|
+
description?: string | null;
|
|
3129
|
+
exact_article_id?: string | null;
|
|
3130
|
+
id?: string;
|
|
3131
|
+
invoice_run_id?: string | null;
|
|
3132
|
+
quantity?: number | null;
|
|
3133
|
+
total_excl_vat?: number | null;
|
|
3134
|
+
total_incl_vat?: number | null;
|
|
3135
|
+
unit_price?: number | null;
|
|
3136
|
+
vat_amount?: number | null;
|
|
3137
|
+
};
|
|
3138
|
+
Update: {
|
|
3139
|
+
booking_id?: string | null;
|
|
3140
|
+
company_name?: string | null;
|
|
3141
|
+
created_at?: string;
|
|
3142
|
+
customer_email?: string | null;
|
|
3143
|
+
description?: string | null;
|
|
3144
|
+
exact_article_id?: string | null;
|
|
3145
|
+
id?: string;
|
|
3146
|
+
invoice_run_id?: string | null;
|
|
3147
|
+
quantity?: number | null;
|
|
3148
|
+
total_excl_vat?: number | null;
|
|
3149
|
+
total_incl_vat?: number | null;
|
|
3150
|
+
unit_price?: number | null;
|
|
3151
|
+
vat_amount?: number | null;
|
|
3152
|
+
};
|
|
3153
|
+
Relationships: [
|
|
3154
|
+
{
|
|
3155
|
+
foreignKeyName: "invoice_run_items_booking_id_fkey";
|
|
3156
|
+
columns: ["booking_id"];
|
|
3157
|
+
isOneToOne: false;
|
|
3158
|
+
referencedRelation: "bookings";
|
|
2599
3159
|
referencedColumns: ["id"];
|
|
2600
3160
|
},
|
|
2601
3161
|
{
|
|
2602
|
-
foreignKeyName: "
|
|
2603
|
-
columns: ["
|
|
3162
|
+
foreignKeyName: "invoice_run_items_invoice_run_id_fkey";
|
|
3163
|
+
columns: ["invoice_run_id"];
|
|
2604
3164
|
isOneToOne: false;
|
|
2605
|
-
referencedRelation: "
|
|
3165
|
+
referencedRelation: "invoice_runs";
|
|
2606
3166
|
referencedColumns: ["id"];
|
|
2607
3167
|
}
|
|
2608
3168
|
];
|
|
2609
3169
|
};
|
|
2610
|
-
|
|
3170
|
+
invoice_runs: {
|
|
2611
3171
|
Row: {
|
|
2612
3172
|
created_at: string;
|
|
2613
|
-
|
|
3173
|
+
created_by: string | null;
|
|
2614
3174
|
id: string;
|
|
2615
|
-
|
|
2616
|
-
|
|
3175
|
+
period_end: string;
|
|
3176
|
+
period_start: string;
|
|
3177
|
+
status: string;
|
|
3178
|
+
total_excl_vat: number | null;
|
|
3179
|
+
total_incl_vat: number | null;
|
|
3180
|
+
vat_amount: number | null;
|
|
2617
3181
|
};
|
|
2618
3182
|
Insert: {
|
|
2619
3183
|
created_at?: string;
|
|
2620
|
-
|
|
3184
|
+
created_by?: string | null;
|
|
2621
3185
|
id?: string;
|
|
2622
|
-
|
|
2623
|
-
|
|
3186
|
+
period_end: string;
|
|
3187
|
+
period_start: string;
|
|
3188
|
+
status?: string;
|
|
3189
|
+
total_excl_vat?: number | null;
|
|
3190
|
+
total_incl_vat?: number | null;
|
|
3191
|
+
vat_amount?: number | null;
|
|
2624
3192
|
};
|
|
2625
3193
|
Update: {
|
|
2626
3194
|
created_at?: string;
|
|
2627
|
-
|
|
3195
|
+
created_by?: string | null;
|
|
2628
3196
|
id?: string;
|
|
2629
|
-
|
|
2630
|
-
|
|
3197
|
+
period_end?: string;
|
|
3198
|
+
period_start?: string;
|
|
3199
|
+
status?: string;
|
|
3200
|
+
total_excl_vat?: number | null;
|
|
3201
|
+
total_incl_vat?: number | null;
|
|
3202
|
+
vat_amount?: number | null;
|
|
2631
3203
|
};
|
|
2632
3204
|
Relationships: [];
|
|
2633
3205
|
};
|
|
@@ -2661,6 +3233,7 @@ export type Database = {
|
|
|
2661
3233
|
body_text: string | null;
|
|
2662
3234
|
created_at: string;
|
|
2663
3235
|
error_message: string | null;
|
|
3236
|
+
external_id: string | null;
|
|
2664
3237
|
from_email: string | null;
|
|
2665
3238
|
from_name: string | null;
|
|
2666
3239
|
id: string;
|
|
@@ -2670,7 +3243,7 @@ export type Database = {
|
|
|
2670
3243
|
received_at: string | null;
|
|
2671
3244
|
status: string;
|
|
2672
3245
|
subject: string | null;
|
|
2673
|
-
uid: number;
|
|
3246
|
+
uid: number | null;
|
|
2674
3247
|
updated_at: string;
|
|
2675
3248
|
};
|
|
2676
3249
|
Insert: {
|
|
@@ -2678,6 +3251,7 @@ export type Database = {
|
|
|
2678
3251
|
body_text?: string | null;
|
|
2679
3252
|
created_at?: string;
|
|
2680
3253
|
error_message?: string | null;
|
|
3254
|
+
external_id?: string | null;
|
|
2681
3255
|
from_email?: string | null;
|
|
2682
3256
|
from_name?: string | null;
|
|
2683
3257
|
id?: string;
|
|
@@ -2687,7 +3261,7 @@ export type Database = {
|
|
|
2687
3261
|
received_at?: string | null;
|
|
2688
3262
|
status?: string;
|
|
2689
3263
|
subject?: string | null;
|
|
2690
|
-
uid
|
|
3264
|
+
uid?: number | null;
|
|
2691
3265
|
updated_at?: string;
|
|
2692
3266
|
};
|
|
2693
3267
|
Update: {
|
|
@@ -2695,6 +3269,7 @@ export type Database = {
|
|
|
2695
3269
|
body_text?: string | null;
|
|
2696
3270
|
created_at?: string;
|
|
2697
3271
|
error_message?: string | null;
|
|
3272
|
+
external_id?: string | null;
|
|
2698
3273
|
from_email?: string | null;
|
|
2699
3274
|
from_name?: string | null;
|
|
2700
3275
|
id?: string;
|
|
@@ -2704,7 +3279,7 @@ export type Database = {
|
|
|
2704
3279
|
received_at?: string | null;
|
|
2705
3280
|
status?: string;
|
|
2706
3281
|
subject?: string | null;
|
|
2707
|
-
uid?: number;
|
|
3282
|
+
uid?: number | null;
|
|
2708
3283
|
updated_at?: string;
|
|
2709
3284
|
};
|
|
2710
3285
|
Relationships: [
|
|
@@ -2987,6 +3562,62 @@ export type Database = {
|
|
|
2987
3562
|
};
|
|
2988
3563
|
Relationships: [];
|
|
2989
3564
|
};
|
|
3565
|
+
monteurs: {
|
|
3566
|
+
Row: {
|
|
3567
|
+
avatar_url: string | null;
|
|
3568
|
+
color: string | null;
|
|
3569
|
+
created_at: string;
|
|
3570
|
+
email: string | null;
|
|
3571
|
+
id: string;
|
|
3572
|
+
is_active: boolean;
|
|
3573
|
+
leave_balance_hours: number;
|
|
3574
|
+
name: string;
|
|
3575
|
+
persnr: number | null;
|
|
3576
|
+
phone: string | null;
|
|
3577
|
+
role: string;
|
|
3578
|
+
tenant_id: string;
|
|
3579
|
+
updated_at: string;
|
|
3580
|
+
};
|
|
3581
|
+
Insert: {
|
|
3582
|
+
avatar_url?: string | null;
|
|
3583
|
+
color?: string | null;
|
|
3584
|
+
created_at?: string;
|
|
3585
|
+
email?: string | null;
|
|
3586
|
+
id?: string;
|
|
3587
|
+
is_active?: boolean;
|
|
3588
|
+
leave_balance_hours?: number;
|
|
3589
|
+
name: string;
|
|
3590
|
+
persnr?: number | null;
|
|
3591
|
+
phone?: string | null;
|
|
3592
|
+
role?: string;
|
|
3593
|
+
tenant_id: string;
|
|
3594
|
+
updated_at?: string;
|
|
3595
|
+
};
|
|
3596
|
+
Update: {
|
|
3597
|
+
avatar_url?: string | null;
|
|
3598
|
+
color?: string | null;
|
|
3599
|
+
created_at?: string;
|
|
3600
|
+
email?: string | null;
|
|
3601
|
+
id?: string;
|
|
3602
|
+
is_active?: boolean;
|
|
3603
|
+
leave_balance_hours?: number;
|
|
3604
|
+
name?: string;
|
|
3605
|
+
persnr?: number | null;
|
|
3606
|
+
phone?: string | null;
|
|
3607
|
+
role?: string;
|
|
3608
|
+
tenant_id?: string;
|
|
3609
|
+
updated_at?: string;
|
|
3610
|
+
};
|
|
3611
|
+
Relationships: [
|
|
3612
|
+
{
|
|
3613
|
+
foreignKeyName: "monteurs_tenant_id_fkey";
|
|
3614
|
+
columns: ["tenant_id"];
|
|
3615
|
+
isOneToOne: false;
|
|
3616
|
+
referencedRelation: "tenants";
|
|
3617
|
+
referencedColumns: ["id"];
|
|
3618
|
+
}
|
|
3619
|
+
];
|
|
3620
|
+
};
|
|
2990
3621
|
notifications: {
|
|
2991
3622
|
Row: {
|
|
2992
3623
|
created_at: string;
|
|
@@ -3844,6 +4475,7 @@ export type Database = {
|
|
|
3844
4475
|
email: string | null;
|
|
3845
4476
|
id: string;
|
|
3846
4477
|
notification_preferences: Json;
|
|
4478
|
+
tenant_id: string | null;
|
|
3847
4479
|
updated_at: string;
|
|
3848
4480
|
};
|
|
3849
4481
|
Insert: {
|
|
@@ -3852,6 +4484,7 @@ export type Database = {
|
|
|
3852
4484
|
email?: string | null;
|
|
3853
4485
|
id: string;
|
|
3854
4486
|
notification_preferences?: Json;
|
|
4487
|
+
tenant_id?: string | null;
|
|
3855
4488
|
updated_at?: string;
|
|
3856
4489
|
};
|
|
3857
4490
|
Update: {
|
|
@@ -3860,9 +4493,18 @@ export type Database = {
|
|
|
3860
4493
|
email?: string | null;
|
|
3861
4494
|
id?: string;
|
|
3862
4495
|
notification_preferences?: Json;
|
|
4496
|
+
tenant_id?: string | null;
|
|
3863
4497
|
updated_at?: string;
|
|
3864
4498
|
};
|
|
3865
|
-
Relationships: [
|
|
4499
|
+
Relationships: [
|
|
4500
|
+
{
|
|
4501
|
+
foreignKeyName: "profiles_tenant_id_fkey";
|
|
4502
|
+
columns: ["tenant_id"];
|
|
4503
|
+
isOneToOne: false;
|
|
4504
|
+
referencedRelation: "tenants";
|
|
4505
|
+
referencedColumns: ["id"];
|
|
4506
|
+
}
|
|
4507
|
+
];
|
|
3866
4508
|
};
|
|
3867
4509
|
projects: {
|
|
3868
4510
|
Row: {
|
|
@@ -4594,6 +5236,83 @@ export type Database = {
|
|
|
4594
5236
|
}
|
|
4595
5237
|
];
|
|
4596
5238
|
};
|
|
5239
|
+
reception_notifications: {
|
|
5240
|
+
Row: {
|
|
5241
|
+
booking_id: string | null;
|
|
5242
|
+
created_at: string;
|
|
5243
|
+
id: string;
|
|
5244
|
+
is_read: boolean;
|
|
5245
|
+
message: string;
|
|
5246
|
+
recipient_email: string | null;
|
|
5247
|
+
title: string;
|
|
5248
|
+
type: string;
|
|
5249
|
+
};
|
|
5250
|
+
Insert: {
|
|
5251
|
+
booking_id?: string | null;
|
|
5252
|
+
created_at?: string;
|
|
5253
|
+
id?: string;
|
|
5254
|
+
is_read?: boolean;
|
|
5255
|
+
message: string;
|
|
5256
|
+
recipient_email?: string | null;
|
|
5257
|
+
title: string;
|
|
5258
|
+
type: string;
|
|
5259
|
+
};
|
|
5260
|
+
Update: {
|
|
5261
|
+
booking_id?: string | null;
|
|
5262
|
+
created_at?: string;
|
|
5263
|
+
id?: string;
|
|
5264
|
+
is_read?: boolean;
|
|
5265
|
+
message?: string;
|
|
5266
|
+
recipient_email?: string | null;
|
|
5267
|
+
title?: string;
|
|
5268
|
+
type?: string;
|
|
5269
|
+
};
|
|
5270
|
+
Relationships: [
|
|
5271
|
+
{
|
|
5272
|
+
foreignKeyName: "reception_notifications_booking_id_fkey";
|
|
5273
|
+
columns: ["booking_id"];
|
|
5274
|
+
isOneToOne: false;
|
|
5275
|
+
referencedRelation: "bookings";
|
|
5276
|
+
referencedColumns: ["id"];
|
|
5277
|
+
}
|
|
5278
|
+
];
|
|
5279
|
+
};
|
|
5280
|
+
rooms: {
|
|
5281
|
+
Row: {
|
|
5282
|
+
capacity: number;
|
|
5283
|
+
color_code: string | null;
|
|
5284
|
+
created_at: string;
|
|
5285
|
+
description: string | null;
|
|
5286
|
+
hourly_rate: number;
|
|
5287
|
+
id: string;
|
|
5288
|
+
image_url: string | null;
|
|
5289
|
+
is_active: boolean;
|
|
5290
|
+
name: string;
|
|
5291
|
+
};
|
|
5292
|
+
Insert: {
|
|
5293
|
+
capacity?: number;
|
|
5294
|
+
color_code?: string | null;
|
|
5295
|
+
created_at?: string;
|
|
5296
|
+
description?: string | null;
|
|
5297
|
+
hourly_rate?: number;
|
|
5298
|
+
id?: string;
|
|
5299
|
+
image_url?: string | null;
|
|
5300
|
+
is_active?: boolean;
|
|
5301
|
+
name: string;
|
|
5302
|
+
};
|
|
5303
|
+
Update: {
|
|
5304
|
+
capacity?: number;
|
|
5305
|
+
color_code?: string | null;
|
|
5306
|
+
created_at?: string;
|
|
5307
|
+
description?: string | null;
|
|
5308
|
+
hourly_rate?: number;
|
|
5309
|
+
id?: string;
|
|
5310
|
+
image_url?: string | null;
|
|
5311
|
+
is_active?: boolean;
|
|
5312
|
+
name?: string;
|
|
5313
|
+
};
|
|
5314
|
+
Relationships: [];
|
|
5315
|
+
};
|
|
4597
5316
|
supplier_products: {
|
|
4598
5317
|
Row: {
|
|
4599
5318
|
article_number: string | null;
|
|
@@ -4689,6 +5408,30 @@ export type Database = {
|
|
|
4689
5408
|
};
|
|
4690
5409
|
Relationships: [];
|
|
4691
5410
|
};
|
|
5411
|
+
tenants: {
|
|
5412
|
+
Row: {
|
|
5413
|
+
created_at: string;
|
|
5414
|
+
id: string;
|
|
5415
|
+
name: string;
|
|
5416
|
+
slug: string | null;
|
|
5417
|
+
updated_at: string;
|
|
5418
|
+
};
|
|
5419
|
+
Insert: {
|
|
5420
|
+
created_at?: string;
|
|
5421
|
+
id?: string;
|
|
5422
|
+
name?: string;
|
|
5423
|
+
slug?: string | null;
|
|
5424
|
+
updated_at?: string;
|
|
5425
|
+
};
|
|
5426
|
+
Update: {
|
|
5427
|
+
created_at?: string;
|
|
5428
|
+
id?: string;
|
|
5429
|
+
name?: string;
|
|
5430
|
+
slug?: string | null;
|
|
5431
|
+
updated_at?: string;
|
|
5432
|
+
};
|
|
5433
|
+
Relationships: [];
|
|
5434
|
+
};
|
|
4692
5435
|
trade_item_drafts: {
|
|
4693
5436
|
Row: {
|
|
4694
5437
|
connection_id: string | null;
|
|
@@ -5378,6 +6121,174 @@ export type Database = {
|
|
|
5378
6121
|
}
|
|
5379
6122
|
];
|
|
5380
6123
|
};
|
|
6124
|
+
work_order_monteurs: {
|
|
6125
|
+
Row: {
|
|
6126
|
+
created_at: string;
|
|
6127
|
+
id: string;
|
|
6128
|
+
monteur_id: string;
|
|
6129
|
+
work_order_id: string;
|
|
6130
|
+
};
|
|
6131
|
+
Insert: {
|
|
6132
|
+
created_at?: string;
|
|
6133
|
+
id?: string;
|
|
6134
|
+
monteur_id: string;
|
|
6135
|
+
work_order_id: string;
|
|
6136
|
+
};
|
|
6137
|
+
Update: {
|
|
6138
|
+
created_at?: string;
|
|
6139
|
+
id?: string;
|
|
6140
|
+
monteur_id?: string;
|
|
6141
|
+
work_order_id?: string;
|
|
6142
|
+
};
|
|
6143
|
+
Relationships: [
|
|
6144
|
+
{
|
|
6145
|
+
foreignKeyName: "work_order_monteurs_monteur_id_fkey";
|
|
6146
|
+
columns: ["monteur_id"];
|
|
6147
|
+
isOneToOne: false;
|
|
6148
|
+
referencedRelation: "monteurs";
|
|
6149
|
+
referencedColumns: ["id"];
|
|
6150
|
+
},
|
|
6151
|
+
{
|
|
6152
|
+
foreignKeyName: "work_order_monteurs_work_order_id_fkey";
|
|
6153
|
+
columns: ["work_order_id"];
|
|
6154
|
+
isOneToOne: false;
|
|
6155
|
+
referencedRelation: "work_orders";
|
|
6156
|
+
referencedColumns: ["id"];
|
|
6157
|
+
}
|
|
6158
|
+
];
|
|
6159
|
+
};
|
|
6160
|
+
work_orders: {
|
|
6161
|
+
Row: {
|
|
6162
|
+
assigned_to: string | null;
|
|
6163
|
+
city: string | null;
|
|
6164
|
+
contact_person: string | null;
|
|
6165
|
+
created_at: string;
|
|
6166
|
+
custom_fields: Json;
|
|
6167
|
+
customer_name: string;
|
|
6168
|
+
description: string;
|
|
6169
|
+
email: string | null;
|
|
6170
|
+
email_source: string | null;
|
|
6171
|
+
estimated_duration_hours: number | null;
|
|
6172
|
+
external_reference: string | null;
|
|
6173
|
+
follow_up_needed: boolean;
|
|
6174
|
+
id: string;
|
|
6175
|
+
mandate: string;
|
|
6176
|
+
mandate_budget: number;
|
|
6177
|
+
mandate_used: number;
|
|
6178
|
+
order_number: string;
|
|
6179
|
+
parent_work_order_id: string | null;
|
|
6180
|
+
pdf_url: string | null;
|
|
6181
|
+
phone: string | null;
|
|
6182
|
+
postal_code: string;
|
|
6183
|
+
priority: string;
|
|
6184
|
+
project_number: string | null;
|
|
6185
|
+
report_validated: boolean;
|
|
6186
|
+
room_number: string;
|
|
6187
|
+
scheduled_date: string | null;
|
|
6188
|
+
scheduled_end_time: string | null;
|
|
6189
|
+
scheduled_start_time: string | null;
|
|
6190
|
+
status: string;
|
|
6191
|
+
tenant_id: string;
|
|
6192
|
+
total_hours_worked: number | null;
|
|
6193
|
+
total_price: number | null;
|
|
6194
|
+
travel_time_minutes: number | null;
|
|
6195
|
+
updated_at: string;
|
|
6196
|
+
work_address: string;
|
|
6197
|
+
work_report: string | null;
|
|
6198
|
+
};
|
|
6199
|
+
Insert: {
|
|
6200
|
+
assigned_to?: string | null;
|
|
6201
|
+
city?: string | null;
|
|
6202
|
+
contact_person?: string | null;
|
|
6203
|
+
created_at?: string;
|
|
6204
|
+
custom_fields?: Json;
|
|
6205
|
+
customer_name?: string;
|
|
6206
|
+
description?: string;
|
|
6207
|
+
email?: string | null;
|
|
6208
|
+
email_source?: string | null;
|
|
6209
|
+
estimated_duration_hours?: number | null;
|
|
6210
|
+
external_reference?: string | null;
|
|
6211
|
+
follow_up_needed?: boolean;
|
|
6212
|
+
id?: string;
|
|
6213
|
+
mandate?: string;
|
|
6214
|
+
mandate_budget?: number;
|
|
6215
|
+
mandate_used?: number;
|
|
6216
|
+
order_number?: string;
|
|
6217
|
+
parent_work_order_id?: string | null;
|
|
6218
|
+
pdf_url?: string | null;
|
|
6219
|
+
phone?: string | null;
|
|
6220
|
+
postal_code?: string;
|
|
6221
|
+
priority?: string;
|
|
6222
|
+
project_number?: string | null;
|
|
6223
|
+
report_validated?: boolean;
|
|
6224
|
+
room_number?: string;
|
|
6225
|
+
scheduled_date?: string | null;
|
|
6226
|
+
scheduled_end_time?: string | null;
|
|
6227
|
+
scheduled_start_time?: string | null;
|
|
6228
|
+
status?: string;
|
|
6229
|
+
tenant_id: string;
|
|
6230
|
+
total_hours_worked?: number | null;
|
|
6231
|
+
total_price?: number | null;
|
|
6232
|
+
travel_time_minutes?: number | null;
|
|
6233
|
+
updated_at?: string;
|
|
6234
|
+
work_address?: string;
|
|
6235
|
+
work_report?: string | null;
|
|
6236
|
+
};
|
|
6237
|
+
Update: {
|
|
6238
|
+
assigned_to?: string | null;
|
|
6239
|
+
city?: string | null;
|
|
6240
|
+
contact_person?: string | null;
|
|
6241
|
+
created_at?: string;
|
|
6242
|
+
custom_fields?: Json;
|
|
6243
|
+
customer_name?: string;
|
|
6244
|
+
description?: string;
|
|
6245
|
+
email?: string | null;
|
|
6246
|
+
email_source?: string | null;
|
|
6247
|
+
estimated_duration_hours?: number | null;
|
|
6248
|
+
external_reference?: string | null;
|
|
6249
|
+
follow_up_needed?: boolean;
|
|
6250
|
+
id?: string;
|
|
6251
|
+
mandate?: string;
|
|
6252
|
+
mandate_budget?: number;
|
|
6253
|
+
mandate_used?: number;
|
|
6254
|
+
order_number?: string;
|
|
6255
|
+
parent_work_order_id?: string | null;
|
|
6256
|
+
pdf_url?: string | null;
|
|
6257
|
+
phone?: string | null;
|
|
6258
|
+
postal_code?: string;
|
|
6259
|
+
priority?: string;
|
|
6260
|
+
project_number?: string | null;
|
|
6261
|
+
report_validated?: boolean;
|
|
6262
|
+
room_number?: string;
|
|
6263
|
+
scheduled_date?: string | null;
|
|
6264
|
+
scheduled_end_time?: string | null;
|
|
6265
|
+
scheduled_start_time?: string | null;
|
|
6266
|
+
status?: string;
|
|
6267
|
+
tenant_id?: string;
|
|
6268
|
+
total_hours_worked?: number | null;
|
|
6269
|
+
total_price?: number | null;
|
|
6270
|
+
travel_time_minutes?: number | null;
|
|
6271
|
+
updated_at?: string;
|
|
6272
|
+
work_address?: string;
|
|
6273
|
+
work_report?: string | null;
|
|
6274
|
+
};
|
|
6275
|
+
Relationships: [
|
|
6276
|
+
{
|
|
6277
|
+
foreignKeyName: "work_orders_parent_work_order_id_fkey";
|
|
6278
|
+
columns: ["parent_work_order_id"];
|
|
6279
|
+
isOneToOne: false;
|
|
6280
|
+
referencedRelation: "work_orders";
|
|
6281
|
+
referencedColumns: ["id"];
|
|
6282
|
+
},
|
|
6283
|
+
{
|
|
6284
|
+
foreignKeyName: "work_orders_tenant_id_fkey";
|
|
6285
|
+
columns: ["tenant_id"];
|
|
6286
|
+
isOneToOne: false;
|
|
6287
|
+
referencedRelation: "tenants";
|
|
6288
|
+
referencedColumns: ["id"];
|
|
6289
|
+
}
|
|
6290
|
+
];
|
|
6291
|
+
};
|
|
5381
6292
|
};
|
|
5382
6293
|
Views: {
|
|
5383
6294
|
email_auth_connections_safe: {
|
|
@@ -5402,6 +6313,7 @@ export type Database = {
|
|
|
5402
6313
|
last_verified_at: string | null;
|
|
5403
6314
|
oauth_mode: string | null;
|
|
5404
6315
|
provider: string | null;
|
|
6316
|
+
purpose_assignments: Json | null;
|
|
5405
6317
|
scopes: string[] | null;
|
|
5406
6318
|
smtp_host: string | null;
|
|
5407
6319
|
smtp_port: number | null;
|
|
@@ -5432,6 +6344,7 @@ export type Database = {
|
|
|
5432
6344
|
last_verified_at?: string | null;
|
|
5433
6345
|
oauth_mode?: string | null;
|
|
5434
6346
|
provider?: string | null;
|
|
6347
|
+
purpose_assignments?: Json | null;
|
|
5435
6348
|
scopes?: string[] | null;
|
|
5436
6349
|
smtp_host?: string | null;
|
|
5437
6350
|
smtp_port?: number | null;
|
|
@@ -5462,6 +6375,7 @@ export type Database = {
|
|
|
5462
6375
|
last_verified_at?: string | null;
|
|
5463
6376
|
oauth_mode?: string | null;
|
|
5464
6377
|
provider?: string | null;
|
|
6378
|
+
purpose_assignments?: Json | null;
|
|
5465
6379
|
scopes?: string[] | null;
|
|
5466
6380
|
smtp_host?: string | null;
|
|
5467
6381
|
smtp_port?: number | null;
|
|
@@ -5616,6 +6530,33 @@ export type Database = {
|
|
|
5616
6530
|
};
|
|
5617
6531
|
Returns: string;
|
|
5618
6532
|
};
|
|
6533
|
+
email_auth_fetch_message: {
|
|
6534
|
+
Args: {
|
|
6535
|
+
_connection_id: string;
|
|
6536
|
+
_external_id: string;
|
|
6537
|
+
};
|
|
6538
|
+
Returns: Json;
|
|
6539
|
+
};
|
|
6540
|
+
email_auth_for_purpose: {
|
|
6541
|
+
Args: {
|
|
6542
|
+
_direction: string;
|
|
6543
|
+
_purpose: string;
|
|
6544
|
+
};
|
|
6545
|
+
Returns: {
|
|
6546
|
+
account_email: string;
|
|
6547
|
+
display_name: string;
|
|
6548
|
+
id: string;
|
|
6549
|
+
last_error: string;
|
|
6550
|
+
last_verified_at: string;
|
|
6551
|
+
needs_reauth: boolean;
|
|
6552
|
+
provider: string;
|
|
6553
|
+
status: string;
|
|
6554
|
+
}[];
|
|
6555
|
+
};
|
|
6556
|
+
ensure_user_tenant: {
|
|
6557
|
+
Args: never;
|
|
6558
|
+
Returns: string;
|
|
6559
|
+
};
|
|
5619
6560
|
exact_decrypt: {
|
|
5620
6561
|
Args: {
|
|
5621
6562
|
cipher: string;
|
|
@@ -5688,6 +6629,18 @@ export type Database = {
|
|
|
5688
6629
|
};
|
|
5689
6630
|
Returns: Json;
|
|
5690
6631
|
};
|
|
6632
|
+
get_room_busy_windows: {
|
|
6633
|
+
Args: {
|
|
6634
|
+
p_from: string;
|
|
6635
|
+
p_to: string;
|
|
6636
|
+
};
|
|
6637
|
+
Returns: {
|
|
6638
|
+
end_time: string;
|
|
6639
|
+
room_id: string;
|
|
6640
|
+
start_time: string;
|
|
6641
|
+
status: string;
|
|
6642
|
+
}[];
|
|
6643
|
+
};
|
|
5691
6644
|
get_twinfield_cron_jobs: {
|
|
5692
6645
|
Args: never;
|
|
5693
6646
|
Returns: {
|
|
@@ -5697,6 +6650,16 @@ export type Database = {
|
|
|
5697
6650
|
url: string;
|
|
5698
6651
|
}[];
|
|
5699
6652
|
};
|
|
6653
|
+
get_user_tenant_id: {
|
|
6654
|
+
Args: never;
|
|
6655
|
+
Returns: string;
|
|
6656
|
+
};
|
|
6657
|
+
get_work_order_tenant_id: {
|
|
6658
|
+
Args: {
|
|
6659
|
+
wo_id: string;
|
|
6660
|
+
};
|
|
6661
|
+
Returns: string;
|
|
6662
|
+
};
|
|
5700
6663
|
has_role: {
|
|
5701
6664
|
Args: {
|
|
5702
6665
|
_role: Database["public"]["Enums"]["app_role"];
|
|
@@ -5704,6 +6667,21 @@ export type Database = {
|
|
|
5704
6667
|
};
|
|
5705
6668
|
Returns: boolean;
|
|
5706
6669
|
};
|
|
6670
|
+
is_authenticated: {
|
|
6671
|
+
Args: never;
|
|
6672
|
+
Returns: boolean;
|
|
6673
|
+
};
|
|
6674
|
+
is_developer: {
|
|
6675
|
+
Args: never;
|
|
6676
|
+
Returns: boolean;
|
|
6677
|
+
};
|
|
6678
|
+
next_work_order_number: {
|
|
6679
|
+
Args: {
|
|
6680
|
+
p_parent_work_order_id?: string;
|
|
6681
|
+
p_tenant_id: string;
|
|
6682
|
+
};
|
|
6683
|
+
Returns: string;
|
|
6684
|
+
};
|
|
5707
6685
|
normalize_vat: {
|
|
5708
6686
|
Args: {
|
|
5709
6687
|
v: string;
|
|
@@ -5825,7 +6803,7 @@ export type Database = {
|
|
|
5825
6803
|
};
|
|
5826
6804
|
};
|
|
5827
6805
|
Enums: {
|
|
5828
|
-
app_role: "admin" | "manager" | "warehouse" | "sales" | "developer";
|
|
6806
|
+
app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
5829
6807
|
exact_env: "staging" | "live";
|
|
5830
6808
|
quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
|
|
5831
6809
|
};
|
|
@@ -5886,7 +6864,7 @@ export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof Defaul
|
|
|
5886
6864
|
export declare const Constants: {
|
|
5887
6865
|
readonly public: {
|
|
5888
6866
|
readonly Enums: {
|
|
5889
|
-
readonly app_role: readonly ["admin", "manager", "warehouse", "sales", "developer"];
|
|
6867
|
+
readonly app_role: readonly ["admin", "manager", "warehouse", "sales", "developer", "receptie"];
|
|
5890
6868
|
readonly exact_env: readonly ["staging", "live"];
|
|
5891
6869
|
readonly quote_status: readonly ["concept", "verzonden", "bekeken", "in_behandeling", "geaccepteerd", "afgewezen", "verlopen", "gearchiveerd"];
|
|
5892
6870
|
};
|