@flowselections/floriday-klanten-module 1.0.16 → 1.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/components/klanten/FloridayDeeplinkButton.d.ts.map +1 -1
- package/dist-lib/components/klanten/FloridayDeeplinkButton.js +2 -2
- package/dist-lib/components/klanten/KlantenOverzicht.js +3 -3
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +886 -54
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +886 -54
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +886 -54
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +904 -45
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.js +3 -9
- package/dist-lib/lib/accounting/twinfield/mapping.d.ts.map +1 -1
- package/dist-lib/lib/accounting/twinfield/mapping.js +14 -2
- package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts +2538 -42
- package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts.map +1 -1
- package/dist-lib/lib/accounting.functions.d.ts +2538 -42
- package/dist-lib/lib/accounting.functions.d.ts.map +1 -1
- package/dist-lib/lib/customer-analytics.functions.d.ts +886 -54
- package/dist-lib/lib/customer-analytics.functions.d.ts.map +1 -1
- package/dist-lib/lib/customers.functions.d.ts +7614 -126
- package/dist-lib/lib/customers.functions.d.ts.map +1 -1
- package/dist-lib/lib/delivery-locations.functions.d.ts +3384 -56
- package/dist-lib/lib/delivery-locations.functions.d.ts.map +1 -1
- package/dist-lib/lib/external-customers.functions.d.ts +3384 -56
- package/dist-lib/lib/external-customers.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-assortment.functions.d.ts +886 -54
- package/dist-lib/lib/floriday-assortment.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-discounts.functions.d.ts +1834 -170
- package/dist-lib/lib/floriday-discounts.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-trade-items.functions.d.ts +886 -54
- package/dist-lib/lib/floriday-trade-items.functions.d.ts.map +1 -1
- package/dist-lib/lib/local-discounts.functions.d.ts +5922 -98
- package/dist-lib/lib/local-discounts.functions.d.ts.map +1 -1
- package/dist-lib/lib/overdue-invoices.functions.d.ts +886 -54
- package/dist-lib/lib/overdue-invoices.functions.d.ts.map +1 -1
- package/dist-lib/lib/price-groups-local.functions.d.ts +5922 -98
- package/dist-lib/lib/price-groups-local.functions.d.ts.map +1 -1
- package/dist-lib/lib/price-groups.functions.d.ts +886 -54
- package/dist-lib/lib/price-groups.functions.d.ts.map +1 -1
- package/package.json +3 -2
- package/public/flowselections-assets/Klanten/floriday-logo.png +0 -0
|
@@ -278,6 +278,57 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
278
278
|
referencedColumns: ["id"];
|
|
279
279
|
}];
|
|
280
280
|
};
|
|
281
|
+
ai_call_log: {
|
|
282
|
+
Row: {
|
|
283
|
+
consumer_module_id: string;
|
|
284
|
+
cost_usd: number | null;
|
|
285
|
+
created_at: string;
|
|
286
|
+
created_by: string | null;
|
|
287
|
+
duration_ms: number | null;
|
|
288
|
+
error_code: string | null;
|
|
289
|
+
error_message: string | null;
|
|
290
|
+
id: string;
|
|
291
|
+
input_tokens: number;
|
|
292
|
+
model_slug: string | null;
|
|
293
|
+
output_tokens: number;
|
|
294
|
+
provider_slug: string | null;
|
|
295
|
+
status: string;
|
|
296
|
+
total_tokens: number;
|
|
297
|
+
};
|
|
298
|
+
Insert: {
|
|
299
|
+
consumer_module_id: string;
|
|
300
|
+
cost_usd?: number | null;
|
|
301
|
+
created_at?: string;
|
|
302
|
+
created_by?: string | null;
|
|
303
|
+
duration_ms?: number | null;
|
|
304
|
+
error_code?: string | null;
|
|
305
|
+
error_message?: string | null;
|
|
306
|
+
id?: string;
|
|
307
|
+
input_tokens?: number;
|
|
308
|
+
model_slug?: string | null;
|
|
309
|
+
output_tokens?: number;
|
|
310
|
+
provider_slug?: string | null;
|
|
311
|
+
status: string;
|
|
312
|
+
total_tokens?: number;
|
|
313
|
+
};
|
|
314
|
+
Update: {
|
|
315
|
+
consumer_module_id?: string;
|
|
316
|
+
cost_usd?: number | null;
|
|
317
|
+
created_at?: string;
|
|
318
|
+
created_by?: string | null;
|
|
319
|
+
duration_ms?: number | null;
|
|
320
|
+
error_code?: string | null;
|
|
321
|
+
error_message?: string | null;
|
|
322
|
+
id?: string;
|
|
323
|
+
input_tokens?: number;
|
|
324
|
+
model_slug?: string | null;
|
|
325
|
+
output_tokens?: number;
|
|
326
|
+
provider_slug?: string | null;
|
|
327
|
+
status?: string;
|
|
328
|
+
total_tokens?: number;
|
|
329
|
+
};
|
|
330
|
+
Relationships: [];
|
|
331
|
+
};
|
|
281
332
|
ai_credentials: {
|
|
282
333
|
Row: {
|
|
283
334
|
active: boolean;
|
|
@@ -314,6 +365,36 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
314
365
|
referencedColumns: ["id"];
|
|
315
366
|
}];
|
|
316
367
|
};
|
|
368
|
+
ai_goals: {
|
|
369
|
+
Row: {
|
|
370
|
+
active: boolean;
|
|
371
|
+
created_at: string;
|
|
372
|
+
description: string | null;
|
|
373
|
+
key: string;
|
|
374
|
+
label: string;
|
|
375
|
+
sort_order: number;
|
|
376
|
+
updated_at: string;
|
|
377
|
+
};
|
|
378
|
+
Insert: {
|
|
379
|
+
active?: boolean;
|
|
380
|
+
created_at?: string;
|
|
381
|
+
description?: string | null;
|
|
382
|
+
key: string;
|
|
383
|
+
label: string;
|
|
384
|
+
sort_order?: number;
|
|
385
|
+
updated_at?: string;
|
|
386
|
+
};
|
|
387
|
+
Update: {
|
|
388
|
+
active?: boolean;
|
|
389
|
+
created_at?: string;
|
|
390
|
+
description?: string | null;
|
|
391
|
+
key?: string;
|
|
392
|
+
label?: string;
|
|
393
|
+
sort_order?: number;
|
|
394
|
+
updated_at?: string;
|
|
395
|
+
};
|
|
396
|
+
Relationships: [];
|
|
397
|
+
};
|
|
317
398
|
ai_model_pricing: {
|
|
318
399
|
Row: {
|
|
319
400
|
created_at: string;
|
|
@@ -1100,6 +1181,141 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
1100
1181
|
};
|
|
1101
1182
|
Relationships: [];
|
|
1102
1183
|
};
|
|
1184
|
+
cart_planning_pick_times: {
|
|
1185
|
+
Row: {
|
|
1186
|
+
created_at: string;
|
|
1187
|
+
id: string;
|
|
1188
|
+
pot_size: string;
|
|
1189
|
+
seconds_per_cart: number;
|
|
1190
|
+
updated_at: string;
|
|
1191
|
+
};
|
|
1192
|
+
Insert: {
|
|
1193
|
+
created_at?: string;
|
|
1194
|
+
id?: string;
|
|
1195
|
+
pot_size: string;
|
|
1196
|
+
seconds_per_cart: number;
|
|
1197
|
+
updated_at?: string;
|
|
1198
|
+
};
|
|
1199
|
+
Update: {
|
|
1200
|
+
created_at?: string;
|
|
1201
|
+
id?: string;
|
|
1202
|
+
pot_size?: string;
|
|
1203
|
+
seconds_per_cart?: number;
|
|
1204
|
+
updated_at?: string;
|
|
1205
|
+
};
|
|
1206
|
+
Relationships: [];
|
|
1207
|
+
};
|
|
1208
|
+
cart_planning_product_overrides: {
|
|
1209
|
+
Row: {
|
|
1210
|
+
created_at: string;
|
|
1211
|
+
id: string;
|
|
1212
|
+
max_party_share_per_layer_pct_override: number | null;
|
|
1213
|
+
never_mix: boolean;
|
|
1214
|
+
notes: string | null;
|
|
1215
|
+
product_id: string;
|
|
1216
|
+
updated_at: string;
|
|
1217
|
+
};
|
|
1218
|
+
Insert: {
|
|
1219
|
+
created_at?: string;
|
|
1220
|
+
id?: string;
|
|
1221
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
1222
|
+
never_mix?: boolean;
|
|
1223
|
+
notes?: string | null;
|
|
1224
|
+
product_id: string;
|
|
1225
|
+
updated_at?: string;
|
|
1226
|
+
};
|
|
1227
|
+
Update: {
|
|
1228
|
+
created_at?: string;
|
|
1229
|
+
id?: string;
|
|
1230
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
1231
|
+
never_mix?: boolean;
|
|
1232
|
+
notes?: string | null;
|
|
1233
|
+
product_id?: string;
|
|
1234
|
+
updated_at?: string;
|
|
1235
|
+
};
|
|
1236
|
+
Relationships: [{
|
|
1237
|
+
foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
|
|
1238
|
+
columns: ["product_id"];
|
|
1239
|
+
isOneToOne: true;
|
|
1240
|
+
referencedRelation: "products";
|
|
1241
|
+
referencedColumns: ["id"];
|
|
1242
|
+
}];
|
|
1243
|
+
};
|
|
1244
|
+
cart_planning_settings: {
|
|
1245
|
+
Row: {
|
|
1246
|
+
allow_editing_after_pickstation_send: boolean;
|
|
1247
|
+
buffer_grouping_mode: string;
|
|
1248
|
+
combine_floriday_orders: boolean;
|
|
1249
|
+
combine_floriday_orders_window: string;
|
|
1250
|
+
combine_orders_scope: string;
|
|
1251
|
+
default_workers: number;
|
|
1252
|
+
id: number;
|
|
1253
|
+
max_beladingen_per_layer: number;
|
|
1254
|
+
max_customers_per_cart: number;
|
|
1255
|
+
max_one_customer_per_layer: boolean;
|
|
1256
|
+
max_party_share_per_layer_pct: number;
|
|
1257
|
+
optimization_strategy: string;
|
|
1258
|
+
own_cart_from_layers: number;
|
|
1259
|
+
pick_time_mode: string;
|
|
1260
|
+
plants_per_day: number;
|
|
1261
|
+
plants_per_hour: number;
|
|
1262
|
+
require_same_carrier: boolean;
|
|
1263
|
+
require_same_crate_type: boolean;
|
|
1264
|
+
require_same_delivery_date: boolean;
|
|
1265
|
+
require_same_delivery_location: boolean;
|
|
1266
|
+
updated_at: string;
|
|
1267
|
+
updated_by: string | null;
|
|
1268
|
+
};
|
|
1269
|
+
Insert: {
|
|
1270
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
1271
|
+
buffer_grouping_mode?: string;
|
|
1272
|
+
combine_floriday_orders?: boolean;
|
|
1273
|
+
combine_floriday_orders_window?: string;
|
|
1274
|
+
combine_orders_scope?: string;
|
|
1275
|
+
default_workers?: number;
|
|
1276
|
+
id?: number;
|
|
1277
|
+
max_beladingen_per_layer?: number;
|
|
1278
|
+
max_customers_per_cart?: number;
|
|
1279
|
+
max_one_customer_per_layer?: boolean;
|
|
1280
|
+
max_party_share_per_layer_pct?: number;
|
|
1281
|
+
optimization_strategy?: string;
|
|
1282
|
+
own_cart_from_layers?: number;
|
|
1283
|
+
pick_time_mode?: string;
|
|
1284
|
+
plants_per_day?: number;
|
|
1285
|
+
plants_per_hour?: number;
|
|
1286
|
+
require_same_carrier?: boolean;
|
|
1287
|
+
require_same_crate_type?: boolean;
|
|
1288
|
+
require_same_delivery_date?: boolean;
|
|
1289
|
+
require_same_delivery_location?: boolean;
|
|
1290
|
+
updated_at?: string;
|
|
1291
|
+
updated_by?: string | null;
|
|
1292
|
+
};
|
|
1293
|
+
Update: {
|
|
1294
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
1295
|
+
buffer_grouping_mode?: string;
|
|
1296
|
+
combine_floriday_orders?: boolean;
|
|
1297
|
+
combine_floriday_orders_window?: string;
|
|
1298
|
+
combine_orders_scope?: string;
|
|
1299
|
+
default_workers?: number;
|
|
1300
|
+
id?: number;
|
|
1301
|
+
max_beladingen_per_layer?: number;
|
|
1302
|
+
max_customers_per_cart?: number;
|
|
1303
|
+
max_one_customer_per_layer?: boolean;
|
|
1304
|
+
max_party_share_per_layer_pct?: number;
|
|
1305
|
+
optimization_strategy?: string;
|
|
1306
|
+
own_cart_from_layers?: number;
|
|
1307
|
+
pick_time_mode?: string;
|
|
1308
|
+
plants_per_day?: number;
|
|
1309
|
+
plants_per_hour?: number;
|
|
1310
|
+
require_same_carrier?: boolean;
|
|
1311
|
+
require_same_crate_type?: boolean;
|
|
1312
|
+
require_same_delivery_date?: boolean;
|
|
1313
|
+
require_same_delivery_location?: boolean;
|
|
1314
|
+
updated_at?: string;
|
|
1315
|
+
updated_by?: string | null;
|
|
1316
|
+
};
|
|
1317
|
+
Relationships: [];
|
|
1318
|
+
};
|
|
1103
1319
|
cart_replan_queue: {
|
|
1104
1320
|
Row: {
|
|
1105
1321
|
attempts: number;
|
|
@@ -1130,6 +1346,39 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
1130
1346
|
referencedColumns: ["id"];
|
|
1131
1347
|
}];
|
|
1132
1348
|
};
|
|
1349
|
+
cart_types: {
|
|
1350
|
+
Row: {
|
|
1351
|
+
created_at: string;
|
|
1352
|
+
id: string;
|
|
1353
|
+
is_default: boolean;
|
|
1354
|
+
layer_length_cm: number;
|
|
1355
|
+
layer_width_cm: number;
|
|
1356
|
+
layers_per_cart: number;
|
|
1357
|
+
name: string;
|
|
1358
|
+
updated_at: string;
|
|
1359
|
+
};
|
|
1360
|
+
Insert: {
|
|
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
|
+
Update: {
|
|
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
|
+
Relationships: [];
|
|
1381
|
+
};
|
|
1133
1382
|
catalog_articles_cache: {
|
|
1134
1383
|
Row: {
|
|
1135
1384
|
created_at: string;
|
|
@@ -1217,6 +1466,36 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
1217
1466
|
};
|
|
1218
1467
|
Relationships: [];
|
|
1219
1468
|
};
|
|
1469
|
+
crate_types: {
|
|
1470
|
+
Row: {
|
|
1471
|
+
created_at: string;
|
|
1472
|
+
id: string;
|
|
1473
|
+
length_cm: number;
|
|
1474
|
+
name: string;
|
|
1475
|
+
plants_per_crate: number;
|
|
1476
|
+
updated_at: string;
|
|
1477
|
+
width_cm: number;
|
|
1478
|
+
};
|
|
1479
|
+
Insert: {
|
|
1480
|
+
created_at?: string;
|
|
1481
|
+
id?: string;
|
|
1482
|
+
length_cm: number;
|
|
1483
|
+
name: string;
|
|
1484
|
+
plants_per_crate?: number;
|
|
1485
|
+
updated_at?: string;
|
|
1486
|
+
width_cm: number;
|
|
1487
|
+
};
|
|
1488
|
+
Update: {
|
|
1489
|
+
created_at?: string;
|
|
1490
|
+
id?: string;
|
|
1491
|
+
length_cm?: number;
|
|
1492
|
+
name?: string;
|
|
1493
|
+
plants_per_crate?: number;
|
|
1494
|
+
updated_at?: string;
|
|
1495
|
+
width_cm?: number;
|
|
1496
|
+
};
|
|
1497
|
+
Relationships: [];
|
|
1498
|
+
};
|
|
1220
1499
|
customer_audit_log: {
|
|
1221
1500
|
Row: {
|
|
1222
1501
|
action: string;
|
|
@@ -5756,6 +6035,288 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
5756
6035
|
};
|
|
5757
6036
|
Relationships: [];
|
|
5758
6037
|
};
|
|
6038
|
+
itk_contact_persons: {
|
|
6039
|
+
Row: {
|
|
6040
|
+
created_at: string;
|
|
6041
|
+
customer_id: string;
|
|
6042
|
+
email: string | null;
|
|
6043
|
+
id: string;
|
|
6044
|
+
name: string;
|
|
6045
|
+
phone: string | null;
|
|
6046
|
+
role: string | null;
|
|
6047
|
+
updated_at: string;
|
|
6048
|
+
};
|
|
6049
|
+
Insert: {
|
|
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
|
+
Update: {
|
|
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
|
+
Relationships: [{
|
|
6070
|
+
foreignKeyName: "itk_contact_persons_customer_id_fkey";
|
|
6071
|
+
columns: ["customer_id"];
|
|
6072
|
+
isOneToOne: false;
|
|
6073
|
+
referencedRelation: "itk_customers";
|
|
6074
|
+
referencedColumns: ["id"];
|
|
6075
|
+
}];
|
|
6076
|
+
};
|
|
6077
|
+
itk_customer_dynamic_values: {
|
|
6078
|
+
Row: {
|
|
6079
|
+
created_at: string;
|
|
6080
|
+
customer_id: string;
|
|
6081
|
+
field_id: string;
|
|
6082
|
+
id: string;
|
|
6083
|
+
updated_at: string;
|
|
6084
|
+
value: string | null;
|
|
6085
|
+
};
|
|
6086
|
+
Insert: {
|
|
6087
|
+
created_at?: string;
|
|
6088
|
+
customer_id: string;
|
|
6089
|
+
field_id: string;
|
|
6090
|
+
id?: string;
|
|
6091
|
+
updated_at?: string;
|
|
6092
|
+
value?: string | null;
|
|
6093
|
+
};
|
|
6094
|
+
Update: {
|
|
6095
|
+
created_at?: string;
|
|
6096
|
+
customer_id?: string;
|
|
6097
|
+
field_id?: string;
|
|
6098
|
+
id?: string;
|
|
6099
|
+
updated_at?: string;
|
|
6100
|
+
value?: string | null;
|
|
6101
|
+
};
|
|
6102
|
+
Relationships: [{
|
|
6103
|
+
foreignKeyName: "itk_customer_dynamic_values_customer_id_fkey";
|
|
6104
|
+
columns: ["customer_id"];
|
|
6105
|
+
isOneToOne: false;
|
|
6106
|
+
referencedRelation: "itk_customers";
|
|
6107
|
+
referencedColumns: ["id"];
|
|
6108
|
+
}, {
|
|
6109
|
+
foreignKeyName: "itk_customer_dynamic_values_field_id_fkey";
|
|
6110
|
+
columns: ["field_id"];
|
|
6111
|
+
isOneToOne: false;
|
|
6112
|
+
referencedRelation: "itk_dynamic_fields";
|
|
6113
|
+
referencedColumns: ["id"];
|
|
6114
|
+
}];
|
|
6115
|
+
};
|
|
6116
|
+
itk_customer_notes: {
|
|
6117
|
+
Row: {
|
|
6118
|
+
body: string;
|
|
6119
|
+
created_at: string;
|
|
6120
|
+
created_by: string | null;
|
|
6121
|
+
customer_id: string;
|
|
6122
|
+
id: string;
|
|
6123
|
+
note_type: string;
|
|
6124
|
+
updated_at: string;
|
|
6125
|
+
};
|
|
6126
|
+
Insert: {
|
|
6127
|
+
body: string;
|
|
6128
|
+
created_at?: string;
|
|
6129
|
+
created_by?: string | null;
|
|
6130
|
+
customer_id: string;
|
|
6131
|
+
id?: string;
|
|
6132
|
+
note_type?: string;
|
|
6133
|
+
updated_at?: string;
|
|
6134
|
+
};
|
|
6135
|
+
Update: {
|
|
6136
|
+
body?: string;
|
|
6137
|
+
created_at?: string;
|
|
6138
|
+
created_by?: string | null;
|
|
6139
|
+
customer_id?: string;
|
|
6140
|
+
id?: string;
|
|
6141
|
+
note_type?: string;
|
|
6142
|
+
updated_at?: string;
|
|
6143
|
+
};
|
|
6144
|
+
Relationships: [{
|
|
6145
|
+
foreignKeyName: "itk_customer_notes_customer_id_fkey";
|
|
6146
|
+
columns: ["customer_id"];
|
|
6147
|
+
isOneToOne: false;
|
|
6148
|
+
referencedRelation: "itk_customers";
|
|
6149
|
+
referencedColumns: ["id"];
|
|
6150
|
+
}];
|
|
6151
|
+
};
|
|
6152
|
+
itk_customers: {
|
|
6153
|
+
Row: {
|
|
6154
|
+
billing_city: string | null;
|
|
6155
|
+
billing_postcode: string | null;
|
|
6156
|
+
billing_street: string | null;
|
|
6157
|
+
created_at: string;
|
|
6158
|
+
general_email: string | null;
|
|
6159
|
+
general_phone: string | null;
|
|
6160
|
+
id: string;
|
|
6161
|
+
legacy_customer_id: string | null;
|
|
6162
|
+
name: string;
|
|
6163
|
+
segment: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
6164
|
+
updated_at: string;
|
|
6165
|
+
};
|
|
6166
|
+
Insert: {
|
|
6167
|
+
billing_city?: string | null;
|
|
6168
|
+
billing_postcode?: string | null;
|
|
6169
|
+
billing_street?: string | null;
|
|
6170
|
+
created_at?: string;
|
|
6171
|
+
general_email?: string | null;
|
|
6172
|
+
general_phone?: string | null;
|
|
6173
|
+
id?: string;
|
|
6174
|
+
legacy_customer_id?: string | null;
|
|
6175
|
+
name: string;
|
|
6176
|
+
segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
6177
|
+
updated_at?: string;
|
|
6178
|
+
};
|
|
6179
|
+
Update: {
|
|
6180
|
+
billing_city?: string | null;
|
|
6181
|
+
billing_postcode?: string | null;
|
|
6182
|
+
billing_street?: string | null;
|
|
6183
|
+
created_at?: string;
|
|
6184
|
+
general_email?: string | null;
|
|
6185
|
+
general_phone?: string | null;
|
|
6186
|
+
id?: string;
|
|
6187
|
+
legacy_customer_id?: string | null;
|
|
6188
|
+
name?: string;
|
|
6189
|
+
segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
6190
|
+
updated_at?: string;
|
|
6191
|
+
};
|
|
6192
|
+
Relationships: [{
|
|
6193
|
+
foreignKeyName: "itk_customers_legacy_customer_id_fkey";
|
|
6194
|
+
columns: ["legacy_customer_id"];
|
|
6195
|
+
isOneToOne: false;
|
|
6196
|
+
referencedRelation: "customers";
|
|
6197
|
+
referencedColumns: ["id"];
|
|
6198
|
+
}];
|
|
6199
|
+
};
|
|
6200
|
+
itk_dynamic_fields: {
|
|
6201
|
+
Row: {
|
|
6202
|
+
created_at: string;
|
|
6203
|
+
field_name: string;
|
|
6204
|
+
field_type: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
6205
|
+
id: string;
|
|
6206
|
+
options: import("../integrations/supabase/types").Json;
|
|
6207
|
+
sort_order: number;
|
|
6208
|
+
updated_at: string;
|
|
6209
|
+
};
|
|
6210
|
+
Insert: {
|
|
6211
|
+
created_at?: string;
|
|
6212
|
+
field_name: string;
|
|
6213
|
+
field_type?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
6214
|
+
id?: string;
|
|
6215
|
+
options?: import("../integrations/supabase/types").Json;
|
|
6216
|
+
sort_order?: number;
|
|
6217
|
+
updated_at?: string;
|
|
6218
|
+
};
|
|
6219
|
+
Update: {
|
|
6220
|
+
created_at?: string;
|
|
6221
|
+
field_name?: string;
|
|
6222
|
+
field_type?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
6223
|
+
id?: string;
|
|
6224
|
+
options?: import("../integrations/supabase/types").Json;
|
|
6225
|
+
sort_order?: number;
|
|
6226
|
+
updated_at?: string;
|
|
6227
|
+
};
|
|
6228
|
+
Relationships: [];
|
|
6229
|
+
};
|
|
6230
|
+
itk_work_locations: {
|
|
6231
|
+
Row: {
|
|
6232
|
+
city: string | null;
|
|
6233
|
+
created_at: string;
|
|
6234
|
+
customer_id: string;
|
|
6235
|
+
id: string;
|
|
6236
|
+
instructions: string | null;
|
|
6237
|
+
label: string;
|
|
6238
|
+
latitude: number | null;
|
|
6239
|
+
longitude: number | null;
|
|
6240
|
+
postcode: string | null;
|
|
6241
|
+
street: string | null;
|
|
6242
|
+
updated_at: string;
|
|
6243
|
+
};
|
|
6244
|
+
Insert: {
|
|
6245
|
+
city?: string | null;
|
|
6246
|
+
created_at?: string;
|
|
6247
|
+
customer_id: string;
|
|
6248
|
+
id?: string;
|
|
6249
|
+
instructions?: string | null;
|
|
6250
|
+
label: string;
|
|
6251
|
+
latitude?: number | null;
|
|
6252
|
+
longitude?: number | null;
|
|
6253
|
+
postcode?: string | null;
|
|
6254
|
+
street?: string | null;
|
|
6255
|
+
updated_at?: string;
|
|
6256
|
+
};
|
|
6257
|
+
Update: {
|
|
6258
|
+
city?: string | null;
|
|
6259
|
+
created_at?: string;
|
|
6260
|
+
customer_id?: string;
|
|
6261
|
+
id?: string;
|
|
6262
|
+
instructions?: string | null;
|
|
6263
|
+
label?: string;
|
|
6264
|
+
latitude?: number | null;
|
|
6265
|
+
longitude?: number | null;
|
|
6266
|
+
postcode?: string | null;
|
|
6267
|
+
street?: string | null;
|
|
6268
|
+
updated_at?: string;
|
|
6269
|
+
};
|
|
6270
|
+
Relationships: [{
|
|
6271
|
+
foreignKeyName: "itk_work_locations_customer_id_fkey";
|
|
6272
|
+
columns: ["customer_id"];
|
|
6273
|
+
isOneToOne: false;
|
|
6274
|
+
referencedRelation: "itk_customers";
|
|
6275
|
+
referencedColumns: ["id"];
|
|
6276
|
+
}];
|
|
6277
|
+
};
|
|
6278
|
+
leave_requests: {
|
|
6279
|
+
Row: {
|
|
6280
|
+
created_at: string;
|
|
6281
|
+
end_date: string;
|
|
6282
|
+
id: string;
|
|
6283
|
+
reason: string | null;
|
|
6284
|
+
start_date: string;
|
|
6285
|
+
status: string;
|
|
6286
|
+
tenant_id: string;
|
|
6287
|
+
updated_at: string;
|
|
6288
|
+
user_id: string;
|
|
6289
|
+
};
|
|
6290
|
+
Insert: {
|
|
6291
|
+
created_at?: string;
|
|
6292
|
+
end_date: string;
|
|
6293
|
+
id?: string;
|
|
6294
|
+
reason?: string | null;
|
|
6295
|
+
start_date: string;
|
|
6296
|
+
status?: string;
|
|
6297
|
+
tenant_id?: string;
|
|
6298
|
+
updated_at?: string;
|
|
6299
|
+
user_id: string;
|
|
6300
|
+
};
|
|
6301
|
+
Update: {
|
|
6302
|
+
created_at?: string;
|
|
6303
|
+
end_date?: string;
|
|
6304
|
+
id?: string;
|
|
6305
|
+
reason?: string | null;
|
|
6306
|
+
start_date?: string;
|
|
6307
|
+
status?: string;
|
|
6308
|
+
tenant_id?: string;
|
|
6309
|
+
updated_at?: string;
|
|
6310
|
+
user_id?: string;
|
|
6311
|
+
};
|
|
6312
|
+
Relationships: [{
|
|
6313
|
+
foreignKeyName: "leave_requests_user_id_fkey";
|
|
6314
|
+
columns: ["user_id"];
|
|
6315
|
+
isOneToOne: false;
|
|
6316
|
+
referencedRelation: "monteurs";
|
|
6317
|
+
referencedColumns: ["id"];
|
|
6318
|
+
}];
|
|
6319
|
+
};
|
|
5759
6320
|
local_customer_agreements: {
|
|
5760
6321
|
Row: {
|
|
5761
6322
|
base_price: number | null;
|
|
@@ -6407,6 +6968,33 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
6407
6968
|
};
|
|
6408
6969
|
Relationships: [];
|
|
6409
6970
|
};
|
|
6971
|
+
module_permissions: {
|
|
6972
|
+
Row: {
|
|
6973
|
+
created_at: string;
|
|
6974
|
+
id: string;
|
|
6975
|
+
module_id: string;
|
|
6976
|
+
permission: string;
|
|
6977
|
+
role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
6978
|
+
updated_at: string;
|
|
6979
|
+
};
|
|
6980
|
+
Insert: {
|
|
6981
|
+
created_at?: string;
|
|
6982
|
+
id?: string;
|
|
6983
|
+
module_id: string;
|
|
6984
|
+
permission: string;
|
|
6985
|
+
role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
6986
|
+
updated_at?: string;
|
|
6987
|
+
};
|
|
6988
|
+
Update: {
|
|
6989
|
+
created_at?: string;
|
|
6990
|
+
id?: string;
|
|
6991
|
+
module_id?: string;
|
|
6992
|
+
permission?: string;
|
|
6993
|
+
role?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
6994
|
+
updated_at?: string;
|
|
6995
|
+
};
|
|
6996
|
+
Relationships: [];
|
|
6997
|
+
};
|
|
6410
6998
|
monteurs: {
|
|
6411
6999
|
Row: {
|
|
6412
7000
|
avatar_url: string | null;
|
|
@@ -7136,6 +7724,42 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
7136
7724
|
};
|
|
7137
7725
|
Relationships: [];
|
|
7138
7726
|
};
|
|
7727
|
+
order_buffers: {
|
|
7728
|
+
Row: {
|
|
7729
|
+
buffer_key: string;
|
|
7730
|
+
created_at: string;
|
|
7731
|
+
customer_id: string | null;
|
|
7732
|
+
grouping_mode: string;
|
|
7733
|
+
id: string;
|
|
7734
|
+
pickup_date: string | null;
|
|
7735
|
+
pickup_location: string | null;
|
|
7736
|
+
plan_locked_at: string | null;
|
|
7737
|
+
updated_at: string;
|
|
7738
|
+
};
|
|
7739
|
+
Insert: {
|
|
7740
|
+
buffer_key: string;
|
|
7741
|
+
created_at?: string;
|
|
7742
|
+
customer_id?: string | null;
|
|
7743
|
+
grouping_mode: string;
|
|
7744
|
+
id?: string;
|
|
7745
|
+
pickup_date?: string | null;
|
|
7746
|
+
pickup_location?: string | null;
|
|
7747
|
+
plan_locked_at?: string | null;
|
|
7748
|
+
updated_at?: string;
|
|
7749
|
+
};
|
|
7750
|
+
Update: {
|
|
7751
|
+
buffer_key?: string;
|
|
7752
|
+
created_at?: string;
|
|
7753
|
+
customer_id?: string | null;
|
|
7754
|
+
grouping_mode?: string;
|
|
7755
|
+
id?: string;
|
|
7756
|
+
pickup_date?: string | null;
|
|
7757
|
+
pickup_location?: string | null;
|
|
7758
|
+
plan_locked_at?: string | null;
|
|
7759
|
+
updated_at?: string;
|
|
7760
|
+
};
|
|
7761
|
+
Relationships: [];
|
|
7762
|
+
};
|
|
7139
7763
|
order_cart_items: {
|
|
7140
7764
|
Row: {
|
|
7141
7765
|
cart_id: string;
|
|
@@ -7202,6 +7826,7 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
7202
7826
|
order_carts: {
|
|
7203
7827
|
Row: {
|
|
7204
7828
|
algorithm_version: number;
|
|
7829
|
+
buffer_id: string | null;
|
|
7205
7830
|
cart_number: number;
|
|
7206
7831
|
created_at: string;
|
|
7207
7832
|
id: string;
|
|
@@ -7209,13 +7834,14 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
7209
7834
|
is_complete: boolean;
|
|
7210
7835
|
notes: string | null;
|
|
7211
7836
|
occupancy_pct: number;
|
|
7212
|
-
order_id: string;
|
|
7837
|
+
order_id: string | null;
|
|
7213
7838
|
source: string;
|
|
7214
7839
|
total_layers_used: number;
|
|
7215
7840
|
updated_at: string;
|
|
7216
7841
|
};
|
|
7217
7842
|
Insert: {
|
|
7218
7843
|
algorithm_version?: number;
|
|
7844
|
+
buffer_id?: string | null;
|
|
7219
7845
|
cart_number: number;
|
|
7220
7846
|
created_at?: string;
|
|
7221
7847
|
id?: string;
|
|
@@ -7223,13 +7849,14 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
7223
7849
|
is_complete?: boolean;
|
|
7224
7850
|
notes?: string | null;
|
|
7225
7851
|
occupancy_pct?: number;
|
|
7226
|
-
order_id
|
|
7852
|
+
order_id?: string | null;
|
|
7227
7853
|
source?: string;
|
|
7228
7854
|
total_layers_used?: number;
|
|
7229
7855
|
updated_at?: string;
|
|
7230
7856
|
};
|
|
7231
7857
|
Update: {
|
|
7232
7858
|
algorithm_version?: number;
|
|
7859
|
+
buffer_id?: string | null;
|
|
7233
7860
|
cart_number?: number;
|
|
7234
7861
|
created_at?: string;
|
|
7235
7862
|
id?: string;
|
|
@@ -7237,12 +7864,18 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
7237
7864
|
is_complete?: boolean;
|
|
7238
7865
|
notes?: string | null;
|
|
7239
7866
|
occupancy_pct?: number;
|
|
7240
|
-
order_id?: string;
|
|
7867
|
+
order_id?: string | null;
|
|
7241
7868
|
source?: string;
|
|
7242
7869
|
total_layers_used?: number;
|
|
7243
7870
|
updated_at?: string;
|
|
7244
7871
|
};
|
|
7245
7872
|
Relationships: [{
|
|
7873
|
+
foreignKeyName: "order_carts_buffer_id_fkey";
|
|
7874
|
+
columns: ["buffer_id"];
|
|
7875
|
+
isOneToOne: false;
|
|
7876
|
+
referencedRelation: "order_buffers";
|
|
7877
|
+
referencedColumns: ["id"];
|
|
7878
|
+
}, {
|
|
7246
7879
|
foreignKeyName: "order_carts_order_id_fkey";
|
|
7247
7880
|
columns: ["order_id"];
|
|
7248
7881
|
isOneToOne: false;
|
|
@@ -7379,15 +8012,117 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
7379
8012
|
};
|
|
7380
8013
|
Relationships: [];
|
|
7381
8014
|
};
|
|
8015
|
+
order_shipment_items: {
|
|
8016
|
+
Row: {
|
|
8017
|
+
created_at: string;
|
|
8018
|
+
id: string;
|
|
8019
|
+
order_item_id: string;
|
|
8020
|
+
product_id: string | null;
|
|
8021
|
+
product_name: string;
|
|
8022
|
+
quantity: number;
|
|
8023
|
+
shipment_id: string;
|
|
8024
|
+
updated_at: string;
|
|
8025
|
+
};
|
|
8026
|
+
Insert: {
|
|
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
|
+
Update: {
|
|
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
|
+
Relationships: [{
|
|
8047
|
+
foreignKeyName: "order_shipment_items_order_item_id_fkey";
|
|
8048
|
+
columns: ["order_item_id"];
|
|
8049
|
+
isOneToOne: false;
|
|
8050
|
+
referencedRelation: "order_items";
|
|
8051
|
+
referencedColumns: ["id"];
|
|
8052
|
+
}, {
|
|
8053
|
+
foreignKeyName: "order_shipment_items_shipment_id_fkey";
|
|
8054
|
+
columns: ["shipment_id"];
|
|
8055
|
+
isOneToOne: false;
|
|
8056
|
+
referencedRelation: "order_shipments";
|
|
8057
|
+
referencedColumns: ["id"];
|
|
8058
|
+
}];
|
|
8059
|
+
};
|
|
8060
|
+
order_shipments: {
|
|
8061
|
+
Row: {
|
|
8062
|
+
carrier_id: string | null;
|
|
8063
|
+
created_at: string;
|
|
8064
|
+
delivery_date: string | null;
|
|
8065
|
+
delivery_location_id: string | null;
|
|
8066
|
+
id: string;
|
|
8067
|
+
notes: string | null;
|
|
8068
|
+
order_id: string;
|
|
8069
|
+
shipment_number: number;
|
|
8070
|
+
shipped_at: string | null;
|
|
8071
|
+
status: string;
|
|
8072
|
+
updated_at: string;
|
|
8073
|
+
};
|
|
8074
|
+
Insert: {
|
|
8075
|
+
carrier_id?: string | null;
|
|
8076
|
+
created_at?: string;
|
|
8077
|
+
delivery_date?: string | null;
|
|
8078
|
+
delivery_location_id?: string | null;
|
|
8079
|
+
id?: string;
|
|
8080
|
+
notes?: string | null;
|
|
8081
|
+
order_id: string;
|
|
8082
|
+
shipment_number: number;
|
|
8083
|
+
shipped_at?: string | null;
|
|
8084
|
+
status?: string;
|
|
8085
|
+
updated_at?: string;
|
|
8086
|
+
};
|
|
8087
|
+
Update: {
|
|
8088
|
+
carrier_id?: string | null;
|
|
8089
|
+
created_at?: string;
|
|
8090
|
+
delivery_date?: string | null;
|
|
8091
|
+
delivery_location_id?: string | null;
|
|
8092
|
+
id?: string;
|
|
8093
|
+
notes?: string | null;
|
|
8094
|
+
order_id?: string;
|
|
8095
|
+
shipment_number?: number;
|
|
8096
|
+
shipped_at?: string | null;
|
|
8097
|
+
status?: string;
|
|
8098
|
+
updated_at?: string;
|
|
8099
|
+
};
|
|
8100
|
+
Relationships: [{
|
|
8101
|
+
foreignKeyName: "order_shipments_carrier_id_fkey";
|
|
8102
|
+
columns: ["carrier_id"];
|
|
8103
|
+
isOneToOne: false;
|
|
8104
|
+
referencedRelation: "carriers";
|
|
8105
|
+
referencedColumns: ["id"];
|
|
8106
|
+
}, {
|
|
8107
|
+
foreignKeyName: "order_shipments_order_id_fkey";
|
|
8108
|
+
columns: ["order_id"];
|
|
8109
|
+
isOneToOne: false;
|
|
8110
|
+
referencedRelation: "orders";
|
|
8111
|
+
referencedColumns: ["id"];
|
|
8112
|
+
}];
|
|
8113
|
+
};
|
|
7382
8114
|
orders: {
|
|
7383
8115
|
Row: {
|
|
8116
|
+
buffer_id: string | null;
|
|
7384
8117
|
created_at: string;
|
|
7385
8118
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
7386
8119
|
customer_id: string | null;
|
|
7387
8120
|
customer_name: string;
|
|
7388
8121
|
deleted_at: string | null;
|
|
7389
|
-
delivery_date: string;
|
|
8122
|
+
delivery_date: string | null;
|
|
8123
|
+
floriday_sales_order_id: string | null;
|
|
7390
8124
|
id: string;
|
|
8125
|
+
is_reservation: boolean;
|
|
7391
8126
|
notes: string | null;
|
|
7392
8127
|
order_date: string;
|
|
7393
8128
|
order_number: string;
|
|
@@ -7399,13 +8134,16 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
7399
8134
|
updated_at: string;
|
|
7400
8135
|
};
|
|
7401
8136
|
Insert: {
|
|
8137
|
+
buffer_id?: string | null;
|
|
7402
8138
|
created_at?: string;
|
|
7403
8139
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
7404
8140
|
customer_id?: string | null;
|
|
7405
8141
|
customer_name?: string;
|
|
7406
8142
|
deleted_at?: string | null;
|
|
7407
|
-
delivery_date
|
|
8143
|
+
delivery_date?: string | null;
|
|
8144
|
+
floriday_sales_order_id?: string | null;
|
|
7408
8145
|
id?: string;
|
|
8146
|
+
is_reservation?: boolean;
|
|
7409
8147
|
notes?: string | null;
|
|
7410
8148
|
order_date?: string;
|
|
7411
8149
|
order_number: string;
|
|
@@ -7417,13 +8155,16 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
7417
8155
|
updated_at?: string;
|
|
7418
8156
|
};
|
|
7419
8157
|
Update: {
|
|
8158
|
+
buffer_id?: string | null;
|
|
7420
8159
|
created_at?: string;
|
|
7421
8160
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
7422
8161
|
customer_id?: string | null;
|
|
7423
8162
|
customer_name?: string;
|
|
7424
8163
|
deleted_at?: string | null;
|
|
7425
|
-
delivery_date?: string;
|
|
8164
|
+
delivery_date?: string | null;
|
|
8165
|
+
floriday_sales_order_id?: string | null;
|
|
7426
8166
|
id?: string;
|
|
8167
|
+
is_reservation?: boolean;
|
|
7427
8168
|
notes?: string | null;
|
|
7428
8169
|
order_date?: string;
|
|
7429
8170
|
order_number?: string;
|
|
@@ -7435,6 +8176,12 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
7435
8176
|
updated_at?: string;
|
|
7436
8177
|
};
|
|
7437
8178
|
Relationships: [{
|
|
8179
|
+
foreignKeyName: "orders_buffer_id_fkey";
|
|
8180
|
+
columns: ["buffer_id"];
|
|
8181
|
+
isOneToOne: false;
|
|
8182
|
+
referencedRelation: "order_buffers";
|
|
8183
|
+
referencedColumns: ["id"];
|
|
8184
|
+
}, {
|
|
7438
8185
|
foreignKeyName: "orders_customer_id_fkey";
|
|
7439
8186
|
columns: ["customer_id"];
|
|
7440
8187
|
isOneToOne: false;
|
|
@@ -7698,6 +8445,8 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
7698
8445
|
Row: {
|
|
7699
8446
|
created_at: string;
|
|
7700
8447
|
description: string | null;
|
|
8448
|
+
head_product_id: string | null;
|
|
8449
|
+
head_trade_item_floriday_id: string | null;
|
|
7701
8450
|
id: string;
|
|
7702
8451
|
is_active: boolean;
|
|
7703
8452
|
name: string;
|
|
@@ -7707,6 +8456,8 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
7707
8456
|
Insert: {
|
|
7708
8457
|
created_at?: string;
|
|
7709
8458
|
description?: string | null;
|
|
8459
|
+
head_product_id?: string | null;
|
|
8460
|
+
head_trade_item_floriday_id?: string | null;
|
|
7710
8461
|
id?: string;
|
|
7711
8462
|
is_active?: boolean;
|
|
7712
8463
|
name: string;
|
|
@@ -7716,13 +8467,21 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
7716
8467
|
Update: {
|
|
7717
8468
|
created_at?: string;
|
|
7718
8469
|
description?: string | null;
|
|
8470
|
+
head_product_id?: string | null;
|
|
8471
|
+
head_trade_item_floriday_id?: string | null;
|
|
7719
8472
|
id?: string;
|
|
7720
8473
|
is_active?: boolean;
|
|
7721
8474
|
name?: string;
|
|
7722
8475
|
tenant_id?: string;
|
|
7723
8476
|
updated_at?: string;
|
|
7724
8477
|
};
|
|
7725
|
-
Relationships: [
|
|
8478
|
+
Relationships: [{
|
|
8479
|
+
foreignKeyName: "product_groups_head_product_id_fkey";
|
|
8480
|
+
columns: ["head_product_id"];
|
|
8481
|
+
isOneToOne: false;
|
|
8482
|
+
referencedRelation: "products";
|
|
8483
|
+
referencedColumns: ["id"];
|
|
8484
|
+
}];
|
|
7726
8485
|
};
|
|
7727
8486
|
products: {
|
|
7728
8487
|
Row: {
|
|
@@ -10273,6 +11032,7 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
10273
11032
|
internal_notes: string | null;
|
|
10274
11033
|
parent_werkbon_id: string | null;
|
|
10275
11034
|
parsed_payload: import("../integrations/supabase/types").Json | null;
|
|
11035
|
+
planning_status: string;
|
|
10276
11036
|
project_number: string | null;
|
|
10277
11037
|
room_number: string | null;
|
|
10278
11038
|
scheduled_end_time: string | null;
|
|
@@ -10280,6 +11040,7 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
10280
11040
|
sequence_number: number;
|
|
10281
11041
|
source_pdf_path: string | null;
|
|
10282
11042
|
status: string;
|
|
11043
|
+
technician_id: string | null;
|
|
10283
11044
|
technician_notes: string | null;
|
|
10284
11045
|
technician_notes_raw: string | null;
|
|
10285
11046
|
technician_task_description: string | null;
|
|
@@ -10300,6 +11061,7 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
10300
11061
|
internal_notes?: string | null;
|
|
10301
11062
|
parent_werkbon_id?: string | null;
|
|
10302
11063
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
11064
|
+
planning_status?: string;
|
|
10303
11065
|
project_number?: string | null;
|
|
10304
11066
|
room_number?: string | null;
|
|
10305
11067
|
scheduled_end_time?: string | null;
|
|
@@ -10307,6 +11069,7 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
10307
11069
|
sequence_number: number;
|
|
10308
11070
|
source_pdf_path?: string | null;
|
|
10309
11071
|
status?: string;
|
|
11072
|
+
technician_id?: string | null;
|
|
10310
11073
|
technician_notes?: string | null;
|
|
10311
11074
|
technician_notes_raw?: string | null;
|
|
10312
11075
|
technician_task_description?: string | null;
|
|
@@ -10327,6 +11090,7 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
10327
11090
|
internal_notes?: string | null;
|
|
10328
11091
|
parent_werkbon_id?: string | null;
|
|
10329
11092
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
11093
|
+
planning_status?: string;
|
|
10330
11094
|
project_number?: string | null;
|
|
10331
11095
|
room_number?: string | null;
|
|
10332
11096
|
scheduled_end_time?: string | null;
|
|
@@ -10334,6 +11098,7 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
10334
11098
|
sequence_number?: number;
|
|
10335
11099
|
source_pdf_path?: string | null;
|
|
10336
11100
|
status?: string;
|
|
11101
|
+
technician_id?: string | null;
|
|
10337
11102
|
technician_notes?: string | null;
|
|
10338
11103
|
technician_notes_raw?: string | null;
|
|
10339
11104
|
technician_task_description?: string | null;
|
|
@@ -10342,17 +11107,17 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
10342
11107
|
work_address?: string | null;
|
|
10343
11108
|
};
|
|
10344
11109
|
Relationships: [{
|
|
10345
|
-
foreignKeyName: "werkbonnen_customer_id_fkey";
|
|
10346
|
-
columns: ["customer_id"];
|
|
10347
|
-
isOneToOne: false;
|
|
10348
|
-
referencedRelation: "customers";
|
|
10349
|
-
referencedColumns: ["id"];
|
|
10350
|
-
}, {
|
|
10351
11110
|
foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
|
|
10352
11111
|
columns: ["parent_werkbon_id"];
|
|
10353
11112
|
isOneToOne: false;
|
|
10354
11113
|
referencedRelation: "werkbonnen";
|
|
10355
11114
|
referencedColumns: ["id"];
|
|
11115
|
+
}, {
|
|
11116
|
+
foreignKeyName: "werkbonnen_technician_id_fkey";
|
|
11117
|
+
columns: ["technician_id"];
|
|
11118
|
+
isOneToOne: false;
|
|
11119
|
+
referencedRelation: "monteurs";
|
|
11120
|
+
referencedColumns: ["id"];
|
|
10356
11121
|
}];
|
|
10357
11122
|
};
|
|
10358
11123
|
work_order_monteurs: {
|
|
@@ -11071,6 +11836,21 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
11071
11836
|
};
|
|
11072
11837
|
Returns: string;
|
|
11073
11838
|
};
|
|
11839
|
+
ai_usage_by_module: {
|
|
11840
|
+
Args: {
|
|
11841
|
+
_from: string;
|
|
11842
|
+
_to: string;
|
|
11843
|
+
};
|
|
11844
|
+
Returns: {
|
|
11845
|
+
calls: number;
|
|
11846
|
+
consumer_module_id: string;
|
|
11847
|
+
cost_usd: number;
|
|
11848
|
+
errors: number;
|
|
11849
|
+
input_tokens: number;
|
|
11850
|
+
output_tokens: number;
|
|
11851
|
+
total_tokens: number;
|
|
11852
|
+
}[];
|
|
11853
|
+
};
|
|
11074
11854
|
apply_stock_consumption: {
|
|
11075
11855
|
Args: {
|
|
11076
11856
|
p_order_id: string;
|
|
@@ -11219,6 +11999,12 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
11219
11999
|
Args: never;
|
|
11220
12000
|
Returns: string;
|
|
11221
12001
|
};
|
|
12002
|
+
custom_access_token_hook: {
|
|
12003
|
+
Args: {
|
|
12004
|
+
event: import("../integrations/supabase/types").Json;
|
|
12005
|
+
};
|
|
12006
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
12007
|
+
};
|
|
11222
12008
|
dashboard_alert_counts: {
|
|
11223
12009
|
Args: never;
|
|
11224
12010
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -11554,6 +12340,14 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
11554
12340
|
};
|
|
11555
12341
|
Returns: string;
|
|
11556
12342
|
};
|
|
12343
|
+
has_module_permission: {
|
|
12344
|
+
Args: {
|
|
12345
|
+
_min: string;
|
|
12346
|
+
_module_id: string;
|
|
12347
|
+
_user_id: string;
|
|
12348
|
+
};
|
|
12349
|
+
Returns: boolean;
|
|
12350
|
+
};
|
|
11557
12351
|
has_role: {
|
|
11558
12352
|
Args: {
|
|
11559
12353
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -11579,6 +12373,20 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
11579
12373
|
};
|
|
11580
12374
|
Returns: boolean;
|
|
11581
12375
|
};
|
|
12376
|
+
jwt_has_role: {
|
|
12377
|
+
Args: {
|
|
12378
|
+
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
12379
|
+
};
|
|
12380
|
+
Returns: boolean;
|
|
12381
|
+
};
|
|
12382
|
+
list_monteurs: {
|
|
12383
|
+
Args: never;
|
|
12384
|
+
Returns: {
|
|
12385
|
+
display_name: string;
|
|
12386
|
+
email: string;
|
|
12387
|
+
user_id: string;
|
|
12388
|
+
}[];
|
|
12389
|
+
};
|
|
11582
12390
|
local_effective_price: {
|
|
11583
12391
|
Args: {
|
|
11584
12392
|
_customer_id: string;
|
|
@@ -11595,6 +12403,22 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
11595
12403
|
source_id: string;
|
|
11596
12404
|
}[];
|
|
11597
12405
|
};
|
|
12406
|
+
log_ai_call: {
|
|
12407
|
+
Args: {
|
|
12408
|
+
_consumer_module_id: string;
|
|
12409
|
+
_cost_usd: number;
|
|
12410
|
+
_duration_ms: number;
|
|
12411
|
+
_error_code: string;
|
|
12412
|
+
_error_message: string;
|
|
12413
|
+
_input_tokens: number;
|
|
12414
|
+
_model_slug: string;
|
|
12415
|
+
_output_tokens: number;
|
|
12416
|
+
_provider_slug: string;
|
|
12417
|
+
_status: string;
|
|
12418
|
+
_total_tokens: number;
|
|
12419
|
+
};
|
|
12420
|
+
Returns: string;
|
|
12421
|
+
};
|
|
11598
12422
|
mark_offer_clicked: {
|
|
11599
12423
|
Args: {
|
|
11600
12424
|
p_code: string;
|
|
@@ -11607,6 +12431,12 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
11607
12431
|
};
|
|
11608
12432
|
Returns: undefined;
|
|
11609
12433
|
};
|
|
12434
|
+
mark_shipment_shipped: {
|
|
12435
|
+
Args: {
|
|
12436
|
+
p_shipment_id: string;
|
|
12437
|
+
};
|
|
12438
|
+
Returns: undefined;
|
|
12439
|
+
};
|
|
11610
12440
|
next_order_number: {
|
|
11611
12441
|
Args: {
|
|
11612
12442
|
p_prefix: string;
|
|
@@ -12083,9 +12913,11 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
12083
12913
|
};
|
|
12084
12914
|
};
|
|
12085
12915
|
Enums: {
|
|
12086
|
-
app_role: "admin" | "
|
|
12916
|
+
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
|
|
12087
12917
|
exact_env: "staging" | "live";
|
|
12088
12918
|
exact_push_status: "pending" | "sent" | "error";
|
|
12919
|
+
itk_customer_segment: "Business" | "Private";
|
|
12920
|
+
itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
|
|
12089
12921
|
quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
|
|
12090
12922
|
};
|
|
12091
12923
|
CompositeTypes: { [_ in never]: never; };
|
|
@@ -12376,6 +13208,57 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
12376
13208
|
referencedColumns: ["id"];
|
|
12377
13209
|
}];
|
|
12378
13210
|
};
|
|
13211
|
+
ai_call_log: {
|
|
13212
|
+
Row: {
|
|
13213
|
+
consumer_module_id: string;
|
|
13214
|
+
cost_usd: number | null;
|
|
13215
|
+
created_at: string;
|
|
13216
|
+
created_by: string | null;
|
|
13217
|
+
duration_ms: number | null;
|
|
13218
|
+
error_code: string | null;
|
|
13219
|
+
error_message: string | null;
|
|
13220
|
+
id: string;
|
|
13221
|
+
input_tokens: number;
|
|
13222
|
+
model_slug: string | null;
|
|
13223
|
+
output_tokens: number;
|
|
13224
|
+
provider_slug: string | null;
|
|
13225
|
+
status: string;
|
|
13226
|
+
total_tokens: number;
|
|
13227
|
+
};
|
|
13228
|
+
Insert: {
|
|
13229
|
+
consumer_module_id: string;
|
|
13230
|
+
cost_usd?: number | null;
|
|
13231
|
+
created_at?: string;
|
|
13232
|
+
created_by?: string | null;
|
|
13233
|
+
duration_ms?: number | null;
|
|
13234
|
+
error_code?: string | null;
|
|
13235
|
+
error_message?: string | null;
|
|
13236
|
+
id?: string;
|
|
13237
|
+
input_tokens?: number;
|
|
13238
|
+
model_slug?: string | null;
|
|
13239
|
+
output_tokens?: number;
|
|
13240
|
+
provider_slug?: string | null;
|
|
13241
|
+
status: string;
|
|
13242
|
+
total_tokens?: number;
|
|
13243
|
+
};
|
|
13244
|
+
Update: {
|
|
13245
|
+
consumer_module_id?: string;
|
|
13246
|
+
cost_usd?: number | null;
|
|
13247
|
+
created_at?: string;
|
|
13248
|
+
created_by?: string | null;
|
|
13249
|
+
duration_ms?: number | null;
|
|
13250
|
+
error_code?: string | null;
|
|
13251
|
+
error_message?: string | null;
|
|
13252
|
+
id?: string;
|
|
13253
|
+
input_tokens?: number;
|
|
13254
|
+
model_slug?: string | null;
|
|
13255
|
+
output_tokens?: number;
|
|
13256
|
+
provider_slug?: string | null;
|
|
13257
|
+
status?: string;
|
|
13258
|
+
total_tokens?: number;
|
|
13259
|
+
};
|
|
13260
|
+
Relationships: [];
|
|
13261
|
+
};
|
|
12379
13262
|
ai_credentials: {
|
|
12380
13263
|
Row: {
|
|
12381
13264
|
active: boolean;
|
|
@@ -12412,6 +13295,36 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
12412
13295
|
referencedColumns: ["id"];
|
|
12413
13296
|
}];
|
|
12414
13297
|
};
|
|
13298
|
+
ai_goals: {
|
|
13299
|
+
Row: {
|
|
13300
|
+
active: boolean;
|
|
13301
|
+
created_at: string;
|
|
13302
|
+
description: string | null;
|
|
13303
|
+
key: string;
|
|
13304
|
+
label: string;
|
|
13305
|
+
sort_order: number;
|
|
13306
|
+
updated_at: string;
|
|
13307
|
+
};
|
|
13308
|
+
Insert: {
|
|
13309
|
+
active?: boolean;
|
|
13310
|
+
created_at?: string;
|
|
13311
|
+
description?: string | null;
|
|
13312
|
+
key: string;
|
|
13313
|
+
label: string;
|
|
13314
|
+
sort_order?: number;
|
|
13315
|
+
updated_at?: string;
|
|
13316
|
+
};
|
|
13317
|
+
Update: {
|
|
13318
|
+
active?: boolean;
|
|
13319
|
+
created_at?: string;
|
|
13320
|
+
description?: string | null;
|
|
13321
|
+
key?: string;
|
|
13322
|
+
label?: string;
|
|
13323
|
+
sort_order?: number;
|
|
13324
|
+
updated_at?: string;
|
|
13325
|
+
};
|
|
13326
|
+
Relationships: [];
|
|
13327
|
+
};
|
|
12415
13328
|
ai_model_pricing: {
|
|
12416
13329
|
Row: {
|
|
12417
13330
|
created_at: string;
|
|
@@ -13198,6 +14111,141 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
13198
14111
|
};
|
|
13199
14112
|
Relationships: [];
|
|
13200
14113
|
};
|
|
14114
|
+
cart_planning_pick_times: {
|
|
14115
|
+
Row: {
|
|
14116
|
+
created_at: string;
|
|
14117
|
+
id: string;
|
|
14118
|
+
pot_size: string;
|
|
14119
|
+
seconds_per_cart: number;
|
|
14120
|
+
updated_at: string;
|
|
14121
|
+
};
|
|
14122
|
+
Insert: {
|
|
14123
|
+
created_at?: string;
|
|
14124
|
+
id?: string;
|
|
14125
|
+
pot_size: string;
|
|
14126
|
+
seconds_per_cart: number;
|
|
14127
|
+
updated_at?: string;
|
|
14128
|
+
};
|
|
14129
|
+
Update: {
|
|
14130
|
+
created_at?: string;
|
|
14131
|
+
id?: string;
|
|
14132
|
+
pot_size?: string;
|
|
14133
|
+
seconds_per_cart?: number;
|
|
14134
|
+
updated_at?: string;
|
|
14135
|
+
};
|
|
14136
|
+
Relationships: [];
|
|
14137
|
+
};
|
|
14138
|
+
cart_planning_product_overrides: {
|
|
14139
|
+
Row: {
|
|
14140
|
+
created_at: string;
|
|
14141
|
+
id: string;
|
|
14142
|
+
max_party_share_per_layer_pct_override: number | null;
|
|
14143
|
+
never_mix: boolean;
|
|
14144
|
+
notes: string | null;
|
|
14145
|
+
product_id: string;
|
|
14146
|
+
updated_at: string;
|
|
14147
|
+
};
|
|
14148
|
+
Insert: {
|
|
14149
|
+
created_at?: string;
|
|
14150
|
+
id?: string;
|
|
14151
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
14152
|
+
never_mix?: boolean;
|
|
14153
|
+
notes?: string | null;
|
|
14154
|
+
product_id: string;
|
|
14155
|
+
updated_at?: string;
|
|
14156
|
+
};
|
|
14157
|
+
Update: {
|
|
14158
|
+
created_at?: string;
|
|
14159
|
+
id?: string;
|
|
14160
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
14161
|
+
never_mix?: boolean;
|
|
14162
|
+
notes?: string | null;
|
|
14163
|
+
product_id?: string;
|
|
14164
|
+
updated_at?: string;
|
|
14165
|
+
};
|
|
14166
|
+
Relationships: [{
|
|
14167
|
+
foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
|
|
14168
|
+
columns: ["product_id"];
|
|
14169
|
+
isOneToOne: true;
|
|
14170
|
+
referencedRelation: "products";
|
|
14171
|
+
referencedColumns: ["id"];
|
|
14172
|
+
}];
|
|
14173
|
+
};
|
|
14174
|
+
cart_planning_settings: {
|
|
14175
|
+
Row: {
|
|
14176
|
+
allow_editing_after_pickstation_send: boolean;
|
|
14177
|
+
buffer_grouping_mode: string;
|
|
14178
|
+
combine_floriday_orders: boolean;
|
|
14179
|
+
combine_floriday_orders_window: string;
|
|
14180
|
+
combine_orders_scope: string;
|
|
14181
|
+
default_workers: number;
|
|
14182
|
+
id: number;
|
|
14183
|
+
max_beladingen_per_layer: number;
|
|
14184
|
+
max_customers_per_cart: number;
|
|
14185
|
+
max_one_customer_per_layer: boolean;
|
|
14186
|
+
max_party_share_per_layer_pct: number;
|
|
14187
|
+
optimization_strategy: string;
|
|
14188
|
+
own_cart_from_layers: number;
|
|
14189
|
+
pick_time_mode: string;
|
|
14190
|
+
plants_per_day: number;
|
|
14191
|
+
plants_per_hour: number;
|
|
14192
|
+
require_same_carrier: boolean;
|
|
14193
|
+
require_same_crate_type: boolean;
|
|
14194
|
+
require_same_delivery_date: boolean;
|
|
14195
|
+
require_same_delivery_location: boolean;
|
|
14196
|
+
updated_at: string;
|
|
14197
|
+
updated_by: string | null;
|
|
14198
|
+
};
|
|
14199
|
+
Insert: {
|
|
14200
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
14201
|
+
buffer_grouping_mode?: string;
|
|
14202
|
+
combine_floriday_orders?: boolean;
|
|
14203
|
+
combine_floriday_orders_window?: string;
|
|
14204
|
+
combine_orders_scope?: string;
|
|
14205
|
+
default_workers?: number;
|
|
14206
|
+
id?: number;
|
|
14207
|
+
max_beladingen_per_layer?: number;
|
|
14208
|
+
max_customers_per_cart?: number;
|
|
14209
|
+
max_one_customer_per_layer?: boolean;
|
|
14210
|
+
max_party_share_per_layer_pct?: number;
|
|
14211
|
+
optimization_strategy?: string;
|
|
14212
|
+
own_cart_from_layers?: number;
|
|
14213
|
+
pick_time_mode?: string;
|
|
14214
|
+
plants_per_day?: number;
|
|
14215
|
+
plants_per_hour?: number;
|
|
14216
|
+
require_same_carrier?: boolean;
|
|
14217
|
+
require_same_crate_type?: boolean;
|
|
14218
|
+
require_same_delivery_date?: boolean;
|
|
14219
|
+
require_same_delivery_location?: boolean;
|
|
14220
|
+
updated_at?: string;
|
|
14221
|
+
updated_by?: string | null;
|
|
14222
|
+
};
|
|
14223
|
+
Update: {
|
|
14224
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
14225
|
+
buffer_grouping_mode?: string;
|
|
14226
|
+
combine_floriday_orders?: boolean;
|
|
14227
|
+
combine_floriday_orders_window?: string;
|
|
14228
|
+
combine_orders_scope?: string;
|
|
14229
|
+
default_workers?: number;
|
|
14230
|
+
id?: number;
|
|
14231
|
+
max_beladingen_per_layer?: number;
|
|
14232
|
+
max_customers_per_cart?: number;
|
|
14233
|
+
max_one_customer_per_layer?: boolean;
|
|
14234
|
+
max_party_share_per_layer_pct?: number;
|
|
14235
|
+
optimization_strategy?: string;
|
|
14236
|
+
own_cart_from_layers?: number;
|
|
14237
|
+
pick_time_mode?: string;
|
|
14238
|
+
plants_per_day?: number;
|
|
14239
|
+
plants_per_hour?: number;
|
|
14240
|
+
require_same_carrier?: boolean;
|
|
14241
|
+
require_same_crate_type?: boolean;
|
|
14242
|
+
require_same_delivery_date?: boolean;
|
|
14243
|
+
require_same_delivery_location?: boolean;
|
|
14244
|
+
updated_at?: string;
|
|
14245
|
+
updated_by?: string | null;
|
|
14246
|
+
};
|
|
14247
|
+
Relationships: [];
|
|
14248
|
+
};
|
|
13201
14249
|
cart_replan_queue: {
|
|
13202
14250
|
Row: {
|
|
13203
14251
|
attempts: number;
|
|
@@ -13228,6 +14276,39 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
13228
14276
|
referencedColumns: ["id"];
|
|
13229
14277
|
}];
|
|
13230
14278
|
};
|
|
14279
|
+
cart_types: {
|
|
14280
|
+
Row: {
|
|
14281
|
+
created_at: string;
|
|
14282
|
+
id: string;
|
|
14283
|
+
is_default: boolean;
|
|
14284
|
+
layer_length_cm: number;
|
|
14285
|
+
layer_width_cm: number;
|
|
14286
|
+
layers_per_cart: number;
|
|
14287
|
+
name: string;
|
|
14288
|
+
updated_at: string;
|
|
14289
|
+
};
|
|
14290
|
+
Insert: {
|
|
14291
|
+
created_at?: string;
|
|
14292
|
+
id?: string;
|
|
14293
|
+
is_default?: boolean;
|
|
14294
|
+
layer_length_cm: number;
|
|
14295
|
+
layer_width_cm: number;
|
|
14296
|
+
layers_per_cart?: number;
|
|
14297
|
+
name: string;
|
|
14298
|
+
updated_at?: string;
|
|
14299
|
+
};
|
|
14300
|
+
Update: {
|
|
14301
|
+
created_at?: string;
|
|
14302
|
+
id?: string;
|
|
14303
|
+
is_default?: boolean;
|
|
14304
|
+
layer_length_cm?: number;
|
|
14305
|
+
layer_width_cm?: number;
|
|
14306
|
+
layers_per_cart?: number;
|
|
14307
|
+
name?: string;
|
|
14308
|
+
updated_at?: string;
|
|
14309
|
+
};
|
|
14310
|
+
Relationships: [];
|
|
14311
|
+
};
|
|
13231
14312
|
catalog_articles_cache: {
|
|
13232
14313
|
Row: {
|
|
13233
14314
|
created_at: string;
|
|
@@ -13315,6 +14396,36 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
13315
14396
|
};
|
|
13316
14397
|
Relationships: [];
|
|
13317
14398
|
};
|
|
14399
|
+
crate_types: {
|
|
14400
|
+
Row: {
|
|
14401
|
+
created_at: string;
|
|
14402
|
+
id: string;
|
|
14403
|
+
length_cm: number;
|
|
14404
|
+
name: string;
|
|
14405
|
+
plants_per_crate: number;
|
|
14406
|
+
updated_at: string;
|
|
14407
|
+
width_cm: number;
|
|
14408
|
+
};
|
|
14409
|
+
Insert: {
|
|
14410
|
+
created_at?: string;
|
|
14411
|
+
id?: string;
|
|
14412
|
+
length_cm: number;
|
|
14413
|
+
name: string;
|
|
14414
|
+
plants_per_crate?: number;
|
|
14415
|
+
updated_at?: string;
|
|
14416
|
+
width_cm: number;
|
|
14417
|
+
};
|
|
14418
|
+
Update: {
|
|
14419
|
+
created_at?: string;
|
|
14420
|
+
id?: string;
|
|
14421
|
+
length_cm?: number;
|
|
14422
|
+
name?: string;
|
|
14423
|
+
plants_per_crate?: number;
|
|
14424
|
+
updated_at?: string;
|
|
14425
|
+
width_cm?: number;
|
|
14426
|
+
};
|
|
14427
|
+
Relationships: [];
|
|
14428
|
+
};
|
|
13318
14429
|
customer_audit_log: {
|
|
13319
14430
|
Row: {
|
|
13320
14431
|
action: string;
|
|
@@ -17854,6 +18965,288 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
17854
18965
|
};
|
|
17855
18966
|
Relationships: [];
|
|
17856
18967
|
};
|
|
18968
|
+
itk_contact_persons: {
|
|
18969
|
+
Row: {
|
|
18970
|
+
created_at: string;
|
|
18971
|
+
customer_id: string;
|
|
18972
|
+
email: string | null;
|
|
18973
|
+
id: string;
|
|
18974
|
+
name: string;
|
|
18975
|
+
phone: string | null;
|
|
18976
|
+
role: string | null;
|
|
18977
|
+
updated_at: string;
|
|
18978
|
+
};
|
|
18979
|
+
Insert: {
|
|
18980
|
+
created_at?: string;
|
|
18981
|
+
customer_id: string;
|
|
18982
|
+
email?: string | null;
|
|
18983
|
+
id?: string;
|
|
18984
|
+
name: string;
|
|
18985
|
+
phone?: string | null;
|
|
18986
|
+
role?: string | null;
|
|
18987
|
+
updated_at?: string;
|
|
18988
|
+
};
|
|
18989
|
+
Update: {
|
|
18990
|
+
created_at?: string;
|
|
18991
|
+
customer_id?: string;
|
|
18992
|
+
email?: string | null;
|
|
18993
|
+
id?: string;
|
|
18994
|
+
name?: string;
|
|
18995
|
+
phone?: string | null;
|
|
18996
|
+
role?: string | null;
|
|
18997
|
+
updated_at?: string;
|
|
18998
|
+
};
|
|
18999
|
+
Relationships: [{
|
|
19000
|
+
foreignKeyName: "itk_contact_persons_customer_id_fkey";
|
|
19001
|
+
columns: ["customer_id"];
|
|
19002
|
+
isOneToOne: false;
|
|
19003
|
+
referencedRelation: "itk_customers";
|
|
19004
|
+
referencedColumns: ["id"];
|
|
19005
|
+
}];
|
|
19006
|
+
};
|
|
19007
|
+
itk_customer_dynamic_values: {
|
|
19008
|
+
Row: {
|
|
19009
|
+
created_at: string;
|
|
19010
|
+
customer_id: string;
|
|
19011
|
+
field_id: string;
|
|
19012
|
+
id: string;
|
|
19013
|
+
updated_at: string;
|
|
19014
|
+
value: string | null;
|
|
19015
|
+
};
|
|
19016
|
+
Insert: {
|
|
19017
|
+
created_at?: string;
|
|
19018
|
+
customer_id: string;
|
|
19019
|
+
field_id: string;
|
|
19020
|
+
id?: string;
|
|
19021
|
+
updated_at?: string;
|
|
19022
|
+
value?: string | null;
|
|
19023
|
+
};
|
|
19024
|
+
Update: {
|
|
19025
|
+
created_at?: string;
|
|
19026
|
+
customer_id?: string;
|
|
19027
|
+
field_id?: string;
|
|
19028
|
+
id?: string;
|
|
19029
|
+
updated_at?: string;
|
|
19030
|
+
value?: string | null;
|
|
19031
|
+
};
|
|
19032
|
+
Relationships: [{
|
|
19033
|
+
foreignKeyName: "itk_customer_dynamic_values_customer_id_fkey";
|
|
19034
|
+
columns: ["customer_id"];
|
|
19035
|
+
isOneToOne: false;
|
|
19036
|
+
referencedRelation: "itk_customers";
|
|
19037
|
+
referencedColumns: ["id"];
|
|
19038
|
+
}, {
|
|
19039
|
+
foreignKeyName: "itk_customer_dynamic_values_field_id_fkey";
|
|
19040
|
+
columns: ["field_id"];
|
|
19041
|
+
isOneToOne: false;
|
|
19042
|
+
referencedRelation: "itk_dynamic_fields";
|
|
19043
|
+
referencedColumns: ["id"];
|
|
19044
|
+
}];
|
|
19045
|
+
};
|
|
19046
|
+
itk_customer_notes: {
|
|
19047
|
+
Row: {
|
|
19048
|
+
body: string;
|
|
19049
|
+
created_at: string;
|
|
19050
|
+
created_by: string | null;
|
|
19051
|
+
customer_id: string;
|
|
19052
|
+
id: string;
|
|
19053
|
+
note_type: string;
|
|
19054
|
+
updated_at: string;
|
|
19055
|
+
};
|
|
19056
|
+
Insert: {
|
|
19057
|
+
body: string;
|
|
19058
|
+
created_at?: string;
|
|
19059
|
+
created_by?: string | null;
|
|
19060
|
+
customer_id: string;
|
|
19061
|
+
id?: string;
|
|
19062
|
+
note_type?: string;
|
|
19063
|
+
updated_at?: string;
|
|
19064
|
+
};
|
|
19065
|
+
Update: {
|
|
19066
|
+
body?: string;
|
|
19067
|
+
created_at?: string;
|
|
19068
|
+
created_by?: string | null;
|
|
19069
|
+
customer_id?: string;
|
|
19070
|
+
id?: string;
|
|
19071
|
+
note_type?: string;
|
|
19072
|
+
updated_at?: string;
|
|
19073
|
+
};
|
|
19074
|
+
Relationships: [{
|
|
19075
|
+
foreignKeyName: "itk_customer_notes_customer_id_fkey";
|
|
19076
|
+
columns: ["customer_id"];
|
|
19077
|
+
isOneToOne: false;
|
|
19078
|
+
referencedRelation: "itk_customers";
|
|
19079
|
+
referencedColumns: ["id"];
|
|
19080
|
+
}];
|
|
19081
|
+
};
|
|
19082
|
+
itk_customers: {
|
|
19083
|
+
Row: {
|
|
19084
|
+
billing_city: string | null;
|
|
19085
|
+
billing_postcode: string | null;
|
|
19086
|
+
billing_street: string | null;
|
|
19087
|
+
created_at: string;
|
|
19088
|
+
general_email: string | null;
|
|
19089
|
+
general_phone: string | null;
|
|
19090
|
+
id: string;
|
|
19091
|
+
legacy_customer_id: string | null;
|
|
19092
|
+
name: string;
|
|
19093
|
+
segment: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
19094
|
+
updated_at: string;
|
|
19095
|
+
};
|
|
19096
|
+
Insert: {
|
|
19097
|
+
billing_city?: string | null;
|
|
19098
|
+
billing_postcode?: string | null;
|
|
19099
|
+
billing_street?: string | null;
|
|
19100
|
+
created_at?: string;
|
|
19101
|
+
general_email?: string | null;
|
|
19102
|
+
general_phone?: string | null;
|
|
19103
|
+
id?: string;
|
|
19104
|
+
legacy_customer_id?: string | null;
|
|
19105
|
+
name: string;
|
|
19106
|
+
segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
19107
|
+
updated_at?: string;
|
|
19108
|
+
};
|
|
19109
|
+
Update: {
|
|
19110
|
+
billing_city?: string | null;
|
|
19111
|
+
billing_postcode?: string | null;
|
|
19112
|
+
billing_street?: string | null;
|
|
19113
|
+
created_at?: string;
|
|
19114
|
+
general_email?: string | null;
|
|
19115
|
+
general_phone?: string | null;
|
|
19116
|
+
id?: string;
|
|
19117
|
+
legacy_customer_id?: string | null;
|
|
19118
|
+
name?: string;
|
|
19119
|
+
segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
19120
|
+
updated_at?: string;
|
|
19121
|
+
};
|
|
19122
|
+
Relationships: [{
|
|
19123
|
+
foreignKeyName: "itk_customers_legacy_customer_id_fkey";
|
|
19124
|
+
columns: ["legacy_customer_id"];
|
|
19125
|
+
isOneToOne: false;
|
|
19126
|
+
referencedRelation: "customers";
|
|
19127
|
+
referencedColumns: ["id"];
|
|
19128
|
+
}];
|
|
19129
|
+
};
|
|
19130
|
+
itk_dynamic_fields: {
|
|
19131
|
+
Row: {
|
|
19132
|
+
created_at: string;
|
|
19133
|
+
field_name: string;
|
|
19134
|
+
field_type: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
19135
|
+
id: string;
|
|
19136
|
+
options: import("../integrations/supabase/types").Json;
|
|
19137
|
+
sort_order: number;
|
|
19138
|
+
updated_at: string;
|
|
19139
|
+
};
|
|
19140
|
+
Insert: {
|
|
19141
|
+
created_at?: string;
|
|
19142
|
+
field_name: string;
|
|
19143
|
+
field_type?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
19144
|
+
id?: string;
|
|
19145
|
+
options?: import("../integrations/supabase/types").Json;
|
|
19146
|
+
sort_order?: number;
|
|
19147
|
+
updated_at?: string;
|
|
19148
|
+
};
|
|
19149
|
+
Update: {
|
|
19150
|
+
created_at?: string;
|
|
19151
|
+
field_name?: string;
|
|
19152
|
+
field_type?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
19153
|
+
id?: string;
|
|
19154
|
+
options?: import("../integrations/supabase/types").Json;
|
|
19155
|
+
sort_order?: number;
|
|
19156
|
+
updated_at?: string;
|
|
19157
|
+
};
|
|
19158
|
+
Relationships: [];
|
|
19159
|
+
};
|
|
19160
|
+
itk_work_locations: {
|
|
19161
|
+
Row: {
|
|
19162
|
+
city: string | null;
|
|
19163
|
+
created_at: string;
|
|
19164
|
+
customer_id: string;
|
|
19165
|
+
id: string;
|
|
19166
|
+
instructions: string | null;
|
|
19167
|
+
label: string;
|
|
19168
|
+
latitude: number | null;
|
|
19169
|
+
longitude: number | null;
|
|
19170
|
+
postcode: string | null;
|
|
19171
|
+
street: string | null;
|
|
19172
|
+
updated_at: string;
|
|
19173
|
+
};
|
|
19174
|
+
Insert: {
|
|
19175
|
+
city?: string | null;
|
|
19176
|
+
created_at?: string;
|
|
19177
|
+
customer_id: string;
|
|
19178
|
+
id?: string;
|
|
19179
|
+
instructions?: string | null;
|
|
19180
|
+
label: string;
|
|
19181
|
+
latitude?: number | null;
|
|
19182
|
+
longitude?: number | null;
|
|
19183
|
+
postcode?: string | null;
|
|
19184
|
+
street?: string | null;
|
|
19185
|
+
updated_at?: string;
|
|
19186
|
+
};
|
|
19187
|
+
Update: {
|
|
19188
|
+
city?: string | null;
|
|
19189
|
+
created_at?: string;
|
|
19190
|
+
customer_id?: string;
|
|
19191
|
+
id?: string;
|
|
19192
|
+
instructions?: string | null;
|
|
19193
|
+
label?: string;
|
|
19194
|
+
latitude?: number | null;
|
|
19195
|
+
longitude?: number | null;
|
|
19196
|
+
postcode?: string | null;
|
|
19197
|
+
street?: string | null;
|
|
19198
|
+
updated_at?: string;
|
|
19199
|
+
};
|
|
19200
|
+
Relationships: [{
|
|
19201
|
+
foreignKeyName: "itk_work_locations_customer_id_fkey";
|
|
19202
|
+
columns: ["customer_id"];
|
|
19203
|
+
isOneToOne: false;
|
|
19204
|
+
referencedRelation: "itk_customers";
|
|
19205
|
+
referencedColumns: ["id"];
|
|
19206
|
+
}];
|
|
19207
|
+
};
|
|
19208
|
+
leave_requests: {
|
|
19209
|
+
Row: {
|
|
19210
|
+
created_at: string;
|
|
19211
|
+
end_date: string;
|
|
19212
|
+
id: string;
|
|
19213
|
+
reason: string | null;
|
|
19214
|
+
start_date: string;
|
|
19215
|
+
status: string;
|
|
19216
|
+
tenant_id: string;
|
|
19217
|
+
updated_at: string;
|
|
19218
|
+
user_id: string;
|
|
19219
|
+
};
|
|
19220
|
+
Insert: {
|
|
19221
|
+
created_at?: string;
|
|
19222
|
+
end_date: string;
|
|
19223
|
+
id?: string;
|
|
19224
|
+
reason?: string | null;
|
|
19225
|
+
start_date: string;
|
|
19226
|
+
status?: string;
|
|
19227
|
+
tenant_id?: string;
|
|
19228
|
+
updated_at?: string;
|
|
19229
|
+
user_id: string;
|
|
19230
|
+
};
|
|
19231
|
+
Update: {
|
|
19232
|
+
created_at?: string;
|
|
19233
|
+
end_date?: string;
|
|
19234
|
+
id?: string;
|
|
19235
|
+
reason?: string | null;
|
|
19236
|
+
start_date?: string;
|
|
19237
|
+
status?: string;
|
|
19238
|
+
tenant_id?: string;
|
|
19239
|
+
updated_at?: string;
|
|
19240
|
+
user_id?: string;
|
|
19241
|
+
};
|
|
19242
|
+
Relationships: [{
|
|
19243
|
+
foreignKeyName: "leave_requests_user_id_fkey";
|
|
19244
|
+
columns: ["user_id"];
|
|
19245
|
+
isOneToOne: false;
|
|
19246
|
+
referencedRelation: "monteurs";
|
|
19247
|
+
referencedColumns: ["id"];
|
|
19248
|
+
}];
|
|
19249
|
+
};
|
|
17857
19250
|
local_customer_agreements: {
|
|
17858
19251
|
Row: {
|
|
17859
19252
|
base_price: number | null;
|
|
@@ -18505,6 +19898,33 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
18505
19898
|
};
|
|
18506
19899
|
Relationships: [];
|
|
18507
19900
|
};
|
|
19901
|
+
module_permissions: {
|
|
19902
|
+
Row: {
|
|
19903
|
+
created_at: string;
|
|
19904
|
+
id: string;
|
|
19905
|
+
module_id: string;
|
|
19906
|
+
permission: string;
|
|
19907
|
+
role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
19908
|
+
updated_at: string;
|
|
19909
|
+
};
|
|
19910
|
+
Insert: {
|
|
19911
|
+
created_at?: string;
|
|
19912
|
+
id?: string;
|
|
19913
|
+
module_id: string;
|
|
19914
|
+
permission: string;
|
|
19915
|
+
role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
19916
|
+
updated_at?: string;
|
|
19917
|
+
};
|
|
19918
|
+
Update: {
|
|
19919
|
+
created_at?: string;
|
|
19920
|
+
id?: string;
|
|
19921
|
+
module_id?: string;
|
|
19922
|
+
permission?: string;
|
|
19923
|
+
role?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
19924
|
+
updated_at?: string;
|
|
19925
|
+
};
|
|
19926
|
+
Relationships: [];
|
|
19927
|
+
};
|
|
18508
19928
|
monteurs: {
|
|
18509
19929
|
Row: {
|
|
18510
19930
|
avatar_url: string | null;
|
|
@@ -19234,6 +20654,42 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
19234
20654
|
};
|
|
19235
20655
|
Relationships: [];
|
|
19236
20656
|
};
|
|
20657
|
+
order_buffers: {
|
|
20658
|
+
Row: {
|
|
20659
|
+
buffer_key: string;
|
|
20660
|
+
created_at: string;
|
|
20661
|
+
customer_id: string | null;
|
|
20662
|
+
grouping_mode: string;
|
|
20663
|
+
id: string;
|
|
20664
|
+
pickup_date: string | null;
|
|
20665
|
+
pickup_location: string | null;
|
|
20666
|
+
plan_locked_at: string | null;
|
|
20667
|
+
updated_at: string;
|
|
20668
|
+
};
|
|
20669
|
+
Insert: {
|
|
20670
|
+
buffer_key: string;
|
|
20671
|
+
created_at?: string;
|
|
20672
|
+
customer_id?: string | null;
|
|
20673
|
+
grouping_mode: string;
|
|
20674
|
+
id?: string;
|
|
20675
|
+
pickup_date?: string | null;
|
|
20676
|
+
pickup_location?: string | null;
|
|
20677
|
+
plan_locked_at?: string | null;
|
|
20678
|
+
updated_at?: string;
|
|
20679
|
+
};
|
|
20680
|
+
Update: {
|
|
20681
|
+
buffer_key?: string;
|
|
20682
|
+
created_at?: string;
|
|
20683
|
+
customer_id?: string | null;
|
|
20684
|
+
grouping_mode?: string;
|
|
20685
|
+
id?: string;
|
|
20686
|
+
pickup_date?: string | null;
|
|
20687
|
+
pickup_location?: string | null;
|
|
20688
|
+
plan_locked_at?: string | null;
|
|
20689
|
+
updated_at?: string;
|
|
20690
|
+
};
|
|
20691
|
+
Relationships: [];
|
|
20692
|
+
};
|
|
19237
20693
|
order_cart_items: {
|
|
19238
20694
|
Row: {
|
|
19239
20695
|
cart_id: string;
|
|
@@ -19300,6 +20756,7 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
19300
20756
|
order_carts: {
|
|
19301
20757
|
Row: {
|
|
19302
20758
|
algorithm_version: number;
|
|
20759
|
+
buffer_id: string | null;
|
|
19303
20760
|
cart_number: number;
|
|
19304
20761
|
created_at: string;
|
|
19305
20762
|
id: string;
|
|
@@ -19307,13 +20764,14 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
19307
20764
|
is_complete: boolean;
|
|
19308
20765
|
notes: string | null;
|
|
19309
20766
|
occupancy_pct: number;
|
|
19310
|
-
order_id: string;
|
|
20767
|
+
order_id: string | null;
|
|
19311
20768
|
source: string;
|
|
19312
20769
|
total_layers_used: number;
|
|
19313
20770
|
updated_at: string;
|
|
19314
20771
|
};
|
|
19315
20772
|
Insert: {
|
|
19316
20773
|
algorithm_version?: number;
|
|
20774
|
+
buffer_id?: string | null;
|
|
19317
20775
|
cart_number: number;
|
|
19318
20776
|
created_at?: string;
|
|
19319
20777
|
id?: string;
|
|
@@ -19321,13 +20779,14 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
19321
20779
|
is_complete?: boolean;
|
|
19322
20780
|
notes?: string | null;
|
|
19323
20781
|
occupancy_pct?: number;
|
|
19324
|
-
order_id
|
|
20782
|
+
order_id?: string | null;
|
|
19325
20783
|
source?: string;
|
|
19326
20784
|
total_layers_used?: number;
|
|
19327
20785
|
updated_at?: string;
|
|
19328
20786
|
};
|
|
19329
20787
|
Update: {
|
|
19330
20788
|
algorithm_version?: number;
|
|
20789
|
+
buffer_id?: string | null;
|
|
19331
20790
|
cart_number?: number;
|
|
19332
20791
|
created_at?: string;
|
|
19333
20792
|
id?: string;
|
|
@@ -19335,12 +20794,18 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
19335
20794
|
is_complete?: boolean;
|
|
19336
20795
|
notes?: string | null;
|
|
19337
20796
|
occupancy_pct?: number;
|
|
19338
|
-
order_id?: string;
|
|
20797
|
+
order_id?: string | null;
|
|
19339
20798
|
source?: string;
|
|
19340
20799
|
total_layers_used?: number;
|
|
19341
20800
|
updated_at?: string;
|
|
19342
20801
|
};
|
|
19343
20802
|
Relationships: [{
|
|
20803
|
+
foreignKeyName: "order_carts_buffer_id_fkey";
|
|
20804
|
+
columns: ["buffer_id"];
|
|
20805
|
+
isOneToOne: false;
|
|
20806
|
+
referencedRelation: "order_buffers";
|
|
20807
|
+
referencedColumns: ["id"];
|
|
20808
|
+
}, {
|
|
19344
20809
|
foreignKeyName: "order_carts_order_id_fkey";
|
|
19345
20810
|
columns: ["order_id"];
|
|
19346
20811
|
isOneToOne: false;
|
|
@@ -19477,15 +20942,117 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
19477
20942
|
};
|
|
19478
20943
|
Relationships: [];
|
|
19479
20944
|
};
|
|
20945
|
+
order_shipment_items: {
|
|
20946
|
+
Row: {
|
|
20947
|
+
created_at: string;
|
|
20948
|
+
id: string;
|
|
20949
|
+
order_item_id: string;
|
|
20950
|
+
product_id: string | null;
|
|
20951
|
+
product_name: string;
|
|
20952
|
+
quantity: number;
|
|
20953
|
+
shipment_id: string;
|
|
20954
|
+
updated_at: string;
|
|
20955
|
+
};
|
|
20956
|
+
Insert: {
|
|
20957
|
+
created_at?: string;
|
|
20958
|
+
id?: string;
|
|
20959
|
+
order_item_id: string;
|
|
20960
|
+
product_id?: string | null;
|
|
20961
|
+
product_name: string;
|
|
20962
|
+
quantity: number;
|
|
20963
|
+
shipment_id: string;
|
|
20964
|
+
updated_at?: string;
|
|
20965
|
+
};
|
|
20966
|
+
Update: {
|
|
20967
|
+
created_at?: string;
|
|
20968
|
+
id?: string;
|
|
20969
|
+
order_item_id?: string;
|
|
20970
|
+
product_id?: string | null;
|
|
20971
|
+
product_name?: string;
|
|
20972
|
+
quantity?: number;
|
|
20973
|
+
shipment_id?: string;
|
|
20974
|
+
updated_at?: string;
|
|
20975
|
+
};
|
|
20976
|
+
Relationships: [{
|
|
20977
|
+
foreignKeyName: "order_shipment_items_order_item_id_fkey";
|
|
20978
|
+
columns: ["order_item_id"];
|
|
20979
|
+
isOneToOne: false;
|
|
20980
|
+
referencedRelation: "order_items";
|
|
20981
|
+
referencedColumns: ["id"];
|
|
20982
|
+
}, {
|
|
20983
|
+
foreignKeyName: "order_shipment_items_shipment_id_fkey";
|
|
20984
|
+
columns: ["shipment_id"];
|
|
20985
|
+
isOneToOne: false;
|
|
20986
|
+
referencedRelation: "order_shipments";
|
|
20987
|
+
referencedColumns: ["id"];
|
|
20988
|
+
}];
|
|
20989
|
+
};
|
|
20990
|
+
order_shipments: {
|
|
20991
|
+
Row: {
|
|
20992
|
+
carrier_id: string | null;
|
|
20993
|
+
created_at: string;
|
|
20994
|
+
delivery_date: string | null;
|
|
20995
|
+
delivery_location_id: string | null;
|
|
20996
|
+
id: string;
|
|
20997
|
+
notes: string | null;
|
|
20998
|
+
order_id: string;
|
|
20999
|
+
shipment_number: number;
|
|
21000
|
+
shipped_at: string | null;
|
|
21001
|
+
status: string;
|
|
21002
|
+
updated_at: string;
|
|
21003
|
+
};
|
|
21004
|
+
Insert: {
|
|
21005
|
+
carrier_id?: string | null;
|
|
21006
|
+
created_at?: string;
|
|
21007
|
+
delivery_date?: string | null;
|
|
21008
|
+
delivery_location_id?: string | null;
|
|
21009
|
+
id?: string;
|
|
21010
|
+
notes?: string | null;
|
|
21011
|
+
order_id: string;
|
|
21012
|
+
shipment_number: number;
|
|
21013
|
+
shipped_at?: string | null;
|
|
21014
|
+
status?: string;
|
|
21015
|
+
updated_at?: string;
|
|
21016
|
+
};
|
|
21017
|
+
Update: {
|
|
21018
|
+
carrier_id?: string | null;
|
|
21019
|
+
created_at?: string;
|
|
21020
|
+
delivery_date?: string | null;
|
|
21021
|
+
delivery_location_id?: string | null;
|
|
21022
|
+
id?: string;
|
|
21023
|
+
notes?: string | null;
|
|
21024
|
+
order_id?: string;
|
|
21025
|
+
shipment_number?: number;
|
|
21026
|
+
shipped_at?: string | null;
|
|
21027
|
+
status?: string;
|
|
21028
|
+
updated_at?: string;
|
|
21029
|
+
};
|
|
21030
|
+
Relationships: [{
|
|
21031
|
+
foreignKeyName: "order_shipments_carrier_id_fkey";
|
|
21032
|
+
columns: ["carrier_id"];
|
|
21033
|
+
isOneToOne: false;
|
|
21034
|
+
referencedRelation: "carriers";
|
|
21035
|
+
referencedColumns: ["id"];
|
|
21036
|
+
}, {
|
|
21037
|
+
foreignKeyName: "order_shipments_order_id_fkey";
|
|
21038
|
+
columns: ["order_id"];
|
|
21039
|
+
isOneToOne: false;
|
|
21040
|
+
referencedRelation: "orders";
|
|
21041
|
+
referencedColumns: ["id"];
|
|
21042
|
+
}];
|
|
21043
|
+
};
|
|
19480
21044
|
orders: {
|
|
19481
21045
|
Row: {
|
|
21046
|
+
buffer_id: string | null;
|
|
19482
21047
|
created_at: string;
|
|
19483
21048
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
19484
21049
|
customer_id: string | null;
|
|
19485
21050
|
customer_name: string;
|
|
19486
21051
|
deleted_at: string | null;
|
|
19487
|
-
delivery_date: string;
|
|
21052
|
+
delivery_date: string | null;
|
|
21053
|
+
floriday_sales_order_id: string | null;
|
|
19488
21054
|
id: string;
|
|
21055
|
+
is_reservation: boolean;
|
|
19489
21056
|
notes: string | null;
|
|
19490
21057
|
order_date: string;
|
|
19491
21058
|
order_number: string;
|
|
@@ -19497,13 +21064,16 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
19497
21064
|
updated_at: string;
|
|
19498
21065
|
};
|
|
19499
21066
|
Insert: {
|
|
21067
|
+
buffer_id?: string | null;
|
|
19500
21068
|
created_at?: string;
|
|
19501
21069
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
19502
21070
|
customer_id?: string | null;
|
|
19503
21071
|
customer_name?: string;
|
|
19504
21072
|
deleted_at?: string | null;
|
|
19505
|
-
delivery_date
|
|
21073
|
+
delivery_date?: string | null;
|
|
21074
|
+
floriday_sales_order_id?: string | null;
|
|
19506
21075
|
id?: string;
|
|
21076
|
+
is_reservation?: boolean;
|
|
19507
21077
|
notes?: string | null;
|
|
19508
21078
|
order_date?: string;
|
|
19509
21079
|
order_number: string;
|
|
@@ -19515,13 +21085,16 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
19515
21085
|
updated_at?: string;
|
|
19516
21086
|
};
|
|
19517
21087
|
Update: {
|
|
21088
|
+
buffer_id?: string | null;
|
|
19518
21089
|
created_at?: string;
|
|
19519
21090
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
19520
21091
|
customer_id?: string | null;
|
|
19521
21092
|
customer_name?: string;
|
|
19522
21093
|
deleted_at?: string | null;
|
|
19523
|
-
delivery_date?: string;
|
|
21094
|
+
delivery_date?: string | null;
|
|
21095
|
+
floriday_sales_order_id?: string | null;
|
|
19524
21096
|
id?: string;
|
|
21097
|
+
is_reservation?: boolean;
|
|
19525
21098
|
notes?: string | null;
|
|
19526
21099
|
order_date?: string;
|
|
19527
21100
|
order_number?: string;
|
|
@@ -19533,6 +21106,12 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
19533
21106
|
updated_at?: string;
|
|
19534
21107
|
};
|
|
19535
21108
|
Relationships: [{
|
|
21109
|
+
foreignKeyName: "orders_buffer_id_fkey";
|
|
21110
|
+
columns: ["buffer_id"];
|
|
21111
|
+
isOneToOne: false;
|
|
21112
|
+
referencedRelation: "order_buffers";
|
|
21113
|
+
referencedColumns: ["id"];
|
|
21114
|
+
}, {
|
|
19536
21115
|
foreignKeyName: "orders_customer_id_fkey";
|
|
19537
21116
|
columns: ["customer_id"];
|
|
19538
21117
|
isOneToOne: false;
|
|
@@ -19796,6 +21375,8 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
19796
21375
|
Row: {
|
|
19797
21376
|
created_at: string;
|
|
19798
21377
|
description: string | null;
|
|
21378
|
+
head_product_id: string | null;
|
|
21379
|
+
head_trade_item_floriday_id: string | null;
|
|
19799
21380
|
id: string;
|
|
19800
21381
|
is_active: boolean;
|
|
19801
21382
|
name: string;
|
|
@@ -19805,6 +21386,8 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
19805
21386
|
Insert: {
|
|
19806
21387
|
created_at?: string;
|
|
19807
21388
|
description?: string | null;
|
|
21389
|
+
head_product_id?: string | null;
|
|
21390
|
+
head_trade_item_floriday_id?: string | null;
|
|
19808
21391
|
id?: string;
|
|
19809
21392
|
is_active?: boolean;
|
|
19810
21393
|
name: string;
|
|
@@ -19814,13 +21397,21 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
19814
21397
|
Update: {
|
|
19815
21398
|
created_at?: string;
|
|
19816
21399
|
description?: string | null;
|
|
21400
|
+
head_product_id?: string | null;
|
|
21401
|
+
head_trade_item_floriday_id?: string | null;
|
|
19817
21402
|
id?: string;
|
|
19818
21403
|
is_active?: boolean;
|
|
19819
21404
|
name?: string;
|
|
19820
21405
|
tenant_id?: string;
|
|
19821
21406
|
updated_at?: string;
|
|
19822
21407
|
};
|
|
19823
|
-
Relationships: [
|
|
21408
|
+
Relationships: [{
|
|
21409
|
+
foreignKeyName: "product_groups_head_product_id_fkey";
|
|
21410
|
+
columns: ["head_product_id"];
|
|
21411
|
+
isOneToOne: false;
|
|
21412
|
+
referencedRelation: "products";
|
|
21413
|
+
referencedColumns: ["id"];
|
|
21414
|
+
}];
|
|
19824
21415
|
};
|
|
19825
21416
|
products: {
|
|
19826
21417
|
Row: {
|
|
@@ -22371,6 +23962,7 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
22371
23962
|
internal_notes: string | null;
|
|
22372
23963
|
parent_werkbon_id: string | null;
|
|
22373
23964
|
parsed_payload: import("../integrations/supabase/types").Json | null;
|
|
23965
|
+
planning_status: string;
|
|
22374
23966
|
project_number: string | null;
|
|
22375
23967
|
room_number: string | null;
|
|
22376
23968
|
scheduled_end_time: string | null;
|
|
@@ -22378,6 +23970,7 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
22378
23970
|
sequence_number: number;
|
|
22379
23971
|
source_pdf_path: string | null;
|
|
22380
23972
|
status: string;
|
|
23973
|
+
technician_id: string | null;
|
|
22381
23974
|
technician_notes: string | null;
|
|
22382
23975
|
technician_notes_raw: string | null;
|
|
22383
23976
|
technician_task_description: string | null;
|
|
@@ -22398,6 +23991,7 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
22398
23991
|
internal_notes?: string | null;
|
|
22399
23992
|
parent_werkbon_id?: string | null;
|
|
22400
23993
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
23994
|
+
planning_status?: string;
|
|
22401
23995
|
project_number?: string | null;
|
|
22402
23996
|
room_number?: string | null;
|
|
22403
23997
|
scheduled_end_time?: string | null;
|
|
@@ -22405,6 +23999,7 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
22405
23999
|
sequence_number: number;
|
|
22406
24000
|
source_pdf_path?: string | null;
|
|
22407
24001
|
status?: string;
|
|
24002
|
+
technician_id?: string | null;
|
|
22408
24003
|
technician_notes?: string | null;
|
|
22409
24004
|
technician_notes_raw?: string | null;
|
|
22410
24005
|
technician_task_description?: string | null;
|
|
@@ -22425,6 +24020,7 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
22425
24020
|
internal_notes?: string | null;
|
|
22426
24021
|
parent_werkbon_id?: string | null;
|
|
22427
24022
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
24023
|
+
planning_status?: string;
|
|
22428
24024
|
project_number?: string | null;
|
|
22429
24025
|
room_number?: string | null;
|
|
22430
24026
|
scheduled_end_time?: string | null;
|
|
@@ -22432,6 +24028,7 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
22432
24028
|
sequence_number?: number;
|
|
22433
24029
|
source_pdf_path?: string | null;
|
|
22434
24030
|
status?: string;
|
|
24031
|
+
technician_id?: string | null;
|
|
22435
24032
|
technician_notes?: string | null;
|
|
22436
24033
|
technician_notes_raw?: string | null;
|
|
22437
24034
|
technician_task_description?: string | null;
|
|
@@ -22440,17 +24037,17 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
22440
24037
|
work_address?: string | null;
|
|
22441
24038
|
};
|
|
22442
24039
|
Relationships: [{
|
|
22443
|
-
foreignKeyName: "werkbonnen_customer_id_fkey";
|
|
22444
|
-
columns: ["customer_id"];
|
|
22445
|
-
isOneToOne: false;
|
|
22446
|
-
referencedRelation: "customers";
|
|
22447
|
-
referencedColumns: ["id"];
|
|
22448
|
-
}, {
|
|
22449
24040
|
foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
|
|
22450
24041
|
columns: ["parent_werkbon_id"];
|
|
22451
24042
|
isOneToOne: false;
|
|
22452
24043
|
referencedRelation: "werkbonnen";
|
|
22453
24044
|
referencedColumns: ["id"];
|
|
24045
|
+
}, {
|
|
24046
|
+
foreignKeyName: "werkbonnen_technician_id_fkey";
|
|
24047
|
+
columns: ["technician_id"];
|
|
24048
|
+
isOneToOne: false;
|
|
24049
|
+
referencedRelation: "monteurs";
|
|
24050
|
+
referencedColumns: ["id"];
|
|
22454
24051
|
}];
|
|
22455
24052
|
};
|
|
22456
24053
|
work_order_monteurs: {
|
|
@@ -23169,6 +24766,21 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
23169
24766
|
};
|
|
23170
24767
|
Returns: string;
|
|
23171
24768
|
};
|
|
24769
|
+
ai_usage_by_module: {
|
|
24770
|
+
Args: {
|
|
24771
|
+
_from: string;
|
|
24772
|
+
_to: string;
|
|
24773
|
+
};
|
|
24774
|
+
Returns: {
|
|
24775
|
+
calls: number;
|
|
24776
|
+
consumer_module_id: string;
|
|
24777
|
+
cost_usd: number;
|
|
24778
|
+
errors: number;
|
|
24779
|
+
input_tokens: number;
|
|
24780
|
+
output_tokens: number;
|
|
24781
|
+
total_tokens: number;
|
|
24782
|
+
}[];
|
|
24783
|
+
};
|
|
23172
24784
|
apply_stock_consumption: {
|
|
23173
24785
|
Args: {
|
|
23174
24786
|
p_order_id: string;
|
|
@@ -23317,6 +24929,12 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
23317
24929
|
Args: never;
|
|
23318
24930
|
Returns: string;
|
|
23319
24931
|
};
|
|
24932
|
+
custom_access_token_hook: {
|
|
24933
|
+
Args: {
|
|
24934
|
+
event: import("../integrations/supabase/types").Json;
|
|
24935
|
+
};
|
|
24936
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
24937
|
+
};
|
|
23320
24938
|
dashboard_alert_counts: {
|
|
23321
24939
|
Args: never;
|
|
23322
24940
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -23652,6 +25270,14 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
23652
25270
|
};
|
|
23653
25271
|
Returns: string;
|
|
23654
25272
|
};
|
|
25273
|
+
has_module_permission: {
|
|
25274
|
+
Args: {
|
|
25275
|
+
_min: string;
|
|
25276
|
+
_module_id: string;
|
|
25277
|
+
_user_id: string;
|
|
25278
|
+
};
|
|
25279
|
+
Returns: boolean;
|
|
25280
|
+
};
|
|
23655
25281
|
has_role: {
|
|
23656
25282
|
Args: {
|
|
23657
25283
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -23677,6 +25303,20 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
23677
25303
|
};
|
|
23678
25304
|
Returns: boolean;
|
|
23679
25305
|
};
|
|
25306
|
+
jwt_has_role: {
|
|
25307
|
+
Args: {
|
|
25308
|
+
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
25309
|
+
};
|
|
25310
|
+
Returns: boolean;
|
|
25311
|
+
};
|
|
25312
|
+
list_monteurs: {
|
|
25313
|
+
Args: never;
|
|
25314
|
+
Returns: {
|
|
25315
|
+
display_name: string;
|
|
25316
|
+
email: string;
|
|
25317
|
+
user_id: string;
|
|
25318
|
+
}[];
|
|
25319
|
+
};
|
|
23680
25320
|
local_effective_price: {
|
|
23681
25321
|
Args: {
|
|
23682
25322
|
_customer_id: string;
|
|
@@ -23693,6 +25333,22 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
23693
25333
|
source_id: string;
|
|
23694
25334
|
}[];
|
|
23695
25335
|
};
|
|
25336
|
+
log_ai_call: {
|
|
25337
|
+
Args: {
|
|
25338
|
+
_consumer_module_id: string;
|
|
25339
|
+
_cost_usd: number;
|
|
25340
|
+
_duration_ms: number;
|
|
25341
|
+
_error_code: string;
|
|
25342
|
+
_error_message: string;
|
|
25343
|
+
_input_tokens: number;
|
|
25344
|
+
_model_slug: string;
|
|
25345
|
+
_output_tokens: number;
|
|
25346
|
+
_provider_slug: string;
|
|
25347
|
+
_status: string;
|
|
25348
|
+
_total_tokens: number;
|
|
25349
|
+
};
|
|
25350
|
+
Returns: string;
|
|
25351
|
+
};
|
|
23696
25352
|
mark_offer_clicked: {
|
|
23697
25353
|
Args: {
|
|
23698
25354
|
p_code: string;
|
|
@@ -23705,6 +25361,12 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
23705
25361
|
};
|
|
23706
25362
|
Returns: undefined;
|
|
23707
25363
|
};
|
|
25364
|
+
mark_shipment_shipped: {
|
|
25365
|
+
Args: {
|
|
25366
|
+
p_shipment_id: string;
|
|
25367
|
+
};
|
|
25368
|
+
Returns: undefined;
|
|
25369
|
+
};
|
|
23708
25370
|
next_order_number: {
|
|
23709
25371
|
Args: {
|
|
23710
25372
|
p_prefix: string;
|
|
@@ -24181,9 +25843,11 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
24181
25843
|
};
|
|
24182
25844
|
};
|
|
24183
25845
|
Enums: {
|
|
24184
|
-
app_role: "admin" | "
|
|
25846
|
+
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
|
|
24185
25847
|
exact_env: "staging" | "live";
|
|
24186
25848
|
exact_push_status: "pending" | "sent" | "error";
|
|
25849
|
+
itk_customer_segment: "Business" | "Private";
|
|
25850
|
+
itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
|
|
24187
25851
|
quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
|
|
24188
25852
|
};
|
|
24189
25853
|
CompositeTypes: { [_ in never]: never; };
|
|
@@ -24474,6 +26138,57 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
24474
26138
|
referencedColumns: ["id"];
|
|
24475
26139
|
}];
|
|
24476
26140
|
};
|
|
26141
|
+
ai_call_log: {
|
|
26142
|
+
Row: {
|
|
26143
|
+
consumer_module_id: string;
|
|
26144
|
+
cost_usd: number | null;
|
|
26145
|
+
created_at: string;
|
|
26146
|
+
created_by: string | null;
|
|
26147
|
+
duration_ms: number | null;
|
|
26148
|
+
error_code: string | null;
|
|
26149
|
+
error_message: string | null;
|
|
26150
|
+
id: string;
|
|
26151
|
+
input_tokens: number;
|
|
26152
|
+
model_slug: string | null;
|
|
26153
|
+
output_tokens: number;
|
|
26154
|
+
provider_slug: string | null;
|
|
26155
|
+
status: string;
|
|
26156
|
+
total_tokens: number;
|
|
26157
|
+
};
|
|
26158
|
+
Insert: {
|
|
26159
|
+
consumer_module_id: string;
|
|
26160
|
+
cost_usd?: number | null;
|
|
26161
|
+
created_at?: string;
|
|
26162
|
+
created_by?: string | null;
|
|
26163
|
+
duration_ms?: number | null;
|
|
26164
|
+
error_code?: string | null;
|
|
26165
|
+
error_message?: string | null;
|
|
26166
|
+
id?: string;
|
|
26167
|
+
input_tokens?: number;
|
|
26168
|
+
model_slug?: string | null;
|
|
26169
|
+
output_tokens?: number;
|
|
26170
|
+
provider_slug?: string | null;
|
|
26171
|
+
status: string;
|
|
26172
|
+
total_tokens?: number;
|
|
26173
|
+
};
|
|
26174
|
+
Update: {
|
|
26175
|
+
consumer_module_id?: string;
|
|
26176
|
+
cost_usd?: number | null;
|
|
26177
|
+
created_at?: string;
|
|
26178
|
+
created_by?: string | null;
|
|
26179
|
+
duration_ms?: number | null;
|
|
26180
|
+
error_code?: string | null;
|
|
26181
|
+
error_message?: string | null;
|
|
26182
|
+
id?: string;
|
|
26183
|
+
input_tokens?: number;
|
|
26184
|
+
model_slug?: string | null;
|
|
26185
|
+
output_tokens?: number;
|
|
26186
|
+
provider_slug?: string | null;
|
|
26187
|
+
status?: string;
|
|
26188
|
+
total_tokens?: number;
|
|
26189
|
+
};
|
|
26190
|
+
Relationships: [];
|
|
26191
|
+
};
|
|
24477
26192
|
ai_credentials: {
|
|
24478
26193
|
Row: {
|
|
24479
26194
|
active: boolean;
|
|
@@ -24510,6 +26225,36 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
24510
26225
|
referencedColumns: ["id"];
|
|
24511
26226
|
}];
|
|
24512
26227
|
};
|
|
26228
|
+
ai_goals: {
|
|
26229
|
+
Row: {
|
|
26230
|
+
active: boolean;
|
|
26231
|
+
created_at: string;
|
|
26232
|
+
description: string | null;
|
|
26233
|
+
key: string;
|
|
26234
|
+
label: string;
|
|
26235
|
+
sort_order: number;
|
|
26236
|
+
updated_at: string;
|
|
26237
|
+
};
|
|
26238
|
+
Insert: {
|
|
26239
|
+
active?: boolean;
|
|
26240
|
+
created_at?: string;
|
|
26241
|
+
description?: string | null;
|
|
26242
|
+
key: string;
|
|
26243
|
+
label: string;
|
|
26244
|
+
sort_order?: number;
|
|
26245
|
+
updated_at?: string;
|
|
26246
|
+
};
|
|
26247
|
+
Update: {
|
|
26248
|
+
active?: boolean;
|
|
26249
|
+
created_at?: string;
|
|
26250
|
+
description?: string | null;
|
|
26251
|
+
key?: string;
|
|
26252
|
+
label?: string;
|
|
26253
|
+
sort_order?: number;
|
|
26254
|
+
updated_at?: string;
|
|
26255
|
+
};
|
|
26256
|
+
Relationships: [];
|
|
26257
|
+
};
|
|
24513
26258
|
ai_model_pricing: {
|
|
24514
26259
|
Row: {
|
|
24515
26260
|
created_at: string;
|
|
@@ -25296,6 +27041,141 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
25296
27041
|
};
|
|
25297
27042
|
Relationships: [];
|
|
25298
27043
|
};
|
|
27044
|
+
cart_planning_pick_times: {
|
|
27045
|
+
Row: {
|
|
27046
|
+
created_at: string;
|
|
27047
|
+
id: string;
|
|
27048
|
+
pot_size: string;
|
|
27049
|
+
seconds_per_cart: number;
|
|
27050
|
+
updated_at: string;
|
|
27051
|
+
};
|
|
27052
|
+
Insert: {
|
|
27053
|
+
created_at?: string;
|
|
27054
|
+
id?: string;
|
|
27055
|
+
pot_size: string;
|
|
27056
|
+
seconds_per_cart: number;
|
|
27057
|
+
updated_at?: string;
|
|
27058
|
+
};
|
|
27059
|
+
Update: {
|
|
27060
|
+
created_at?: string;
|
|
27061
|
+
id?: string;
|
|
27062
|
+
pot_size?: string;
|
|
27063
|
+
seconds_per_cart?: number;
|
|
27064
|
+
updated_at?: string;
|
|
27065
|
+
};
|
|
27066
|
+
Relationships: [];
|
|
27067
|
+
};
|
|
27068
|
+
cart_planning_product_overrides: {
|
|
27069
|
+
Row: {
|
|
27070
|
+
created_at: string;
|
|
27071
|
+
id: string;
|
|
27072
|
+
max_party_share_per_layer_pct_override: number | null;
|
|
27073
|
+
never_mix: boolean;
|
|
27074
|
+
notes: string | null;
|
|
27075
|
+
product_id: string;
|
|
27076
|
+
updated_at: string;
|
|
27077
|
+
};
|
|
27078
|
+
Insert: {
|
|
27079
|
+
created_at?: string;
|
|
27080
|
+
id?: string;
|
|
27081
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
27082
|
+
never_mix?: boolean;
|
|
27083
|
+
notes?: string | null;
|
|
27084
|
+
product_id: string;
|
|
27085
|
+
updated_at?: string;
|
|
27086
|
+
};
|
|
27087
|
+
Update: {
|
|
27088
|
+
created_at?: string;
|
|
27089
|
+
id?: string;
|
|
27090
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
27091
|
+
never_mix?: boolean;
|
|
27092
|
+
notes?: string | null;
|
|
27093
|
+
product_id?: string;
|
|
27094
|
+
updated_at?: string;
|
|
27095
|
+
};
|
|
27096
|
+
Relationships: [{
|
|
27097
|
+
foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
|
|
27098
|
+
columns: ["product_id"];
|
|
27099
|
+
isOneToOne: true;
|
|
27100
|
+
referencedRelation: "products";
|
|
27101
|
+
referencedColumns: ["id"];
|
|
27102
|
+
}];
|
|
27103
|
+
};
|
|
27104
|
+
cart_planning_settings: {
|
|
27105
|
+
Row: {
|
|
27106
|
+
allow_editing_after_pickstation_send: boolean;
|
|
27107
|
+
buffer_grouping_mode: string;
|
|
27108
|
+
combine_floriday_orders: boolean;
|
|
27109
|
+
combine_floriday_orders_window: string;
|
|
27110
|
+
combine_orders_scope: string;
|
|
27111
|
+
default_workers: number;
|
|
27112
|
+
id: number;
|
|
27113
|
+
max_beladingen_per_layer: number;
|
|
27114
|
+
max_customers_per_cart: number;
|
|
27115
|
+
max_one_customer_per_layer: boolean;
|
|
27116
|
+
max_party_share_per_layer_pct: number;
|
|
27117
|
+
optimization_strategy: string;
|
|
27118
|
+
own_cart_from_layers: number;
|
|
27119
|
+
pick_time_mode: string;
|
|
27120
|
+
plants_per_day: number;
|
|
27121
|
+
plants_per_hour: number;
|
|
27122
|
+
require_same_carrier: boolean;
|
|
27123
|
+
require_same_crate_type: boolean;
|
|
27124
|
+
require_same_delivery_date: boolean;
|
|
27125
|
+
require_same_delivery_location: boolean;
|
|
27126
|
+
updated_at: string;
|
|
27127
|
+
updated_by: string | null;
|
|
27128
|
+
};
|
|
27129
|
+
Insert: {
|
|
27130
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
27131
|
+
buffer_grouping_mode?: string;
|
|
27132
|
+
combine_floriday_orders?: boolean;
|
|
27133
|
+
combine_floriday_orders_window?: string;
|
|
27134
|
+
combine_orders_scope?: string;
|
|
27135
|
+
default_workers?: number;
|
|
27136
|
+
id?: number;
|
|
27137
|
+
max_beladingen_per_layer?: number;
|
|
27138
|
+
max_customers_per_cart?: number;
|
|
27139
|
+
max_one_customer_per_layer?: boolean;
|
|
27140
|
+
max_party_share_per_layer_pct?: number;
|
|
27141
|
+
optimization_strategy?: string;
|
|
27142
|
+
own_cart_from_layers?: number;
|
|
27143
|
+
pick_time_mode?: string;
|
|
27144
|
+
plants_per_day?: number;
|
|
27145
|
+
plants_per_hour?: number;
|
|
27146
|
+
require_same_carrier?: boolean;
|
|
27147
|
+
require_same_crate_type?: boolean;
|
|
27148
|
+
require_same_delivery_date?: boolean;
|
|
27149
|
+
require_same_delivery_location?: boolean;
|
|
27150
|
+
updated_at?: string;
|
|
27151
|
+
updated_by?: string | null;
|
|
27152
|
+
};
|
|
27153
|
+
Update: {
|
|
27154
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
27155
|
+
buffer_grouping_mode?: string;
|
|
27156
|
+
combine_floriday_orders?: boolean;
|
|
27157
|
+
combine_floriday_orders_window?: string;
|
|
27158
|
+
combine_orders_scope?: string;
|
|
27159
|
+
default_workers?: number;
|
|
27160
|
+
id?: number;
|
|
27161
|
+
max_beladingen_per_layer?: number;
|
|
27162
|
+
max_customers_per_cart?: number;
|
|
27163
|
+
max_one_customer_per_layer?: boolean;
|
|
27164
|
+
max_party_share_per_layer_pct?: number;
|
|
27165
|
+
optimization_strategy?: string;
|
|
27166
|
+
own_cart_from_layers?: number;
|
|
27167
|
+
pick_time_mode?: string;
|
|
27168
|
+
plants_per_day?: number;
|
|
27169
|
+
plants_per_hour?: number;
|
|
27170
|
+
require_same_carrier?: boolean;
|
|
27171
|
+
require_same_crate_type?: boolean;
|
|
27172
|
+
require_same_delivery_date?: boolean;
|
|
27173
|
+
require_same_delivery_location?: boolean;
|
|
27174
|
+
updated_at?: string;
|
|
27175
|
+
updated_by?: string | null;
|
|
27176
|
+
};
|
|
27177
|
+
Relationships: [];
|
|
27178
|
+
};
|
|
25299
27179
|
cart_replan_queue: {
|
|
25300
27180
|
Row: {
|
|
25301
27181
|
attempts: number;
|
|
@@ -25326,6 +27206,39 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
25326
27206
|
referencedColumns: ["id"];
|
|
25327
27207
|
}];
|
|
25328
27208
|
};
|
|
27209
|
+
cart_types: {
|
|
27210
|
+
Row: {
|
|
27211
|
+
created_at: string;
|
|
27212
|
+
id: string;
|
|
27213
|
+
is_default: boolean;
|
|
27214
|
+
layer_length_cm: number;
|
|
27215
|
+
layer_width_cm: number;
|
|
27216
|
+
layers_per_cart: number;
|
|
27217
|
+
name: string;
|
|
27218
|
+
updated_at: string;
|
|
27219
|
+
};
|
|
27220
|
+
Insert: {
|
|
27221
|
+
created_at?: string;
|
|
27222
|
+
id?: string;
|
|
27223
|
+
is_default?: boolean;
|
|
27224
|
+
layer_length_cm: number;
|
|
27225
|
+
layer_width_cm: number;
|
|
27226
|
+
layers_per_cart?: number;
|
|
27227
|
+
name: string;
|
|
27228
|
+
updated_at?: string;
|
|
27229
|
+
};
|
|
27230
|
+
Update: {
|
|
27231
|
+
created_at?: string;
|
|
27232
|
+
id?: string;
|
|
27233
|
+
is_default?: boolean;
|
|
27234
|
+
layer_length_cm?: number;
|
|
27235
|
+
layer_width_cm?: number;
|
|
27236
|
+
layers_per_cart?: number;
|
|
27237
|
+
name?: string;
|
|
27238
|
+
updated_at?: string;
|
|
27239
|
+
};
|
|
27240
|
+
Relationships: [];
|
|
27241
|
+
};
|
|
25329
27242
|
catalog_articles_cache: {
|
|
25330
27243
|
Row: {
|
|
25331
27244
|
created_at: string;
|
|
@@ -25413,6 +27326,36 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
25413
27326
|
};
|
|
25414
27327
|
Relationships: [];
|
|
25415
27328
|
};
|
|
27329
|
+
crate_types: {
|
|
27330
|
+
Row: {
|
|
27331
|
+
created_at: string;
|
|
27332
|
+
id: string;
|
|
27333
|
+
length_cm: number;
|
|
27334
|
+
name: string;
|
|
27335
|
+
plants_per_crate: number;
|
|
27336
|
+
updated_at: string;
|
|
27337
|
+
width_cm: number;
|
|
27338
|
+
};
|
|
27339
|
+
Insert: {
|
|
27340
|
+
created_at?: string;
|
|
27341
|
+
id?: string;
|
|
27342
|
+
length_cm: number;
|
|
27343
|
+
name: string;
|
|
27344
|
+
plants_per_crate?: number;
|
|
27345
|
+
updated_at?: string;
|
|
27346
|
+
width_cm: number;
|
|
27347
|
+
};
|
|
27348
|
+
Update: {
|
|
27349
|
+
created_at?: string;
|
|
27350
|
+
id?: string;
|
|
27351
|
+
length_cm?: number;
|
|
27352
|
+
name?: string;
|
|
27353
|
+
plants_per_crate?: number;
|
|
27354
|
+
updated_at?: string;
|
|
27355
|
+
width_cm?: number;
|
|
27356
|
+
};
|
|
27357
|
+
Relationships: [];
|
|
27358
|
+
};
|
|
25416
27359
|
customer_audit_log: {
|
|
25417
27360
|
Row: {
|
|
25418
27361
|
action: string;
|
|
@@ -29952,6 +31895,288 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
29952
31895
|
};
|
|
29953
31896
|
Relationships: [];
|
|
29954
31897
|
};
|
|
31898
|
+
itk_contact_persons: {
|
|
31899
|
+
Row: {
|
|
31900
|
+
created_at: string;
|
|
31901
|
+
customer_id: string;
|
|
31902
|
+
email: string | null;
|
|
31903
|
+
id: string;
|
|
31904
|
+
name: string;
|
|
31905
|
+
phone: string | null;
|
|
31906
|
+
role: string | null;
|
|
31907
|
+
updated_at: string;
|
|
31908
|
+
};
|
|
31909
|
+
Insert: {
|
|
31910
|
+
created_at?: string;
|
|
31911
|
+
customer_id: string;
|
|
31912
|
+
email?: string | null;
|
|
31913
|
+
id?: string;
|
|
31914
|
+
name: string;
|
|
31915
|
+
phone?: string | null;
|
|
31916
|
+
role?: string | null;
|
|
31917
|
+
updated_at?: string;
|
|
31918
|
+
};
|
|
31919
|
+
Update: {
|
|
31920
|
+
created_at?: string;
|
|
31921
|
+
customer_id?: string;
|
|
31922
|
+
email?: string | null;
|
|
31923
|
+
id?: string;
|
|
31924
|
+
name?: string;
|
|
31925
|
+
phone?: string | null;
|
|
31926
|
+
role?: string | null;
|
|
31927
|
+
updated_at?: string;
|
|
31928
|
+
};
|
|
31929
|
+
Relationships: [{
|
|
31930
|
+
foreignKeyName: "itk_contact_persons_customer_id_fkey";
|
|
31931
|
+
columns: ["customer_id"];
|
|
31932
|
+
isOneToOne: false;
|
|
31933
|
+
referencedRelation: "itk_customers";
|
|
31934
|
+
referencedColumns: ["id"];
|
|
31935
|
+
}];
|
|
31936
|
+
};
|
|
31937
|
+
itk_customer_dynamic_values: {
|
|
31938
|
+
Row: {
|
|
31939
|
+
created_at: string;
|
|
31940
|
+
customer_id: string;
|
|
31941
|
+
field_id: string;
|
|
31942
|
+
id: string;
|
|
31943
|
+
updated_at: string;
|
|
31944
|
+
value: string | null;
|
|
31945
|
+
};
|
|
31946
|
+
Insert: {
|
|
31947
|
+
created_at?: string;
|
|
31948
|
+
customer_id: string;
|
|
31949
|
+
field_id: string;
|
|
31950
|
+
id?: string;
|
|
31951
|
+
updated_at?: string;
|
|
31952
|
+
value?: string | null;
|
|
31953
|
+
};
|
|
31954
|
+
Update: {
|
|
31955
|
+
created_at?: string;
|
|
31956
|
+
customer_id?: string;
|
|
31957
|
+
field_id?: string;
|
|
31958
|
+
id?: string;
|
|
31959
|
+
updated_at?: string;
|
|
31960
|
+
value?: string | null;
|
|
31961
|
+
};
|
|
31962
|
+
Relationships: [{
|
|
31963
|
+
foreignKeyName: "itk_customer_dynamic_values_customer_id_fkey";
|
|
31964
|
+
columns: ["customer_id"];
|
|
31965
|
+
isOneToOne: false;
|
|
31966
|
+
referencedRelation: "itk_customers";
|
|
31967
|
+
referencedColumns: ["id"];
|
|
31968
|
+
}, {
|
|
31969
|
+
foreignKeyName: "itk_customer_dynamic_values_field_id_fkey";
|
|
31970
|
+
columns: ["field_id"];
|
|
31971
|
+
isOneToOne: false;
|
|
31972
|
+
referencedRelation: "itk_dynamic_fields";
|
|
31973
|
+
referencedColumns: ["id"];
|
|
31974
|
+
}];
|
|
31975
|
+
};
|
|
31976
|
+
itk_customer_notes: {
|
|
31977
|
+
Row: {
|
|
31978
|
+
body: string;
|
|
31979
|
+
created_at: string;
|
|
31980
|
+
created_by: string | null;
|
|
31981
|
+
customer_id: string;
|
|
31982
|
+
id: string;
|
|
31983
|
+
note_type: string;
|
|
31984
|
+
updated_at: string;
|
|
31985
|
+
};
|
|
31986
|
+
Insert: {
|
|
31987
|
+
body: string;
|
|
31988
|
+
created_at?: string;
|
|
31989
|
+
created_by?: string | null;
|
|
31990
|
+
customer_id: string;
|
|
31991
|
+
id?: string;
|
|
31992
|
+
note_type?: string;
|
|
31993
|
+
updated_at?: string;
|
|
31994
|
+
};
|
|
31995
|
+
Update: {
|
|
31996
|
+
body?: string;
|
|
31997
|
+
created_at?: string;
|
|
31998
|
+
created_by?: string | null;
|
|
31999
|
+
customer_id?: string;
|
|
32000
|
+
id?: string;
|
|
32001
|
+
note_type?: string;
|
|
32002
|
+
updated_at?: string;
|
|
32003
|
+
};
|
|
32004
|
+
Relationships: [{
|
|
32005
|
+
foreignKeyName: "itk_customer_notes_customer_id_fkey";
|
|
32006
|
+
columns: ["customer_id"];
|
|
32007
|
+
isOneToOne: false;
|
|
32008
|
+
referencedRelation: "itk_customers";
|
|
32009
|
+
referencedColumns: ["id"];
|
|
32010
|
+
}];
|
|
32011
|
+
};
|
|
32012
|
+
itk_customers: {
|
|
32013
|
+
Row: {
|
|
32014
|
+
billing_city: string | null;
|
|
32015
|
+
billing_postcode: string | null;
|
|
32016
|
+
billing_street: string | null;
|
|
32017
|
+
created_at: string;
|
|
32018
|
+
general_email: string | null;
|
|
32019
|
+
general_phone: string | null;
|
|
32020
|
+
id: string;
|
|
32021
|
+
legacy_customer_id: string | null;
|
|
32022
|
+
name: string;
|
|
32023
|
+
segment: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
32024
|
+
updated_at: string;
|
|
32025
|
+
};
|
|
32026
|
+
Insert: {
|
|
32027
|
+
billing_city?: string | null;
|
|
32028
|
+
billing_postcode?: string | null;
|
|
32029
|
+
billing_street?: string | null;
|
|
32030
|
+
created_at?: string;
|
|
32031
|
+
general_email?: string | null;
|
|
32032
|
+
general_phone?: string | null;
|
|
32033
|
+
id?: string;
|
|
32034
|
+
legacy_customer_id?: string | null;
|
|
32035
|
+
name: string;
|
|
32036
|
+
segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
32037
|
+
updated_at?: string;
|
|
32038
|
+
};
|
|
32039
|
+
Update: {
|
|
32040
|
+
billing_city?: string | null;
|
|
32041
|
+
billing_postcode?: string | null;
|
|
32042
|
+
billing_street?: string | null;
|
|
32043
|
+
created_at?: string;
|
|
32044
|
+
general_email?: string | null;
|
|
32045
|
+
general_phone?: string | null;
|
|
32046
|
+
id?: string;
|
|
32047
|
+
legacy_customer_id?: string | null;
|
|
32048
|
+
name?: string;
|
|
32049
|
+
segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
32050
|
+
updated_at?: string;
|
|
32051
|
+
};
|
|
32052
|
+
Relationships: [{
|
|
32053
|
+
foreignKeyName: "itk_customers_legacy_customer_id_fkey";
|
|
32054
|
+
columns: ["legacy_customer_id"];
|
|
32055
|
+
isOneToOne: false;
|
|
32056
|
+
referencedRelation: "customers";
|
|
32057
|
+
referencedColumns: ["id"];
|
|
32058
|
+
}];
|
|
32059
|
+
};
|
|
32060
|
+
itk_dynamic_fields: {
|
|
32061
|
+
Row: {
|
|
32062
|
+
created_at: string;
|
|
32063
|
+
field_name: string;
|
|
32064
|
+
field_type: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
32065
|
+
id: string;
|
|
32066
|
+
options: import("../integrations/supabase/types").Json;
|
|
32067
|
+
sort_order: number;
|
|
32068
|
+
updated_at: string;
|
|
32069
|
+
};
|
|
32070
|
+
Insert: {
|
|
32071
|
+
created_at?: string;
|
|
32072
|
+
field_name: string;
|
|
32073
|
+
field_type?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
32074
|
+
id?: string;
|
|
32075
|
+
options?: import("../integrations/supabase/types").Json;
|
|
32076
|
+
sort_order?: number;
|
|
32077
|
+
updated_at?: string;
|
|
32078
|
+
};
|
|
32079
|
+
Update: {
|
|
32080
|
+
created_at?: string;
|
|
32081
|
+
field_name?: string;
|
|
32082
|
+
field_type?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
32083
|
+
id?: string;
|
|
32084
|
+
options?: import("../integrations/supabase/types").Json;
|
|
32085
|
+
sort_order?: number;
|
|
32086
|
+
updated_at?: string;
|
|
32087
|
+
};
|
|
32088
|
+
Relationships: [];
|
|
32089
|
+
};
|
|
32090
|
+
itk_work_locations: {
|
|
32091
|
+
Row: {
|
|
32092
|
+
city: string | null;
|
|
32093
|
+
created_at: string;
|
|
32094
|
+
customer_id: string;
|
|
32095
|
+
id: string;
|
|
32096
|
+
instructions: string | null;
|
|
32097
|
+
label: string;
|
|
32098
|
+
latitude: number | null;
|
|
32099
|
+
longitude: number | null;
|
|
32100
|
+
postcode: string | null;
|
|
32101
|
+
street: string | null;
|
|
32102
|
+
updated_at: string;
|
|
32103
|
+
};
|
|
32104
|
+
Insert: {
|
|
32105
|
+
city?: string | null;
|
|
32106
|
+
created_at?: string;
|
|
32107
|
+
customer_id: string;
|
|
32108
|
+
id?: string;
|
|
32109
|
+
instructions?: string | null;
|
|
32110
|
+
label: string;
|
|
32111
|
+
latitude?: number | null;
|
|
32112
|
+
longitude?: number | null;
|
|
32113
|
+
postcode?: string | null;
|
|
32114
|
+
street?: string | null;
|
|
32115
|
+
updated_at?: string;
|
|
32116
|
+
};
|
|
32117
|
+
Update: {
|
|
32118
|
+
city?: string | null;
|
|
32119
|
+
created_at?: string;
|
|
32120
|
+
customer_id?: string;
|
|
32121
|
+
id?: string;
|
|
32122
|
+
instructions?: string | null;
|
|
32123
|
+
label?: string;
|
|
32124
|
+
latitude?: number | null;
|
|
32125
|
+
longitude?: number | null;
|
|
32126
|
+
postcode?: string | null;
|
|
32127
|
+
street?: string | null;
|
|
32128
|
+
updated_at?: string;
|
|
32129
|
+
};
|
|
32130
|
+
Relationships: [{
|
|
32131
|
+
foreignKeyName: "itk_work_locations_customer_id_fkey";
|
|
32132
|
+
columns: ["customer_id"];
|
|
32133
|
+
isOneToOne: false;
|
|
32134
|
+
referencedRelation: "itk_customers";
|
|
32135
|
+
referencedColumns: ["id"];
|
|
32136
|
+
}];
|
|
32137
|
+
};
|
|
32138
|
+
leave_requests: {
|
|
32139
|
+
Row: {
|
|
32140
|
+
created_at: string;
|
|
32141
|
+
end_date: string;
|
|
32142
|
+
id: string;
|
|
32143
|
+
reason: string | null;
|
|
32144
|
+
start_date: string;
|
|
32145
|
+
status: string;
|
|
32146
|
+
tenant_id: string;
|
|
32147
|
+
updated_at: string;
|
|
32148
|
+
user_id: string;
|
|
32149
|
+
};
|
|
32150
|
+
Insert: {
|
|
32151
|
+
created_at?: string;
|
|
32152
|
+
end_date: string;
|
|
32153
|
+
id?: string;
|
|
32154
|
+
reason?: string | null;
|
|
32155
|
+
start_date: string;
|
|
32156
|
+
status?: string;
|
|
32157
|
+
tenant_id?: string;
|
|
32158
|
+
updated_at?: string;
|
|
32159
|
+
user_id: string;
|
|
32160
|
+
};
|
|
32161
|
+
Update: {
|
|
32162
|
+
created_at?: string;
|
|
32163
|
+
end_date?: string;
|
|
32164
|
+
id?: string;
|
|
32165
|
+
reason?: string | null;
|
|
32166
|
+
start_date?: string;
|
|
32167
|
+
status?: string;
|
|
32168
|
+
tenant_id?: string;
|
|
32169
|
+
updated_at?: string;
|
|
32170
|
+
user_id?: string;
|
|
32171
|
+
};
|
|
32172
|
+
Relationships: [{
|
|
32173
|
+
foreignKeyName: "leave_requests_user_id_fkey";
|
|
32174
|
+
columns: ["user_id"];
|
|
32175
|
+
isOneToOne: false;
|
|
32176
|
+
referencedRelation: "monteurs";
|
|
32177
|
+
referencedColumns: ["id"];
|
|
32178
|
+
}];
|
|
32179
|
+
};
|
|
29955
32180
|
local_customer_agreements: {
|
|
29956
32181
|
Row: {
|
|
29957
32182
|
base_price: number | null;
|
|
@@ -30603,6 +32828,33 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
30603
32828
|
};
|
|
30604
32829
|
Relationships: [];
|
|
30605
32830
|
};
|
|
32831
|
+
module_permissions: {
|
|
32832
|
+
Row: {
|
|
32833
|
+
created_at: string;
|
|
32834
|
+
id: string;
|
|
32835
|
+
module_id: string;
|
|
32836
|
+
permission: string;
|
|
32837
|
+
role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
32838
|
+
updated_at: string;
|
|
32839
|
+
};
|
|
32840
|
+
Insert: {
|
|
32841
|
+
created_at?: string;
|
|
32842
|
+
id?: string;
|
|
32843
|
+
module_id: string;
|
|
32844
|
+
permission: string;
|
|
32845
|
+
role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
32846
|
+
updated_at?: string;
|
|
32847
|
+
};
|
|
32848
|
+
Update: {
|
|
32849
|
+
created_at?: string;
|
|
32850
|
+
id?: string;
|
|
32851
|
+
module_id?: string;
|
|
32852
|
+
permission?: string;
|
|
32853
|
+
role?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
32854
|
+
updated_at?: string;
|
|
32855
|
+
};
|
|
32856
|
+
Relationships: [];
|
|
32857
|
+
};
|
|
30606
32858
|
monteurs: {
|
|
30607
32859
|
Row: {
|
|
30608
32860
|
avatar_url: string | null;
|
|
@@ -31332,6 +33584,42 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
31332
33584
|
};
|
|
31333
33585
|
Relationships: [];
|
|
31334
33586
|
};
|
|
33587
|
+
order_buffers: {
|
|
33588
|
+
Row: {
|
|
33589
|
+
buffer_key: string;
|
|
33590
|
+
created_at: string;
|
|
33591
|
+
customer_id: string | null;
|
|
33592
|
+
grouping_mode: string;
|
|
33593
|
+
id: string;
|
|
33594
|
+
pickup_date: string | null;
|
|
33595
|
+
pickup_location: string | null;
|
|
33596
|
+
plan_locked_at: string | null;
|
|
33597
|
+
updated_at: string;
|
|
33598
|
+
};
|
|
33599
|
+
Insert: {
|
|
33600
|
+
buffer_key: string;
|
|
33601
|
+
created_at?: string;
|
|
33602
|
+
customer_id?: string | null;
|
|
33603
|
+
grouping_mode: string;
|
|
33604
|
+
id?: string;
|
|
33605
|
+
pickup_date?: string | null;
|
|
33606
|
+
pickup_location?: string | null;
|
|
33607
|
+
plan_locked_at?: string | null;
|
|
33608
|
+
updated_at?: string;
|
|
33609
|
+
};
|
|
33610
|
+
Update: {
|
|
33611
|
+
buffer_key?: string;
|
|
33612
|
+
created_at?: string;
|
|
33613
|
+
customer_id?: string | null;
|
|
33614
|
+
grouping_mode?: string;
|
|
33615
|
+
id?: string;
|
|
33616
|
+
pickup_date?: string | null;
|
|
33617
|
+
pickup_location?: string | null;
|
|
33618
|
+
plan_locked_at?: string | null;
|
|
33619
|
+
updated_at?: string;
|
|
33620
|
+
};
|
|
33621
|
+
Relationships: [];
|
|
33622
|
+
};
|
|
31335
33623
|
order_cart_items: {
|
|
31336
33624
|
Row: {
|
|
31337
33625
|
cart_id: string;
|
|
@@ -31398,6 +33686,7 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
31398
33686
|
order_carts: {
|
|
31399
33687
|
Row: {
|
|
31400
33688
|
algorithm_version: number;
|
|
33689
|
+
buffer_id: string | null;
|
|
31401
33690
|
cart_number: number;
|
|
31402
33691
|
created_at: string;
|
|
31403
33692
|
id: string;
|
|
@@ -31405,13 +33694,14 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
31405
33694
|
is_complete: boolean;
|
|
31406
33695
|
notes: string | null;
|
|
31407
33696
|
occupancy_pct: number;
|
|
31408
|
-
order_id: string;
|
|
33697
|
+
order_id: string | null;
|
|
31409
33698
|
source: string;
|
|
31410
33699
|
total_layers_used: number;
|
|
31411
33700
|
updated_at: string;
|
|
31412
33701
|
};
|
|
31413
33702
|
Insert: {
|
|
31414
33703
|
algorithm_version?: number;
|
|
33704
|
+
buffer_id?: string | null;
|
|
31415
33705
|
cart_number: number;
|
|
31416
33706
|
created_at?: string;
|
|
31417
33707
|
id?: string;
|
|
@@ -31419,13 +33709,14 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
31419
33709
|
is_complete?: boolean;
|
|
31420
33710
|
notes?: string | null;
|
|
31421
33711
|
occupancy_pct?: number;
|
|
31422
|
-
order_id
|
|
33712
|
+
order_id?: string | null;
|
|
31423
33713
|
source?: string;
|
|
31424
33714
|
total_layers_used?: number;
|
|
31425
33715
|
updated_at?: string;
|
|
31426
33716
|
};
|
|
31427
33717
|
Update: {
|
|
31428
33718
|
algorithm_version?: number;
|
|
33719
|
+
buffer_id?: string | null;
|
|
31429
33720
|
cart_number?: number;
|
|
31430
33721
|
created_at?: string;
|
|
31431
33722
|
id?: string;
|
|
@@ -31433,12 +33724,18 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
31433
33724
|
is_complete?: boolean;
|
|
31434
33725
|
notes?: string | null;
|
|
31435
33726
|
occupancy_pct?: number;
|
|
31436
|
-
order_id?: string;
|
|
33727
|
+
order_id?: string | null;
|
|
31437
33728
|
source?: string;
|
|
31438
33729
|
total_layers_used?: number;
|
|
31439
33730
|
updated_at?: string;
|
|
31440
33731
|
};
|
|
31441
33732
|
Relationships: [{
|
|
33733
|
+
foreignKeyName: "order_carts_buffer_id_fkey";
|
|
33734
|
+
columns: ["buffer_id"];
|
|
33735
|
+
isOneToOne: false;
|
|
33736
|
+
referencedRelation: "order_buffers";
|
|
33737
|
+
referencedColumns: ["id"];
|
|
33738
|
+
}, {
|
|
31442
33739
|
foreignKeyName: "order_carts_order_id_fkey";
|
|
31443
33740
|
columns: ["order_id"];
|
|
31444
33741
|
isOneToOne: false;
|
|
@@ -31575,15 +33872,117 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
31575
33872
|
};
|
|
31576
33873
|
Relationships: [];
|
|
31577
33874
|
};
|
|
33875
|
+
order_shipment_items: {
|
|
33876
|
+
Row: {
|
|
33877
|
+
created_at: string;
|
|
33878
|
+
id: string;
|
|
33879
|
+
order_item_id: string;
|
|
33880
|
+
product_id: string | null;
|
|
33881
|
+
product_name: string;
|
|
33882
|
+
quantity: number;
|
|
33883
|
+
shipment_id: string;
|
|
33884
|
+
updated_at: string;
|
|
33885
|
+
};
|
|
33886
|
+
Insert: {
|
|
33887
|
+
created_at?: string;
|
|
33888
|
+
id?: string;
|
|
33889
|
+
order_item_id: string;
|
|
33890
|
+
product_id?: string | null;
|
|
33891
|
+
product_name: string;
|
|
33892
|
+
quantity: number;
|
|
33893
|
+
shipment_id: string;
|
|
33894
|
+
updated_at?: string;
|
|
33895
|
+
};
|
|
33896
|
+
Update: {
|
|
33897
|
+
created_at?: string;
|
|
33898
|
+
id?: string;
|
|
33899
|
+
order_item_id?: string;
|
|
33900
|
+
product_id?: string | null;
|
|
33901
|
+
product_name?: string;
|
|
33902
|
+
quantity?: number;
|
|
33903
|
+
shipment_id?: string;
|
|
33904
|
+
updated_at?: string;
|
|
33905
|
+
};
|
|
33906
|
+
Relationships: [{
|
|
33907
|
+
foreignKeyName: "order_shipment_items_order_item_id_fkey";
|
|
33908
|
+
columns: ["order_item_id"];
|
|
33909
|
+
isOneToOne: false;
|
|
33910
|
+
referencedRelation: "order_items";
|
|
33911
|
+
referencedColumns: ["id"];
|
|
33912
|
+
}, {
|
|
33913
|
+
foreignKeyName: "order_shipment_items_shipment_id_fkey";
|
|
33914
|
+
columns: ["shipment_id"];
|
|
33915
|
+
isOneToOne: false;
|
|
33916
|
+
referencedRelation: "order_shipments";
|
|
33917
|
+
referencedColumns: ["id"];
|
|
33918
|
+
}];
|
|
33919
|
+
};
|
|
33920
|
+
order_shipments: {
|
|
33921
|
+
Row: {
|
|
33922
|
+
carrier_id: string | null;
|
|
33923
|
+
created_at: string;
|
|
33924
|
+
delivery_date: string | null;
|
|
33925
|
+
delivery_location_id: string | null;
|
|
33926
|
+
id: string;
|
|
33927
|
+
notes: string | null;
|
|
33928
|
+
order_id: string;
|
|
33929
|
+
shipment_number: number;
|
|
33930
|
+
shipped_at: string | null;
|
|
33931
|
+
status: string;
|
|
33932
|
+
updated_at: string;
|
|
33933
|
+
};
|
|
33934
|
+
Insert: {
|
|
33935
|
+
carrier_id?: string | null;
|
|
33936
|
+
created_at?: string;
|
|
33937
|
+
delivery_date?: string | null;
|
|
33938
|
+
delivery_location_id?: string | null;
|
|
33939
|
+
id?: string;
|
|
33940
|
+
notes?: string | null;
|
|
33941
|
+
order_id: string;
|
|
33942
|
+
shipment_number: number;
|
|
33943
|
+
shipped_at?: string | null;
|
|
33944
|
+
status?: string;
|
|
33945
|
+
updated_at?: string;
|
|
33946
|
+
};
|
|
33947
|
+
Update: {
|
|
33948
|
+
carrier_id?: string | null;
|
|
33949
|
+
created_at?: string;
|
|
33950
|
+
delivery_date?: string | null;
|
|
33951
|
+
delivery_location_id?: string | null;
|
|
33952
|
+
id?: string;
|
|
33953
|
+
notes?: string | null;
|
|
33954
|
+
order_id?: string;
|
|
33955
|
+
shipment_number?: number;
|
|
33956
|
+
shipped_at?: string | null;
|
|
33957
|
+
status?: string;
|
|
33958
|
+
updated_at?: string;
|
|
33959
|
+
};
|
|
33960
|
+
Relationships: [{
|
|
33961
|
+
foreignKeyName: "order_shipments_carrier_id_fkey";
|
|
33962
|
+
columns: ["carrier_id"];
|
|
33963
|
+
isOneToOne: false;
|
|
33964
|
+
referencedRelation: "carriers";
|
|
33965
|
+
referencedColumns: ["id"];
|
|
33966
|
+
}, {
|
|
33967
|
+
foreignKeyName: "order_shipments_order_id_fkey";
|
|
33968
|
+
columns: ["order_id"];
|
|
33969
|
+
isOneToOne: false;
|
|
33970
|
+
referencedRelation: "orders";
|
|
33971
|
+
referencedColumns: ["id"];
|
|
33972
|
+
}];
|
|
33973
|
+
};
|
|
31578
33974
|
orders: {
|
|
31579
33975
|
Row: {
|
|
33976
|
+
buffer_id: string | null;
|
|
31580
33977
|
created_at: string;
|
|
31581
33978
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
31582
33979
|
customer_id: string | null;
|
|
31583
33980
|
customer_name: string;
|
|
31584
33981
|
deleted_at: string | null;
|
|
31585
|
-
delivery_date: string;
|
|
33982
|
+
delivery_date: string | null;
|
|
33983
|
+
floriday_sales_order_id: string | null;
|
|
31586
33984
|
id: string;
|
|
33985
|
+
is_reservation: boolean;
|
|
31587
33986
|
notes: string | null;
|
|
31588
33987
|
order_date: string;
|
|
31589
33988
|
order_number: string;
|
|
@@ -31595,13 +33994,16 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
31595
33994
|
updated_at: string;
|
|
31596
33995
|
};
|
|
31597
33996
|
Insert: {
|
|
33997
|
+
buffer_id?: string | null;
|
|
31598
33998
|
created_at?: string;
|
|
31599
33999
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
31600
34000
|
customer_id?: string | null;
|
|
31601
34001
|
customer_name?: string;
|
|
31602
34002
|
deleted_at?: string | null;
|
|
31603
|
-
delivery_date
|
|
34003
|
+
delivery_date?: string | null;
|
|
34004
|
+
floriday_sales_order_id?: string | null;
|
|
31604
34005
|
id?: string;
|
|
34006
|
+
is_reservation?: boolean;
|
|
31605
34007
|
notes?: string | null;
|
|
31606
34008
|
order_date?: string;
|
|
31607
34009
|
order_number: string;
|
|
@@ -31613,13 +34015,16 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
31613
34015
|
updated_at?: string;
|
|
31614
34016
|
};
|
|
31615
34017
|
Update: {
|
|
34018
|
+
buffer_id?: string | null;
|
|
31616
34019
|
created_at?: string;
|
|
31617
34020
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
31618
34021
|
customer_id?: string | null;
|
|
31619
34022
|
customer_name?: string;
|
|
31620
34023
|
deleted_at?: string | null;
|
|
31621
|
-
delivery_date?: string;
|
|
34024
|
+
delivery_date?: string | null;
|
|
34025
|
+
floriday_sales_order_id?: string | null;
|
|
31622
34026
|
id?: string;
|
|
34027
|
+
is_reservation?: boolean;
|
|
31623
34028
|
notes?: string | null;
|
|
31624
34029
|
order_date?: string;
|
|
31625
34030
|
order_number?: string;
|
|
@@ -31631,6 +34036,12 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
31631
34036
|
updated_at?: string;
|
|
31632
34037
|
};
|
|
31633
34038
|
Relationships: [{
|
|
34039
|
+
foreignKeyName: "orders_buffer_id_fkey";
|
|
34040
|
+
columns: ["buffer_id"];
|
|
34041
|
+
isOneToOne: false;
|
|
34042
|
+
referencedRelation: "order_buffers";
|
|
34043
|
+
referencedColumns: ["id"];
|
|
34044
|
+
}, {
|
|
31634
34045
|
foreignKeyName: "orders_customer_id_fkey";
|
|
31635
34046
|
columns: ["customer_id"];
|
|
31636
34047
|
isOneToOne: false;
|
|
@@ -31894,6 +34305,8 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
31894
34305
|
Row: {
|
|
31895
34306
|
created_at: string;
|
|
31896
34307
|
description: string | null;
|
|
34308
|
+
head_product_id: string | null;
|
|
34309
|
+
head_trade_item_floriday_id: string | null;
|
|
31897
34310
|
id: string;
|
|
31898
34311
|
is_active: boolean;
|
|
31899
34312
|
name: string;
|
|
@@ -31903,6 +34316,8 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
31903
34316
|
Insert: {
|
|
31904
34317
|
created_at?: string;
|
|
31905
34318
|
description?: string | null;
|
|
34319
|
+
head_product_id?: string | null;
|
|
34320
|
+
head_trade_item_floriday_id?: string | null;
|
|
31906
34321
|
id?: string;
|
|
31907
34322
|
is_active?: boolean;
|
|
31908
34323
|
name: string;
|
|
@@ -31912,13 +34327,21 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
31912
34327
|
Update: {
|
|
31913
34328
|
created_at?: string;
|
|
31914
34329
|
description?: string | null;
|
|
34330
|
+
head_product_id?: string | null;
|
|
34331
|
+
head_trade_item_floriday_id?: string | null;
|
|
31915
34332
|
id?: string;
|
|
31916
34333
|
is_active?: boolean;
|
|
31917
34334
|
name?: string;
|
|
31918
34335
|
tenant_id?: string;
|
|
31919
34336
|
updated_at?: string;
|
|
31920
34337
|
};
|
|
31921
|
-
Relationships: [
|
|
34338
|
+
Relationships: [{
|
|
34339
|
+
foreignKeyName: "product_groups_head_product_id_fkey";
|
|
34340
|
+
columns: ["head_product_id"];
|
|
34341
|
+
isOneToOne: false;
|
|
34342
|
+
referencedRelation: "products";
|
|
34343
|
+
referencedColumns: ["id"];
|
|
34344
|
+
}];
|
|
31922
34345
|
};
|
|
31923
34346
|
products: {
|
|
31924
34347
|
Row: {
|
|
@@ -34469,6 +36892,7 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
34469
36892
|
internal_notes: string | null;
|
|
34470
36893
|
parent_werkbon_id: string | null;
|
|
34471
36894
|
parsed_payload: import("../integrations/supabase/types").Json | null;
|
|
36895
|
+
planning_status: string;
|
|
34472
36896
|
project_number: string | null;
|
|
34473
36897
|
room_number: string | null;
|
|
34474
36898
|
scheduled_end_time: string | null;
|
|
@@ -34476,6 +36900,7 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
34476
36900
|
sequence_number: number;
|
|
34477
36901
|
source_pdf_path: string | null;
|
|
34478
36902
|
status: string;
|
|
36903
|
+
technician_id: string | null;
|
|
34479
36904
|
technician_notes: string | null;
|
|
34480
36905
|
technician_notes_raw: string | null;
|
|
34481
36906
|
technician_task_description: string | null;
|
|
@@ -34496,6 +36921,7 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
34496
36921
|
internal_notes?: string | null;
|
|
34497
36922
|
parent_werkbon_id?: string | null;
|
|
34498
36923
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
36924
|
+
planning_status?: string;
|
|
34499
36925
|
project_number?: string | null;
|
|
34500
36926
|
room_number?: string | null;
|
|
34501
36927
|
scheduled_end_time?: string | null;
|
|
@@ -34503,6 +36929,7 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
34503
36929
|
sequence_number: number;
|
|
34504
36930
|
source_pdf_path?: string | null;
|
|
34505
36931
|
status?: string;
|
|
36932
|
+
technician_id?: string | null;
|
|
34506
36933
|
technician_notes?: string | null;
|
|
34507
36934
|
technician_notes_raw?: string | null;
|
|
34508
36935
|
technician_task_description?: string | null;
|
|
@@ -34523,6 +36950,7 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
34523
36950
|
internal_notes?: string | null;
|
|
34524
36951
|
parent_werkbon_id?: string | null;
|
|
34525
36952
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
36953
|
+
planning_status?: string;
|
|
34526
36954
|
project_number?: string | null;
|
|
34527
36955
|
room_number?: string | null;
|
|
34528
36956
|
scheduled_end_time?: string | null;
|
|
@@ -34530,6 +36958,7 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
34530
36958
|
sequence_number?: number;
|
|
34531
36959
|
source_pdf_path?: string | null;
|
|
34532
36960
|
status?: string;
|
|
36961
|
+
technician_id?: string | null;
|
|
34533
36962
|
technician_notes?: string | null;
|
|
34534
36963
|
technician_notes_raw?: string | null;
|
|
34535
36964
|
technician_task_description?: string | null;
|
|
@@ -34538,17 +36967,17 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
34538
36967
|
work_address?: string | null;
|
|
34539
36968
|
};
|
|
34540
36969
|
Relationships: [{
|
|
34541
|
-
foreignKeyName: "werkbonnen_customer_id_fkey";
|
|
34542
|
-
columns: ["customer_id"];
|
|
34543
|
-
isOneToOne: false;
|
|
34544
|
-
referencedRelation: "customers";
|
|
34545
|
-
referencedColumns: ["id"];
|
|
34546
|
-
}, {
|
|
34547
36970
|
foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
|
|
34548
36971
|
columns: ["parent_werkbon_id"];
|
|
34549
36972
|
isOneToOne: false;
|
|
34550
36973
|
referencedRelation: "werkbonnen";
|
|
34551
36974
|
referencedColumns: ["id"];
|
|
36975
|
+
}, {
|
|
36976
|
+
foreignKeyName: "werkbonnen_technician_id_fkey";
|
|
36977
|
+
columns: ["technician_id"];
|
|
36978
|
+
isOneToOne: false;
|
|
36979
|
+
referencedRelation: "monteurs";
|
|
36980
|
+
referencedColumns: ["id"];
|
|
34552
36981
|
}];
|
|
34553
36982
|
};
|
|
34554
36983
|
work_order_monteurs: {
|
|
@@ -35267,6 +37696,21 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
35267
37696
|
};
|
|
35268
37697
|
Returns: string;
|
|
35269
37698
|
};
|
|
37699
|
+
ai_usage_by_module: {
|
|
37700
|
+
Args: {
|
|
37701
|
+
_from: string;
|
|
37702
|
+
_to: string;
|
|
37703
|
+
};
|
|
37704
|
+
Returns: {
|
|
37705
|
+
calls: number;
|
|
37706
|
+
consumer_module_id: string;
|
|
37707
|
+
cost_usd: number;
|
|
37708
|
+
errors: number;
|
|
37709
|
+
input_tokens: number;
|
|
37710
|
+
output_tokens: number;
|
|
37711
|
+
total_tokens: number;
|
|
37712
|
+
}[];
|
|
37713
|
+
};
|
|
35270
37714
|
apply_stock_consumption: {
|
|
35271
37715
|
Args: {
|
|
35272
37716
|
p_order_id: string;
|
|
@@ -35415,6 +37859,12 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
35415
37859
|
Args: never;
|
|
35416
37860
|
Returns: string;
|
|
35417
37861
|
};
|
|
37862
|
+
custom_access_token_hook: {
|
|
37863
|
+
Args: {
|
|
37864
|
+
event: import("../integrations/supabase/types").Json;
|
|
37865
|
+
};
|
|
37866
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
37867
|
+
};
|
|
35418
37868
|
dashboard_alert_counts: {
|
|
35419
37869
|
Args: never;
|
|
35420
37870
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -35750,6 +38200,14 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
35750
38200
|
};
|
|
35751
38201
|
Returns: string;
|
|
35752
38202
|
};
|
|
38203
|
+
has_module_permission: {
|
|
38204
|
+
Args: {
|
|
38205
|
+
_min: string;
|
|
38206
|
+
_module_id: string;
|
|
38207
|
+
_user_id: string;
|
|
38208
|
+
};
|
|
38209
|
+
Returns: boolean;
|
|
38210
|
+
};
|
|
35753
38211
|
has_role: {
|
|
35754
38212
|
Args: {
|
|
35755
38213
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -35775,6 +38233,20 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
35775
38233
|
};
|
|
35776
38234
|
Returns: boolean;
|
|
35777
38235
|
};
|
|
38236
|
+
jwt_has_role: {
|
|
38237
|
+
Args: {
|
|
38238
|
+
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
38239
|
+
};
|
|
38240
|
+
Returns: boolean;
|
|
38241
|
+
};
|
|
38242
|
+
list_monteurs: {
|
|
38243
|
+
Args: never;
|
|
38244
|
+
Returns: {
|
|
38245
|
+
display_name: string;
|
|
38246
|
+
email: string;
|
|
38247
|
+
user_id: string;
|
|
38248
|
+
}[];
|
|
38249
|
+
};
|
|
35778
38250
|
local_effective_price: {
|
|
35779
38251
|
Args: {
|
|
35780
38252
|
_customer_id: string;
|
|
@@ -35791,6 +38263,22 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
35791
38263
|
source_id: string;
|
|
35792
38264
|
}[];
|
|
35793
38265
|
};
|
|
38266
|
+
log_ai_call: {
|
|
38267
|
+
Args: {
|
|
38268
|
+
_consumer_module_id: string;
|
|
38269
|
+
_cost_usd: number;
|
|
38270
|
+
_duration_ms: number;
|
|
38271
|
+
_error_code: string;
|
|
38272
|
+
_error_message: string;
|
|
38273
|
+
_input_tokens: number;
|
|
38274
|
+
_model_slug: string;
|
|
38275
|
+
_output_tokens: number;
|
|
38276
|
+
_provider_slug: string;
|
|
38277
|
+
_status: string;
|
|
38278
|
+
_total_tokens: number;
|
|
38279
|
+
};
|
|
38280
|
+
Returns: string;
|
|
38281
|
+
};
|
|
35794
38282
|
mark_offer_clicked: {
|
|
35795
38283
|
Args: {
|
|
35796
38284
|
p_code: string;
|
|
@@ -35803,6 +38291,12 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
35803
38291
|
};
|
|
35804
38292
|
Returns: undefined;
|
|
35805
38293
|
};
|
|
38294
|
+
mark_shipment_shipped: {
|
|
38295
|
+
Args: {
|
|
38296
|
+
p_shipment_id: string;
|
|
38297
|
+
};
|
|
38298
|
+
Returns: undefined;
|
|
38299
|
+
};
|
|
35806
38300
|
next_order_number: {
|
|
35807
38301
|
Args: {
|
|
35808
38302
|
p_prefix: string;
|
|
@@ -36279,9 +38773,11 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
36279
38773
|
};
|
|
36280
38774
|
};
|
|
36281
38775
|
Enums: {
|
|
36282
|
-
app_role: "admin" | "
|
|
38776
|
+
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
|
|
36283
38777
|
exact_env: "staging" | "live";
|
|
36284
38778
|
exact_push_status: "pending" | "sent" | "error";
|
|
38779
|
+
itk_customer_segment: "Business" | "Private";
|
|
38780
|
+
itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
|
|
36285
38781
|
quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
|
|
36286
38782
|
};
|
|
36287
38783
|
CompositeTypes: { [_ in never]: never; };
|