@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
|
@@ -294,6 +294,57 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
294
294
|
referencedColumns: ["id"];
|
|
295
295
|
}];
|
|
296
296
|
};
|
|
297
|
+
ai_call_log: {
|
|
298
|
+
Row: {
|
|
299
|
+
consumer_module_id: string;
|
|
300
|
+
cost_usd: number | null;
|
|
301
|
+
created_at: string;
|
|
302
|
+
created_by: string | null;
|
|
303
|
+
duration_ms: number | null;
|
|
304
|
+
error_code: string | null;
|
|
305
|
+
error_message: string | null;
|
|
306
|
+
id: string;
|
|
307
|
+
input_tokens: number;
|
|
308
|
+
model_slug: string | null;
|
|
309
|
+
output_tokens: number;
|
|
310
|
+
provider_slug: string | null;
|
|
311
|
+
status: string;
|
|
312
|
+
total_tokens: number;
|
|
313
|
+
};
|
|
314
|
+
Insert: {
|
|
315
|
+
consumer_module_id: string;
|
|
316
|
+
cost_usd?: number | null;
|
|
317
|
+
created_at?: string;
|
|
318
|
+
created_by?: string | null;
|
|
319
|
+
duration_ms?: number | null;
|
|
320
|
+
error_code?: string | null;
|
|
321
|
+
error_message?: string | null;
|
|
322
|
+
id?: string;
|
|
323
|
+
input_tokens?: number;
|
|
324
|
+
model_slug?: string | null;
|
|
325
|
+
output_tokens?: number;
|
|
326
|
+
provider_slug?: string | null;
|
|
327
|
+
status: string;
|
|
328
|
+
total_tokens?: number;
|
|
329
|
+
};
|
|
330
|
+
Update: {
|
|
331
|
+
consumer_module_id?: string;
|
|
332
|
+
cost_usd?: number | null;
|
|
333
|
+
created_at?: string;
|
|
334
|
+
created_by?: string | null;
|
|
335
|
+
duration_ms?: number | null;
|
|
336
|
+
error_code?: string | null;
|
|
337
|
+
error_message?: string | null;
|
|
338
|
+
id?: string;
|
|
339
|
+
input_tokens?: number;
|
|
340
|
+
model_slug?: string | null;
|
|
341
|
+
output_tokens?: number;
|
|
342
|
+
provider_slug?: string | null;
|
|
343
|
+
status?: string;
|
|
344
|
+
total_tokens?: number;
|
|
345
|
+
};
|
|
346
|
+
Relationships: [];
|
|
347
|
+
};
|
|
297
348
|
ai_credentials: {
|
|
298
349
|
Row: {
|
|
299
350
|
active: boolean;
|
|
@@ -330,6 +381,36 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
330
381
|
referencedColumns: ["id"];
|
|
331
382
|
}];
|
|
332
383
|
};
|
|
384
|
+
ai_goals: {
|
|
385
|
+
Row: {
|
|
386
|
+
active: boolean;
|
|
387
|
+
created_at: string;
|
|
388
|
+
description: string | null;
|
|
389
|
+
key: string;
|
|
390
|
+
label: string;
|
|
391
|
+
sort_order: number;
|
|
392
|
+
updated_at: string;
|
|
393
|
+
};
|
|
394
|
+
Insert: {
|
|
395
|
+
active?: boolean;
|
|
396
|
+
created_at?: string;
|
|
397
|
+
description?: string | null;
|
|
398
|
+
key: string;
|
|
399
|
+
label: string;
|
|
400
|
+
sort_order?: number;
|
|
401
|
+
updated_at?: string;
|
|
402
|
+
};
|
|
403
|
+
Update: {
|
|
404
|
+
active?: boolean;
|
|
405
|
+
created_at?: string;
|
|
406
|
+
description?: string | null;
|
|
407
|
+
key?: string;
|
|
408
|
+
label?: string;
|
|
409
|
+
sort_order?: number;
|
|
410
|
+
updated_at?: string;
|
|
411
|
+
};
|
|
412
|
+
Relationships: [];
|
|
413
|
+
};
|
|
333
414
|
ai_model_pricing: {
|
|
334
415
|
Row: {
|
|
335
416
|
created_at: string;
|
|
@@ -1116,6 +1197,141 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
1116
1197
|
};
|
|
1117
1198
|
Relationships: [];
|
|
1118
1199
|
};
|
|
1200
|
+
cart_planning_pick_times: {
|
|
1201
|
+
Row: {
|
|
1202
|
+
created_at: string;
|
|
1203
|
+
id: string;
|
|
1204
|
+
pot_size: string;
|
|
1205
|
+
seconds_per_cart: number;
|
|
1206
|
+
updated_at: string;
|
|
1207
|
+
};
|
|
1208
|
+
Insert: {
|
|
1209
|
+
created_at?: string;
|
|
1210
|
+
id?: string;
|
|
1211
|
+
pot_size: string;
|
|
1212
|
+
seconds_per_cart: number;
|
|
1213
|
+
updated_at?: string;
|
|
1214
|
+
};
|
|
1215
|
+
Update: {
|
|
1216
|
+
created_at?: string;
|
|
1217
|
+
id?: string;
|
|
1218
|
+
pot_size?: string;
|
|
1219
|
+
seconds_per_cart?: number;
|
|
1220
|
+
updated_at?: string;
|
|
1221
|
+
};
|
|
1222
|
+
Relationships: [];
|
|
1223
|
+
};
|
|
1224
|
+
cart_planning_product_overrides: {
|
|
1225
|
+
Row: {
|
|
1226
|
+
created_at: string;
|
|
1227
|
+
id: string;
|
|
1228
|
+
max_party_share_per_layer_pct_override: number | null;
|
|
1229
|
+
never_mix: boolean;
|
|
1230
|
+
notes: string | null;
|
|
1231
|
+
product_id: string;
|
|
1232
|
+
updated_at: string;
|
|
1233
|
+
};
|
|
1234
|
+
Insert: {
|
|
1235
|
+
created_at?: string;
|
|
1236
|
+
id?: string;
|
|
1237
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
1238
|
+
never_mix?: boolean;
|
|
1239
|
+
notes?: string | null;
|
|
1240
|
+
product_id: string;
|
|
1241
|
+
updated_at?: string;
|
|
1242
|
+
};
|
|
1243
|
+
Update: {
|
|
1244
|
+
created_at?: string;
|
|
1245
|
+
id?: string;
|
|
1246
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
1247
|
+
never_mix?: boolean;
|
|
1248
|
+
notes?: string | null;
|
|
1249
|
+
product_id?: string;
|
|
1250
|
+
updated_at?: string;
|
|
1251
|
+
};
|
|
1252
|
+
Relationships: [{
|
|
1253
|
+
foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
|
|
1254
|
+
columns: ["product_id"];
|
|
1255
|
+
isOneToOne: true;
|
|
1256
|
+
referencedRelation: "products";
|
|
1257
|
+
referencedColumns: ["id"];
|
|
1258
|
+
}];
|
|
1259
|
+
};
|
|
1260
|
+
cart_planning_settings: {
|
|
1261
|
+
Row: {
|
|
1262
|
+
allow_editing_after_pickstation_send: boolean;
|
|
1263
|
+
buffer_grouping_mode: string;
|
|
1264
|
+
combine_floriday_orders: boolean;
|
|
1265
|
+
combine_floriday_orders_window: string;
|
|
1266
|
+
combine_orders_scope: string;
|
|
1267
|
+
default_workers: number;
|
|
1268
|
+
id: number;
|
|
1269
|
+
max_beladingen_per_layer: number;
|
|
1270
|
+
max_customers_per_cart: number;
|
|
1271
|
+
max_one_customer_per_layer: boolean;
|
|
1272
|
+
max_party_share_per_layer_pct: number;
|
|
1273
|
+
optimization_strategy: string;
|
|
1274
|
+
own_cart_from_layers: number;
|
|
1275
|
+
pick_time_mode: string;
|
|
1276
|
+
plants_per_day: number;
|
|
1277
|
+
plants_per_hour: number;
|
|
1278
|
+
require_same_carrier: boolean;
|
|
1279
|
+
require_same_crate_type: boolean;
|
|
1280
|
+
require_same_delivery_date: boolean;
|
|
1281
|
+
require_same_delivery_location: boolean;
|
|
1282
|
+
updated_at: string;
|
|
1283
|
+
updated_by: string | null;
|
|
1284
|
+
};
|
|
1285
|
+
Insert: {
|
|
1286
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
1287
|
+
buffer_grouping_mode?: string;
|
|
1288
|
+
combine_floriday_orders?: boolean;
|
|
1289
|
+
combine_floriday_orders_window?: string;
|
|
1290
|
+
combine_orders_scope?: string;
|
|
1291
|
+
default_workers?: number;
|
|
1292
|
+
id?: number;
|
|
1293
|
+
max_beladingen_per_layer?: number;
|
|
1294
|
+
max_customers_per_cart?: number;
|
|
1295
|
+
max_one_customer_per_layer?: boolean;
|
|
1296
|
+
max_party_share_per_layer_pct?: number;
|
|
1297
|
+
optimization_strategy?: string;
|
|
1298
|
+
own_cart_from_layers?: number;
|
|
1299
|
+
pick_time_mode?: string;
|
|
1300
|
+
plants_per_day?: number;
|
|
1301
|
+
plants_per_hour?: number;
|
|
1302
|
+
require_same_carrier?: boolean;
|
|
1303
|
+
require_same_crate_type?: boolean;
|
|
1304
|
+
require_same_delivery_date?: boolean;
|
|
1305
|
+
require_same_delivery_location?: boolean;
|
|
1306
|
+
updated_at?: string;
|
|
1307
|
+
updated_by?: string | null;
|
|
1308
|
+
};
|
|
1309
|
+
Update: {
|
|
1310
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
1311
|
+
buffer_grouping_mode?: string;
|
|
1312
|
+
combine_floriday_orders?: boolean;
|
|
1313
|
+
combine_floriday_orders_window?: string;
|
|
1314
|
+
combine_orders_scope?: string;
|
|
1315
|
+
default_workers?: number;
|
|
1316
|
+
id?: number;
|
|
1317
|
+
max_beladingen_per_layer?: number;
|
|
1318
|
+
max_customers_per_cart?: number;
|
|
1319
|
+
max_one_customer_per_layer?: boolean;
|
|
1320
|
+
max_party_share_per_layer_pct?: number;
|
|
1321
|
+
optimization_strategy?: string;
|
|
1322
|
+
own_cart_from_layers?: number;
|
|
1323
|
+
pick_time_mode?: string;
|
|
1324
|
+
plants_per_day?: number;
|
|
1325
|
+
plants_per_hour?: number;
|
|
1326
|
+
require_same_carrier?: boolean;
|
|
1327
|
+
require_same_crate_type?: boolean;
|
|
1328
|
+
require_same_delivery_date?: boolean;
|
|
1329
|
+
require_same_delivery_location?: boolean;
|
|
1330
|
+
updated_at?: string;
|
|
1331
|
+
updated_by?: string | null;
|
|
1332
|
+
};
|
|
1333
|
+
Relationships: [];
|
|
1334
|
+
};
|
|
1119
1335
|
cart_replan_queue: {
|
|
1120
1336
|
Row: {
|
|
1121
1337
|
attempts: number;
|
|
@@ -1146,6 +1362,39 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
1146
1362
|
referencedColumns: ["id"];
|
|
1147
1363
|
}];
|
|
1148
1364
|
};
|
|
1365
|
+
cart_types: {
|
|
1366
|
+
Row: {
|
|
1367
|
+
created_at: string;
|
|
1368
|
+
id: string;
|
|
1369
|
+
is_default: boolean;
|
|
1370
|
+
layer_length_cm: number;
|
|
1371
|
+
layer_width_cm: number;
|
|
1372
|
+
layers_per_cart: number;
|
|
1373
|
+
name: string;
|
|
1374
|
+
updated_at: string;
|
|
1375
|
+
};
|
|
1376
|
+
Insert: {
|
|
1377
|
+
created_at?: string;
|
|
1378
|
+
id?: string;
|
|
1379
|
+
is_default?: boolean;
|
|
1380
|
+
layer_length_cm: number;
|
|
1381
|
+
layer_width_cm: number;
|
|
1382
|
+
layers_per_cart?: number;
|
|
1383
|
+
name: string;
|
|
1384
|
+
updated_at?: string;
|
|
1385
|
+
};
|
|
1386
|
+
Update: {
|
|
1387
|
+
created_at?: string;
|
|
1388
|
+
id?: string;
|
|
1389
|
+
is_default?: boolean;
|
|
1390
|
+
layer_length_cm?: number;
|
|
1391
|
+
layer_width_cm?: number;
|
|
1392
|
+
layers_per_cart?: number;
|
|
1393
|
+
name?: string;
|
|
1394
|
+
updated_at?: string;
|
|
1395
|
+
};
|
|
1396
|
+
Relationships: [];
|
|
1397
|
+
};
|
|
1149
1398
|
catalog_articles_cache: {
|
|
1150
1399
|
Row: {
|
|
1151
1400
|
created_at: string;
|
|
@@ -1233,6 +1482,36 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
1233
1482
|
};
|
|
1234
1483
|
Relationships: [];
|
|
1235
1484
|
};
|
|
1485
|
+
crate_types: {
|
|
1486
|
+
Row: {
|
|
1487
|
+
created_at: string;
|
|
1488
|
+
id: string;
|
|
1489
|
+
length_cm: number;
|
|
1490
|
+
name: string;
|
|
1491
|
+
plants_per_crate: number;
|
|
1492
|
+
updated_at: string;
|
|
1493
|
+
width_cm: number;
|
|
1494
|
+
};
|
|
1495
|
+
Insert: {
|
|
1496
|
+
created_at?: string;
|
|
1497
|
+
id?: string;
|
|
1498
|
+
length_cm: number;
|
|
1499
|
+
name: string;
|
|
1500
|
+
plants_per_crate?: number;
|
|
1501
|
+
updated_at?: string;
|
|
1502
|
+
width_cm: number;
|
|
1503
|
+
};
|
|
1504
|
+
Update: {
|
|
1505
|
+
created_at?: string;
|
|
1506
|
+
id?: string;
|
|
1507
|
+
length_cm?: number;
|
|
1508
|
+
name?: string;
|
|
1509
|
+
plants_per_crate?: number;
|
|
1510
|
+
updated_at?: string;
|
|
1511
|
+
width_cm?: number;
|
|
1512
|
+
};
|
|
1513
|
+
Relationships: [];
|
|
1514
|
+
};
|
|
1236
1515
|
customer_audit_log: {
|
|
1237
1516
|
Row: {
|
|
1238
1517
|
action: string;
|
|
@@ -5750,27 +6029,309 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
5750
6029
|
};
|
|
5751
6030
|
Insert: {
|
|
5752
6031
|
created_at?: string;
|
|
5753
|
-
created_by?: string | null;
|
|
6032
|
+
created_by?: string | null;
|
|
6033
|
+
id?: string;
|
|
6034
|
+
period_end: string;
|
|
6035
|
+
period_start: string;
|
|
6036
|
+
status?: string;
|
|
6037
|
+
total_excl_vat?: number | null;
|
|
6038
|
+
total_incl_vat?: number | null;
|
|
6039
|
+
vat_amount?: number | null;
|
|
6040
|
+
};
|
|
6041
|
+
Update: {
|
|
6042
|
+
created_at?: string;
|
|
6043
|
+
created_by?: string | null;
|
|
6044
|
+
id?: string;
|
|
6045
|
+
period_end?: string;
|
|
6046
|
+
period_start?: string;
|
|
6047
|
+
status?: string;
|
|
6048
|
+
total_excl_vat?: number | null;
|
|
6049
|
+
total_incl_vat?: number | null;
|
|
6050
|
+
vat_amount?: number | null;
|
|
6051
|
+
};
|
|
6052
|
+
Relationships: [];
|
|
6053
|
+
};
|
|
6054
|
+
itk_contact_persons: {
|
|
6055
|
+
Row: {
|
|
6056
|
+
created_at: string;
|
|
6057
|
+
customer_id: string;
|
|
6058
|
+
email: string | null;
|
|
6059
|
+
id: string;
|
|
6060
|
+
name: string;
|
|
6061
|
+
phone: string | null;
|
|
6062
|
+
role: string | null;
|
|
6063
|
+
updated_at: string;
|
|
6064
|
+
};
|
|
6065
|
+
Insert: {
|
|
6066
|
+
created_at?: string;
|
|
6067
|
+
customer_id: string;
|
|
6068
|
+
email?: string | null;
|
|
6069
|
+
id?: string;
|
|
6070
|
+
name: string;
|
|
6071
|
+
phone?: string | null;
|
|
6072
|
+
role?: string | null;
|
|
6073
|
+
updated_at?: string;
|
|
6074
|
+
};
|
|
6075
|
+
Update: {
|
|
6076
|
+
created_at?: string;
|
|
6077
|
+
customer_id?: string;
|
|
6078
|
+
email?: string | null;
|
|
6079
|
+
id?: string;
|
|
6080
|
+
name?: string;
|
|
6081
|
+
phone?: string | null;
|
|
6082
|
+
role?: string | null;
|
|
6083
|
+
updated_at?: string;
|
|
6084
|
+
};
|
|
6085
|
+
Relationships: [{
|
|
6086
|
+
foreignKeyName: "itk_contact_persons_customer_id_fkey";
|
|
6087
|
+
columns: ["customer_id"];
|
|
6088
|
+
isOneToOne: false;
|
|
6089
|
+
referencedRelation: "itk_customers";
|
|
6090
|
+
referencedColumns: ["id"];
|
|
6091
|
+
}];
|
|
6092
|
+
};
|
|
6093
|
+
itk_customer_dynamic_values: {
|
|
6094
|
+
Row: {
|
|
6095
|
+
created_at: string;
|
|
6096
|
+
customer_id: string;
|
|
6097
|
+
field_id: string;
|
|
6098
|
+
id: string;
|
|
6099
|
+
updated_at: string;
|
|
6100
|
+
value: string | null;
|
|
6101
|
+
};
|
|
6102
|
+
Insert: {
|
|
6103
|
+
created_at?: string;
|
|
6104
|
+
customer_id: string;
|
|
6105
|
+
field_id: string;
|
|
6106
|
+
id?: string;
|
|
6107
|
+
updated_at?: string;
|
|
6108
|
+
value?: string | null;
|
|
6109
|
+
};
|
|
6110
|
+
Update: {
|
|
6111
|
+
created_at?: string;
|
|
6112
|
+
customer_id?: string;
|
|
6113
|
+
field_id?: string;
|
|
6114
|
+
id?: string;
|
|
6115
|
+
updated_at?: string;
|
|
6116
|
+
value?: string | null;
|
|
6117
|
+
};
|
|
6118
|
+
Relationships: [{
|
|
6119
|
+
foreignKeyName: "itk_customer_dynamic_values_customer_id_fkey";
|
|
6120
|
+
columns: ["customer_id"];
|
|
6121
|
+
isOneToOne: false;
|
|
6122
|
+
referencedRelation: "itk_customers";
|
|
6123
|
+
referencedColumns: ["id"];
|
|
6124
|
+
}, {
|
|
6125
|
+
foreignKeyName: "itk_customer_dynamic_values_field_id_fkey";
|
|
6126
|
+
columns: ["field_id"];
|
|
6127
|
+
isOneToOne: false;
|
|
6128
|
+
referencedRelation: "itk_dynamic_fields";
|
|
6129
|
+
referencedColumns: ["id"];
|
|
6130
|
+
}];
|
|
6131
|
+
};
|
|
6132
|
+
itk_customer_notes: {
|
|
6133
|
+
Row: {
|
|
6134
|
+
body: string;
|
|
6135
|
+
created_at: string;
|
|
6136
|
+
created_by: string | null;
|
|
6137
|
+
customer_id: string;
|
|
6138
|
+
id: string;
|
|
6139
|
+
note_type: string;
|
|
6140
|
+
updated_at: string;
|
|
6141
|
+
};
|
|
6142
|
+
Insert: {
|
|
6143
|
+
body: string;
|
|
6144
|
+
created_at?: string;
|
|
6145
|
+
created_by?: string | null;
|
|
6146
|
+
customer_id: string;
|
|
6147
|
+
id?: string;
|
|
6148
|
+
note_type?: string;
|
|
6149
|
+
updated_at?: string;
|
|
6150
|
+
};
|
|
6151
|
+
Update: {
|
|
6152
|
+
body?: string;
|
|
6153
|
+
created_at?: string;
|
|
6154
|
+
created_by?: string | null;
|
|
6155
|
+
customer_id?: string;
|
|
6156
|
+
id?: string;
|
|
6157
|
+
note_type?: string;
|
|
6158
|
+
updated_at?: string;
|
|
6159
|
+
};
|
|
6160
|
+
Relationships: [{
|
|
6161
|
+
foreignKeyName: "itk_customer_notes_customer_id_fkey";
|
|
6162
|
+
columns: ["customer_id"];
|
|
6163
|
+
isOneToOne: false;
|
|
6164
|
+
referencedRelation: "itk_customers";
|
|
6165
|
+
referencedColumns: ["id"];
|
|
6166
|
+
}];
|
|
6167
|
+
};
|
|
6168
|
+
itk_customers: {
|
|
6169
|
+
Row: {
|
|
6170
|
+
billing_city: string | null;
|
|
6171
|
+
billing_postcode: string | null;
|
|
6172
|
+
billing_street: string | null;
|
|
6173
|
+
created_at: string;
|
|
6174
|
+
general_email: string | null;
|
|
6175
|
+
general_phone: string | null;
|
|
6176
|
+
id: string;
|
|
6177
|
+
legacy_customer_id: string | null;
|
|
6178
|
+
name: string;
|
|
6179
|
+
segment: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
6180
|
+
updated_at: string;
|
|
6181
|
+
};
|
|
6182
|
+
Insert: {
|
|
6183
|
+
billing_city?: string | null;
|
|
6184
|
+
billing_postcode?: string | null;
|
|
6185
|
+
billing_street?: string | null;
|
|
6186
|
+
created_at?: string;
|
|
6187
|
+
general_email?: string | null;
|
|
6188
|
+
general_phone?: string | null;
|
|
6189
|
+
id?: string;
|
|
6190
|
+
legacy_customer_id?: string | null;
|
|
6191
|
+
name: string;
|
|
6192
|
+
segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
6193
|
+
updated_at?: string;
|
|
6194
|
+
};
|
|
6195
|
+
Update: {
|
|
6196
|
+
billing_city?: string | null;
|
|
6197
|
+
billing_postcode?: string | null;
|
|
6198
|
+
billing_street?: string | null;
|
|
6199
|
+
created_at?: string;
|
|
6200
|
+
general_email?: string | null;
|
|
6201
|
+
general_phone?: string | null;
|
|
6202
|
+
id?: string;
|
|
6203
|
+
legacy_customer_id?: string | null;
|
|
6204
|
+
name?: string;
|
|
6205
|
+
segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
6206
|
+
updated_at?: string;
|
|
6207
|
+
};
|
|
6208
|
+
Relationships: [{
|
|
6209
|
+
foreignKeyName: "itk_customers_legacy_customer_id_fkey";
|
|
6210
|
+
columns: ["legacy_customer_id"];
|
|
6211
|
+
isOneToOne: false;
|
|
6212
|
+
referencedRelation: "customers";
|
|
6213
|
+
referencedColumns: ["id"];
|
|
6214
|
+
}];
|
|
6215
|
+
};
|
|
6216
|
+
itk_dynamic_fields: {
|
|
6217
|
+
Row: {
|
|
6218
|
+
created_at: string;
|
|
6219
|
+
field_name: string;
|
|
6220
|
+
field_type: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
6221
|
+
id: string;
|
|
6222
|
+
options: import("../integrations/supabase/types").Json;
|
|
6223
|
+
sort_order: number;
|
|
6224
|
+
updated_at: string;
|
|
6225
|
+
};
|
|
6226
|
+
Insert: {
|
|
6227
|
+
created_at?: string;
|
|
6228
|
+
field_name: string;
|
|
6229
|
+
field_type?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
6230
|
+
id?: string;
|
|
6231
|
+
options?: import("../integrations/supabase/types").Json;
|
|
6232
|
+
sort_order?: number;
|
|
6233
|
+
updated_at?: string;
|
|
6234
|
+
};
|
|
6235
|
+
Update: {
|
|
6236
|
+
created_at?: string;
|
|
6237
|
+
field_name?: string;
|
|
6238
|
+
field_type?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
6239
|
+
id?: string;
|
|
6240
|
+
options?: import("../integrations/supabase/types").Json;
|
|
6241
|
+
sort_order?: number;
|
|
6242
|
+
updated_at?: string;
|
|
6243
|
+
};
|
|
6244
|
+
Relationships: [];
|
|
6245
|
+
};
|
|
6246
|
+
itk_work_locations: {
|
|
6247
|
+
Row: {
|
|
6248
|
+
city: string | null;
|
|
6249
|
+
created_at: string;
|
|
6250
|
+
customer_id: string;
|
|
6251
|
+
id: string;
|
|
6252
|
+
instructions: string | null;
|
|
6253
|
+
label: string;
|
|
6254
|
+
latitude: number | null;
|
|
6255
|
+
longitude: number | null;
|
|
6256
|
+
postcode: string | null;
|
|
6257
|
+
street: string | null;
|
|
6258
|
+
updated_at: string;
|
|
6259
|
+
};
|
|
6260
|
+
Insert: {
|
|
6261
|
+
city?: string | null;
|
|
6262
|
+
created_at?: string;
|
|
6263
|
+
customer_id: string;
|
|
6264
|
+
id?: string;
|
|
6265
|
+
instructions?: string | null;
|
|
6266
|
+
label: string;
|
|
6267
|
+
latitude?: number | null;
|
|
6268
|
+
longitude?: number | null;
|
|
6269
|
+
postcode?: string | null;
|
|
6270
|
+
street?: string | null;
|
|
6271
|
+
updated_at?: string;
|
|
6272
|
+
};
|
|
6273
|
+
Update: {
|
|
6274
|
+
city?: string | null;
|
|
6275
|
+
created_at?: string;
|
|
6276
|
+
customer_id?: string;
|
|
6277
|
+
id?: string;
|
|
6278
|
+
instructions?: string | null;
|
|
6279
|
+
label?: string;
|
|
6280
|
+
latitude?: number | null;
|
|
6281
|
+
longitude?: number | null;
|
|
6282
|
+
postcode?: string | null;
|
|
6283
|
+
street?: string | null;
|
|
6284
|
+
updated_at?: string;
|
|
6285
|
+
};
|
|
6286
|
+
Relationships: [{
|
|
6287
|
+
foreignKeyName: "itk_work_locations_customer_id_fkey";
|
|
6288
|
+
columns: ["customer_id"];
|
|
6289
|
+
isOneToOne: false;
|
|
6290
|
+
referencedRelation: "itk_customers";
|
|
6291
|
+
referencedColumns: ["id"];
|
|
6292
|
+
}];
|
|
6293
|
+
};
|
|
6294
|
+
leave_requests: {
|
|
6295
|
+
Row: {
|
|
6296
|
+
created_at: string;
|
|
6297
|
+
end_date: string;
|
|
6298
|
+
id: string;
|
|
6299
|
+
reason: string | null;
|
|
6300
|
+
start_date: string;
|
|
6301
|
+
status: string;
|
|
6302
|
+
tenant_id: string;
|
|
6303
|
+
updated_at: string;
|
|
6304
|
+
user_id: string;
|
|
6305
|
+
};
|
|
6306
|
+
Insert: {
|
|
6307
|
+
created_at?: string;
|
|
6308
|
+
end_date: string;
|
|
5754
6309
|
id?: string;
|
|
5755
|
-
|
|
5756
|
-
|
|
6310
|
+
reason?: string | null;
|
|
6311
|
+
start_date: string;
|
|
5757
6312
|
status?: string;
|
|
5758
|
-
|
|
5759
|
-
|
|
5760
|
-
|
|
6313
|
+
tenant_id?: string;
|
|
6314
|
+
updated_at?: string;
|
|
6315
|
+
user_id: string;
|
|
5761
6316
|
};
|
|
5762
6317
|
Update: {
|
|
5763
6318
|
created_at?: string;
|
|
5764
|
-
|
|
6319
|
+
end_date?: string;
|
|
5765
6320
|
id?: string;
|
|
5766
|
-
|
|
5767
|
-
|
|
6321
|
+
reason?: string | null;
|
|
6322
|
+
start_date?: string;
|
|
5768
6323
|
status?: string;
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
|
|
6324
|
+
tenant_id?: string;
|
|
6325
|
+
updated_at?: string;
|
|
6326
|
+
user_id?: string;
|
|
5772
6327
|
};
|
|
5773
|
-
Relationships: [
|
|
6328
|
+
Relationships: [{
|
|
6329
|
+
foreignKeyName: "leave_requests_user_id_fkey";
|
|
6330
|
+
columns: ["user_id"];
|
|
6331
|
+
isOneToOne: false;
|
|
6332
|
+
referencedRelation: "monteurs";
|
|
6333
|
+
referencedColumns: ["id"];
|
|
6334
|
+
}];
|
|
5774
6335
|
};
|
|
5775
6336
|
local_customer_agreements: {
|
|
5776
6337
|
Row: {
|
|
@@ -6423,6 +6984,33 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
6423
6984
|
};
|
|
6424
6985
|
Relationships: [];
|
|
6425
6986
|
};
|
|
6987
|
+
module_permissions: {
|
|
6988
|
+
Row: {
|
|
6989
|
+
created_at: string;
|
|
6990
|
+
id: string;
|
|
6991
|
+
module_id: string;
|
|
6992
|
+
permission: string;
|
|
6993
|
+
role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
6994
|
+
updated_at: string;
|
|
6995
|
+
};
|
|
6996
|
+
Insert: {
|
|
6997
|
+
created_at?: string;
|
|
6998
|
+
id?: string;
|
|
6999
|
+
module_id: string;
|
|
7000
|
+
permission: string;
|
|
7001
|
+
role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
7002
|
+
updated_at?: string;
|
|
7003
|
+
};
|
|
7004
|
+
Update: {
|
|
7005
|
+
created_at?: string;
|
|
7006
|
+
id?: string;
|
|
7007
|
+
module_id?: string;
|
|
7008
|
+
permission?: string;
|
|
7009
|
+
role?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
7010
|
+
updated_at?: string;
|
|
7011
|
+
};
|
|
7012
|
+
Relationships: [];
|
|
7013
|
+
};
|
|
6426
7014
|
monteurs: {
|
|
6427
7015
|
Row: {
|
|
6428
7016
|
avatar_url: string | null;
|
|
@@ -7152,6 +7740,42 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
7152
7740
|
};
|
|
7153
7741
|
Relationships: [];
|
|
7154
7742
|
};
|
|
7743
|
+
order_buffers: {
|
|
7744
|
+
Row: {
|
|
7745
|
+
buffer_key: string;
|
|
7746
|
+
created_at: string;
|
|
7747
|
+
customer_id: string | null;
|
|
7748
|
+
grouping_mode: string;
|
|
7749
|
+
id: string;
|
|
7750
|
+
pickup_date: string | null;
|
|
7751
|
+
pickup_location: string | null;
|
|
7752
|
+
plan_locked_at: string | null;
|
|
7753
|
+
updated_at: string;
|
|
7754
|
+
};
|
|
7755
|
+
Insert: {
|
|
7756
|
+
buffer_key: string;
|
|
7757
|
+
created_at?: string;
|
|
7758
|
+
customer_id?: string | null;
|
|
7759
|
+
grouping_mode: string;
|
|
7760
|
+
id?: string;
|
|
7761
|
+
pickup_date?: string | null;
|
|
7762
|
+
pickup_location?: string | null;
|
|
7763
|
+
plan_locked_at?: string | null;
|
|
7764
|
+
updated_at?: string;
|
|
7765
|
+
};
|
|
7766
|
+
Update: {
|
|
7767
|
+
buffer_key?: string;
|
|
7768
|
+
created_at?: string;
|
|
7769
|
+
customer_id?: string | null;
|
|
7770
|
+
grouping_mode?: string;
|
|
7771
|
+
id?: string;
|
|
7772
|
+
pickup_date?: string | null;
|
|
7773
|
+
pickup_location?: string | null;
|
|
7774
|
+
plan_locked_at?: string | null;
|
|
7775
|
+
updated_at?: string;
|
|
7776
|
+
};
|
|
7777
|
+
Relationships: [];
|
|
7778
|
+
};
|
|
7155
7779
|
order_cart_items: {
|
|
7156
7780
|
Row: {
|
|
7157
7781
|
cart_id: string;
|
|
@@ -7218,6 +7842,7 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
7218
7842
|
order_carts: {
|
|
7219
7843
|
Row: {
|
|
7220
7844
|
algorithm_version: number;
|
|
7845
|
+
buffer_id: string | null;
|
|
7221
7846
|
cart_number: number;
|
|
7222
7847
|
created_at: string;
|
|
7223
7848
|
id: string;
|
|
@@ -7225,13 +7850,14 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
7225
7850
|
is_complete: boolean;
|
|
7226
7851
|
notes: string | null;
|
|
7227
7852
|
occupancy_pct: number;
|
|
7228
|
-
order_id: string;
|
|
7853
|
+
order_id: string | null;
|
|
7229
7854
|
source: string;
|
|
7230
7855
|
total_layers_used: number;
|
|
7231
7856
|
updated_at: string;
|
|
7232
7857
|
};
|
|
7233
7858
|
Insert: {
|
|
7234
7859
|
algorithm_version?: number;
|
|
7860
|
+
buffer_id?: string | null;
|
|
7235
7861
|
cart_number: number;
|
|
7236
7862
|
created_at?: string;
|
|
7237
7863
|
id?: string;
|
|
@@ -7239,13 +7865,14 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
7239
7865
|
is_complete?: boolean;
|
|
7240
7866
|
notes?: string | null;
|
|
7241
7867
|
occupancy_pct?: number;
|
|
7242
|
-
order_id
|
|
7868
|
+
order_id?: string | null;
|
|
7243
7869
|
source?: string;
|
|
7244
7870
|
total_layers_used?: number;
|
|
7245
7871
|
updated_at?: string;
|
|
7246
7872
|
};
|
|
7247
7873
|
Update: {
|
|
7248
7874
|
algorithm_version?: number;
|
|
7875
|
+
buffer_id?: string | null;
|
|
7249
7876
|
cart_number?: number;
|
|
7250
7877
|
created_at?: string;
|
|
7251
7878
|
id?: string;
|
|
@@ -7253,12 +7880,18 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
7253
7880
|
is_complete?: boolean;
|
|
7254
7881
|
notes?: string | null;
|
|
7255
7882
|
occupancy_pct?: number;
|
|
7256
|
-
order_id?: string;
|
|
7883
|
+
order_id?: string | null;
|
|
7257
7884
|
source?: string;
|
|
7258
7885
|
total_layers_used?: number;
|
|
7259
7886
|
updated_at?: string;
|
|
7260
7887
|
};
|
|
7261
7888
|
Relationships: [{
|
|
7889
|
+
foreignKeyName: "order_carts_buffer_id_fkey";
|
|
7890
|
+
columns: ["buffer_id"];
|
|
7891
|
+
isOneToOne: false;
|
|
7892
|
+
referencedRelation: "order_buffers";
|
|
7893
|
+
referencedColumns: ["id"];
|
|
7894
|
+
}, {
|
|
7262
7895
|
foreignKeyName: "order_carts_order_id_fkey";
|
|
7263
7896
|
columns: ["order_id"];
|
|
7264
7897
|
isOneToOne: false;
|
|
@@ -7395,15 +8028,117 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
7395
8028
|
};
|
|
7396
8029
|
Relationships: [];
|
|
7397
8030
|
};
|
|
8031
|
+
order_shipment_items: {
|
|
8032
|
+
Row: {
|
|
8033
|
+
created_at: string;
|
|
8034
|
+
id: string;
|
|
8035
|
+
order_item_id: string;
|
|
8036
|
+
product_id: string | null;
|
|
8037
|
+
product_name: string;
|
|
8038
|
+
quantity: number;
|
|
8039
|
+
shipment_id: string;
|
|
8040
|
+
updated_at: string;
|
|
8041
|
+
};
|
|
8042
|
+
Insert: {
|
|
8043
|
+
created_at?: string;
|
|
8044
|
+
id?: string;
|
|
8045
|
+
order_item_id: string;
|
|
8046
|
+
product_id?: string | null;
|
|
8047
|
+
product_name: string;
|
|
8048
|
+
quantity: number;
|
|
8049
|
+
shipment_id: string;
|
|
8050
|
+
updated_at?: string;
|
|
8051
|
+
};
|
|
8052
|
+
Update: {
|
|
8053
|
+
created_at?: string;
|
|
8054
|
+
id?: string;
|
|
8055
|
+
order_item_id?: string;
|
|
8056
|
+
product_id?: string | null;
|
|
8057
|
+
product_name?: string;
|
|
8058
|
+
quantity?: number;
|
|
8059
|
+
shipment_id?: string;
|
|
8060
|
+
updated_at?: string;
|
|
8061
|
+
};
|
|
8062
|
+
Relationships: [{
|
|
8063
|
+
foreignKeyName: "order_shipment_items_order_item_id_fkey";
|
|
8064
|
+
columns: ["order_item_id"];
|
|
8065
|
+
isOneToOne: false;
|
|
8066
|
+
referencedRelation: "order_items";
|
|
8067
|
+
referencedColumns: ["id"];
|
|
8068
|
+
}, {
|
|
8069
|
+
foreignKeyName: "order_shipment_items_shipment_id_fkey";
|
|
8070
|
+
columns: ["shipment_id"];
|
|
8071
|
+
isOneToOne: false;
|
|
8072
|
+
referencedRelation: "order_shipments";
|
|
8073
|
+
referencedColumns: ["id"];
|
|
8074
|
+
}];
|
|
8075
|
+
};
|
|
8076
|
+
order_shipments: {
|
|
8077
|
+
Row: {
|
|
8078
|
+
carrier_id: string | null;
|
|
8079
|
+
created_at: string;
|
|
8080
|
+
delivery_date: string | null;
|
|
8081
|
+
delivery_location_id: string | null;
|
|
8082
|
+
id: string;
|
|
8083
|
+
notes: string | null;
|
|
8084
|
+
order_id: string;
|
|
8085
|
+
shipment_number: number;
|
|
8086
|
+
shipped_at: string | null;
|
|
8087
|
+
status: string;
|
|
8088
|
+
updated_at: string;
|
|
8089
|
+
};
|
|
8090
|
+
Insert: {
|
|
8091
|
+
carrier_id?: string | null;
|
|
8092
|
+
created_at?: string;
|
|
8093
|
+
delivery_date?: string | null;
|
|
8094
|
+
delivery_location_id?: string | null;
|
|
8095
|
+
id?: string;
|
|
8096
|
+
notes?: string | null;
|
|
8097
|
+
order_id: string;
|
|
8098
|
+
shipment_number: number;
|
|
8099
|
+
shipped_at?: string | null;
|
|
8100
|
+
status?: string;
|
|
8101
|
+
updated_at?: string;
|
|
8102
|
+
};
|
|
8103
|
+
Update: {
|
|
8104
|
+
carrier_id?: string | null;
|
|
8105
|
+
created_at?: string;
|
|
8106
|
+
delivery_date?: string | null;
|
|
8107
|
+
delivery_location_id?: string | null;
|
|
8108
|
+
id?: string;
|
|
8109
|
+
notes?: string | null;
|
|
8110
|
+
order_id?: string;
|
|
8111
|
+
shipment_number?: number;
|
|
8112
|
+
shipped_at?: string | null;
|
|
8113
|
+
status?: string;
|
|
8114
|
+
updated_at?: string;
|
|
8115
|
+
};
|
|
8116
|
+
Relationships: [{
|
|
8117
|
+
foreignKeyName: "order_shipments_carrier_id_fkey";
|
|
8118
|
+
columns: ["carrier_id"];
|
|
8119
|
+
isOneToOne: false;
|
|
8120
|
+
referencedRelation: "carriers";
|
|
8121
|
+
referencedColumns: ["id"];
|
|
8122
|
+
}, {
|
|
8123
|
+
foreignKeyName: "order_shipments_order_id_fkey";
|
|
8124
|
+
columns: ["order_id"];
|
|
8125
|
+
isOneToOne: false;
|
|
8126
|
+
referencedRelation: "orders";
|
|
8127
|
+
referencedColumns: ["id"];
|
|
8128
|
+
}];
|
|
8129
|
+
};
|
|
7398
8130
|
orders: {
|
|
7399
8131
|
Row: {
|
|
8132
|
+
buffer_id: string | null;
|
|
7400
8133
|
created_at: string;
|
|
7401
8134
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
7402
8135
|
customer_id: string | null;
|
|
7403
8136
|
customer_name: string;
|
|
7404
8137
|
deleted_at: string | null;
|
|
7405
|
-
delivery_date: string;
|
|
8138
|
+
delivery_date: string | null;
|
|
8139
|
+
floriday_sales_order_id: string | null;
|
|
7406
8140
|
id: string;
|
|
8141
|
+
is_reservation: boolean;
|
|
7407
8142
|
notes: string | null;
|
|
7408
8143
|
order_date: string;
|
|
7409
8144
|
order_number: string;
|
|
@@ -7415,13 +8150,16 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
7415
8150
|
updated_at: string;
|
|
7416
8151
|
};
|
|
7417
8152
|
Insert: {
|
|
8153
|
+
buffer_id?: string | null;
|
|
7418
8154
|
created_at?: string;
|
|
7419
8155
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
7420
8156
|
customer_id?: string | null;
|
|
7421
8157
|
customer_name?: string;
|
|
7422
8158
|
deleted_at?: string | null;
|
|
7423
|
-
delivery_date
|
|
8159
|
+
delivery_date?: string | null;
|
|
8160
|
+
floriday_sales_order_id?: string | null;
|
|
7424
8161
|
id?: string;
|
|
8162
|
+
is_reservation?: boolean;
|
|
7425
8163
|
notes?: string | null;
|
|
7426
8164
|
order_date?: string;
|
|
7427
8165
|
order_number: string;
|
|
@@ -7433,13 +8171,16 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
7433
8171
|
updated_at?: string;
|
|
7434
8172
|
};
|
|
7435
8173
|
Update: {
|
|
8174
|
+
buffer_id?: string | null;
|
|
7436
8175
|
created_at?: string;
|
|
7437
8176
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
7438
8177
|
customer_id?: string | null;
|
|
7439
8178
|
customer_name?: string;
|
|
7440
8179
|
deleted_at?: string | null;
|
|
7441
|
-
delivery_date?: string;
|
|
8180
|
+
delivery_date?: string | null;
|
|
8181
|
+
floriday_sales_order_id?: string | null;
|
|
7442
8182
|
id?: string;
|
|
8183
|
+
is_reservation?: boolean;
|
|
7443
8184
|
notes?: string | null;
|
|
7444
8185
|
order_date?: string;
|
|
7445
8186
|
order_number?: string;
|
|
@@ -7451,6 +8192,12 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
7451
8192
|
updated_at?: string;
|
|
7452
8193
|
};
|
|
7453
8194
|
Relationships: [{
|
|
8195
|
+
foreignKeyName: "orders_buffer_id_fkey";
|
|
8196
|
+
columns: ["buffer_id"];
|
|
8197
|
+
isOneToOne: false;
|
|
8198
|
+
referencedRelation: "order_buffers";
|
|
8199
|
+
referencedColumns: ["id"];
|
|
8200
|
+
}, {
|
|
7454
8201
|
foreignKeyName: "orders_customer_id_fkey";
|
|
7455
8202
|
columns: ["customer_id"];
|
|
7456
8203
|
isOneToOne: false;
|
|
@@ -7581,6 +8328,51 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
7581
8328
|
};
|
|
7582
8329
|
Relationships: [];
|
|
7583
8330
|
};
|
|
8331
|
+
planning_items: {
|
|
8332
|
+
Row: {
|
|
8333
|
+
assigned_monteur_id: string;
|
|
8334
|
+
created_at: string;
|
|
8335
|
+
created_by: string | null;
|
|
8336
|
+
end_at: string;
|
|
8337
|
+
id: string;
|
|
8338
|
+
notes: string | null;
|
|
8339
|
+
start_at: string;
|
|
8340
|
+
status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
|
|
8341
|
+
updated_at: string;
|
|
8342
|
+
werkbon_id: string;
|
|
8343
|
+
};
|
|
8344
|
+
Insert: {
|
|
8345
|
+
assigned_monteur_id: string;
|
|
8346
|
+
created_at?: string;
|
|
8347
|
+
created_by?: string | null;
|
|
8348
|
+
end_at: string;
|
|
8349
|
+
id?: string;
|
|
8350
|
+
notes?: string | null;
|
|
8351
|
+
start_at: string;
|
|
8352
|
+
status?: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
|
|
8353
|
+
updated_at?: string;
|
|
8354
|
+
werkbon_id: string;
|
|
8355
|
+
};
|
|
8356
|
+
Update: {
|
|
8357
|
+
assigned_monteur_id?: string;
|
|
8358
|
+
created_at?: string;
|
|
8359
|
+
created_by?: string | null;
|
|
8360
|
+
end_at?: string;
|
|
8361
|
+
id?: string;
|
|
8362
|
+
notes?: string | null;
|
|
8363
|
+
start_at?: string;
|
|
8364
|
+
status?: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
|
|
8365
|
+
updated_at?: string;
|
|
8366
|
+
werkbon_id?: string;
|
|
8367
|
+
};
|
|
8368
|
+
Relationships: [{
|
|
8369
|
+
foreignKeyName: "planning_items_werkbon_id_fkey";
|
|
8370
|
+
columns: ["werkbon_id"];
|
|
8371
|
+
isOneToOne: false;
|
|
8372
|
+
referencedRelation: "werkbonnen";
|
|
8373
|
+
referencedColumns: ["id"];
|
|
8374
|
+
}];
|
|
8375
|
+
};
|
|
7584
8376
|
product_categories: {
|
|
7585
8377
|
Row: {
|
|
7586
8378
|
color: string;
|
|
@@ -7714,6 +8506,8 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
7714
8506
|
Row: {
|
|
7715
8507
|
created_at: string;
|
|
7716
8508
|
description: string | null;
|
|
8509
|
+
head_product_id: string | null;
|
|
8510
|
+
head_trade_item_floriday_id: string | null;
|
|
7717
8511
|
id: string;
|
|
7718
8512
|
is_active: boolean;
|
|
7719
8513
|
name: string;
|
|
@@ -7723,6 +8517,8 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
7723
8517
|
Insert: {
|
|
7724
8518
|
created_at?: string;
|
|
7725
8519
|
description?: string | null;
|
|
8520
|
+
head_product_id?: string | null;
|
|
8521
|
+
head_trade_item_floriday_id?: string | null;
|
|
7726
8522
|
id?: string;
|
|
7727
8523
|
is_active?: boolean;
|
|
7728
8524
|
name: string;
|
|
@@ -7732,13 +8528,21 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
7732
8528
|
Update: {
|
|
7733
8529
|
created_at?: string;
|
|
7734
8530
|
description?: string | null;
|
|
8531
|
+
head_product_id?: string | null;
|
|
8532
|
+
head_trade_item_floriday_id?: string | null;
|
|
7735
8533
|
id?: string;
|
|
7736
8534
|
is_active?: boolean;
|
|
7737
8535
|
name?: string;
|
|
7738
8536
|
tenant_id?: string;
|
|
7739
8537
|
updated_at?: string;
|
|
7740
8538
|
};
|
|
7741
|
-
Relationships: [
|
|
8539
|
+
Relationships: [{
|
|
8540
|
+
foreignKeyName: "product_groups_head_product_id_fkey";
|
|
8541
|
+
columns: ["head_product_id"];
|
|
8542
|
+
isOneToOne: false;
|
|
8543
|
+
referencedRelation: "products";
|
|
8544
|
+
referencedColumns: ["id"];
|
|
8545
|
+
}];
|
|
7742
8546
|
};
|
|
7743
8547
|
products: {
|
|
7744
8548
|
Row: {
|
|
@@ -10289,6 +11093,7 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
10289
11093
|
internal_notes: string | null;
|
|
10290
11094
|
parent_werkbon_id: string | null;
|
|
10291
11095
|
parsed_payload: import("../integrations/supabase/types").Json | null;
|
|
11096
|
+
planning_status: string;
|
|
10292
11097
|
project_number: string | null;
|
|
10293
11098
|
room_number: string | null;
|
|
10294
11099
|
scheduled_end_time: string | null;
|
|
@@ -10296,6 +11101,7 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
10296
11101
|
sequence_number: number;
|
|
10297
11102
|
source_pdf_path: string | null;
|
|
10298
11103
|
status: string;
|
|
11104
|
+
technician_id: string | null;
|
|
10299
11105
|
technician_notes: string | null;
|
|
10300
11106
|
technician_notes_raw: string | null;
|
|
10301
11107
|
technician_task_description: string | null;
|
|
@@ -10316,6 +11122,7 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
10316
11122
|
internal_notes?: string | null;
|
|
10317
11123
|
parent_werkbon_id?: string | null;
|
|
10318
11124
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
11125
|
+
planning_status?: string;
|
|
10319
11126
|
project_number?: string | null;
|
|
10320
11127
|
room_number?: string | null;
|
|
10321
11128
|
scheduled_end_time?: string | null;
|
|
@@ -10323,6 +11130,7 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
10323
11130
|
sequence_number: number;
|
|
10324
11131
|
source_pdf_path?: string | null;
|
|
10325
11132
|
status?: string;
|
|
11133
|
+
technician_id?: string | null;
|
|
10326
11134
|
technician_notes?: string | null;
|
|
10327
11135
|
technician_notes_raw?: string | null;
|
|
10328
11136
|
technician_task_description?: string | null;
|
|
@@ -10343,6 +11151,7 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
10343
11151
|
internal_notes?: string | null;
|
|
10344
11152
|
parent_werkbon_id?: string | null;
|
|
10345
11153
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
11154
|
+
planning_status?: string;
|
|
10346
11155
|
project_number?: string | null;
|
|
10347
11156
|
room_number?: string | null;
|
|
10348
11157
|
scheduled_end_time?: string | null;
|
|
@@ -10350,6 +11159,7 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
10350
11159
|
sequence_number?: number;
|
|
10351
11160
|
source_pdf_path?: string | null;
|
|
10352
11161
|
status?: string;
|
|
11162
|
+
technician_id?: string | null;
|
|
10353
11163
|
technician_notes?: string | null;
|
|
10354
11164
|
technician_notes_raw?: string | null;
|
|
10355
11165
|
technician_task_description?: string | null;
|
|
@@ -10358,17 +11168,17 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
10358
11168
|
work_address?: string | null;
|
|
10359
11169
|
};
|
|
10360
11170
|
Relationships: [{
|
|
10361
|
-
foreignKeyName: "werkbonnen_customer_id_fkey";
|
|
10362
|
-
columns: ["customer_id"];
|
|
10363
|
-
isOneToOne: false;
|
|
10364
|
-
referencedRelation: "customers";
|
|
10365
|
-
referencedColumns: ["id"];
|
|
10366
|
-
}, {
|
|
10367
11171
|
foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
|
|
10368
11172
|
columns: ["parent_werkbon_id"];
|
|
10369
11173
|
isOneToOne: false;
|
|
10370
11174
|
referencedRelation: "werkbonnen";
|
|
10371
11175
|
referencedColumns: ["id"];
|
|
11176
|
+
}, {
|
|
11177
|
+
foreignKeyName: "werkbonnen_technician_id_fkey";
|
|
11178
|
+
columns: ["technician_id"];
|
|
11179
|
+
isOneToOne: false;
|
|
11180
|
+
referencedRelation: "monteurs";
|
|
11181
|
+
referencedColumns: ["id"];
|
|
10372
11182
|
}];
|
|
10373
11183
|
};
|
|
10374
11184
|
work_order_monteurs: {
|
|
@@ -11087,6 +11897,21 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
11087
11897
|
};
|
|
11088
11898
|
Returns: string;
|
|
11089
11899
|
};
|
|
11900
|
+
ai_usage_by_module: {
|
|
11901
|
+
Args: {
|
|
11902
|
+
_from: string;
|
|
11903
|
+
_to: string;
|
|
11904
|
+
};
|
|
11905
|
+
Returns: {
|
|
11906
|
+
calls: number;
|
|
11907
|
+
consumer_module_id: string;
|
|
11908
|
+
cost_usd: number;
|
|
11909
|
+
errors: number;
|
|
11910
|
+
input_tokens: number;
|
|
11911
|
+
output_tokens: number;
|
|
11912
|
+
total_tokens: number;
|
|
11913
|
+
}[];
|
|
11914
|
+
};
|
|
11090
11915
|
apply_stock_consumption: {
|
|
11091
11916
|
Args: {
|
|
11092
11917
|
p_order_id: string;
|
|
@@ -11235,6 +12060,12 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
11235
12060
|
Args: never;
|
|
11236
12061
|
Returns: string;
|
|
11237
12062
|
};
|
|
12063
|
+
custom_access_token_hook: {
|
|
12064
|
+
Args: {
|
|
12065
|
+
event: import("../integrations/supabase/types").Json;
|
|
12066
|
+
};
|
|
12067
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
12068
|
+
};
|
|
11238
12069
|
dashboard_alert_counts: {
|
|
11239
12070
|
Args: never;
|
|
11240
12071
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -11570,6 +12401,14 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
11570
12401
|
};
|
|
11571
12402
|
Returns: string;
|
|
11572
12403
|
};
|
|
12404
|
+
has_module_permission: {
|
|
12405
|
+
Args: {
|
|
12406
|
+
_min: string;
|
|
12407
|
+
_module_id: string;
|
|
12408
|
+
_user_id: string;
|
|
12409
|
+
};
|
|
12410
|
+
Returns: boolean;
|
|
12411
|
+
};
|
|
11573
12412
|
has_role: {
|
|
11574
12413
|
Args: {
|
|
11575
12414
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -11595,6 +12434,20 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
11595
12434
|
};
|
|
11596
12435
|
Returns: boolean;
|
|
11597
12436
|
};
|
|
12437
|
+
jwt_has_role: {
|
|
12438
|
+
Args: {
|
|
12439
|
+
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
12440
|
+
};
|
|
12441
|
+
Returns: boolean;
|
|
12442
|
+
};
|
|
12443
|
+
list_monteurs: {
|
|
12444
|
+
Args: never;
|
|
12445
|
+
Returns: {
|
|
12446
|
+
display_name: string;
|
|
12447
|
+
email: string;
|
|
12448
|
+
user_id: string;
|
|
12449
|
+
}[];
|
|
12450
|
+
};
|
|
11598
12451
|
local_effective_price: {
|
|
11599
12452
|
Args: {
|
|
11600
12453
|
_customer_id: string;
|
|
@@ -11611,6 +12464,22 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
11611
12464
|
source_id: string;
|
|
11612
12465
|
}[];
|
|
11613
12466
|
};
|
|
12467
|
+
log_ai_call: {
|
|
12468
|
+
Args: {
|
|
12469
|
+
_consumer_module_id: string;
|
|
12470
|
+
_cost_usd: number;
|
|
12471
|
+
_duration_ms: number;
|
|
12472
|
+
_error_code: string;
|
|
12473
|
+
_error_message: string;
|
|
12474
|
+
_input_tokens: number;
|
|
12475
|
+
_model_slug: string;
|
|
12476
|
+
_output_tokens: number;
|
|
12477
|
+
_provider_slug: string;
|
|
12478
|
+
_status: string;
|
|
12479
|
+
_total_tokens: number;
|
|
12480
|
+
};
|
|
12481
|
+
Returns: string;
|
|
12482
|
+
};
|
|
11614
12483
|
mark_offer_clicked: {
|
|
11615
12484
|
Args: {
|
|
11616
12485
|
p_code: string;
|
|
@@ -11623,6 +12492,12 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
11623
12492
|
};
|
|
11624
12493
|
Returns: undefined;
|
|
11625
12494
|
};
|
|
12495
|
+
mark_shipment_shipped: {
|
|
12496
|
+
Args: {
|
|
12497
|
+
p_shipment_id: string;
|
|
12498
|
+
};
|
|
12499
|
+
Returns: undefined;
|
|
12500
|
+
};
|
|
11626
12501
|
next_order_number: {
|
|
11627
12502
|
Args: {
|
|
11628
12503
|
p_prefix: string;
|
|
@@ -12099,9 +12974,12 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
12099
12974
|
};
|
|
12100
12975
|
};
|
|
12101
12976
|
Enums: {
|
|
12102
|
-
app_role: "admin" | "
|
|
12977
|
+
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
|
|
12103
12978
|
exact_env: "staging" | "live";
|
|
12104
12979
|
exact_push_status: "pending" | "sent" | "error";
|
|
12980
|
+
itk_customer_segment: "Business" | "Private";
|
|
12981
|
+
itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
|
|
12982
|
+
planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
|
|
12105
12983
|
quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
|
|
12106
12984
|
};
|
|
12107
12985
|
CompositeTypes: { [_ in never]: never; };
|