@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
|
@@ -330,6 +330,57 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
330
330
|
referencedColumns: ["id"];
|
|
331
331
|
}];
|
|
332
332
|
};
|
|
333
|
+
ai_call_log: {
|
|
334
|
+
Row: {
|
|
335
|
+
consumer_module_id: string;
|
|
336
|
+
cost_usd: number | null;
|
|
337
|
+
created_at: string;
|
|
338
|
+
created_by: string | null;
|
|
339
|
+
duration_ms: number | null;
|
|
340
|
+
error_code: string | null;
|
|
341
|
+
error_message: string | null;
|
|
342
|
+
id: string;
|
|
343
|
+
input_tokens: number;
|
|
344
|
+
model_slug: string | null;
|
|
345
|
+
output_tokens: number;
|
|
346
|
+
provider_slug: string | null;
|
|
347
|
+
status: string;
|
|
348
|
+
total_tokens: number;
|
|
349
|
+
};
|
|
350
|
+
Insert: {
|
|
351
|
+
consumer_module_id: string;
|
|
352
|
+
cost_usd?: number | null;
|
|
353
|
+
created_at?: string;
|
|
354
|
+
created_by?: string | null;
|
|
355
|
+
duration_ms?: number | null;
|
|
356
|
+
error_code?: string | null;
|
|
357
|
+
error_message?: string | null;
|
|
358
|
+
id?: string;
|
|
359
|
+
input_tokens?: number;
|
|
360
|
+
model_slug?: string | null;
|
|
361
|
+
output_tokens?: number;
|
|
362
|
+
provider_slug?: string | null;
|
|
363
|
+
status: string;
|
|
364
|
+
total_tokens?: number;
|
|
365
|
+
};
|
|
366
|
+
Update: {
|
|
367
|
+
consumer_module_id?: string;
|
|
368
|
+
cost_usd?: number | null;
|
|
369
|
+
created_at?: string;
|
|
370
|
+
created_by?: string | null;
|
|
371
|
+
duration_ms?: number | null;
|
|
372
|
+
error_code?: string | null;
|
|
373
|
+
error_message?: string | null;
|
|
374
|
+
id?: string;
|
|
375
|
+
input_tokens?: number;
|
|
376
|
+
model_slug?: string | null;
|
|
377
|
+
output_tokens?: number;
|
|
378
|
+
provider_slug?: string | null;
|
|
379
|
+
status?: string;
|
|
380
|
+
total_tokens?: number;
|
|
381
|
+
};
|
|
382
|
+
Relationships: [];
|
|
383
|
+
};
|
|
333
384
|
ai_credentials: {
|
|
334
385
|
Row: {
|
|
335
386
|
active: boolean;
|
|
@@ -366,6 +417,36 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
366
417
|
referencedColumns: ["id"];
|
|
367
418
|
}];
|
|
368
419
|
};
|
|
420
|
+
ai_goals: {
|
|
421
|
+
Row: {
|
|
422
|
+
active: boolean;
|
|
423
|
+
created_at: string;
|
|
424
|
+
description: string | null;
|
|
425
|
+
key: string;
|
|
426
|
+
label: string;
|
|
427
|
+
sort_order: number;
|
|
428
|
+
updated_at: string;
|
|
429
|
+
};
|
|
430
|
+
Insert: {
|
|
431
|
+
active?: boolean;
|
|
432
|
+
created_at?: string;
|
|
433
|
+
description?: string | null;
|
|
434
|
+
key: string;
|
|
435
|
+
label: string;
|
|
436
|
+
sort_order?: number;
|
|
437
|
+
updated_at?: string;
|
|
438
|
+
};
|
|
439
|
+
Update: {
|
|
440
|
+
active?: boolean;
|
|
441
|
+
created_at?: string;
|
|
442
|
+
description?: string | null;
|
|
443
|
+
key?: string;
|
|
444
|
+
label?: string;
|
|
445
|
+
sort_order?: number;
|
|
446
|
+
updated_at?: string;
|
|
447
|
+
};
|
|
448
|
+
Relationships: [];
|
|
449
|
+
};
|
|
369
450
|
ai_model_pricing: {
|
|
370
451
|
Row: {
|
|
371
452
|
created_at: string;
|
|
@@ -1152,6 +1233,141 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
1152
1233
|
};
|
|
1153
1234
|
Relationships: [];
|
|
1154
1235
|
};
|
|
1236
|
+
cart_planning_pick_times: {
|
|
1237
|
+
Row: {
|
|
1238
|
+
created_at: string;
|
|
1239
|
+
id: string;
|
|
1240
|
+
pot_size: string;
|
|
1241
|
+
seconds_per_cart: number;
|
|
1242
|
+
updated_at: string;
|
|
1243
|
+
};
|
|
1244
|
+
Insert: {
|
|
1245
|
+
created_at?: string;
|
|
1246
|
+
id?: string;
|
|
1247
|
+
pot_size: string;
|
|
1248
|
+
seconds_per_cart: number;
|
|
1249
|
+
updated_at?: string;
|
|
1250
|
+
};
|
|
1251
|
+
Update: {
|
|
1252
|
+
created_at?: string;
|
|
1253
|
+
id?: string;
|
|
1254
|
+
pot_size?: string;
|
|
1255
|
+
seconds_per_cart?: number;
|
|
1256
|
+
updated_at?: string;
|
|
1257
|
+
};
|
|
1258
|
+
Relationships: [];
|
|
1259
|
+
};
|
|
1260
|
+
cart_planning_product_overrides: {
|
|
1261
|
+
Row: {
|
|
1262
|
+
created_at: string;
|
|
1263
|
+
id: string;
|
|
1264
|
+
max_party_share_per_layer_pct_override: number | null;
|
|
1265
|
+
never_mix: boolean;
|
|
1266
|
+
notes: string | null;
|
|
1267
|
+
product_id: string;
|
|
1268
|
+
updated_at: string;
|
|
1269
|
+
};
|
|
1270
|
+
Insert: {
|
|
1271
|
+
created_at?: string;
|
|
1272
|
+
id?: string;
|
|
1273
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
1274
|
+
never_mix?: boolean;
|
|
1275
|
+
notes?: string | null;
|
|
1276
|
+
product_id: string;
|
|
1277
|
+
updated_at?: string;
|
|
1278
|
+
};
|
|
1279
|
+
Update: {
|
|
1280
|
+
created_at?: string;
|
|
1281
|
+
id?: string;
|
|
1282
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
1283
|
+
never_mix?: boolean;
|
|
1284
|
+
notes?: string | null;
|
|
1285
|
+
product_id?: string;
|
|
1286
|
+
updated_at?: string;
|
|
1287
|
+
};
|
|
1288
|
+
Relationships: [{
|
|
1289
|
+
foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
|
|
1290
|
+
columns: ["product_id"];
|
|
1291
|
+
isOneToOne: true;
|
|
1292
|
+
referencedRelation: "products";
|
|
1293
|
+
referencedColumns: ["id"];
|
|
1294
|
+
}];
|
|
1295
|
+
};
|
|
1296
|
+
cart_planning_settings: {
|
|
1297
|
+
Row: {
|
|
1298
|
+
allow_editing_after_pickstation_send: boolean;
|
|
1299
|
+
buffer_grouping_mode: string;
|
|
1300
|
+
combine_floriday_orders: boolean;
|
|
1301
|
+
combine_floriday_orders_window: string;
|
|
1302
|
+
combine_orders_scope: string;
|
|
1303
|
+
default_workers: number;
|
|
1304
|
+
id: number;
|
|
1305
|
+
max_beladingen_per_layer: number;
|
|
1306
|
+
max_customers_per_cart: number;
|
|
1307
|
+
max_one_customer_per_layer: boolean;
|
|
1308
|
+
max_party_share_per_layer_pct: number;
|
|
1309
|
+
optimization_strategy: string;
|
|
1310
|
+
own_cart_from_layers: number;
|
|
1311
|
+
pick_time_mode: string;
|
|
1312
|
+
plants_per_day: number;
|
|
1313
|
+
plants_per_hour: number;
|
|
1314
|
+
require_same_carrier: boolean;
|
|
1315
|
+
require_same_crate_type: boolean;
|
|
1316
|
+
require_same_delivery_date: boolean;
|
|
1317
|
+
require_same_delivery_location: boolean;
|
|
1318
|
+
updated_at: string;
|
|
1319
|
+
updated_by: string | null;
|
|
1320
|
+
};
|
|
1321
|
+
Insert: {
|
|
1322
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
1323
|
+
buffer_grouping_mode?: string;
|
|
1324
|
+
combine_floriday_orders?: boolean;
|
|
1325
|
+
combine_floriday_orders_window?: string;
|
|
1326
|
+
combine_orders_scope?: string;
|
|
1327
|
+
default_workers?: number;
|
|
1328
|
+
id?: number;
|
|
1329
|
+
max_beladingen_per_layer?: number;
|
|
1330
|
+
max_customers_per_cart?: number;
|
|
1331
|
+
max_one_customer_per_layer?: boolean;
|
|
1332
|
+
max_party_share_per_layer_pct?: number;
|
|
1333
|
+
optimization_strategy?: string;
|
|
1334
|
+
own_cart_from_layers?: number;
|
|
1335
|
+
pick_time_mode?: string;
|
|
1336
|
+
plants_per_day?: number;
|
|
1337
|
+
plants_per_hour?: number;
|
|
1338
|
+
require_same_carrier?: boolean;
|
|
1339
|
+
require_same_crate_type?: boolean;
|
|
1340
|
+
require_same_delivery_date?: boolean;
|
|
1341
|
+
require_same_delivery_location?: boolean;
|
|
1342
|
+
updated_at?: string;
|
|
1343
|
+
updated_by?: string | null;
|
|
1344
|
+
};
|
|
1345
|
+
Update: {
|
|
1346
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
1347
|
+
buffer_grouping_mode?: string;
|
|
1348
|
+
combine_floriday_orders?: boolean;
|
|
1349
|
+
combine_floriday_orders_window?: string;
|
|
1350
|
+
combine_orders_scope?: string;
|
|
1351
|
+
default_workers?: number;
|
|
1352
|
+
id?: number;
|
|
1353
|
+
max_beladingen_per_layer?: number;
|
|
1354
|
+
max_customers_per_cart?: number;
|
|
1355
|
+
max_one_customer_per_layer?: boolean;
|
|
1356
|
+
max_party_share_per_layer_pct?: number;
|
|
1357
|
+
optimization_strategy?: string;
|
|
1358
|
+
own_cart_from_layers?: number;
|
|
1359
|
+
pick_time_mode?: string;
|
|
1360
|
+
plants_per_day?: number;
|
|
1361
|
+
plants_per_hour?: number;
|
|
1362
|
+
require_same_carrier?: boolean;
|
|
1363
|
+
require_same_crate_type?: boolean;
|
|
1364
|
+
require_same_delivery_date?: boolean;
|
|
1365
|
+
require_same_delivery_location?: boolean;
|
|
1366
|
+
updated_at?: string;
|
|
1367
|
+
updated_by?: string | null;
|
|
1368
|
+
};
|
|
1369
|
+
Relationships: [];
|
|
1370
|
+
};
|
|
1155
1371
|
cart_replan_queue: {
|
|
1156
1372
|
Row: {
|
|
1157
1373
|
attempts: number;
|
|
@@ -1182,6 +1398,39 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
1182
1398
|
referencedColumns: ["id"];
|
|
1183
1399
|
}];
|
|
1184
1400
|
};
|
|
1401
|
+
cart_types: {
|
|
1402
|
+
Row: {
|
|
1403
|
+
created_at: string;
|
|
1404
|
+
id: string;
|
|
1405
|
+
is_default: boolean;
|
|
1406
|
+
layer_length_cm: number;
|
|
1407
|
+
layer_width_cm: number;
|
|
1408
|
+
layers_per_cart: number;
|
|
1409
|
+
name: string;
|
|
1410
|
+
updated_at: string;
|
|
1411
|
+
};
|
|
1412
|
+
Insert: {
|
|
1413
|
+
created_at?: string;
|
|
1414
|
+
id?: string;
|
|
1415
|
+
is_default?: boolean;
|
|
1416
|
+
layer_length_cm: number;
|
|
1417
|
+
layer_width_cm: number;
|
|
1418
|
+
layers_per_cart?: number;
|
|
1419
|
+
name: string;
|
|
1420
|
+
updated_at?: string;
|
|
1421
|
+
};
|
|
1422
|
+
Update: {
|
|
1423
|
+
created_at?: string;
|
|
1424
|
+
id?: string;
|
|
1425
|
+
is_default?: boolean;
|
|
1426
|
+
layer_length_cm?: number;
|
|
1427
|
+
layer_width_cm?: number;
|
|
1428
|
+
layers_per_cart?: number;
|
|
1429
|
+
name?: string;
|
|
1430
|
+
updated_at?: string;
|
|
1431
|
+
};
|
|
1432
|
+
Relationships: [];
|
|
1433
|
+
};
|
|
1185
1434
|
catalog_articles_cache: {
|
|
1186
1435
|
Row: {
|
|
1187
1436
|
created_at: string;
|
|
@@ -1269,6 +1518,36 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
1269
1518
|
};
|
|
1270
1519
|
Relationships: [];
|
|
1271
1520
|
};
|
|
1521
|
+
crate_types: {
|
|
1522
|
+
Row: {
|
|
1523
|
+
created_at: string;
|
|
1524
|
+
id: string;
|
|
1525
|
+
length_cm: number;
|
|
1526
|
+
name: string;
|
|
1527
|
+
plants_per_crate: number;
|
|
1528
|
+
updated_at: string;
|
|
1529
|
+
width_cm: number;
|
|
1530
|
+
};
|
|
1531
|
+
Insert: {
|
|
1532
|
+
created_at?: string;
|
|
1533
|
+
id?: string;
|
|
1534
|
+
length_cm: number;
|
|
1535
|
+
name: string;
|
|
1536
|
+
plants_per_crate?: number;
|
|
1537
|
+
updated_at?: string;
|
|
1538
|
+
width_cm: number;
|
|
1539
|
+
};
|
|
1540
|
+
Update: {
|
|
1541
|
+
created_at?: string;
|
|
1542
|
+
id?: string;
|
|
1543
|
+
length_cm?: number;
|
|
1544
|
+
name?: string;
|
|
1545
|
+
plants_per_crate?: number;
|
|
1546
|
+
updated_at?: string;
|
|
1547
|
+
width_cm?: number;
|
|
1548
|
+
};
|
|
1549
|
+
Relationships: [];
|
|
1550
|
+
};
|
|
1272
1551
|
customer_audit_log: {
|
|
1273
1552
|
Row: {
|
|
1274
1553
|
action: string;
|
|
@@ -5786,27 +6065,309 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
5786
6065
|
};
|
|
5787
6066
|
Insert: {
|
|
5788
6067
|
created_at?: string;
|
|
5789
|
-
created_by?: string | null;
|
|
6068
|
+
created_by?: string | null;
|
|
6069
|
+
id?: string;
|
|
6070
|
+
period_end: string;
|
|
6071
|
+
period_start: string;
|
|
6072
|
+
status?: string;
|
|
6073
|
+
total_excl_vat?: number | null;
|
|
6074
|
+
total_incl_vat?: number | null;
|
|
6075
|
+
vat_amount?: number | null;
|
|
6076
|
+
};
|
|
6077
|
+
Update: {
|
|
6078
|
+
created_at?: string;
|
|
6079
|
+
created_by?: string | null;
|
|
6080
|
+
id?: string;
|
|
6081
|
+
period_end?: string;
|
|
6082
|
+
period_start?: string;
|
|
6083
|
+
status?: string;
|
|
6084
|
+
total_excl_vat?: number | null;
|
|
6085
|
+
total_incl_vat?: number | null;
|
|
6086
|
+
vat_amount?: number | null;
|
|
6087
|
+
};
|
|
6088
|
+
Relationships: [];
|
|
6089
|
+
};
|
|
6090
|
+
itk_contact_persons: {
|
|
6091
|
+
Row: {
|
|
6092
|
+
created_at: string;
|
|
6093
|
+
customer_id: string;
|
|
6094
|
+
email: string | null;
|
|
6095
|
+
id: string;
|
|
6096
|
+
name: string;
|
|
6097
|
+
phone: string | null;
|
|
6098
|
+
role: string | null;
|
|
6099
|
+
updated_at: string;
|
|
6100
|
+
};
|
|
6101
|
+
Insert: {
|
|
6102
|
+
created_at?: string;
|
|
6103
|
+
customer_id: string;
|
|
6104
|
+
email?: string | null;
|
|
6105
|
+
id?: string;
|
|
6106
|
+
name: string;
|
|
6107
|
+
phone?: string | null;
|
|
6108
|
+
role?: string | null;
|
|
6109
|
+
updated_at?: string;
|
|
6110
|
+
};
|
|
6111
|
+
Update: {
|
|
6112
|
+
created_at?: string;
|
|
6113
|
+
customer_id?: string;
|
|
6114
|
+
email?: string | null;
|
|
6115
|
+
id?: string;
|
|
6116
|
+
name?: string;
|
|
6117
|
+
phone?: string | null;
|
|
6118
|
+
role?: string | null;
|
|
6119
|
+
updated_at?: string;
|
|
6120
|
+
};
|
|
6121
|
+
Relationships: [{
|
|
6122
|
+
foreignKeyName: "itk_contact_persons_customer_id_fkey";
|
|
6123
|
+
columns: ["customer_id"];
|
|
6124
|
+
isOneToOne: false;
|
|
6125
|
+
referencedRelation: "itk_customers";
|
|
6126
|
+
referencedColumns: ["id"];
|
|
6127
|
+
}];
|
|
6128
|
+
};
|
|
6129
|
+
itk_customer_dynamic_values: {
|
|
6130
|
+
Row: {
|
|
6131
|
+
created_at: string;
|
|
6132
|
+
customer_id: string;
|
|
6133
|
+
field_id: string;
|
|
6134
|
+
id: string;
|
|
6135
|
+
updated_at: string;
|
|
6136
|
+
value: string | null;
|
|
6137
|
+
};
|
|
6138
|
+
Insert: {
|
|
6139
|
+
created_at?: string;
|
|
6140
|
+
customer_id: string;
|
|
6141
|
+
field_id: string;
|
|
6142
|
+
id?: string;
|
|
6143
|
+
updated_at?: string;
|
|
6144
|
+
value?: string | null;
|
|
6145
|
+
};
|
|
6146
|
+
Update: {
|
|
6147
|
+
created_at?: string;
|
|
6148
|
+
customer_id?: string;
|
|
6149
|
+
field_id?: string;
|
|
6150
|
+
id?: string;
|
|
6151
|
+
updated_at?: string;
|
|
6152
|
+
value?: string | null;
|
|
6153
|
+
};
|
|
6154
|
+
Relationships: [{
|
|
6155
|
+
foreignKeyName: "itk_customer_dynamic_values_customer_id_fkey";
|
|
6156
|
+
columns: ["customer_id"];
|
|
6157
|
+
isOneToOne: false;
|
|
6158
|
+
referencedRelation: "itk_customers";
|
|
6159
|
+
referencedColumns: ["id"];
|
|
6160
|
+
}, {
|
|
6161
|
+
foreignKeyName: "itk_customer_dynamic_values_field_id_fkey";
|
|
6162
|
+
columns: ["field_id"];
|
|
6163
|
+
isOneToOne: false;
|
|
6164
|
+
referencedRelation: "itk_dynamic_fields";
|
|
6165
|
+
referencedColumns: ["id"];
|
|
6166
|
+
}];
|
|
6167
|
+
};
|
|
6168
|
+
itk_customer_notes: {
|
|
6169
|
+
Row: {
|
|
6170
|
+
body: string;
|
|
6171
|
+
created_at: string;
|
|
6172
|
+
created_by: string | null;
|
|
6173
|
+
customer_id: string;
|
|
6174
|
+
id: string;
|
|
6175
|
+
note_type: string;
|
|
6176
|
+
updated_at: string;
|
|
6177
|
+
};
|
|
6178
|
+
Insert: {
|
|
6179
|
+
body: string;
|
|
6180
|
+
created_at?: string;
|
|
6181
|
+
created_by?: string | null;
|
|
6182
|
+
customer_id: string;
|
|
6183
|
+
id?: string;
|
|
6184
|
+
note_type?: string;
|
|
6185
|
+
updated_at?: string;
|
|
6186
|
+
};
|
|
6187
|
+
Update: {
|
|
6188
|
+
body?: string;
|
|
6189
|
+
created_at?: string;
|
|
6190
|
+
created_by?: string | null;
|
|
6191
|
+
customer_id?: string;
|
|
6192
|
+
id?: string;
|
|
6193
|
+
note_type?: string;
|
|
6194
|
+
updated_at?: string;
|
|
6195
|
+
};
|
|
6196
|
+
Relationships: [{
|
|
6197
|
+
foreignKeyName: "itk_customer_notes_customer_id_fkey";
|
|
6198
|
+
columns: ["customer_id"];
|
|
6199
|
+
isOneToOne: false;
|
|
6200
|
+
referencedRelation: "itk_customers";
|
|
6201
|
+
referencedColumns: ["id"];
|
|
6202
|
+
}];
|
|
6203
|
+
};
|
|
6204
|
+
itk_customers: {
|
|
6205
|
+
Row: {
|
|
6206
|
+
billing_city: string | null;
|
|
6207
|
+
billing_postcode: string | null;
|
|
6208
|
+
billing_street: string | null;
|
|
6209
|
+
created_at: string;
|
|
6210
|
+
general_email: string | null;
|
|
6211
|
+
general_phone: string | null;
|
|
6212
|
+
id: string;
|
|
6213
|
+
legacy_customer_id: string | null;
|
|
6214
|
+
name: string;
|
|
6215
|
+
segment: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
6216
|
+
updated_at: string;
|
|
6217
|
+
};
|
|
6218
|
+
Insert: {
|
|
6219
|
+
billing_city?: string | null;
|
|
6220
|
+
billing_postcode?: string | null;
|
|
6221
|
+
billing_street?: string | null;
|
|
6222
|
+
created_at?: string;
|
|
6223
|
+
general_email?: string | null;
|
|
6224
|
+
general_phone?: string | null;
|
|
6225
|
+
id?: string;
|
|
6226
|
+
legacy_customer_id?: string | null;
|
|
6227
|
+
name: string;
|
|
6228
|
+
segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
6229
|
+
updated_at?: string;
|
|
6230
|
+
};
|
|
6231
|
+
Update: {
|
|
6232
|
+
billing_city?: string | null;
|
|
6233
|
+
billing_postcode?: string | null;
|
|
6234
|
+
billing_street?: string | null;
|
|
6235
|
+
created_at?: string;
|
|
6236
|
+
general_email?: string | null;
|
|
6237
|
+
general_phone?: string | null;
|
|
6238
|
+
id?: string;
|
|
6239
|
+
legacy_customer_id?: string | null;
|
|
6240
|
+
name?: string;
|
|
6241
|
+
segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
6242
|
+
updated_at?: string;
|
|
6243
|
+
};
|
|
6244
|
+
Relationships: [{
|
|
6245
|
+
foreignKeyName: "itk_customers_legacy_customer_id_fkey";
|
|
6246
|
+
columns: ["legacy_customer_id"];
|
|
6247
|
+
isOneToOne: false;
|
|
6248
|
+
referencedRelation: "customers";
|
|
6249
|
+
referencedColumns: ["id"];
|
|
6250
|
+
}];
|
|
6251
|
+
};
|
|
6252
|
+
itk_dynamic_fields: {
|
|
6253
|
+
Row: {
|
|
6254
|
+
created_at: string;
|
|
6255
|
+
field_name: string;
|
|
6256
|
+
field_type: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
6257
|
+
id: string;
|
|
6258
|
+
options: import("../integrations/supabase/types").Json;
|
|
6259
|
+
sort_order: number;
|
|
6260
|
+
updated_at: string;
|
|
6261
|
+
};
|
|
6262
|
+
Insert: {
|
|
6263
|
+
created_at?: string;
|
|
6264
|
+
field_name: string;
|
|
6265
|
+
field_type?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
6266
|
+
id?: string;
|
|
6267
|
+
options?: import("../integrations/supabase/types").Json;
|
|
6268
|
+
sort_order?: number;
|
|
6269
|
+
updated_at?: string;
|
|
6270
|
+
};
|
|
6271
|
+
Update: {
|
|
6272
|
+
created_at?: string;
|
|
6273
|
+
field_name?: string;
|
|
6274
|
+
field_type?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
6275
|
+
id?: string;
|
|
6276
|
+
options?: import("../integrations/supabase/types").Json;
|
|
6277
|
+
sort_order?: number;
|
|
6278
|
+
updated_at?: string;
|
|
6279
|
+
};
|
|
6280
|
+
Relationships: [];
|
|
6281
|
+
};
|
|
6282
|
+
itk_work_locations: {
|
|
6283
|
+
Row: {
|
|
6284
|
+
city: string | null;
|
|
6285
|
+
created_at: string;
|
|
6286
|
+
customer_id: string;
|
|
6287
|
+
id: string;
|
|
6288
|
+
instructions: string | null;
|
|
6289
|
+
label: string;
|
|
6290
|
+
latitude: number | null;
|
|
6291
|
+
longitude: number | null;
|
|
6292
|
+
postcode: string | null;
|
|
6293
|
+
street: string | null;
|
|
6294
|
+
updated_at: string;
|
|
6295
|
+
};
|
|
6296
|
+
Insert: {
|
|
6297
|
+
city?: string | null;
|
|
6298
|
+
created_at?: string;
|
|
6299
|
+
customer_id: string;
|
|
6300
|
+
id?: string;
|
|
6301
|
+
instructions?: string | null;
|
|
6302
|
+
label: string;
|
|
6303
|
+
latitude?: number | null;
|
|
6304
|
+
longitude?: number | null;
|
|
6305
|
+
postcode?: string | null;
|
|
6306
|
+
street?: string | null;
|
|
6307
|
+
updated_at?: string;
|
|
6308
|
+
};
|
|
6309
|
+
Update: {
|
|
6310
|
+
city?: string | null;
|
|
6311
|
+
created_at?: string;
|
|
6312
|
+
customer_id?: string;
|
|
6313
|
+
id?: string;
|
|
6314
|
+
instructions?: string | null;
|
|
6315
|
+
label?: string;
|
|
6316
|
+
latitude?: number | null;
|
|
6317
|
+
longitude?: number | null;
|
|
6318
|
+
postcode?: string | null;
|
|
6319
|
+
street?: string | null;
|
|
6320
|
+
updated_at?: string;
|
|
6321
|
+
};
|
|
6322
|
+
Relationships: [{
|
|
6323
|
+
foreignKeyName: "itk_work_locations_customer_id_fkey";
|
|
6324
|
+
columns: ["customer_id"];
|
|
6325
|
+
isOneToOne: false;
|
|
6326
|
+
referencedRelation: "itk_customers";
|
|
6327
|
+
referencedColumns: ["id"];
|
|
6328
|
+
}];
|
|
6329
|
+
};
|
|
6330
|
+
leave_requests: {
|
|
6331
|
+
Row: {
|
|
6332
|
+
created_at: string;
|
|
6333
|
+
end_date: string;
|
|
6334
|
+
id: string;
|
|
6335
|
+
reason: string | null;
|
|
6336
|
+
start_date: string;
|
|
6337
|
+
status: string;
|
|
6338
|
+
tenant_id: string;
|
|
6339
|
+
updated_at: string;
|
|
6340
|
+
user_id: string;
|
|
6341
|
+
};
|
|
6342
|
+
Insert: {
|
|
6343
|
+
created_at?: string;
|
|
6344
|
+
end_date: string;
|
|
5790
6345
|
id?: string;
|
|
5791
|
-
|
|
5792
|
-
|
|
6346
|
+
reason?: string | null;
|
|
6347
|
+
start_date: string;
|
|
5793
6348
|
status?: string;
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
6349
|
+
tenant_id?: string;
|
|
6350
|
+
updated_at?: string;
|
|
6351
|
+
user_id: string;
|
|
5797
6352
|
};
|
|
5798
6353
|
Update: {
|
|
5799
6354
|
created_at?: string;
|
|
5800
|
-
|
|
6355
|
+
end_date?: string;
|
|
5801
6356
|
id?: string;
|
|
5802
|
-
|
|
5803
|
-
|
|
6357
|
+
reason?: string | null;
|
|
6358
|
+
start_date?: string;
|
|
5804
6359
|
status?: string;
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
6360
|
+
tenant_id?: string;
|
|
6361
|
+
updated_at?: string;
|
|
6362
|
+
user_id?: string;
|
|
5808
6363
|
};
|
|
5809
|
-
Relationships: [
|
|
6364
|
+
Relationships: [{
|
|
6365
|
+
foreignKeyName: "leave_requests_user_id_fkey";
|
|
6366
|
+
columns: ["user_id"];
|
|
6367
|
+
isOneToOne: false;
|
|
6368
|
+
referencedRelation: "monteurs";
|
|
6369
|
+
referencedColumns: ["id"];
|
|
6370
|
+
}];
|
|
5810
6371
|
};
|
|
5811
6372
|
local_customer_agreements: {
|
|
5812
6373
|
Row: {
|
|
@@ -6459,6 +7020,33 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
6459
7020
|
};
|
|
6460
7021
|
Relationships: [];
|
|
6461
7022
|
};
|
|
7023
|
+
module_permissions: {
|
|
7024
|
+
Row: {
|
|
7025
|
+
created_at: string;
|
|
7026
|
+
id: string;
|
|
7027
|
+
module_id: string;
|
|
7028
|
+
permission: string;
|
|
7029
|
+
role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
7030
|
+
updated_at: string;
|
|
7031
|
+
};
|
|
7032
|
+
Insert: {
|
|
7033
|
+
created_at?: string;
|
|
7034
|
+
id?: string;
|
|
7035
|
+
module_id: string;
|
|
7036
|
+
permission: string;
|
|
7037
|
+
role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
7038
|
+
updated_at?: string;
|
|
7039
|
+
};
|
|
7040
|
+
Update: {
|
|
7041
|
+
created_at?: string;
|
|
7042
|
+
id?: string;
|
|
7043
|
+
module_id?: string;
|
|
7044
|
+
permission?: string;
|
|
7045
|
+
role?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
7046
|
+
updated_at?: string;
|
|
7047
|
+
};
|
|
7048
|
+
Relationships: [];
|
|
7049
|
+
};
|
|
6462
7050
|
monteurs: {
|
|
6463
7051
|
Row: {
|
|
6464
7052
|
avatar_url: string | null;
|
|
@@ -7188,6 +7776,42 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
7188
7776
|
};
|
|
7189
7777
|
Relationships: [];
|
|
7190
7778
|
};
|
|
7779
|
+
order_buffers: {
|
|
7780
|
+
Row: {
|
|
7781
|
+
buffer_key: string;
|
|
7782
|
+
created_at: string;
|
|
7783
|
+
customer_id: string | null;
|
|
7784
|
+
grouping_mode: string;
|
|
7785
|
+
id: string;
|
|
7786
|
+
pickup_date: string | null;
|
|
7787
|
+
pickup_location: string | null;
|
|
7788
|
+
plan_locked_at: string | null;
|
|
7789
|
+
updated_at: string;
|
|
7790
|
+
};
|
|
7791
|
+
Insert: {
|
|
7792
|
+
buffer_key: string;
|
|
7793
|
+
created_at?: string;
|
|
7794
|
+
customer_id?: string | null;
|
|
7795
|
+
grouping_mode: string;
|
|
7796
|
+
id?: string;
|
|
7797
|
+
pickup_date?: string | null;
|
|
7798
|
+
pickup_location?: string | null;
|
|
7799
|
+
plan_locked_at?: string | null;
|
|
7800
|
+
updated_at?: string;
|
|
7801
|
+
};
|
|
7802
|
+
Update: {
|
|
7803
|
+
buffer_key?: string;
|
|
7804
|
+
created_at?: string;
|
|
7805
|
+
customer_id?: string | null;
|
|
7806
|
+
grouping_mode?: string;
|
|
7807
|
+
id?: string;
|
|
7808
|
+
pickup_date?: string | null;
|
|
7809
|
+
pickup_location?: string | null;
|
|
7810
|
+
plan_locked_at?: string | null;
|
|
7811
|
+
updated_at?: string;
|
|
7812
|
+
};
|
|
7813
|
+
Relationships: [];
|
|
7814
|
+
};
|
|
7191
7815
|
order_cart_items: {
|
|
7192
7816
|
Row: {
|
|
7193
7817
|
cart_id: string;
|
|
@@ -7254,6 +7878,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
7254
7878
|
order_carts: {
|
|
7255
7879
|
Row: {
|
|
7256
7880
|
algorithm_version: number;
|
|
7881
|
+
buffer_id: string | null;
|
|
7257
7882
|
cart_number: number;
|
|
7258
7883
|
created_at: string;
|
|
7259
7884
|
id: string;
|
|
@@ -7261,13 +7886,14 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
7261
7886
|
is_complete: boolean;
|
|
7262
7887
|
notes: string | null;
|
|
7263
7888
|
occupancy_pct: number;
|
|
7264
|
-
order_id: string;
|
|
7889
|
+
order_id: string | null;
|
|
7265
7890
|
source: string;
|
|
7266
7891
|
total_layers_used: number;
|
|
7267
7892
|
updated_at: string;
|
|
7268
7893
|
};
|
|
7269
7894
|
Insert: {
|
|
7270
7895
|
algorithm_version?: number;
|
|
7896
|
+
buffer_id?: string | null;
|
|
7271
7897
|
cart_number: number;
|
|
7272
7898
|
created_at?: string;
|
|
7273
7899
|
id?: string;
|
|
@@ -7275,13 +7901,14 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
7275
7901
|
is_complete?: boolean;
|
|
7276
7902
|
notes?: string | null;
|
|
7277
7903
|
occupancy_pct?: number;
|
|
7278
|
-
order_id
|
|
7904
|
+
order_id?: string | null;
|
|
7279
7905
|
source?: string;
|
|
7280
7906
|
total_layers_used?: number;
|
|
7281
7907
|
updated_at?: string;
|
|
7282
7908
|
};
|
|
7283
7909
|
Update: {
|
|
7284
7910
|
algorithm_version?: number;
|
|
7911
|
+
buffer_id?: string | null;
|
|
7285
7912
|
cart_number?: number;
|
|
7286
7913
|
created_at?: string;
|
|
7287
7914
|
id?: string;
|
|
@@ -7289,12 +7916,18 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
7289
7916
|
is_complete?: boolean;
|
|
7290
7917
|
notes?: string | null;
|
|
7291
7918
|
occupancy_pct?: number;
|
|
7292
|
-
order_id?: string;
|
|
7919
|
+
order_id?: string | null;
|
|
7293
7920
|
source?: string;
|
|
7294
7921
|
total_layers_used?: number;
|
|
7295
7922
|
updated_at?: string;
|
|
7296
7923
|
};
|
|
7297
7924
|
Relationships: [{
|
|
7925
|
+
foreignKeyName: "order_carts_buffer_id_fkey";
|
|
7926
|
+
columns: ["buffer_id"];
|
|
7927
|
+
isOneToOne: false;
|
|
7928
|
+
referencedRelation: "order_buffers";
|
|
7929
|
+
referencedColumns: ["id"];
|
|
7930
|
+
}, {
|
|
7298
7931
|
foreignKeyName: "order_carts_order_id_fkey";
|
|
7299
7932
|
columns: ["order_id"];
|
|
7300
7933
|
isOneToOne: false;
|
|
@@ -7431,15 +8064,117 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
7431
8064
|
};
|
|
7432
8065
|
Relationships: [];
|
|
7433
8066
|
};
|
|
8067
|
+
order_shipment_items: {
|
|
8068
|
+
Row: {
|
|
8069
|
+
created_at: string;
|
|
8070
|
+
id: string;
|
|
8071
|
+
order_item_id: string;
|
|
8072
|
+
product_id: string | null;
|
|
8073
|
+
product_name: string;
|
|
8074
|
+
quantity: number;
|
|
8075
|
+
shipment_id: string;
|
|
8076
|
+
updated_at: string;
|
|
8077
|
+
};
|
|
8078
|
+
Insert: {
|
|
8079
|
+
created_at?: string;
|
|
8080
|
+
id?: string;
|
|
8081
|
+
order_item_id: string;
|
|
8082
|
+
product_id?: string | null;
|
|
8083
|
+
product_name: string;
|
|
8084
|
+
quantity: number;
|
|
8085
|
+
shipment_id: string;
|
|
8086
|
+
updated_at?: string;
|
|
8087
|
+
};
|
|
8088
|
+
Update: {
|
|
8089
|
+
created_at?: string;
|
|
8090
|
+
id?: string;
|
|
8091
|
+
order_item_id?: string;
|
|
8092
|
+
product_id?: string | null;
|
|
8093
|
+
product_name?: string;
|
|
8094
|
+
quantity?: number;
|
|
8095
|
+
shipment_id?: string;
|
|
8096
|
+
updated_at?: string;
|
|
8097
|
+
};
|
|
8098
|
+
Relationships: [{
|
|
8099
|
+
foreignKeyName: "order_shipment_items_order_item_id_fkey";
|
|
8100
|
+
columns: ["order_item_id"];
|
|
8101
|
+
isOneToOne: false;
|
|
8102
|
+
referencedRelation: "order_items";
|
|
8103
|
+
referencedColumns: ["id"];
|
|
8104
|
+
}, {
|
|
8105
|
+
foreignKeyName: "order_shipment_items_shipment_id_fkey";
|
|
8106
|
+
columns: ["shipment_id"];
|
|
8107
|
+
isOneToOne: false;
|
|
8108
|
+
referencedRelation: "order_shipments";
|
|
8109
|
+
referencedColumns: ["id"];
|
|
8110
|
+
}];
|
|
8111
|
+
};
|
|
8112
|
+
order_shipments: {
|
|
8113
|
+
Row: {
|
|
8114
|
+
carrier_id: string | null;
|
|
8115
|
+
created_at: string;
|
|
8116
|
+
delivery_date: string | null;
|
|
8117
|
+
delivery_location_id: string | null;
|
|
8118
|
+
id: string;
|
|
8119
|
+
notes: string | null;
|
|
8120
|
+
order_id: string;
|
|
8121
|
+
shipment_number: number;
|
|
8122
|
+
shipped_at: string | null;
|
|
8123
|
+
status: string;
|
|
8124
|
+
updated_at: string;
|
|
8125
|
+
};
|
|
8126
|
+
Insert: {
|
|
8127
|
+
carrier_id?: string | null;
|
|
8128
|
+
created_at?: string;
|
|
8129
|
+
delivery_date?: string | null;
|
|
8130
|
+
delivery_location_id?: string | null;
|
|
8131
|
+
id?: string;
|
|
8132
|
+
notes?: string | null;
|
|
8133
|
+
order_id: string;
|
|
8134
|
+
shipment_number: number;
|
|
8135
|
+
shipped_at?: string | null;
|
|
8136
|
+
status?: string;
|
|
8137
|
+
updated_at?: string;
|
|
8138
|
+
};
|
|
8139
|
+
Update: {
|
|
8140
|
+
carrier_id?: string | null;
|
|
8141
|
+
created_at?: string;
|
|
8142
|
+
delivery_date?: string | null;
|
|
8143
|
+
delivery_location_id?: string | null;
|
|
8144
|
+
id?: string;
|
|
8145
|
+
notes?: string | null;
|
|
8146
|
+
order_id?: string;
|
|
8147
|
+
shipment_number?: number;
|
|
8148
|
+
shipped_at?: string | null;
|
|
8149
|
+
status?: string;
|
|
8150
|
+
updated_at?: string;
|
|
8151
|
+
};
|
|
8152
|
+
Relationships: [{
|
|
8153
|
+
foreignKeyName: "order_shipments_carrier_id_fkey";
|
|
8154
|
+
columns: ["carrier_id"];
|
|
8155
|
+
isOneToOne: false;
|
|
8156
|
+
referencedRelation: "carriers";
|
|
8157
|
+
referencedColumns: ["id"];
|
|
8158
|
+
}, {
|
|
8159
|
+
foreignKeyName: "order_shipments_order_id_fkey";
|
|
8160
|
+
columns: ["order_id"];
|
|
8161
|
+
isOneToOne: false;
|
|
8162
|
+
referencedRelation: "orders";
|
|
8163
|
+
referencedColumns: ["id"];
|
|
8164
|
+
}];
|
|
8165
|
+
};
|
|
7434
8166
|
orders: {
|
|
7435
8167
|
Row: {
|
|
8168
|
+
buffer_id: string | null;
|
|
7436
8169
|
created_at: string;
|
|
7437
8170
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
7438
8171
|
customer_id: string | null;
|
|
7439
8172
|
customer_name: string;
|
|
7440
8173
|
deleted_at: string | null;
|
|
7441
|
-
delivery_date: string;
|
|
8174
|
+
delivery_date: string | null;
|
|
8175
|
+
floriday_sales_order_id: string | null;
|
|
7442
8176
|
id: string;
|
|
8177
|
+
is_reservation: boolean;
|
|
7443
8178
|
notes: string | null;
|
|
7444
8179
|
order_date: string;
|
|
7445
8180
|
order_number: string;
|
|
@@ -7451,13 +8186,16 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
7451
8186
|
updated_at: string;
|
|
7452
8187
|
};
|
|
7453
8188
|
Insert: {
|
|
8189
|
+
buffer_id?: string | null;
|
|
7454
8190
|
created_at?: string;
|
|
7455
8191
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
7456
8192
|
customer_id?: string | null;
|
|
7457
8193
|
customer_name?: string;
|
|
7458
8194
|
deleted_at?: string | null;
|
|
7459
|
-
delivery_date
|
|
8195
|
+
delivery_date?: string | null;
|
|
8196
|
+
floriday_sales_order_id?: string | null;
|
|
7460
8197
|
id?: string;
|
|
8198
|
+
is_reservation?: boolean;
|
|
7461
8199
|
notes?: string | null;
|
|
7462
8200
|
order_date?: string;
|
|
7463
8201
|
order_number: string;
|
|
@@ -7469,13 +8207,16 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
7469
8207
|
updated_at?: string;
|
|
7470
8208
|
};
|
|
7471
8209
|
Update: {
|
|
8210
|
+
buffer_id?: string | null;
|
|
7472
8211
|
created_at?: string;
|
|
7473
8212
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
7474
8213
|
customer_id?: string | null;
|
|
7475
8214
|
customer_name?: string;
|
|
7476
8215
|
deleted_at?: string | null;
|
|
7477
|
-
delivery_date?: string;
|
|
8216
|
+
delivery_date?: string | null;
|
|
8217
|
+
floriday_sales_order_id?: string | null;
|
|
7478
8218
|
id?: string;
|
|
8219
|
+
is_reservation?: boolean;
|
|
7479
8220
|
notes?: string | null;
|
|
7480
8221
|
order_date?: string;
|
|
7481
8222
|
order_number?: string;
|
|
@@ -7487,6 +8228,12 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
7487
8228
|
updated_at?: string;
|
|
7488
8229
|
};
|
|
7489
8230
|
Relationships: [{
|
|
8231
|
+
foreignKeyName: "orders_buffer_id_fkey";
|
|
8232
|
+
columns: ["buffer_id"];
|
|
8233
|
+
isOneToOne: false;
|
|
8234
|
+
referencedRelation: "order_buffers";
|
|
8235
|
+
referencedColumns: ["id"];
|
|
8236
|
+
}, {
|
|
7490
8237
|
foreignKeyName: "orders_customer_id_fkey";
|
|
7491
8238
|
columns: ["customer_id"];
|
|
7492
8239
|
isOneToOne: false;
|
|
@@ -7617,6 +8364,51 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
7617
8364
|
};
|
|
7618
8365
|
Relationships: [];
|
|
7619
8366
|
};
|
|
8367
|
+
planning_items: {
|
|
8368
|
+
Row: {
|
|
8369
|
+
assigned_monteur_id: string;
|
|
8370
|
+
created_at: string;
|
|
8371
|
+
created_by: string | null;
|
|
8372
|
+
end_at: string;
|
|
8373
|
+
id: string;
|
|
8374
|
+
notes: string | null;
|
|
8375
|
+
start_at: string;
|
|
8376
|
+
status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
|
|
8377
|
+
updated_at: string;
|
|
8378
|
+
werkbon_id: string;
|
|
8379
|
+
};
|
|
8380
|
+
Insert: {
|
|
8381
|
+
assigned_monteur_id: string;
|
|
8382
|
+
created_at?: string;
|
|
8383
|
+
created_by?: string | null;
|
|
8384
|
+
end_at: string;
|
|
8385
|
+
id?: string;
|
|
8386
|
+
notes?: string | null;
|
|
8387
|
+
start_at: string;
|
|
8388
|
+
status?: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
|
|
8389
|
+
updated_at?: string;
|
|
8390
|
+
werkbon_id: string;
|
|
8391
|
+
};
|
|
8392
|
+
Update: {
|
|
8393
|
+
assigned_monteur_id?: string;
|
|
8394
|
+
created_at?: string;
|
|
8395
|
+
created_by?: string | null;
|
|
8396
|
+
end_at?: string;
|
|
8397
|
+
id?: string;
|
|
8398
|
+
notes?: string | null;
|
|
8399
|
+
start_at?: string;
|
|
8400
|
+
status?: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
|
|
8401
|
+
updated_at?: string;
|
|
8402
|
+
werkbon_id?: string;
|
|
8403
|
+
};
|
|
8404
|
+
Relationships: [{
|
|
8405
|
+
foreignKeyName: "planning_items_werkbon_id_fkey";
|
|
8406
|
+
columns: ["werkbon_id"];
|
|
8407
|
+
isOneToOne: false;
|
|
8408
|
+
referencedRelation: "werkbonnen";
|
|
8409
|
+
referencedColumns: ["id"];
|
|
8410
|
+
}];
|
|
8411
|
+
};
|
|
7620
8412
|
product_categories: {
|
|
7621
8413
|
Row: {
|
|
7622
8414
|
color: string;
|
|
@@ -7750,6 +8542,8 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
7750
8542
|
Row: {
|
|
7751
8543
|
created_at: string;
|
|
7752
8544
|
description: string | null;
|
|
8545
|
+
head_product_id: string | null;
|
|
8546
|
+
head_trade_item_floriday_id: string | null;
|
|
7753
8547
|
id: string;
|
|
7754
8548
|
is_active: boolean;
|
|
7755
8549
|
name: string;
|
|
@@ -7759,6 +8553,8 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
7759
8553
|
Insert: {
|
|
7760
8554
|
created_at?: string;
|
|
7761
8555
|
description?: string | null;
|
|
8556
|
+
head_product_id?: string | null;
|
|
8557
|
+
head_trade_item_floriday_id?: string | null;
|
|
7762
8558
|
id?: string;
|
|
7763
8559
|
is_active?: boolean;
|
|
7764
8560
|
name: string;
|
|
@@ -7768,13 +8564,21 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
7768
8564
|
Update: {
|
|
7769
8565
|
created_at?: string;
|
|
7770
8566
|
description?: string | null;
|
|
8567
|
+
head_product_id?: string | null;
|
|
8568
|
+
head_trade_item_floriday_id?: string | null;
|
|
7771
8569
|
id?: string;
|
|
7772
8570
|
is_active?: boolean;
|
|
7773
8571
|
name?: string;
|
|
7774
8572
|
tenant_id?: string;
|
|
7775
8573
|
updated_at?: string;
|
|
7776
8574
|
};
|
|
7777
|
-
Relationships: [
|
|
8575
|
+
Relationships: [{
|
|
8576
|
+
foreignKeyName: "product_groups_head_product_id_fkey";
|
|
8577
|
+
columns: ["head_product_id"];
|
|
8578
|
+
isOneToOne: false;
|
|
8579
|
+
referencedRelation: "products";
|
|
8580
|
+
referencedColumns: ["id"];
|
|
8581
|
+
}];
|
|
7778
8582
|
};
|
|
7779
8583
|
products: {
|
|
7780
8584
|
Row: {
|
|
@@ -10325,6 +11129,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
10325
11129
|
internal_notes: string | null;
|
|
10326
11130
|
parent_werkbon_id: string | null;
|
|
10327
11131
|
parsed_payload: import("../integrations/supabase/types").Json | null;
|
|
11132
|
+
planning_status: string;
|
|
10328
11133
|
project_number: string | null;
|
|
10329
11134
|
room_number: string | null;
|
|
10330
11135
|
scheduled_end_time: string | null;
|
|
@@ -10332,6 +11137,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
10332
11137
|
sequence_number: number;
|
|
10333
11138
|
source_pdf_path: string | null;
|
|
10334
11139
|
status: string;
|
|
11140
|
+
technician_id: string | null;
|
|
10335
11141
|
technician_notes: string | null;
|
|
10336
11142
|
technician_notes_raw: string | null;
|
|
10337
11143
|
technician_task_description: string | null;
|
|
@@ -10352,6 +11158,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
10352
11158
|
internal_notes?: string | null;
|
|
10353
11159
|
parent_werkbon_id?: string | null;
|
|
10354
11160
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
11161
|
+
planning_status?: string;
|
|
10355
11162
|
project_number?: string | null;
|
|
10356
11163
|
room_number?: string | null;
|
|
10357
11164
|
scheduled_end_time?: string | null;
|
|
@@ -10359,6 +11166,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
10359
11166
|
sequence_number: number;
|
|
10360
11167
|
source_pdf_path?: string | null;
|
|
10361
11168
|
status?: string;
|
|
11169
|
+
technician_id?: string | null;
|
|
10362
11170
|
technician_notes?: string | null;
|
|
10363
11171
|
technician_notes_raw?: string | null;
|
|
10364
11172
|
technician_task_description?: string | null;
|
|
@@ -10379,6 +11187,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
10379
11187
|
internal_notes?: string | null;
|
|
10380
11188
|
parent_werkbon_id?: string | null;
|
|
10381
11189
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
11190
|
+
planning_status?: string;
|
|
10382
11191
|
project_number?: string | null;
|
|
10383
11192
|
room_number?: string | null;
|
|
10384
11193
|
scheduled_end_time?: string | null;
|
|
@@ -10386,6 +11195,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
10386
11195
|
sequence_number?: number;
|
|
10387
11196
|
source_pdf_path?: string | null;
|
|
10388
11197
|
status?: string;
|
|
11198
|
+
technician_id?: string | null;
|
|
10389
11199
|
technician_notes?: string | null;
|
|
10390
11200
|
technician_notes_raw?: string | null;
|
|
10391
11201
|
technician_task_description?: string | null;
|
|
@@ -10394,17 +11204,17 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
10394
11204
|
work_address?: string | null;
|
|
10395
11205
|
};
|
|
10396
11206
|
Relationships: [{
|
|
10397
|
-
foreignKeyName: "werkbonnen_customer_id_fkey";
|
|
10398
|
-
columns: ["customer_id"];
|
|
10399
|
-
isOneToOne: false;
|
|
10400
|
-
referencedRelation: "customers";
|
|
10401
|
-
referencedColumns: ["id"];
|
|
10402
|
-
}, {
|
|
10403
11207
|
foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
|
|
10404
11208
|
columns: ["parent_werkbon_id"];
|
|
10405
11209
|
isOneToOne: false;
|
|
10406
11210
|
referencedRelation: "werkbonnen";
|
|
10407
11211
|
referencedColumns: ["id"];
|
|
11212
|
+
}, {
|
|
11213
|
+
foreignKeyName: "werkbonnen_technician_id_fkey";
|
|
11214
|
+
columns: ["technician_id"];
|
|
11215
|
+
isOneToOne: false;
|
|
11216
|
+
referencedRelation: "monteurs";
|
|
11217
|
+
referencedColumns: ["id"];
|
|
10408
11218
|
}];
|
|
10409
11219
|
};
|
|
10410
11220
|
work_order_monteurs: {
|
|
@@ -11123,6 +11933,21 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
11123
11933
|
};
|
|
11124
11934
|
Returns: string;
|
|
11125
11935
|
};
|
|
11936
|
+
ai_usage_by_module: {
|
|
11937
|
+
Args: {
|
|
11938
|
+
_from: string;
|
|
11939
|
+
_to: string;
|
|
11940
|
+
};
|
|
11941
|
+
Returns: {
|
|
11942
|
+
calls: number;
|
|
11943
|
+
consumer_module_id: string;
|
|
11944
|
+
cost_usd: number;
|
|
11945
|
+
errors: number;
|
|
11946
|
+
input_tokens: number;
|
|
11947
|
+
output_tokens: number;
|
|
11948
|
+
total_tokens: number;
|
|
11949
|
+
}[];
|
|
11950
|
+
};
|
|
11126
11951
|
apply_stock_consumption: {
|
|
11127
11952
|
Args: {
|
|
11128
11953
|
p_order_id: string;
|
|
@@ -11271,6 +12096,12 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
11271
12096
|
Args: never;
|
|
11272
12097
|
Returns: string;
|
|
11273
12098
|
};
|
|
12099
|
+
custom_access_token_hook: {
|
|
12100
|
+
Args: {
|
|
12101
|
+
event: import("../integrations/supabase/types").Json;
|
|
12102
|
+
};
|
|
12103
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
12104
|
+
};
|
|
11274
12105
|
dashboard_alert_counts: {
|
|
11275
12106
|
Args: never;
|
|
11276
12107
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -11606,6 +12437,14 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
11606
12437
|
};
|
|
11607
12438
|
Returns: string;
|
|
11608
12439
|
};
|
|
12440
|
+
has_module_permission: {
|
|
12441
|
+
Args: {
|
|
12442
|
+
_min: string;
|
|
12443
|
+
_module_id: string;
|
|
12444
|
+
_user_id: string;
|
|
12445
|
+
};
|
|
12446
|
+
Returns: boolean;
|
|
12447
|
+
};
|
|
11609
12448
|
has_role: {
|
|
11610
12449
|
Args: {
|
|
11611
12450
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -11631,6 +12470,20 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
11631
12470
|
};
|
|
11632
12471
|
Returns: boolean;
|
|
11633
12472
|
};
|
|
12473
|
+
jwt_has_role: {
|
|
12474
|
+
Args: {
|
|
12475
|
+
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
12476
|
+
};
|
|
12477
|
+
Returns: boolean;
|
|
12478
|
+
};
|
|
12479
|
+
list_monteurs: {
|
|
12480
|
+
Args: never;
|
|
12481
|
+
Returns: {
|
|
12482
|
+
display_name: string;
|
|
12483
|
+
email: string;
|
|
12484
|
+
user_id: string;
|
|
12485
|
+
}[];
|
|
12486
|
+
};
|
|
11634
12487
|
local_effective_price: {
|
|
11635
12488
|
Args: {
|
|
11636
12489
|
_customer_id: string;
|
|
@@ -11647,6 +12500,22 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
11647
12500
|
source_id: string;
|
|
11648
12501
|
}[];
|
|
11649
12502
|
};
|
|
12503
|
+
log_ai_call: {
|
|
12504
|
+
Args: {
|
|
12505
|
+
_consumer_module_id: string;
|
|
12506
|
+
_cost_usd: number;
|
|
12507
|
+
_duration_ms: number;
|
|
12508
|
+
_error_code: string;
|
|
12509
|
+
_error_message: string;
|
|
12510
|
+
_input_tokens: number;
|
|
12511
|
+
_model_slug: string;
|
|
12512
|
+
_output_tokens: number;
|
|
12513
|
+
_provider_slug: string;
|
|
12514
|
+
_status: string;
|
|
12515
|
+
_total_tokens: number;
|
|
12516
|
+
};
|
|
12517
|
+
Returns: string;
|
|
12518
|
+
};
|
|
11650
12519
|
mark_offer_clicked: {
|
|
11651
12520
|
Args: {
|
|
11652
12521
|
p_code: string;
|
|
@@ -11659,6 +12528,12 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
11659
12528
|
};
|
|
11660
12529
|
Returns: undefined;
|
|
11661
12530
|
};
|
|
12531
|
+
mark_shipment_shipped: {
|
|
12532
|
+
Args: {
|
|
12533
|
+
p_shipment_id: string;
|
|
12534
|
+
};
|
|
12535
|
+
Returns: undefined;
|
|
12536
|
+
};
|
|
11662
12537
|
next_order_number: {
|
|
11663
12538
|
Args: {
|
|
11664
12539
|
p_prefix: string;
|
|
@@ -12135,9 +13010,12 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
12135
13010
|
};
|
|
12136
13011
|
};
|
|
12137
13012
|
Enums: {
|
|
12138
|
-
app_role: "admin" | "
|
|
13013
|
+
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
|
|
12139
13014
|
exact_env: "staging" | "live";
|
|
12140
13015
|
exact_push_status: "pending" | "sent" | "error";
|
|
13016
|
+
itk_customer_segment: "Business" | "Private";
|
|
13017
|
+
itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
|
|
13018
|
+
planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
|
|
12141
13019
|
quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
|
|
12142
13020
|
};
|
|
12143
13021
|
CompositeTypes: { [_ in never]: never; };
|