@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
|
@@ -303,6 +303,57 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
303
303
|
referencedColumns: ["id"];
|
|
304
304
|
}];
|
|
305
305
|
};
|
|
306
|
+
ai_call_log: {
|
|
307
|
+
Row: {
|
|
308
|
+
consumer_module_id: string;
|
|
309
|
+
cost_usd: number | null;
|
|
310
|
+
created_at: string;
|
|
311
|
+
created_by: string | null;
|
|
312
|
+
duration_ms: number | null;
|
|
313
|
+
error_code: string | null;
|
|
314
|
+
error_message: string | null;
|
|
315
|
+
id: string;
|
|
316
|
+
input_tokens: number;
|
|
317
|
+
model_slug: string | null;
|
|
318
|
+
output_tokens: number;
|
|
319
|
+
provider_slug: string | null;
|
|
320
|
+
status: string;
|
|
321
|
+
total_tokens: number;
|
|
322
|
+
};
|
|
323
|
+
Insert: {
|
|
324
|
+
consumer_module_id: string;
|
|
325
|
+
cost_usd?: number | null;
|
|
326
|
+
created_at?: string;
|
|
327
|
+
created_by?: string | null;
|
|
328
|
+
duration_ms?: number | null;
|
|
329
|
+
error_code?: string | null;
|
|
330
|
+
error_message?: string | null;
|
|
331
|
+
id?: string;
|
|
332
|
+
input_tokens?: number;
|
|
333
|
+
model_slug?: string | null;
|
|
334
|
+
output_tokens?: number;
|
|
335
|
+
provider_slug?: string | null;
|
|
336
|
+
status: string;
|
|
337
|
+
total_tokens?: number;
|
|
338
|
+
};
|
|
339
|
+
Update: {
|
|
340
|
+
consumer_module_id?: string;
|
|
341
|
+
cost_usd?: number | null;
|
|
342
|
+
created_at?: string;
|
|
343
|
+
created_by?: string | null;
|
|
344
|
+
duration_ms?: number | null;
|
|
345
|
+
error_code?: string | null;
|
|
346
|
+
error_message?: string | null;
|
|
347
|
+
id?: string;
|
|
348
|
+
input_tokens?: number;
|
|
349
|
+
model_slug?: string | null;
|
|
350
|
+
output_tokens?: number;
|
|
351
|
+
provider_slug?: string | null;
|
|
352
|
+
status?: string;
|
|
353
|
+
total_tokens?: number;
|
|
354
|
+
};
|
|
355
|
+
Relationships: [];
|
|
356
|
+
};
|
|
306
357
|
ai_credentials: {
|
|
307
358
|
Row: {
|
|
308
359
|
active: boolean;
|
|
@@ -339,6 +390,36 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
339
390
|
referencedColumns: ["id"];
|
|
340
391
|
}];
|
|
341
392
|
};
|
|
393
|
+
ai_goals: {
|
|
394
|
+
Row: {
|
|
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
|
+
Insert: {
|
|
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
|
+
Update: {
|
|
413
|
+
active?: boolean;
|
|
414
|
+
created_at?: string;
|
|
415
|
+
description?: string | null;
|
|
416
|
+
key?: string;
|
|
417
|
+
label?: string;
|
|
418
|
+
sort_order?: number;
|
|
419
|
+
updated_at?: string;
|
|
420
|
+
};
|
|
421
|
+
Relationships: [];
|
|
422
|
+
};
|
|
342
423
|
ai_model_pricing: {
|
|
343
424
|
Row: {
|
|
344
425
|
created_at: string;
|
|
@@ -1125,6 +1206,141 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
1125
1206
|
};
|
|
1126
1207
|
Relationships: [];
|
|
1127
1208
|
};
|
|
1209
|
+
cart_planning_pick_times: {
|
|
1210
|
+
Row: {
|
|
1211
|
+
created_at: string;
|
|
1212
|
+
id: string;
|
|
1213
|
+
pot_size: string;
|
|
1214
|
+
seconds_per_cart: number;
|
|
1215
|
+
updated_at: string;
|
|
1216
|
+
};
|
|
1217
|
+
Insert: {
|
|
1218
|
+
created_at?: string;
|
|
1219
|
+
id?: string;
|
|
1220
|
+
pot_size: string;
|
|
1221
|
+
seconds_per_cart: number;
|
|
1222
|
+
updated_at?: string;
|
|
1223
|
+
};
|
|
1224
|
+
Update: {
|
|
1225
|
+
created_at?: string;
|
|
1226
|
+
id?: string;
|
|
1227
|
+
pot_size?: string;
|
|
1228
|
+
seconds_per_cart?: number;
|
|
1229
|
+
updated_at?: string;
|
|
1230
|
+
};
|
|
1231
|
+
Relationships: [];
|
|
1232
|
+
};
|
|
1233
|
+
cart_planning_product_overrides: {
|
|
1234
|
+
Row: {
|
|
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
|
+
Insert: {
|
|
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
|
+
Update: {
|
|
1253
|
+
created_at?: string;
|
|
1254
|
+
id?: string;
|
|
1255
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
1256
|
+
never_mix?: boolean;
|
|
1257
|
+
notes?: string | null;
|
|
1258
|
+
product_id?: string;
|
|
1259
|
+
updated_at?: string;
|
|
1260
|
+
};
|
|
1261
|
+
Relationships: [{
|
|
1262
|
+
foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
|
|
1263
|
+
columns: ["product_id"];
|
|
1264
|
+
isOneToOne: true;
|
|
1265
|
+
referencedRelation: "products";
|
|
1266
|
+
referencedColumns: ["id"];
|
|
1267
|
+
}];
|
|
1268
|
+
};
|
|
1269
|
+
cart_planning_settings: {
|
|
1270
|
+
Row: {
|
|
1271
|
+
allow_editing_after_pickstation_send: boolean;
|
|
1272
|
+
buffer_grouping_mode: string;
|
|
1273
|
+
combine_floriday_orders: boolean;
|
|
1274
|
+
combine_floriday_orders_window: string;
|
|
1275
|
+
combine_orders_scope: string;
|
|
1276
|
+
default_workers: number;
|
|
1277
|
+
id: number;
|
|
1278
|
+
max_beladingen_per_layer: number;
|
|
1279
|
+
max_customers_per_cart: number;
|
|
1280
|
+
max_one_customer_per_layer: boolean;
|
|
1281
|
+
max_party_share_per_layer_pct: number;
|
|
1282
|
+
optimization_strategy: string;
|
|
1283
|
+
own_cart_from_layers: number;
|
|
1284
|
+
pick_time_mode: string;
|
|
1285
|
+
plants_per_day: number;
|
|
1286
|
+
plants_per_hour: number;
|
|
1287
|
+
require_same_carrier: boolean;
|
|
1288
|
+
require_same_crate_type: boolean;
|
|
1289
|
+
require_same_delivery_date: boolean;
|
|
1290
|
+
require_same_delivery_location: boolean;
|
|
1291
|
+
updated_at: string;
|
|
1292
|
+
updated_by: string | null;
|
|
1293
|
+
};
|
|
1294
|
+
Insert: {
|
|
1295
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
1296
|
+
buffer_grouping_mode?: string;
|
|
1297
|
+
combine_floriday_orders?: boolean;
|
|
1298
|
+
combine_floriday_orders_window?: string;
|
|
1299
|
+
combine_orders_scope?: string;
|
|
1300
|
+
default_workers?: number;
|
|
1301
|
+
id?: number;
|
|
1302
|
+
max_beladingen_per_layer?: number;
|
|
1303
|
+
max_customers_per_cart?: number;
|
|
1304
|
+
max_one_customer_per_layer?: boolean;
|
|
1305
|
+
max_party_share_per_layer_pct?: number;
|
|
1306
|
+
optimization_strategy?: string;
|
|
1307
|
+
own_cart_from_layers?: number;
|
|
1308
|
+
pick_time_mode?: string;
|
|
1309
|
+
plants_per_day?: number;
|
|
1310
|
+
plants_per_hour?: number;
|
|
1311
|
+
require_same_carrier?: boolean;
|
|
1312
|
+
require_same_crate_type?: boolean;
|
|
1313
|
+
require_same_delivery_date?: boolean;
|
|
1314
|
+
require_same_delivery_location?: boolean;
|
|
1315
|
+
updated_at?: string;
|
|
1316
|
+
updated_by?: string | null;
|
|
1317
|
+
};
|
|
1318
|
+
Update: {
|
|
1319
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
1320
|
+
buffer_grouping_mode?: string;
|
|
1321
|
+
combine_floriday_orders?: boolean;
|
|
1322
|
+
combine_floriday_orders_window?: string;
|
|
1323
|
+
combine_orders_scope?: string;
|
|
1324
|
+
default_workers?: number;
|
|
1325
|
+
id?: number;
|
|
1326
|
+
max_beladingen_per_layer?: number;
|
|
1327
|
+
max_customers_per_cart?: number;
|
|
1328
|
+
max_one_customer_per_layer?: boolean;
|
|
1329
|
+
max_party_share_per_layer_pct?: number;
|
|
1330
|
+
optimization_strategy?: string;
|
|
1331
|
+
own_cart_from_layers?: number;
|
|
1332
|
+
pick_time_mode?: string;
|
|
1333
|
+
plants_per_day?: number;
|
|
1334
|
+
plants_per_hour?: number;
|
|
1335
|
+
require_same_carrier?: boolean;
|
|
1336
|
+
require_same_crate_type?: boolean;
|
|
1337
|
+
require_same_delivery_date?: boolean;
|
|
1338
|
+
require_same_delivery_location?: boolean;
|
|
1339
|
+
updated_at?: string;
|
|
1340
|
+
updated_by?: string | null;
|
|
1341
|
+
};
|
|
1342
|
+
Relationships: [];
|
|
1343
|
+
};
|
|
1128
1344
|
cart_replan_queue: {
|
|
1129
1345
|
Row: {
|
|
1130
1346
|
attempts: number;
|
|
@@ -1155,6 +1371,39 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
1155
1371
|
referencedColumns: ["id"];
|
|
1156
1372
|
}];
|
|
1157
1373
|
};
|
|
1374
|
+
cart_types: {
|
|
1375
|
+
Row: {
|
|
1376
|
+
created_at: string;
|
|
1377
|
+
id: string;
|
|
1378
|
+
is_default: boolean;
|
|
1379
|
+
layer_length_cm: number;
|
|
1380
|
+
layer_width_cm: number;
|
|
1381
|
+
layers_per_cart: number;
|
|
1382
|
+
name: string;
|
|
1383
|
+
updated_at: string;
|
|
1384
|
+
};
|
|
1385
|
+
Insert: {
|
|
1386
|
+
created_at?: string;
|
|
1387
|
+
id?: string;
|
|
1388
|
+
is_default?: boolean;
|
|
1389
|
+
layer_length_cm: number;
|
|
1390
|
+
layer_width_cm: number;
|
|
1391
|
+
layers_per_cart?: number;
|
|
1392
|
+
name: string;
|
|
1393
|
+
updated_at?: string;
|
|
1394
|
+
};
|
|
1395
|
+
Update: {
|
|
1396
|
+
created_at?: string;
|
|
1397
|
+
id?: string;
|
|
1398
|
+
is_default?: boolean;
|
|
1399
|
+
layer_length_cm?: number;
|
|
1400
|
+
layer_width_cm?: number;
|
|
1401
|
+
layers_per_cart?: number;
|
|
1402
|
+
name?: string;
|
|
1403
|
+
updated_at?: string;
|
|
1404
|
+
};
|
|
1405
|
+
Relationships: [];
|
|
1406
|
+
};
|
|
1158
1407
|
catalog_articles_cache: {
|
|
1159
1408
|
Row: {
|
|
1160
1409
|
created_at: string;
|
|
@@ -1242,6 +1491,36 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
1242
1491
|
};
|
|
1243
1492
|
Relationships: [];
|
|
1244
1493
|
};
|
|
1494
|
+
crate_types: {
|
|
1495
|
+
Row: {
|
|
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
|
+
Insert: {
|
|
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
|
+
Update: {
|
|
1514
|
+
created_at?: string;
|
|
1515
|
+
id?: string;
|
|
1516
|
+
length_cm?: number;
|
|
1517
|
+
name?: string;
|
|
1518
|
+
plants_per_crate?: number;
|
|
1519
|
+
updated_at?: string;
|
|
1520
|
+
width_cm?: number;
|
|
1521
|
+
};
|
|
1522
|
+
Relationships: [];
|
|
1523
|
+
};
|
|
1245
1524
|
customer_audit_log: {
|
|
1246
1525
|
Row: {
|
|
1247
1526
|
action: string;
|
|
@@ -5781,127 +6060,409 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
5781
6060
|
};
|
|
5782
6061
|
Relationships: [];
|
|
5783
6062
|
};
|
|
5784
|
-
|
|
6063
|
+
itk_contact_persons: {
|
|
5785
6064
|
Row: {
|
|
5786
|
-
base_price: number | null;
|
|
5787
6065
|
created_at: string;
|
|
5788
|
-
currency: string;
|
|
5789
6066
|
customer_id: string;
|
|
6067
|
+
email: string | null;
|
|
5790
6068
|
id: string;
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
product_category_id: string | null;
|
|
5795
|
-
product_id: string | null;
|
|
6069
|
+
name: string;
|
|
6070
|
+
phone: string | null;
|
|
6071
|
+
role: string | null;
|
|
5796
6072
|
updated_at: string;
|
|
5797
|
-
valid_from: string | null;
|
|
5798
|
-
valid_until: string | null;
|
|
5799
6073
|
};
|
|
5800
6074
|
Insert: {
|
|
5801
|
-
base_price?: number | null;
|
|
5802
6075
|
created_at?: string;
|
|
5803
|
-
currency?: string;
|
|
5804
6076
|
customer_id: string;
|
|
6077
|
+
email?: string | null;
|
|
5805
6078
|
id?: string;
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
product_category_id?: string | null;
|
|
5810
|
-
product_id?: string | null;
|
|
6079
|
+
name: string;
|
|
6080
|
+
phone?: string | null;
|
|
6081
|
+
role?: string | null;
|
|
5811
6082
|
updated_at?: string;
|
|
5812
|
-
valid_from?: string | null;
|
|
5813
|
-
valid_until?: string | null;
|
|
5814
6083
|
};
|
|
5815
6084
|
Update: {
|
|
5816
|
-
base_price?: number | null;
|
|
5817
6085
|
created_at?: string;
|
|
5818
|
-
currency?: string;
|
|
5819
6086
|
customer_id?: string;
|
|
6087
|
+
email?: string | null;
|
|
5820
6088
|
id?: string;
|
|
5821
|
-
|
|
5822
|
-
|
|
5823
|
-
|
|
5824
|
-
product_category_id?: string | null;
|
|
5825
|
-
product_id?: string | null;
|
|
6089
|
+
name?: string;
|
|
6090
|
+
phone?: string | null;
|
|
6091
|
+
role?: string | null;
|
|
5826
6092
|
updated_at?: string;
|
|
5827
|
-
valid_from?: string | null;
|
|
5828
|
-
valid_until?: string | null;
|
|
5829
6093
|
};
|
|
5830
6094
|
Relationships: [{
|
|
5831
|
-
foreignKeyName: "
|
|
6095
|
+
foreignKeyName: "itk_contact_persons_customer_id_fkey";
|
|
5832
6096
|
columns: ["customer_id"];
|
|
5833
6097
|
isOneToOne: false;
|
|
5834
|
-
referencedRelation: "
|
|
5835
|
-
referencedColumns: ["id"];
|
|
5836
|
-
}, {
|
|
5837
|
-
foreignKeyName: "local_customer_agreements_product_category_id_fkey";
|
|
5838
|
-
columns: ["product_category_id"];
|
|
5839
|
-
isOneToOne: false;
|
|
5840
|
-
referencedRelation: "product_categories";
|
|
5841
|
-
referencedColumns: ["id"];
|
|
5842
|
-
}, {
|
|
5843
|
-
foreignKeyName: "local_customer_agreements_product_id_fkey";
|
|
5844
|
-
columns: ["product_id"];
|
|
5845
|
-
isOneToOne: false;
|
|
5846
|
-
referencedRelation: "products";
|
|
6098
|
+
referencedRelation: "itk_customers";
|
|
5847
6099
|
referencedColumns: ["id"];
|
|
5848
6100
|
}];
|
|
5849
6101
|
};
|
|
5850
|
-
|
|
6102
|
+
itk_customer_dynamic_values: {
|
|
5851
6103
|
Row: {
|
|
5852
6104
|
created_at: string;
|
|
5853
|
-
currency: string;
|
|
5854
6105
|
customer_id: string;
|
|
5855
|
-
|
|
5856
|
-
discount_value: number;
|
|
6106
|
+
field_id: string;
|
|
5857
6107
|
id: string;
|
|
5858
|
-
min_quantity: number;
|
|
5859
|
-
notes: string | null;
|
|
5860
|
-
product_category_id: string | null;
|
|
5861
|
-
product_id: string | null;
|
|
5862
6108
|
updated_at: string;
|
|
5863
|
-
|
|
5864
|
-
valid_until: string | null;
|
|
6109
|
+
value: string | null;
|
|
5865
6110
|
};
|
|
5866
6111
|
Insert: {
|
|
5867
6112
|
created_at?: string;
|
|
5868
|
-
currency?: string;
|
|
5869
6113
|
customer_id: string;
|
|
5870
|
-
|
|
5871
|
-
discount_value: number;
|
|
6114
|
+
field_id: string;
|
|
5872
6115
|
id?: string;
|
|
5873
|
-
min_quantity?: number;
|
|
5874
|
-
notes?: string | null;
|
|
5875
|
-
product_category_id?: string | null;
|
|
5876
|
-
product_id?: string | null;
|
|
5877
6116
|
updated_at?: string;
|
|
5878
|
-
|
|
5879
|
-
valid_until?: string | null;
|
|
6117
|
+
value?: string | null;
|
|
5880
6118
|
};
|
|
5881
6119
|
Update: {
|
|
5882
6120
|
created_at?: string;
|
|
5883
|
-
currency?: string;
|
|
5884
6121
|
customer_id?: string;
|
|
5885
|
-
|
|
5886
|
-
discount_value?: number;
|
|
6122
|
+
field_id?: string;
|
|
5887
6123
|
id?: string;
|
|
5888
|
-
min_quantity?: number;
|
|
5889
|
-
notes?: string | null;
|
|
5890
|
-
product_category_id?: string | null;
|
|
5891
|
-
product_id?: string | null;
|
|
5892
6124
|
updated_at?: string;
|
|
5893
|
-
|
|
5894
|
-
valid_until?: string | null;
|
|
6125
|
+
value?: string | null;
|
|
5895
6126
|
};
|
|
5896
6127
|
Relationships: [{
|
|
5897
|
-
foreignKeyName: "
|
|
6128
|
+
foreignKeyName: "itk_customer_dynamic_values_customer_id_fkey";
|
|
5898
6129
|
columns: ["customer_id"];
|
|
5899
6130
|
isOneToOne: false;
|
|
5900
|
-
referencedRelation: "
|
|
6131
|
+
referencedRelation: "itk_customers";
|
|
5901
6132
|
referencedColumns: ["id"];
|
|
5902
6133
|
}, {
|
|
5903
|
-
foreignKeyName: "
|
|
5904
|
-
columns: ["
|
|
6134
|
+
foreignKeyName: "itk_customer_dynamic_values_field_id_fkey";
|
|
6135
|
+
columns: ["field_id"];
|
|
6136
|
+
isOneToOne: false;
|
|
6137
|
+
referencedRelation: "itk_dynamic_fields";
|
|
6138
|
+
referencedColumns: ["id"];
|
|
6139
|
+
}];
|
|
6140
|
+
};
|
|
6141
|
+
itk_customer_notes: {
|
|
6142
|
+
Row: {
|
|
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
|
+
Insert: {
|
|
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
|
+
Update: {
|
|
6161
|
+
body?: string;
|
|
6162
|
+
created_at?: string;
|
|
6163
|
+
created_by?: string | null;
|
|
6164
|
+
customer_id?: string;
|
|
6165
|
+
id?: string;
|
|
6166
|
+
note_type?: string;
|
|
6167
|
+
updated_at?: string;
|
|
6168
|
+
};
|
|
6169
|
+
Relationships: [{
|
|
6170
|
+
foreignKeyName: "itk_customer_notes_customer_id_fkey";
|
|
6171
|
+
columns: ["customer_id"];
|
|
6172
|
+
isOneToOne: false;
|
|
6173
|
+
referencedRelation: "itk_customers";
|
|
6174
|
+
referencedColumns: ["id"];
|
|
6175
|
+
}];
|
|
6176
|
+
};
|
|
6177
|
+
itk_customers: {
|
|
6178
|
+
Row: {
|
|
6179
|
+
billing_city: string | null;
|
|
6180
|
+
billing_postcode: string | null;
|
|
6181
|
+
billing_street: string | null;
|
|
6182
|
+
created_at: string;
|
|
6183
|
+
general_email: string | null;
|
|
6184
|
+
general_phone: string | null;
|
|
6185
|
+
id: string;
|
|
6186
|
+
legacy_customer_id: string | null;
|
|
6187
|
+
name: string;
|
|
6188
|
+
segment: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
6189
|
+
updated_at: string;
|
|
6190
|
+
};
|
|
6191
|
+
Insert: {
|
|
6192
|
+
billing_city?: string | null;
|
|
6193
|
+
billing_postcode?: string | null;
|
|
6194
|
+
billing_street?: string | null;
|
|
6195
|
+
created_at?: string;
|
|
6196
|
+
general_email?: string | null;
|
|
6197
|
+
general_phone?: string | null;
|
|
6198
|
+
id?: string;
|
|
6199
|
+
legacy_customer_id?: string | null;
|
|
6200
|
+
name: string;
|
|
6201
|
+
segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
6202
|
+
updated_at?: string;
|
|
6203
|
+
};
|
|
6204
|
+
Update: {
|
|
6205
|
+
billing_city?: string | null;
|
|
6206
|
+
billing_postcode?: string | null;
|
|
6207
|
+
billing_street?: string | null;
|
|
6208
|
+
created_at?: string;
|
|
6209
|
+
general_email?: string | null;
|
|
6210
|
+
general_phone?: string | null;
|
|
6211
|
+
id?: string;
|
|
6212
|
+
legacy_customer_id?: string | null;
|
|
6213
|
+
name?: string;
|
|
6214
|
+
segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
6215
|
+
updated_at?: string;
|
|
6216
|
+
};
|
|
6217
|
+
Relationships: [{
|
|
6218
|
+
foreignKeyName: "itk_customers_legacy_customer_id_fkey";
|
|
6219
|
+
columns: ["legacy_customer_id"];
|
|
6220
|
+
isOneToOne: false;
|
|
6221
|
+
referencedRelation: "customers";
|
|
6222
|
+
referencedColumns: ["id"];
|
|
6223
|
+
}];
|
|
6224
|
+
};
|
|
6225
|
+
itk_dynamic_fields: {
|
|
6226
|
+
Row: {
|
|
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
|
+
Insert: {
|
|
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
|
+
Update: {
|
|
6245
|
+
created_at?: string;
|
|
6246
|
+
field_name?: string;
|
|
6247
|
+
field_type?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
6248
|
+
id?: string;
|
|
6249
|
+
options?: import("../integrations/supabase/types").Json;
|
|
6250
|
+
sort_order?: number;
|
|
6251
|
+
updated_at?: string;
|
|
6252
|
+
};
|
|
6253
|
+
Relationships: [];
|
|
6254
|
+
};
|
|
6255
|
+
itk_work_locations: {
|
|
6256
|
+
Row: {
|
|
6257
|
+
city: string | null;
|
|
6258
|
+
created_at: string;
|
|
6259
|
+
customer_id: string;
|
|
6260
|
+
id: string;
|
|
6261
|
+
instructions: string | null;
|
|
6262
|
+
label: string;
|
|
6263
|
+
latitude: number | null;
|
|
6264
|
+
longitude: number | null;
|
|
6265
|
+
postcode: string | null;
|
|
6266
|
+
street: string | null;
|
|
6267
|
+
updated_at: string;
|
|
6268
|
+
};
|
|
6269
|
+
Insert: {
|
|
6270
|
+
city?: string | null;
|
|
6271
|
+
created_at?: string;
|
|
6272
|
+
customer_id: string;
|
|
6273
|
+
id?: string;
|
|
6274
|
+
instructions?: string | null;
|
|
6275
|
+
label: string;
|
|
6276
|
+
latitude?: number | null;
|
|
6277
|
+
longitude?: number | null;
|
|
6278
|
+
postcode?: string | null;
|
|
6279
|
+
street?: string | null;
|
|
6280
|
+
updated_at?: string;
|
|
6281
|
+
};
|
|
6282
|
+
Update: {
|
|
6283
|
+
city?: string | null;
|
|
6284
|
+
created_at?: string;
|
|
6285
|
+
customer_id?: string;
|
|
6286
|
+
id?: string;
|
|
6287
|
+
instructions?: string | null;
|
|
6288
|
+
label?: string;
|
|
6289
|
+
latitude?: number | null;
|
|
6290
|
+
longitude?: number | null;
|
|
6291
|
+
postcode?: string | null;
|
|
6292
|
+
street?: string | null;
|
|
6293
|
+
updated_at?: string;
|
|
6294
|
+
};
|
|
6295
|
+
Relationships: [{
|
|
6296
|
+
foreignKeyName: "itk_work_locations_customer_id_fkey";
|
|
6297
|
+
columns: ["customer_id"];
|
|
6298
|
+
isOneToOne: false;
|
|
6299
|
+
referencedRelation: "itk_customers";
|
|
6300
|
+
referencedColumns: ["id"];
|
|
6301
|
+
}];
|
|
6302
|
+
};
|
|
6303
|
+
leave_requests: {
|
|
6304
|
+
Row: {
|
|
6305
|
+
created_at: string;
|
|
6306
|
+
end_date: string;
|
|
6307
|
+
id: string;
|
|
6308
|
+
reason: string | null;
|
|
6309
|
+
start_date: string;
|
|
6310
|
+
status: string;
|
|
6311
|
+
tenant_id: string;
|
|
6312
|
+
updated_at: string;
|
|
6313
|
+
user_id: string;
|
|
6314
|
+
};
|
|
6315
|
+
Insert: {
|
|
6316
|
+
created_at?: string;
|
|
6317
|
+
end_date: string;
|
|
6318
|
+
id?: string;
|
|
6319
|
+
reason?: string | null;
|
|
6320
|
+
start_date: string;
|
|
6321
|
+
status?: string;
|
|
6322
|
+
tenant_id?: string;
|
|
6323
|
+
updated_at?: string;
|
|
6324
|
+
user_id: string;
|
|
6325
|
+
};
|
|
6326
|
+
Update: {
|
|
6327
|
+
created_at?: string;
|
|
6328
|
+
end_date?: string;
|
|
6329
|
+
id?: string;
|
|
6330
|
+
reason?: string | null;
|
|
6331
|
+
start_date?: string;
|
|
6332
|
+
status?: string;
|
|
6333
|
+
tenant_id?: string;
|
|
6334
|
+
updated_at?: string;
|
|
6335
|
+
user_id?: string;
|
|
6336
|
+
};
|
|
6337
|
+
Relationships: [{
|
|
6338
|
+
foreignKeyName: "leave_requests_user_id_fkey";
|
|
6339
|
+
columns: ["user_id"];
|
|
6340
|
+
isOneToOne: false;
|
|
6341
|
+
referencedRelation: "monteurs";
|
|
6342
|
+
referencedColumns: ["id"];
|
|
6343
|
+
}];
|
|
6344
|
+
};
|
|
6345
|
+
local_customer_agreements: {
|
|
6346
|
+
Row: {
|
|
6347
|
+
base_price: number | null;
|
|
6348
|
+
created_at: string;
|
|
6349
|
+
currency: string;
|
|
6350
|
+
customer_id: string;
|
|
6351
|
+
id: string;
|
|
6352
|
+
min_quantity: number;
|
|
6353
|
+
net_price: number;
|
|
6354
|
+
notes: string | null;
|
|
6355
|
+
product_category_id: string | null;
|
|
6356
|
+
product_id: string | null;
|
|
6357
|
+
updated_at: string;
|
|
6358
|
+
valid_from: string | null;
|
|
6359
|
+
valid_until: string | null;
|
|
6360
|
+
};
|
|
6361
|
+
Insert: {
|
|
6362
|
+
base_price?: number | null;
|
|
6363
|
+
created_at?: string;
|
|
6364
|
+
currency?: string;
|
|
6365
|
+
customer_id: string;
|
|
6366
|
+
id?: string;
|
|
6367
|
+
min_quantity?: number;
|
|
6368
|
+
net_price: number;
|
|
6369
|
+
notes?: string | null;
|
|
6370
|
+
product_category_id?: string | null;
|
|
6371
|
+
product_id?: string | null;
|
|
6372
|
+
updated_at?: string;
|
|
6373
|
+
valid_from?: string | null;
|
|
6374
|
+
valid_until?: string | null;
|
|
6375
|
+
};
|
|
6376
|
+
Update: {
|
|
6377
|
+
base_price?: number | null;
|
|
6378
|
+
created_at?: string;
|
|
6379
|
+
currency?: string;
|
|
6380
|
+
customer_id?: string;
|
|
6381
|
+
id?: string;
|
|
6382
|
+
min_quantity?: number;
|
|
6383
|
+
net_price?: number;
|
|
6384
|
+
notes?: string | null;
|
|
6385
|
+
product_category_id?: string | null;
|
|
6386
|
+
product_id?: string | null;
|
|
6387
|
+
updated_at?: string;
|
|
6388
|
+
valid_from?: string | null;
|
|
6389
|
+
valid_until?: string | null;
|
|
6390
|
+
};
|
|
6391
|
+
Relationships: [{
|
|
6392
|
+
foreignKeyName: "local_customer_agreements_customer_id_fkey";
|
|
6393
|
+
columns: ["customer_id"];
|
|
6394
|
+
isOneToOne: false;
|
|
6395
|
+
referencedRelation: "customers";
|
|
6396
|
+
referencedColumns: ["id"];
|
|
6397
|
+
}, {
|
|
6398
|
+
foreignKeyName: "local_customer_agreements_product_category_id_fkey";
|
|
6399
|
+
columns: ["product_category_id"];
|
|
6400
|
+
isOneToOne: false;
|
|
6401
|
+
referencedRelation: "product_categories";
|
|
6402
|
+
referencedColumns: ["id"];
|
|
6403
|
+
}, {
|
|
6404
|
+
foreignKeyName: "local_customer_agreements_product_id_fkey";
|
|
6405
|
+
columns: ["product_id"];
|
|
6406
|
+
isOneToOne: false;
|
|
6407
|
+
referencedRelation: "products";
|
|
6408
|
+
referencedColumns: ["id"];
|
|
6409
|
+
}];
|
|
6410
|
+
};
|
|
6411
|
+
local_customer_price_groups: {
|
|
6412
|
+
Row: {
|
|
6413
|
+
created_at: string;
|
|
6414
|
+
currency: string;
|
|
6415
|
+
customer_id: string;
|
|
6416
|
+
discount_type: string;
|
|
6417
|
+
discount_value: number;
|
|
6418
|
+
id: string;
|
|
6419
|
+
min_quantity: number;
|
|
6420
|
+
notes: string | null;
|
|
6421
|
+
product_category_id: string | null;
|
|
6422
|
+
product_id: string | null;
|
|
6423
|
+
updated_at: string;
|
|
6424
|
+
valid_from: string | null;
|
|
6425
|
+
valid_until: string | null;
|
|
6426
|
+
};
|
|
6427
|
+
Insert: {
|
|
6428
|
+
created_at?: string;
|
|
6429
|
+
currency?: string;
|
|
6430
|
+
customer_id: string;
|
|
6431
|
+
discount_type: string;
|
|
6432
|
+
discount_value: number;
|
|
6433
|
+
id?: string;
|
|
6434
|
+
min_quantity?: number;
|
|
6435
|
+
notes?: string | null;
|
|
6436
|
+
product_category_id?: string | null;
|
|
6437
|
+
product_id?: string | null;
|
|
6438
|
+
updated_at?: string;
|
|
6439
|
+
valid_from?: string | null;
|
|
6440
|
+
valid_until?: string | null;
|
|
6441
|
+
};
|
|
6442
|
+
Update: {
|
|
6443
|
+
created_at?: string;
|
|
6444
|
+
currency?: string;
|
|
6445
|
+
customer_id?: string;
|
|
6446
|
+
discount_type?: string;
|
|
6447
|
+
discount_value?: number;
|
|
6448
|
+
id?: string;
|
|
6449
|
+
min_quantity?: number;
|
|
6450
|
+
notes?: string | null;
|
|
6451
|
+
product_category_id?: string | null;
|
|
6452
|
+
product_id?: string | null;
|
|
6453
|
+
updated_at?: string;
|
|
6454
|
+
valid_from?: string | null;
|
|
6455
|
+
valid_until?: string | null;
|
|
6456
|
+
};
|
|
6457
|
+
Relationships: [{
|
|
6458
|
+
foreignKeyName: "local_customer_price_groups_customer_id_fkey";
|
|
6459
|
+
columns: ["customer_id"];
|
|
6460
|
+
isOneToOne: false;
|
|
6461
|
+
referencedRelation: "customers";
|
|
6462
|
+
referencedColumns: ["id"];
|
|
6463
|
+
}, {
|
|
6464
|
+
foreignKeyName: "local_customer_price_groups_product_category_id_fkey";
|
|
6465
|
+
columns: ["product_category_id"];
|
|
5905
6466
|
isOneToOne: false;
|
|
5906
6467
|
referencedRelation: "product_categories";
|
|
5907
6468
|
referencedColumns: ["id"];
|
|
@@ -6432,6 +6993,33 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
6432
6993
|
};
|
|
6433
6994
|
Relationships: [];
|
|
6434
6995
|
};
|
|
6996
|
+
module_permissions: {
|
|
6997
|
+
Row: {
|
|
6998
|
+
created_at: string;
|
|
6999
|
+
id: string;
|
|
7000
|
+
module_id: string;
|
|
7001
|
+
permission: string;
|
|
7002
|
+
role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
7003
|
+
updated_at: string;
|
|
7004
|
+
};
|
|
7005
|
+
Insert: {
|
|
7006
|
+
created_at?: string;
|
|
7007
|
+
id?: string;
|
|
7008
|
+
module_id: string;
|
|
7009
|
+
permission: string;
|
|
7010
|
+
role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
7011
|
+
updated_at?: string;
|
|
7012
|
+
};
|
|
7013
|
+
Update: {
|
|
7014
|
+
created_at?: string;
|
|
7015
|
+
id?: string;
|
|
7016
|
+
module_id?: string;
|
|
7017
|
+
permission?: string;
|
|
7018
|
+
role?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
7019
|
+
updated_at?: string;
|
|
7020
|
+
};
|
|
7021
|
+
Relationships: [];
|
|
7022
|
+
};
|
|
6435
7023
|
monteurs: {
|
|
6436
7024
|
Row: {
|
|
6437
7025
|
avatar_url: string | null;
|
|
@@ -7161,6 +7749,42 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
7161
7749
|
};
|
|
7162
7750
|
Relationships: [];
|
|
7163
7751
|
};
|
|
7752
|
+
order_buffers: {
|
|
7753
|
+
Row: {
|
|
7754
|
+
buffer_key: string;
|
|
7755
|
+
created_at: string;
|
|
7756
|
+
customer_id: string | null;
|
|
7757
|
+
grouping_mode: string;
|
|
7758
|
+
id: string;
|
|
7759
|
+
pickup_date: string | null;
|
|
7760
|
+
pickup_location: string | null;
|
|
7761
|
+
plan_locked_at: string | null;
|
|
7762
|
+
updated_at: string;
|
|
7763
|
+
};
|
|
7764
|
+
Insert: {
|
|
7765
|
+
buffer_key: string;
|
|
7766
|
+
created_at?: string;
|
|
7767
|
+
customer_id?: string | null;
|
|
7768
|
+
grouping_mode: string;
|
|
7769
|
+
id?: string;
|
|
7770
|
+
pickup_date?: string | null;
|
|
7771
|
+
pickup_location?: string | null;
|
|
7772
|
+
plan_locked_at?: string | null;
|
|
7773
|
+
updated_at?: string;
|
|
7774
|
+
};
|
|
7775
|
+
Update: {
|
|
7776
|
+
buffer_key?: string;
|
|
7777
|
+
created_at?: string;
|
|
7778
|
+
customer_id?: string | null;
|
|
7779
|
+
grouping_mode?: string;
|
|
7780
|
+
id?: string;
|
|
7781
|
+
pickup_date?: string | null;
|
|
7782
|
+
pickup_location?: string | null;
|
|
7783
|
+
plan_locked_at?: string | null;
|
|
7784
|
+
updated_at?: string;
|
|
7785
|
+
};
|
|
7786
|
+
Relationships: [];
|
|
7787
|
+
};
|
|
7164
7788
|
order_cart_items: {
|
|
7165
7789
|
Row: {
|
|
7166
7790
|
cart_id: string;
|
|
@@ -7227,6 +7851,7 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
7227
7851
|
order_carts: {
|
|
7228
7852
|
Row: {
|
|
7229
7853
|
algorithm_version: number;
|
|
7854
|
+
buffer_id: string | null;
|
|
7230
7855
|
cart_number: number;
|
|
7231
7856
|
created_at: string;
|
|
7232
7857
|
id: string;
|
|
@@ -7234,13 +7859,14 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
7234
7859
|
is_complete: boolean;
|
|
7235
7860
|
notes: string | null;
|
|
7236
7861
|
occupancy_pct: number;
|
|
7237
|
-
order_id: string;
|
|
7862
|
+
order_id: string | null;
|
|
7238
7863
|
source: string;
|
|
7239
7864
|
total_layers_used: number;
|
|
7240
7865
|
updated_at: string;
|
|
7241
7866
|
};
|
|
7242
7867
|
Insert: {
|
|
7243
7868
|
algorithm_version?: number;
|
|
7869
|
+
buffer_id?: string | null;
|
|
7244
7870
|
cart_number: number;
|
|
7245
7871
|
created_at?: string;
|
|
7246
7872
|
id?: string;
|
|
@@ -7248,13 +7874,14 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
7248
7874
|
is_complete?: boolean;
|
|
7249
7875
|
notes?: string | null;
|
|
7250
7876
|
occupancy_pct?: number;
|
|
7251
|
-
order_id
|
|
7877
|
+
order_id?: string | null;
|
|
7252
7878
|
source?: string;
|
|
7253
7879
|
total_layers_used?: number;
|
|
7254
7880
|
updated_at?: string;
|
|
7255
7881
|
};
|
|
7256
7882
|
Update: {
|
|
7257
7883
|
algorithm_version?: number;
|
|
7884
|
+
buffer_id?: string | null;
|
|
7258
7885
|
cart_number?: number;
|
|
7259
7886
|
created_at?: string;
|
|
7260
7887
|
id?: string;
|
|
@@ -7262,12 +7889,18 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
7262
7889
|
is_complete?: boolean;
|
|
7263
7890
|
notes?: string | null;
|
|
7264
7891
|
occupancy_pct?: number;
|
|
7265
|
-
order_id?: string;
|
|
7892
|
+
order_id?: string | null;
|
|
7266
7893
|
source?: string;
|
|
7267
7894
|
total_layers_used?: number;
|
|
7268
7895
|
updated_at?: string;
|
|
7269
7896
|
};
|
|
7270
7897
|
Relationships: [{
|
|
7898
|
+
foreignKeyName: "order_carts_buffer_id_fkey";
|
|
7899
|
+
columns: ["buffer_id"];
|
|
7900
|
+
isOneToOne: false;
|
|
7901
|
+
referencedRelation: "order_buffers";
|
|
7902
|
+
referencedColumns: ["id"];
|
|
7903
|
+
}, {
|
|
7271
7904
|
foreignKeyName: "order_carts_order_id_fkey";
|
|
7272
7905
|
columns: ["order_id"];
|
|
7273
7906
|
isOneToOne: false;
|
|
@@ -7355,64 +7988,166 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
7355
7988
|
Insert: {
|
|
7356
7989
|
created_at?: string;
|
|
7357
7990
|
id?: string;
|
|
7358
|
-
order_id: string;
|
|
7991
|
+
order_id: string;
|
|
7992
|
+
product_id?: string | null;
|
|
7993
|
+
product_name: string;
|
|
7994
|
+
quantity?: number;
|
|
7995
|
+
unit?: string;
|
|
7996
|
+
unit_price?: number | null;
|
|
7997
|
+
};
|
|
7998
|
+
Update: {
|
|
7999
|
+
created_at?: string;
|
|
8000
|
+
id?: string;
|
|
8001
|
+
order_id?: string;
|
|
8002
|
+
product_id?: string | null;
|
|
8003
|
+
product_name?: string;
|
|
8004
|
+
quantity?: number;
|
|
8005
|
+
unit?: string;
|
|
8006
|
+
unit_price?: number | null;
|
|
8007
|
+
};
|
|
8008
|
+
Relationships: [{
|
|
8009
|
+
foreignKeyName: "order_items_order_id_fkey";
|
|
8010
|
+
columns: ["order_id"];
|
|
8011
|
+
isOneToOne: false;
|
|
8012
|
+
referencedRelation: "orders";
|
|
8013
|
+
referencedColumns: ["id"];
|
|
8014
|
+
}, {
|
|
8015
|
+
foreignKeyName: "order_items_product_id_fkey";
|
|
8016
|
+
columns: ["product_id"];
|
|
8017
|
+
isOneToOne: false;
|
|
8018
|
+
referencedRelation: "products";
|
|
8019
|
+
referencedColumns: ["id"];
|
|
8020
|
+
}];
|
|
8021
|
+
};
|
|
8022
|
+
order_number_counters: {
|
|
8023
|
+
Row: {
|
|
8024
|
+
last_value: number;
|
|
8025
|
+
updated_at: string;
|
|
8026
|
+
year: number;
|
|
8027
|
+
};
|
|
8028
|
+
Insert: {
|
|
8029
|
+
last_value?: number;
|
|
8030
|
+
updated_at?: string;
|
|
8031
|
+
year: number;
|
|
8032
|
+
};
|
|
8033
|
+
Update: {
|
|
8034
|
+
last_value?: number;
|
|
8035
|
+
updated_at?: string;
|
|
8036
|
+
year?: number;
|
|
8037
|
+
};
|
|
8038
|
+
Relationships: [];
|
|
8039
|
+
};
|
|
8040
|
+
order_shipment_items: {
|
|
8041
|
+
Row: {
|
|
8042
|
+
created_at: string;
|
|
8043
|
+
id: string;
|
|
8044
|
+
order_item_id: string;
|
|
8045
|
+
product_id: string | null;
|
|
8046
|
+
product_name: string;
|
|
8047
|
+
quantity: number;
|
|
8048
|
+
shipment_id: string;
|
|
8049
|
+
updated_at: string;
|
|
8050
|
+
};
|
|
8051
|
+
Insert: {
|
|
8052
|
+
created_at?: string;
|
|
8053
|
+
id?: string;
|
|
8054
|
+
order_item_id: string;
|
|
7359
8055
|
product_id?: string | null;
|
|
7360
8056
|
product_name: string;
|
|
7361
|
-
quantity
|
|
7362
|
-
|
|
7363
|
-
|
|
8057
|
+
quantity: number;
|
|
8058
|
+
shipment_id: string;
|
|
8059
|
+
updated_at?: string;
|
|
7364
8060
|
};
|
|
7365
8061
|
Update: {
|
|
7366
8062
|
created_at?: string;
|
|
7367
8063
|
id?: string;
|
|
7368
|
-
|
|
8064
|
+
order_item_id?: string;
|
|
7369
8065
|
product_id?: string | null;
|
|
7370
8066
|
product_name?: string;
|
|
7371
8067
|
quantity?: number;
|
|
7372
|
-
|
|
7373
|
-
|
|
8068
|
+
shipment_id?: string;
|
|
8069
|
+
updated_at?: string;
|
|
7374
8070
|
};
|
|
7375
8071
|
Relationships: [{
|
|
7376
|
-
foreignKeyName: "
|
|
7377
|
-
columns: ["
|
|
8072
|
+
foreignKeyName: "order_shipment_items_order_item_id_fkey";
|
|
8073
|
+
columns: ["order_item_id"];
|
|
7378
8074
|
isOneToOne: false;
|
|
7379
|
-
referencedRelation: "
|
|
8075
|
+
referencedRelation: "order_items";
|
|
7380
8076
|
referencedColumns: ["id"];
|
|
7381
8077
|
}, {
|
|
7382
|
-
foreignKeyName: "
|
|
7383
|
-
columns: ["
|
|
8078
|
+
foreignKeyName: "order_shipment_items_shipment_id_fkey";
|
|
8079
|
+
columns: ["shipment_id"];
|
|
7384
8080
|
isOneToOne: false;
|
|
7385
|
-
referencedRelation: "
|
|
8081
|
+
referencedRelation: "order_shipments";
|
|
7386
8082
|
referencedColumns: ["id"];
|
|
7387
8083
|
}];
|
|
7388
8084
|
};
|
|
7389
|
-
|
|
8085
|
+
order_shipments: {
|
|
7390
8086
|
Row: {
|
|
7391
|
-
|
|
8087
|
+
carrier_id: string | null;
|
|
8088
|
+
created_at: string;
|
|
8089
|
+
delivery_date: string | null;
|
|
8090
|
+
delivery_location_id: string | null;
|
|
8091
|
+
id: string;
|
|
8092
|
+
notes: string | null;
|
|
8093
|
+
order_id: string;
|
|
8094
|
+
shipment_number: number;
|
|
8095
|
+
shipped_at: string | null;
|
|
8096
|
+
status: string;
|
|
7392
8097
|
updated_at: string;
|
|
7393
|
-
year: number;
|
|
7394
8098
|
};
|
|
7395
8099
|
Insert: {
|
|
7396
|
-
|
|
8100
|
+
carrier_id?: string | null;
|
|
8101
|
+
created_at?: string;
|
|
8102
|
+
delivery_date?: string | null;
|
|
8103
|
+
delivery_location_id?: string | null;
|
|
8104
|
+
id?: string;
|
|
8105
|
+
notes?: string | null;
|
|
8106
|
+
order_id: string;
|
|
8107
|
+
shipment_number: number;
|
|
8108
|
+
shipped_at?: string | null;
|
|
8109
|
+
status?: string;
|
|
7397
8110
|
updated_at?: string;
|
|
7398
|
-
year: number;
|
|
7399
8111
|
};
|
|
7400
8112
|
Update: {
|
|
7401
|
-
|
|
8113
|
+
carrier_id?: string | null;
|
|
8114
|
+
created_at?: string;
|
|
8115
|
+
delivery_date?: string | null;
|
|
8116
|
+
delivery_location_id?: string | null;
|
|
8117
|
+
id?: string;
|
|
8118
|
+
notes?: string | null;
|
|
8119
|
+
order_id?: string;
|
|
8120
|
+
shipment_number?: number;
|
|
8121
|
+
shipped_at?: string | null;
|
|
8122
|
+
status?: string;
|
|
7402
8123
|
updated_at?: string;
|
|
7403
|
-
year?: number;
|
|
7404
8124
|
};
|
|
7405
|
-
Relationships: [
|
|
8125
|
+
Relationships: [{
|
|
8126
|
+
foreignKeyName: "order_shipments_carrier_id_fkey";
|
|
8127
|
+
columns: ["carrier_id"];
|
|
8128
|
+
isOneToOne: false;
|
|
8129
|
+
referencedRelation: "carriers";
|
|
8130
|
+
referencedColumns: ["id"];
|
|
8131
|
+
}, {
|
|
8132
|
+
foreignKeyName: "order_shipments_order_id_fkey";
|
|
8133
|
+
columns: ["order_id"];
|
|
8134
|
+
isOneToOne: false;
|
|
8135
|
+
referencedRelation: "orders";
|
|
8136
|
+
referencedColumns: ["id"];
|
|
8137
|
+
}];
|
|
7406
8138
|
};
|
|
7407
8139
|
orders: {
|
|
7408
8140
|
Row: {
|
|
8141
|
+
buffer_id: string | null;
|
|
7409
8142
|
created_at: string;
|
|
7410
8143
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
7411
8144
|
customer_id: string | null;
|
|
7412
8145
|
customer_name: string;
|
|
7413
8146
|
deleted_at: string | null;
|
|
7414
|
-
delivery_date: string;
|
|
8147
|
+
delivery_date: string | null;
|
|
8148
|
+
floriday_sales_order_id: string | null;
|
|
7415
8149
|
id: string;
|
|
8150
|
+
is_reservation: boolean;
|
|
7416
8151
|
notes: string | null;
|
|
7417
8152
|
order_date: string;
|
|
7418
8153
|
order_number: string;
|
|
@@ -7424,13 +8159,16 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
7424
8159
|
updated_at: string;
|
|
7425
8160
|
};
|
|
7426
8161
|
Insert: {
|
|
8162
|
+
buffer_id?: string | null;
|
|
7427
8163
|
created_at?: string;
|
|
7428
8164
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
7429
8165
|
customer_id?: string | null;
|
|
7430
8166
|
customer_name?: string;
|
|
7431
8167
|
deleted_at?: string | null;
|
|
7432
|
-
delivery_date
|
|
8168
|
+
delivery_date?: string | null;
|
|
8169
|
+
floriday_sales_order_id?: string | null;
|
|
7433
8170
|
id?: string;
|
|
8171
|
+
is_reservation?: boolean;
|
|
7434
8172
|
notes?: string | null;
|
|
7435
8173
|
order_date?: string;
|
|
7436
8174
|
order_number: string;
|
|
@@ -7442,13 +8180,16 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
7442
8180
|
updated_at?: string;
|
|
7443
8181
|
};
|
|
7444
8182
|
Update: {
|
|
8183
|
+
buffer_id?: string | null;
|
|
7445
8184
|
created_at?: string;
|
|
7446
8185
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
7447
8186
|
customer_id?: string | null;
|
|
7448
8187
|
customer_name?: string;
|
|
7449
8188
|
deleted_at?: string | null;
|
|
7450
|
-
delivery_date?: string;
|
|
8189
|
+
delivery_date?: string | null;
|
|
8190
|
+
floriday_sales_order_id?: string | null;
|
|
7451
8191
|
id?: string;
|
|
8192
|
+
is_reservation?: boolean;
|
|
7452
8193
|
notes?: string | null;
|
|
7453
8194
|
order_date?: string;
|
|
7454
8195
|
order_number?: string;
|
|
@@ -7460,6 +8201,12 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
7460
8201
|
updated_at?: string;
|
|
7461
8202
|
};
|
|
7462
8203
|
Relationships: [{
|
|
8204
|
+
foreignKeyName: "orders_buffer_id_fkey";
|
|
8205
|
+
columns: ["buffer_id"];
|
|
8206
|
+
isOneToOne: false;
|
|
8207
|
+
referencedRelation: "order_buffers";
|
|
8208
|
+
referencedColumns: ["id"];
|
|
8209
|
+
}, {
|
|
7463
8210
|
foreignKeyName: "orders_customer_id_fkey";
|
|
7464
8211
|
columns: ["customer_id"];
|
|
7465
8212
|
isOneToOne: false;
|
|
@@ -7723,6 +8470,8 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
7723
8470
|
Row: {
|
|
7724
8471
|
created_at: string;
|
|
7725
8472
|
description: string | null;
|
|
8473
|
+
head_product_id: string | null;
|
|
8474
|
+
head_trade_item_floriday_id: string | null;
|
|
7726
8475
|
id: string;
|
|
7727
8476
|
is_active: boolean;
|
|
7728
8477
|
name: string;
|
|
@@ -7732,6 +8481,8 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
7732
8481
|
Insert: {
|
|
7733
8482
|
created_at?: string;
|
|
7734
8483
|
description?: string | null;
|
|
8484
|
+
head_product_id?: string | null;
|
|
8485
|
+
head_trade_item_floriday_id?: string | null;
|
|
7735
8486
|
id?: string;
|
|
7736
8487
|
is_active?: boolean;
|
|
7737
8488
|
name: string;
|
|
@@ -7741,13 +8492,21 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
7741
8492
|
Update: {
|
|
7742
8493
|
created_at?: string;
|
|
7743
8494
|
description?: string | null;
|
|
8495
|
+
head_product_id?: string | null;
|
|
8496
|
+
head_trade_item_floriday_id?: string | null;
|
|
7744
8497
|
id?: string;
|
|
7745
8498
|
is_active?: boolean;
|
|
7746
8499
|
name?: string;
|
|
7747
8500
|
tenant_id?: string;
|
|
7748
8501
|
updated_at?: string;
|
|
7749
8502
|
};
|
|
7750
|
-
Relationships: [
|
|
8503
|
+
Relationships: [{
|
|
8504
|
+
foreignKeyName: "product_groups_head_product_id_fkey";
|
|
8505
|
+
columns: ["head_product_id"];
|
|
8506
|
+
isOneToOne: false;
|
|
8507
|
+
referencedRelation: "products";
|
|
8508
|
+
referencedColumns: ["id"];
|
|
8509
|
+
}];
|
|
7751
8510
|
};
|
|
7752
8511
|
products: {
|
|
7753
8512
|
Row: {
|
|
@@ -10298,6 +11057,7 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
10298
11057
|
internal_notes: string | null;
|
|
10299
11058
|
parent_werkbon_id: string | null;
|
|
10300
11059
|
parsed_payload: import("../integrations/supabase/types").Json | null;
|
|
11060
|
+
planning_status: string;
|
|
10301
11061
|
project_number: string | null;
|
|
10302
11062
|
room_number: string | null;
|
|
10303
11063
|
scheduled_end_time: string | null;
|
|
@@ -10305,6 +11065,7 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
10305
11065
|
sequence_number: number;
|
|
10306
11066
|
source_pdf_path: string | null;
|
|
10307
11067
|
status: string;
|
|
11068
|
+
technician_id: string | null;
|
|
10308
11069
|
technician_notes: string | null;
|
|
10309
11070
|
technician_notes_raw: string | null;
|
|
10310
11071
|
technician_task_description: string | null;
|
|
@@ -10325,6 +11086,7 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
10325
11086
|
internal_notes?: string | null;
|
|
10326
11087
|
parent_werkbon_id?: string | null;
|
|
10327
11088
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
11089
|
+
planning_status?: string;
|
|
10328
11090
|
project_number?: string | null;
|
|
10329
11091
|
room_number?: string | null;
|
|
10330
11092
|
scheduled_end_time?: string | null;
|
|
@@ -10332,6 +11094,7 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
10332
11094
|
sequence_number: number;
|
|
10333
11095
|
source_pdf_path?: string | null;
|
|
10334
11096
|
status?: string;
|
|
11097
|
+
technician_id?: string | null;
|
|
10335
11098
|
technician_notes?: string | null;
|
|
10336
11099
|
technician_notes_raw?: string | null;
|
|
10337
11100
|
technician_task_description?: string | null;
|
|
@@ -10352,6 +11115,7 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
10352
11115
|
internal_notes?: string | null;
|
|
10353
11116
|
parent_werkbon_id?: string | null;
|
|
10354
11117
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
11118
|
+
planning_status?: string;
|
|
10355
11119
|
project_number?: string | null;
|
|
10356
11120
|
room_number?: string | null;
|
|
10357
11121
|
scheduled_end_time?: string | null;
|
|
@@ -10359,6 +11123,7 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
10359
11123
|
sequence_number?: number;
|
|
10360
11124
|
source_pdf_path?: string | null;
|
|
10361
11125
|
status?: string;
|
|
11126
|
+
technician_id?: string | null;
|
|
10362
11127
|
technician_notes?: string | null;
|
|
10363
11128
|
technician_notes_raw?: string | null;
|
|
10364
11129
|
technician_task_description?: string | null;
|
|
@@ -10367,17 +11132,17 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
10367
11132
|
work_address?: string | null;
|
|
10368
11133
|
};
|
|
10369
11134
|
Relationships: [{
|
|
10370
|
-
foreignKeyName: "werkbonnen_customer_id_fkey";
|
|
10371
|
-
columns: ["customer_id"];
|
|
10372
|
-
isOneToOne: false;
|
|
10373
|
-
referencedRelation: "customers";
|
|
10374
|
-
referencedColumns: ["id"];
|
|
10375
|
-
}, {
|
|
10376
11135
|
foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
|
|
10377
11136
|
columns: ["parent_werkbon_id"];
|
|
10378
11137
|
isOneToOne: false;
|
|
10379
11138
|
referencedRelation: "werkbonnen";
|
|
10380
11139
|
referencedColumns: ["id"];
|
|
11140
|
+
}, {
|
|
11141
|
+
foreignKeyName: "werkbonnen_technician_id_fkey";
|
|
11142
|
+
columns: ["technician_id"];
|
|
11143
|
+
isOneToOne: false;
|
|
11144
|
+
referencedRelation: "monteurs";
|
|
11145
|
+
referencedColumns: ["id"];
|
|
10381
11146
|
}];
|
|
10382
11147
|
};
|
|
10383
11148
|
work_order_monteurs: {
|
|
@@ -11096,6 +11861,21 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
11096
11861
|
};
|
|
11097
11862
|
Returns: string;
|
|
11098
11863
|
};
|
|
11864
|
+
ai_usage_by_module: {
|
|
11865
|
+
Args: {
|
|
11866
|
+
_from: string;
|
|
11867
|
+
_to: string;
|
|
11868
|
+
};
|
|
11869
|
+
Returns: {
|
|
11870
|
+
calls: number;
|
|
11871
|
+
consumer_module_id: string;
|
|
11872
|
+
cost_usd: number;
|
|
11873
|
+
errors: number;
|
|
11874
|
+
input_tokens: number;
|
|
11875
|
+
output_tokens: number;
|
|
11876
|
+
total_tokens: number;
|
|
11877
|
+
}[];
|
|
11878
|
+
};
|
|
11099
11879
|
apply_stock_consumption: {
|
|
11100
11880
|
Args: {
|
|
11101
11881
|
p_order_id: string;
|
|
@@ -11244,6 +12024,12 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
11244
12024
|
Args: never;
|
|
11245
12025
|
Returns: string;
|
|
11246
12026
|
};
|
|
12027
|
+
custom_access_token_hook: {
|
|
12028
|
+
Args: {
|
|
12029
|
+
event: import("../integrations/supabase/types").Json;
|
|
12030
|
+
};
|
|
12031
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
12032
|
+
};
|
|
11247
12033
|
dashboard_alert_counts: {
|
|
11248
12034
|
Args: never;
|
|
11249
12035
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -11579,6 +12365,14 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
11579
12365
|
};
|
|
11580
12366
|
Returns: string;
|
|
11581
12367
|
};
|
|
12368
|
+
has_module_permission: {
|
|
12369
|
+
Args: {
|
|
12370
|
+
_min: string;
|
|
12371
|
+
_module_id: string;
|
|
12372
|
+
_user_id: string;
|
|
12373
|
+
};
|
|
12374
|
+
Returns: boolean;
|
|
12375
|
+
};
|
|
11582
12376
|
has_role: {
|
|
11583
12377
|
Args: {
|
|
11584
12378
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -11604,6 +12398,20 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
11604
12398
|
};
|
|
11605
12399
|
Returns: boolean;
|
|
11606
12400
|
};
|
|
12401
|
+
jwt_has_role: {
|
|
12402
|
+
Args: {
|
|
12403
|
+
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
12404
|
+
};
|
|
12405
|
+
Returns: boolean;
|
|
12406
|
+
};
|
|
12407
|
+
list_monteurs: {
|
|
12408
|
+
Args: never;
|
|
12409
|
+
Returns: {
|
|
12410
|
+
display_name: string;
|
|
12411
|
+
email: string;
|
|
12412
|
+
user_id: string;
|
|
12413
|
+
}[];
|
|
12414
|
+
};
|
|
11607
12415
|
local_effective_price: {
|
|
11608
12416
|
Args: {
|
|
11609
12417
|
_customer_id: string;
|
|
@@ -11620,6 +12428,22 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
11620
12428
|
source_id: string;
|
|
11621
12429
|
}[];
|
|
11622
12430
|
};
|
|
12431
|
+
log_ai_call: {
|
|
12432
|
+
Args: {
|
|
12433
|
+
_consumer_module_id: string;
|
|
12434
|
+
_cost_usd: number;
|
|
12435
|
+
_duration_ms: number;
|
|
12436
|
+
_error_code: string;
|
|
12437
|
+
_error_message: string;
|
|
12438
|
+
_input_tokens: number;
|
|
12439
|
+
_model_slug: string;
|
|
12440
|
+
_output_tokens: number;
|
|
12441
|
+
_provider_slug: string;
|
|
12442
|
+
_status: string;
|
|
12443
|
+
_total_tokens: number;
|
|
12444
|
+
};
|
|
12445
|
+
Returns: string;
|
|
12446
|
+
};
|
|
11623
12447
|
mark_offer_clicked: {
|
|
11624
12448
|
Args: {
|
|
11625
12449
|
p_code: string;
|
|
@@ -11632,6 +12456,12 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
11632
12456
|
};
|
|
11633
12457
|
Returns: undefined;
|
|
11634
12458
|
};
|
|
12459
|
+
mark_shipment_shipped: {
|
|
12460
|
+
Args: {
|
|
12461
|
+
p_shipment_id: string;
|
|
12462
|
+
};
|
|
12463
|
+
Returns: undefined;
|
|
12464
|
+
};
|
|
11635
12465
|
next_order_number: {
|
|
11636
12466
|
Args: {
|
|
11637
12467
|
p_prefix: string;
|
|
@@ -12108,9 +12938,11 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
12108
12938
|
};
|
|
12109
12939
|
};
|
|
12110
12940
|
Enums: {
|
|
12111
|
-
app_role: "admin" | "
|
|
12941
|
+
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
|
|
12112
12942
|
exact_env: "staging" | "live";
|
|
12113
12943
|
exact_push_status: "pending" | "sent" | "error";
|
|
12944
|
+
itk_customer_segment: "Business" | "Private";
|
|
12945
|
+
itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
|
|
12114
12946
|
quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
|
|
12115
12947
|
};
|
|
12116
12948
|
CompositeTypes: { [_ in never]: never; };
|
|
@@ -12401,6 +13233,57 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
12401
13233
|
referencedColumns: ["id"];
|
|
12402
13234
|
}];
|
|
12403
13235
|
};
|
|
13236
|
+
ai_call_log: {
|
|
13237
|
+
Row: {
|
|
13238
|
+
consumer_module_id: string;
|
|
13239
|
+
cost_usd: number | null;
|
|
13240
|
+
created_at: string;
|
|
13241
|
+
created_by: string | null;
|
|
13242
|
+
duration_ms: number | null;
|
|
13243
|
+
error_code: string | null;
|
|
13244
|
+
error_message: string | null;
|
|
13245
|
+
id: string;
|
|
13246
|
+
input_tokens: number;
|
|
13247
|
+
model_slug: string | null;
|
|
13248
|
+
output_tokens: number;
|
|
13249
|
+
provider_slug: string | null;
|
|
13250
|
+
status: string;
|
|
13251
|
+
total_tokens: number;
|
|
13252
|
+
};
|
|
13253
|
+
Insert: {
|
|
13254
|
+
consumer_module_id: string;
|
|
13255
|
+
cost_usd?: number | null;
|
|
13256
|
+
created_at?: string;
|
|
13257
|
+
created_by?: string | null;
|
|
13258
|
+
duration_ms?: number | null;
|
|
13259
|
+
error_code?: string | null;
|
|
13260
|
+
error_message?: string | null;
|
|
13261
|
+
id?: string;
|
|
13262
|
+
input_tokens?: number;
|
|
13263
|
+
model_slug?: string | null;
|
|
13264
|
+
output_tokens?: number;
|
|
13265
|
+
provider_slug?: string | null;
|
|
13266
|
+
status: string;
|
|
13267
|
+
total_tokens?: number;
|
|
13268
|
+
};
|
|
13269
|
+
Update: {
|
|
13270
|
+
consumer_module_id?: string;
|
|
13271
|
+
cost_usd?: number | null;
|
|
13272
|
+
created_at?: string;
|
|
13273
|
+
created_by?: string | null;
|
|
13274
|
+
duration_ms?: number | null;
|
|
13275
|
+
error_code?: string | null;
|
|
13276
|
+
error_message?: string | null;
|
|
13277
|
+
id?: string;
|
|
13278
|
+
input_tokens?: number;
|
|
13279
|
+
model_slug?: string | null;
|
|
13280
|
+
output_tokens?: number;
|
|
13281
|
+
provider_slug?: string | null;
|
|
13282
|
+
status?: string;
|
|
13283
|
+
total_tokens?: number;
|
|
13284
|
+
};
|
|
13285
|
+
Relationships: [];
|
|
13286
|
+
};
|
|
12404
13287
|
ai_credentials: {
|
|
12405
13288
|
Row: {
|
|
12406
13289
|
active: boolean;
|
|
@@ -12437,6 +13320,36 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
12437
13320
|
referencedColumns: ["id"];
|
|
12438
13321
|
}];
|
|
12439
13322
|
};
|
|
13323
|
+
ai_goals: {
|
|
13324
|
+
Row: {
|
|
13325
|
+
active: boolean;
|
|
13326
|
+
created_at: string;
|
|
13327
|
+
description: string | null;
|
|
13328
|
+
key: string;
|
|
13329
|
+
label: string;
|
|
13330
|
+
sort_order: number;
|
|
13331
|
+
updated_at: string;
|
|
13332
|
+
};
|
|
13333
|
+
Insert: {
|
|
13334
|
+
active?: boolean;
|
|
13335
|
+
created_at?: string;
|
|
13336
|
+
description?: string | null;
|
|
13337
|
+
key: string;
|
|
13338
|
+
label: string;
|
|
13339
|
+
sort_order?: number;
|
|
13340
|
+
updated_at?: string;
|
|
13341
|
+
};
|
|
13342
|
+
Update: {
|
|
13343
|
+
active?: boolean;
|
|
13344
|
+
created_at?: string;
|
|
13345
|
+
description?: string | null;
|
|
13346
|
+
key?: string;
|
|
13347
|
+
label?: string;
|
|
13348
|
+
sort_order?: number;
|
|
13349
|
+
updated_at?: string;
|
|
13350
|
+
};
|
|
13351
|
+
Relationships: [];
|
|
13352
|
+
};
|
|
12440
13353
|
ai_model_pricing: {
|
|
12441
13354
|
Row: {
|
|
12442
13355
|
created_at: string;
|
|
@@ -13223,6 +14136,141 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
13223
14136
|
};
|
|
13224
14137
|
Relationships: [];
|
|
13225
14138
|
};
|
|
14139
|
+
cart_planning_pick_times: {
|
|
14140
|
+
Row: {
|
|
14141
|
+
created_at: string;
|
|
14142
|
+
id: string;
|
|
14143
|
+
pot_size: string;
|
|
14144
|
+
seconds_per_cart: number;
|
|
14145
|
+
updated_at: string;
|
|
14146
|
+
};
|
|
14147
|
+
Insert: {
|
|
14148
|
+
created_at?: string;
|
|
14149
|
+
id?: string;
|
|
14150
|
+
pot_size: string;
|
|
14151
|
+
seconds_per_cart: number;
|
|
14152
|
+
updated_at?: string;
|
|
14153
|
+
};
|
|
14154
|
+
Update: {
|
|
14155
|
+
created_at?: string;
|
|
14156
|
+
id?: string;
|
|
14157
|
+
pot_size?: string;
|
|
14158
|
+
seconds_per_cart?: number;
|
|
14159
|
+
updated_at?: string;
|
|
14160
|
+
};
|
|
14161
|
+
Relationships: [];
|
|
14162
|
+
};
|
|
14163
|
+
cart_planning_product_overrides: {
|
|
14164
|
+
Row: {
|
|
14165
|
+
created_at: string;
|
|
14166
|
+
id: string;
|
|
14167
|
+
max_party_share_per_layer_pct_override: number | null;
|
|
14168
|
+
never_mix: boolean;
|
|
14169
|
+
notes: string | null;
|
|
14170
|
+
product_id: string;
|
|
14171
|
+
updated_at: string;
|
|
14172
|
+
};
|
|
14173
|
+
Insert: {
|
|
14174
|
+
created_at?: string;
|
|
14175
|
+
id?: string;
|
|
14176
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
14177
|
+
never_mix?: boolean;
|
|
14178
|
+
notes?: string | null;
|
|
14179
|
+
product_id: string;
|
|
14180
|
+
updated_at?: string;
|
|
14181
|
+
};
|
|
14182
|
+
Update: {
|
|
14183
|
+
created_at?: string;
|
|
14184
|
+
id?: string;
|
|
14185
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
14186
|
+
never_mix?: boolean;
|
|
14187
|
+
notes?: string | null;
|
|
14188
|
+
product_id?: string;
|
|
14189
|
+
updated_at?: string;
|
|
14190
|
+
};
|
|
14191
|
+
Relationships: [{
|
|
14192
|
+
foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
|
|
14193
|
+
columns: ["product_id"];
|
|
14194
|
+
isOneToOne: true;
|
|
14195
|
+
referencedRelation: "products";
|
|
14196
|
+
referencedColumns: ["id"];
|
|
14197
|
+
}];
|
|
14198
|
+
};
|
|
14199
|
+
cart_planning_settings: {
|
|
14200
|
+
Row: {
|
|
14201
|
+
allow_editing_after_pickstation_send: boolean;
|
|
14202
|
+
buffer_grouping_mode: string;
|
|
14203
|
+
combine_floriday_orders: boolean;
|
|
14204
|
+
combine_floriday_orders_window: string;
|
|
14205
|
+
combine_orders_scope: string;
|
|
14206
|
+
default_workers: number;
|
|
14207
|
+
id: number;
|
|
14208
|
+
max_beladingen_per_layer: number;
|
|
14209
|
+
max_customers_per_cart: number;
|
|
14210
|
+
max_one_customer_per_layer: boolean;
|
|
14211
|
+
max_party_share_per_layer_pct: number;
|
|
14212
|
+
optimization_strategy: string;
|
|
14213
|
+
own_cart_from_layers: number;
|
|
14214
|
+
pick_time_mode: string;
|
|
14215
|
+
plants_per_day: number;
|
|
14216
|
+
plants_per_hour: number;
|
|
14217
|
+
require_same_carrier: boolean;
|
|
14218
|
+
require_same_crate_type: boolean;
|
|
14219
|
+
require_same_delivery_date: boolean;
|
|
14220
|
+
require_same_delivery_location: boolean;
|
|
14221
|
+
updated_at: string;
|
|
14222
|
+
updated_by: string | null;
|
|
14223
|
+
};
|
|
14224
|
+
Insert: {
|
|
14225
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
14226
|
+
buffer_grouping_mode?: string;
|
|
14227
|
+
combine_floriday_orders?: boolean;
|
|
14228
|
+
combine_floriday_orders_window?: string;
|
|
14229
|
+
combine_orders_scope?: string;
|
|
14230
|
+
default_workers?: number;
|
|
14231
|
+
id?: number;
|
|
14232
|
+
max_beladingen_per_layer?: number;
|
|
14233
|
+
max_customers_per_cart?: number;
|
|
14234
|
+
max_one_customer_per_layer?: boolean;
|
|
14235
|
+
max_party_share_per_layer_pct?: number;
|
|
14236
|
+
optimization_strategy?: string;
|
|
14237
|
+
own_cart_from_layers?: number;
|
|
14238
|
+
pick_time_mode?: string;
|
|
14239
|
+
plants_per_day?: number;
|
|
14240
|
+
plants_per_hour?: number;
|
|
14241
|
+
require_same_carrier?: boolean;
|
|
14242
|
+
require_same_crate_type?: boolean;
|
|
14243
|
+
require_same_delivery_date?: boolean;
|
|
14244
|
+
require_same_delivery_location?: boolean;
|
|
14245
|
+
updated_at?: string;
|
|
14246
|
+
updated_by?: string | null;
|
|
14247
|
+
};
|
|
14248
|
+
Update: {
|
|
14249
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
14250
|
+
buffer_grouping_mode?: string;
|
|
14251
|
+
combine_floriday_orders?: boolean;
|
|
14252
|
+
combine_floriday_orders_window?: string;
|
|
14253
|
+
combine_orders_scope?: string;
|
|
14254
|
+
default_workers?: number;
|
|
14255
|
+
id?: number;
|
|
14256
|
+
max_beladingen_per_layer?: number;
|
|
14257
|
+
max_customers_per_cart?: number;
|
|
14258
|
+
max_one_customer_per_layer?: boolean;
|
|
14259
|
+
max_party_share_per_layer_pct?: number;
|
|
14260
|
+
optimization_strategy?: string;
|
|
14261
|
+
own_cart_from_layers?: number;
|
|
14262
|
+
pick_time_mode?: string;
|
|
14263
|
+
plants_per_day?: number;
|
|
14264
|
+
plants_per_hour?: number;
|
|
14265
|
+
require_same_carrier?: boolean;
|
|
14266
|
+
require_same_crate_type?: boolean;
|
|
14267
|
+
require_same_delivery_date?: boolean;
|
|
14268
|
+
require_same_delivery_location?: boolean;
|
|
14269
|
+
updated_at?: string;
|
|
14270
|
+
updated_by?: string | null;
|
|
14271
|
+
};
|
|
14272
|
+
Relationships: [];
|
|
14273
|
+
};
|
|
13226
14274
|
cart_replan_queue: {
|
|
13227
14275
|
Row: {
|
|
13228
14276
|
attempts: number;
|
|
@@ -13245,13 +14293,46 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
13245
14293
|
processed_at?: string | null;
|
|
13246
14294
|
requested_at?: string;
|
|
13247
14295
|
};
|
|
13248
|
-
Relationships: [{
|
|
13249
|
-
foreignKeyName: "cart_replan_queue_order_id_fkey";
|
|
13250
|
-
columns: ["order_id"];
|
|
13251
|
-
isOneToOne: true;
|
|
13252
|
-
referencedRelation: "orders";
|
|
13253
|
-
referencedColumns: ["id"];
|
|
13254
|
-
}];
|
|
14296
|
+
Relationships: [{
|
|
14297
|
+
foreignKeyName: "cart_replan_queue_order_id_fkey";
|
|
14298
|
+
columns: ["order_id"];
|
|
14299
|
+
isOneToOne: true;
|
|
14300
|
+
referencedRelation: "orders";
|
|
14301
|
+
referencedColumns: ["id"];
|
|
14302
|
+
}];
|
|
14303
|
+
};
|
|
14304
|
+
cart_types: {
|
|
14305
|
+
Row: {
|
|
14306
|
+
created_at: string;
|
|
14307
|
+
id: string;
|
|
14308
|
+
is_default: boolean;
|
|
14309
|
+
layer_length_cm: number;
|
|
14310
|
+
layer_width_cm: number;
|
|
14311
|
+
layers_per_cart: number;
|
|
14312
|
+
name: string;
|
|
14313
|
+
updated_at: string;
|
|
14314
|
+
};
|
|
14315
|
+
Insert: {
|
|
14316
|
+
created_at?: string;
|
|
14317
|
+
id?: string;
|
|
14318
|
+
is_default?: boolean;
|
|
14319
|
+
layer_length_cm: number;
|
|
14320
|
+
layer_width_cm: number;
|
|
14321
|
+
layers_per_cart?: number;
|
|
14322
|
+
name: string;
|
|
14323
|
+
updated_at?: string;
|
|
14324
|
+
};
|
|
14325
|
+
Update: {
|
|
14326
|
+
created_at?: string;
|
|
14327
|
+
id?: string;
|
|
14328
|
+
is_default?: boolean;
|
|
14329
|
+
layer_length_cm?: number;
|
|
14330
|
+
layer_width_cm?: number;
|
|
14331
|
+
layers_per_cart?: number;
|
|
14332
|
+
name?: string;
|
|
14333
|
+
updated_at?: string;
|
|
14334
|
+
};
|
|
14335
|
+
Relationships: [];
|
|
13255
14336
|
};
|
|
13256
14337
|
catalog_articles_cache: {
|
|
13257
14338
|
Row: {
|
|
@@ -13340,6 +14421,36 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
13340
14421
|
};
|
|
13341
14422
|
Relationships: [];
|
|
13342
14423
|
};
|
|
14424
|
+
crate_types: {
|
|
14425
|
+
Row: {
|
|
14426
|
+
created_at: string;
|
|
14427
|
+
id: string;
|
|
14428
|
+
length_cm: number;
|
|
14429
|
+
name: string;
|
|
14430
|
+
plants_per_crate: number;
|
|
14431
|
+
updated_at: string;
|
|
14432
|
+
width_cm: number;
|
|
14433
|
+
};
|
|
14434
|
+
Insert: {
|
|
14435
|
+
created_at?: string;
|
|
14436
|
+
id?: string;
|
|
14437
|
+
length_cm: number;
|
|
14438
|
+
name: string;
|
|
14439
|
+
plants_per_crate?: number;
|
|
14440
|
+
updated_at?: string;
|
|
14441
|
+
width_cm: number;
|
|
14442
|
+
};
|
|
14443
|
+
Update: {
|
|
14444
|
+
created_at?: string;
|
|
14445
|
+
id?: string;
|
|
14446
|
+
length_cm?: number;
|
|
14447
|
+
name?: string;
|
|
14448
|
+
plants_per_crate?: number;
|
|
14449
|
+
updated_at?: string;
|
|
14450
|
+
width_cm?: number;
|
|
14451
|
+
};
|
|
14452
|
+
Relationships: [];
|
|
14453
|
+
};
|
|
13343
14454
|
customer_audit_log: {
|
|
13344
14455
|
Row: {
|
|
13345
14456
|
action: string;
|
|
@@ -17815,69 +18926,351 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
17815
18926
|
vat_amount?: number | null;
|
|
17816
18927
|
};
|
|
17817
18928
|
Update: {
|
|
17818
|
-
booking_id?: string | null;
|
|
17819
|
-
company_name?: string | null;
|
|
18929
|
+
booking_id?: string | null;
|
|
18930
|
+
company_name?: string | null;
|
|
18931
|
+
created_at?: string;
|
|
18932
|
+
customer_email?: string | null;
|
|
18933
|
+
description?: string | null;
|
|
18934
|
+
exact_article_id?: string | null;
|
|
18935
|
+
id?: string;
|
|
18936
|
+
invoice_run_id?: string | null;
|
|
18937
|
+
quantity?: number | null;
|
|
18938
|
+
total_excl_vat?: number | null;
|
|
18939
|
+
total_incl_vat?: number | null;
|
|
18940
|
+
unit_price?: number | null;
|
|
18941
|
+
vat_amount?: number | null;
|
|
18942
|
+
};
|
|
18943
|
+
Relationships: [{
|
|
18944
|
+
foreignKeyName: "invoice_run_items_booking_id_fkey";
|
|
18945
|
+
columns: ["booking_id"];
|
|
18946
|
+
isOneToOne: false;
|
|
18947
|
+
referencedRelation: "bookings";
|
|
18948
|
+
referencedColumns: ["id"];
|
|
18949
|
+
}, {
|
|
18950
|
+
foreignKeyName: "invoice_run_items_invoice_run_id_fkey";
|
|
18951
|
+
columns: ["invoice_run_id"];
|
|
18952
|
+
isOneToOne: false;
|
|
18953
|
+
referencedRelation: "invoice_runs";
|
|
18954
|
+
referencedColumns: ["id"];
|
|
18955
|
+
}];
|
|
18956
|
+
};
|
|
18957
|
+
invoice_runs: {
|
|
18958
|
+
Row: {
|
|
18959
|
+
created_at: string;
|
|
18960
|
+
created_by: string | null;
|
|
18961
|
+
id: string;
|
|
18962
|
+
period_end: string;
|
|
18963
|
+
period_start: string;
|
|
18964
|
+
status: string;
|
|
18965
|
+
total_excl_vat: number | null;
|
|
18966
|
+
total_incl_vat: number | null;
|
|
18967
|
+
vat_amount: number | null;
|
|
18968
|
+
};
|
|
18969
|
+
Insert: {
|
|
18970
|
+
created_at?: string;
|
|
18971
|
+
created_by?: string | null;
|
|
18972
|
+
id?: string;
|
|
18973
|
+
period_end: string;
|
|
18974
|
+
period_start: string;
|
|
18975
|
+
status?: string;
|
|
18976
|
+
total_excl_vat?: number | null;
|
|
18977
|
+
total_incl_vat?: number | null;
|
|
18978
|
+
vat_amount?: number | null;
|
|
18979
|
+
};
|
|
18980
|
+
Update: {
|
|
18981
|
+
created_at?: string;
|
|
18982
|
+
created_by?: string | null;
|
|
18983
|
+
id?: string;
|
|
18984
|
+
period_end?: string;
|
|
18985
|
+
period_start?: string;
|
|
18986
|
+
status?: string;
|
|
18987
|
+
total_excl_vat?: number | null;
|
|
18988
|
+
total_incl_vat?: number | null;
|
|
18989
|
+
vat_amount?: number | null;
|
|
18990
|
+
};
|
|
18991
|
+
Relationships: [];
|
|
18992
|
+
};
|
|
18993
|
+
itk_contact_persons: {
|
|
18994
|
+
Row: {
|
|
18995
|
+
created_at: string;
|
|
18996
|
+
customer_id: string;
|
|
18997
|
+
email: string | null;
|
|
18998
|
+
id: string;
|
|
18999
|
+
name: string;
|
|
19000
|
+
phone: string | null;
|
|
19001
|
+
role: string | null;
|
|
19002
|
+
updated_at: string;
|
|
19003
|
+
};
|
|
19004
|
+
Insert: {
|
|
19005
|
+
created_at?: string;
|
|
19006
|
+
customer_id: string;
|
|
19007
|
+
email?: string | null;
|
|
19008
|
+
id?: string;
|
|
19009
|
+
name: string;
|
|
19010
|
+
phone?: string | null;
|
|
19011
|
+
role?: string | null;
|
|
19012
|
+
updated_at?: string;
|
|
19013
|
+
};
|
|
19014
|
+
Update: {
|
|
19015
|
+
created_at?: string;
|
|
19016
|
+
customer_id?: string;
|
|
19017
|
+
email?: string | null;
|
|
19018
|
+
id?: string;
|
|
19019
|
+
name?: string;
|
|
19020
|
+
phone?: string | null;
|
|
19021
|
+
role?: string | null;
|
|
19022
|
+
updated_at?: string;
|
|
19023
|
+
};
|
|
19024
|
+
Relationships: [{
|
|
19025
|
+
foreignKeyName: "itk_contact_persons_customer_id_fkey";
|
|
19026
|
+
columns: ["customer_id"];
|
|
19027
|
+
isOneToOne: false;
|
|
19028
|
+
referencedRelation: "itk_customers";
|
|
19029
|
+
referencedColumns: ["id"];
|
|
19030
|
+
}];
|
|
19031
|
+
};
|
|
19032
|
+
itk_customer_dynamic_values: {
|
|
19033
|
+
Row: {
|
|
19034
|
+
created_at: string;
|
|
19035
|
+
customer_id: string;
|
|
19036
|
+
field_id: string;
|
|
19037
|
+
id: string;
|
|
19038
|
+
updated_at: string;
|
|
19039
|
+
value: string | null;
|
|
19040
|
+
};
|
|
19041
|
+
Insert: {
|
|
19042
|
+
created_at?: string;
|
|
19043
|
+
customer_id: string;
|
|
19044
|
+
field_id: string;
|
|
19045
|
+
id?: string;
|
|
19046
|
+
updated_at?: string;
|
|
19047
|
+
value?: string | null;
|
|
19048
|
+
};
|
|
19049
|
+
Update: {
|
|
19050
|
+
created_at?: string;
|
|
19051
|
+
customer_id?: string;
|
|
19052
|
+
field_id?: string;
|
|
19053
|
+
id?: string;
|
|
19054
|
+
updated_at?: string;
|
|
19055
|
+
value?: string | null;
|
|
19056
|
+
};
|
|
19057
|
+
Relationships: [{
|
|
19058
|
+
foreignKeyName: "itk_customer_dynamic_values_customer_id_fkey";
|
|
19059
|
+
columns: ["customer_id"];
|
|
19060
|
+
isOneToOne: false;
|
|
19061
|
+
referencedRelation: "itk_customers";
|
|
19062
|
+
referencedColumns: ["id"];
|
|
19063
|
+
}, {
|
|
19064
|
+
foreignKeyName: "itk_customer_dynamic_values_field_id_fkey";
|
|
19065
|
+
columns: ["field_id"];
|
|
19066
|
+
isOneToOne: false;
|
|
19067
|
+
referencedRelation: "itk_dynamic_fields";
|
|
19068
|
+
referencedColumns: ["id"];
|
|
19069
|
+
}];
|
|
19070
|
+
};
|
|
19071
|
+
itk_customer_notes: {
|
|
19072
|
+
Row: {
|
|
19073
|
+
body: string;
|
|
19074
|
+
created_at: string;
|
|
19075
|
+
created_by: string | null;
|
|
19076
|
+
customer_id: string;
|
|
19077
|
+
id: string;
|
|
19078
|
+
note_type: string;
|
|
19079
|
+
updated_at: string;
|
|
19080
|
+
};
|
|
19081
|
+
Insert: {
|
|
19082
|
+
body: string;
|
|
19083
|
+
created_at?: string;
|
|
19084
|
+
created_by?: string | null;
|
|
19085
|
+
customer_id: string;
|
|
19086
|
+
id?: string;
|
|
19087
|
+
note_type?: string;
|
|
19088
|
+
updated_at?: string;
|
|
19089
|
+
};
|
|
19090
|
+
Update: {
|
|
19091
|
+
body?: string;
|
|
19092
|
+
created_at?: string;
|
|
19093
|
+
created_by?: string | null;
|
|
19094
|
+
customer_id?: string;
|
|
19095
|
+
id?: string;
|
|
19096
|
+
note_type?: string;
|
|
19097
|
+
updated_at?: string;
|
|
19098
|
+
};
|
|
19099
|
+
Relationships: [{
|
|
19100
|
+
foreignKeyName: "itk_customer_notes_customer_id_fkey";
|
|
19101
|
+
columns: ["customer_id"];
|
|
19102
|
+
isOneToOne: false;
|
|
19103
|
+
referencedRelation: "itk_customers";
|
|
19104
|
+
referencedColumns: ["id"];
|
|
19105
|
+
}];
|
|
19106
|
+
};
|
|
19107
|
+
itk_customers: {
|
|
19108
|
+
Row: {
|
|
19109
|
+
billing_city: string | null;
|
|
19110
|
+
billing_postcode: string | null;
|
|
19111
|
+
billing_street: string | null;
|
|
19112
|
+
created_at: string;
|
|
19113
|
+
general_email: string | null;
|
|
19114
|
+
general_phone: string | null;
|
|
19115
|
+
id: string;
|
|
19116
|
+
legacy_customer_id: string | null;
|
|
19117
|
+
name: string;
|
|
19118
|
+
segment: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
19119
|
+
updated_at: string;
|
|
19120
|
+
};
|
|
19121
|
+
Insert: {
|
|
19122
|
+
billing_city?: string | null;
|
|
19123
|
+
billing_postcode?: string | null;
|
|
19124
|
+
billing_street?: string | null;
|
|
19125
|
+
created_at?: string;
|
|
19126
|
+
general_email?: string | null;
|
|
19127
|
+
general_phone?: string | null;
|
|
19128
|
+
id?: string;
|
|
19129
|
+
legacy_customer_id?: string | null;
|
|
19130
|
+
name: string;
|
|
19131
|
+
segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
19132
|
+
updated_at?: string;
|
|
19133
|
+
};
|
|
19134
|
+
Update: {
|
|
19135
|
+
billing_city?: string | null;
|
|
19136
|
+
billing_postcode?: string | null;
|
|
19137
|
+
billing_street?: string | null;
|
|
19138
|
+
created_at?: string;
|
|
19139
|
+
general_email?: string | null;
|
|
19140
|
+
general_phone?: string | null;
|
|
19141
|
+
id?: string;
|
|
19142
|
+
legacy_customer_id?: string | null;
|
|
19143
|
+
name?: string;
|
|
19144
|
+
segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
19145
|
+
updated_at?: string;
|
|
19146
|
+
};
|
|
19147
|
+
Relationships: [{
|
|
19148
|
+
foreignKeyName: "itk_customers_legacy_customer_id_fkey";
|
|
19149
|
+
columns: ["legacy_customer_id"];
|
|
19150
|
+
isOneToOne: false;
|
|
19151
|
+
referencedRelation: "customers";
|
|
19152
|
+
referencedColumns: ["id"];
|
|
19153
|
+
}];
|
|
19154
|
+
};
|
|
19155
|
+
itk_dynamic_fields: {
|
|
19156
|
+
Row: {
|
|
19157
|
+
created_at: string;
|
|
19158
|
+
field_name: string;
|
|
19159
|
+
field_type: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
19160
|
+
id: string;
|
|
19161
|
+
options: import("../integrations/supabase/types").Json;
|
|
19162
|
+
sort_order: number;
|
|
19163
|
+
updated_at: string;
|
|
19164
|
+
};
|
|
19165
|
+
Insert: {
|
|
19166
|
+
created_at?: string;
|
|
19167
|
+
field_name: string;
|
|
19168
|
+
field_type?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
19169
|
+
id?: string;
|
|
19170
|
+
options?: import("../integrations/supabase/types").Json;
|
|
19171
|
+
sort_order?: number;
|
|
19172
|
+
updated_at?: string;
|
|
19173
|
+
};
|
|
19174
|
+
Update: {
|
|
19175
|
+
created_at?: string;
|
|
19176
|
+
field_name?: string;
|
|
19177
|
+
field_type?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
19178
|
+
id?: string;
|
|
19179
|
+
options?: import("../integrations/supabase/types").Json;
|
|
19180
|
+
sort_order?: number;
|
|
19181
|
+
updated_at?: string;
|
|
19182
|
+
};
|
|
19183
|
+
Relationships: [];
|
|
19184
|
+
};
|
|
19185
|
+
itk_work_locations: {
|
|
19186
|
+
Row: {
|
|
19187
|
+
city: string | null;
|
|
19188
|
+
created_at: string;
|
|
19189
|
+
customer_id: string;
|
|
19190
|
+
id: string;
|
|
19191
|
+
instructions: string | null;
|
|
19192
|
+
label: string;
|
|
19193
|
+
latitude: number | null;
|
|
19194
|
+
longitude: number | null;
|
|
19195
|
+
postcode: string | null;
|
|
19196
|
+
street: string | null;
|
|
19197
|
+
updated_at: string;
|
|
19198
|
+
};
|
|
19199
|
+
Insert: {
|
|
19200
|
+
city?: string | null;
|
|
19201
|
+
created_at?: string;
|
|
19202
|
+
customer_id: string;
|
|
19203
|
+
id?: string;
|
|
19204
|
+
instructions?: string | null;
|
|
19205
|
+
label: string;
|
|
19206
|
+
latitude?: number | null;
|
|
19207
|
+
longitude?: number | null;
|
|
19208
|
+
postcode?: string | null;
|
|
19209
|
+
street?: string | null;
|
|
19210
|
+
updated_at?: string;
|
|
19211
|
+
};
|
|
19212
|
+
Update: {
|
|
19213
|
+
city?: string | null;
|
|
17820
19214
|
created_at?: string;
|
|
17821
|
-
|
|
17822
|
-
description?: string | null;
|
|
17823
|
-
exact_article_id?: string | null;
|
|
19215
|
+
customer_id?: string;
|
|
17824
19216
|
id?: string;
|
|
17825
|
-
|
|
17826
|
-
|
|
17827
|
-
|
|
17828
|
-
|
|
17829
|
-
|
|
17830
|
-
|
|
19217
|
+
instructions?: string | null;
|
|
19218
|
+
label?: string;
|
|
19219
|
+
latitude?: number | null;
|
|
19220
|
+
longitude?: number | null;
|
|
19221
|
+
postcode?: string | null;
|
|
19222
|
+
street?: string | null;
|
|
19223
|
+
updated_at?: string;
|
|
17831
19224
|
};
|
|
17832
19225
|
Relationships: [{
|
|
17833
|
-
foreignKeyName: "
|
|
17834
|
-
columns: ["
|
|
17835
|
-
isOneToOne: false;
|
|
17836
|
-
referencedRelation: "bookings";
|
|
17837
|
-
referencedColumns: ["id"];
|
|
17838
|
-
}, {
|
|
17839
|
-
foreignKeyName: "invoice_run_items_invoice_run_id_fkey";
|
|
17840
|
-
columns: ["invoice_run_id"];
|
|
19226
|
+
foreignKeyName: "itk_work_locations_customer_id_fkey";
|
|
19227
|
+
columns: ["customer_id"];
|
|
17841
19228
|
isOneToOne: false;
|
|
17842
|
-
referencedRelation: "
|
|
19229
|
+
referencedRelation: "itk_customers";
|
|
17843
19230
|
referencedColumns: ["id"];
|
|
17844
19231
|
}];
|
|
17845
19232
|
};
|
|
17846
|
-
|
|
19233
|
+
leave_requests: {
|
|
17847
19234
|
Row: {
|
|
17848
19235
|
created_at: string;
|
|
17849
|
-
|
|
19236
|
+
end_date: string;
|
|
17850
19237
|
id: string;
|
|
17851
|
-
|
|
17852
|
-
|
|
19238
|
+
reason: string | null;
|
|
19239
|
+
start_date: string;
|
|
17853
19240
|
status: string;
|
|
17854
|
-
|
|
17855
|
-
|
|
17856
|
-
|
|
19241
|
+
tenant_id: string;
|
|
19242
|
+
updated_at: string;
|
|
19243
|
+
user_id: string;
|
|
17857
19244
|
};
|
|
17858
19245
|
Insert: {
|
|
17859
19246
|
created_at?: string;
|
|
17860
|
-
|
|
19247
|
+
end_date: string;
|
|
17861
19248
|
id?: string;
|
|
17862
|
-
|
|
17863
|
-
|
|
19249
|
+
reason?: string | null;
|
|
19250
|
+
start_date: string;
|
|
17864
19251
|
status?: string;
|
|
17865
|
-
|
|
17866
|
-
|
|
17867
|
-
|
|
19252
|
+
tenant_id?: string;
|
|
19253
|
+
updated_at?: string;
|
|
19254
|
+
user_id: string;
|
|
17868
19255
|
};
|
|
17869
19256
|
Update: {
|
|
17870
19257
|
created_at?: string;
|
|
17871
|
-
|
|
19258
|
+
end_date?: string;
|
|
17872
19259
|
id?: string;
|
|
17873
|
-
|
|
17874
|
-
|
|
19260
|
+
reason?: string | null;
|
|
19261
|
+
start_date?: string;
|
|
17875
19262
|
status?: string;
|
|
17876
|
-
|
|
17877
|
-
|
|
17878
|
-
|
|
19263
|
+
tenant_id?: string;
|
|
19264
|
+
updated_at?: string;
|
|
19265
|
+
user_id?: string;
|
|
17879
19266
|
};
|
|
17880
|
-
Relationships: [
|
|
19267
|
+
Relationships: [{
|
|
19268
|
+
foreignKeyName: "leave_requests_user_id_fkey";
|
|
19269
|
+
columns: ["user_id"];
|
|
19270
|
+
isOneToOne: false;
|
|
19271
|
+
referencedRelation: "monteurs";
|
|
19272
|
+
referencedColumns: ["id"];
|
|
19273
|
+
}];
|
|
17881
19274
|
};
|
|
17882
19275
|
local_customer_agreements: {
|
|
17883
19276
|
Row: {
|
|
@@ -18530,6 +19923,33 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
18530
19923
|
};
|
|
18531
19924
|
Relationships: [];
|
|
18532
19925
|
};
|
|
19926
|
+
module_permissions: {
|
|
19927
|
+
Row: {
|
|
19928
|
+
created_at: string;
|
|
19929
|
+
id: string;
|
|
19930
|
+
module_id: string;
|
|
19931
|
+
permission: string;
|
|
19932
|
+
role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
19933
|
+
updated_at: string;
|
|
19934
|
+
};
|
|
19935
|
+
Insert: {
|
|
19936
|
+
created_at?: string;
|
|
19937
|
+
id?: string;
|
|
19938
|
+
module_id: string;
|
|
19939
|
+
permission: string;
|
|
19940
|
+
role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
19941
|
+
updated_at?: string;
|
|
19942
|
+
};
|
|
19943
|
+
Update: {
|
|
19944
|
+
created_at?: string;
|
|
19945
|
+
id?: string;
|
|
19946
|
+
module_id?: string;
|
|
19947
|
+
permission?: string;
|
|
19948
|
+
role?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
19949
|
+
updated_at?: string;
|
|
19950
|
+
};
|
|
19951
|
+
Relationships: [];
|
|
19952
|
+
};
|
|
18533
19953
|
monteurs: {
|
|
18534
19954
|
Row: {
|
|
18535
19955
|
avatar_url: string | null;
|
|
@@ -19259,6 +20679,42 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
19259
20679
|
};
|
|
19260
20680
|
Relationships: [];
|
|
19261
20681
|
};
|
|
20682
|
+
order_buffers: {
|
|
20683
|
+
Row: {
|
|
20684
|
+
buffer_key: string;
|
|
20685
|
+
created_at: string;
|
|
20686
|
+
customer_id: string | null;
|
|
20687
|
+
grouping_mode: string;
|
|
20688
|
+
id: string;
|
|
20689
|
+
pickup_date: string | null;
|
|
20690
|
+
pickup_location: string | null;
|
|
20691
|
+
plan_locked_at: string | null;
|
|
20692
|
+
updated_at: string;
|
|
20693
|
+
};
|
|
20694
|
+
Insert: {
|
|
20695
|
+
buffer_key: string;
|
|
20696
|
+
created_at?: string;
|
|
20697
|
+
customer_id?: string | null;
|
|
20698
|
+
grouping_mode: string;
|
|
20699
|
+
id?: string;
|
|
20700
|
+
pickup_date?: string | null;
|
|
20701
|
+
pickup_location?: string | null;
|
|
20702
|
+
plan_locked_at?: string | null;
|
|
20703
|
+
updated_at?: string;
|
|
20704
|
+
};
|
|
20705
|
+
Update: {
|
|
20706
|
+
buffer_key?: string;
|
|
20707
|
+
created_at?: string;
|
|
20708
|
+
customer_id?: string | null;
|
|
20709
|
+
grouping_mode?: string;
|
|
20710
|
+
id?: string;
|
|
20711
|
+
pickup_date?: string | null;
|
|
20712
|
+
pickup_location?: string | null;
|
|
20713
|
+
plan_locked_at?: string | null;
|
|
20714
|
+
updated_at?: string;
|
|
20715
|
+
};
|
|
20716
|
+
Relationships: [];
|
|
20717
|
+
};
|
|
19262
20718
|
order_cart_items: {
|
|
19263
20719
|
Row: {
|
|
19264
20720
|
cart_id: string;
|
|
@@ -19325,6 +20781,7 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
19325
20781
|
order_carts: {
|
|
19326
20782
|
Row: {
|
|
19327
20783
|
algorithm_version: number;
|
|
20784
|
+
buffer_id: string | null;
|
|
19328
20785
|
cart_number: number;
|
|
19329
20786
|
created_at: string;
|
|
19330
20787
|
id: string;
|
|
@@ -19332,13 +20789,14 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
19332
20789
|
is_complete: boolean;
|
|
19333
20790
|
notes: string | null;
|
|
19334
20791
|
occupancy_pct: number;
|
|
19335
|
-
order_id: string;
|
|
20792
|
+
order_id: string | null;
|
|
19336
20793
|
source: string;
|
|
19337
20794
|
total_layers_used: number;
|
|
19338
20795
|
updated_at: string;
|
|
19339
20796
|
};
|
|
19340
20797
|
Insert: {
|
|
19341
20798
|
algorithm_version?: number;
|
|
20799
|
+
buffer_id?: string | null;
|
|
19342
20800
|
cart_number: number;
|
|
19343
20801
|
created_at?: string;
|
|
19344
20802
|
id?: string;
|
|
@@ -19346,13 +20804,14 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
19346
20804
|
is_complete?: boolean;
|
|
19347
20805
|
notes?: string | null;
|
|
19348
20806
|
occupancy_pct?: number;
|
|
19349
|
-
order_id
|
|
20807
|
+
order_id?: string | null;
|
|
19350
20808
|
source?: string;
|
|
19351
20809
|
total_layers_used?: number;
|
|
19352
20810
|
updated_at?: string;
|
|
19353
20811
|
};
|
|
19354
20812
|
Update: {
|
|
19355
20813
|
algorithm_version?: number;
|
|
20814
|
+
buffer_id?: string | null;
|
|
19356
20815
|
cart_number?: number;
|
|
19357
20816
|
created_at?: string;
|
|
19358
20817
|
id?: string;
|
|
@@ -19360,12 +20819,18 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
19360
20819
|
is_complete?: boolean;
|
|
19361
20820
|
notes?: string | null;
|
|
19362
20821
|
occupancy_pct?: number;
|
|
19363
|
-
order_id?: string;
|
|
20822
|
+
order_id?: string | null;
|
|
19364
20823
|
source?: string;
|
|
19365
20824
|
total_layers_used?: number;
|
|
19366
20825
|
updated_at?: string;
|
|
19367
20826
|
};
|
|
19368
20827
|
Relationships: [{
|
|
20828
|
+
foreignKeyName: "order_carts_buffer_id_fkey";
|
|
20829
|
+
columns: ["buffer_id"];
|
|
20830
|
+
isOneToOne: false;
|
|
20831
|
+
referencedRelation: "order_buffers";
|
|
20832
|
+
referencedColumns: ["id"];
|
|
20833
|
+
}, {
|
|
19369
20834
|
foreignKeyName: "order_carts_order_id_fkey";
|
|
19370
20835
|
columns: ["order_id"];
|
|
19371
20836
|
isOneToOne: false;
|
|
@@ -19502,15 +20967,117 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
19502
20967
|
};
|
|
19503
20968
|
Relationships: [];
|
|
19504
20969
|
};
|
|
20970
|
+
order_shipment_items: {
|
|
20971
|
+
Row: {
|
|
20972
|
+
created_at: string;
|
|
20973
|
+
id: string;
|
|
20974
|
+
order_item_id: string;
|
|
20975
|
+
product_id: string | null;
|
|
20976
|
+
product_name: string;
|
|
20977
|
+
quantity: number;
|
|
20978
|
+
shipment_id: string;
|
|
20979
|
+
updated_at: string;
|
|
20980
|
+
};
|
|
20981
|
+
Insert: {
|
|
20982
|
+
created_at?: string;
|
|
20983
|
+
id?: string;
|
|
20984
|
+
order_item_id: string;
|
|
20985
|
+
product_id?: string | null;
|
|
20986
|
+
product_name: string;
|
|
20987
|
+
quantity: number;
|
|
20988
|
+
shipment_id: string;
|
|
20989
|
+
updated_at?: string;
|
|
20990
|
+
};
|
|
20991
|
+
Update: {
|
|
20992
|
+
created_at?: string;
|
|
20993
|
+
id?: string;
|
|
20994
|
+
order_item_id?: string;
|
|
20995
|
+
product_id?: string | null;
|
|
20996
|
+
product_name?: string;
|
|
20997
|
+
quantity?: number;
|
|
20998
|
+
shipment_id?: string;
|
|
20999
|
+
updated_at?: string;
|
|
21000
|
+
};
|
|
21001
|
+
Relationships: [{
|
|
21002
|
+
foreignKeyName: "order_shipment_items_order_item_id_fkey";
|
|
21003
|
+
columns: ["order_item_id"];
|
|
21004
|
+
isOneToOne: false;
|
|
21005
|
+
referencedRelation: "order_items";
|
|
21006
|
+
referencedColumns: ["id"];
|
|
21007
|
+
}, {
|
|
21008
|
+
foreignKeyName: "order_shipment_items_shipment_id_fkey";
|
|
21009
|
+
columns: ["shipment_id"];
|
|
21010
|
+
isOneToOne: false;
|
|
21011
|
+
referencedRelation: "order_shipments";
|
|
21012
|
+
referencedColumns: ["id"];
|
|
21013
|
+
}];
|
|
21014
|
+
};
|
|
21015
|
+
order_shipments: {
|
|
21016
|
+
Row: {
|
|
21017
|
+
carrier_id: string | null;
|
|
21018
|
+
created_at: string;
|
|
21019
|
+
delivery_date: string | null;
|
|
21020
|
+
delivery_location_id: string | null;
|
|
21021
|
+
id: string;
|
|
21022
|
+
notes: string | null;
|
|
21023
|
+
order_id: string;
|
|
21024
|
+
shipment_number: number;
|
|
21025
|
+
shipped_at: string | null;
|
|
21026
|
+
status: string;
|
|
21027
|
+
updated_at: string;
|
|
21028
|
+
};
|
|
21029
|
+
Insert: {
|
|
21030
|
+
carrier_id?: string | null;
|
|
21031
|
+
created_at?: string;
|
|
21032
|
+
delivery_date?: string | null;
|
|
21033
|
+
delivery_location_id?: string | null;
|
|
21034
|
+
id?: string;
|
|
21035
|
+
notes?: string | null;
|
|
21036
|
+
order_id: string;
|
|
21037
|
+
shipment_number: number;
|
|
21038
|
+
shipped_at?: string | null;
|
|
21039
|
+
status?: string;
|
|
21040
|
+
updated_at?: string;
|
|
21041
|
+
};
|
|
21042
|
+
Update: {
|
|
21043
|
+
carrier_id?: string | null;
|
|
21044
|
+
created_at?: string;
|
|
21045
|
+
delivery_date?: string | null;
|
|
21046
|
+
delivery_location_id?: string | null;
|
|
21047
|
+
id?: string;
|
|
21048
|
+
notes?: string | null;
|
|
21049
|
+
order_id?: string;
|
|
21050
|
+
shipment_number?: number;
|
|
21051
|
+
shipped_at?: string | null;
|
|
21052
|
+
status?: string;
|
|
21053
|
+
updated_at?: string;
|
|
21054
|
+
};
|
|
21055
|
+
Relationships: [{
|
|
21056
|
+
foreignKeyName: "order_shipments_carrier_id_fkey";
|
|
21057
|
+
columns: ["carrier_id"];
|
|
21058
|
+
isOneToOne: false;
|
|
21059
|
+
referencedRelation: "carriers";
|
|
21060
|
+
referencedColumns: ["id"];
|
|
21061
|
+
}, {
|
|
21062
|
+
foreignKeyName: "order_shipments_order_id_fkey";
|
|
21063
|
+
columns: ["order_id"];
|
|
21064
|
+
isOneToOne: false;
|
|
21065
|
+
referencedRelation: "orders";
|
|
21066
|
+
referencedColumns: ["id"];
|
|
21067
|
+
}];
|
|
21068
|
+
};
|
|
19505
21069
|
orders: {
|
|
19506
21070
|
Row: {
|
|
21071
|
+
buffer_id: string | null;
|
|
19507
21072
|
created_at: string;
|
|
19508
21073
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
19509
21074
|
customer_id: string | null;
|
|
19510
21075
|
customer_name: string;
|
|
19511
21076
|
deleted_at: string | null;
|
|
19512
|
-
delivery_date: string;
|
|
21077
|
+
delivery_date: string | null;
|
|
21078
|
+
floriday_sales_order_id: string | null;
|
|
19513
21079
|
id: string;
|
|
21080
|
+
is_reservation: boolean;
|
|
19514
21081
|
notes: string | null;
|
|
19515
21082
|
order_date: string;
|
|
19516
21083
|
order_number: string;
|
|
@@ -19522,13 +21089,16 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
19522
21089
|
updated_at: string;
|
|
19523
21090
|
};
|
|
19524
21091
|
Insert: {
|
|
21092
|
+
buffer_id?: string | null;
|
|
19525
21093
|
created_at?: string;
|
|
19526
21094
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
19527
21095
|
customer_id?: string | null;
|
|
19528
21096
|
customer_name?: string;
|
|
19529
21097
|
deleted_at?: string | null;
|
|
19530
|
-
delivery_date
|
|
21098
|
+
delivery_date?: string | null;
|
|
21099
|
+
floriday_sales_order_id?: string | null;
|
|
19531
21100
|
id?: string;
|
|
21101
|
+
is_reservation?: boolean;
|
|
19532
21102
|
notes?: string | null;
|
|
19533
21103
|
order_date?: string;
|
|
19534
21104
|
order_number: string;
|
|
@@ -19540,13 +21110,16 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
19540
21110
|
updated_at?: string;
|
|
19541
21111
|
};
|
|
19542
21112
|
Update: {
|
|
21113
|
+
buffer_id?: string | null;
|
|
19543
21114
|
created_at?: string;
|
|
19544
21115
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
19545
21116
|
customer_id?: string | null;
|
|
19546
21117
|
customer_name?: string;
|
|
19547
21118
|
deleted_at?: string | null;
|
|
19548
|
-
delivery_date?: string;
|
|
21119
|
+
delivery_date?: string | null;
|
|
21120
|
+
floriday_sales_order_id?: string | null;
|
|
19549
21121
|
id?: string;
|
|
21122
|
+
is_reservation?: boolean;
|
|
19550
21123
|
notes?: string | null;
|
|
19551
21124
|
order_date?: string;
|
|
19552
21125
|
order_number?: string;
|
|
@@ -19558,6 +21131,12 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
19558
21131
|
updated_at?: string;
|
|
19559
21132
|
};
|
|
19560
21133
|
Relationships: [{
|
|
21134
|
+
foreignKeyName: "orders_buffer_id_fkey";
|
|
21135
|
+
columns: ["buffer_id"];
|
|
21136
|
+
isOneToOne: false;
|
|
21137
|
+
referencedRelation: "order_buffers";
|
|
21138
|
+
referencedColumns: ["id"];
|
|
21139
|
+
}, {
|
|
19561
21140
|
foreignKeyName: "orders_customer_id_fkey";
|
|
19562
21141
|
columns: ["customer_id"];
|
|
19563
21142
|
isOneToOne: false;
|
|
@@ -19821,6 +21400,8 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
19821
21400
|
Row: {
|
|
19822
21401
|
created_at: string;
|
|
19823
21402
|
description: string | null;
|
|
21403
|
+
head_product_id: string | null;
|
|
21404
|
+
head_trade_item_floriday_id: string | null;
|
|
19824
21405
|
id: string;
|
|
19825
21406
|
is_active: boolean;
|
|
19826
21407
|
name: string;
|
|
@@ -19830,6 +21411,8 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
19830
21411
|
Insert: {
|
|
19831
21412
|
created_at?: string;
|
|
19832
21413
|
description?: string | null;
|
|
21414
|
+
head_product_id?: string | null;
|
|
21415
|
+
head_trade_item_floriday_id?: string | null;
|
|
19833
21416
|
id?: string;
|
|
19834
21417
|
is_active?: boolean;
|
|
19835
21418
|
name: string;
|
|
@@ -19839,13 +21422,21 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
19839
21422
|
Update: {
|
|
19840
21423
|
created_at?: string;
|
|
19841
21424
|
description?: string | null;
|
|
21425
|
+
head_product_id?: string | null;
|
|
21426
|
+
head_trade_item_floriday_id?: string | null;
|
|
19842
21427
|
id?: string;
|
|
19843
21428
|
is_active?: boolean;
|
|
19844
21429
|
name?: string;
|
|
19845
21430
|
tenant_id?: string;
|
|
19846
21431
|
updated_at?: string;
|
|
19847
21432
|
};
|
|
19848
|
-
Relationships: [
|
|
21433
|
+
Relationships: [{
|
|
21434
|
+
foreignKeyName: "product_groups_head_product_id_fkey";
|
|
21435
|
+
columns: ["head_product_id"];
|
|
21436
|
+
isOneToOne: false;
|
|
21437
|
+
referencedRelation: "products";
|
|
21438
|
+
referencedColumns: ["id"];
|
|
21439
|
+
}];
|
|
19849
21440
|
};
|
|
19850
21441
|
products: {
|
|
19851
21442
|
Row: {
|
|
@@ -22396,6 +23987,7 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
22396
23987
|
internal_notes: string | null;
|
|
22397
23988
|
parent_werkbon_id: string | null;
|
|
22398
23989
|
parsed_payload: import("../integrations/supabase/types").Json | null;
|
|
23990
|
+
planning_status: string;
|
|
22399
23991
|
project_number: string | null;
|
|
22400
23992
|
room_number: string | null;
|
|
22401
23993
|
scheduled_end_time: string | null;
|
|
@@ -22403,6 +23995,7 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
22403
23995
|
sequence_number: number;
|
|
22404
23996
|
source_pdf_path: string | null;
|
|
22405
23997
|
status: string;
|
|
23998
|
+
technician_id: string | null;
|
|
22406
23999
|
technician_notes: string | null;
|
|
22407
24000
|
technician_notes_raw: string | null;
|
|
22408
24001
|
technician_task_description: string | null;
|
|
@@ -22423,6 +24016,7 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
22423
24016
|
internal_notes?: string | null;
|
|
22424
24017
|
parent_werkbon_id?: string | null;
|
|
22425
24018
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
24019
|
+
planning_status?: string;
|
|
22426
24020
|
project_number?: string | null;
|
|
22427
24021
|
room_number?: string | null;
|
|
22428
24022
|
scheduled_end_time?: string | null;
|
|
@@ -22430,6 +24024,7 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
22430
24024
|
sequence_number: number;
|
|
22431
24025
|
source_pdf_path?: string | null;
|
|
22432
24026
|
status?: string;
|
|
24027
|
+
technician_id?: string | null;
|
|
22433
24028
|
technician_notes?: string | null;
|
|
22434
24029
|
technician_notes_raw?: string | null;
|
|
22435
24030
|
technician_task_description?: string | null;
|
|
@@ -22450,6 +24045,7 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
22450
24045
|
internal_notes?: string | null;
|
|
22451
24046
|
parent_werkbon_id?: string | null;
|
|
22452
24047
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
24048
|
+
planning_status?: string;
|
|
22453
24049
|
project_number?: string | null;
|
|
22454
24050
|
room_number?: string | null;
|
|
22455
24051
|
scheduled_end_time?: string | null;
|
|
@@ -22457,6 +24053,7 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
22457
24053
|
sequence_number?: number;
|
|
22458
24054
|
source_pdf_path?: string | null;
|
|
22459
24055
|
status?: string;
|
|
24056
|
+
technician_id?: string | null;
|
|
22460
24057
|
technician_notes?: string | null;
|
|
22461
24058
|
technician_notes_raw?: string | null;
|
|
22462
24059
|
technician_task_description?: string | null;
|
|
@@ -22465,17 +24062,17 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
22465
24062
|
work_address?: string | null;
|
|
22466
24063
|
};
|
|
22467
24064
|
Relationships: [{
|
|
22468
|
-
foreignKeyName: "werkbonnen_customer_id_fkey";
|
|
22469
|
-
columns: ["customer_id"];
|
|
22470
|
-
isOneToOne: false;
|
|
22471
|
-
referencedRelation: "customers";
|
|
22472
|
-
referencedColumns: ["id"];
|
|
22473
|
-
}, {
|
|
22474
24065
|
foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
|
|
22475
24066
|
columns: ["parent_werkbon_id"];
|
|
22476
24067
|
isOneToOne: false;
|
|
22477
24068
|
referencedRelation: "werkbonnen";
|
|
22478
24069
|
referencedColumns: ["id"];
|
|
24070
|
+
}, {
|
|
24071
|
+
foreignKeyName: "werkbonnen_technician_id_fkey";
|
|
24072
|
+
columns: ["technician_id"];
|
|
24073
|
+
isOneToOne: false;
|
|
24074
|
+
referencedRelation: "monteurs";
|
|
24075
|
+
referencedColumns: ["id"];
|
|
22479
24076
|
}];
|
|
22480
24077
|
};
|
|
22481
24078
|
work_order_monteurs: {
|
|
@@ -23194,6 +24791,21 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
23194
24791
|
};
|
|
23195
24792
|
Returns: string;
|
|
23196
24793
|
};
|
|
24794
|
+
ai_usage_by_module: {
|
|
24795
|
+
Args: {
|
|
24796
|
+
_from: string;
|
|
24797
|
+
_to: string;
|
|
24798
|
+
};
|
|
24799
|
+
Returns: {
|
|
24800
|
+
calls: number;
|
|
24801
|
+
consumer_module_id: string;
|
|
24802
|
+
cost_usd: number;
|
|
24803
|
+
errors: number;
|
|
24804
|
+
input_tokens: number;
|
|
24805
|
+
output_tokens: number;
|
|
24806
|
+
total_tokens: number;
|
|
24807
|
+
}[];
|
|
24808
|
+
};
|
|
23197
24809
|
apply_stock_consumption: {
|
|
23198
24810
|
Args: {
|
|
23199
24811
|
p_order_id: string;
|
|
@@ -23342,6 +24954,12 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
23342
24954
|
Args: never;
|
|
23343
24955
|
Returns: string;
|
|
23344
24956
|
};
|
|
24957
|
+
custom_access_token_hook: {
|
|
24958
|
+
Args: {
|
|
24959
|
+
event: import("../integrations/supabase/types").Json;
|
|
24960
|
+
};
|
|
24961
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
24962
|
+
};
|
|
23345
24963
|
dashboard_alert_counts: {
|
|
23346
24964
|
Args: never;
|
|
23347
24965
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -23677,6 +25295,14 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
23677
25295
|
};
|
|
23678
25296
|
Returns: string;
|
|
23679
25297
|
};
|
|
25298
|
+
has_module_permission: {
|
|
25299
|
+
Args: {
|
|
25300
|
+
_min: string;
|
|
25301
|
+
_module_id: string;
|
|
25302
|
+
_user_id: string;
|
|
25303
|
+
};
|
|
25304
|
+
Returns: boolean;
|
|
25305
|
+
};
|
|
23680
25306
|
has_role: {
|
|
23681
25307
|
Args: {
|
|
23682
25308
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -23702,6 +25328,20 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
23702
25328
|
};
|
|
23703
25329
|
Returns: boolean;
|
|
23704
25330
|
};
|
|
25331
|
+
jwt_has_role: {
|
|
25332
|
+
Args: {
|
|
25333
|
+
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
25334
|
+
};
|
|
25335
|
+
Returns: boolean;
|
|
25336
|
+
};
|
|
25337
|
+
list_monteurs: {
|
|
25338
|
+
Args: never;
|
|
25339
|
+
Returns: {
|
|
25340
|
+
display_name: string;
|
|
25341
|
+
email: string;
|
|
25342
|
+
user_id: string;
|
|
25343
|
+
}[];
|
|
25344
|
+
};
|
|
23705
25345
|
local_effective_price: {
|
|
23706
25346
|
Args: {
|
|
23707
25347
|
_customer_id: string;
|
|
@@ -23718,6 +25358,22 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
23718
25358
|
source_id: string;
|
|
23719
25359
|
}[];
|
|
23720
25360
|
};
|
|
25361
|
+
log_ai_call: {
|
|
25362
|
+
Args: {
|
|
25363
|
+
_consumer_module_id: string;
|
|
25364
|
+
_cost_usd: number;
|
|
25365
|
+
_duration_ms: number;
|
|
25366
|
+
_error_code: string;
|
|
25367
|
+
_error_message: string;
|
|
25368
|
+
_input_tokens: number;
|
|
25369
|
+
_model_slug: string;
|
|
25370
|
+
_output_tokens: number;
|
|
25371
|
+
_provider_slug: string;
|
|
25372
|
+
_status: string;
|
|
25373
|
+
_total_tokens: number;
|
|
25374
|
+
};
|
|
25375
|
+
Returns: string;
|
|
25376
|
+
};
|
|
23721
25377
|
mark_offer_clicked: {
|
|
23722
25378
|
Args: {
|
|
23723
25379
|
p_code: string;
|
|
@@ -23730,6 +25386,12 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
23730
25386
|
};
|
|
23731
25387
|
Returns: undefined;
|
|
23732
25388
|
};
|
|
25389
|
+
mark_shipment_shipped: {
|
|
25390
|
+
Args: {
|
|
25391
|
+
p_shipment_id: string;
|
|
25392
|
+
};
|
|
25393
|
+
Returns: undefined;
|
|
25394
|
+
};
|
|
23733
25395
|
next_order_number: {
|
|
23734
25396
|
Args: {
|
|
23735
25397
|
p_prefix: string;
|
|
@@ -24206,9 +25868,11 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
24206
25868
|
};
|
|
24207
25869
|
};
|
|
24208
25870
|
Enums: {
|
|
24209
|
-
app_role: "admin" | "
|
|
25871
|
+
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
|
|
24210
25872
|
exact_env: "staging" | "live";
|
|
24211
25873
|
exact_push_status: "pending" | "sent" | "error";
|
|
25874
|
+
itk_customer_segment: "Business" | "Private";
|
|
25875
|
+
itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
|
|
24212
25876
|
quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
|
|
24213
25877
|
};
|
|
24214
25878
|
CompositeTypes: { [_ in never]: never; };
|