@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
|
@@ -288,6 +288,57 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
|
|
|
288
288
|
referencedColumns: ["id"];
|
|
289
289
|
}];
|
|
290
290
|
};
|
|
291
|
+
ai_call_log: {
|
|
292
|
+
Row: {
|
|
293
|
+
consumer_module_id: string;
|
|
294
|
+
cost_usd: number | null;
|
|
295
|
+
created_at: string;
|
|
296
|
+
created_by: string | null;
|
|
297
|
+
duration_ms: number | null;
|
|
298
|
+
error_code: string | null;
|
|
299
|
+
error_message: string | null;
|
|
300
|
+
id: string;
|
|
301
|
+
input_tokens: number;
|
|
302
|
+
model_slug: string | null;
|
|
303
|
+
output_tokens: number;
|
|
304
|
+
provider_slug: string | null;
|
|
305
|
+
status: string;
|
|
306
|
+
total_tokens: number;
|
|
307
|
+
};
|
|
308
|
+
Insert: {
|
|
309
|
+
consumer_module_id: string;
|
|
310
|
+
cost_usd?: number | null;
|
|
311
|
+
created_at?: string;
|
|
312
|
+
created_by?: string | null;
|
|
313
|
+
duration_ms?: number | null;
|
|
314
|
+
error_code?: string | null;
|
|
315
|
+
error_message?: string | null;
|
|
316
|
+
id?: string;
|
|
317
|
+
input_tokens?: number;
|
|
318
|
+
model_slug?: string | null;
|
|
319
|
+
output_tokens?: number;
|
|
320
|
+
provider_slug?: string | null;
|
|
321
|
+
status: string;
|
|
322
|
+
total_tokens?: number;
|
|
323
|
+
};
|
|
324
|
+
Update: {
|
|
325
|
+
consumer_module_id?: string;
|
|
326
|
+
cost_usd?: number | null;
|
|
327
|
+
created_at?: string;
|
|
328
|
+
created_by?: string | null;
|
|
329
|
+
duration_ms?: number | null;
|
|
330
|
+
error_code?: string | null;
|
|
331
|
+
error_message?: string | null;
|
|
332
|
+
id?: string;
|
|
333
|
+
input_tokens?: number;
|
|
334
|
+
model_slug?: string | null;
|
|
335
|
+
output_tokens?: number;
|
|
336
|
+
provider_slug?: string | null;
|
|
337
|
+
status?: string;
|
|
338
|
+
total_tokens?: number;
|
|
339
|
+
};
|
|
340
|
+
Relationships: [];
|
|
341
|
+
};
|
|
291
342
|
ai_credentials: {
|
|
292
343
|
Row: {
|
|
293
344
|
active: boolean;
|
|
@@ -324,6 +375,36 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
|
|
|
324
375
|
referencedColumns: ["id"];
|
|
325
376
|
}];
|
|
326
377
|
};
|
|
378
|
+
ai_goals: {
|
|
379
|
+
Row: {
|
|
380
|
+
active: boolean;
|
|
381
|
+
created_at: string;
|
|
382
|
+
description: string | null;
|
|
383
|
+
key: string;
|
|
384
|
+
label: string;
|
|
385
|
+
sort_order: number;
|
|
386
|
+
updated_at: string;
|
|
387
|
+
};
|
|
388
|
+
Insert: {
|
|
389
|
+
active?: boolean;
|
|
390
|
+
created_at?: string;
|
|
391
|
+
description?: string | null;
|
|
392
|
+
key: string;
|
|
393
|
+
label: string;
|
|
394
|
+
sort_order?: number;
|
|
395
|
+
updated_at?: string;
|
|
396
|
+
};
|
|
397
|
+
Update: {
|
|
398
|
+
active?: boolean;
|
|
399
|
+
created_at?: string;
|
|
400
|
+
description?: string | null;
|
|
401
|
+
key?: string;
|
|
402
|
+
label?: string;
|
|
403
|
+
sort_order?: number;
|
|
404
|
+
updated_at?: string;
|
|
405
|
+
};
|
|
406
|
+
Relationships: [];
|
|
407
|
+
};
|
|
327
408
|
ai_model_pricing: {
|
|
328
409
|
Row: {
|
|
329
410
|
created_at: string;
|
|
@@ -1110,6 +1191,141 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
|
|
|
1110
1191
|
};
|
|
1111
1192
|
Relationships: [];
|
|
1112
1193
|
};
|
|
1194
|
+
cart_planning_pick_times: {
|
|
1195
|
+
Row: {
|
|
1196
|
+
created_at: string;
|
|
1197
|
+
id: string;
|
|
1198
|
+
pot_size: string;
|
|
1199
|
+
seconds_per_cart: number;
|
|
1200
|
+
updated_at: string;
|
|
1201
|
+
};
|
|
1202
|
+
Insert: {
|
|
1203
|
+
created_at?: string;
|
|
1204
|
+
id?: string;
|
|
1205
|
+
pot_size: string;
|
|
1206
|
+
seconds_per_cart: number;
|
|
1207
|
+
updated_at?: string;
|
|
1208
|
+
};
|
|
1209
|
+
Update: {
|
|
1210
|
+
created_at?: string;
|
|
1211
|
+
id?: string;
|
|
1212
|
+
pot_size?: string;
|
|
1213
|
+
seconds_per_cart?: number;
|
|
1214
|
+
updated_at?: string;
|
|
1215
|
+
};
|
|
1216
|
+
Relationships: [];
|
|
1217
|
+
};
|
|
1218
|
+
cart_planning_product_overrides: {
|
|
1219
|
+
Row: {
|
|
1220
|
+
created_at: string;
|
|
1221
|
+
id: string;
|
|
1222
|
+
max_party_share_per_layer_pct_override: number | null;
|
|
1223
|
+
never_mix: boolean;
|
|
1224
|
+
notes: string | null;
|
|
1225
|
+
product_id: string;
|
|
1226
|
+
updated_at: string;
|
|
1227
|
+
};
|
|
1228
|
+
Insert: {
|
|
1229
|
+
created_at?: string;
|
|
1230
|
+
id?: string;
|
|
1231
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
1232
|
+
never_mix?: boolean;
|
|
1233
|
+
notes?: string | null;
|
|
1234
|
+
product_id: string;
|
|
1235
|
+
updated_at?: string;
|
|
1236
|
+
};
|
|
1237
|
+
Update: {
|
|
1238
|
+
created_at?: string;
|
|
1239
|
+
id?: string;
|
|
1240
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
1241
|
+
never_mix?: boolean;
|
|
1242
|
+
notes?: string | null;
|
|
1243
|
+
product_id?: string;
|
|
1244
|
+
updated_at?: string;
|
|
1245
|
+
};
|
|
1246
|
+
Relationships: [{
|
|
1247
|
+
foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
|
|
1248
|
+
columns: ["product_id"];
|
|
1249
|
+
isOneToOne: true;
|
|
1250
|
+
referencedRelation: "products";
|
|
1251
|
+
referencedColumns: ["id"];
|
|
1252
|
+
}];
|
|
1253
|
+
};
|
|
1254
|
+
cart_planning_settings: {
|
|
1255
|
+
Row: {
|
|
1256
|
+
allow_editing_after_pickstation_send: boolean;
|
|
1257
|
+
buffer_grouping_mode: string;
|
|
1258
|
+
combine_floriday_orders: boolean;
|
|
1259
|
+
combine_floriday_orders_window: string;
|
|
1260
|
+
combine_orders_scope: string;
|
|
1261
|
+
default_workers: number;
|
|
1262
|
+
id: number;
|
|
1263
|
+
max_beladingen_per_layer: number;
|
|
1264
|
+
max_customers_per_cart: number;
|
|
1265
|
+
max_one_customer_per_layer: boolean;
|
|
1266
|
+
max_party_share_per_layer_pct: number;
|
|
1267
|
+
optimization_strategy: string;
|
|
1268
|
+
own_cart_from_layers: number;
|
|
1269
|
+
pick_time_mode: string;
|
|
1270
|
+
plants_per_day: number;
|
|
1271
|
+
plants_per_hour: number;
|
|
1272
|
+
require_same_carrier: boolean;
|
|
1273
|
+
require_same_crate_type: boolean;
|
|
1274
|
+
require_same_delivery_date: boolean;
|
|
1275
|
+
require_same_delivery_location: boolean;
|
|
1276
|
+
updated_at: string;
|
|
1277
|
+
updated_by: string | null;
|
|
1278
|
+
};
|
|
1279
|
+
Insert: {
|
|
1280
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
1281
|
+
buffer_grouping_mode?: string;
|
|
1282
|
+
combine_floriday_orders?: boolean;
|
|
1283
|
+
combine_floriday_orders_window?: string;
|
|
1284
|
+
combine_orders_scope?: string;
|
|
1285
|
+
default_workers?: number;
|
|
1286
|
+
id?: number;
|
|
1287
|
+
max_beladingen_per_layer?: number;
|
|
1288
|
+
max_customers_per_cart?: number;
|
|
1289
|
+
max_one_customer_per_layer?: boolean;
|
|
1290
|
+
max_party_share_per_layer_pct?: number;
|
|
1291
|
+
optimization_strategy?: string;
|
|
1292
|
+
own_cart_from_layers?: number;
|
|
1293
|
+
pick_time_mode?: string;
|
|
1294
|
+
plants_per_day?: number;
|
|
1295
|
+
plants_per_hour?: number;
|
|
1296
|
+
require_same_carrier?: boolean;
|
|
1297
|
+
require_same_crate_type?: boolean;
|
|
1298
|
+
require_same_delivery_date?: boolean;
|
|
1299
|
+
require_same_delivery_location?: boolean;
|
|
1300
|
+
updated_at?: string;
|
|
1301
|
+
updated_by?: string | null;
|
|
1302
|
+
};
|
|
1303
|
+
Update: {
|
|
1304
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
1305
|
+
buffer_grouping_mode?: string;
|
|
1306
|
+
combine_floriday_orders?: boolean;
|
|
1307
|
+
combine_floriday_orders_window?: string;
|
|
1308
|
+
combine_orders_scope?: string;
|
|
1309
|
+
default_workers?: number;
|
|
1310
|
+
id?: number;
|
|
1311
|
+
max_beladingen_per_layer?: number;
|
|
1312
|
+
max_customers_per_cart?: number;
|
|
1313
|
+
max_one_customer_per_layer?: boolean;
|
|
1314
|
+
max_party_share_per_layer_pct?: number;
|
|
1315
|
+
optimization_strategy?: string;
|
|
1316
|
+
own_cart_from_layers?: number;
|
|
1317
|
+
pick_time_mode?: string;
|
|
1318
|
+
plants_per_day?: number;
|
|
1319
|
+
plants_per_hour?: number;
|
|
1320
|
+
require_same_carrier?: boolean;
|
|
1321
|
+
require_same_crate_type?: boolean;
|
|
1322
|
+
require_same_delivery_date?: boolean;
|
|
1323
|
+
require_same_delivery_location?: boolean;
|
|
1324
|
+
updated_at?: string;
|
|
1325
|
+
updated_by?: string | null;
|
|
1326
|
+
};
|
|
1327
|
+
Relationships: [];
|
|
1328
|
+
};
|
|
1113
1329
|
cart_replan_queue: {
|
|
1114
1330
|
Row: {
|
|
1115
1331
|
attempts: number;
|
|
@@ -1140,6 +1356,39 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
|
|
|
1140
1356
|
referencedColumns: ["id"];
|
|
1141
1357
|
}];
|
|
1142
1358
|
};
|
|
1359
|
+
cart_types: {
|
|
1360
|
+
Row: {
|
|
1361
|
+
created_at: string;
|
|
1362
|
+
id: string;
|
|
1363
|
+
is_default: boolean;
|
|
1364
|
+
layer_length_cm: number;
|
|
1365
|
+
layer_width_cm: number;
|
|
1366
|
+
layers_per_cart: number;
|
|
1367
|
+
name: string;
|
|
1368
|
+
updated_at: string;
|
|
1369
|
+
};
|
|
1370
|
+
Insert: {
|
|
1371
|
+
created_at?: string;
|
|
1372
|
+
id?: string;
|
|
1373
|
+
is_default?: boolean;
|
|
1374
|
+
layer_length_cm: number;
|
|
1375
|
+
layer_width_cm: number;
|
|
1376
|
+
layers_per_cart?: number;
|
|
1377
|
+
name: string;
|
|
1378
|
+
updated_at?: string;
|
|
1379
|
+
};
|
|
1380
|
+
Update: {
|
|
1381
|
+
created_at?: string;
|
|
1382
|
+
id?: string;
|
|
1383
|
+
is_default?: boolean;
|
|
1384
|
+
layer_length_cm?: number;
|
|
1385
|
+
layer_width_cm?: number;
|
|
1386
|
+
layers_per_cart?: number;
|
|
1387
|
+
name?: string;
|
|
1388
|
+
updated_at?: string;
|
|
1389
|
+
};
|
|
1390
|
+
Relationships: [];
|
|
1391
|
+
};
|
|
1143
1392
|
catalog_articles_cache: {
|
|
1144
1393
|
Row: {
|
|
1145
1394
|
created_at: string;
|
|
@@ -1227,6 +1476,36 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
|
|
|
1227
1476
|
};
|
|
1228
1477
|
Relationships: [];
|
|
1229
1478
|
};
|
|
1479
|
+
crate_types: {
|
|
1480
|
+
Row: {
|
|
1481
|
+
created_at: string;
|
|
1482
|
+
id: string;
|
|
1483
|
+
length_cm: number;
|
|
1484
|
+
name: string;
|
|
1485
|
+
plants_per_crate: number;
|
|
1486
|
+
updated_at: string;
|
|
1487
|
+
width_cm: number;
|
|
1488
|
+
};
|
|
1489
|
+
Insert: {
|
|
1490
|
+
created_at?: string;
|
|
1491
|
+
id?: string;
|
|
1492
|
+
length_cm: number;
|
|
1493
|
+
name: string;
|
|
1494
|
+
plants_per_crate?: number;
|
|
1495
|
+
updated_at?: string;
|
|
1496
|
+
width_cm: number;
|
|
1497
|
+
};
|
|
1498
|
+
Update: {
|
|
1499
|
+
created_at?: string;
|
|
1500
|
+
id?: string;
|
|
1501
|
+
length_cm?: number;
|
|
1502
|
+
name?: string;
|
|
1503
|
+
plants_per_crate?: number;
|
|
1504
|
+
updated_at?: string;
|
|
1505
|
+
width_cm?: number;
|
|
1506
|
+
};
|
|
1507
|
+
Relationships: [];
|
|
1508
|
+
};
|
|
1230
1509
|
customer_audit_log: {
|
|
1231
1510
|
Row: {
|
|
1232
1511
|
action: string;
|
|
@@ -5744,27 +6023,309 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
|
|
|
5744
6023
|
};
|
|
5745
6024
|
Insert: {
|
|
5746
6025
|
created_at?: string;
|
|
5747
|
-
created_by?: string | null;
|
|
6026
|
+
created_by?: string | null;
|
|
6027
|
+
id?: string;
|
|
6028
|
+
period_end: string;
|
|
6029
|
+
period_start: string;
|
|
6030
|
+
status?: string;
|
|
6031
|
+
total_excl_vat?: number | null;
|
|
6032
|
+
total_incl_vat?: number | null;
|
|
6033
|
+
vat_amount?: number | null;
|
|
6034
|
+
};
|
|
6035
|
+
Update: {
|
|
6036
|
+
created_at?: string;
|
|
6037
|
+
created_by?: string | null;
|
|
6038
|
+
id?: string;
|
|
6039
|
+
period_end?: string;
|
|
6040
|
+
period_start?: string;
|
|
6041
|
+
status?: string;
|
|
6042
|
+
total_excl_vat?: number | null;
|
|
6043
|
+
total_incl_vat?: number | null;
|
|
6044
|
+
vat_amount?: number | null;
|
|
6045
|
+
};
|
|
6046
|
+
Relationships: [];
|
|
6047
|
+
};
|
|
6048
|
+
itk_contact_persons: {
|
|
6049
|
+
Row: {
|
|
6050
|
+
created_at: string;
|
|
6051
|
+
customer_id: string;
|
|
6052
|
+
email: string | null;
|
|
6053
|
+
id: string;
|
|
6054
|
+
name: string;
|
|
6055
|
+
phone: string | null;
|
|
6056
|
+
role: string | null;
|
|
6057
|
+
updated_at: string;
|
|
6058
|
+
};
|
|
6059
|
+
Insert: {
|
|
6060
|
+
created_at?: string;
|
|
6061
|
+
customer_id: string;
|
|
6062
|
+
email?: string | null;
|
|
6063
|
+
id?: string;
|
|
6064
|
+
name: string;
|
|
6065
|
+
phone?: string | null;
|
|
6066
|
+
role?: string | null;
|
|
6067
|
+
updated_at?: string;
|
|
6068
|
+
};
|
|
6069
|
+
Update: {
|
|
6070
|
+
created_at?: string;
|
|
6071
|
+
customer_id?: string;
|
|
6072
|
+
email?: string | null;
|
|
6073
|
+
id?: string;
|
|
6074
|
+
name?: string;
|
|
6075
|
+
phone?: string | null;
|
|
6076
|
+
role?: string | null;
|
|
6077
|
+
updated_at?: string;
|
|
6078
|
+
};
|
|
6079
|
+
Relationships: [{
|
|
6080
|
+
foreignKeyName: "itk_contact_persons_customer_id_fkey";
|
|
6081
|
+
columns: ["customer_id"];
|
|
6082
|
+
isOneToOne: false;
|
|
6083
|
+
referencedRelation: "itk_customers";
|
|
6084
|
+
referencedColumns: ["id"];
|
|
6085
|
+
}];
|
|
6086
|
+
};
|
|
6087
|
+
itk_customer_dynamic_values: {
|
|
6088
|
+
Row: {
|
|
6089
|
+
created_at: string;
|
|
6090
|
+
customer_id: string;
|
|
6091
|
+
field_id: string;
|
|
6092
|
+
id: string;
|
|
6093
|
+
updated_at: string;
|
|
6094
|
+
value: string | null;
|
|
6095
|
+
};
|
|
6096
|
+
Insert: {
|
|
6097
|
+
created_at?: string;
|
|
6098
|
+
customer_id: string;
|
|
6099
|
+
field_id: string;
|
|
6100
|
+
id?: string;
|
|
6101
|
+
updated_at?: string;
|
|
6102
|
+
value?: string | null;
|
|
6103
|
+
};
|
|
6104
|
+
Update: {
|
|
6105
|
+
created_at?: string;
|
|
6106
|
+
customer_id?: string;
|
|
6107
|
+
field_id?: string;
|
|
6108
|
+
id?: string;
|
|
6109
|
+
updated_at?: string;
|
|
6110
|
+
value?: string | null;
|
|
6111
|
+
};
|
|
6112
|
+
Relationships: [{
|
|
6113
|
+
foreignKeyName: "itk_customer_dynamic_values_customer_id_fkey";
|
|
6114
|
+
columns: ["customer_id"];
|
|
6115
|
+
isOneToOne: false;
|
|
6116
|
+
referencedRelation: "itk_customers";
|
|
6117
|
+
referencedColumns: ["id"];
|
|
6118
|
+
}, {
|
|
6119
|
+
foreignKeyName: "itk_customer_dynamic_values_field_id_fkey";
|
|
6120
|
+
columns: ["field_id"];
|
|
6121
|
+
isOneToOne: false;
|
|
6122
|
+
referencedRelation: "itk_dynamic_fields";
|
|
6123
|
+
referencedColumns: ["id"];
|
|
6124
|
+
}];
|
|
6125
|
+
};
|
|
6126
|
+
itk_customer_notes: {
|
|
6127
|
+
Row: {
|
|
6128
|
+
body: string;
|
|
6129
|
+
created_at: string;
|
|
6130
|
+
created_by: string | null;
|
|
6131
|
+
customer_id: string;
|
|
6132
|
+
id: string;
|
|
6133
|
+
note_type: string;
|
|
6134
|
+
updated_at: string;
|
|
6135
|
+
};
|
|
6136
|
+
Insert: {
|
|
6137
|
+
body: string;
|
|
6138
|
+
created_at?: string;
|
|
6139
|
+
created_by?: string | null;
|
|
6140
|
+
customer_id: string;
|
|
6141
|
+
id?: string;
|
|
6142
|
+
note_type?: string;
|
|
6143
|
+
updated_at?: string;
|
|
6144
|
+
};
|
|
6145
|
+
Update: {
|
|
6146
|
+
body?: string;
|
|
6147
|
+
created_at?: string;
|
|
6148
|
+
created_by?: string | null;
|
|
6149
|
+
customer_id?: string;
|
|
6150
|
+
id?: string;
|
|
6151
|
+
note_type?: string;
|
|
6152
|
+
updated_at?: string;
|
|
6153
|
+
};
|
|
6154
|
+
Relationships: [{
|
|
6155
|
+
foreignKeyName: "itk_customer_notes_customer_id_fkey";
|
|
6156
|
+
columns: ["customer_id"];
|
|
6157
|
+
isOneToOne: false;
|
|
6158
|
+
referencedRelation: "itk_customers";
|
|
6159
|
+
referencedColumns: ["id"];
|
|
6160
|
+
}];
|
|
6161
|
+
};
|
|
6162
|
+
itk_customers: {
|
|
6163
|
+
Row: {
|
|
6164
|
+
billing_city: string | null;
|
|
6165
|
+
billing_postcode: string | null;
|
|
6166
|
+
billing_street: string | null;
|
|
6167
|
+
created_at: string;
|
|
6168
|
+
general_email: string | null;
|
|
6169
|
+
general_phone: string | null;
|
|
6170
|
+
id: string;
|
|
6171
|
+
legacy_customer_id: string | null;
|
|
6172
|
+
name: string;
|
|
6173
|
+
segment: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
6174
|
+
updated_at: string;
|
|
6175
|
+
};
|
|
6176
|
+
Insert: {
|
|
6177
|
+
billing_city?: string | null;
|
|
6178
|
+
billing_postcode?: string | null;
|
|
6179
|
+
billing_street?: string | null;
|
|
6180
|
+
created_at?: string;
|
|
6181
|
+
general_email?: string | null;
|
|
6182
|
+
general_phone?: string | null;
|
|
6183
|
+
id?: string;
|
|
6184
|
+
legacy_customer_id?: string | null;
|
|
6185
|
+
name: string;
|
|
6186
|
+
segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
6187
|
+
updated_at?: string;
|
|
6188
|
+
};
|
|
6189
|
+
Update: {
|
|
6190
|
+
billing_city?: string | null;
|
|
6191
|
+
billing_postcode?: string | null;
|
|
6192
|
+
billing_street?: string | null;
|
|
6193
|
+
created_at?: string;
|
|
6194
|
+
general_email?: string | null;
|
|
6195
|
+
general_phone?: string | null;
|
|
6196
|
+
id?: string;
|
|
6197
|
+
legacy_customer_id?: string | null;
|
|
6198
|
+
name?: string;
|
|
6199
|
+
segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
6200
|
+
updated_at?: string;
|
|
6201
|
+
};
|
|
6202
|
+
Relationships: [{
|
|
6203
|
+
foreignKeyName: "itk_customers_legacy_customer_id_fkey";
|
|
6204
|
+
columns: ["legacy_customer_id"];
|
|
6205
|
+
isOneToOne: false;
|
|
6206
|
+
referencedRelation: "customers";
|
|
6207
|
+
referencedColumns: ["id"];
|
|
6208
|
+
}];
|
|
6209
|
+
};
|
|
6210
|
+
itk_dynamic_fields: {
|
|
6211
|
+
Row: {
|
|
6212
|
+
created_at: string;
|
|
6213
|
+
field_name: string;
|
|
6214
|
+
field_type: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
6215
|
+
id: string;
|
|
6216
|
+
options: import("../integrations/supabase/types").Json;
|
|
6217
|
+
sort_order: number;
|
|
6218
|
+
updated_at: string;
|
|
6219
|
+
};
|
|
6220
|
+
Insert: {
|
|
6221
|
+
created_at?: string;
|
|
6222
|
+
field_name: string;
|
|
6223
|
+
field_type?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
6224
|
+
id?: string;
|
|
6225
|
+
options?: import("../integrations/supabase/types").Json;
|
|
6226
|
+
sort_order?: number;
|
|
6227
|
+
updated_at?: string;
|
|
6228
|
+
};
|
|
6229
|
+
Update: {
|
|
6230
|
+
created_at?: string;
|
|
6231
|
+
field_name?: string;
|
|
6232
|
+
field_type?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
6233
|
+
id?: string;
|
|
6234
|
+
options?: import("../integrations/supabase/types").Json;
|
|
6235
|
+
sort_order?: number;
|
|
6236
|
+
updated_at?: string;
|
|
6237
|
+
};
|
|
6238
|
+
Relationships: [];
|
|
6239
|
+
};
|
|
6240
|
+
itk_work_locations: {
|
|
6241
|
+
Row: {
|
|
6242
|
+
city: string | null;
|
|
6243
|
+
created_at: string;
|
|
6244
|
+
customer_id: string;
|
|
6245
|
+
id: string;
|
|
6246
|
+
instructions: string | null;
|
|
6247
|
+
label: string;
|
|
6248
|
+
latitude: number | null;
|
|
6249
|
+
longitude: number | null;
|
|
6250
|
+
postcode: string | null;
|
|
6251
|
+
street: string | null;
|
|
6252
|
+
updated_at: string;
|
|
6253
|
+
};
|
|
6254
|
+
Insert: {
|
|
6255
|
+
city?: string | null;
|
|
6256
|
+
created_at?: string;
|
|
6257
|
+
customer_id: string;
|
|
6258
|
+
id?: string;
|
|
6259
|
+
instructions?: string | null;
|
|
6260
|
+
label: string;
|
|
6261
|
+
latitude?: number | null;
|
|
6262
|
+
longitude?: number | null;
|
|
6263
|
+
postcode?: string | null;
|
|
6264
|
+
street?: string | null;
|
|
6265
|
+
updated_at?: string;
|
|
6266
|
+
};
|
|
6267
|
+
Update: {
|
|
6268
|
+
city?: string | null;
|
|
6269
|
+
created_at?: string;
|
|
6270
|
+
customer_id?: string;
|
|
6271
|
+
id?: string;
|
|
6272
|
+
instructions?: string | null;
|
|
6273
|
+
label?: string;
|
|
6274
|
+
latitude?: number | null;
|
|
6275
|
+
longitude?: number | null;
|
|
6276
|
+
postcode?: string | null;
|
|
6277
|
+
street?: string | null;
|
|
6278
|
+
updated_at?: string;
|
|
6279
|
+
};
|
|
6280
|
+
Relationships: [{
|
|
6281
|
+
foreignKeyName: "itk_work_locations_customer_id_fkey";
|
|
6282
|
+
columns: ["customer_id"];
|
|
6283
|
+
isOneToOne: false;
|
|
6284
|
+
referencedRelation: "itk_customers";
|
|
6285
|
+
referencedColumns: ["id"];
|
|
6286
|
+
}];
|
|
6287
|
+
};
|
|
6288
|
+
leave_requests: {
|
|
6289
|
+
Row: {
|
|
6290
|
+
created_at: string;
|
|
6291
|
+
end_date: string;
|
|
6292
|
+
id: string;
|
|
6293
|
+
reason: string | null;
|
|
6294
|
+
start_date: string;
|
|
6295
|
+
status: string;
|
|
6296
|
+
tenant_id: string;
|
|
6297
|
+
updated_at: string;
|
|
6298
|
+
user_id: string;
|
|
6299
|
+
};
|
|
6300
|
+
Insert: {
|
|
6301
|
+
created_at?: string;
|
|
6302
|
+
end_date: string;
|
|
5748
6303
|
id?: string;
|
|
5749
|
-
|
|
5750
|
-
|
|
6304
|
+
reason?: string | null;
|
|
6305
|
+
start_date: string;
|
|
5751
6306
|
status?: string;
|
|
5752
|
-
|
|
5753
|
-
|
|
5754
|
-
|
|
6307
|
+
tenant_id?: string;
|
|
6308
|
+
updated_at?: string;
|
|
6309
|
+
user_id: string;
|
|
5755
6310
|
};
|
|
5756
6311
|
Update: {
|
|
5757
6312
|
created_at?: string;
|
|
5758
|
-
|
|
6313
|
+
end_date?: string;
|
|
5759
6314
|
id?: string;
|
|
5760
|
-
|
|
5761
|
-
|
|
6315
|
+
reason?: string | null;
|
|
6316
|
+
start_date?: string;
|
|
5762
6317
|
status?: string;
|
|
5763
|
-
|
|
5764
|
-
|
|
5765
|
-
|
|
6318
|
+
tenant_id?: string;
|
|
6319
|
+
updated_at?: string;
|
|
6320
|
+
user_id?: string;
|
|
5766
6321
|
};
|
|
5767
|
-
Relationships: [
|
|
6322
|
+
Relationships: [{
|
|
6323
|
+
foreignKeyName: "leave_requests_user_id_fkey";
|
|
6324
|
+
columns: ["user_id"];
|
|
6325
|
+
isOneToOne: false;
|
|
6326
|
+
referencedRelation: "monteurs";
|
|
6327
|
+
referencedColumns: ["id"];
|
|
6328
|
+
}];
|
|
5768
6329
|
};
|
|
5769
6330
|
local_customer_agreements: {
|
|
5770
6331
|
Row: {
|
|
@@ -6417,6 +6978,33 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
|
|
|
6417
6978
|
};
|
|
6418
6979
|
Relationships: [];
|
|
6419
6980
|
};
|
|
6981
|
+
module_permissions: {
|
|
6982
|
+
Row: {
|
|
6983
|
+
created_at: string;
|
|
6984
|
+
id: string;
|
|
6985
|
+
module_id: string;
|
|
6986
|
+
permission: string;
|
|
6987
|
+
role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
6988
|
+
updated_at: string;
|
|
6989
|
+
};
|
|
6990
|
+
Insert: {
|
|
6991
|
+
created_at?: string;
|
|
6992
|
+
id?: string;
|
|
6993
|
+
module_id: string;
|
|
6994
|
+
permission: string;
|
|
6995
|
+
role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
6996
|
+
updated_at?: string;
|
|
6997
|
+
};
|
|
6998
|
+
Update: {
|
|
6999
|
+
created_at?: string;
|
|
7000
|
+
id?: string;
|
|
7001
|
+
module_id?: string;
|
|
7002
|
+
permission?: string;
|
|
7003
|
+
role?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
7004
|
+
updated_at?: string;
|
|
7005
|
+
};
|
|
7006
|
+
Relationships: [];
|
|
7007
|
+
};
|
|
6420
7008
|
monteurs: {
|
|
6421
7009
|
Row: {
|
|
6422
7010
|
avatar_url: string | null;
|
|
@@ -7146,6 +7734,42 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
|
|
|
7146
7734
|
};
|
|
7147
7735
|
Relationships: [];
|
|
7148
7736
|
};
|
|
7737
|
+
order_buffers: {
|
|
7738
|
+
Row: {
|
|
7739
|
+
buffer_key: string;
|
|
7740
|
+
created_at: string;
|
|
7741
|
+
customer_id: string | null;
|
|
7742
|
+
grouping_mode: string;
|
|
7743
|
+
id: string;
|
|
7744
|
+
pickup_date: string | null;
|
|
7745
|
+
pickup_location: string | null;
|
|
7746
|
+
plan_locked_at: string | null;
|
|
7747
|
+
updated_at: string;
|
|
7748
|
+
};
|
|
7749
|
+
Insert: {
|
|
7750
|
+
buffer_key: string;
|
|
7751
|
+
created_at?: string;
|
|
7752
|
+
customer_id?: string | null;
|
|
7753
|
+
grouping_mode: string;
|
|
7754
|
+
id?: string;
|
|
7755
|
+
pickup_date?: string | null;
|
|
7756
|
+
pickup_location?: string | null;
|
|
7757
|
+
plan_locked_at?: string | null;
|
|
7758
|
+
updated_at?: string;
|
|
7759
|
+
};
|
|
7760
|
+
Update: {
|
|
7761
|
+
buffer_key?: string;
|
|
7762
|
+
created_at?: string;
|
|
7763
|
+
customer_id?: string | null;
|
|
7764
|
+
grouping_mode?: string;
|
|
7765
|
+
id?: string;
|
|
7766
|
+
pickup_date?: string | null;
|
|
7767
|
+
pickup_location?: string | null;
|
|
7768
|
+
plan_locked_at?: string | null;
|
|
7769
|
+
updated_at?: string;
|
|
7770
|
+
};
|
|
7771
|
+
Relationships: [];
|
|
7772
|
+
};
|
|
7149
7773
|
order_cart_items: {
|
|
7150
7774
|
Row: {
|
|
7151
7775
|
cart_id: string;
|
|
@@ -7212,6 +7836,7 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
|
|
|
7212
7836
|
order_carts: {
|
|
7213
7837
|
Row: {
|
|
7214
7838
|
algorithm_version: number;
|
|
7839
|
+
buffer_id: string | null;
|
|
7215
7840
|
cart_number: number;
|
|
7216
7841
|
created_at: string;
|
|
7217
7842
|
id: string;
|
|
@@ -7219,13 +7844,14 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
|
|
|
7219
7844
|
is_complete: boolean;
|
|
7220
7845
|
notes: string | null;
|
|
7221
7846
|
occupancy_pct: number;
|
|
7222
|
-
order_id: string;
|
|
7847
|
+
order_id: string | null;
|
|
7223
7848
|
source: string;
|
|
7224
7849
|
total_layers_used: number;
|
|
7225
7850
|
updated_at: string;
|
|
7226
7851
|
};
|
|
7227
7852
|
Insert: {
|
|
7228
7853
|
algorithm_version?: number;
|
|
7854
|
+
buffer_id?: string | null;
|
|
7229
7855
|
cart_number: number;
|
|
7230
7856
|
created_at?: string;
|
|
7231
7857
|
id?: string;
|
|
@@ -7233,13 +7859,14 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
|
|
|
7233
7859
|
is_complete?: boolean;
|
|
7234
7860
|
notes?: string | null;
|
|
7235
7861
|
occupancy_pct?: number;
|
|
7236
|
-
order_id
|
|
7862
|
+
order_id?: string | null;
|
|
7237
7863
|
source?: string;
|
|
7238
7864
|
total_layers_used?: number;
|
|
7239
7865
|
updated_at?: string;
|
|
7240
7866
|
};
|
|
7241
7867
|
Update: {
|
|
7242
7868
|
algorithm_version?: number;
|
|
7869
|
+
buffer_id?: string | null;
|
|
7243
7870
|
cart_number?: number;
|
|
7244
7871
|
created_at?: string;
|
|
7245
7872
|
id?: string;
|
|
@@ -7247,12 +7874,18 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
|
|
|
7247
7874
|
is_complete?: boolean;
|
|
7248
7875
|
notes?: string | null;
|
|
7249
7876
|
occupancy_pct?: number;
|
|
7250
|
-
order_id?: string;
|
|
7877
|
+
order_id?: string | null;
|
|
7251
7878
|
source?: string;
|
|
7252
7879
|
total_layers_used?: number;
|
|
7253
7880
|
updated_at?: string;
|
|
7254
7881
|
};
|
|
7255
7882
|
Relationships: [{
|
|
7883
|
+
foreignKeyName: "order_carts_buffer_id_fkey";
|
|
7884
|
+
columns: ["buffer_id"];
|
|
7885
|
+
isOneToOne: false;
|
|
7886
|
+
referencedRelation: "order_buffers";
|
|
7887
|
+
referencedColumns: ["id"];
|
|
7888
|
+
}, {
|
|
7256
7889
|
foreignKeyName: "order_carts_order_id_fkey";
|
|
7257
7890
|
columns: ["order_id"];
|
|
7258
7891
|
isOneToOne: false;
|
|
@@ -7389,15 +8022,117 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
|
|
|
7389
8022
|
};
|
|
7390
8023
|
Relationships: [];
|
|
7391
8024
|
};
|
|
8025
|
+
order_shipment_items: {
|
|
8026
|
+
Row: {
|
|
8027
|
+
created_at: string;
|
|
8028
|
+
id: string;
|
|
8029
|
+
order_item_id: string;
|
|
8030
|
+
product_id: string | null;
|
|
8031
|
+
product_name: string;
|
|
8032
|
+
quantity: number;
|
|
8033
|
+
shipment_id: string;
|
|
8034
|
+
updated_at: string;
|
|
8035
|
+
};
|
|
8036
|
+
Insert: {
|
|
8037
|
+
created_at?: string;
|
|
8038
|
+
id?: string;
|
|
8039
|
+
order_item_id: string;
|
|
8040
|
+
product_id?: string | null;
|
|
8041
|
+
product_name: string;
|
|
8042
|
+
quantity: number;
|
|
8043
|
+
shipment_id: string;
|
|
8044
|
+
updated_at?: string;
|
|
8045
|
+
};
|
|
8046
|
+
Update: {
|
|
8047
|
+
created_at?: string;
|
|
8048
|
+
id?: string;
|
|
8049
|
+
order_item_id?: string;
|
|
8050
|
+
product_id?: string | null;
|
|
8051
|
+
product_name?: string;
|
|
8052
|
+
quantity?: number;
|
|
8053
|
+
shipment_id?: string;
|
|
8054
|
+
updated_at?: string;
|
|
8055
|
+
};
|
|
8056
|
+
Relationships: [{
|
|
8057
|
+
foreignKeyName: "order_shipment_items_order_item_id_fkey";
|
|
8058
|
+
columns: ["order_item_id"];
|
|
8059
|
+
isOneToOne: false;
|
|
8060
|
+
referencedRelation: "order_items";
|
|
8061
|
+
referencedColumns: ["id"];
|
|
8062
|
+
}, {
|
|
8063
|
+
foreignKeyName: "order_shipment_items_shipment_id_fkey";
|
|
8064
|
+
columns: ["shipment_id"];
|
|
8065
|
+
isOneToOne: false;
|
|
8066
|
+
referencedRelation: "order_shipments";
|
|
8067
|
+
referencedColumns: ["id"];
|
|
8068
|
+
}];
|
|
8069
|
+
};
|
|
8070
|
+
order_shipments: {
|
|
8071
|
+
Row: {
|
|
8072
|
+
carrier_id: string | null;
|
|
8073
|
+
created_at: string;
|
|
8074
|
+
delivery_date: string | null;
|
|
8075
|
+
delivery_location_id: string | null;
|
|
8076
|
+
id: string;
|
|
8077
|
+
notes: string | null;
|
|
8078
|
+
order_id: string;
|
|
8079
|
+
shipment_number: number;
|
|
8080
|
+
shipped_at: string | null;
|
|
8081
|
+
status: string;
|
|
8082
|
+
updated_at: string;
|
|
8083
|
+
};
|
|
8084
|
+
Insert: {
|
|
8085
|
+
carrier_id?: string | null;
|
|
8086
|
+
created_at?: string;
|
|
8087
|
+
delivery_date?: string | null;
|
|
8088
|
+
delivery_location_id?: string | null;
|
|
8089
|
+
id?: string;
|
|
8090
|
+
notes?: string | null;
|
|
8091
|
+
order_id: string;
|
|
8092
|
+
shipment_number: number;
|
|
8093
|
+
shipped_at?: string | null;
|
|
8094
|
+
status?: string;
|
|
8095
|
+
updated_at?: string;
|
|
8096
|
+
};
|
|
8097
|
+
Update: {
|
|
8098
|
+
carrier_id?: string | null;
|
|
8099
|
+
created_at?: string;
|
|
8100
|
+
delivery_date?: string | null;
|
|
8101
|
+
delivery_location_id?: string | null;
|
|
8102
|
+
id?: string;
|
|
8103
|
+
notes?: string | null;
|
|
8104
|
+
order_id?: string;
|
|
8105
|
+
shipment_number?: number;
|
|
8106
|
+
shipped_at?: string | null;
|
|
8107
|
+
status?: string;
|
|
8108
|
+
updated_at?: string;
|
|
8109
|
+
};
|
|
8110
|
+
Relationships: [{
|
|
8111
|
+
foreignKeyName: "order_shipments_carrier_id_fkey";
|
|
8112
|
+
columns: ["carrier_id"];
|
|
8113
|
+
isOneToOne: false;
|
|
8114
|
+
referencedRelation: "carriers";
|
|
8115
|
+
referencedColumns: ["id"];
|
|
8116
|
+
}, {
|
|
8117
|
+
foreignKeyName: "order_shipments_order_id_fkey";
|
|
8118
|
+
columns: ["order_id"];
|
|
8119
|
+
isOneToOne: false;
|
|
8120
|
+
referencedRelation: "orders";
|
|
8121
|
+
referencedColumns: ["id"];
|
|
8122
|
+
}];
|
|
8123
|
+
};
|
|
7392
8124
|
orders: {
|
|
7393
8125
|
Row: {
|
|
8126
|
+
buffer_id: string | null;
|
|
7394
8127
|
created_at: string;
|
|
7395
8128
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
7396
8129
|
customer_id: string | null;
|
|
7397
8130
|
customer_name: string;
|
|
7398
8131
|
deleted_at: string | null;
|
|
7399
|
-
delivery_date: string;
|
|
8132
|
+
delivery_date: string | null;
|
|
8133
|
+
floriday_sales_order_id: string | null;
|
|
7400
8134
|
id: string;
|
|
8135
|
+
is_reservation: boolean;
|
|
7401
8136
|
notes: string | null;
|
|
7402
8137
|
order_date: string;
|
|
7403
8138
|
order_number: string;
|
|
@@ -7409,13 +8144,16 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
|
|
|
7409
8144
|
updated_at: string;
|
|
7410
8145
|
};
|
|
7411
8146
|
Insert: {
|
|
8147
|
+
buffer_id?: string | null;
|
|
7412
8148
|
created_at?: string;
|
|
7413
8149
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
7414
8150
|
customer_id?: string | null;
|
|
7415
8151
|
customer_name?: string;
|
|
7416
8152
|
deleted_at?: string | null;
|
|
7417
|
-
delivery_date
|
|
8153
|
+
delivery_date?: string | null;
|
|
8154
|
+
floriday_sales_order_id?: string | null;
|
|
7418
8155
|
id?: string;
|
|
8156
|
+
is_reservation?: boolean;
|
|
7419
8157
|
notes?: string | null;
|
|
7420
8158
|
order_date?: string;
|
|
7421
8159
|
order_number: string;
|
|
@@ -7427,13 +8165,16 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
|
|
|
7427
8165
|
updated_at?: string;
|
|
7428
8166
|
};
|
|
7429
8167
|
Update: {
|
|
8168
|
+
buffer_id?: string | null;
|
|
7430
8169
|
created_at?: string;
|
|
7431
8170
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
7432
8171
|
customer_id?: string | null;
|
|
7433
8172
|
customer_name?: string;
|
|
7434
8173
|
deleted_at?: string | null;
|
|
7435
|
-
delivery_date?: string;
|
|
8174
|
+
delivery_date?: string | null;
|
|
8175
|
+
floriday_sales_order_id?: string | null;
|
|
7436
8176
|
id?: string;
|
|
8177
|
+
is_reservation?: boolean;
|
|
7437
8178
|
notes?: string | null;
|
|
7438
8179
|
order_date?: string;
|
|
7439
8180
|
order_number?: string;
|
|
@@ -7445,6 +8186,12 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
|
|
|
7445
8186
|
updated_at?: string;
|
|
7446
8187
|
};
|
|
7447
8188
|
Relationships: [{
|
|
8189
|
+
foreignKeyName: "orders_buffer_id_fkey";
|
|
8190
|
+
columns: ["buffer_id"];
|
|
8191
|
+
isOneToOne: false;
|
|
8192
|
+
referencedRelation: "order_buffers";
|
|
8193
|
+
referencedColumns: ["id"];
|
|
8194
|
+
}, {
|
|
7448
8195
|
foreignKeyName: "orders_customer_id_fkey";
|
|
7449
8196
|
columns: ["customer_id"];
|
|
7450
8197
|
isOneToOne: false;
|
|
@@ -7575,6 +8322,51 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
|
|
|
7575
8322
|
};
|
|
7576
8323
|
Relationships: [];
|
|
7577
8324
|
};
|
|
8325
|
+
planning_items: {
|
|
8326
|
+
Row: {
|
|
8327
|
+
assigned_monteur_id: string;
|
|
8328
|
+
created_at: string;
|
|
8329
|
+
created_by: string | null;
|
|
8330
|
+
end_at: string;
|
|
8331
|
+
id: string;
|
|
8332
|
+
notes: string | null;
|
|
8333
|
+
start_at: string;
|
|
8334
|
+
status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
|
|
8335
|
+
updated_at: string;
|
|
8336
|
+
werkbon_id: string;
|
|
8337
|
+
};
|
|
8338
|
+
Insert: {
|
|
8339
|
+
assigned_monteur_id: string;
|
|
8340
|
+
created_at?: string;
|
|
8341
|
+
created_by?: string | null;
|
|
8342
|
+
end_at: string;
|
|
8343
|
+
id?: string;
|
|
8344
|
+
notes?: string | null;
|
|
8345
|
+
start_at: string;
|
|
8346
|
+
status?: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
|
|
8347
|
+
updated_at?: string;
|
|
8348
|
+
werkbon_id: string;
|
|
8349
|
+
};
|
|
8350
|
+
Update: {
|
|
8351
|
+
assigned_monteur_id?: string;
|
|
8352
|
+
created_at?: string;
|
|
8353
|
+
created_by?: string | null;
|
|
8354
|
+
end_at?: string;
|
|
8355
|
+
id?: string;
|
|
8356
|
+
notes?: string | null;
|
|
8357
|
+
start_at?: string;
|
|
8358
|
+
status?: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
|
|
8359
|
+
updated_at?: string;
|
|
8360
|
+
werkbon_id?: string;
|
|
8361
|
+
};
|
|
8362
|
+
Relationships: [{
|
|
8363
|
+
foreignKeyName: "planning_items_werkbon_id_fkey";
|
|
8364
|
+
columns: ["werkbon_id"];
|
|
8365
|
+
isOneToOne: false;
|
|
8366
|
+
referencedRelation: "werkbonnen";
|
|
8367
|
+
referencedColumns: ["id"];
|
|
8368
|
+
}];
|
|
8369
|
+
};
|
|
7578
8370
|
product_categories: {
|
|
7579
8371
|
Row: {
|
|
7580
8372
|
color: string;
|
|
@@ -7708,6 +8500,8 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
|
|
|
7708
8500
|
Row: {
|
|
7709
8501
|
created_at: string;
|
|
7710
8502
|
description: string | null;
|
|
8503
|
+
head_product_id: string | null;
|
|
8504
|
+
head_trade_item_floriday_id: string | null;
|
|
7711
8505
|
id: string;
|
|
7712
8506
|
is_active: boolean;
|
|
7713
8507
|
name: string;
|
|
@@ -7717,6 +8511,8 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
|
|
|
7717
8511
|
Insert: {
|
|
7718
8512
|
created_at?: string;
|
|
7719
8513
|
description?: string | null;
|
|
8514
|
+
head_product_id?: string | null;
|
|
8515
|
+
head_trade_item_floriday_id?: string | null;
|
|
7720
8516
|
id?: string;
|
|
7721
8517
|
is_active?: boolean;
|
|
7722
8518
|
name: string;
|
|
@@ -7726,13 +8522,21 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
|
|
|
7726
8522
|
Update: {
|
|
7727
8523
|
created_at?: string;
|
|
7728
8524
|
description?: string | null;
|
|
8525
|
+
head_product_id?: string | null;
|
|
8526
|
+
head_trade_item_floriday_id?: string | null;
|
|
7729
8527
|
id?: string;
|
|
7730
8528
|
is_active?: boolean;
|
|
7731
8529
|
name?: string;
|
|
7732
8530
|
tenant_id?: string;
|
|
7733
8531
|
updated_at?: string;
|
|
7734
8532
|
};
|
|
7735
|
-
Relationships: [
|
|
8533
|
+
Relationships: [{
|
|
8534
|
+
foreignKeyName: "product_groups_head_product_id_fkey";
|
|
8535
|
+
columns: ["head_product_id"];
|
|
8536
|
+
isOneToOne: false;
|
|
8537
|
+
referencedRelation: "products";
|
|
8538
|
+
referencedColumns: ["id"];
|
|
8539
|
+
}];
|
|
7736
8540
|
};
|
|
7737
8541
|
products: {
|
|
7738
8542
|
Row: {
|
|
@@ -10283,6 +11087,7 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
|
|
|
10283
11087
|
internal_notes: string | null;
|
|
10284
11088
|
parent_werkbon_id: string | null;
|
|
10285
11089
|
parsed_payload: import("../integrations/supabase/types").Json | null;
|
|
11090
|
+
planning_status: string;
|
|
10286
11091
|
project_number: string | null;
|
|
10287
11092
|
room_number: string | null;
|
|
10288
11093
|
scheduled_end_time: string | null;
|
|
@@ -10290,6 +11095,7 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
|
|
|
10290
11095
|
sequence_number: number;
|
|
10291
11096
|
source_pdf_path: string | null;
|
|
10292
11097
|
status: string;
|
|
11098
|
+
technician_id: string | null;
|
|
10293
11099
|
technician_notes: string | null;
|
|
10294
11100
|
technician_notes_raw: string | null;
|
|
10295
11101
|
technician_task_description: string | null;
|
|
@@ -10310,6 +11116,7 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
|
|
|
10310
11116
|
internal_notes?: string | null;
|
|
10311
11117
|
parent_werkbon_id?: string | null;
|
|
10312
11118
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
11119
|
+
planning_status?: string;
|
|
10313
11120
|
project_number?: string | null;
|
|
10314
11121
|
room_number?: string | null;
|
|
10315
11122
|
scheduled_end_time?: string | null;
|
|
@@ -10317,6 +11124,7 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
|
|
|
10317
11124
|
sequence_number: number;
|
|
10318
11125
|
source_pdf_path?: string | null;
|
|
10319
11126
|
status?: string;
|
|
11127
|
+
technician_id?: string | null;
|
|
10320
11128
|
technician_notes?: string | null;
|
|
10321
11129
|
technician_notes_raw?: string | null;
|
|
10322
11130
|
technician_task_description?: string | null;
|
|
@@ -10337,6 +11145,7 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
|
|
|
10337
11145
|
internal_notes?: string | null;
|
|
10338
11146
|
parent_werkbon_id?: string | null;
|
|
10339
11147
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
11148
|
+
planning_status?: string;
|
|
10340
11149
|
project_number?: string | null;
|
|
10341
11150
|
room_number?: string | null;
|
|
10342
11151
|
scheduled_end_time?: string | null;
|
|
@@ -10344,6 +11153,7 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
|
|
|
10344
11153
|
sequence_number?: number;
|
|
10345
11154
|
source_pdf_path?: string | null;
|
|
10346
11155
|
status?: string;
|
|
11156
|
+
technician_id?: string | null;
|
|
10347
11157
|
technician_notes?: string | null;
|
|
10348
11158
|
technician_notes_raw?: string | null;
|
|
10349
11159
|
technician_task_description?: string | null;
|
|
@@ -10352,17 +11162,17 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
|
|
|
10352
11162
|
work_address?: string | null;
|
|
10353
11163
|
};
|
|
10354
11164
|
Relationships: [{
|
|
10355
|
-
foreignKeyName: "werkbonnen_customer_id_fkey";
|
|
10356
|
-
columns: ["customer_id"];
|
|
10357
|
-
isOneToOne: false;
|
|
10358
|
-
referencedRelation: "customers";
|
|
10359
|
-
referencedColumns: ["id"];
|
|
10360
|
-
}, {
|
|
10361
11165
|
foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
|
|
10362
11166
|
columns: ["parent_werkbon_id"];
|
|
10363
11167
|
isOneToOne: false;
|
|
10364
11168
|
referencedRelation: "werkbonnen";
|
|
10365
11169
|
referencedColumns: ["id"];
|
|
11170
|
+
}, {
|
|
11171
|
+
foreignKeyName: "werkbonnen_technician_id_fkey";
|
|
11172
|
+
columns: ["technician_id"];
|
|
11173
|
+
isOneToOne: false;
|
|
11174
|
+
referencedRelation: "monteurs";
|
|
11175
|
+
referencedColumns: ["id"];
|
|
10366
11176
|
}];
|
|
10367
11177
|
};
|
|
10368
11178
|
work_order_monteurs: {
|
|
@@ -11081,6 +11891,21 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
|
|
|
11081
11891
|
};
|
|
11082
11892
|
Returns: string;
|
|
11083
11893
|
};
|
|
11894
|
+
ai_usage_by_module: {
|
|
11895
|
+
Args: {
|
|
11896
|
+
_from: string;
|
|
11897
|
+
_to: string;
|
|
11898
|
+
};
|
|
11899
|
+
Returns: {
|
|
11900
|
+
calls: number;
|
|
11901
|
+
consumer_module_id: string;
|
|
11902
|
+
cost_usd: number;
|
|
11903
|
+
errors: number;
|
|
11904
|
+
input_tokens: number;
|
|
11905
|
+
output_tokens: number;
|
|
11906
|
+
total_tokens: number;
|
|
11907
|
+
}[];
|
|
11908
|
+
};
|
|
11084
11909
|
apply_stock_consumption: {
|
|
11085
11910
|
Args: {
|
|
11086
11911
|
p_order_id: string;
|
|
@@ -11229,6 +12054,12 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
|
|
|
11229
12054
|
Args: never;
|
|
11230
12055
|
Returns: string;
|
|
11231
12056
|
};
|
|
12057
|
+
custom_access_token_hook: {
|
|
12058
|
+
Args: {
|
|
12059
|
+
event: import("../integrations/supabase/types").Json;
|
|
12060
|
+
};
|
|
12061
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
12062
|
+
};
|
|
11232
12063
|
dashboard_alert_counts: {
|
|
11233
12064
|
Args: never;
|
|
11234
12065
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -11564,6 +12395,14 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
|
|
|
11564
12395
|
};
|
|
11565
12396
|
Returns: string;
|
|
11566
12397
|
};
|
|
12398
|
+
has_module_permission: {
|
|
12399
|
+
Args: {
|
|
12400
|
+
_min: string;
|
|
12401
|
+
_module_id: string;
|
|
12402
|
+
_user_id: string;
|
|
12403
|
+
};
|
|
12404
|
+
Returns: boolean;
|
|
12405
|
+
};
|
|
11567
12406
|
has_role: {
|
|
11568
12407
|
Args: {
|
|
11569
12408
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -11589,6 +12428,20 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
|
|
|
11589
12428
|
};
|
|
11590
12429
|
Returns: boolean;
|
|
11591
12430
|
};
|
|
12431
|
+
jwt_has_role: {
|
|
12432
|
+
Args: {
|
|
12433
|
+
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
12434
|
+
};
|
|
12435
|
+
Returns: boolean;
|
|
12436
|
+
};
|
|
12437
|
+
list_monteurs: {
|
|
12438
|
+
Args: never;
|
|
12439
|
+
Returns: {
|
|
12440
|
+
display_name: string;
|
|
12441
|
+
email: string;
|
|
12442
|
+
user_id: string;
|
|
12443
|
+
}[];
|
|
12444
|
+
};
|
|
11592
12445
|
local_effective_price: {
|
|
11593
12446
|
Args: {
|
|
11594
12447
|
_customer_id: string;
|
|
@@ -11605,6 +12458,22 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
|
|
|
11605
12458
|
source_id: string;
|
|
11606
12459
|
}[];
|
|
11607
12460
|
};
|
|
12461
|
+
log_ai_call: {
|
|
12462
|
+
Args: {
|
|
12463
|
+
_consumer_module_id: string;
|
|
12464
|
+
_cost_usd: number;
|
|
12465
|
+
_duration_ms: number;
|
|
12466
|
+
_error_code: string;
|
|
12467
|
+
_error_message: string;
|
|
12468
|
+
_input_tokens: number;
|
|
12469
|
+
_model_slug: string;
|
|
12470
|
+
_output_tokens: number;
|
|
12471
|
+
_provider_slug: string;
|
|
12472
|
+
_status: string;
|
|
12473
|
+
_total_tokens: number;
|
|
12474
|
+
};
|
|
12475
|
+
Returns: string;
|
|
12476
|
+
};
|
|
11608
12477
|
mark_offer_clicked: {
|
|
11609
12478
|
Args: {
|
|
11610
12479
|
p_code: string;
|
|
@@ -11617,6 +12486,12 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
|
|
|
11617
12486
|
};
|
|
11618
12487
|
Returns: undefined;
|
|
11619
12488
|
};
|
|
12489
|
+
mark_shipment_shipped: {
|
|
12490
|
+
Args: {
|
|
12491
|
+
p_shipment_id: string;
|
|
12492
|
+
};
|
|
12493
|
+
Returns: undefined;
|
|
12494
|
+
};
|
|
11620
12495
|
next_order_number: {
|
|
11621
12496
|
Args: {
|
|
11622
12497
|
p_prefix: string;
|
|
@@ -12093,9 +12968,12 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
|
|
|
12093
12968
|
};
|
|
12094
12969
|
};
|
|
12095
12970
|
Enums: {
|
|
12096
|
-
app_role: "admin" | "
|
|
12971
|
+
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
|
|
12097
12972
|
exact_env: "staging" | "live";
|
|
12098
12973
|
exact_push_status: "pending" | "sent" | "error";
|
|
12974
|
+
itk_customer_segment: "Business" | "Private";
|
|
12975
|
+
itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
|
|
12976
|
+
planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
|
|
12099
12977
|
quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
|
|
12100
12978
|
};
|
|
12101
12979
|
CompositeTypes: { [_ in never]: never; };
|