@flowselections/floriday-klanten-module 1.0.16 → 1.0.17
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/components/klanten/FloridayDeeplinkButton.d.ts.map +1 -1
- package/dist-lib/components/klanten/FloridayDeeplinkButton.js +2 -2
- package/dist-lib/components/klanten/KlantenOverzicht.js +3 -3
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +886 -54
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +886 -54
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +886 -54
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +904 -45
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.js +3 -9
- package/dist-lib/lib/accounting/twinfield/mapping.d.ts.map +1 -1
- package/dist-lib/lib/accounting/twinfield/mapping.js +14 -2
- package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts +2538 -42
- package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts.map +1 -1
- package/dist-lib/lib/accounting.functions.d.ts +2538 -42
- package/dist-lib/lib/accounting.functions.d.ts.map +1 -1
- package/dist-lib/lib/customer-analytics.functions.d.ts +886 -54
- package/dist-lib/lib/customer-analytics.functions.d.ts.map +1 -1
- package/dist-lib/lib/customers.functions.d.ts +7614 -126
- package/dist-lib/lib/customers.functions.d.ts.map +1 -1
- package/dist-lib/lib/delivery-locations.functions.d.ts +3384 -56
- package/dist-lib/lib/delivery-locations.functions.d.ts.map +1 -1
- package/dist-lib/lib/external-customers.functions.d.ts +3384 -56
- package/dist-lib/lib/external-customers.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-assortment.functions.d.ts +886 -54
- package/dist-lib/lib/floriday-assortment.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-discounts.functions.d.ts +1834 -170
- package/dist-lib/lib/floriday-discounts.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-trade-items.functions.d.ts +886 -54
- package/dist-lib/lib/floriday-trade-items.functions.d.ts.map +1 -1
- package/dist-lib/lib/local-discounts.functions.d.ts +5922 -98
- package/dist-lib/lib/local-discounts.functions.d.ts.map +1 -1
- package/dist-lib/lib/overdue-invoices.functions.d.ts +886 -54
- package/dist-lib/lib/overdue-invoices.functions.d.ts.map +1 -1
- package/dist-lib/lib/price-groups-local.functions.d.ts +5922 -98
- package/dist-lib/lib/price-groups-local.functions.d.ts.map +1 -1
- package/dist-lib/lib/price-groups.functions.d.ts +886 -54
- package/dist-lib/lib/price-groups.functions.d.ts.map +1 -1
- package/package.json +3 -2
- package/public/flowselections-assets/Klanten/floriday-logo.png +0 -0
|
@@ -294,6 +294,57 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
294
294
|
referencedColumns: ["id"];
|
|
295
295
|
}];
|
|
296
296
|
};
|
|
297
|
+
ai_call_log: {
|
|
298
|
+
Row: {
|
|
299
|
+
consumer_module_id: string;
|
|
300
|
+
cost_usd: number | null;
|
|
301
|
+
created_at: string;
|
|
302
|
+
created_by: string | null;
|
|
303
|
+
duration_ms: number | null;
|
|
304
|
+
error_code: string | null;
|
|
305
|
+
error_message: string | null;
|
|
306
|
+
id: string;
|
|
307
|
+
input_tokens: number;
|
|
308
|
+
model_slug: string | null;
|
|
309
|
+
output_tokens: number;
|
|
310
|
+
provider_slug: string | null;
|
|
311
|
+
status: string;
|
|
312
|
+
total_tokens: number;
|
|
313
|
+
};
|
|
314
|
+
Insert: {
|
|
315
|
+
consumer_module_id: string;
|
|
316
|
+
cost_usd?: number | null;
|
|
317
|
+
created_at?: string;
|
|
318
|
+
created_by?: string | null;
|
|
319
|
+
duration_ms?: number | null;
|
|
320
|
+
error_code?: string | null;
|
|
321
|
+
error_message?: string | null;
|
|
322
|
+
id?: string;
|
|
323
|
+
input_tokens?: number;
|
|
324
|
+
model_slug?: string | null;
|
|
325
|
+
output_tokens?: number;
|
|
326
|
+
provider_slug?: string | null;
|
|
327
|
+
status: string;
|
|
328
|
+
total_tokens?: number;
|
|
329
|
+
};
|
|
330
|
+
Update: {
|
|
331
|
+
consumer_module_id?: string;
|
|
332
|
+
cost_usd?: number | null;
|
|
333
|
+
created_at?: string;
|
|
334
|
+
created_by?: string | null;
|
|
335
|
+
duration_ms?: number | null;
|
|
336
|
+
error_code?: string | null;
|
|
337
|
+
error_message?: string | null;
|
|
338
|
+
id?: string;
|
|
339
|
+
input_tokens?: number;
|
|
340
|
+
model_slug?: string | null;
|
|
341
|
+
output_tokens?: number;
|
|
342
|
+
provider_slug?: string | null;
|
|
343
|
+
status?: string;
|
|
344
|
+
total_tokens?: number;
|
|
345
|
+
};
|
|
346
|
+
Relationships: [];
|
|
347
|
+
};
|
|
297
348
|
ai_credentials: {
|
|
298
349
|
Row: {
|
|
299
350
|
active: boolean;
|
|
@@ -330,6 +381,36 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
330
381
|
referencedColumns: ["id"];
|
|
331
382
|
}];
|
|
332
383
|
};
|
|
384
|
+
ai_goals: {
|
|
385
|
+
Row: {
|
|
386
|
+
active: boolean;
|
|
387
|
+
created_at: string;
|
|
388
|
+
description: string | null;
|
|
389
|
+
key: string;
|
|
390
|
+
label: string;
|
|
391
|
+
sort_order: number;
|
|
392
|
+
updated_at: string;
|
|
393
|
+
};
|
|
394
|
+
Insert: {
|
|
395
|
+
active?: boolean;
|
|
396
|
+
created_at?: string;
|
|
397
|
+
description?: string | null;
|
|
398
|
+
key: string;
|
|
399
|
+
label: string;
|
|
400
|
+
sort_order?: number;
|
|
401
|
+
updated_at?: string;
|
|
402
|
+
};
|
|
403
|
+
Update: {
|
|
404
|
+
active?: boolean;
|
|
405
|
+
created_at?: string;
|
|
406
|
+
description?: string | null;
|
|
407
|
+
key?: string;
|
|
408
|
+
label?: string;
|
|
409
|
+
sort_order?: number;
|
|
410
|
+
updated_at?: string;
|
|
411
|
+
};
|
|
412
|
+
Relationships: [];
|
|
413
|
+
};
|
|
333
414
|
ai_model_pricing: {
|
|
334
415
|
Row: {
|
|
335
416
|
created_at: string;
|
|
@@ -1116,6 +1197,141 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
1116
1197
|
};
|
|
1117
1198
|
Relationships: [];
|
|
1118
1199
|
};
|
|
1200
|
+
cart_planning_pick_times: {
|
|
1201
|
+
Row: {
|
|
1202
|
+
created_at: string;
|
|
1203
|
+
id: string;
|
|
1204
|
+
pot_size: string;
|
|
1205
|
+
seconds_per_cart: number;
|
|
1206
|
+
updated_at: string;
|
|
1207
|
+
};
|
|
1208
|
+
Insert: {
|
|
1209
|
+
created_at?: string;
|
|
1210
|
+
id?: string;
|
|
1211
|
+
pot_size: string;
|
|
1212
|
+
seconds_per_cart: number;
|
|
1213
|
+
updated_at?: string;
|
|
1214
|
+
};
|
|
1215
|
+
Update: {
|
|
1216
|
+
created_at?: string;
|
|
1217
|
+
id?: string;
|
|
1218
|
+
pot_size?: string;
|
|
1219
|
+
seconds_per_cart?: number;
|
|
1220
|
+
updated_at?: string;
|
|
1221
|
+
};
|
|
1222
|
+
Relationships: [];
|
|
1223
|
+
};
|
|
1224
|
+
cart_planning_product_overrides: {
|
|
1225
|
+
Row: {
|
|
1226
|
+
created_at: string;
|
|
1227
|
+
id: string;
|
|
1228
|
+
max_party_share_per_layer_pct_override: number | null;
|
|
1229
|
+
never_mix: boolean;
|
|
1230
|
+
notes: string | null;
|
|
1231
|
+
product_id: string;
|
|
1232
|
+
updated_at: string;
|
|
1233
|
+
};
|
|
1234
|
+
Insert: {
|
|
1235
|
+
created_at?: string;
|
|
1236
|
+
id?: string;
|
|
1237
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
1238
|
+
never_mix?: boolean;
|
|
1239
|
+
notes?: string | null;
|
|
1240
|
+
product_id: string;
|
|
1241
|
+
updated_at?: string;
|
|
1242
|
+
};
|
|
1243
|
+
Update: {
|
|
1244
|
+
created_at?: string;
|
|
1245
|
+
id?: string;
|
|
1246
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
1247
|
+
never_mix?: boolean;
|
|
1248
|
+
notes?: string | null;
|
|
1249
|
+
product_id?: string;
|
|
1250
|
+
updated_at?: string;
|
|
1251
|
+
};
|
|
1252
|
+
Relationships: [{
|
|
1253
|
+
foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
|
|
1254
|
+
columns: ["product_id"];
|
|
1255
|
+
isOneToOne: true;
|
|
1256
|
+
referencedRelation: "products";
|
|
1257
|
+
referencedColumns: ["id"];
|
|
1258
|
+
}];
|
|
1259
|
+
};
|
|
1260
|
+
cart_planning_settings: {
|
|
1261
|
+
Row: {
|
|
1262
|
+
allow_editing_after_pickstation_send: boolean;
|
|
1263
|
+
buffer_grouping_mode: string;
|
|
1264
|
+
combine_floriday_orders: boolean;
|
|
1265
|
+
combine_floriday_orders_window: string;
|
|
1266
|
+
combine_orders_scope: string;
|
|
1267
|
+
default_workers: number;
|
|
1268
|
+
id: number;
|
|
1269
|
+
max_beladingen_per_layer: number;
|
|
1270
|
+
max_customers_per_cart: number;
|
|
1271
|
+
max_one_customer_per_layer: boolean;
|
|
1272
|
+
max_party_share_per_layer_pct: number;
|
|
1273
|
+
optimization_strategy: string;
|
|
1274
|
+
own_cart_from_layers: number;
|
|
1275
|
+
pick_time_mode: string;
|
|
1276
|
+
plants_per_day: number;
|
|
1277
|
+
plants_per_hour: number;
|
|
1278
|
+
require_same_carrier: boolean;
|
|
1279
|
+
require_same_crate_type: boolean;
|
|
1280
|
+
require_same_delivery_date: boolean;
|
|
1281
|
+
require_same_delivery_location: boolean;
|
|
1282
|
+
updated_at: string;
|
|
1283
|
+
updated_by: string | null;
|
|
1284
|
+
};
|
|
1285
|
+
Insert: {
|
|
1286
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
1287
|
+
buffer_grouping_mode?: string;
|
|
1288
|
+
combine_floriday_orders?: boolean;
|
|
1289
|
+
combine_floriday_orders_window?: string;
|
|
1290
|
+
combine_orders_scope?: string;
|
|
1291
|
+
default_workers?: number;
|
|
1292
|
+
id?: number;
|
|
1293
|
+
max_beladingen_per_layer?: number;
|
|
1294
|
+
max_customers_per_cart?: number;
|
|
1295
|
+
max_one_customer_per_layer?: boolean;
|
|
1296
|
+
max_party_share_per_layer_pct?: number;
|
|
1297
|
+
optimization_strategy?: string;
|
|
1298
|
+
own_cart_from_layers?: number;
|
|
1299
|
+
pick_time_mode?: string;
|
|
1300
|
+
plants_per_day?: number;
|
|
1301
|
+
plants_per_hour?: number;
|
|
1302
|
+
require_same_carrier?: boolean;
|
|
1303
|
+
require_same_crate_type?: boolean;
|
|
1304
|
+
require_same_delivery_date?: boolean;
|
|
1305
|
+
require_same_delivery_location?: boolean;
|
|
1306
|
+
updated_at?: string;
|
|
1307
|
+
updated_by?: string | null;
|
|
1308
|
+
};
|
|
1309
|
+
Update: {
|
|
1310
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
1311
|
+
buffer_grouping_mode?: string;
|
|
1312
|
+
combine_floriday_orders?: boolean;
|
|
1313
|
+
combine_floriday_orders_window?: string;
|
|
1314
|
+
combine_orders_scope?: string;
|
|
1315
|
+
default_workers?: number;
|
|
1316
|
+
id?: number;
|
|
1317
|
+
max_beladingen_per_layer?: number;
|
|
1318
|
+
max_customers_per_cart?: number;
|
|
1319
|
+
max_one_customer_per_layer?: boolean;
|
|
1320
|
+
max_party_share_per_layer_pct?: number;
|
|
1321
|
+
optimization_strategy?: string;
|
|
1322
|
+
own_cart_from_layers?: number;
|
|
1323
|
+
pick_time_mode?: string;
|
|
1324
|
+
plants_per_day?: number;
|
|
1325
|
+
plants_per_hour?: number;
|
|
1326
|
+
require_same_carrier?: boolean;
|
|
1327
|
+
require_same_crate_type?: boolean;
|
|
1328
|
+
require_same_delivery_date?: boolean;
|
|
1329
|
+
require_same_delivery_location?: boolean;
|
|
1330
|
+
updated_at?: string;
|
|
1331
|
+
updated_by?: string | null;
|
|
1332
|
+
};
|
|
1333
|
+
Relationships: [];
|
|
1334
|
+
};
|
|
1119
1335
|
cart_replan_queue: {
|
|
1120
1336
|
Row: {
|
|
1121
1337
|
attempts: number;
|
|
@@ -1146,6 +1362,39 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
1146
1362
|
referencedColumns: ["id"];
|
|
1147
1363
|
}];
|
|
1148
1364
|
};
|
|
1365
|
+
cart_types: {
|
|
1366
|
+
Row: {
|
|
1367
|
+
created_at: string;
|
|
1368
|
+
id: string;
|
|
1369
|
+
is_default: boolean;
|
|
1370
|
+
layer_length_cm: number;
|
|
1371
|
+
layer_width_cm: number;
|
|
1372
|
+
layers_per_cart: number;
|
|
1373
|
+
name: string;
|
|
1374
|
+
updated_at: string;
|
|
1375
|
+
};
|
|
1376
|
+
Insert: {
|
|
1377
|
+
created_at?: string;
|
|
1378
|
+
id?: string;
|
|
1379
|
+
is_default?: boolean;
|
|
1380
|
+
layer_length_cm: number;
|
|
1381
|
+
layer_width_cm: number;
|
|
1382
|
+
layers_per_cart?: number;
|
|
1383
|
+
name: string;
|
|
1384
|
+
updated_at?: string;
|
|
1385
|
+
};
|
|
1386
|
+
Update: {
|
|
1387
|
+
created_at?: string;
|
|
1388
|
+
id?: string;
|
|
1389
|
+
is_default?: boolean;
|
|
1390
|
+
layer_length_cm?: number;
|
|
1391
|
+
layer_width_cm?: number;
|
|
1392
|
+
layers_per_cart?: number;
|
|
1393
|
+
name?: string;
|
|
1394
|
+
updated_at?: string;
|
|
1395
|
+
};
|
|
1396
|
+
Relationships: [];
|
|
1397
|
+
};
|
|
1149
1398
|
catalog_articles_cache: {
|
|
1150
1399
|
Row: {
|
|
1151
1400
|
created_at: string;
|
|
@@ -1233,6 +1482,36 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
1233
1482
|
};
|
|
1234
1483
|
Relationships: [];
|
|
1235
1484
|
};
|
|
1485
|
+
crate_types: {
|
|
1486
|
+
Row: {
|
|
1487
|
+
created_at: string;
|
|
1488
|
+
id: string;
|
|
1489
|
+
length_cm: number;
|
|
1490
|
+
name: string;
|
|
1491
|
+
plants_per_crate: number;
|
|
1492
|
+
updated_at: string;
|
|
1493
|
+
width_cm: number;
|
|
1494
|
+
};
|
|
1495
|
+
Insert: {
|
|
1496
|
+
created_at?: string;
|
|
1497
|
+
id?: string;
|
|
1498
|
+
length_cm: number;
|
|
1499
|
+
name: string;
|
|
1500
|
+
plants_per_crate?: number;
|
|
1501
|
+
updated_at?: string;
|
|
1502
|
+
width_cm: number;
|
|
1503
|
+
};
|
|
1504
|
+
Update: {
|
|
1505
|
+
created_at?: string;
|
|
1506
|
+
id?: string;
|
|
1507
|
+
length_cm?: number;
|
|
1508
|
+
name?: string;
|
|
1509
|
+
plants_per_crate?: number;
|
|
1510
|
+
updated_at?: string;
|
|
1511
|
+
width_cm?: number;
|
|
1512
|
+
};
|
|
1513
|
+
Relationships: [];
|
|
1514
|
+
};
|
|
1236
1515
|
customer_audit_log: {
|
|
1237
1516
|
Row: {
|
|
1238
1517
|
action: string;
|
|
@@ -5708,69 +5987,351 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
5708
5987
|
vat_amount?: number | null;
|
|
5709
5988
|
};
|
|
5710
5989
|
Update: {
|
|
5711
|
-
booking_id?: string | null;
|
|
5712
|
-
company_name?: string | null;
|
|
5990
|
+
booking_id?: string | null;
|
|
5991
|
+
company_name?: string | null;
|
|
5992
|
+
created_at?: string;
|
|
5993
|
+
customer_email?: string | null;
|
|
5994
|
+
description?: string | null;
|
|
5995
|
+
exact_article_id?: string | null;
|
|
5996
|
+
id?: string;
|
|
5997
|
+
invoice_run_id?: string | null;
|
|
5998
|
+
quantity?: number | null;
|
|
5999
|
+
total_excl_vat?: number | null;
|
|
6000
|
+
total_incl_vat?: number | null;
|
|
6001
|
+
unit_price?: number | null;
|
|
6002
|
+
vat_amount?: number | null;
|
|
6003
|
+
};
|
|
6004
|
+
Relationships: [{
|
|
6005
|
+
foreignKeyName: "invoice_run_items_booking_id_fkey";
|
|
6006
|
+
columns: ["booking_id"];
|
|
6007
|
+
isOneToOne: false;
|
|
6008
|
+
referencedRelation: "bookings";
|
|
6009
|
+
referencedColumns: ["id"];
|
|
6010
|
+
}, {
|
|
6011
|
+
foreignKeyName: "invoice_run_items_invoice_run_id_fkey";
|
|
6012
|
+
columns: ["invoice_run_id"];
|
|
6013
|
+
isOneToOne: false;
|
|
6014
|
+
referencedRelation: "invoice_runs";
|
|
6015
|
+
referencedColumns: ["id"];
|
|
6016
|
+
}];
|
|
6017
|
+
};
|
|
6018
|
+
invoice_runs: {
|
|
6019
|
+
Row: {
|
|
6020
|
+
created_at: string;
|
|
6021
|
+
created_by: string | null;
|
|
6022
|
+
id: string;
|
|
6023
|
+
period_end: string;
|
|
6024
|
+
period_start: string;
|
|
6025
|
+
status: string;
|
|
6026
|
+
total_excl_vat: number | null;
|
|
6027
|
+
total_incl_vat: number | null;
|
|
6028
|
+
vat_amount: number | null;
|
|
6029
|
+
};
|
|
6030
|
+
Insert: {
|
|
6031
|
+
created_at?: string;
|
|
6032
|
+
created_by?: string | null;
|
|
6033
|
+
id?: string;
|
|
6034
|
+
period_end: string;
|
|
6035
|
+
period_start: string;
|
|
6036
|
+
status?: string;
|
|
6037
|
+
total_excl_vat?: number | null;
|
|
6038
|
+
total_incl_vat?: number | null;
|
|
6039
|
+
vat_amount?: number | null;
|
|
6040
|
+
};
|
|
6041
|
+
Update: {
|
|
6042
|
+
created_at?: string;
|
|
6043
|
+
created_by?: string | null;
|
|
6044
|
+
id?: string;
|
|
6045
|
+
period_end?: string;
|
|
6046
|
+
period_start?: string;
|
|
6047
|
+
status?: string;
|
|
6048
|
+
total_excl_vat?: number | null;
|
|
6049
|
+
total_incl_vat?: number | null;
|
|
6050
|
+
vat_amount?: number | null;
|
|
6051
|
+
};
|
|
6052
|
+
Relationships: [];
|
|
6053
|
+
};
|
|
6054
|
+
itk_contact_persons: {
|
|
6055
|
+
Row: {
|
|
6056
|
+
created_at: string;
|
|
6057
|
+
customer_id: string;
|
|
6058
|
+
email: string | null;
|
|
6059
|
+
id: string;
|
|
6060
|
+
name: string;
|
|
6061
|
+
phone: string | null;
|
|
6062
|
+
role: string | null;
|
|
6063
|
+
updated_at: string;
|
|
6064
|
+
};
|
|
6065
|
+
Insert: {
|
|
6066
|
+
created_at?: string;
|
|
6067
|
+
customer_id: string;
|
|
6068
|
+
email?: string | null;
|
|
6069
|
+
id?: string;
|
|
6070
|
+
name: string;
|
|
6071
|
+
phone?: string | null;
|
|
6072
|
+
role?: string | null;
|
|
6073
|
+
updated_at?: string;
|
|
6074
|
+
};
|
|
6075
|
+
Update: {
|
|
6076
|
+
created_at?: string;
|
|
6077
|
+
customer_id?: string;
|
|
6078
|
+
email?: string | null;
|
|
6079
|
+
id?: string;
|
|
6080
|
+
name?: string;
|
|
6081
|
+
phone?: string | null;
|
|
6082
|
+
role?: string | null;
|
|
6083
|
+
updated_at?: string;
|
|
6084
|
+
};
|
|
6085
|
+
Relationships: [{
|
|
6086
|
+
foreignKeyName: "itk_contact_persons_customer_id_fkey";
|
|
6087
|
+
columns: ["customer_id"];
|
|
6088
|
+
isOneToOne: false;
|
|
6089
|
+
referencedRelation: "itk_customers";
|
|
6090
|
+
referencedColumns: ["id"];
|
|
6091
|
+
}];
|
|
6092
|
+
};
|
|
6093
|
+
itk_customer_dynamic_values: {
|
|
6094
|
+
Row: {
|
|
6095
|
+
created_at: string;
|
|
6096
|
+
customer_id: string;
|
|
6097
|
+
field_id: string;
|
|
6098
|
+
id: string;
|
|
6099
|
+
updated_at: string;
|
|
6100
|
+
value: string | null;
|
|
6101
|
+
};
|
|
6102
|
+
Insert: {
|
|
6103
|
+
created_at?: string;
|
|
6104
|
+
customer_id: string;
|
|
6105
|
+
field_id: string;
|
|
6106
|
+
id?: string;
|
|
6107
|
+
updated_at?: string;
|
|
6108
|
+
value?: string | null;
|
|
6109
|
+
};
|
|
6110
|
+
Update: {
|
|
6111
|
+
created_at?: string;
|
|
6112
|
+
customer_id?: string;
|
|
6113
|
+
field_id?: string;
|
|
6114
|
+
id?: string;
|
|
6115
|
+
updated_at?: string;
|
|
6116
|
+
value?: string | null;
|
|
6117
|
+
};
|
|
6118
|
+
Relationships: [{
|
|
6119
|
+
foreignKeyName: "itk_customer_dynamic_values_customer_id_fkey";
|
|
6120
|
+
columns: ["customer_id"];
|
|
6121
|
+
isOneToOne: false;
|
|
6122
|
+
referencedRelation: "itk_customers";
|
|
6123
|
+
referencedColumns: ["id"];
|
|
6124
|
+
}, {
|
|
6125
|
+
foreignKeyName: "itk_customer_dynamic_values_field_id_fkey";
|
|
6126
|
+
columns: ["field_id"];
|
|
6127
|
+
isOneToOne: false;
|
|
6128
|
+
referencedRelation: "itk_dynamic_fields";
|
|
6129
|
+
referencedColumns: ["id"];
|
|
6130
|
+
}];
|
|
6131
|
+
};
|
|
6132
|
+
itk_customer_notes: {
|
|
6133
|
+
Row: {
|
|
6134
|
+
body: string;
|
|
6135
|
+
created_at: string;
|
|
6136
|
+
created_by: string | null;
|
|
6137
|
+
customer_id: string;
|
|
6138
|
+
id: string;
|
|
6139
|
+
note_type: string;
|
|
6140
|
+
updated_at: string;
|
|
6141
|
+
};
|
|
6142
|
+
Insert: {
|
|
6143
|
+
body: string;
|
|
6144
|
+
created_at?: string;
|
|
6145
|
+
created_by?: string | null;
|
|
6146
|
+
customer_id: string;
|
|
6147
|
+
id?: string;
|
|
6148
|
+
note_type?: string;
|
|
6149
|
+
updated_at?: string;
|
|
6150
|
+
};
|
|
6151
|
+
Update: {
|
|
6152
|
+
body?: string;
|
|
6153
|
+
created_at?: string;
|
|
6154
|
+
created_by?: string | null;
|
|
6155
|
+
customer_id?: string;
|
|
6156
|
+
id?: string;
|
|
6157
|
+
note_type?: string;
|
|
6158
|
+
updated_at?: string;
|
|
6159
|
+
};
|
|
6160
|
+
Relationships: [{
|
|
6161
|
+
foreignKeyName: "itk_customer_notes_customer_id_fkey";
|
|
6162
|
+
columns: ["customer_id"];
|
|
6163
|
+
isOneToOne: false;
|
|
6164
|
+
referencedRelation: "itk_customers";
|
|
6165
|
+
referencedColumns: ["id"];
|
|
6166
|
+
}];
|
|
6167
|
+
};
|
|
6168
|
+
itk_customers: {
|
|
6169
|
+
Row: {
|
|
6170
|
+
billing_city: string | null;
|
|
6171
|
+
billing_postcode: string | null;
|
|
6172
|
+
billing_street: string | null;
|
|
6173
|
+
created_at: string;
|
|
6174
|
+
general_email: string | null;
|
|
6175
|
+
general_phone: string | null;
|
|
6176
|
+
id: string;
|
|
6177
|
+
legacy_customer_id: string | null;
|
|
6178
|
+
name: string;
|
|
6179
|
+
segment: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
6180
|
+
updated_at: string;
|
|
6181
|
+
};
|
|
6182
|
+
Insert: {
|
|
6183
|
+
billing_city?: string | null;
|
|
6184
|
+
billing_postcode?: string | null;
|
|
6185
|
+
billing_street?: string | null;
|
|
6186
|
+
created_at?: string;
|
|
6187
|
+
general_email?: string | null;
|
|
6188
|
+
general_phone?: string | null;
|
|
6189
|
+
id?: string;
|
|
6190
|
+
legacy_customer_id?: string | null;
|
|
6191
|
+
name: string;
|
|
6192
|
+
segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
6193
|
+
updated_at?: string;
|
|
6194
|
+
};
|
|
6195
|
+
Update: {
|
|
6196
|
+
billing_city?: string | null;
|
|
6197
|
+
billing_postcode?: string | null;
|
|
6198
|
+
billing_street?: string | null;
|
|
6199
|
+
created_at?: string;
|
|
6200
|
+
general_email?: string | null;
|
|
6201
|
+
general_phone?: string | null;
|
|
6202
|
+
id?: string;
|
|
6203
|
+
legacy_customer_id?: string | null;
|
|
6204
|
+
name?: string;
|
|
6205
|
+
segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
6206
|
+
updated_at?: string;
|
|
6207
|
+
};
|
|
6208
|
+
Relationships: [{
|
|
6209
|
+
foreignKeyName: "itk_customers_legacy_customer_id_fkey";
|
|
6210
|
+
columns: ["legacy_customer_id"];
|
|
6211
|
+
isOneToOne: false;
|
|
6212
|
+
referencedRelation: "customers";
|
|
6213
|
+
referencedColumns: ["id"];
|
|
6214
|
+
}];
|
|
6215
|
+
};
|
|
6216
|
+
itk_dynamic_fields: {
|
|
6217
|
+
Row: {
|
|
6218
|
+
created_at: string;
|
|
6219
|
+
field_name: string;
|
|
6220
|
+
field_type: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
6221
|
+
id: string;
|
|
6222
|
+
options: import("../integrations/supabase/types").Json;
|
|
6223
|
+
sort_order: number;
|
|
6224
|
+
updated_at: string;
|
|
6225
|
+
};
|
|
6226
|
+
Insert: {
|
|
6227
|
+
created_at?: string;
|
|
6228
|
+
field_name: string;
|
|
6229
|
+
field_type?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
6230
|
+
id?: string;
|
|
6231
|
+
options?: import("../integrations/supabase/types").Json;
|
|
6232
|
+
sort_order?: number;
|
|
6233
|
+
updated_at?: string;
|
|
6234
|
+
};
|
|
6235
|
+
Update: {
|
|
6236
|
+
created_at?: string;
|
|
6237
|
+
field_name?: string;
|
|
6238
|
+
field_type?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
6239
|
+
id?: string;
|
|
6240
|
+
options?: import("../integrations/supabase/types").Json;
|
|
6241
|
+
sort_order?: number;
|
|
6242
|
+
updated_at?: string;
|
|
6243
|
+
};
|
|
6244
|
+
Relationships: [];
|
|
6245
|
+
};
|
|
6246
|
+
itk_work_locations: {
|
|
6247
|
+
Row: {
|
|
6248
|
+
city: string | null;
|
|
6249
|
+
created_at: string;
|
|
6250
|
+
customer_id: string;
|
|
6251
|
+
id: string;
|
|
6252
|
+
instructions: string | null;
|
|
6253
|
+
label: string;
|
|
6254
|
+
latitude: number | null;
|
|
6255
|
+
longitude: number | null;
|
|
6256
|
+
postcode: string | null;
|
|
6257
|
+
street: string | null;
|
|
6258
|
+
updated_at: string;
|
|
6259
|
+
};
|
|
6260
|
+
Insert: {
|
|
6261
|
+
city?: string | null;
|
|
6262
|
+
created_at?: string;
|
|
6263
|
+
customer_id: string;
|
|
6264
|
+
id?: string;
|
|
6265
|
+
instructions?: string | null;
|
|
6266
|
+
label: string;
|
|
6267
|
+
latitude?: number | null;
|
|
6268
|
+
longitude?: number | null;
|
|
6269
|
+
postcode?: string | null;
|
|
6270
|
+
street?: string | null;
|
|
6271
|
+
updated_at?: string;
|
|
6272
|
+
};
|
|
6273
|
+
Update: {
|
|
6274
|
+
city?: string | null;
|
|
5713
6275
|
created_at?: string;
|
|
5714
|
-
|
|
5715
|
-
description?: string | null;
|
|
5716
|
-
exact_article_id?: string | null;
|
|
6276
|
+
customer_id?: string;
|
|
5717
6277
|
id?: string;
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
6278
|
+
instructions?: string | null;
|
|
6279
|
+
label?: string;
|
|
6280
|
+
latitude?: number | null;
|
|
6281
|
+
longitude?: number | null;
|
|
6282
|
+
postcode?: string | null;
|
|
6283
|
+
street?: string | null;
|
|
6284
|
+
updated_at?: string;
|
|
5724
6285
|
};
|
|
5725
6286
|
Relationships: [{
|
|
5726
|
-
foreignKeyName: "
|
|
5727
|
-
columns: ["
|
|
5728
|
-
isOneToOne: false;
|
|
5729
|
-
referencedRelation: "bookings";
|
|
5730
|
-
referencedColumns: ["id"];
|
|
5731
|
-
}, {
|
|
5732
|
-
foreignKeyName: "invoice_run_items_invoice_run_id_fkey";
|
|
5733
|
-
columns: ["invoice_run_id"];
|
|
6287
|
+
foreignKeyName: "itk_work_locations_customer_id_fkey";
|
|
6288
|
+
columns: ["customer_id"];
|
|
5734
6289
|
isOneToOne: false;
|
|
5735
|
-
referencedRelation: "
|
|
6290
|
+
referencedRelation: "itk_customers";
|
|
5736
6291
|
referencedColumns: ["id"];
|
|
5737
6292
|
}];
|
|
5738
6293
|
};
|
|
5739
|
-
|
|
6294
|
+
leave_requests: {
|
|
5740
6295
|
Row: {
|
|
5741
6296
|
created_at: string;
|
|
5742
|
-
|
|
6297
|
+
end_date: string;
|
|
5743
6298
|
id: string;
|
|
5744
|
-
|
|
5745
|
-
|
|
6299
|
+
reason: string | null;
|
|
6300
|
+
start_date: string;
|
|
5746
6301
|
status: string;
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
|
|
6302
|
+
tenant_id: string;
|
|
6303
|
+
updated_at: string;
|
|
6304
|
+
user_id: string;
|
|
5750
6305
|
};
|
|
5751
6306
|
Insert: {
|
|
5752
6307
|
created_at?: string;
|
|
5753
|
-
|
|
6308
|
+
end_date: string;
|
|
5754
6309
|
id?: string;
|
|
5755
|
-
|
|
5756
|
-
|
|
6310
|
+
reason?: string | null;
|
|
6311
|
+
start_date: string;
|
|
5757
6312
|
status?: string;
|
|
5758
|
-
|
|
5759
|
-
|
|
5760
|
-
|
|
6313
|
+
tenant_id?: string;
|
|
6314
|
+
updated_at?: string;
|
|
6315
|
+
user_id: string;
|
|
5761
6316
|
};
|
|
5762
6317
|
Update: {
|
|
5763
6318
|
created_at?: string;
|
|
5764
|
-
|
|
6319
|
+
end_date?: string;
|
|
5765
6320
|
id?: string;
|
|
5766
|
-
|
|
5767
|
-
|
|
6321
|
+
reason?: string | null;
|
|
6322
|
+
start_date?: string;
|
|
5768
6323
|
status?: string;
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
|
|
6324
|
+
tenant_id?: string;
|
|
6325
|
+
updated_at?: string;
|
|
6326
|
+
user_id?: string;
|
|
5772
6327
|
};
|
|
5773
|
-
Relationships: [
|
|
6328
|
+
Relationships: [{
|
|
6329
|
+
foreignKeyName: "leave_requests_user_id_fkey";
|
|
6330
|
+
columns: ["user_id"];
|
|
6331
|
+
isOneToOne: false;
|
|
6332
|
+
referencedRelation: "monteurs";
|
|
6333
|
+
referencedColumns: ["id"];
|
|
6334
|
+
}];
|
|
5774
6335
|
};
|
|
5775
6336
|
local_customer_agreements: {
|
|
5776
6337
|
Row: {
|
|
@@ -6423,6 +6984,33 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
6423
6984
|
};
|
|
6424
6985
|
Relationships: [];
|
|
6425
6986
|
};
|
|
6987
|
+
module_permissions: {
|
|
6988
|
+
Row: {
|
|
6989
|
+
created_at: string;
|
|
6990
|
+
id: string;
|
|
6991
|
+
module_id: string;
|
|
6992
|
+
permission: string;
|
|
6993
|
+
role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
6994
|
+
updated_at: string;
|
|
6995
|
+
};
|
|
6996
|
+
Insert: {
|
|
6997
|
+
created_at?: string;
|
|
6998
|
+
id?: string;
|
|
6999
|
+
module_id: string;
|
|
7000
|
+
permission: string;
|
|
7001
|
+
role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
7002
|
+
updated_at?: string;
|
|
7003
|
+
};
|
|
7004
|
+
Update: {
|
|
7005
|
+
created_at?: string;
|
|
7006
|
+
id?: string;
|
|
7007
|
+
module_id?: string;
|
|
7008
|
+
permission?: string;
|
|
7009
|
+
role?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
7010
|
+
updated_at?: string;
|
|
7011
|
+
};
|
|
7012
|
+
Relationships: [];
|
|
7013
|
+
};
|
|
6426
7014
|
monteurs: {
|
|
6427
7015
|
Row: {
|
|
6428
7016
|
avatar_url: string | null;
|
|
@@ -7152,6 +7740,42 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
7152
7740
|
};
|
|
7153
7741
|
Relationships: [];
|
|
7154
7742
|
};
|
|
7743
|
+
order_buffers: {
|
|
7744
|
+
Row: {
|
|
7745
|
+
buffer_key: string;
|
|
7746
|
+
created_at: string;
|
|
7747
|
+
customer_id: string | null;
|
|
7748
|
+
grouping_mode: string;
|
|
7749
|
+
id: string;
|
|
7750
|
+
pickup_date: string | null;
|
|
7751
|
+
pickup_location: string | null;
|
|
7752
|
+
plan_locked_at: string | null;
|
|
7753
|
+
updated_at: string;
|
|
7754
|
+
};
|
|
7755
|
+
Insert: {
|
|
7756
|
+
buffer_key: string;
|
|
7757
|
+
created_at?: string;
|
|
7758
|
+
customer_id?: string | null;
|
|
7759
|
+
grouping_mode: string;
|
|
7760
|
+
id?: string;
|
|
7761
|
+
pickup_date?: string | null;
|
|
7762
|
+
pickup_location?: string | null;
|
|
7763
|
+
plan_locked_at?: string | null;
|
|
7764
|
+
updated_at?: string;
|
|
7765
|
+
};
|
|
7766
|
+
Update: {
|
|
7767
|
+
buffer_key?: string;
|
|
7768
|
+
created_at?: string;
|
|
7769
|
+
customer_id?: string | null;
|
|
7770
|
+
grouping_mode?: string;
|
|
7771
|
+
id?: string;
|
|
7772
|
+
pickup_date?: string | null;
|
|
7773
|
+
pickup_location?: string | null;
|
|
7774
|
+
plan_locked_at?: string | null;
|
|
7775
|
+
updated_at?: string;
|
|
7776
|
+
};
|
|
7777
|
+
Relationships: [];
|
|
7778
|
+
};
|
|
7155
7779
|
order_cart_items: {
|
|
7156
7780
|
Row: {
|
|
7157
7781
|
cart_id: string;
|
|
@@ -7218,6 +7842,7 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
7218
7842
|
order_carts: {
|
|
7219
7843
|
Row: {
|
|
7220
7844
|
algorithm_version: number;
|
|
7845
|
+
buffer_id: string | null;
|
|
7221
7846
|
cart_number: number;
|
|
7222
7847
|
created_at: string;
|
|
7223
7848
|
id: string;
|
|
@@ -7225,13 +7850,14 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
7225
7850
|
is_complete: boolean;
|
|
7226
7851
|
notes: string | null;
|
|
7227
7852
|
occupancy_pct: number;
|
|
7228
|
-
order_id: string;
|
|
7853
|
+
order_id: string | null;
|
|
7229
7854
|
source: string;
|
|
7230
7855
|
total_layers_used: number;
|
|
7231
7856
|
updated_at: string;
|
|
7232
7857
|
};
|
|
7233
7858
|
Insert: {
|
|
7234
7859
|
algorithm_version?: number;
|
|
7860
|
+
buffer_id?: string | null;
|
|
7235
7861
|
cart_number: number;
|
|
7236
7862
|
created_at?: string;
|
|
7237
7863
|
id?: string;
|
|
@@ -7239,13 +7865,14 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
7239
7865
|
is_complete?: boolean;
|
|
7240
7866
|
notes?: string | null;
|
|
7241
7867
|
occupancy_pct?: number;
|
|
7242
|
-
order_id
|
|
7868
|
+
order_id?: string | null;
|
|
7243
7869
|
source?: string;
|
|
7244
7870
|
total_layers_used?: number;
|
|
7245
7871
|
updated_at?: string;
|
|
7246
7872
|
};
|
|
7247
7873
|
Update: {
|
|
7248
7874
|
algorithm_version?: number;
|
|
7875
|
+
buffer_id?: string | null;
|
|
7249
7876
|
cart_number?: number;
|
|
7250
7877
|
created_at?: string;
|
|
7251
7878
|
id?: string;
|
|
@@ -7253,12 +7880,18 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
7253
7880
|
is_complete?: boolean;
|
|
7254
7881
|
notes?: string | null;
|
|
7255
7882
|
occupancy_pct?: number;
|
|
7256
|
-
order_id?: string;
|
|
7883
|
+
order_id?: string | null;
|
|
7257
7884
|
source?: string;
|
|
7258
7885
|
total_layers_used?: number;
|
|
7259
7886
|
updated_at?: string;
|
|
7260
7887
|
};
|
|
7261
7888
|
Relationships: [{
|
|
7889
|
+
foreignKeyName: "order_carts_buffer_id_fkey";
|
|
7890
|
+
columns: ["buffer_id"];
|
|
7891
|
+
isOneToOne: false;
|
|
7892
|
+
referencedRelation: "order_buffers";
|
|
7893
|
+
referencedColumns: ["id"];
|
|
7894
|
+
}, {
|
|
7262
7895
|
foreignKeyName: "order_carts_order_id_fkey";
|
|
7263
7896
|
columns: ["order_id"];
|
|
7264
7897
|
isOneToOne: false;
|
|
@@ -7395,15 +8028,117 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
7395
8028
|
};
|
|
7396
8029
|
Relationships: [];
|
|
7397
8030
|
};
|
|
8031
|
+
order_shipment_items: {
|
|
8032
|
+
Row: {
|
|
8033
|
+
created_at: string;
|
|
8034
|
+
id: string;
|
|
8035
|
+
order_item_id: string;
|
|
8036
|
+
product_id: string | null;
|
|
8037
|
+
product_name: string;
|
|
8038
|
+
quantity: number;
|
|
8039
|
+
shipment_id: string;
|
|
8040
|
+
updated_at: string;
|
|
8041
|
+
};
|
|
8042
|
+
Insert: {
|
|
8043
|
+
created_at?: string;
|
|
8044
|
+
id?: string;
|
|
8045
|
+
order_item_id: string;
|
|
8046
|
+
product_id?: string | null;
|
|
8047
|
+
product_name: string;
|
|
8048
|
+
quantity: number;
|
|
8049
|
+
shipment_id: string;
|
|
8050
|
+
updated_at?: string;
|
|
8051
|
+
};
|
|
8052
|
+
Update: {
|
|
8053
|
+
created_at?: string;
|
|
8054
|
+
id?: string;
|
|
8055
|
+
order_item_id?: string;
|
|
8056
|
+
product_id?: string | null;
|
|
8057
|
+
product_name?: string;
|
|
8058
|
+
quantity?: number;
|
|
8059
|
+
shipment_id?: string;
|
|
8060
|
+
updated_at?: string;
|
|
8061
|
+
};
|
|
8062
|
+
Relationships: [{
|
|
8063
|
+
foreignKeyName: "order_shipment_items_order_item_id_fkey";
|
|
8064
|
+
columns: ["order_item_id"];
|
|
8065
|
+
isOneToOne: false;
|
|
8066
|
+
referencedRelation: "order_items";
|
|
8067
|
+
referencedColumns: ["id"];
|
|
8068
|
+
}, {
|
|
8069
|
+
foreignKeyName: "order_shipment_items_shipment_id_fkey";
|
|
8070
|
+
columns: ["shipment_id"];
|
|
8071
|
+
isOneToOne: false;
|
|
8072
|
+
referencedRelation: "order_shipments";
|
|
8073
|
+
referencedColumns: ["id"];
|
|
8074
|
+
}];
|
|
8075
|
+
};
|
|
8076
|
+
order_shipments: {
|
|
8077
|
+
Row: {
|
|
8078
|
+
carrier_id: string | null;
|
|
8079
|
+
created_at: string;
|
|
8080
|
+
delivery_date: string | null;
|
|
8081
|
+
delivery_location_id: string | null;
|
|
8082
|
+
id: string;
|
|
8083
|
+
notes: string | null;
|
|
8084
|
+
order_id: string;
|
|
8085
|
+
shipment_number: number;
|
|
8086
|
+
shipped_at: string | null;
|
|
8087
|
+
status: string;
|
|
8088
|
+
updated_at: string;
|
|
8089
|
+
};
|
|
8090
|
+
Insert: {
|
|
8091
|
+
carrier_id?: string | null;
|
|
8092
|
+
created_at?: string;
|
|
8093
|
+
delivery_date?: string | null;
|
|
8094
|
+
delivery_location_id?: string | null;
|
|
8095
|
+
id?: string;
|
|
8096
|
+
notes?: string | null;
|
|
8097
|
+
order_id: string;
|
|
8098
|
+
shipment_number: number;
|
|
8099
|
+
shipped_at?: string | null;
|
|
8100
|
+
status?: string;
|
|
8101
|
+
updated_at?: string;
|
|
8102
|
+
};
|
|
8103
|
+
Update: {
|
|
8104
|
+
carrier_id?: string | null;
|
|
8105
|
+
created_at?: string;
|
|
8106
|
+
delivery_date?: string | null;
|
|
8107
|
+
delivery_location_id?: string | null;
|
|
8108
|
+
id?: string;
|
|
8109
|
+
notes?: string | null;
|
|
8110
|
+
order_id?: string;
|
|
8111
|
+
shipment_number?: number;
|
|
8112
|
+
shipped_at?: string | null;
|
|
8113
|
+
status?: string;
|
|
8114
|
+
updated_at?: string;
|
|
8115
|
+
};
|
|
8116
|
+
Relationships: [{
|
|
8117
|
+
foreignKeyName: "order_shipments_carrier_id_fkey";
|
|
8118
|
+
columns: ["carrier_id"];
|
|
8119
|
+
isOneToOne: false;
|
|
8120
|
+
referencedRelation: "carriers";
|
|
8121
|
+
referencedColumns: ["id"];
|
|
8122
|
+
}, {
|
|
8123
|
+
foreignKeyName: "order_shipments_order_id_fkey";
|
|
8124
|
+
columns: ["order_id"];
|
|
8125
|
+
isOneToOne: false;
|
|
8126
|
+
referencedRelation: "orders";
|
|
8127
|
+
referencedColumns: ["id"];
|
|
8128
|
+
}];
|
|
8129
|
+
};
|
|
7398
8130
|
orders: {
|
|
7399
8131
|
Row: {
|
|
8132
|
+
buffer_id: string | null;
|
|
7400
8133
|
created_at: string;
|
|
7401
8134
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
7402
8135
|
customer_id: string | null;
|
|
7403
8136
|
customer_name: string;
|
|
7404
8137
|
deleted_at: string | null;
|
|
7405
|
-
delivery_date: string;
|
|
8138
|
+
delivery_date: string | null;
|
|
8139
|
+
floriday_sales_order_id: string | null;
|
|
7406
8140
|
id: string;
|
|
8141
|
+
is_reservation: boolean;
|
|
7407
8142
|
notes: string | null;
|
|
7408
8143
|
order_date: string;
|
|
7409
8144
|
order_number: string;
|
|
@@ -7415,13 +8150,16 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
7415
8150
|
updated_at: string;
|
|
7416
8151
|
};
|
|
7417
8152
|
Insert: {
|
|
8153
|
+
buffer_id?: string | null;
|
|
7418
8154
|
created_at?: string;
|
|
7419
8155
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
7420
8156
|
customer_id?: string | null;
|
|
7421
8157
|
customer_name?: string;
|
|
7422
8158
|
deleted_at?: string | null;
|
|
7423
|
-
delivery_date
|
|
8159
|
+
delivery_date?: string | null;
|
|
8160
|
+
floriday_sales_order_id?: string | null;
|
|
7424
8161
|
id?: string;
|
|
8162
|
+
is_reservation?: boolean;
|
|
7425
8163
|
notes?: string | null;
|
|
7426
8164
|
order_date?: string;
|
|
7427
8165
|
order_number: string;
|
|
@@ -7433,13 +8171,16 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
7433
8171
|
updated_at?: string;
|
|
7434
8172
|
};
|
|
7435
8173
|
Update: {
|
|
8174
|
+
buffer_id?: string | null;
|
|
7436
8175
|
created_at?: string;
|
|
7437
8176
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
7438
8177
|
customer_id?: string | null;
|
|
7439
8178
|
customer_name?: string;
|
|
7440
8179
|
deleted_at?: string | null;
|
|
7441
|
-
delivery_date?: string;
|
|
8180
|
+
delivery_date?: string | null;
|
|
8181
|
+
floriday_sales_order_id?: string | null;
|
|
7442
8182
|
id?: string;
|
|
8183
|
+
is_reservation?: boolean;
|
|
7443
8184
|
notes?: string | null;
|
|
7444
8185
|
order_date?: string;
|
|
7445
8186
|
order_number?: string;
|
|
@@ -7451,6 +8192,12 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
7451
8192
|
updated_at?: string;
|
|
7452
8193
|
};
|
|
7453
8194
|
Relationships: [{
|
|
8195
|
+
foreignKeyName: "orders_buffer_id_fkey";
|
|
8196
|
+
columns: ["buffer_id"];
|
|
8197
|
+
isOneToOne: false;
|
|
8198
|
+
referencedRelation: "order_buffers";
|
|
8199
|
+
referencedColumns: ["id"];
|
|
8200
|
+
}, {
|
|
7454
8201
|
foreignKeyName: "orders_customer_id_fkey";
|
|
7455
8202
|
columns: ["customer_id"];
|
|
7456
8203
|
isOneToOne: false;
|
|
@@ -7714,6 +8461,8 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
7714
8461
|
Row: {
|
|
7715
8462
|
created_at: string;
|
|
7716
8463
|
description: string | null;
|
|
8464
|
+
head_product_id: string | null;
|
|
8465
|
+
head_trade_item_floriday_id: string | null;
|
|
7717
8466
|
id: string;
|
|
7718
8467
|
is_active: boolean;
|
|
7719
8468
|
name: string;
|
|
@@ -7723,6 +8472,8 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
7723
8472
|
Insert: {
|
|
7724
8473
|
created_at?: string;
|
|
7725
8474
|
description?: string | null;
|
|
8475
|
+
head_product_id?: string | null;
|
|
8476
|
+
head_trade_item_floriday_id?: string | null;
|
|
7726
8477
|
id?: string;
|
|
7727
8478
|
is_active?: boolean;
|
|
7728
8479
|
name: string;
|
|
@@ -7732,13 +8483,21 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
7732
8483
|
Update: {
|
|
7733
8484
|
created_at?: string;
|
|
7734
8485
|
description?: string | null;
|
|
8486
|
+
head_product_id?: string | null;
|
|
8487
|
+
head_trade_item_floriday_id?: string | null;
|
|
7735
8488
|
id?: string;
|
|
7736
8489
|
is_active?: boolean;
|
|
7737
8490
|
name?: string;
|
|
7738
8491
|
tenant_id?: string;
|
|
7739
8492
|
updated_at?: string;
|
|
7740
8493
|
};
|
|
7741
|
-
Relationships: [
|
|
8494
|
+
Relationships: [{
|
|
8495
|
+
foreignKeyName: "product_groups_head_product_id_fkey";
|
|
8496
|
+
columns: ["head_product_id"];
|
|
8497
|
+
isOneToOne: false;
|
|
8498
|
+
referencedRelation: "products";
|
|
8499
|
+
referencedColumns: ["id"];
|
|
8500
|
+
}];
|
|
7742
8501
|
};
|
|
7743
8502
|
products: {
|
|
7744
8503
|
Row: {
|
|
@@ -10289,6 +11048,7 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
10289
11048
|
internal_notes: string | null;
|
|
10290
11049
|
parent_werkbon_id: string | null;
|
|
10291
11050
|
parsed_payload: import("../integrations/supabase/types").Json | null;
|
|
11051
|
+
planning_status: string;
|
|
10292
11052
|
project_number: string | null;
|
|
10293
11053
|
room_number: string | null;
|
|
10294
11054
|
scheduled_end_time: string | null;
|
|
@@ -10296,6 +11056,7 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
10296
11056
|
sequence_number: number;
|
|
10297
11057
|
source_pdf_path: string | null;
|
|
10298
11058
|
status: string;
|
|
11059
|
+
technician_id: string | null;
|
|
10299
11060
|
technician_notes: string | null;
|
|
10300
11061
|
technician_notes_raw: string | null;
|
|
10301
11062
|
technician_task_description: string | null;
|
|
@@ -10316,6 +11077,7 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
10316
11077
|
internal_notes?: string | null;
|
|
10317
11078
|
parent_werkbon_id?: string | null;
|
|
10318
11079
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
11080
|
+
planning_status?: string;
|
|
10319
11081
|
project_number?: string | null;
|
|
10320
11082
|
room_number?: string | null;
|
|
10321
11083
|
scheduled_end_time?: string | null;
|
|
@@ -10323,6 +11085,7 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
10323
11085
|
sequence_number: number;
|
|
10324
11086
|
source_pdf_path?: string | null;
|
|
10325
11087
|
status?: string;
|
|
11088
|
+
technician_id?: string | null;
|
|
10326
11089
|
technician_notes?: string | null;
|
|
10327
11090
|
technician_notes_raw?: string | null;
|
|
10328
11091
|
technician_task_description?: string | null;
|
|
@@ -10343,6 +11106,7 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
10343
11106
|
internal_notes?: string | null;
|
|
10344
11107
|
parent_werkbon_id?: string | null;
|
|
10345
11108
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
11109
|
+
planning_status?: string;
|
|
10346
11110
|
project_number?: string | null;
|
|
10347
11111
|
room_number?: string | null;
|
|
10348
11112
|
scheduled_end_time?: string | null;
|
|
@@ -10350,6 +11114,7 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
10350
11114
|
sequence_number?: number;
|
|
10351
11115
|
source_pdf_path?: string | null;
|
|
10352
11116
|
status?: string;
|
|
11117
|
+
technician_id?: string | null;
|
|
10353
11118
|
technician_notes?: string | null;
|
|
10354
11119
|
technician_notes_raw?: string | null;
|
|
10355
11120
|
technician_task_description?: string | null;
|
|
@@ -10358,17 +11123,17 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
10358
11123
|
work_address?: string | null;
|
|
10359
11124
|
};
|
|
10360
11125
|
Relationships: [{
|
|
10361
|
-
foreignKeyName: "werkbonnen_customer_id_fkey";
|
|
10362
|
-
columns: ["customer_id"];
|
|
10363
|
-
isOneToOne: false;
|
|
10364
|
-
referencedRelation: "customers";
|
|
10365
|
-
referencedColumns: ["id"];
|
|
10366
|
-
}, {
|
|
10367
11126
|
foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
|
|
10368
11127
|
columns: ["parent_werkbon_id"];
|
|
10369
11128
|
isOneToOne: false;
|
|
10370
11129
|
referencedRelation: "werkbonnen";
|
|
10371
11130
|
referencedColumns: ["id"];
|
|
11131
|
+
}, {
|
|
11132
|
+
foreignKeyName: "werkbonnen_technician_id_fkey";
|
|
11133
|
+
columns: ["technician_id"];
|
|
11134
|
+
isOneToOne: false;
|
|
11135
|
+
referencedRelation: "monteurs";
|
|
11136
|
+
referencedColumns: ["id"];
|
|
10372
11137
|
}];
|
|
10373
11138
|
};
|
|
10374
11139
|
work_order_monteurs: {
|
|
@@ -11087,6 +11852,21 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
11087
11852
|
};
|
|
11088
11853
|
Returns: string;
|
|
11089
11854
|
};
|
|
11855
|
+
ai_usage_by_module: {
|
|
11856
|
+
Args: {
|
|
11857
|
+
_from: string;
|
|
11858
|
+
_to: string;
|
|
11859
|
+
};
|
|
11860
|
+
Returns: {
|
|
11861
|
+
calls: number;
|
|
11862
|
+
consumer_module_id: string;
|
|
11863
|
+
cost_usd: number;
|
|
11864
|
+
errors: number;
|
|
11865
|
+
input_tokens: number;
|
|
11866
|
+
output_tokens: number;
|
|
11867
|
+
total_tokens: number;
|
|
11868
|
+
}[];
|
|
11869
|
+
};
|
|
11090
11870
|
apply_stock_consumption: {
|
|
11091
11871
|
Args: {
|
|
11092
11872
|
p_order_id: string;
|
|
@@ -11235,6 +12015,12 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
11235
12015
|
Args: never;
|
|
11236
12016
|
Returns: string;
|
|
11237
12017
|
};
|
|
12018
|
+
custom_access_token_hook: {
|
|
12019
|
+
Args: {
|
|
12020
|
+
event: import("../integrations/supabase/types").Json;
|
|
12021
|
+
};
|
|
12022
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
12023
|
+
};
|
|
11238
12024
|
dashboard_alert_counts: {
|
|
11239
12025
|
Args: never;
|
|
11240
12026
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -11570,6 +12356,14 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
11570
12356
|
};
|
|
11571
12357
|
Returns: string;
|
|
11572
12358
|
};
|
|
12359
|
+
has_module_permission: {
|
|
12360
|
+
Args: {
|
|
12361
|
+
_min: string;
|
|
12362
|
+
_module_id: string;
|
|
12363
|
+
_user_id: string;
|
|
12364
|
+
};
|
|
12365
|
+
Returns: boolean;
|
|
12366
|
+
};
|
|
11573
12367
|
has_role: {
|
|
11574
12368
|
Args: {
|
|
11575
12369
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -11595,6 +12389,20 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
11595
12389
|
};
|
|
11596
12390
|
Returns: boolean;
|
|
11597
12391
|
};
|
|
12392
|
+
jwt_has_role: {
|
|
12393
|
+
Args: {
|
|
12394
|
+
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
12395
|
+
};
|
|
12396
|
+
Returns: boolean;
|
|
12397
|
+
};
|
|
12398
|
+
list_monteurs: {
|
|
12399
|
+
Args: never;
|
|
12400
|
+
Returns: {
|
|
12401
|
+
display_name: string;
|
|
12402
|
+
email: string;
|
|
12403
|
+
user_id: string;
|
|
12404
|
+
}[];
|
|
12405
|
+
};
|
|
11598
12406
|
local_effective_price: {
|
|
11599
12407
|
Args: {
|
|
11600
12408
|
_customer_id: string;
|
|
@@ -11611,6 +12419,22 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
11611
12419
|
source_id: string;
|
|
11612
12420
|
}[];
|
|
11613
12421
|
};
|
|
12422
|
+
log_ai_call: {
|
|
12423
|
+
Args: {
|
|
12424
|
+
_consumer_module_id: string;
|
|
12425
|
+
_cost_usd: number;
|
|
12426
|
+
_duration_ms: number;
|
|
12427
|
+
_error_code: string;
|
|
12428
|
+
_error_message: string;
|
|
12429
|
+
_input_tokens: number;
|
|
12430
|
+
_model_slug: string;
|
|
12431
|
+
_output_tokens: number;
|
|
12432
|
+
_provider_slug: string;
|
|
12433
|
+
_status: string;
|
|
12434
|
+
_total_tokens: number;
|
|
12435
|
+
};
|
|
12436
|
+
Returns: string;
|
|
12437
|
+
};
|
|
11614
12438
|
mark_offer_clicked: {
|
|
11615
12439
|
Args: {
|
|
11616
12440
|
p_code: string;
|
|
@@ -11623,6 +12447,12 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
11623
12447
|
};
|
|
11624
12448
|
Returns: undefined;
|
|
11625
12449
|
};
|
|
12450
|
+
mark_shipment_shipped: {
|
|
12451
|
+
Args: {
|
|
12452
|
+
p_shipment_id: string;
|
|
12453
|
+
};
|
|
12454
|
+
Returns: undefined;
|
|
12455
|
+
};
|
|
11626
12456
|
next_order_number: {
|
|
11627
12457
|
Args: {
|
|
11628
12458
|
p_prefix: string;
|
|
@@ -12099,9 +12929,11 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
12099
12929
|
};
|
|
12100
12930
|
};
|
|
12101
12931
|
Enums: {
|
|
12102
|
-
app_role: "admin" | "
|
|
12932
|
+
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
|
|
12103
12933
|
exact_env: "staging" | "live";
|
|
12104
12934
|
exact_push_status: "pending" | "sent" | "error";
|
|
12935
|
+
itk_customer_segment: "Business" | "Private";
|
|
12936
|
+
itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
|
|
12105
12937
|
quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
|
|
12106
12938
|
};
|
|
12107
12939
|
CompositeTypes: { [_ in never]: never; };
|