@flowselections/floriday-klanten-module 1.0.16 → 1.0.18
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/components/klanten/pricegroups/PriceGroupEditRoute.d.ts +2 -0
- package/dist-lib/components/klanten/pricegroups/PriceGroupEditRoute.d.ts.map +1 -0
- package/dist-lib/components/klanten/pricegroups/PriceGroupEditRoute.js +8 -0
- package/dist-lib/index.d.ts +2 -0
- package/dist-lib/index.d.ts.map +1 -1
- package/dist-lib/index.js +2 -0
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +905 -27
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +905 -27
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +905 -27
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +930 -22
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.js +4 -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 +2676 -42
- package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts.map +1 -1
- package/dist-lib/lib/accounting.functions.d.ts +2676 -42
- package/dist-lib/lib/accounting.functions.d.ts.map +1 -1
- package/dist-lib/lib/customer-analytics.functions.d.ts +905 -27
- package/dist-lib/lib/customer-analytics.functions.d.ts.map +1 -1
- package/dist-lib/lib/customers.functions.d.ts +8028 -126
- package/dist-lib/lib/customers.functions.d.ts.map +1 -1
- package/dist-lib/lib/delivery-locations.functions.d.ts +3568 -56
- package/dist-lib/lib/delivery-locations.functions.d.ts.map +1 -1
- package/dist-lib/lib/external-customers.functions.d.ts +3568 -56
- package/dist-lib/lib/external-customers.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-assortment.functions.d.ts +905 -27
- package/dist-lib/lib/floriday-assortment.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-discounts.functions.d.ts +1888 -132
- package/dist-lib/lib/floriday-discounts.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-trade-items.functions.d.ts +905 -27
- package/dist-lib/lib/floriday-trade-items.functions.d.ts.map +1 -1
- package/dist-lib/lib/local-discounts.functions.d.ts +6244 -98
- package/dist-lib/lib/local-discounts.functions.d.ts.map +1 -1
- package/dist-lib/lib/overdue-invoices.functions.d.ts +905 -27
- package/dist-lib/lib/overdue-invoices.functions.d.ts.map +1 -1
- package/dist-lib/lib/price-groups-local.functions.d.ts +6244 -98
- package/dist-lib/lib/price-groups-local.functions.d.ts.map +1 -1
- package/dist-lib/lib/price-groups.functions.d.ts +905 -27
- package/dist-lib/lib/price-groups.functions.d.ts.map +1 -1
- package/package.json +8 -2
- package/public/flowselections-assets/Klanten/floriday-logo.png +0 -0
|
@@ -305,6 +305,57 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
|
|
|
305
305
|
referencedColumns: ["id"];
|
|
306
306
|
}];
|
|
307
307
|
};
|
|
308
|
+
ai_call_log: {
|
|
309
|
+
Row: {
|
|
310
|
+
consumer_module_id: string;
|
|
311
|
+
cost_usd: number | null;
|
|
312
|
+
created_at: string;
|
|
313
|
+
created_by: string | null;
|
|
314
|
+
duration_ms: number | null;
|
|
315
|
+
error_code: string | null;
|
|
316
|
+
error_message: string | null;
|
|
317
|
+
id: string;
|
|
318
|
+
input_tokens: number;
|
|
319
|
+
model_slug: string | null;
|
|
320
|
+
output_tokens: number;
|
|
321
|
+
provider_slug: string | null;
|
|
322
|
+
status: string;
|
|
323
|
+
total_tokens: number;
|
|
324
|
+
};
|
|
325
|
+
Insert: {
|
|
326
|
+
consumer_module_id: string;
|
|
327
|
+
cost_usd?: number | null;
|
|
328
|
+
created_at?: string;
|
|
329
|
+
created_by?: string | null;
|
|
330
|
+
duration_ms?: number | null;
|
|
331
|
+
error_code?: string | null;
|
|
332
|
+
error_message?: string | null;
|
|
333
|
+
id?: string;
|
|
334
|
+
input_tokens?: number;
|
|
335
|
+
model_slug?: string | null;
|
|
336
|
+
output_tokens?: number;
|
|
337
|
+
provider_slug?: string | null;
|
|
338
|
+
status: string;
|
|
339
|
+
total_tokens?: number;
|
|
340
|
+
};
|
|
341
|
+
Update: {
|
|
342
|
+
consumer_module_id?: string;
|
|
343
|
+
cost_usd?: number | null;
|
|
344
|
+
created_at?: string;
|
|
345
|
+
created_by?: string | null;
|
|
346
|
+
duration_ms?: number | null;
|
|
347
|
+
error_code?: string | null;
|
|
348
|
+
error_message?: string | null;
|
|
349
|
+
id?: string;
|
|
350
|
+
input_tokens?: number;
|
|
351
|
+
model_slug?: string | null;
|
|
352
|
+
output_tokens?: number;
|
|
353
|
+
provider_slug?: string | null;
|
|
354
|
+
status?: string;
|
|
355
|
+
total_tokens?: number;
|
|
356
|
+
};
|
|
357
|
+
Relationships: [];
|
|
358
|
+
};
|
|
308
359
|
ai_credentials: {
|
|
309
360
|
Row: {
|
|
310
361
|
active: boolean;
|
|
@@ -341,6 +392,36 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
|
|
|
341
392
|
referencedColumns: ["id"];
|
|
342
393
|
}];
|
|
343
394
|
};
|
|
395
|
+
ai_goals: {
|
|
396
|
+
Row: {
|
|
397
|
+
active: boolean;
|
|
398
|
+
created_at: string;
|
|
399
|
+
description: string | null;
|
|
400
|
+
key: string;
|
|
401
|
+
label: string;
|
|
402
|
+
sort_order: number;
|
|
403
|
+
updated_at: string;
|
|
404
|
+
};
|
|
405
|
+
Insert: {
|
|
406
|
+
active?: boolean;
|
|
407
|
+
created_at?: string;
|
|
408
|
+
description?: string | null;
|
|
409
|
+
key: string;
|
|
410
|
+
label: string;
|
|
411
|
+
sort_order?: number;
|
|
412
|
+
updated_at?: string;
|
|
413
|
+
};
|
|
414
|
+
Update: {
|
|
415
|
+
active?: boolean;
|
|
416
|
+
created_at?: string;
|
|
417
|
+
description?: string | null;
|
|
418
|
+
key?: string;
|
|
419
|
+
label?: string;
|
|
420
|
+
sort_order?: number;
|
|
421
|
+
updated_at?: string;
|
|
422
|
+
};
|
|
423
|
+
Relationships: [];
|
|
424
|
+
};
|
|
344
425
|
ai_model_pricing: {
|
|
345
426
|
Row: {
|
|
346
427
|
created_at: string;
|
|
@@ -1127,6 +1208,141 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
|
|
|
1127
1208
|
};
|
|
1128
1209
|
Relationships: [];
|
|
1129
1210
|
};
|
|
1211
|
+
cart_planning_pick_times: {
|
|
1212
|
+
Row: {
|
|
1213
|
+
created_at: string;
|
|
1214
|
+
id: string;
|
|
1215
|
+
pot_size: string;
|
|
1216
|
+
seconds_per_cart: number;
|
|
1217
|
+
updated_at: string;
|
|
1218
|
+
};
|
|
1219
|
+
Insert: {
|
|
1220
|
+
created_at?: string;
|
|
1221
|
+
id?: string;
|
|
1222
|
+
pot_size: string;
|
|
1223
|
+
seconds_per_cart: number;
|
|
1224
|
+
updated_at?: string;
|
|
1225
|
+
};
|
|
1226
|
+
Update: {
|
|
1227
|
+
created_at?: string;
|
|
1228
|
+
id?: string;
|
|
1229
|
+
pot_size?: string;
|
|
1230
|
+
seconds_per_cart?: number;
|
|
1231
|
+
updated_at?: string;
|
|
1232
|
+
};
|
|
1233
|
+
Relationships: [];
|
|
1234
|
+
};
|
|
1235
|
+
cart_planning_product_overrides: {
|
|
1236
|
+
Row: {
|
|
1237
|
+
created_at: string;
|
|
1238
|
+
id: string;
|
|
1239
|
+
max_party_share_per_layer_pct_override: number | null;
|
|
1240
|
+
never_mix: boolean;
|
|
1241
|
+
notes: string | null;
|
|
1242
|
+
product_id: string;
|
|
1243
|
+
updated_at: string;
|
|
1244
|
+
};
|
|
1245
|
+
Insert: {
|
|
1246
|
+
created_at?: string;
|
|
1247
|
+
id?: string;
|
|
1248
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
1249
|
+
never_mix?: boolean;
|
|
1250
|
+
notes?: string | null;
|
|
1251
|
+
product_id: string;
|
|
1252
|
+
updated_at?: string;
|
|
1253
|
+
};
|
|
1254
|
+
Update: {
|
|
1255
|
+
created_at?: string;
|
|
1256
|
+
id?: string;
|
|
1257
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
1258
|
+
never_mix?: boolean;
|
|
1259
|
+
notes?: string | null;
|
|
1260
|
+
product_id?: string;
|
|
1261
|
+
updated_at?: string;
|
|
1262
|
+
};
|
|
1263
|
+
Relationships: [{
|
|
1264
|
+
foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
|
|
1265
|
+
columns: ["product_id"];
|
|
1266
|
+
isOneToOne: true;
|
|
1267
|
+
referencedRelation: "products";
|
|
1268
|
+
referencedColumns: ["id"];
|
|
1269
|
+
}];
|
|
1270
|
+
};
|
|
1271
|
+
cart_planning_settings: {
|
|
1272
|
+
Row: {
|
|
1273
|
+
allow_editing_after_pickstation_send: boolean;
|
|
1274
|
+
buffer_grouping_mode: string;
|
|
1275
|
+
combine_floriday_orders: boolean;
|
|
1276
|
+
combine_floriday_orders_window: string;
|
|
1277
|
+
combine_orders_scope: string;
|
|
1278
|
+
default_workers: number;
|
|
1279
|
+
id: number;
|
|
1280
|
+
max_beladingen_per_layer: number;
|
|
1281
|
+
max_customers_per_cart: number;
|
|
1282
|
+
max_one_customer_per_layer: boolean;
|
|
1283
|
+
max_party_share_per_layer_pct: number;
|
|
1284
|
+
optimization_strategy: string;
|
|
1285
|
+
own_cart_from_layers: number;
|
|
1286
|
+
pick_time_mode: string;
|
|
1287
|
+
plants_per_day: number;
|
|
1288
|
+
plants_per_hour: number;
|
|
1289
|
+
require_same_carrier: boolean;
|
|
1290
|
+
require_same_crate_type: boolean;
|
|
1291
|
+
require_same_delivery_date: boolean;
|
|
1292
|
+
require_same_delivery_location: boolean;
|
|
1293
|
+
updated_at: string;
|
|
1294
|
+
updated_by: string | null;
|
|
1295
|
+
};
|
|
1296
|
+
Insert: {
|
|
1297
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
1298
|
+
buffer_grouping_mode?: string;
|
|
1299
|
+
combine_floriday_orders?: boolean;
|
|
1300
|
+
combine_floriday_orders_window?: string;
|
|
1301
|
+
combine_orders_scope?: string;
|
|
1302
|
+
default_workers?: number;
|
|
1303
|
+
id?: number;
|
|
1304
|
+
max_beladingen_per_layer?: number;
|
|
1305
|
+
max_customers_per_cart?: number;
|
|
1306
|
+
max_one_customer_per_layer?: boolean;
|
|
1307
|
+
max_party_share_per_layer_pct?: number;
|
|
1308
|
+
optimization_strategy?: string;
|
|
1309
|
+
own_cart_from_layers?: number;
|
|
1310
|
+
pick_time_mode?: string;
|
|
1311
|
+
plants_per_day?: number;
|
|
1312
|
+
plants_per_hour?: number;
|
|
1313
|
+
require_same_carrier?: boolean;
|
|
1314
|
+
require_same_crate_type?: boolean;
|
|
1315
|
+
require_same_delivery_date?: boolean;
|
|
1316
|
+
require_same_delivery_location?: boolean;
|
|
1317
|
+
updated_at?: string;
|
|
1318
|
+
updated_by?: string | null;
|
|
1319
|
+
};
|
|
1320
|
+
Update: {
|
|
1321
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
1322
|
+
buffer_grouping_mode?: string;
|
|
1323
|
+
combine_floriday_orders?: boolean;
|
|
1324
|
+
combine_floriday_orders_window?: string;
|
|
1325
|
+
combine_orders_scope?: string;
|
|
1326
|
+
default_workers?: number;
|
|
1327
|
+
id?: number;
|
|
1328
|
+
max_beladingen_per_layer?: number;
|
|
1329
|
+
max_customers_per_cart?: number;
|
|
1330
|
+
max_one_customer_per_layer?: boolean;
|
|
1331
|
+
max_party_share_per_layer_pct?: number;
|
|
1332
|
+
optimization_strategy?: string;
|
|
1333
|
+
own_cart_from_layers?: number;
|
|
1334
|
+
pick_time_mode?: string;
|
|
1335
|
+
plants_per_day?: number;
|
|
1336
|
+
plants_per_hour?: number;
|
|
1337
|
+
require_same_carrier?: boolean;
|
|
1338
|
+
require_same_crate_type?: boolean;
|
|
1339
|
+
require_same_delivery_date?: boolean;
|
|
1340
|
+
require_same_delivery_location?: boolean;
|
|
1341
|
+
updated_at?: string;
|
|
1342
|
+
updated_by?: string | null;
|
|
1343
|
+
};
|
|
1344
|
+
Relationships: [];
|
|
1345
|
+
};
|
|
1130
1346
|
cart_replan_queue: {
|
|
1131
1347
|
Row: {
|
|
1132
1348
|
attempts: number;
|
|
@@ -1157,6 +1373,39 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
|
|
|
1157
1373
|
referencedColumns: ["id"];
|
|
1158
1374
|
}];
|
|
1159
1375
|
};
|
|
1376
|
+
cart_types: {
|
|
1377
|
+
Row: {
|
|
1378
|
+
created_at: string;
|
|
1379
|
+
id: string;
|
|
1380
|
+
is_default: boolean;
|
|
1381
|
+
layer_length_cm: number;
|
|
1382
|
+
layer_width_cm: number;
|
|
1383
|
+
layers_per_cart: number;
|
|
1384
|
+
name: string;
|
|
1385
|
+
updated_at: string;
|
|
1386
|
+
};
|
|
1387
|
+
Insert: {
|
|
1388
|
+
created_at?: string;
|
|
1389
|
+
id?: string;
|
|
1390
|
+
is_default?: boolean;
|
|
1391
|
+
layer_length_cm: number;
|
|
1392
|
+
layer_width_cm: number;
|
|
1393
|
+
layers_per_cart?: number;
|
|
1394
|
+
name: string;
|
|
1395
|
+
updated_at?: string;
|
|
1396
|
+
};
|
|
1397
|
+
Update: {
|
|
1398
|
+
created_at?: string;
|
|
1399
|
+
id?: string;
|
|
1400
|
+
is_default?: boolean;
|
|
1401
|
+
layer_length_cm?: number;
|
|
1402
|
+
layer_width_cm?: number;
|
|
1403
|
+
layers_per_cart?: number;
|
|
1404
|
+
name?: string;
|
|
1405
|
+
updated_at?: string;
|
|
1406
|
+
};
|
|
1407
|
+
Relationships: [];
|
|
1408
|
+
};
|
|
1160
1409
|
catalog_articles_cache: {
|
|
1161
1410
|
Row: {
|
|
1162
1411
|
created_at: string;
|
|
@@ -1244,6 +1493,36 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
|
|
|
1244
1493
|
};
|
|
1245
1494
|
Relationships: [];
|
|
1246
1495
|
};
|
|
1496
|
+
crate_types: {
|
|
1497
|
+
Row: {
|
|
1498
|
+
created_at: string;
|
|
1499
|
+
id: string;
|
|
1500
|
+
length_cm: number;
|
|
1501
|
+
name: string;
|
|
1502
|
+
plants_per_crate: number;
|
|
1503
|
+
updated_at: string;
|
|
1504
|
+
width_cm: number;
|
|
1505
|
+
};
|
|
1506
|
+
Insert: {
|
|
1507
|
+
created_at?: string;
|
|
1508
|
+
id?: string;
|
|
1509
|
+
length_cm: number;
|
|
1510
|
+
name: string;
|
|
1511
|
+
plants_per_crate?: number;
|
|
1512
|
+
updated_at?: string;
|
|
1513
|
+
width_cm: number;
|
|
1514
|
+
};
|
|
1515
|
+
Update: {
|
|
1516
|
+
created_at?: string;
|
|
1517
|
+
id?: string;
|
|
1518
|
+
length_cm?: number;
|
|
1519
|
+
name?: string;
|
|
1520
|
+
plants_per_crate?: number;
|
|
1521
|
+
updated_at?: string;
|
|
1522
|
+
width_cm?: number;
|
|
1523
|
+
};
|
|
1524
|
+
Relationships: [];
|
|
1525
|
+
};
|
|
1247
1526
|
customer_audit_log: {
|
|
1248
1527
|
Row: {
|
|
1249
1528
|
action: string;
|
|
@@ -5761,27 +6040,309 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
|
|
|
5761
6040
|
};
|
|
5762
6041
|
Insert: {
|
|
5763
6042
|
created_at?: string;
|
|
5764
|
-
created_by?: string | null;
|
|
6043
|
+
created_by?: string | null;
|
|
6044
|
+
id?: string;
|
|
6045
|
+
period_end: string;
|
|
6046
|
+
period_start: string;
|
|
6047
|
+
status?: string;
|
|
6048
|
+
total_excl_vat?: number | null;
|
|
6049
|
+
total_incl_vat?: number | null;
|
|
6050
|
+
vat_amount?: number | null;
|
|
6051
|
+
};
|
|
6052
|
+
Update: {
|
|
6053
|
+
created_at?: string;
|
|
6054
|
+
created_by?: string | null;
|
|
6055
|
+
id?: string;
|
|
6056
|
+
period_end?: string;
|
|
6057
|
+
period_start?: string;
|
|
6058
|
+
status?: string;
|
|
6059
|
+
total_excl_vat?: number | null;
|
|
6060
|
+
total_incl_vat?: number | null;
|
|
6061
|
+
vat_amount?: number | null;
|
|
6062
|
+
};
|
|
6063
|
+
Relationships: [];
|
|
6064
|
+
};
|
|
6065
|
+
itk_contact_persons: {
|
|
6066
|
+
Row: {
|
|
6067
|
+
created_at: string;
|
|
6068
|
+
customer_id: string;
|
|
6069
|
+
email: string | null;
|
|
6070
|
+
id: string;
|
|
6071
|
+
name: string;
|
|
6072
|
+
phone: string | null;
|
|
6073
|
+
role: string | null;
|
|
6074
|
+
updated_at: string;
|
|
6075
|
+
};
|
|
6076
|
+
Insert: {
|
|
6077
|
+
created_at?: string;
|
|
6078
|
+
customer_id: string;
|
|
6079
|
+
email?: string | null;
|
|
6080
|
+
id?: string;
|
|
6081
|
+
name: string;
|
|
6082
|
+
phone?: string | null;
|
|
6083
|
+
role?: string | null;
|
|
6084
|
+
updated_at?: string;
|
|
6085
|
+
};
|
|
6086
|
+
Update: {
|
|
6087
|
+
created_at?: string;
|
|
6088
|
+
customer_id?: string;
|
|
6089
|
+
email?: string | null;
|
|
6090
|
+
id?: string;
|
|
6091
|
+
name?: string;
|
|
6092
|
+
phone?: string | null;
|
|
6093
|
+
role?: string | null;
|
|
6094
|
+
updated_at?: string;
|
|
6095
|
+
};
|
|
6096
|
+
Relationships: [{
|
|
6097
|
+
foreignKeyName: "itk_contact_persons_customer_id_fkey";
|
|
6098
|
+
columns: ["customer_id"];
|
|
6099
|
+
isOneToOne: false;
|
|
6100
|
+
referencedRelation: "itk_customers";
|
|
6101
|
+
referencedColumns: ["id"];
|
|
6102
|
+
}];
|
|
6103
|
+
};
|
|
6104
|
+
itk_customer_dynamic_values: {
|
|
6105
|
+
Row: {
|
|
6106
|
+
created_at: string;
|
|
6107
|
+
customer_id: string;
|
|
6108
|
+
field_id: string;
|
|
6109
|
+
id: string;
|
|
6110
|
+
updated_at: string;
|
|
6111
|
+
value: string | null;
|
|
6112
|
+
};
|
|
6113
|
+
Insert: {
|
|
6114
|
+
created_at?: string;
|
|
6115
|
+
customer_id: string;
|
|
6116
|
+
field_id: string;
|
|
6117
|
+
id?: string;
|
|
6118
|
+
updated_at?: string;
|
|
6119
|
+
value?: string | null;
|
|
6120
|
+
};
|
|
6121
|
+
Update: {
|
|
6122
|
+
created_at?: string;
|
|
6123
|
+
customer_id?: string;
|
|
6124
|
+
field_id?: string;
|
|
6125
|
+
id?: string;
|
|
6126
|
+
updated_at?: string;
|
|
6127
|
+
value?: string | null;
|
|
6128
|
+
};
|
|
6129
|
+
Relationships: [{
|
|
6130
|
+
foreignKeyName: "itk_customer_dynamic_values_customer_id_fkey";
|
|
6131
|
+
columns: ["customer_id"];
|
|
6132
|
+
isOneToOne: false;
|
|
6133
|
+
referencedRelation: "itk_customers";
|
|
6134
|
+
referencedColumns: ["id"];
|
|
6135
|
+
}, {
|
|
6136
|
+
foreignKeyName: "itk_customer_dynamic_values_field_id_fkey";
|
|
6137
|
+
columns: ["field_id"];
|
|
6138
|
+
isOneToOne: false;
|
|
6139
|
+
referencedRelation: "itk_dynamic_fields";
|
|
6140
|
+
referencedColumns: ["id"];
|
|
6141
|
+
}];
|
|
6142
|
+
};
|
|
6143
|
+
itk_customer_notes: {
|
|
6144
|
+
Row: {
|
|
6145
|
+
body: string;
|
|
6146
|
+
created_at: string;
|
|
6147
|
+
created_by: string | null;
|
|
6148
|
+
customer_id: string;
|
|
6149
|
+
id: string;
|
|
6150
|
+
note_type: string;
|
|
6151
|
+
updated_at: string;
|
|
6152
|
+
};
|
|
6153
|
+
Insert: {
|
|
6154
|
+
body: string;
|
|
6155
|
+
created_at?: string;
|
|
6156
|
+
created_by?: string | null;
|
|
6157
|
+
customer_id: string;
|
|
6158
|
+
id?: string;
|
|
6159
|
+
note_type?: string;
|
|
6160
|
+
updated_at?: string;
|
|
6161
|
+
};
|
|
6162
|
+
Update: {
|
|
6163
|
+
body?: string;
|
|
6164
|
+
created_at?: string;
|
|
6165
|
+
created_by?: string | null;
|
|
6166
|
+
customer_id?: string;
|
|
6167
|
+
id?: string;
|
|
6168
|
+
note_type?: string;
|
|
6169
|
+
updated_at?: string;
|
|
6170
|
+
};
|
|
6171
|
+
Relationships: [{
|
|
6172
|
+
foreignKeyName: "itk_customer_notes_customer_id_fkey";
|
|
6173
|
+
columns: ["customer_id"];
|
|
6174
|
+
isOneToOne: false;
|
|
6175
|
+
referencedRelation: "itk_customers";
|
|
6176
|
+
referencedColumns: ["id"];
|
|
6177
|
+
}];
|
|
6178
|
+
};
|
|
6179
|
+
itk_customers: {
|
|
6180
|
+
Row: {
|
|
6181
|
+
billing_city: string | null;
|
|
6182
|
+
billing_postcode: string | null;
|
|
6183
|
+
billing_street: string | null;
|
|
6184
|
+
created_at: string;
|
|
6185
|
+
general_email: string | null;
|
|
6186
|
+
general_phone: string | null;
|
|
6187
|
+
id: string;
|
|
6188
|
+
legacy_customer_id: string | null;
|
|
6189
|
+
name: string;
|
|
6190
|
+
segment: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
6191
|
+
updated_at: string;
|
|
6192
|
+
};
|
|
6193
|
+
Insert: {
|
|
6194
|
+
billing_city?: string | null;
|
|
6195
|
+
billing_postcode?: string | null;
|
|
6196
|
+
billing_street?: string | null;
|
|
6197
|
+
created_at?: string;
|
|
6198
|
+
general_email?: string | null;
|
|
6199
|
+
general_phone?: string | null;
|
|
6200
|
+
id?: string;
|
|
6201
|
+
legacy_customer_id?: string | null;
|
|
6202
|
+
name: string;
|
|
6203
|
+
segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
6204
|
+
updated_at?: string;
|
|
6205
|
+
};
|
|
6206
|
+
Update: {
|
|
6207
|
+
billing_city?: string | null;
|
|
6208
|
+
billing_postcode?: string | null;
|
|
6209
|
+
billing_street?: string | null;
|
|
6210
|
+
created_at?: string;
|
|
6211
|
+
general_email?: string | null;
|
|
6212
|
+
general_phone?: string | null;
|
|
6213
|
+
id?: string;
|
|
6214
|
+
legacy_customer_id?: string | null;
|
|
6215
|
+
name?: string;
|
|
6216
|
+
segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
6217
|
+
updated_at?: string;
|
|
6218
|
+
};
|
|
6219
|
+
Relationships: [{
|
|
6220
|
+
foreignKeyName: "itk_customers_legacy_customer_id_fkey";
|
|
6221
|
+
columns: ["legacy_customer_id"];
|
|
6222
|
+
isOneToOne: false;
|
|
6223
|
+
referencedRelation: "customers";
|
|
6224
|
+
referencedColumns: ["id"];
|
|
6225
|
+
}];
|
|
6226
|
+
};
|
|
6227
|
+
itk_dynamic_fields: {
|
|
6228
|
+
Row: {
|
|
6229
|
+
created_at: string;
|
|
6230
|
+
field_name: string;
|
|
6231
|
+
field_type: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
6232
|
+
id: string;
|
|
6233
|
+
options: import("../integrations/supabase/types").Json;
|
|
6234
|
+
sort_order: number;
|
|
6235
|
+
updated_at: string;
|
|
6236
|
+
};
|
|
6237
|
+
Insert: {
|
|
6238
|
+
created_at?: string;
|
|
6239
|
+
field_name: string;
|
|
6240
|
+
field_type?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
6241
|
+
id?: string;
|
|
6242
|
+
options?: import("../integrations/supabase/types").Json;
|
|
6243
|
+
sort_order?: number;
|
|
6244
|
+
updated_at?: string;
|
|
6245
|
+
};
|
|
6246
|
+
Update: {
|
|
6247
|
+
created_at?: string;
|
|
6248
|
+
field_name?: string;
|
|
6249
|
+
field_type?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
6250
|
+
id?: string;
|
|
6251
|
+
options?: import("../integrations/supabase/types").Json;
|
|
6252
|
+
sort_order?: number;
|
|
6253
|
+
updated_at?: string;
|
|
6254
|
+
};
|
|
6255
|
+
Relationships: [];
|
|
6256
|
+
};
|
|
6257
|
+
itk_work_locations: {
|
|
6258
|
+
Row: {
|
|
6259
|
+
city: string | null;
|
|
6260
|
+
created_at: string;
|
|
6261
|
+
customer_id: string;
|
|
6262
|
+
id: string;
|
|
6263
|
+
instructions: string | null;
|
|
6264
|
+
label: string;
|
|
6265
|
+
latitude: number | null;
|
|
6266
|
+
longitude: number | null;
|
|
6267
|
+
postcode: string | null;
|
|
6268
|
+
street: string | null;
|
|
6269
|
+
updated_at: string;
|
|
6270
|
+
};
|
|
6271
|
+
Insert: {
|
|
6272
|
+
city?: string | null;
|
|
6273
|
+
created_at?: string;
|
|
6274
|
+
customer_id: string;
|
|
6275
|
+
id?: string;
|
|
6276
|
+
instructions?: string | null;
|
|
6277
|
+
label: string;
|
|
6278
|
+
latitude?: number | null;
|
|
6279
|
+
longitude?: number | null;
|
|
6280
|
+
postcode?: string | null;
|
|
6281
|
+
street?: string | null;
|
|
6282
|
+
updated_at?: string;
|
|
6283
|
+
};
|
|
6284
|
+
Update: {
|
|
6285
|
+
city?: string | null;
|
|
6286
|
+
created_at?: string;
|
|
6287
|
+
customer_id?: string;
|
|
6288
|
+
id?: string;
|
|
6289
|
+
instructions?: string | null;
|
|
6290
|
+
label?: string;
|
|
6291
|
+
latitude?: number | null;
|
|
6292
|
+
longitude?: number | null;
|
|
6293
|
+
postcode?: string | null;
|
|
6294
|
+
street?: string | null;
|
|
6295
|
+
updated_at?: string;
|
|
6296
|
+
};
|
|
6297
|
+
Relationships: [{
|
|
6298
|
+
foreignKeyName: "itk_work_locations_customer_id_fkey";
|
|
6299
|
+
columns: ["customer_id"];
|
|
6300
|
+
isOneToOne: false;
|
|
6301
|
+
referencedRelation: "itk_customers";
|
|
6302
|
+
referencedColumns: ["id"];
|
|
6303
|
+
}];
|
|
6304
|
+
};
|
|
6305
|
+
leave_requests: {
|
|
6306
|
+
Row: {
|
|
6307
|
+
created_at: string;
|
|
6308
|
+
end_date: string;
|
|
6309
|
+
id: string;
|
|
6310
|
+
reason: string | null;
|
|
6311
|
+
start_date: string;
|
|
6312
|
+
status: string;
|
|
6313
|
+
tenant_id: string;
|
|
6314
|
+
updated_at: string;
|
|
6315
|
+
user_id: string;
|
|
6316
|
+
};
|
|
6317
|
+
Insert: {
|
|
6318
|
+
created_at?: string;
|
|
6319
|
+
end_date: string;
|
|
5765
6320
|
id?: string;
|
|
5766
|
-
|
|
5767
|
-
|
|
6321
|
+
reason?: string | null;
|
|
6322
|
+
start_date: string;
|
|
5768
6323
|
status?: string;
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
|
|
6324
|
+
tenant_id?: string;
|
|
6325
|
+
updated_at?: string;
|
|
6326
|
+
user_id: string;
|
|
5772
6327
|
};
|
|
5773
6328
|
Update: {
|
|
5774
6329
|
created_at?: string;
|
|
5775
|
-
|
|
6330
|
+
end_date?: string;
|
|
5776
6331
|
id?: string;
|
|
5777
|
-
|
|
5778
|
-
|
|
6332
|
+
reason?: string | null;
|
|
6333
|
+
start_date?: string;
|
|
5779
6334
|
status?: string;
|
|
5780
|
-
|
|
5781
|
-
|
|
5782
|
-
|
|
6335
|
+
tenant_id?: string;
|
|
6336
|
+
updated_at?: string;
|
|
6337
|
+
user_id?: string;
|
|
5783
6338
|
};
|
|
5784
|
-
Relationships: [
|
|
6339
|
+
Relationships: [{
|
|
6340
|
+
foreignKeyName: "leave_requests_user_id_fkey";
|
|
6341
|
+
columns: ["user_id"];
|
|
6342
|
+
isOneToOne: false;
|
|
6343
|
+
referencedRelation: "monteurs";
|
|
6344
|
+
referencedColumns: ["id"];
|
|
6345
|
+
}];
|
|
5785
6346
|
};
|
|
5786
6347
|
local_customer_agreements: {
|
|
5787
6348
|
Row: {
|
|
@@ -6434,6 +6995,33 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
|
|
|
6434
6995
|
};
|
|
6435
6996
|
Relationships: [];
|
|
6436
6997
|
};
|
|
6998
|
+
module_permissions: {
|
|
6999
|
+
Row: {
|
|
7000
|
+
created_at: string;
|
|
7001
|
+
id: string;
|
|
7002
|
+
module_id: string;
|
|
7003
|
+
permission: string;
|
|
7004
|
+
role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
7005
|
+
updated_at: string;
|
|
7006
|
+
};
|
|
7007
|
+
Insert: {
|
|
7008
|
+
created_at?: string;
|
|
7009
|
+
id?: string;
|
|
7010
|
+
module_id: string;
|
|
7011
|
+
permission: string;
|
|
7012
|
+
role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
7013
|
+
updated_at?: string;
|
|
7014
|
+
};
|
|
7015
|
+
Update: {
|
|
7016
|
+
created_at?: string;
|
|
7017
|
+
id?: string;
|
|
7018
|
+
module_id?: string;
|
|
7019
|
+
permission?: string;
|
|
7020
|
+
role?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
7021
|
+
updated_at?: string;
|
|
7022
|
+
};
|
|
7023
|
+
Relationships: [];
|
|
7024
|
+
};
|
|
6437
7025
|
monteurs: {
|
|
6438
7026
|
Row: {
|
|
6439
7027
|
avatar_url: string | null;
|
|
@@ -7163,6 +7751,42 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
|
|
|
7163
7751
|
};
|
|
7164
7752
|
Relationships: [];
|
|
7165
7753
|
};
|
|
7754
|
+
order_buffers: {
|
|
7755
|
+
Row: {
|
|
7756
|
+
buffer_key: string;
|
|
7757
|
+
created_at: string;
|
|
7758
|
+
customer_id: string | null;
|
|
7759
|
+
grouping_mode: string;
|
|
7760
|
+
id: string;
|
|
7761
|
+
pickup_date: string | null;
|
|
7762
|
+
pickup_location: string | null;
|
|
7763
|
+
plan_locked_at: string | null;
|
|
7764
|
+
updated_at: string;
|
|
7765
|
+
};
|
|
7766
|
+
Insert: {
|
|
7767
|
+
buffer_key: string;
|
|
7768
|
+
created_at?: string;
|
|
7769
|
+
customer_id?: string | null;
|
|
7770
|
+
grouping_mode: string;
|
|
7771
|
+
id?: string;
|
|
7772
|
+
pickup_date?: string | null;
|
|
7773
|
+
pickup_location?: string | null;
|
|
7774
|
+
plan_locked_at?: string | null;
|
|
7775
|
+
updated_at?: string;
|
|
7776
|
+
};
|
|
7777
|
+
Update: {
|
|
7778
|
+
buffer_key?: string;
|
|
7779
|
+
created_at?: string;
|
|
7780
|
+
customer_id?: string | null;
|
|
7781
|
+
grouping_mode?: string;
|
|
7782
|
+
id?: string;
|
|
7783
|
+
pickup_date?: string | null;
|
|
7784
|
+
pickup_location?: string | null;
|
|
7785
|
+
plan_locked_at?: string | null;
|
|
7786
|
+
updated_at?: string;
|
|
7787
|
+
};
|
|
7788
|
+
Relationships: [];
|
|
7789
|
+
};
|
|
7166
7790
|
order_cart_items: {
|
|
7167
7791
|
Row: {
|
|
7168
7792
|
cart_id: string;
|
|
@@ -7229,6 +7853,7 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
|
|
|
7229
7853
|
order_carts: {
|
|
7230
7854
|
Row: {
|
|
7231
7855
|
algorithm_version: number;
|
|
7856
|
+
buffer_id: string | null;
|
|
7232
7857
|
cart_number: number;
|
|
7233
7858
|
created_at: string;
|
|
7234
7859
|
id: string;
|
|
@@ -7236,13 +7861,14 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
|
|
|
7236
7861
|
is_complete: boolean;
|
|
7237
7862
|
notes: string | null;
|
|
7238
7863
|
occupancy_pct: number;
|
|
7239
|
-
order_id: string;
|
|
7864
|
+
order_id: string | null;
|
|
7240
7865
|
source: string;
|
|
7241
7866
|
total_layers_used: number;
|
|
7242
7867
|
updated_at: string;
|
|
7243
7868
|
};
|
|
7244
7869
|
Insert: {
|
|
7245
7870
|
algorithm_version?: number;
|
|
7871
|
+
buffer_id?: string | null;
|
|
7246
7872
|
cart_number: number;
|
|
7247
7873
|
created_at?: string;
|
|
7248
7874
|
id?: string;
|
|
@@ -7250,13 +7876,14 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
|
|
|
7250
7876
|
is_complete?: boolean;
|
|
7251
7877
|
notes?: string | null;
|
|
7252
7878
|
occupancy_pct?: number;
|
|
7253
|
-
order_id
|
|
7879
|
+
order_id?: string | null;
|
|
7254
7880
|
source?: string;
|
|
7255
7881
|
total_layers_used?: number;
|
|
7256
7882
|
updated_at?: string;
|
|
7257
7883
|
};
|
|
7258
7884
|
Update: {
|
|
7259
7885
|
algorithm_version?: number;
|
|
7886
|
+
buffer_id?: string | null;
|
|
7260
7887
|
cart_number?: number;
|
|
7261
7888
|
created_at?: string;
|
|
7262
7889
|
id?: string;
|
|
@@ -7264,12 +7891,18 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
|
|
|
7264
7891
|
is_complete?: boolean;
|
|
7265
7892
|
notes?: string | null;
|
|
7266
7893
|
occupancy_pct?: number;
|
|
7267
|
-
order_id?: string;
|
|
7894
|
+
order_id?: string | null;
|
|
7268
7895
|
source?: string;
|
|
7269
7896
|
total_layers_used?: number;
|
|
7270
7897
|
updated_at?: string;
|
|
7271
7898
|
};
|
|
7272
7899
|
Relationships: [{
|
|
7900
|
+
foreignKeyName: "order_carts_buffer_id_fkey";
|
|
7901
|
+
columns: ["buffer_id"];
|
|
7902
|
+
isOneToOne: false;
|
|
7903
|
+
referencedRelation: "order_buffers";
|
|
7904
|
+
referencedColumns: ["id"];
|
|
7905
|
+
}, {
|
|
7273
7906
|
foreignKeyName: "order_carts_order_id_fkey";
|
|
7274
7907
|
columns: ["order_id"];
|
|
7275
7908
|
isOneToOne: false;
|
|
@@ -7406,15 +8039,117 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
|
|
|
7406
8039
|
};
|
|
7407
8040
|
Relationships: [];
|
|
7408
8041
|
};
|
|
8042
|
+
order_shipment_items: {
|
|
8043
|
+
Row: {
|
|
8044
|
+
created_at: string;
|
|
8045
|
+
id: string;
|
|
8046
|
+
order_item_id: string;
|
|
8047
|
+
product_id: string | null;
|
|
8048
|
+
product_name: string;
|
|
8049
|
+
quantity: number;
|
|
8050
|
+
shipment_id: string;
|
|
8051
|
+
updated_at: string;
|
|
8052
|
+
};
|
|
8053
|
+
Insert: {
|
|
8054
|
+
created_at?: string;
|
|
8055
|
+
id?: string;
|
|
8056
|
+
order_item_id: string;
|
|
8057
|
+
product_id?: string | null;
|
|
8058
|
+
product_name: string;
|
|
8059
|
+
quantity: number;
|
|
8060
|
+
shipment_id: string;
|
|
8061
|
+
updated_at?: string;
|
|
8062
|
+
};
|
|
8063
|
+
Update: {
|
|
8064
|
+
created_at?: string;
|
|
8065
|
+
id?: string;
|
|
8066
|
+
order_item_id?: string;
|
|
8067
|
+
product_id?: string | null;
|
|
8068
|
+
product_name?: string;
|
|
8069
|
+
quantity?: number;
|
|
8070
|
+
shipment_id?: string;
|
|
8071
|
+
updated_at?: string;
|
|
8072
|
+
};
|
|
8073
|
+
Relationships: [{
|
|
8074
|
+
foreignKeyName: "order_shipment_items_order_item_id_fkey";
|
|
8075
|
+
columns: ["order_item_id"];
|
|
8076
|
+
isOneToOne: false;
|
|
8077
|
+
referencedRelation: "order_items";
|
|
8078
|
+
referencedColumns: ["id"];
|
|
8079
|
+
}, {
|
|
8080
|
+
foreignKeyName: "order_shipment_items_shipment_id_fkey";
|
|
8081
|
+
columns: ["shipment_id"];
|
|
8082
|
+
isOneToOne: false;
|
|
8083
|
+
referencedRelation: "order_shipments";
|
|
8084
|
+
referencedColumns: ["id"];
|
|
8085
|
+
}];
|
|
8086
|
+
};
|
|
8087
|
+
order_shipments: {
|
|
8088
|
+
Row: {
|
|
8089
|
+
carrier_id: string | null;
|
|
8090
|
+
created_at: string;
|
|
8091
|
+
delivery_date: string | null;
|
|
8092
|
+
delivery_location_id: string | null;
|
|
8093
|
+
id: string;
|
|
8094
|
+
notes: string | null;
|
|
8095
|
+
order_id: string;
|
|
8096
|
+
shipment_number: number;
|
|
8097
|
+
shipped_at: string | null;
|
|
8098
|
+
status: string;
|
|
8099
|
+
updated_at: string;
|
|
8100
|
+
};
|
|
8101
|
+
Insert: {
|
|
8102
|
+
carrier_id?: string | null;
|
|
8103
|
+
created_at?: string;
|
|
8104
|
+
delivery_date?: string | null;
|
|
8105
|
+
delivery_location_id?: string | null;
|
|
8106
|
+
id?: string;
|
|
8107
|
+
notes?: string | null;
|
|
8108
|
+
order_id: string;
|
|
8109
|
+
shipment_number: number;
|
|
8110
|
+
shipped_at?: string | null;
|
|
8111
|
+
status?: string;
|
|
8112
|
+
updated_at?: string;
|
|
8113
|
+
};
|
|
8114
|
+
Update: {
|
|
8115
|
+
carrier_id?: string | null;
|
|
8116
|
+
created_at?: string;
|
|
8117
|
+
delivery_date?: string | null;
|
|
8118
|
+
delivery_location_id?: string | null;
|
|
8119
|
+
id?: string;
|
|
8120
|
+
notes?: string | null;
|
|
8121
|
+
order_id?: string;
|
|
8122
|
+
shipment_number?: number;
|
|
8123
|
+
shipped_at?: string | null;
|
|
8124
|
+
status?: string;
|
|
8125
|
+
updated_at?: string;
|
|
8126
|
+
};
|
|
8127
|
+
Relationships: [{
|
|
8128
|
+
foreignKeyName: "order_shipments_carrier_id_fkey";
|
|
8129
|
+
columns: ["carrier_id"];
|
|
8130
|
+
isOneToOne: false;
|
|
8131
|
+
referencedRelation: "carriers";
|
|
8132
|
+
referencedColumns: ["id"];
|
|
8133
|
+
}, {
|
|
8134
|
+
foreignKeyName: "order_shipments_order_id_fkey";
|
|
8135
|
+
columns: ["order_id"];
|
|
8136
|
+
isOneToOne: false;
|
|
8137
|
+
referencedRelation: "orders";
|
|
8138
|
+
referencedColumns: ["id"];
|
|
8139
|
+
}];
|
|
8140
|
+
};
|
|
7409
8141
|
orders: {
|
|
7410
8142
|
Row: {
|
|
8143
|
+
buffer_id: string | null;
|
|
7411
8144
|
created_at: string;
|
|
7412
8145
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
7413
8146
|
customer_id: string | null;
|
|
7414
8147
|
customer_name: string;
|
|
7415
8148
|
deleted_at: string | null;
|
|
7416
|
-
delivery_date: string;
|
|
8149
|
+
delivery_date: string | null;
|
|
8150
|
+
floriday_sales_order_id: string | null;
|
|
7417
8151
|
id: string;
|
|
8152
|
+
is_reservation: boolean;
|
|
7418
8153
|
notes: string | null;
|
|
7419
8154
|
order_date: string;
|
|
7420
8155
|
order_number: string;
|
|
@@ -7426,13 +8161,16 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
|
|
|
7426
8161
|
updated_at: string;
|
|
7427
8162
|
};
|
|
7428
8163
|
Insert: {
|
|
8164
|
+
buffer_id?: string | null;
|
|
7429
8165
|
created_at?: string;
|
|
7430
8166
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
7431
8167
|
customer_id?: string | null;
|
|
7432
8168
|
customer_name?: string;
|
|
7433
8169
|
deleted_at?: string | null;
|
|
7434
|
-
delivery_date
|
|
8170
|
+
delivery_date?: string | null;
|
|
8171
|
+
floriday_sales_order_id?: string | null;
|
|
7435
8172
|
id?: string;
|
|
8173
|
+
is_reservation?: boolean;
|
|
7436
8174
|
notes?: string | null;
|
|
7437
8175
|
order_date?: string;
|
|
7438
8176
|
order_number: string;
|
|
@@ -7444,13 +8182,16 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
|
|
|
7444
8182
|
updated_at?: string;
|
|
7445
8183
|
};
|
|
7446
8184
|
Update: {
|
|
8185
|
+
buffer_id?: string | null;
|
|
7447
8186
|
created_at?: string;
|
|
7448
8187
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
7449
8188
|
customer_id?: string | null;
|
|
7450
8189
|
customer_name?: string;
|
|
7451
8190
|
deleted_at?: string | null;
|
|
7452
|
-
delivery_date?: string;
|
|
8191
|
+
delivery_date?: string | null;
|
|
8192
|
+
floriday_sales_order_id?: string | null;
|
|
7453
8193
|
id?: string;
|
|
8194
|
+
is_reservation?: boolean;
|
|
7454
8195
|
notes?: string | null;
|
|
7455
8196
|
order_date?: string;
|
|
7456
8197
|
order_number?: string;
|
|
@@ -7462,6 +8203,12 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
|
|
|
7462
8203
|
updated_at?: string;
|
|
7463
8204
|
};
|
|
7464
8205
|
Relationships: [{
|
|
8206
|
+
foreignKeyName: "orders_buffer_id_fkey";
|
|
8207
|
+
columns: ["buffer_id"];
|
|
8208
|
+
isOneToOne: false;
|
|
8209
|
+
referencedRelation: "order_buffers";
|
|
8210
|
+
referencedColumns: ["id"];
|
|
8211
|
+
}, {
|
|
7465
8212
|
foreignKeyName: "orders_customer_id_fkey";
|
|
7466
8213
|
columns: ["customer_id"];
|
|
7467
8214
|
isOneToOne: false;
|
|
@@ -7592,6 +8339,51 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
|
|
|
7592
8339
|
};
|
|
7593
8340
|
Relationships: [];
|
|
7594
8341
|
};
|
|
8342
|
+
planning_items: {
|
|
8343
|
+
Row: {
|
|
8344
|
+
assigned_monteur_id: string;
|
|
8345
|
+
created_at: string;
|
|
8346
|
+
created_by: string | null;
|
|
8347
|
+
end_at: string;
|
|
8348
|
+
id: string;
|
|
8349
|
+
notes: string | null;
|
|
8350
|
+
start_at: string;
|
|
8351
|
+
status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
|
|
8352
|
+
updated_at: string;
|
|
8353
|
+
werkbon_id: string;
|
|
8354
|
+
};
|
|
8355
|
+
Insert: {
|
|
8356
|
+
assigned_monteur_id: string;
|
|
8357
|
+
created_at?: string;
|
|
8358
|
+
created_by?: string | null;
|
|
8359
|
+
end_at: string;
|
|
8360
|
+
id?: string;
|
|
8361
|
+
notes?: string | null;
|
|
8362
|
+
start_at: string;
|
|
8363
|
+
status?: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
|
|
8364
|
+
updated_at?: string;
|
|
8365
|
+
werkbon_id: string;
|
|
8366
|
+
};
|
|
8367
|
+
Update: {
|
|
8368
|
+
assigned_monteur_id?: string;
|
|
8369
|
+
created_at?: string;
|
|
8370
|
+
created_by?: string | null;
|
|
8371
|
+
end_at?: string;
|
|
8372
|
+
id?: string;
|
|
8373
|
+
notes?: string | null;
|
|
8374
|
+
start_at?: string;
|
|
8375
|
+
status?: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
|
|
8376
|
+
updated_at?: string;
|
|
8377
|
+
werkbon_id?: string;
|
|
8378
|
+
};
|
|
8379
|
+
Relationships: [{
|
|
8380
|
+
foreignKeyName: "planning_items_werkbon_id_fkey";
|
|
8381
|
+
columns: ["werkbon_id"];
|
|
8382
|
+
isOneToOne: false;
|
|
8383
|
+
referencedRelation: "werkbonnen";
|
|
8384
|
+
referencedColumns: ["id"];
|
|
8385
|
+
}];
|
|
8386
|
+
};
|
|
7595
8387
|
product_categories: {
|
|
7596
8388
|
Row: {
|
|
7597
8389
|
color: string;
|
|
@@ -7725,6 +8517,8 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
|
|
|
7725
8517
|
Row: {
|
|
7726
8518
|
created_at: string;
|
|
7727
8519
|
description: string | null;
|
|
8520
|
+
head_product_id: string | null;
|
|
8521
|
+
head_trade_item_floriday_id: string | null;
|
|
7728
8522
|
id: string;
|
|
7729
8523
|
is_active: boolean;
|
|
7730
8524
|
name: string;
|
|
@@ -7734,6 +8528,8 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
|
|
|
7734
8528
|
Insert: {
|
|
7735
8529
|
created_at?: string;
|
|
7736
8530
|
description?: string | null;
|
|
8531
|
+
head_product_id?: string | null;
|
|
8532
|
+
head_trade_item_floriday_id?: string | null;
|
|
7737
8533
|
id?: string;
|
|
7738
8534
|
is_active?: boolean;
|
|
7739
8535
|
name: string;
|
|
@@ -7743,13 +8539,21 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
|
|
|
7743
8539
|
Update: {
|
|
7744
8540
|
created_at?: string;
|
|
7745
8541
|
description?: string | null;
|
|
8542
|
+
head_product_id?: string | null;
|
|
8543
|
+
head_trade_item_floriday_id?: string | null;
|
|
7746
8544
|
id?: string;
|
|
7747
8545
|
is_active?: boolean;
|
|
7748
8546
|
name?: string;
|
|
7749
8547
|
tenant_id?: string;
|
|
7750
8548
|
updated_at?: string;
|
|
7751
8549
|
};
|
|
7752
|
-
Relationships: [
|
|
8550
|
+
Relationships: [{
|
|
8551
|
+
foreignKeyName: "product_groups_head_product_id_fkey";
|
|
8552
|
+
columns: ["head_product_id"];
|
|
8553
|
+
isOneToOne: false;
|
|
8554
|
+
referencedRelation: "products";
|
|
8555
|
+
referencedColumns: ["id"];
|
|
8556
|
+
}];
|
|
7753
8557
|
};
|
|
7754
8558
|
products: {
|
|
7755
8559
|
Row: {
|
|
@@ -10300,6 +11104,7 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
|
|
|
10300
11104
|
internal_notes: string | null;
|
|
10301
11105
|
parent_werkbon_id: string | null;
|
|
10302
11106
|
parsed_payload: import("../integrations/supabase/types").Json | null;
|
|
11107
|
+
planning_status: string;
|
|
10303
11108
|
project_number: string | null;
|
|
10304
11109
|
room_number: string | null;
|
|
10305
11110
|
scheduled_end_time: string | null;
|
|
@@ -10307,6 +11112,7 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
|
|
|
10307
11112
|
sequence_number: number;
|
|
10308
11113
|
source_pdf_path: string | null;
|
|
10309
11114
|
status: string;
|
|
11115
|
+
technician_id: string | null;
|
|
10310
11116
|
technician_notes: string | null;
|
|
10311
11117
|
technician_notes_raw: string | null;
|
|
10312
11118
|
technician_task_description: string | null;
|
|
@@ -10327,6 +11133,7 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
|
|
|
10327
11133
|
internal_notes?: string | null;
|
|
10328
11134
|
parent_werkbon_id?: string | null;
|
|
10329
11135
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
11136
|
+
planning_status?: string;
|
|
10330
11137
|
project_number?: string | null;
|
|
10331
11138
|
room_number?: string | null;
|
|
10332
11139
|
scheduled_end_time?: string | null;
|
|
@@ -10334,6 +11141,7 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
|
|
|
10334
11141
|
sequence_number: number;
|
|
10335
11142
|
source_pdf_path?: string | null;
|
|
10336
11143
|
status?: string;
|
|
11144
|
+
technician_id?: string | null;
|
|
10337
11145
|
technician_notes?: string | null;
|
|
10338
11146
|
technician_notes_raw?: string | null;
|
|
10339
11147
|
technician_task_description?: string | null;
|
|
@@ -10354,6 +11162,7 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
|
|
|
10354
11162
|
internal_notes?: string | null;
|
|
10355
11163
|
parent_werkbon_id?: string | null;
|
|
10356
11164
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
11165
|
+
planning_status?: string;
|
|
10357
11166
|
project_number?: string | null;
|
|
10358
11167
|
room_number?: string | null;
|
|
10359
11168
|
scheduled_end_time?: string | null;
|
|
@@ -10361,6 +11170,7 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
|
|
|
10361
11170
|
sequence_number?: number;
|
|
10362
11171
|
source_pdf_path?: string | null;
|
|
10363
11172
|
status?: string;
|
|
11173
|
+
technician_id?: string | null;
|
|
10364
11174
|
technician_notes?: string | null;
|
|
10365
11175
|
technician_notes_raw?: string | null;
|
|
10366
11176
|
technician_task_description?: string | null;
|
|
@@ -10369,17 +11179,17 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
|
|
|
10369
11179
|
work_address?: string | null;
|
|
10370
11180
|
};
|
|
10371
11181
|
Relationships: [{
|
|
10372
|
-
foreignKeyName: "werkbonnen_customer_id_fkey";
|
|
10373
|
-
columns: ["customer_id"];
|
|
10374
|
-
isOneToOne: false;
|
|
10375
|
-
referencedRelation: "customers";
|
|
10376
|
-
referencedColumns: ["id"];
|
|
10377
|
-
}, {
|
|
10378
11182
|
foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
|
|
10379
11183
|
columns: ["parent_werkbon_id"];
|
|
10380
11184
|
isOneToOne: false;
|
|
10381
11185
|
referencedRelation: "werkbonnen";
|
|
10382
11186
|
referencedColumns: ["id"];
|
|
11187
|
+
}, {
|
|
11188
|
+
foreignKeyName: "werkbonnen_technician_id_fkey";
|
|
11189
|
+
columns: ["technician_id"];
|
|
11190
|
+
isOneToOne: false;
|
|
11191
|
+
referencedRelation: "monteurs";
|
|
11192
|
+
referencedColumns: ["id"];
|
|
10383
11193
|
}];
|
|
10384
11194
|
};
|
|
10385
11195
|
work_order_monteurs: {
|
|
@@ -11098,6 +11908,21 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
|
|
|
11098
11908
|
};
|
|
11099
11909
|
Returns: string;
|
|
11100
11910
|
};
|
|
11911
|
+
ai_usage_by_module: {
|
|
11912
|
+
Args: {
|
|
11913
|
+
_from: string;
|
|
11914
|
+
_to: string;
|
|
11915
|
+
};
|
|
11916
|
+
Returns: {
|
|
11917
|
+
calls: number;
|
|
11918
|
+
consumer_module_id: string;
|
|
11919
|
+
cost_usd: number;
|
|
11920
|
+
errors: number;
|
|
11921
|
+
input_tokens: number;
|
|
11922
|
+
output_tokens: number;
|
|
11923
|
+
total_tokens: number;
|
|
11924
|
+
}[];
|
|
11925
|
+
};
|
|
11101
11926
|
apply_stock_consumption: {
|
|
11102
11927
|
Args: {
|
|
11103
11928
|
p_order_id: string;
|
|
@@ -11246,6 +12071,12 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
|
|
|
11246
12071
|
Args: never;
|
|
11247
12072
|
Returns: string;
|
|
11248
12073
|
};
|
|
12074
|
+
custom_access_token_hook: {
|
|
12075
|
+
Args: {
|
|
12076
|
+
event: import("../integrations/supabase/types").Json;
|
|
12077
|
+
};
|
|
12078
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
12079
|
+
};
|
|
11249
12080
|
dashboard_alert_counts: {
|
|
11250
12081
|
Args: never;
|
|
11251
12082
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -11581,6 +12412,14 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
|
|
|
11581
12412
|
};
|
|
11582
12413
|
Returns: string;
|
|
11583
12414
|
};
|
|
12415
|
+
has_module_permission: {
|
|
12416
|
+
Args: {
|
|
12417
|
+
_min: string;
|
|
12418
|
+
_module_id: string;
|
|
12419
|
+
_user_id: string;
|
|
12420
|
+
};
|
|
12421
|
+
Returns: boolean;
|
|
12422
|
+
};
|
|
11584
12423
|
has_role: {
|
|
11585
12424
|
Args: {
|
|
11586
12425
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -11606,6 +12445,20 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
|
|
|
11606
12445
|
};
|
|
11607
12446
|
Returns: boolean;
|
|
11608
12447
|
};
|
|
12448
|
+
jwt_has_role: {
|
|
12449
|
+
Args: {
|
|
12450
|
+
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
12451
|
+
};
|
|
12452
|
+
Returns: boolean;
|
|
12453
|
+
};
|
|
12454
|
+
list_monteurs: {
|
|
12455
|
+
Args: never;
|
|
12456
|
+
Returns: {
|
|
12457
|
+
display_name: string;
|
|
12458
|
+
email: string;
|
|
12459
|
+
user_id: string;
|
|
12460
|
+
}[];
|
|
12461
|
+
};
|
|
11609
12462
|
local_effective_price: {
|
|
11610
12463
|
Args: {
|
|
11611
12464
|
_customer_id: string;
|
|
@@ -11622,6 +12475,22 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
|
|
|
11622
12475
|
source_id: string;
|
|
11623
12476
|
}[];
|
|
11624
12477
|
};
|
|
12478
|
+
log_ai_call: {
|
|
12479
|
+
Args: {
|
|
12480
|
+
_consumer_module_id: string;
|
|
12481
|
+
_cost_usd: number;
|
|
12482
|
+
_duration_ms: number;
|
|
12483
|
+
_error_code: string;
|
|
12484
|
+
_error_message: string;
|
|
12485
|
+
_input_tokens: number;
|
|
12486
|
+
_model_slug: string;
|
|
12487
|
+
_output_tokens: number;
|
|
12488
|
+
_provider_slug: string;
|
|
12489
|
+
_status: string;
|
|
12490
|
+
_total_tokens: number;
|
|
12491
|
+
};
|
|
12492
|
+
Returns: string;
|
|
12493
|
+
};
|
|
11625
12494
|
mark_offer_clicked: {
|
|
11626
12495
|
Args: {
|
|
11627
12496
|
p_code: string;
|
|
@@ -11634,6 +12503,12 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
|
|
|
11634
12503
|
};
|
|
11635
12504
|
Returns: undefined;
|
|
11636
12505
|
};
|
|
12506
|
+
mark_shipment_shipped: {
|
|
12507
|
+
Args: {
|
|
12508
|
+
p_shipment_id: string;
|
|
12509
|
+
};
|
|
12510
|
+
Returns: undefined;
|
|
12511
|
+
};
|
|
11637
12512
|
next_order_number: {
|
|
11638
12513
|
Args: {
|
|
11639
12514
|
p_prefix: string;
|
|
@@ -12110,9 +12985,12 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
|
|
|
12110
12985
|
};
|
|
12111
12986
|
};
|
|
12112
12987
|
Enums: {
|
|
12113
|
-
app_role: "admin" | "
|
|
12988
|
+
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
|
|
12114
12989
|
exact_env: "staging" | "live";
|
|
12115
12990
|
exact_push_status: "pending" | "sent" | "error";
|
|
12991
|
+
itk_customer_segment: "Business" | "Private";
|
|
12992
|
+
itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
|
|
12993
|
+
planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
|
|
12116
12994
|
quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
|
|
12117
12995
|
};
|
|
12118
12996
|
CompositeTypes: { [_ in never]: never; };
|