@flowselections/floriday-voorraad 1.0.23 → 1.0.26
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/assets/floriday-logo.png.asset.json +4 -4
- package/dist-lib/components/voorraad/ArtikelWizard.d.ts.map +1 -1
- package/dist-lib/components/voorraad/ArtikelWizard.js +633 -101
- package/dist-lib/components/voorraad/StepSamenstelling.d.ts +10 -0
- package/dist-lib/components/voorraad/StepSamenstelling.d.ts.map +1 -0
- package/dist-lib/components/voorraad/StepSamenstelling.js +333 -0
- package/dist-lib/components/voorraad/VoorraadPage.d.ts.map +1 -1
- package/dist-lib/components/voorraad/VoorraadPage.js +14 -3
- package/dist-lib/components/voorraad/VoorraadTable.d.ts.map +1 -1
- package/dist-lib/components/voorraad/VoorraadTable.js +6 -13
- package/dist-lib/hooks/useFloridayPriceGroups.d.ts +20 -0
- package/dist-lib/hooks/useFloridayPriceGroups.d.ts.map +1 -0
- package/dist-lib/hooks/useFloridayPriceGroups.js +55 -0
- package/dist-lib/hooks/useFloridayVbnRequired.d.ts +5 -0
- package/dist-lib/hooks/useFloridayVbnRequired.d.ts.map +1 -0
- package/dist-lib/hooks/useFloridayVbnRequired.js +16 -0
- package/dist-lib/hooks/useLocalTradeItems.d.ts.map +1 -1
- package/dist-lib/hooks/useLocalTradeItems.js +14 -0
- package/dist-lib/hooks/useTradeItemSpec.d.ts.map +1 -1
- package/dist-lib/hooks/useTradeItemSpec.js +48 -1
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +2378 -361
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +2378 -361
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +2378 -361
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +2412 -344
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.js +11 -9
- package/dist-lib/lib/centralSecrets.server.d.ts +21 -0
- package/dist-lib/lib/centralSecrets.server.d.ts.map +1 -0
- package/dist-lib/lib/centralSecrets.server.js +111 -0
- package/dist-lib/lib/floricode-required-features.functions.d.ts +2378 -361
- package/dist-lib/lib/floricode-required-features.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-customer-offer.functions.d.ts +2378 -361
- package/dist-lib/lib/floriday-customer-offer.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-gateway.functions.d.ts +10760 -675
- package/dist-lib/lib/floriday-gateway.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-gateway.server.d.ts.map +1 -1
- package/dist-lib/lib/floriday-gateway.server.js +34 -9
- package/dist-lib/lib/floriday-payload.d.ts +21 -3
- package/dist-lib/lib/floriday-payload.d.ts.map +1 -1
- package/dist-lib/lib/floriday-payload.js +167 -34
- package/dist-lib/lib/floriday-vbn-required.functions.d.ts +27769 -0
- package/dist-lib/lib/floriday-vbn-required.functions.d.ts.map +1 -0
- package/dist-lib/lib/floriday-vbn-required.functions.js +85 -0
- package/dist-lib/lib/floriday-warehouse.functions.d.ts +6542 -491
- package/dist-lib/lib/floriday-warehouse.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-writes.functions.d.ts +4647 -612
- package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-writes.functions.js +36 -1
- package/dist-lib/lib/trade-item-prices.d.ts +43 -0
- package/dist-lib/lib/trade-item-prices.d.ts.map +1 -0
- package/dist-lib/lib/trade-item-prices.js +229 -0
- package/package.json +3 -3
|
@@ -275,12 +275,98 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
275
275
|
};
|
|
276
276
|
Relationships: [];
|
|
277
277
|
};
|
|
278
|
+
ai_admin_credentials: {
|
|
279
|
+
Row: {
|
|
280
|
+
active: boolean;
|
|
281
|
+
admin_key: string;
|
|
282
|
+
created_at: string;
|
|
283
|
+
id: string;
|
|
284
|
+
label: string;
|
|
285
|
+
provider_id: string;
|
|
286
|
+
updated_at: string;
|
|
287
|
+
};
|
|
288
|
+
Insert: {
|
|
289
|
+
active?: boolean;
|
|
290
|
+
admin_key: string;
|
|
291
|
+
created_at?: string;
|
|
292
|
+
id?: string;
|
|
293
|
+
label: string;
|
|
294
|
+
provider_id: string;
|
|
295
|
+
updated_at?: string;
|
|
296
|
+
};
|
|
297
|
+
Update: {
|
|
298
|
+
active?: boolean;
|
|
299
|
+
admin_key?: string;
|
|
300
|
+
created_at?: string;
|
|
301
|
+
id?: string;
|
|
302
|
+
label?: string;
|
|
303
|
+
provider_id?: string;
|
|
304
|
+
updated_at?: string;
|
|
305
|
+
};
|
|
306
|
+
Relationships: [{
|
|
307
|
+
foreignKeyName: "ai_admin_credentials_provider_id_fkey";
|
|
308
|
+
columns: ["provider_id"];
|
|
309
|
+
isOneToOne: true;
|
|
310
|
+
referencedRelation: "ai_providers";
|
|
311
|
+
referencedColumns: ["id"];
|
|
312
|
+
}];
|
|
313
|
+
};
|
|
314
|
+
ai_call_log: {
|
|
315
|
+
Row: {
|
|
316
|
+
consumer_module_id: string;
|
|
317
|
+
cost_usd: number | null;
|
|
318
|
+
created_at: string;
|
|
319
|
+
created_by: string | null;
|
|
320
|
+
duration_ms: number | null;
|
|
321
|
+
error_code: string | null;
|
|
322
|
+
error_message: string | null;
|
|
323
|
+
id: string;
|
|
324
|
+
input_tokens: number;
|
|
325
|
+
model_slug: string | null;
|
|
326
|
+
output_tokens: number;
|
|
327
|
+
provider_slug: string | null;
|
|
328
|
+
status: string;
|
|
329
|
+
total_tokens: number;
|
|
330
|
+
};
|
|
331
|
+
Insert: {
|
|
332
|
+
consumer_module_id: string;
|
|
333
|
+
cost_usd?: number | null;
|
|
334
|
+
created_at?: string;
|
|
335
|
+
created_by?: string | null;
|
|
336
|
+
duration_ms?: number | null;
|
|
337
|
+
error_code?: string | null;
|
|
338
|
+
error_message?: string | null;
|
|
339
|
+
id?: string;
|
|
340
|
+
input_tokens?: number;
|
|
341
|
+
model_slug?: string | null;
|
|
342
|
+
output_tokens?: number;
|
|
343
|
+
provider_slug?: string | null;
|
|
344
|
+
status: string;
|
|
345
|
+
total_tokens?: number;
|
|
346
|
+
};
|
|
347
|
+
Update: {
|
|
348
|
+
consumer_module_id?: string;
|
|
349
|
+
cost_usd?: number | null;
|
|
350
|
+
created_at?: string;
|
|
351
|
+
created_by?: string | null;
|
|
352
|
+
duration_ms?: number | null;
|
|
353
|
+
error_code?: string | null;
|
|
354
|
+
error_message?: string | null;
|
|
355
|
+
id?: string;
|
|
356
|
+
input_tokens?: number;
|
|
357
|
+
model_slug?: string | null;
|
|
358
|
+
output_tokens?: number;
|
|
359
|
+
provider_slug?: string | null;
|
|
360
|
+
status?: string;
|
|
361
|
+
total_tokens?: number;
|
|
362
|
+
};
|
|
363
|
+
Relationships: [];
|
|
364
|
+
};
|
|
278
365
|
ai_credentials: {
|
|
279
366
|
Row: {
|
|
280
367
|
active: boolean;
|
|
281
368
|
api_key: string;
|
|
282
369
|
created_at: string;
|
|
283
|
-
created_by: string | null;
|
|
284
370
|
id: string;
|
|
285
371
|
label: string;
|
|
286
372
|
provider_id: string;
|
|
@@ -290,7 +376,6 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
290
376
|
active?: boolean;
|
|
291
377
|
api_key: string;
|
|
292
378
|
created_at?: string;
|
|
293
|
-
created_by?: string | null;
|
|
294
379
|
id?: string;
|
|
295
380
|
label: string;
|
|
296
381
|
provider_id: string;
|
|
@@ -300,7 +385,6 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
300
385
|
active?: boolean;
|
|
301
386
|
api_key?: string;
|
|
302
387
|
created_at?: string;
|
|
303
|
-
created_by?: string | null;
|
|
304
388
|
id?: string;
|
|
305
389
|
label?: string;
|
|
306
390
|
provider_id?: string;
|
|
@@ -314,6 +398,75 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
314
398
|
referencedColumns: ["id"];
|
|
315
399
|
}];
|
|
316
400
|
};
|
|
401
|
+
ai_goals: {
|
|
402
|
+
Row: {
|
|
403
|
+
active: boolean;
|
|
404
|
+
created_at: string;
|
|
405
|
+
description: string | null;
|
|
406
|
+
key: string;
|
|
407
|
+
label: string;
|
|
408
|
+
sort_order: number;
|
|
409
|
+
updated_at: string;
|
|
410
|
+
};
|
|
411
|
+
Insert: {
|
|
412
|
+
active?: boolean;
|
|
413
|
+
created_at?: string;
|
|
414
|
+
description?: string | null;
|
|
415
|
+
key: string;
|
|
416
|
+
label: string;
|
|
417
|
+
sort_order?: number;
|
|
418
|
+
updated_at?: string;
|
|
419
|
+
};
|
|
420
|
+
Update: {
|
|
421
|
+
active?: boolean;
|
|
422
|
+
created_at?: string;
|
|
423
|
+
description?: string | null;
|
|
424
|
+
key?: string;
|
|
425
|
+
label?: string;
|
|
426
|
+
sort_order?: number;
|
|
427
|
+
updated_at?: string;
|
|
428
|
+
};
|
|
429
|
+
Relationships: [];
|
|
430
|
+
};
|
|
431
|
+
ai_model_pricing: {
|
|
432
|
+
Row: {
|
|
433
|
+
created_at: string;
|
|
434
|
+
currency: string;
|
|
435
|
+
fetched_at: string;
|
|
436
|
+
id: string;
|
|
437
|
+
input_per_mtok: number | null;
|
|
438
|
+
model_slug: string;
|
|
439
|
+
output_per_mtok: number | null;
|
|
440
|
+
provider_slug: string;
|
|
441
|
+
source: string;
|
|
442
|
+
updated_at: string;
|
|
443
|
+
};
|
|
444
|
+
Insert: {
|
|
445
|
+
created_at?: string;
|
|
446
|
+
currency?: string;
|
|
447
|
+
fetched_at?: string;
|
|
448
|
+
id?: string;
|
|
449
|
+
input_per_mtok?: number | null;
|
|
450
|
+
model_slug: string;
|
|
451
|
+
output_per_mtok?: number | null;
|
|
452
|
+
provider_slug: string;
|
|
453
|
+
source?: string;
|
|
454
|
+
updated_at?: string;
|
|
455
|
+
};
|
|
456
|
+
Update: {
|
|
457
|
+
created_at?: string;
|
|
458
|
+
currency?: string;
|
|
459
|
+
fetched_at?: string;
|
|
460
|
+
id?: string;
|
|
461
|
+
input_per_mtok?: number | null;
|
|
462
|
+
model_slug?: string;
|
|
463
|
+
output_per_mtok?: number | null;
|
|
464
|
+
provider_slug?: string;
|
|
465
|
+
source?: string;
|
|
466
|
+
updated_at?: string;
|
|
467
|
+
};
|
|
468
|
+
Relationships: [];
|
|
469
|
+
};
|
|
317
470
|
ai_models: {
|
|
318
471
|
Row: {
|
|
319
472
|
active: boolean;
|
|
@@ -1061,6 +1214,141 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
1061
1214
|
};
|
|
1062
1215
|
Relationships: [];
|
|
1063
1216
|
};
|
|
1217
|
+
cart_planning_pick_times: {
|
|
1218
|
+
Row: {
|
|
1219
|
+
created_at: string;
|
|
1220
|
+
id: string;
|
|
1221
|
+
pot_size: string;
|
|
1222
|
+
seconds_per_cart: number;
|
|
1223
|
+
updated_at: string;
|
|
1224
|
+
};
|
|
1225
|
+
Insert: {
|
|
1226
|
+
created_at?: string;
|
|
1227
|
+
id?: string;
|
|
1228
|
+
pot_size: string;
|
|
1229
|
+
seconds_per_cart: number;
|
|
1230
|
+
updated_at?: string;
|
|
1231
|
+
};
|
|
1232
|
+
Update: {
|
|
1233
|
+
created_at?: string;
|
|
1234
|
+
id?: string;
|
|
1235
|
+
pot_size?: string;
|
|
1236
|
+
seconds_per_cart?: number;
|
|
1237
|
+
updated_at?: string;
|
|
1238
|
+
};
|
|
1239
|
+
Relationships: [];
|
|
1240
|
+
};
|
|
1241
|
+
cart_planning_product_overrides: {
|
|
1242
|
+
Row: {
|
|
1243
|
+
created_at: string;
|
|
1244
|
+
id: string;
|
|
1245
|
+
max_party_share_per_layer_pct_override: number | null;
|
|
1246
|
+
never_mix: boolean;
|
|
1247
|
+
notes: string | null;
|
|
1248
|
+
product_id: string;
|
|
1249
|
+
updated_at: string;
|
|
1250
|
+
};
|
|
1251
|
+
Insert: {
|
|
1252
|
+
created_at?: string;
|
|
1253
|
+
id?: string;
|
|
1254
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
1255
|
+
never_mix?: boolean;
|
|
1256
|
+
notes?: string | null;
|
|
1257
|
+
product_id: string;
|
|
1258
|
+
updated_at?: string;
|
|
1259
|
+
};
|
|
1260
|
+
Update: {
|
|
1261
|
+
created_at?: string;
|
|
1262
|
+
id?: string;
|
|
1263
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
1264
|
+
never_mix?: boolean;
|
|
1265
|
+
notes?: string | null;
|
|
1266
|
+
product_id?: string;
|
|
1267
|
+
updated_at?: string;
|
|
1268
|
+
};
|
|
1269
|
+
Relationships: [{
|
|
1270
|
+
foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
|
|
1271
|
+
columns: ["product_id"];
|
|
1272
|
+
isOneToOne: true;
|
|
1273
|
+
referencedRelation: "products";
|
|
1274
|
+
referencedColumns: ["id"];
|
|
1275
|
+
}];
|
|
1276
|
+
};
|
|
1277
|
+
cart_planning_settings: {
|
|
1278
|
+
Row: {
|
|
1279
|
+
allow_editing_after_pickstation_send: boolean;
|
|
1280
|
+
buffer_grouping_mode: string;
|
|
1281
|
+
combine_floriday_orders: boolean;
|
|
1282
|
+
combine_floriday_orders_window: string;
|
|
1283
|
+
combine_orders_scope: string;
|
|
1284
|
+
default_workers: number;
|
|
1285
|
+
id: number;
|
|
1286
|
+
max_beladingen_per_layer: number;
|
|
1287
|
+
max_customers_per_cart: number;
|
|
1288
|
+
max_one_customer_per_layer: boolean;
|
|
1289
|
+
max_party_share_per_layer_pct: number;
|
|
1290
|
+
optimization_strategy: string;
|
|
1291
|
+
own_cart_from_layers: number;
|
|
1292
|
+
pick_time_mode: string;
|
|
1293
|
+
plants_per_day: number;
|
|
1294
|
+
plants_per_hour: number;
|
|
1295
|
+
require_same_carrier: boolean;
|
|
1296
|
+
require_same_crate_type: boolean;
|
|
1297
|
+
require_same_delivery_date: boolean;
|
|
1298
|
+
require_same_delivery_location: boolean;
|
|
1299
|
+
updated_at: string;
|
|
1300
|
+
updated_by: string | null;
|
|
1301
|
+
};
|
|
1302
|
+
Insert: {
|
|
1303
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
1304
|
+
buffer_grouping_mode?: string;
|
|
1305
|
+
combine_floriday_orders?: boolean;
|
|
1306
|
+
combine_floriday_orders_window?: string;
|
|
1307
|
+
combine_orders_scope?: string;
|
|
1308
|
+
default_workers?: number;
|
|
1309
|
+
id?: number;
|
|
1310
|
+
max_beladingen_per_layer?: number;
|
|
1311
|
+
max_customers_per_cart?: number;
|
|
1312
|
+
max_one_customer_per_layer?: boolean;
|
|
1313
|
+
max_party_share_per_layer_pct?: number;
|
|
1314
|
+
optimization_strategy?: string;
|
|
1315
|
+
own_cart_from_layers?: number;
|
|
1316
|
+
pick_time_mode?: string;
|
|
1317
|
+
plants_per_day?: number;
|
|
1318
|
+
plants_per_hour?: number;
|
|
1319
|
+
require_same_carrier?: boolean;
|
|
1320
|
+
require_same_crate_type?: boolean;
|
|
1321
|
+
require_same_delivery_date?: boolean;
|
|
1322
|
+
require_same_delivery_location?: boolean;
|
|
1323
|
+
updated_at?: string;
|
|
1324
|
+
updated_by?: string | null;
|
|
1325
|
+
};
|
|
1326
|
+
Update: {
|
|
1327
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
1328
|
+
buffer_grouping_mode?: string;
|
|
1329
|
+
combine_floriday_orders?: boolean;
|
|
1330
|
+
combine_floriday_orders_window?: string;
|
|
1331
|
+
combine_orders_scope?: string;
|
|
1332
|
+
default_workers?: number;
|
|
1333
|
+
id?: number;
|
|
1334
|
+
max_beladingen_per_layer?: number;
|
|
1335
|
+
max_customers_per_cart?: number;
|
|
1336
|
+
max_one_customer_per_layer?: boolean;
|
|
1337
|
+
max_party_share_per_layer_pct?: number;
|
|
1338
|
+
optimization_strategy?: string;
|
|
1339
|
+
own_cart_from_layers?: number;
|
|
1340
|
+
pick_time_mode?: string;
|
|
1341
|
+
plants_per_day?: number;
|
|
1342
|
+
plants_per_hour?: number;
|
|
1343
|
+
require_same_carrier?: boolean;
|
|
1344
|
+
require_same_crate_type?: boolean;
|
|
1345
|
+
require_same_delivery_date?: boolean;
|
|
1346
|
+
require_same_delivery_location?: boolean;
|
|
1347
|
+
updated_at?: string;
|
|
1348
|
+
updated_by?: string | null;
|
|
1349
|
+
};
|
|
1350
|
+
Relationships: [];
|
|
1351
|
+
};
|
|
1064
1352
|
cart_replan_queue: {
|
|
1065
1353
|
Row: {
|
|
1066
1354
|
attempts: number;
|
|
@@ -1091,111 +1379,237 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
1091
1379
|
referencedColumns: ["id"];
|
|
1092
1380
|
}];
|
|
1093
1381
|
};
|
|
1094
|
-
|
|
1382
|
+
cart_types: {
|
|
1095
1383
|
Row: {
|
|
1096
1384
|
created_at: string;
|
|
1097
|
-
created_by: string | null;
|
|
1098
1385
|
id: string;
|
|
1386
|
+
is_default: boolean;
|
|
1387
|
+
layer_length_cm: number;
|
|
1388
|
+
layer_width_cm: number;
|
|
1389
|
+
layers_per_cart: number;
|
|
1099
1390
|
name: string;
|
|
1100
1391
|
updated_at: string;
|
|
1101
1392
|
};
|
|
1102
1393
|
Insert: {
|
|
1103
1394
|
created_at?: string;
|
|
1104
|
-
created_by?: string | null;
|
|
1105
1395
|
id?: string;
|
|
1396
|
+
is_default?: boolean;
|
|
1397
|
+
layer_length_cm: number;
|
|
1398
|
+
layer_width_cm: number;
|
|
1399
|
+
layers_per_cart?: number;
|
|
1106
1400
|
name: string;
|
|
1107
1401
|
updated_at?: string;
|
|
1108
1402
|
};
|
|
1109
1403
|
Update: {
|
|
1110
1404
|
created_at?: string;
|
|
1111
|
-
created_by?: string | null;
|
|
1112
1405
|
id?: string;
|
|
1406
|
+
is_default?: boolean;
|
|
1407
|
+
layer_length_cm?: number;
|
|
1408
|
+
layer_width_cm?: number;
|
|
1409
|
+
layers_per_cart?: number;
|
|
1113
1410
|
name?: string;
|
|
1114
1411
|
updated_at?: string;
|
|
1115
1412
|
};
|
|
1116
1413
|
Relationships: [];
|
|
1117
1414
|
};
|
|
1118
|
-
|
|
1415
|
+
catalog_articles_cache: {
|
|
1119
1416
|
Row: {
|
|
1120
|
-
action: string;
|
|
1121
|
-
changes: import("../integrations/supabase/types").Json;
|
|
1122
1417
|
created_at: string;
|
|
1123
|
-
|
|
1418
|
+
default_price: number;
|
|
1419
|
+
default_vat_rate_ref: string | null;
|
|
1420
|
+
external_ref: string;
|
|
1124
1421
|
id: string;
|
|
1125
|
-
|
|
1422
|
+
name: string;
|
|
1423
|
+
updated_at: string;
|
|
1424
|
+
user_id: string;
|
|
1126
1425
|
};
|
|
1127
1426
|
Insert: {
|
|
1128
|
-
action: string;
|
|
1129
|
-
changes?: import("../integrations/supabase/types").Json;
|
|
1130
1427
|
created_at?: string;
|
|
1131
|
-
|
|
1428
|
+
default_price?: number;
|
|
1429
|
+
default_vat_rate_ref?: string | null;
|
|
1430
|
+
external_ref: string;
|
|
1132
1431
|
id?: string;
|
|
1133
|
-
|
|
1432
|
+
name: string;
|
|
1433
|
+
updated_at?: string;
|
|
1434
|
+
user_id: string;
|
|
1134
1435
|
};
|
|
1135
1436
|
Update: {
|
|
1136
|
-
action?: string;
|
|
1137
|
-
changes?: import("../integrations/supabase/types").Json;
|
|
1138
1437
|
created_at?: string;
|
|
1139
|
-
|
|
1438
|
+
default_price?: number;
|
|
1439
|
+
default_vat_rate_ref?: string | null;
|
|
1440
|
+
external_ref?: string;
|
|
1140
1441
|
id?: string;
|
|
1141
|
-
|
|
1442
|
+
name?: string;
|
|
1443
|
+
updated_at?: string;
|
|
1444
|
+
user_id?: string;
|
|
1142
1445
|
};
|
|
1143
|
-
Relationships: [
|
|
1144
|
-
foreignKeyName: "customer_audit_log_customer_id_fkey";
|
|
1145
|
-
columns: ["customer_id"];
|
|
1146
|
-
isOneToOne: false;
|
|
1147
|
-
referencedRelation: "customers";
|
|
1148
|
-
referencedColumns: ["id"];
|
|
1149
|
-
}];
|
|
1446
|
+
Relationships: [];
|
|
1150
1447
|
};
|
|
1151
|
-
|
|
1448
|
+
catalog_vat_rates_cache: {
|
|
1152
1449
|
Row: {
|
|
1153
1450
|
created_at: string;
|
|
1154
|
-
|
|
1155
|
-
email: string | null;
|
|
1156
|
-
floriday_contact_id: string | null;
|
|
1157
|
-
full_name: string;
|
|
1451
|
+
external_ref: string;
|
|
1158
1452
|
id: string;
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
phone: string | null;
|
|
1162
|
-
photo_url: string | null;
|
|
1163
|
-
raw: import("../integrations/supabase/types").Json | null;
|
|
1453
|
+
label: string;
|
|
1454
|
+
percentage: number;
|
|
1164
1455
|
updated_at: string;
|
|
1456
|
+
user_id: string;
|
|
1165
1457
|
};
|
|
1166
1458
|
Insert: {
|
|
1167
1459
|
created_at?: string;
|
|
1168
|
-
|
|
1169
|
-
email?: string | null;
|
|
1170
|
-
floriday_contact_id?: string | null;
|
|
1171
|
-
full_name: string;
|
|
1460
|
+
external_ref: string;
|
|
1172
1461
|
id?: string;
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
phone?: string | null;
|
|
1176
|
-
photo_url?: string | null;
|
|
1177
|
-
raw?: import("../integrations/supabase/types").Json | null;
|
|
1462
|
+
label: string;
|
|
1463
|
+
percentage?: number;
|
|
1178
1464
|
updated_at?: string;
|
|
1465
|
+
user_id: string;
|
|
1179
1466
|
};
|
|
1180
1467
|
Update: {
|
|
1181
1468
|
created_at?: string;
|
|
1182
|
-
|
|
1183
|
-
email?: string | null;
|
|
1184
|
-
floriday_contact_id?: string | null;
|
|
1185
|
-
full_name?: string;
|
|
1469
|
+
external_ref?: string;
|
|
1186
1470
|
id?: string;
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
phone?: string | null;
|
|
1190
|
-
photo_url?: string | null;
|
|
1191
|
-
raw?: import("../integrations/supabase/types").Json | null;
|
|
1471
|
+
label?: string;
|
|
1472
|
+
percentage?: number;
|
|
1192
1473
|
updated_at?: string;
|
|
1474
|
+
user_id?: string;
|
|
1193
1475
|
};
|
|
1194
|
-
Relationships: [
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1476
|
+
Relationships: [];
|
|
1477
|
+
};
|
|
1478
|
+
collections: {
|
|
1479
|
+
Row: {
|
|
1480
|
+
created_at: string;
|
|
1481
|
+
created_by: string | null;
|
|
1482
|
+
id: string;
|
|
1483
|
+
name: string;
|
|
1484
|
+
updated_at: string;
|
|
1485
|
+
};
|
|
1486
|
+
Insert: {
|
|
1487
|
+
created_at?: string;
|
|
1488
|
+
created_by?: string | null;
|
|
1489
|
+
id?: string;
|
|
1490
|
+
name: string;
|
|
1491
|
+
updated_at?: string;
|
|
1492
|
+
};
|
|
1493
|
+
Update: {
|
|
1494
|
+
created_at?: string;
|
|
1495
|
+
created_by?: string | null;
|
|
1496
|
+
id?: string;
|
|
1497
|
+
name?: string;
|
|
1498
|
+
updated_at?: string;
|
|
1499
|
+
};
|
|
1500
|
+
Relationships: [];
|
|
1501
|
+
};
|
|
1502
|
+
crate_types: {
|
|
1503
|
+
Row: {
|
|
1504
|
+
created_at: string;
|
|
1505
|
+
id: string;
|
|
1506
|
+
length_cm: number;
|
|
1507
|
+
name: string;
|
|
1508
|
+
plants_per_crate: number;
|
|
1509
|
+
updated_at: string;
|
|
1510
|
+
width_cm: number;
|
|
1511
|
+
};
|
|
1512
|
+
Insert: {
|
|
1513
|
+
created_at?: string;
|
|
1514
|
+
id?: string;
|
|
1515
|
+
length_cm: number;
|
|
1516
|
+
name: string;
|
|
1517
|
+
plants_per_crate?: number;
|
|
1518
|
+
updated_at?: string;
|
|
1519
|
+
width_cm: number;
|
|
1520
|
+
};
|
|
1521
|
+
Update: {
|
|
1522
|
+
created_at?: string;
|
|
1523
|
+
id?: string;
|
|
1524
|
+
length_cm?: number;
|
|
1525
|
+
name?: string;
|
|
1526
|
+
plants_per_crate?: number;
|
|
1527
|
+
updated_at?: string;
|
|
1528
|
+
width_cm?: number;
|
|
1529
|
+
};
|
|
1530
|
+
Relationships: [];
|
|
1531
|
+
};
|
|
1532
|
+
customer_audit_log: {
|
|
1533
|
+
Row: {
|
|
1534
|
+
action: string;
|
|
1535
|
+
changes: import("../integrations/supabase/types").Json;
|
|
1536
|
+
created_at: string;
|
|
1537
|
+
customer_id: string;
|
|
1538
|
+
id: string;
|
|
1539
|
+
user_id: string | null;
|
|
1540
|
+
};
|
|
1541
|
+
Insert: {
|
|
1542
|
+
action: string;
|
|
1543
|
+
changes?: import("../integrations/supabase/types").Json;
|
|
1544
|
+
created_at?: string;
|
|
1545
|
+
customer_id: string;
|
|
1546
|
+
id?: string;
|
|
1547
|
+
user_id?: string | null;
|
|
1548
|
+
};
|
|
1549
|
+
Update: {
|
|
1550
|
+
action?: string;
|
|
1551
|
+
changes?: import("../integrations/supabase/types").Json;
|
|
1552
|
+
created_at?: string;
|
|
1553
|
+
customer_id?: string;
|
|
1554
|
+
id?: string;
|
|
1555
|
+
user_id?: string | null;
|
|
1556
|
+
};
|
|
1557
|
+
Relationships: [{
|
|
1558
|
+
foreignKeyName: "customer_audit_log_customer_id_fkey";
|
|
1559
|
+
columns: ["customer_id"];
|
|
1560
|
+
isOneToOne: false;
|
|
1561
|
+
referencedRelation: "customers";
|
|
1562
|
+
referencedColumns: ["id"];
|
|
1563
|
+
}];
|
|
1564
|
+
};
|
|
1565
|
+
customer_contacts: {
|
|
1566
|
+
Row: {
|
|
1567
|
+
created_at: string;
|
|
1568
|
+
customer_id: string;
|
|
1569
|
+
email: string | null;
|
|
1570
|
+
floriday_contact_id: string | null;
|
|
1571
|
+
full_name: string;
|
|
1572
|
+
id: string;
|
|
1573
|
+
is_active: boolean;
|
|
1574
|
+
job_title: string | null;
|
|
1575
|
+
phone: string | null;
|
|
1576
|
+
photo_url: string | null;
|
|
1577
|
+
raw: import("../integrations/supabase/types").Json | null;
|
|
1578
|
+
updated_at: string;
|
|
1579
|
+
};
|
|
1580
|
+
Insert: {
|
|
1581
|
+
created_at?: string;
|
|
1582
|
+
customer_id: string;
|
|
1583
|
+
email?: string | null;
|
|
1584
|
+
floriday_contact_id?: string | null;
|
|
1585
|
+
full_name: string;
|
|
1586
|
+
id?: string;
|
|
1587
|
+
is_active?: boolean;
|
|
1588
|
+
job_title?: string | null;
|
|
1589
|
+
phone?: string | null;
|
|
1590
|
+
photo_url?: string | null;
|
|
1591
|
+
raw?: import("../integrations/supabase/types").Json | null;
|
|
1592
|
+
updated_at?: string;
|
|
1593
|
+
};
|
|
1594
|
+
Update: {
|
|
1595
|
+
created_at?: string;
|
|
1596
|
+
customer_id?: string;
|
|
1597
|
+
email?: string | null;
|
|
1598
|
+
floriday_contact_id?: string | null;
|
|
1599
|
+
full_name?: string;
|
|
1600
|
+
id?: string;
|
|
1601
|
+
is_active?: boolean;
|
|
1602
|
+
job_title?: string | null;
|
|
1603
|
+
phone?: string | null;
|
|
1604
|
+
photo_url?: string | null;
|
|
1605
|
+
raw?: import("../integrations/supabase/types").Json | null;
|
|
1606
|
+
updated_at?: string;
|
|
1607
|
+
};
|
|
1608
|
+
Relationships: [{
|
|
1609
|
+
foreignKeyName: "customer_contacts_customer_id_fkey";
|
|
1610
|
+
columns: ["customer_id"];
|
|
1611
|
+
isOneToOne: false;
|
|
1612
|
+
referencedRelation: "customers";
|
|
1199
1613
|
referencedColumns: ["id"];
|
|
1200
1614
|
}];
|
|
1201
1615
|
};
|
|
@@ -1340,6 +1754,105 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
1340
1754
|
};
|
|
1341
1755
|
Relationships: [];
|
|
1342
1756
|
};
|
|
1757
|
+
customer_price_group_members: {
|
|
1758
|
+
Row: {
|
|
1759
|
+
created_at: string;
|
|
1760
|
+
customer_key: string;
|
|
1761
|
+
id: string;
|
|
1762
|
+
owner_id: string;
|
|
1763
|
+
price_group_id: string;
|
|
1764
|
+
};
|
|
1765
|
+
Insert: {
|
|
1766
|
+
created_at?: string;
|
|
1767
|
+
customer_key: string;
|
|
1768
|
+
id?: string;
|
|
1769
|
+
owner_id?: string;
|
|
1770
|
+
price_group_id: string;
|
|
1771
|
+
};
|
|
1772
|
+
Update: {
|
|
1773
|
+
created_at?: string;
|
|
1774
|
+
customer_key?: string;
|
|
1775
|
+
id?: string;
|
|
1776
|
+
owner_id?: string;
|
|
1777
|
+
price_group_id?: string;
|
|
1778
|
+
};
|
|
1779
|
+
Relationships: [{
|
|
1780
|
+
foreignKeyName: "customer_price_group_members_price_group_id_fkey";
|
|
1781
|
+
columns: ["price_group_id"];
|
|
1782
|
+
isOneToOne: false;
|
|
1783
|
+
referencedRelation: "customer_price_groups";
|
|
1784
|
+
referencedColumns: ["id"];
|
|
1785
|
+
}];
|
|
1786
|
+
};
|
|
1787
|
+
customer_price_groups: {
|
|
1788
|
+
Row: {
|
|
1789
|
+
calc_type: string | null;
|
|
1790
|
+
calc_value: number | null;
|
|
1791
|
+
calc_value_type: string | null;
|
|
1792
|
+
created_at: string;
|
|
1793
|
+
currency: string;
|
|
1794
|
+
distribute_over: string | null;
|
|
1795
|
+
group_type: string;
|
|
1796
|
+
handling_fee: number | null;
|
|
1797
|
+
id: string;
|
|
1798
|
+
include_stickers: boolean;
|
|
1799
|
+
is_active: boolean;
|
|
1800
|
+
name: string;
|
|
1801
|
+
owner_id: string;
|
|
1802
|
+
price_scope: string;
|
|
1803
|
+
pricing_mode: string;
|
|
1804
|
+
rounding: string;
|
|
1805
|
+
rounding_step: number;
|
|
1806
|
+
sort_order: number;
|
|
1807
|
+
unit: string;
|
|
1808
|
+
updated_at: string;
|
|
1809
|
+
};
|
|
1810
|
+
Insert: {
|
|
1811
|
+
calc_type?: string | null;
|
|
1812
|
+
calc_value?: number | null;
|
|
1813
|
+
calc_value_type?: string | null;
|
|
1814
|
+
created_at?: string;
|
|
1815
|
+
currency?: string;
|
|
1816
|
+
distribute_over?: string | null;
|
|
1817
|
+
group_type?: string;
|
|
1818
|
+
handling_fee?: number | null;
|
|
1819
|
+
id?: string;
|
|
1820
|
+
include_stickers?: boolean;
|
|
1821
|
+
is_active?: boolean;
|
|
1822
|
+
name: string;
|
|
1823
|
+
owner_id?: string;
|
|
1824
|
+
price_scope?: string;
|
|
1825
|
+
pricing_mode?: string;
|
|
1826
|
+
rounding?: string;
|
|
1827
|
+
rounding_step?: number;
|
|
1828
|
+
sort_order?: number;
|
|
1829
|
+
unit?: string;
|
|
1830
|
+
updated_at?: string;
|
|
1831
|
+
};
|
|
1832
|
+
Update: {
|
|
1833
|
+
calc_type?: string | null;
|
|
1834
|
+
calc_value?: number | null;
|
|
1835
|
+
calc_value_type?: string | null;
|
|
1836
|
+
created_at?: string;
|
|
1837
|
+
currency?: string;
|
|
1838
|
+
distribute_over?: string | null;
|
|
1839
|
+
group_type?: string;
|
|
1840
|
+
handling_fee?: number | null;
|
|
1841
|
+
id?: string;
|
|
1842
|
+
include_stickers?: boolean;
|
|
1843
|
+
is_active?: boolean;
|
|
1844
|
+
name?: string;
|
|
1845
|
+
owner_id?: string;
|
|
1846
|
+
price_scope?: string;
|
|
1847
|
+
pricing_mode?: string;
|
|
1848
|
+
rounding?: string;
|
|
1849
|
+
rounding_step?: number;
|
|
1850
|
+
sort_order?: number;
|
|
1851
|
+
unit?: string;
|
|
1852
|
+
updated_at?: string;
|
|
1853
|
+
};
|
|
1854
|
+
Relationships: [];
|
|
1855
|
+
};
|
|
1343
1856
|
customer_selected_assortment: {
|
|
1344
1857
|
Row: {
|
|
1345
1858
|
article_number: string | null;
|
|
@@ -1493,6 +2006,10 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
1493
2006
|
sync_error: string | null;
|
|
1494
2007
|
sync_status: string;
|
|
1495
2008
|
trade_forms: string[];
|
|
2009
|
+
twinfield_code: string | null;
|
|
2010
|
+
twinfield_last_hash: string | null;
|
|
2011
|
+
twinfield_sync_error: string | null;
|
|
2012
|
+
twinfield_synced_at: string | null;
|
|
1496
2013
|
updated_at: string;
|
|
1497
2014
|
vat_display: string | null;
|
|
1498
2015
|
vat_number: string | null;
|
|
@@ -1560,6 +2077,10 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
1560
2077
|
sync_error?: string | null;
|
|
1561
2078
|
sync_status?: string;
|
|
1562
2079
|
trade_forms?: string[];
|
|
2080
|
+
twinfield_code?: string | null;
|
|
2081
|
+
twinfield_last_hash?: string | null;
|
|
2082
|
+
twinfield_sync_error?: string | null;
|
|
2083
|
+
twinfield_synced_at?: string | null;
|
|
1563
2084
|
updated_at?: string;
|
|
1564
2085
|
vat_display?: string | null;
|
|
1565
2086
|
vat_number?: string | null;
|
|
@@ -1627,6 +2148,10 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
1627
2148
|
sync_error?: string | null;
|
|
1628
2149
|
sync_status?: string;
|
|
1629
2150
|
trade_forms?: string[];
|
|
2151
|
+
twinfield_code?: string | null;
|
|
2152
|
+
twinfield_last_hash?: string | null;
|
|
2153
|
+
twinfield_sync_error?: string | null;
|
|
2154
|
+
twinfield_synced_at?: string | null;
|
|
1630
2155
|
updated_at?: string;
|
|
1631
2156
|
vat_display?: string | null;
|
|
1632
2157
|
vat_number?: string | null;
|
|
@@ -3440,74 +3965,173 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
3440
3965
|
referencedColumns: ["id"];
|
|
3441
3966
|
}];
|
|
3442
3967
|
};
|
|
3443
|
-
|
|
3968
|
+
floriday_agreement_calloffs_cache: {
|
|
3444
3969
|
Row: {
|
|
3445
|
-
|
|
3446
|
-
clock_supply_id: string;
|
|
3970
|
+
agreement_id: string | null;
|
|
3447
3971
|
connection_id: string;
|
|
3448
|
-
|
|
3972
|
+
data: import("../integrations/supabase/types").Json;
|
|
3973
|
+
delivery_date: string | null;
|
|
3449
3974
|
fetched_at: string;
|
|
3975
|
+
floriday_id: string;
|
|
3450
3976
|
id: string;
|
|
3451
|
-
|
|
3977
|
+
is_deleted: boolean;
|
|
3978
|
+
sequence_number: number;
|
|
3979
|
+
status: string | null;
|
|
3980
|
+
updated_at: string;
|
|
3452
3981
|
};
|
|
3453
3982
|
Insert: {
|
|
3454
|
-
|
|
3455
|
-
clock_supply_id: string;
|
|
3983
|
+
agreement_id?: string | null;
|
|
3456
3984
|
connection_id: string;
|
|
3457
|
-
|
|
3985
|
+
data?: import("../integrations/supabase/types").Json;
|
|
3986
|
+
delivery_date?: string | null;
|
|
3458
3987
|
fetched_at?: string;
|
|
3988
|
+
floriday_id: string;
|
|
3459
3989
|
id?: string;
|
|
3460
|
-
|
|
3990
|
+
is_deleted?: boolean;
|
|
3991
|
+
sequence_number?: number;
|
|
3992
|
+
status?: string | null;
|
|
3993
|
+
updated_at?: string;
|
|
3461
3994
|
};
|
|
3462
3995
|
Update: {
|
|
3463
|
-
|
|
3464
|
-
clock_supply_id?: string;
|
|
3996
|
+
agreement_id?: string | null;
|
|
3465
3997
|
connection_id?: string;
|
|
3466
|
-
|
|
3998
|
+
data?: import("../integrations/supabase/types").Json;
|
|
3999
|
+
delivery_date?: string | null;
|
|
3467
4000
|
fetched_at?: string;
|
|
4001
|
+
floriday_id?: string;
|
|
3468
4002
|
id?: string;
|
|
3469
|
-
|
|
4003
|
+
is_deleted?: boolean;
|
|
4004
|
+
sequence_number?: number;
|
|
4005
|
+
status?: string | null;
|
|
4006
|
+
updated_at?: string;
|
|
3470
4007
|
};
|
|
3471
4008
|
Relationships: [{
|
|
3472
|
-
foreignKeyName: "
|
|
4009
|
+
foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
|
|
3473
4010
|
columns: ["connection_id"];
|
|
3474
4011
|
isOneToOne: false;
|
|
3475
4012
|
referencedRelation: "floriday_connections";
|
|
3476
4013
|
referencedColumns: ["id"];
|
|
3477
4014
|
}];
|
|
3478
4015
|
};
|
|
3479
|
-
|
|
4016
|
+
floriday_agreements_cache: {
|
|
3480
4017
|
Row: {
|
|
3481
|
-
|
|
4018
|
+
buyer_organization_id: string | null;
|
|
3482
4019
|
connection_id: string;
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
4020
|
+
data: import("../integrations/supabase/types").Json;
|
|
4021
|
+
fetched_at: string;
|
|
4022
|
+
floriday_id: string;
|
|
3486
4023
|
id: string;
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
status: string;
|
|
4024
|
+
is_deleted: boolean;
|
|
4025
|
+
sequence_number: number;
|
|
4026
|
+
status: string | null;
|
|
3491
4027
|
updated_at: string;
|
|
4028
|
+
valid_from: string | null;
|
|
4029
|
+
valid_until: string | null;
|
|
3492
4030
|
};
|
|
3493
4031
|
Insert: {
|
|
3494
|
-
|
|
4032
|
+
buyer_organization_id?: string | null;
|
|
3495
4033
|
connection_id: string;
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
4034
|
+
data?: import("../integrations/supabase/types").Json;
|
|
4035
|
+
fetched_at?: string;
|
|
4036
|
+
floriday_id: string;
|
|
3499
4037
|
id?: string;
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
status?: string;
|
|
4038
|
+
is_deleted?: boolean;
|
|
4039
|
+
sequence_number?: number;
|
|
4040
|
+
status?: string | null;
|
|
3504
4041
|
updated_at?: string;
|
|
4042
|
+
valid_from?: string | null;
|
|
4043
|
+
valid_until?: string | null;
|
|
3505
4044
|
};
|
|
3506
4045
|
Update: {
|
|
3507
|
-
|
|
4046
|
+
buyer_organization_id?: string | null;
|
|
3508
4047
|
connection_id?: string;
|
|
3509
|
-
|
|
3510
|
-
|
|
4048
|
+
data?: import("../integrations/supabase/types").Json;
|
|
4049
|
+
fetched_at?: string;
|
|
4050
|
+
floriday_id?: string;
|
|
4051
|
+
id?: string;
|
|
4052
|
+
is_deleted?: boolean;
|
|
4053
|
+
sequence_number?: number;
|
|
4054
|
+
status?: string | null;
|
|
4055
|
+
updated_at?: string;
|
|
4056
|
+
valid_from?: string | null;
|
|
4057
|
+
valid_until?: string | null;
|
|
4058
|
+
};
|
|
4059
|
+
Relationships: [{
|
|
4060
|
+
foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
|
|
4061
|
+
columns: ["connection_id"];
|
|
4062
|
+
isOneToOne: false;
|
|
4063
|
+
referencedRelation: "floriday_connections";
|
|
4064
|
+
referencedColumns: ["id"];
|
|
4065
|
+
}];
|
|
4066
|
+
};
|
|
4067
|
+
floriday_auction_letters_cache: {
|
|
4068
|
+
Row: {
|
|
4069
|
+
auction_letter_code: string;
|
|
4070
|
+
clock_supply_id: string;
|
|
4071
|
+
connection_id: string;
|
|
4072
|
+
content_type: string;
|
|
4073
|
+
fetched_at: string;
|
|
4074
|
+
id: string;
|
|
4075
|
+
storage_path: string;
|
|
4076
|
+
};
|
|
4077
|
+
Insert: {
|
|
4078
|
+
auction_letter_code: string;
|
|
4079
|
+
clock_supply_id: string;
|
|
4080
|
+
connection_id: string;
|
|
4081
|
+
content_type?: string;
|
|
4082
|
+
fetched_at?: string;
|
|
4083
|
+
id?: string;
|
|
4084
|
+
storage_path: string;
|
|
4085
|
+
};
|
|
4086
|
+
Update: {
|
|
4087
|
+
auction_letter_code?: string;
|
|
4088
|
+
clock_supply_id?: string;
|
|
4089
|
+
connection_id?: string;
|
|
4090
|
+
content_type?: string;
|
|
4091
|
+
fetched_at?: string;
|
|
4092
|
+
id?: string;
|
|
4093
|
+
storage_path?: string;
|
|
4094
|
+
};
|
|
4095
|
+
Relationships: [{
|
|
4096
|
+
foreignKeyName: "floriday_auction_letters_cache_connection_id_fkey";
|
|
4097
|
+
columns: ["connection_id"];
|
|
4098
|
+
isOneToOne: false;
|
|
4099
|
+
referencedRelation: "floriday_connections";
|
|
4100
|
+
referencedColumns: ["id"];
|
|
4101
|
+
}];
|
|
4102
|
+
};
|
|
4103
|
+
floriday_auto_fulfillment_log: {
|
|
4104
|
+
Row: {
|
|
4105
|
+
attempts: number;
|
|
4106
|
+
connection_id: string;
|
|
4107
|
+
created_at: string;
|
|
4108
|
+
error: string | null;
|
|
4109
|
+
fulfillment_order_id: string | null;
|
|
4110
|
+
id: string;
|
|
4111
|
+
last_attempt_at: string | null;
|
|
4112
|
+
reason: string | null;
|
|
4113
|
+
sales_order_id: string;
|
|
4114
|
+
status: string;
|
|
4115
|
+
updated_at: string;
|
|
4116
|
+
};
|
|
4117
|
+
Insert: {
|
|
4118
|
+
attempts?: number;
|
|
4119
|
+
connection_id: string;
|
|
4120
|
+
created_at?: string;
|
|
4121
|
+
error?: string | null;
|
|
4122
|
+
fulfillment_order_id?: string | null;
|
|
4123
|
+
id?: string;
|
|
4124
|
+
last_attempt_at?: string | null;
|
|
4125
|
+
reason?: string | null;
|
|
4126
|
+
sales_order_id: string;
|
|
4127
|
+
status?: string;
|
|
4128
|
+
updated_at?: string;
|
|
4129
|
+
};
|
|
4130
|
+
Update: {
|
|
4131
|
+
attempts?: number;
|
|
4132
|
+
connection_id?: string;
|
|
4133
|
+
created_at?: string;
|
|
4134
|
+
error?: string | null;
|
|
3511
4135
|
fulfillment_order_id?: string | null;
|
|
3512
4136
|
id?: string;
|
|
3513
4137
|
last_attempt_at?: string | null;
|
|
@@ -4734,8 +5358,6 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
4734
5358
|
Row: {
|
|
4735
5359
|
buyer_organization_id: string | null;
|
|
4736
5360
|
connection_id: string;
|
|
4737
|
-
controlled_at: string | null;
|
|
4738
|
-
controlled_by: string | null;
|
|
4739
5361
|
created_at: string;
|
|
4740
5362
|
data: import("../integrations/supabase/types").Json;
|
|
4741
5363
|
floriday_id: string;
|
|
@@ -4747,8 +5369,6 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
4747
5369
|
Insert: {
|
|
4748
5370
|
buyer_organization_id?: string | null;
|
|
4749
5371
|
connection_id: string;
|
|
4750
|
-
controlled_at?: string | null;
|
|
4751
|
-
controlled_by?: string | null;
|
|
4752
5372
|
created_at?: string;
|
|
4753
5373
|
data: import("../integrations/supabase/types").Json;
|
|
4754
5374
|
floriday_id: string;
|
|
@@ -4760,8 +5380,6 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
4760
5380
|
Update: {
|
|
4761
5381
|
buyer_organization_id?: string | null;
|
|
4762
5382
|
connection_id?: string;
|
|
4763
|
-
controlled_at?: string | null;
|
|
4764
|
-
controlled_by?: string | null;
|
|
4765
5383
|
created_at?: string;
|
|
4766
5384
|
data?: import("../integrations/supabase/types").Json;
|
|
4767
5385
|
floriday_id?: string;
|
|
@@ -4943,45 +5561,6 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
4943
5561
|
referencedColumns: ["id"];
|
|
4944
5562
|
}];
|
|
4945
5563
|
};
|
|
4946
|
-
floriday_trade_settings_customers_cache: {
|
|
4947
|
-
Row: {
|
|
4948
|
-
connection_id: string;
|
|
4949
|
-
data: import("../integrations/supabase/types").Json;
|
|
4950
|
-
fetched_at: string;
|
|
4951
|
-
floriday_id: string;
|
|
4952
|
-
id: string;
|
|
4953
|
-
is_deleted: boolean;
|
|
4954
|
-
sequence_number: number;
|
|
4955
|
-
updated_at: string;
|
|
4956
|
-
};
|
|
4957
|
-
Insert: {
|
|
4958
|
-
connection_id: string;
|
|
4959
|
-
data: import("../integrations/supabase/types").Json;
|
|
4960
|
-
fetched_at?: string;
|
|
4961
|
-
floriday_id: string;
|
|
4962
|
-
id?: string;
|
|
4963
|
-
is_deleted?: boolean;
|
|
4964
|
-
sequence_number?: number;
|
|
4965
|
-
updated_at?: string;
|
|
4966
|
-
};
|
|
4967
|
-
Update: {
|
|
4968
|
-
connection_id?: string;
|
|
4969
|
-
data?: import("../integrations/supabase/types").Json;
|
|
4970
|
-
fetched_at?: string;
|
|
4971
|
-
floriday_id?: string;
|
|
4972
|
-
id?: string;
|
|
4973
|
-
is_deleted?: boolean;
|
|
4974
|
-
sequence_number?: number;
|
|
4975
|
-
updated_at?: string;
|
|
4976
|
-
};
|
|
4977
|
-
Relationships: [{
|
|
4978
|
-
foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
|
|
4979
|
-
columns: ["connection_id"];
|
|
4980
|
-
isOneToOne: false;
|
|
4981
|
-
referencedRelation: "floriday_connections";
|
|
4982
|
-
referencedColumns: ["id"];
|
|
4983
|
-
}];
|
|
4984
|
-
};
|
|
4985
5564
|
floriday_trips_cache: {
|
|
4986
5565
|
Row: {
|
|
4987
5566
|
carrier_organization_id: string | null;
|
|
@@ -5030,6 +5609,27 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
5030
5609
|
referencedColumns: ["id"];
|
|
5031
5610
|
}];
|
|
5032
5611
|
};
|
|
5612
|
+
floriday_vbn_required_characteristics: {
|
|
5613
|
+
Row: {
|
|
5614
|
+
required_codes: string[];
|
|
5615
|
+
updated_at: string;
|
|
5616
|
+
updated_by: string | null;
|
|
5617
|
+
vbn_code: string;
|
|
5618
|
+
};
|
|
5619
|
+
Insert: {
|
|
5620
|
+
required_codes?: string[];
|
|
5621
|
+
updated_at?: string;
|
|
5622
|
+
updated_by?: string | null;
|
|
5623
|
+
vbn_code: string;
|
|
5624
|
+
};
|
|
5625
|
+
Update: {
|
|
5626
|
+
required_codes?: string[];
|
|
5627
|
+
updated_at?: string;
|
|
5628
|
+
updated_by?: string | null;
|
|
5629
|
+
vbn_code?: string;
|
|
5630
|
+
};
|
|
5631
|
+
Relationships: [];
|
|
5632
|
+
};
|
|
5033
5633
|
floriday_warehouses_cache: {
|
|
5034
5634
|
Row: {
|
|
5035
5635
|
connection_id: string;
|
|
@@ -5510,172 +6110,454 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
5510
6110
|
};
|
|
5511
6111
|
Relationships: [];
|
|
5512
6112
|
};
|
|
5513
|
-
|
|
6113
|
+
itk_contact_persons: {
|
|
5514
6114
|
Row: {
|
|
5515
|
-
base_price: number | null;
|
|
5516
6115
|
created_at: string;
|
|
5517
|
-
currency: string;
|
|
5518
6116
|
customer_id: string;
|
|
6117
|
+
email: string | null;
|
|
5519
6118
|
id: string;
|
|
5520
|
-
|
|
5521
|
-
|
|
5522
|
-
|
|
5523
|
-
product_category_id: string | null;
|
|
5524
|
-
product_id: string | null;
|
|
6119
|
+
name: string;
|
|
6120
|
+
phone: string | null;
|
|
6121
|
+
role: string | null;
|
|
5525
6122
|
updated_at: string;
|
|
5526
|
-
valid_from: string | null;
|
|
5527
|
-
valid_until: string | null;
|
|
5528
6123
|
};
|
|
5529
6124
|
Insert: {
|
|
5530
|
-
base_price?: number | null;
|
|
5531
6125
|
created_at?: string;
|
|
5532
|
-
currency?: string;
|
|
5533
6126
|
customer_id: string;
|
|
6127
|
+
email?: string | null;
|
|
5534
6128
|
id?: string;
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
|
|
5538
|
-
product_category_id?: string | null;
|
|
5539
|
-
product_id?: string | null;
|
|
6129
|
+
name: string;
|
|
6130
|
+
phone?: string | null;
|
|
6131
|
+
role?: string | null;
|
|
5540
6132
|
updated_at?: string;
|
|
5541
|
-
valid_from?: string | null;
|
|
5542
|
-
valid_until?: string | null;
|
|
5543
6133
|
};
|
|
5544
6134
|
Update: {
|
|
5545
|
-
base_price?: number | null;
|
|
5546
6135
|
created_at?: string;
|
|
5547
|
-
currency?: string;
|
|
5548
6136
|
customer_id?: string;
|
|
6137
|
+
email?: string | null;
|
|
5549
6138
|
id?: string;
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
product_category_id?: string | null;
|
|
5554
|
-
product_id?: string | null;
|
|
6139
|
+
name?: string;
|
|
6140
|
+
phone?: string | null;
|
|
6141
|
+
role?: string | null;
|
|
5555
6142
|
updated_at?: string;
|
|
5556
|
-
valid_from?: string | null;
|
|
5557
|
-
valid_until?: string | null;
|
|
5558
6143
|
};
|
|
5559
6144
|
Relationships: [{
|
|
5560
|
-
foreignKeyName: "
|
|
6145
|
+
foreignKeyName: "itk_contact_persons_customer_id_fkey";
|
|
5561
6146
|
columns: ["customer_id"];
|
|
5562
6147
|
isOneToOne: false;
|
|
5563
|
-
referencedRelation: "
|
|
5564
|
-
referencedColumns: ["id"];
|
|
5565
|
-
}, {
|
|
5566
|
-
foreignKeyName: "local_customer_agreements_product_category_id_fkey";
|
|
5567
|
-
columns: ["product_category_id"];
|
|
5568
|
-
isOneToOne: false;
|
|
5569
|
-
referencedRelation: "product_categories";
|
|
5570
|
-
referencedColumns: ["id"];
|
|
5571
|
-
}, {
|
|
5572
|
-
foreignKeyName: "local_customer_agreements_product_id_fkey";
|
|
5573
|
-
columns: ["product_id"];
|
|
5574
|
-
isOneToOne: false;
|
|
5575
|
-
referencedRelation: "products";
|
|
6148
|
+
referencedRelation: "itk_customers";
|
|
5576
6149
|
referencedColumns: ["id"];
|
|
5577
6150
|
}];
|
|
5578
6151
|
};
|
|
5579
|
-
|
|
6152
|
+
itk_customer_dynamic_values: {
|
|
5580
6153
|
Row: {
|
|
5581
6154
|
created_at: string;
|
|
5582
|
-
currency: string;
|
|
5583
6155
|
customer_id: string;
|
|
5584
|
-
|
|
5585
|
-
discount_value: number;
|
|
6156
|
+
field_id: string;
|
|
5586
6157
|
id: string;
|
|
5587
|
-
min_quantity: number;
|
|
5588
|
-
notes: string | null;
|
|
5589
|
-
product_category_id: string | null;
|
|
5590
|
-
product_id: string | null;
|
|
5591
6158
|
updated_at: string;
|
|
5592
|
-
|
|
5593
|
-
valid_until: string | null;
|
|
6159
|
+
value: string | null;
|
|
5594
6160
|
};
|
|
5595
6161
|
Insert: {
|
|
5596
6162
|
created_at?: string;
|
|
5597
|
-
currency?: string;
|
|
5598
6163
|
customer_id: string;
|
|
5599
|
-
|
|
5600
|
-
discount_value: number;
|
|
6164
|
+
field_id: string;
|
|
5601
6165
|
id?: string;
|
|
5602
|
-
min_quantity?: number;
|
|
5603
|
-
notes?: string | null;
|
|
5604
|
-
product_category_id?: string | null;
|
|
5605
|
-
product_id?: string | null;
|
|
5606
6166
|
updated_at?: string;
|
|
5607
|
-
|
|
5608
|
-
valid_until?: string | null;
|
|
6167
|
+
value?: string | null;
|
|
5609
6168
|
};
|
|
5610
6169
|
Update: {
|
|
5611
6170
|
created_at?: string;
|
|
5612
|
-
currency?: string;
|
|
5613
6171
|
customer_id?: string;
|
|
5614
|
-
|
|
5615
|
-
discount_value?: number;
|
|
6172
|
+
field_id?: string;
|
|
5616
6173
|
id?: string;
|
|
5617
|
-
min_quantity?: number;
|
|
5618
|
-
notes?: string | null;
|
|
5619
|
-
product_category_id?: string | null;
|
|
5620
|
-
product_id?: string | null;
|
|
5621
6174
|
updated_at?: string;
|
|
5622
|
-
|
|
5623
|
-
valid_until?: string | null;
|
|
6175
|
+
value?: string | null;
|
|
5624
6176
|
};
|
|
5625
6177
|
Relationships: [{
|
|
5626
|
-
foreignKeyName: "
|
|
6178
|
+
foreignKeyName: "itk_customer_dynamic_values_customer_id_fkey";
|
|
5627
6179
|
columns: ["customer_id"];
|
|
5628
6180
|
isOneToOne: false;
|
|
5629
|
-
referencedRelation: "
|
|
5630
|
-
referencedColumns: ["id"];
|
|
5631
|
-
}, {
|
|
5632
|
-
foreignKeyName: "local_customer_price_groups_product_category_id_fkey";
|
|
5633
|
-
columns: ["product_category_id"];
|
|
5634
|
-
isOneToOne: false;
|
|
5635
|
-
referencedRelation: "product_categories";
|
|
6181
|
+
referencedRelation: "itk_customers";
|
|
5636
6182
|
referencedColumns: ["id"];
|
|
5637
6183
|
}, {
|
|
5638
|
-
foreignKeyName: "
|
|
5639
|
-
columns: ["
|
|
6184
|
+
foreignKeyName: "itk_customer_dynamic_values_field_id_fkey";
|
|
6185
|
+
columns: ["field_id"];
|
|
5640
6186
|
isOneToOne: false;
|
|
5641
|
-
referencedRelation: "
|
|
6187
|
+
referencedRelation: "itk_dynamic_fields";
|
|
5642
6188
|
referencedColumns: ["id"];
|
|
5643
6189
|
}];
|
|
5644
6190
|
};
|
|
5645
|
-
|
|
6191
|
+
itk_customer_notes: {
|
|
5646
6192
|
Row: {
|
|
6193
|
+
body: string;
|
|
5647
6194
|
created_at: string;
|
|
5648
|
-
|
|
6195
|
+
created_by: string | null;
|
|
5649
6196
|
customer_id: string;
|
|
5650
|
-
discount_type: string;
|
|
5651
|
-
discount_value: number;
|
|
5652
6197
|
id: string;
|
|
5653
|
-
|
|
5654
|
-
notes: string | null;
|
|
5655
|
-
product_category_id: string | null;
|
|
5656
|
-
product_id: string | null;
|
|
6198
|
+
note_type: string;
|
|
5657
6199
|
updated_at: string;
|
|
5658
|
-
valid_from: string | null;
|
|
5659
|
-
valid_until: string | null;
|
|
5660
6200
|
};
|
|
5661
6201
|
Insert: {
|
|
6202
|
+
body: string;
|
|
5662
6203
|
created_at?: string;
|
|
5663
|
-
|
|
6204
|
+
created_by?: string | null;
|
|
5664
6205
|
customer_id: string;
|
|
5665
|
-
discount_type: string;
|
|
5666
|
-
discount_value: number;
|
|
5667
6206
|
id?: string;
|
|
5668
|
-
|
|
5669
|
-
notes?: string | null;
|
|
5670
|
-
product_category_id?: string | null;
|
|
5671
|
-
product_id?: string | null;
|
|
6207
|
+
note_type?: string;
|
|
5672
6208
|
updated_at?: string;
|
|
5673
|
-
valid_from?: string | null;
|
|
5674
|
-
valid_until?: string | null;
|
|
5675
6209
|
};
|
|
5676
6210
|
Update: {
|
|
6211
|
+
body?: string;
|
|
5677
6212
|
created_at?: string;
|
|
5678
|
-
|
|
6213
|
+
created_by?: string | null;
|
|
6214
|
+
customer_id?: string;
|
|
6215
|
+
id?: string;
|
|
6216
|
+
note_type?: string;
|
|
6217
|
+
updated_at?: string;
|
|
6218
|
+
};
|
|
6219
|
+
Relationships: [{
|
|
6220
|
+
foreignKeyName: "itk_customer_notes_customer_id_fkey";
|
|
6221
|
+
columns: ["customer_id"];
|
|
6222
|
+
isOneToOne: false;
|
|
6223
|
+
referencedRelation: "itk_customers";
|
|
6224
|
+
referencedColumns: ["id"];
|
|
6225
|
+
}];
|
|
6226
|
+
};
|
|
6227
|
+
itk_customers: {
|
|
6228
|
+
Row: {
|
|
6229
|
+
billing_city: string | null;
|
|
6230
|
+
billing_postcode: string | null;
|
|
6231
|
+
billing_street: string | null;
|
|
6232
|
+
created_at: string;
|
|
6233
|
+
general_email: string | null;
|
|
6234
|
+
general_phone: string | null;
|
|
6235
|
+
id: string;
|
|
6236
|
+
legacy_customer_id: string | null;
|
|
6237
|
+
name: string;
|
|
6238
|
+
segment: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
6239
|
+
updated_at: string;
|
|
6240
|
+
};
|
|
6241
|
+
Insert: {
|
|
6242
|
+
billing_city?: string | null;
|
|
6243
|
+
billing_postcode?: string | null;
|
|
6244
|
+
billing_street?: string | null;
|
|
6245
|
+
created_at?: string;
|
|
6246
|
+
general_email?: string | null;
|
|
6247
|
+
general_phone?: string | null;
|
|
6248
|
+
id?: string;
|
|
6249
|
+
legacy_customer_id?: string | null;
|
|
6250
|
+
name: string;
|
|
6251
|
+
segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
6252
|
+
updated_at?: string;
|
|
6253
|
+
};
|
|
6254
|
+
Update: {
|
|
6255
|
+
billing_city?: string | null;
|
|
6256
|
+
billing_postcode?: string | null;
|
|
6257
|
+
billing_street?: string | null;
|
|
6258
|
+
created_at?: string;
|
|
6259
|
+
general_email?: string | null;
|
|
6260
|
+
general_phone?: string | null;
|
|
6261
|
+
id?: string;
|
|
6262
|
+
legacy_customer_id?: string | null;
|
|
6263
|
+
name?: string;
|
|
6264
|
+
segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
6265
|
+
updated_at?: string;
|
|
6266
|
+
};
|
|
6267
|
+
Relationships: [{
|
|
6268
|
+
foreignKeyName: "itk_customers_legacy_customer_id_fkey";
|
|
6269
|
+
columns: ["legacy_customer_id"];
|
|
6270
|
+
isOneToOne: false;
|
|
6271
|
+
referencedRelation: "customers";
|
|
6272
|
+
referencedColumns: ["id"];
|
|
6273
|
+
}];
|
|
6274
|
+
};
|
|
6275
|
+
itk_dynamic_fields: {
|
|
6276
|
+
Row: {
|
|
6277
|
+
created_at: string;
|
|
6278
|
+
field_name: string;
|
|
6279
|
+
field_type: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
6280
|
+
id: string;
|
|
6281
|
+
options: import("../integrations/supabase/types").Json;
|
|
6282
|
+
sort_order: number;
|
|
6283
|
+
updated_at: string;
|
|
6284
|
+
};
|
|
6285
|
+
Insert: {
|
|
6286
|
+
created_at?: string;
|
|
6287
|
+
field_name: string;
|
|
6288
|
+
field_type?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
6289
|
+
id?: string;
|
|
6290
|
+
options?: import("../integrations/supabase/types").Json;
|
|
6291
|
+
sort_order?: number;
|
|
6292
|
+
updated_at?: string;
|
|
6293
|
+
};
|
|
6294
|
+
Update: {
|
|
6295
|
+
created_at?: string;
|
|
6296
|
+
field_name?: string;
|
|
6297
|
+
field_type?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
6298
|
+
id?: string;
|
|
6299
|
+
options?: import("../integrations/supabase/types").Json;
|
|
6300
|
+
sort_order?: number;
|
|
6301
|
+
updated_at?: string;
|
|
6302
|
+
};
|
|
6303
|
+
Relationships: [];
|
|
6304
|
+
};
|
|
6305
|
+
itk_work_locations: {
|
|
6306
|
+
Row: {
|
|
6307
|
+
city: string | null;
|
|
6308
|
+
created_at: string;
|
|
6309
|
+
customer_id: string;
|
|
6310
|
+
id: string;
|
|
6311
|
+
instructions: string | null;
|
|
6312
|
+
label: string;
|
|
6313
|
+
latitude: number | null;
|
|
6314
|
+
longitude: number | null;
|
|
6315
|
+
postcode: string | null;
|
|
6316
|
+
street: string | null;
|
|
6317
|
+
updated_at: string;
|
|
6318
|
+
};
|
|
6319
|
+
Insert: {
|
|
6320
|
+
city?: string | null;
|
|
6321
|
+
created_at?: string;
|
|
6322
|
+
customer_id: string;
|
|
6323
|
+
id?: string;
|
|
6324
|
+
instructions?: string | null;
|
|
6325
|
+
label: string;
|
|
6326
|
+
latitude?: number | null;
|
|
6327
|
+
longitude?: number | null;
|
|
6328
|
+
postcode?: string | null;
|
|
6329
|
+
street?: string | null;
|
|
6330
|
+
updated_at?: string;
|
|
6331
|
+
};
|
|
6332
|
+
Update: {
|
|
6333
|
+
city?: string | null;
|
|
6334
|
+
created_at?: string;
|
|
6335
|
+
customer_id?: string;
|
|
6336
|
+
id?: string;
|
|
6337
|
+
instructions?: string | null;
|
|
6338
|
+
label?: string;
|
|
6339
|
+
latitude?: number | null;
|
|
6340
|
+
longitude?: number | null;
|
|
6341
|
+
postcode?: string | null;
|
|
6342
|
+
street?: string | null;
|
|
6343
|
+
updated_at?: string;
|
|
6344
|
+
};
|
|
6345
|
+
Relationships: [{
|
|
6346
|
+
foreignKeyName: "itk_work_locations_customer_id_fkey";
|
|
6347
|
+
columns: ["customer_id"];
|
|
6348
|
+
isOneToOne: false;
|
|
6349
|
+
referencedRelation: "itk_customers";
|
|
6350
|
+
referencedColumns: ["id"];
|
|
6351
|
+
}];
|
|
6352
|
+
};
|
|
6353
|
+
leave_requests: {
|
|
6354
|
+
Row: {
|
|
6355
|
+
created_at: string;
|
|
6356
|
+
end_date: string;
|
|
6357
|
+
id: string;
|
|
6358
|
+
reason: string | null;
|
|
6359
|
+
start_date: string;
|
|
6360
|
+
status: string;
|
|
6361
|
+
tenant_id: string;
|
|
6362
|
+
updated_at: string;
|
|
6363
|
+
user_id: string;
|
|
6364
|
+
};
|
|
6365
|
+
Insert: {
|
|
6366
|
+
created_at?: string;
|
|
6367
|
+
end_date: string;
|
|
6368
|
+
id?: string;
|
|
6369
|
+
reason?: string | null;
|
|
6370
|
+
start_date: string;
|
|
6371
|
+
status?: string;
|
|
6372
|
+
tenant_id?: string;
|
|
6373
|
+
updated_at?: string;
|
|
6374
|
+
user_id: string;
|
|
6375
|
+
};
|
|
6376
|
+
Update: {
|
|
6377
|
+
created_at?: string;
|
|
6378
|
+
end_date?: string;
|
|
6379
|
+
id?: string;
|
|
6380
|
+
reason?: string | null;
|
|
6381
|
+
start_date?: string;
|
|
6382
|
+
status?: string;
|
|
6383
|
+
tenant_id?: string;
|
|
6384
|
+
updated_at?: string;
|
|
6385
|
+
user_id?: string;
|
|
6386
|
+
};
|
|
6387
|
+
Relationships: [{
|
|
6388
|
+
foreignKeyName: "leave_requests_user_id_fkey";
|
|
6389
|
+
columns: ["user_id"];
|
|
6390
|
+
isOneToOne: false;
|
|
6391
|
+
referencedRelation: "monteurs";
|
|
6392
|
+
referencedColumns: ["id"];
|
|
6393
|
+
}];
|
|
6394
|
+
};
|
|
6395
|
+
local_customer_agreements: {
|
|
6396
|
+
Row: {
|
|
6397
|
+
base_price: number | null;
|
|
6398
|
+
created_at: string;
|
|
6399
|
+
currency: string;
|
|
6400
|
+
customer_id: string;
|
|
6401
|
+
id: string;
|
|
6402
|
+
min_quantity: number;
|
|
6403
|
+
net_price: number;
|
|
6404
|
+
notes: string | null;
|
|
6405
|
+
product_category_id: string | null;
|
|
6406
|
+
product_id: string | null;
|
|
6407
|
+
updated_at: string;
|
|
6408
|
+
valid_from: string | null;
|
|
6409
|
+
valid_until: string | null;
|
|
6410
|
+
};
|
|
6411
|
+
Insert: {
|
|
6412
|
+
base_price?: number | null;
|
|
6413
|
+
created_at?: string;
|
|
6414
|
+
currency?: string;
|
|
6415
|
+
customer_id: string;
|
|
6416
|
+
id?: string;
|
|
6417
|
+
min_quantity?: number;
|
|
6418
|
+
net_price: number;
|
|
6419
|
+
notes?: string | null;
|
|
6420
|
+
product_category_id?: string | null;
|
|
6421
|
+
product_id?: string | null;
|
|
6422
|
+
updated_at?: string;
|
|
6423
|
+
valid_from?: string | null;
|
|
6424
|
+
valid_until?: string | null;
|
|
6425
|
+
};
|
|
6426
|
+
Update: {
|
|
6427
|
+
base_price?: number | null;
|
|
6428
|
+
created_at?: string;
|
|
6429
|
+
currency?: string;
|
|
6430
|
+
customer_id?: string;
|
|
6431
|
+
id?: string;
|
|
6432
|
+
min_quantity?: number;
|
|
6433
|
+
net_price?: number;
|
|
6434
|
+
notes?: string | null;
|
|
6435
|
+
product_category_id?: string | null;
|
|
6436
|
+
product_id?: string | null;
|
|
6437
|
+
updated_at?: string;
|
|
6438
|
+
valid_from?: string | null;
|
|
6439
|
+
valid_until?: string | null;
|
|
6440
|
+
};
|
|
6441
|
+
Relationships: [{
|
|
6442
|
+
foreignKeyName: "local_customer_agreements_customer_id_fkey";
|
|
6443
|
+
columns: ["customer_id"];
|
|
6444
|
+
isOneToOne: false;
|
|
6445
|
+
referencedRelation: "customers";
|
|
6446
|
+
referencedColumns: ["id"];
|
|
6447
|
+
}, {
|
|
6448
|
+
foreignKeyName: "local_customer_agreements_product_category_id_fkey";
|
|
6449
|
+
columns: ["product_category_id"];
|
|
6450
|
+
isOneToOne: false;
|
|
6451
|
+
referencedRelation: "product_categories";
|
|
6452
|
+
referencedColumns: ["id"];
|
|
6453
|
+
}, {
|
|
6454
|
+
foreignKeyName: "local_customer_agreements_product_id_fkey";
|
|
6455
|
+
columns: ["product_id"];
|
|
6456
|
+
isOneToOne: false;
|
|
6457
|
+
referencedRelation: "products";
|
|
6458
|
+
referencedColumns: ["id"];
|
|
6459
|
+
}];
|
|
6460
|
+
};
|
|
6461
|
+
local_customer_price_groups: {
|
|
6462
|
+
Row: {
|
|
6463
|
+
created_at: string;
|
|
6464
|
+
currency: string;
|
|
6465
|
+
customer_id: string;
|
|
6466
|
+
discount_type: string;
|
|
6467
|
+
discount_value: number;
|
|
6468
|
+
id: string;
|
|
6469
|
+
min_quantity: number;
|
|
6470
|
+
notes: string | null;
|
|
6471
|
+
product_category_id: string | null;
|
|
6472
|
+
product_id: string | null;
|
|
6473
|
+
updated_at: string;
|
|
6474
|
+
valid_from: string | null;
|
|
6475
|
+
valid_until: string | null;
|
|
6476
|
+
};
|
|
6477
|
+
Insert: {
|
|
6478
|
+
created_at?: string;
|
|
6479
|
+
currency?: string;
|
|
6480
|
+
customer_id: string;
|
|
6481
|
+
discount_type: string;
|
|
6482
|
+
discount_value: number;
|
|
6483
|
+
id?: string;
|
|
6484
|
+
min_quantity?: number;
|
|
6485
|
+
notes?: string | null;
|
|
6486
|
+
product_category_id?: string | null;
|
|
6487
|
+
product_id?: string | null;
|
|
6488
|
+
updated_at?: string;
|
|
6489
|
+
valid_from?: string | null;
|
|
6490
|
+
valid_until?: string | null;
|
|
6491
|
+
};
|
|
6492
|
+
Update: {
|
|
6493
|
+
created_at?: string;
|
|
6494
|
+
currency?: string;
|
|
6495
|
+
customer_id?: string;
|
|
6496
|
+
discount_type?: string;
|
|
6497
|
+
discount_value?: number;
|
|
6498
|
+
id?: string;
|
|
6499
|
+
min_quantity?: number;
|
|
6500
|
+
notes?: string | null;
|
|
6501
|
+
product_category_id?: string | null;
|
|
6502
|
+
product_id?: string | null;
|
|
6503
|
+
updated_at?: string;
|
|
6504
|
+
valid_from?: string | null;
|
|
6505
|
+
valid_until?: string | null;
|
|
6506
|
+
};
|
|
6507
|
+
Relationships: [{
|
|
6508
|
+
foreignKeyName: "local_customer_price_groups_customer_id_fkey";
|
|
6509
|
+
columns: ["customer_id"];
|
|
6510
|
+
isOneToOne: false;
|
|
6511
|
+
referencedRelation: "customers";
|
|
6512
|
+
referencedColumns: ["id"];
|
|
6513
|
+
}, {
|
|
6514
|
+
foreignKeyName: "local_customer_price_groups_product_category_id_fkey";
|
|
6515
|
+
columns: ["product_category_id"];
|
|
6516
|
+
isOneToOne: false;
|
|
6517
|
+
referencedRelation: "product_categories";
|
|
6518
|
+
referencedColumns: ["id"];
|
|
6519
|
+
}, {
|
|
6520
|
+
foreignKeyName: "local_customer_price_groups_product_id_fkey";
|
|
6521
|
+
columns: ["product_id"];
|
|
6522
|
+
isOneToOne: false;
|
|
6523
|
+
referencedRelation: "products";
|
|
6524
|
+
referencedColumns: ["id"];
|
|
6525
|
+
}];
|
|
6526
|
+
};
|
|
6527
|
+
local_customer_sales_strategies: {
|
|
6528
|
+
Row: {
|
|
6529
|
+
created_at: string;
|
|
6530
|
+
currency: string;
|
|
6531
|
+
customer_id: string;
|
|
6532
|
+
discount_type: string;
|
|
6533
|
+
discount_value: number;
|
|
6534
|
+
id: string;
|
|
6535
|
+
min_quantity: number;
|
|
6536
|
+
notes: string | null;
|
|
6537
|
+
product_category_id: string | null;
|
|
6538
|
+
product_id: string | null;
|
|
6539
|
+
updated_at: string;
|
|
6540
|
+
valid_from: string | null;
|
|
6541
|
+
valid_until: string | null;
|
|
6542
|
+
};
|
|
6543
|
+
Insert: {
|
|
6544
|
+
created_at?: string;
|
|
6545
|
+
currency?: string;
|
|
6546
|
+
customer_id: string;
|
|
6547
|
+
discount_type: string;
|
|
6548
|
+
discount_value: number;
|
|
6549
|
+
id?: string;
|
|
6550
|
+
min_quantity?: number;
|
|
6551
|
+
notes?: string | null;
|
|
6552
|
+
product_category_id?: string | null;
|
|
6553
|
+
product_id?: string | null;
|
|
6554
|
+
updated_at?: string;
|
|
6555
|
+
valid_from?: string | null;
|
|
6556
|
+
valid_until?: string | null;
|
|
6557
|
+
};
|
|
6558
|
+
Update: {
|
|
6559
|
+
created_at?: string;
|
|
6560
|
+
currency?: string;
|
|
5679
6561
|
customer_id?: string;
|
|
5680
6562
|
discount_type?: string;
|
|
5681
6563
|
discount_value?: number;
|
|
@@ -5704,31 +6586,310 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
5704
6586
|
foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
|
|
5705
6587
|
columns: ["product_id"];
|
|
5706
6588
|
isOneToOne: false;
|
|
5707
|
-
referencedRelation: "products";
|
|
6589
|
+
referencedRelation: "products";
|
|
6590
|
+
referencedColumns: ["id"];
|
|
6591
|
+
}];
|
|
6592
|
+
};
|
|
6593
|
+
locations: {
|
|
6594
|
+
Row: {
|
|
6595
|
+
created_at: string;
|
|
6596
|
+
id: string;
|
|
6597
|
+
name: string;
|
|
6598
|
+
sort_order: number;
|
|
6599
|
+
updated_at: string;
|
|
6600
|
+
};
|
|
6601
|
+
Insert: {
|
|
6602
|
+
created_at?: string;
|
|
6603
|
+
id?: string;
|
|
6604
|
+
name: string;
|
|
6605
|
+
sort_order?: number;
|
|
6606
|
+
updated_at?: string;
|
|
6607
|
+
};
|
|
6608
|
+
Update: {
|
|
6609
|
+
created_at?: string;
|
|
6610
|
+
id?: string;
|
|
6611
|
+
name?: string;
|
|
6612
|
+
sort_order?: number;
|
|
6613
|
+
updated_at?: string;
|
|
6614
|
+
};
|
|
6615
|
+
Relationships: [];
|
|
6616
|
+
};
|
|
6617
|
+
logistics_capacity_events: {
|
|
6618
|
+
Row: {
|
|
6619
|
+
available_carts: number;
|
|
6620
|
+
created_at: string;
|
|
6621
|
+
id: string;
|
|
6622
|
+
measures: import("../integrations/supabase/types").Json;
|
|
6623
|
+
note: string | null;
|
|
6624
|
+
outcome: string;
|
|
6625
|
+
required_carts: number;
|
|
6626
|
+
reserve_minutes: number;
|
|
6627
|
+
shortage_carts: number;
|
|
6628
|
+
status: string;
|
|
6629
|
+
user_id: string;
|
|
6630
|
+
};
|
|
6631
|
+
Insert: {
|
|
6632
|
+
available_carts?: number;
|
|
6633
|
+
created_at?: string;
|
|
6634
|
+
id?: string;
|
|
6635
|
+
measures?: import("../integrations/supabase/types").Json;
|
|
6636
|
+
note?: string | null;
|
|
6637
|
+
outcome?: string;
|
|
6638
|
+
required_carts?: number;
|
|
6639
|
+
reserve_minutes?: number;
|
|
6640
|
+
shortage_carts?: number;
|
|
6641
|
+
status: string;
|
|
6642
|
+
user_id: string;
|
|
6643
|
+
};
|
|
6644
|
+
Update: {
|
|
6645
|
+
available_carts?: number;
|
|
6646
|
+
created_at?: string;
|
|
6647
|
+
id?: string;
|
|
6648
|
+
measures?: import("../integrations/supabase/types").Json;
|
|
6649
|
+
note?: string | null;
|
|
6650
|
+
outcome?: string;
|
|
6651
|
+
required_carts?: number;
|
|
6652
|
+
reserve_minutes?: number;
|
|
6653
|
+
shortage_carts?: number;
|
|
6654
|
+
status?: string;
|
|
6655
|
+
user_id?: string;
|
|
6656
|
+
};
|
|
6657
|
+
Relationships: [];
|
|
6658
|
+
};
|
|
6659
|
+
logistics_capacity_settings: {
|
|
6660
|
+
Row: {
|
|
6661
|
+
created_at: string;
|
|
6662
|
+
settings: import("../integrations/supabase/types").Json;
|
|
6663
|
+
updated_at: string;
|
|
6664
|
+
user_id: string;
|
|
6665
|
+
};
|
|
6666
|
+
Insert: {
|
|
6667
|
+
created_at?: string;
|
|
6668
|
+
settings?: import("../integrations/supabase/types").Json;
|
|
6669
|
+
updated_at?: string;
|
|
6670
|
+
user_id: string;
|
|
6671
|
+
};
|
|
6672
|
+
Update: {
|
|
6673
|
+
created_at?: string;
|
|
6674
|
+
settings?: import("../integrations/supabase/types").Json;
|
|
6675
|
+
updated_at?: string;
|
|
6676
|
+
user_id?: string;
|
|
6677
|
+
};
|
|
6678
|
+
Relationships: [];
|
|
6679
|
+
};
|
|
6680
|
+
logistics_decisions: {
|
|
6681
|
+
Row: {
|
|
6682
|
+
created_at: string;
|
|
6683
|
+
explanation: string | null;
|
|
6684
|
+
id: string;
|
|
6685
|
+
input_snapshot: import("../integrations/supabase/types").Json;
|
|
6686
|
+
result: import("../integrations/supabase/types").Json;
|
|
6687
|
+
slot: string;
|
|
6688
|
+
strategy_id: string | null;
|
|
6689
|
+
subject_id: string;
|
|
6690
|
+
subject_type: string;
|
|
6691
|
+
user_id: string;
|
|
6692
|
+
};
|
|
6693
|
+
Insert: {
|
|
6694
|
+
created_at?: string;
|
|
6695
|
+
explanation?: string | null;
|
|
6696
|
+
id?: string;
|
|
6697
|
+
input_snapshot?: import("../integrations/supabase/types").Json;
|
|
6698
|
+
result?: import("../integrations/supabase/types").Json;
|
|
6699
|
+
slot: string;
|
|
6700
|
+
strategy_id?: string | null;
|
|
6701
|
+
subject_id: string;
|
|
6702
|
+
subject_type: string;
|
|
6703
|
+
user_id: string;
|
|
6704
|
+
};
|
|
6705
|
+
Update: {
|
|
6706
|
+
created_at?: string;
|
|
6707
|
+
explanation?: string | null;
|
|
6708
|
+
id?: string;
|
|
6709
|
+
input_snapshot?: import("../integrations/supabase/types").Json;
|
|
6710
|
+
result?: import("../integrations/supabase/types").Json;
|
|
6711
|
+
slot?: string;
|
|
6712
|
+
strategy_id?: string | null;
|
|
6713
|
+
subject_id?: string;
|
|
6714
|
+
subject_type?: string;
|
|
6715
|
+
user_id?: string;
|
|
6716
|
+
};
|
|
6717
|
+
Relationships: [{
|
|
6718
|
+
foreignKeyName: "logistics_decisions_strategy_id_fkey";
|
|
6719
|
+
columns: ["strategy_id"];
|
|
6720
|
+
isOneToOne: false;
|
|
6721
|
+
referencedRelation: "logistics_strategies";
|
|
6722
|
+
referencedColumns: ["id"];
|
|
6723
|
+
}];
|
|
6724
|
+
};
|
|
6725
|
+
logistics_formulas: {
|
|
6726
|
+
Row: {
|
|
6727
|
+
created_at: string;
|
|
6728
|
+
expression: string;
|
|
6729
|
+
id: string;
|
|
6730
|
+
notes: string | null;
|
|
6731
|
+
slot: string;
|
|
6732
|
+
strategy_id: string;
|
|
6733
|
+
updated_at: string;
|
|
6734
|
+
user_id: string;
|
|
6735
|
+
version: number;
|
|
6736
|
+
};
|
|
6737
|
+
Insert: {
|
|
6738
|
+
created_at?: string;
|
|
6739
|
+
expression?: string;
|
|
6740
|
+
id?: string;
|
|
6741
|
+
notes?: string | null;
|
|
6742
|
+
slot: string;
|
|
6743
|
+
strategy_id: string;
|
|
6744
|
+
updated_at?: string;
|
|
6745
|
+
user_id: string;
|
|
6746
|
+
version?: number;
|
|
6747
|
+
};
|
|
6748
|
+
Update: {
|
|
6749
|
+
created_at?: string;
|
|
6750
|
+
expression?: string;
|
|
6751
|
+
id?: string;
|
|
6752
|
+
notes?: string | null;
|
|
6753
|
+
slot?: string;
|
|
6754
|
+
strategy_id?: string;
|
|
6755
|
+
updated_at?: string;
|
|
6756
|
+
user_id?: string;
|
|
6757
|
+
version?: number;
|
|
6758
|
+
};
|
|
6759
|
+
Relationships: [{
|
|
6760
|
+
foreignKeyName: "logistics_formulas_strategy_id_fkey";
|
|
6761
|
+
columns: ["strategy_id"];
|
|
6762
|
+
isOneToOne: false;
|
|
6763
|
+
referencedRelation: "logistics_strategies";
|
|
6764
|
+
referencedColumns: ["id"];
|
|
6765
|
+
}];
|
|
6766
|
+
};
|
|
6767
|
+
logistics_strategies: {
|
|
6768
|
+
Row: {
|
|
6769
|
+
color: string;
|
|
6770
|
+
created_at: string;
|
|
6771
|
+
description: string | null;
|
|
6772
|
+
id: string;
|
|
6773
|
+
is_active: boolean;
|
|
6774
|
+
name: string;
|
|
6775
|
+
priority: number;
|
|
6776
|
+
updated_at: string;
|
|
6777
|
+
updated_by: string | null;
|
|
6778
|
+
user_id: string;
|
|
6779
|
+
version: number;
|
|
6780
|
+
};
|
|
6781
|
+
Insert: {
|
|
6782
|
+
color?: string;
|
|
6783
|
+
created_at?: string;
|
|
6784
|
+
description?: string | null;
|
|
6785
|
+
id?: string;
|
|
6786
|
+
is_active?: boolean;
|
|
6787
|
+
name: string;
|
|
6788
|
+
priority?: number;
|
|
6789
|
+
updated_at?: string;
|
|
6790
|
+
updated_by?: string | null;
|
|
6791
|
+
user_id: string;
|
|
6792
|
+
version?: number;
|
|
6793
|
+
};
|
|
6794
|
+
Update: {
|
|
6795
|
+
color?: string;
|
|
6796
|
+
created_at?: string;
|
|
6797
|
+
description?: string | null;
|
|
6798
|
+
id?: string;
|
|
6799
|
+
is_active?: boolean;
|
|
6800
|
+
name?: string;
|
|
6801
|
+
priority?: number;
|
|
6802
|
+
updated_at?: string;
|
|
6803
|
+
updated_by?: string | null;
|
|
6804
|
+
user_id?: string;
|
|
6805
|
+
version?: number;
|
|
6806
|
+
};
|
|
6807
|
+
Relationships: [];
|
|
6808
|
+
};
|
|
6809
|
+
logistics_strategy_schedules: {
|
|
6810
|
+
Row: {
|
|
6811
|
+
condition_expression: string | null;
|
|
6812
|
+
created_at: string;
|
|
6813
|
+
end_date: string | null;
|
|
6814
|
+
id: string;
|
|
6815
|
+
is_enabled: boolean;
|
|
6816
|
+
priority: number;
|
|
6817
|
+
rule_type: string;
|
|
6818
|
+
start_date: string | null;
|
|
6819
|
+
strategy_id: string;
|
|
6820
|
+
updated_at: string;
|
|
6821
|
+
user_id: string;
|
|
6822
|
+
};
|
|
6823
|
+
Insert: {
|
|
6824
|
+
condition_expression?: string | null;
|
|
6825
|
+
created_at?: string;
|
|
6826
|
+
end_date?: string | null;
|
|
6827
|
+
id?: string;
|
|
6828
|
+
is_enabled?: boolean;
|
|
6829
|
+
priority?: number;
|
|
6830
|
+
rule_type: string;
|
|
6831
|
+
start_date?: string | null;
|
|
6832
|
+
strategy_id: string;
|
|
6833
|
+
updated_at?: string;
|
|
6834
|
+
user_id: string;
|
|
6835
|
+
};
|
|
6836
|
+
Update: {
|
|
6837
|
+
condition_expression?: string | null;
|
|
6838
|
+
created_at?: string;
|
|
6839
|
+
end_date?: string | null;
|
|
6840
|
+
id?: string;
|
|
6841
|
+
is_enabled?: boolean;
|
|
6842
|
+
priority?: number;
|
|
6843
|
+
rule_type?: string;
|
|
6844
|
+
start_date?: string | null;
|
|
6845
|
+
strategy_id?: string;
|
|
6846
|
+
updated_at?: string;
|
|
6847
|
+
user_id?: string;
|
|
6848
|
+
};
|
|
6849
|
+
Relationships: [{
|
|
6850
|
+
foreignKeyName: "logistics_strategy_schedules_strategy_id_fkey";
|
|
6851
|
+
columns: ["strategy_id"];
|
|
6852
|
+
isOneToOne: false;
|
|
6853
|
+
referencedRelation: "logistics_strategies";
|
|
5708
6854
|
referencedColumns: ["id"];
|
|
5709
6855
|
}];
|
|
5710
6856
|
};
|
|
5711
|
-
|
|
6857
|
+
logistics_variables: {
|
|
5712
6858
|
Row: {
|
|
5713
6859
|
created_at: string;
|
|
6860
|
+
default_value: string | null;
|
|
6861
|
+
description: string | null;
|
|
5714
6862
|
id: string;
|
|
5715
|
-
|
|
5716
|
-
|
|
6863
|
+
is_builtin: boolean;
|
|
6864
|
+
key: string;
|
|
6865
|
+
label: string;
|
|
5717
6866
|
updated_at: string;
|
|
6867
|
+
user_id: string;
|
|
6868
|
+
value_type: string;
|
|
5718
6869
|
};
|
|
5719
6870
|
Insert: {
|
|
5720
6871
|
created_at?: string;
|
|
6872
|
+
default_value?: string | null;
|
|
6873
|
+
description?: string | null;
|
|
5721
6874
|
id?: string;
|
|
5722
|
-
|
|
5723
|
-
|
|
6875
|
+
is_builtin?: boolean;
|
|
6876
|
+
key: string;
|
|
6877
|
+
label: string;
|
|
5724
6878
|
updated_at?: string;
|
|
6879
|
+
user_id: string;
|
|
6880
|
+
value_type: string;
|
|
5725
6881
|
};
|
|
5726
6882
|
Update: {
|
|
5727
6883
|
created_at?: string;
|
|
6884
|
+
default_value?: string | null;
|
|
6885
|
+
description?: string | null;
|
|
5728
6886
|
id?: string;
|
|
5729
|
-
|
|
5730
|
-
|
|
6887
|
+
is_builtin?: boolean;
|
|
6888
|
+
key?: string;
|
|
6889
|
+
label?: string;
|
|
5731
6890
|
updated_at?: string;
|
|
6891
|
+
user_id?: string;
|
|
6892
|
+
value_type?: string;
|
|
5732
6893
|
};
|
|
5733
6894
|
Relationships: [];
|
|
5734
6895
|
};
|
|
@@ -6127,60 +7288,66 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
6127
7288
|
};
|
|
6128
7289
|
manufacture_products: {
|
|
6129
7290
|
Row: {
|
|
6130
|
-
aantal_te_produceren: number;
|
|
6131
7291
|
created_at: string;
|
|
6132
7292
|
description: string | null;
|
|
6133
7293
|
id: string;
|
|
6134
7294
|
is_active: boolean;
|
|
6135
|
-
location_id: string | null;
|
|
6136
7295
|
name: string;
|
|
6137
|
-
partij_nummer: string | null;
|
|
6138
|
-
photos: import("../integrations/supabase/types").Json;
|
|
6139
7296
|
produced_stock: number;
|
|
6140
7297
|
product_code: string;
|
|
6141
7298
|
tenant_id: string;
|
|
6142
|
-
unit: string;
|
|
6143
7299
|
updated_at: string;
|
|
6144
7300
|
};
|
|
6145
7301
|
Insert: {
|
|
6146
|
-
aantal_te_produceren?: number;
|
|
6147
7302
|
created_at?: string;
|
|
6148
7303
|
description?: string | null;
|
|
6149
7304
|
id?: string;
|
|
6150
7305
|
is_active?: boolean;
|
|
6151
|
-
location_id?: string | null;
|
|
6152
7306
|
name: string;
|
|
6153
|
-
partij_nummer?: string | null;
|
|
6154
|
-
photos?: import("../integrations/supabase/types").Json;
|
|
6155
7307
|
produced_stock?: number;
|
|
6156
7308
|
product_code: string;
|
|
6157
7309
|
tenant_id: string;
|
|
6158
|
-
unit?: string;
|
|
6159
7310
|
updated_at?: string;
|
|
6160
7311
|
};
|
|
6161
7312
|
Update: {
|
|
6162
|
-
aantal_te_produceren?: number;
|
|
6163
7313
|
created_at?: string;
|
|
6164
7314
|
description?: string | null;
|
|
6165
7315
|
id?: string;
|
|
6166
7316
|
is_active?: boolean;
|
|
6167
|
-
location_id?: string | null;
|
|
6168
7317
|
name?: string;
|
|
6169
|
-
partij_nummer?: string | null;
|
|
6170
|
-
photos?: import("../integrations/supabase/types").Json;
|
|
6171
7318
|
produced_stock?: number;
|
|
6172
7319
|
product_code?: string;
|
|
6173
7320
|
tenant_id?: string;
|
|
6174
|
-
unit?: string;
|
|
6175
7321
|
updated_at?: string;
|
|
6176
7322
|
};
|
|
6177
|
-
Relationships: [
|
|
6178
|
-
|
|
6179
|
-
|
|
6180
|
-
|
|
6181
|
-
|
|
6182
|
-
|
|
6183
|
-
|
|
7323
|
+
Relationships: [];
|
|
7324
|
+
};
|
|
7325
|
+
module_permissions: {
|
|
7326
|
+
Row: {
|
|
7327
|
+
created_at: string;
|
|
7328
|
+
id: string;
|
|
7329
|
+
module_id: string;
|
|
7330
|
+
permission: string;
|
|
7331
|
+
role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
7332
|
+
updated_at: string;
|
|
7333
|
+
};
|
|
7334
|
+
Insert: {
|
|
7335
|
+
created_at?: string;
|
|
7336
|
+
id?: string;
|
|
7337
|
+
module_id: string;
|
|
7338
|
+
permission: string;
|
|
7339
|
+
role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
7340
|
+
updated_at?: string;
|
|
7341
|
+
};
|
|
7342
|
+
Update: {
|
|
7343
|
+
created_at?: string;
|
|
7344
|
+
id?: string;
|
|
7345
|
+
module_id?: string;
|
|
7346
|
+
permission?: string;
|
|
7347
|
+
role?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
7348
|
+
updated_at?: string;
|
|
7349
|
+
};
|
|
7350
|
+
Relationships: [];
|
|
6184
7351
|
};
|
|
6185
7352
|
monteurs: {
|
|
6186
7353
|
Row: {
|
|
@@ -6911,6 +8078,42 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
6911
8078
|
};
|
|
6912
8079
|
Relationships: [];
|
|
6913
8080
|
};
|
|
8081
|
+
order_buffers: {
|
|
8082
|
+
Row: {
|
|
8083
|
+
buffer_key: string;
|
|
8084
|
+
created_at: string;
|
|
8085
|
+
customer_id: string | null;
|
|
8086
|
+
grouping_mode: string;
|
|
8087
|
+
id: string;
|
|
8088
|
+
pickup_date: string | null;
|
|
8089
|
+
pickup_location: string | null;
|
|
8090
|
+
plan_locked_at: string | null;
|
|
8091
|
+
updated_at: string;
|
|
8092
|
+
};
|
|
8093
|
+
Insert: {
|
|
8094
|
+
buffer_key: string;
|
|
8095
|
+
created_at?: string;
|
|
8096
|
+
customer_id?: string | null;
|
|
8097
|
+
grouping_mode: string;
|
|
8098
|
+
id?: string;
|
|
8099
|
+
pickup_date?: string | null;
|
|
8100
|
+
pickup_location?: string | null;
|
|
8101
|
+
plan_locked_at?: string | null;
|
|
8102
|
+
updated_at?: string;
|
|
8103
|
+
};
|
|
8104
|
+
Update: {
|
|
8105
|
+
buffer_key?: string;
|
|
8106
|
+
created_at?: string;
|
|
8107
|
+
customer_id?: string | null;
|
|
8108
|
+
grouping_mode?: string;
|
|
8109
|
+
id?: string;
|
|
8110
|
+
pickup_date?: string | null;
|
|
8111
|
+
pickup_location?: string | null;
|
|
8112
|
+
plan_locked_at?: string | null;
|
|
8113
|
+
updated_at?: string;
|
|
8114
|
+
};
|
|
8115
|
+
Relationships: [];
|
|
8116
|
+
};
|
|
6914
8117
|
order_cart_items: {
|
|
6915
8118
|
Row: {
|
|
6916
8119
|
cart_id: string;
|
|
@@ -6977,6 +8180,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
6977
8180
|
order_carts: {
|
|
6978
8181
|
Row: {
|
|
6979
8182
|
algorithm_version: number;
|
|
8183
|
+
buffer_id: string | null;
|
|
6980
8184
|
cart_number: number;
|
|
6981
8185
|
created_at: string;
|
|
6982
8186
|
id: string;
|
|
@@ -6984,13 +8188,14 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
6984
8188
|
is_complete: boolean;
|
|
6985
8189
|
notes: string | null;
|
|
6986
8190
|
occupancy_pct: number;
|
|
6987
|
-
order_id: string;
|
|
8191
|
+
order_id: string | null;
|
|
6988
8192
|
source: string;
|
|
6989
8193
|
total_layers_used: number;
|
|
6990
8194
|
updated_at: string;
|
|
6991
8195
|
};
|
|
6992
8196
|
Insert: {
|
|
6993
8197
|
algorithm_version?: number;
|
|
8198
|
+
buffer_id?: string | null;
|
|
6994
8199
|
cart_number: number;
|
|
6995
8200
|
created_at?: string;
|
|
6996
8201
|
id?: string;
|
|
@@ -6998,13 +8203,14 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
6998
8203
|
is_complete?: boolean;
|
|
6999
8204
|
notes?: string | null;
|
|
7000
8205
|
occupancy_pct?: number;
|
|
7001
|
-
order_id
|
|
8206
|
+
order_id?: string | null;
|
|
7002
8207
|
source?: string;
|
|
7003
8208
|
total_layers_used?: number;
|
|
7004
8209
|
updated_at?: string;
|
|
7005
8210
|
};
|
|
7006
8211
|
Update: {
|
|
7007
8212
|
algorithm_version?: number;
|
|
8213
|
+
buffer_id?: string | null;
|
|
7008
8214
|
cart_number?: number;
|
|
7009
8215
|
created_at?: string;
|
|
7010
8216
|
id?: string;
|
|
@@ -7012,12 +8218,18 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
7012
8218
|
is_complete?: boolean;
|
|
7013
8219
|
notes?: string | null;
|
|
7014
8220
|
occupancy_pct?: number;
|
|
7015
|
-
order_id?: string;
|
|
8221
|
+
order_id?: string | null;
|
|
7016
8222
|
source?: string;
|
|
7017
8223
|
total_layers_used?: number;
|
|
7018
8224
|
updated_at?: string;
|
|
7019
8225
|
};
|
|
7020
8226
|
Relationships: [{
|
|
8227
|
+
foreignKeyName: "order_carts_buffer_id_fkey";
|
|
8228
|
+
columns: ["buffer_id"];
|
|
8229
|
+
isOneToOne: false;
|
|
8230
|
+
referencedRelation: "order_buffers";
|
|
8231
|
+
referencedColumns: ["id"];
|
|
8232
|
+
}, {
|
|
7021
8233
|
foreignKeyName: "order_carts_order_id_fkey";
|
|
7022
8234
|
columns: ["order_id"];
|
|
7023
8235
|
isOneToOne: false;
|
|
@@ -7255,12 +8467,14 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
7255
8467
|
};
|
|
7256
8468
|
orders: {
|
|
7257
8469
|
Row: {
|
|
8470
|
+
buffer_id: string | null;
|
|
7258
8471
|
created_at: string;
|
|
7259
8472
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
7260
8473
|
customer_id: string | null;
|
|
7261
8474
|
customer_name: string;
|
|
7262
8475
|
deleted_at: string | null;
|
|
7263
8476
|
delivery_date: string | null;
|
|
8477
|
+
floriday_sales_order_id: string | null;
|
|
7264
8478
|
id: string;
|
|
7265
8479
|
is_reservation: boolean;
|
|
7266
8480
|
notes: string | null;
|
|
@@ -7274,12 +8488,14 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
7274
8488
|
updated_at: string;
|
|
7275
8489
|
};
|
|
7276
8490
|
Insert: {
|
|
8491
|
+
buffer_id?: string | null;
|
|
7277
8492
|
created_at?: string;
|
|
7278
8493
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
7279
8494
|
customer_id?: string | null;
|
|
7280
8495
|
customer_name?: string;
|
|
7281
8496
|
deleted_at?: string | null;
|
|
7282
8497
|
delivery_date?: string | null;
|
|
8498
|
+
floriday_sales_order_id?: string | null;
|
|
7283
8499
|
id?: string;
|
|
7284
8500
|
is_reservation?: boolean;
|
|
7285
8501
|
notes?: string | null;
|
|
@@ -7293,12 +8509,14 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
7293
8509
|
updated_at?: string;
|
|
7294
8510
|
};
|
|
7295
8511
|
Update: {
|
|
8512
|
+
buffer_id?: string | null;
|
|
7296
8513
|
created_at?: string;
|
|
7297
8514
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
7298
8515
|
customer_id?: string | null;
|
|
7299
8516
|
customer_name?: string;
|
|
7300
8517
|
deleted_at?: string | null;
|
|
7301
8518
|
delivery_date?: string | null;
|
|
8519
|
+
floriday_sales_order_id?: string | null;
|
|
7302
8520
|
id?: string;
|
|
7303
8521
|
is_reservation?: boolean;
|
|
7304
8522
|
notes?: string | null;
|
|
@@ -7312,6 +8530,12 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
7312
8530
|
updated_at?: string;
|
|
7313
8531
|
};
|
|
7314
8532
|
Relationships: [{
|
|
8533
|
+
foreignKeyName: "orders_buffer_id_fkey";
|
|
8534
|
+
columns: ["buffer_id"];
|
|
8535
|
+
isOneToOne: false;
|
|
8536
|
+
referencedRelation: "order_buffers";
|
|
8537
|
+
referencedColumns: ["id"];
|
|
8538
|
+
}, {
|
|
7315
8539
|
foreignKeyName: "orders_customer_id_fkey";
|
|
7316
8540
|
columns: ["customer_id"];
|
|
7317
8541
|
isOneToOne: false;
|
|
@@ -7442,6 +8666,78 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
7442
8666
|
};
|
|
7443
8667
|
Relationships: [];
|
|
7444
8668
|
};
|
|
8669
|
+
planning_item_assistants: {
|
|
8670
|
+
Row: {
|
|
8671
|
+
created_at: string;
|
|
8672
|
+
created_by: string | null;
|
|
8673
|
+
monteur_id: string;
|
|
8674
|
+
planning_item_id: string;
|
|
8675
|
+
};
|
|
8676
|
+
Insert: {
|
|
8677
|
+
created_at?: string;
|
|
8678
|
+
created_by?: string | null;
|
|
8679
|
+
monteur_id: string;
|
|
8680
|
+
planning_item_id: string;
|
|
8681
|
+
};
|
|
8682
|
+
Update: {
|
|
8683
|
+
created_at?: string;
|
|
8684
|
+
created_by?: string | null;
|
|
8685
|
+
monteur_id?: string;
|
|
8686
|
+
planning_item_id?: string;
|
|
8687
|
+
};
|
|
8688
|
+
Relationships: [{
|
|
8689
|
+
foreignKeyName: "planning_item_assistants_planning_item_id_fkey";
|
|
8690
|
+
columns: ["planning_item_id"];
|
|
8691
|
+
isOneToOne: false;
|
|
8692
|
+
referencedRelation: "planning_items";
|
|
8693
|
+
referencedColumns: ["id"];
|
|
8694
|
+
}];
|
|
8695
|
+
};
|
|
8696
|
+
planning_items: {
|
|
8697
|
+
Row: {
|
|
8698
|
+
assigned_monteur_id: string;
|
|
8699
|
+
created_at: string;
|
|
8700
|
+
created_by: string | null;
|
|
8701
|
+
end_at: string;
|
|
8702
|
+
id: string;
|
|
8703
|
+
notes: string | null;
|
|
8704
|
+
start_at: string;
|
|
8705
|
+
status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
|
|
8706
|
+
updated_at: string;
|
|
8707
|
+
werkbon_id: string;
|
|
8708
|
+
};
|
|
8709
|
+
Insert: {
|
|
8710
|
+
assigned_monteur_id: string;
|
|
8711
|
+
created_at?: string;
|
|
8712
|
+
created_by?: string | null;
|
|
8713
|
+
end_at: string;
|
|
8714
|
+
id?: string;
|
|
8715
|
+
notes?: string | null;
|
|
8716
|
+
start_at: string;
|
|
8717
|
+
status?: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
|
|
8718
|
+
updated_at?: string;
|
|
8719
|
+
werkbon_id: string;
|
|
8720
|
+
};
|
|
8721
|
+
Update: {
|
|
8722
|
+
assigned_monteur_id?: string;
|
|
8723
|
+
created_at?: string;
|
|
8724
|
+
created_by?: string | null;
|
|
8725
|
+
end_at?: string;
|
|
8726
|
+
id?: string;
|
|
8727
|
+
notes?: string | null;
|
|
8728
|
+
start_at?: string;
|
|
8729
|
+
status?: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
|
|
8730
|
+
updated_at?: string;
|
|
8731
|
+
werkbon_id?: string;
|
|
8732
|
+
};
|
|
8733
|
+
Relationships: [{
|
|
8734
|
+
foreignKeyName: "planning_items_werkbon_id_fkey";
|
|
8735
|
+
columns: ["werkbon_id"];
|
|
8736
|
+
isOneToOne: false;
|
|
8737
|
+
referencedRelation: "werkbonnen";
|
|
8738
|
+
referencedColumns: ["id"];
|
|
8739
|
+
}];
|
|
8740
|
+
};
|
|
7445
8741
|
product_bom_items: {
|
|
7446
8742
|
Row: {
|
|
7447
8743
|
component_product_id: string | null;
|
|
@@ -7449,6 +8745,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
7449
8745
|
created_at: string;
|
|
7450
8746
|
id: string;
|
|
7451
8747
|
notes: string | null;
|
|
8748
|
+
packing_configuration_id: string | null;
|
|
7452
8749
|
parent_product_id: string | null;
|
|
7453
8750
|
parent_trade_item_floriday_id: string | null;
|
|
7454
8751
|
quantity: number;
|
|
@@ -7463,6 +8760,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
7463
8760
|
created_at?: string;
|
|
7464
8761
|
id?: string;
|
|
7465
8762
|
notes?: string | null;
|
|
8763
|
+
packing_configuration_id?: string | null;
|
|
7466
8764
|
parent_product_id?: string | null;
|
|
7467
8765
|
parent_trade_item_floriday_id?: string | null;
|
|
7468
8766
|
quantity?: number;
|
|
@@ -7477,6 +8775,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
7477
8775
|
created_at?: string;
|
|
7478
8776
|
id?: string;
|
|
7479
8777
|
notes?: string | null;
|
|
8778
|
+
packing_configuration_id?: string | null;
|
|
7480
8779
|
parent_product_id?: string | null;
|
|
7481
8780
|
parent_trade_item_floriday_id?: string | null;
|
|
7482
8781
|
quantity?: number;
|
|
@@ -7678,11 +8977,13 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
7678
8977
|
created_at: string;
|
|
7679
8978
|
id: string;
|
|
7680
8979
|
is_package: boolean;
|
|
8980
|
+
label: string | null;
|
|
7681
8981
|
layers_per_load_carrier: number | null;
|
|
7682
8982
|
load_carrier: string | null;
|
|
7683
8983
|
package_id: string | null;
|
|
7684
8984
|
package_label: string | null;
|
|
7685
8985
|
packages_per_layer: number | null;
|
|
8986
|
+
packing_configuration_id: string;
|
|
7686
8987
|
product_id: string | null;
|
|
7687
8988
|
tenant_id: string;
|
|
7688
8989
|
trade_item_floriday_id: string | null;
|
|
@@ -7693,11 +8994,13 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
7693
8994
|
created_at?: string;
|
|
7694
8995
|
id?: string;
|
|
7695
8996
|
is_package?: boolean;
|
|
8997
|
+
label?: string | null;
|
|
7696
8998
|
layers_per_load_carrier?: number | null;
|
|
7697
8999
|
load_carrier?: string | null;
|
|
7698
9000
|
package_id?: string | null;
|
|
7699
9001
|
package_label?: string | null;
|
|
7700
9002
|
packages_per_layer?: number | null;
|
|
9003
|
+
packing_configuration_id?: string;
|
|
7701
9004
|
product_id?: string | null;
|
|
7702
9005
|
tenant_id: string;
|
|
7703
9006
|
trade_item_floriday_id?: string | null;
|
|
@@ -7708,11 +9011,13 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
7708
9011
|
created_at?: string;
|
|
7709
9012
|
id?: string;
|
|
7710
9013
|
is_package?: boolean;
|
|
9014
|
+
label?: string | null;
|
|
7711
9015
|
layers_per_load_carrier?: number | null;
|
|
7712
9016
|
load_carrier?: string | null;
|
|
7713
9017
|
package_id?: string | null;
|
|
7714
9018
|
package_label?: string | null;
|
|
7715
9019
|
packages_per_layer?: number | null;
|
|
9020
|
+
packing_configuration_id?: string;
|
|
7716
9021
|
product_id?: string | null;
|
|
7717
9022
|
tenant_id?: string;
|
|
7718
9023
|
trade_item_floriday_id?: string | null;
|
|
@@ -7774,8 +9079,6 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
7774
9079
|
crates_per_layer: number;
|
|
7775
9080
|
created_at: string;
|
|
7776
9081
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
7777
|
-
floriday_active: boolean;
|
|
7778
|
-
floriday_payload: import("../integrations/supabase/types").Json;
|
|
7779
9082
|
floriday_trade_item_id: string | null;
|
|
7780
9083
|
id: string;
|
|
7781
9084
|
image_url: string | null;
|
|
@@ -7802,8 +9105,6 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
7802
9105
|
crates_per_layer?: number;
|
|
7803
9106
|
created_at?: string;
|
|
7804
9107
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
7805
|
-
floriday_active?: boolean;
|
|
7806
|
-
floriday_payload?: import("../integrations/supabase/types").Json;
|
|
7807
9108
|
floriday_trade_item_id?: string | null;
|
|
7808
9109
|
id?: string;
|
|
7809
9110
|
image_url?: string | null;
|
|
@@ -7830,8 +9131,6 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
7830
9131
|
crates_per_layer?: number;
|
|
7831
9132
|
created_at?: string;
|
|
7832
9133
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
7833
|
-
floriday_active?: boolean;
|
|
7834
|
-
floriday_payload?: import("../integrations/supabase/types").Json;
|
|
7835
9134
|
floriday_trade_item_id?: string | null;
|
|
7836
9135
|
id?: string;
|
|
7837
9136
|
image_url?: string | null;
|
|
@@ -7856,6 +9155,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
7856
9155
|
profiles: {
|
|
7857
9156
|
Row: {
|
|
7858
9157
|
address: string | null;
|
|
9158
|
+
avatar_url: string | null;
|
|
7859
9159
|
created_at: string;
|
|
7860
9160
|
display_name: string | null;
|
|
7861
9161
|
email: string | null;
|
|
@@ -7867,6 +9167,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
7867
9167
|
};
|
|
7868
9168
|
Insert: {
|
|
7869
9169
|
address?: string | null;
|
|
9170
|
+
avatar_url?: string | null;
|
|
7870
9171
|
created_at?: string;
|
|
7871
9172
|
display_name?: string | null;
|
|
7872
9173
|
email?: string | null;
|
|
@@ -7878,6 +9179,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
7878
9179
|
};
|
|
7879
9180
|
Update: {
|
|
7880
9181
|
address?: string | null;
|
|
9182
|
+
avatar_url?: string | null;
|
|
7881
9183
|
created_at?: string;
|
|
7882
9184
|
display_name?: string | null;
|
|
7883
9185
|
email?: string | null;
|
|
@@ -8742,7 +10044,6 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
8742
10044
|
order_id: string | null;
|
|
8743
10045
|
order_item_id: string | null;
|
|
8744
10046
|
order_source: string | null;
|
|
8745
|
-
parent_trade_item_key: string | null;
|
|
8746
10047
|
physical_after: number | null;
|
|
8747
10048
|
physical_before: number | null;
|
|
8748
10049
|
production_batch_id: string | null;
|
|
@@ -8761,7 +10062,6 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
8761
10062
|
order_id?: string | null;
|
|
8762
10063
|
order_item_id?: string | null;
|
|
8763
10064
|
order_source?: string | null;
|
|
8764
|
-
parent_trade_item_key?: string | null;
|
|
8765
10065
|
physical_after?: number | null;
|
|
8766
10066
|
physical_before?: number | null;
|
|
8767
10067
|
production_batch_id?: string | null;
|
|
@@ -8780,7 +10080,6 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
8780
10080
|
order_id?: string | null;
|
|
8781
10081
|
order_item_id?: string | null;
|
|
8782
10082
|
order_source?: string | null;
|
|
8783
|
-
parent_trade_item_key?: string | null;
|
|
8784
10083
|
physical_after?: number | null;
|
|
8785
10084
|
physical_before?: number | null;
|
|
8786
10085
|
production_batch_id?: string | null;
|
|
@@ -8885,6 +10184,27 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
8885
10184
|
};
|
|
8886
10185
|
Relationships: [];
|
|
8887
10186
|
};
|
|
10187
|
+
technician_rates: {
|
|
10188
|
+
Row: {
|
|
10189
|
+
created_at: string;
|
|
10190
|
+
hourly_rate_cents: number;
|
|
10191
|
+
updated_at: string;
|
|
10192
|
+
user_id: string;
|
|
10193
|
+
};
|
|
10194
|
+
Insert: {
|
|
10195
|
+
created_at?: string;
|
|
10196
|
+
hourly_rate_cents?: number;
|
|
10197
|
+
updated_at?: string;
|
|
10198
|
+
user_id: string;
|
|
10199
|
+
};
|
|
10200
|
+
Update: {
|
|
10201
|
+
created_at?: string;
|
|
10202
|
+
hourly_rate_cents?: number;
|
|
10203
|
+
updated_at?: string;
|
|
10204
|
+
user_id?: string;
|
|
10205
|
+
};
|
|
10206
|
+
Relationships: [];
|
|
10207
|
+
};
|
|
8888
10208
|
tenants: {
|
|
8889
10209
|
Row: {
|
|
8890
10210
|
created_at: string;
|
|
@@ -9089,6 +10409,48 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
9089
10409
|
};
|
|
9090
10410
|
Relationships: [];
|
|
9091
10411
|
};
|
|
10412
|
+
trade_item_prices: {
|
|
10413
|
+
Row: {
|
|
10414
|
+
created_at: string;
|
|
10415
|
+
currency: string;
|
|
10416
|
+
id: string;
|
|
10417
|
+
last_push_error: string | null;
|
|
10418
|
+
last_pushed_at: string | null;
|
|
10419
|
+
price_group_id: string | null;
|
|
10420
|
+
price_per_piece: number;
|
|
10421
|
+
supply_line_id: string | null;
|
|
10422
|
+
trade_item_key: string;
|
|
10423
|
+
updated_at: string;
|
|
10424
|
+
user_id: string;
|
|
10425
|
+
};
|
|
10426
|
+
Insert: {
|
|
10427
|
+
created_at?: string;
|
|
10428
|
+
currency?: string;
|
|
10429
|
+
id?: string;
|
|
10430
|
+
last_push_error?: string | null;
|
|
10431
|
+
last_pushed_at?: string | null;
|
|
10432
|
+
price_group_id?: string | null;
|
|
10433
|
+
price_per_piece: number;
|
|
10434
|
+
supply_line_id?: string | null;
|
|
10435
|
+
trade_item_key: string;
|
|
10436
|
+
updated_at?: string;
|
|
10437
|
+
user_id: string;
|
|
10438
|
+
};
|
|
10439
|
+
Update: {
|
|
10440
|
+
created_at?: string;
|
|
10441
|
+
currency?: string;
|
|
10442
|
+
id?: string;
|
|
10443
|
+
last_push_error?: string | null;
|
|
10444
|
+
last_pushed_at?: string | null;
|
|
10445
|
+
price_group_id?: string | null;
|
|
10446
|
+
price_per_piece?: number;
|
|
10447
|
+
supply_line_id?: string | null;
|
|
10448
|
+
trade_item_key?: string;
|
|
10449
|
+
updated_at?: string;
|
|
10450
|
+
user_id?: string;
|
|
10451
|
+
};
|
|
10452
|
+
Relationships: [];
|
|
10453
|
+
};
|
|
9092
10454
|
trade_item_stock: {
|
|
9093
10455
|
Row: {
|
|
9094
10456
|
connection_id: string;
|
|
@@ -9242,7 +10604,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
9242
10604
|
twinfield_connections: {
|
|
9243
10605
|
Row: {
|
|
9244
10606
|
access_token: string | null;
|
|
9245
|
-
client_id: string
|
|
10607
|
+
client_id: string;
|
|
9246
10608
|
client_secret: string | null;
|
|
9247
10609
|
cluster_uri: string | null;
|
|
9248
10610
|
company_code: string | null;
|
|
@@ -9254,7 +10616,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
9254
10616
|
is_active: boolean;
|
|
9255
10617
|
label: string | null;
|
|
9256
10618
|
office_code: string | null;
|
|
9257
|
-
redirect_uri: string
|
|
10619
|
+
redirect_uri: string;
|
|
9258
10620
|
refresh_token: string | null;
|
|
9259
10621
|
token_expires_at: string | null;
|
|
9260
10622
|
updated_at: string;
|
|
@@ -9262,7 +10624,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
9262
10624
|
};
|
|
9263
10625
|
Insert: {
|
|
9264
10626
|
access_token?: string | null;
|
|
9265
|
-
client_id
|
|
10627
|
+
client_id: string;
|
|
9266
10628
|
client_secret?: string | null;
|
|
9267
10629
|
cluster_uri?: string | null;
|
|
9268
10630
|
company_code?: string | null;
|
|
@@ -9274,7 +10636,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
9274
10636
|
is_active?: boolean;
|
|
9275
10637
|
label?: string | null;
|
|
9276
10638
|
office_code?: string | null;
|
|
9277
|
-
redirect_uri
|
|
10639
|
+
redirect_uri: string;
|
|
9278
10640
|
refresh_token?: string | null;
|
|
9279
10641
|
token_expires_at?: string | null;
|
|
9280
10642
|
updated_at?: string;
|
|
@@ -9282,7 +10644,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
9282
10644
|
};
|
|
9283
10645
|
Update: {
|
|
9284
10646
|
access_token?: string | null;
|
|
9285
|
-
client_id?: string
|
|
10647
|
+
client_id?: string;
|
|
9286
10648
|
client_secret?: string | null;
|
|
9287
10649
|
cluster_uri?: string | null;
|
|
9288
10650
|
company_code?: string | null;
|
|
@@ -9294,7 +10656,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
9294
10656
|
is_active?: boolean;
|
|
9295
10657
|
label?: string | null;
|
|
9296
10658
|
office_code?: string | null;
|
|
9297
|
-
redirect_uri?: string
|
|
10659
|
+
redirect_uri?: string;
|
|
9298
10660
|
refresh_token?: string | null;
|
|
9299
10661
|
token_expires_at?: string | null;
|
|
9300
10662
|
updated_at?: string;
|
|
@@ -9354,6 +10716,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
9354
10716
|
country: string | null;
|
|
9355
10717
|
created_at: string;
|
|
9356
10718
|
email: string | null;
|
|
10719
|
+
external_group_key: string | null;
|
|
9357
10720
|
id: string;
|
|
9358
10721
|
last_synced_at: string | null;
|
|
9359
10722
|
name: string;
|
|
@@ -9372,6 +10735,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
9372
10735
|
country?: string | null;
|
|
9373
10736
|
created_at?: string;
|
|
9374
10737
|
email?: string | null;
|
|
10738
|
+
external_group_key?: string | null;
|
|
9375
10739
|
id?: string;
|
|
9376
10740
|
last_synced_at?: string | null;
|
|
9377
10741
|
name: string;
|
|
@@ -9390,6 +10754,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
9390
10754
|
country?: string | null;
|
|
9391
10755
|
created_at?: string;
|
|
9392
10756
|
email?: string | null;
|
|
10757
|
+
external_group_key?: string | null;
|
|
9393
10758
|
id?: string;
|
|
9394
10759
|
last_synced_at?: string | null;
|
|
9395
10760
|
name?: string;
|
|
@@ -9516,35 +10881,80 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
9516
10881
|
vat_rate: number | null;
|
|
9517
10882
|
};
|
|
9518
10883
|
Insert: {
|
|
9519
|
-
article_code?: string | null;
|
|
10884
|
+
article_code?: string | null;
|
|
10885
|
+
connection_id: string;
|
|
10886
|
+
data?: import("../integrations/supabase/types").Json;
|
|
10887
|
+
description?: string | null;
|
|
10888
|
+
fetched_at?: string;
|
|
10889
|
+
invoice_number: string;
|
|
10890
|
+
line_number: number;
|
|
10891
|
+
line_total?: number | null;
|
|
10892
|
+
quantity?: number | null;
|
|
10893
|
+
unit_price?: number | null;
|
|
10894
|
+
vat_code?: string | null;
|
|
10895
|
+
vat_rate?: number | null;
|
|
10896
|
+
};
|
|
10897
|
+
Update: {
|
|
10898
|
+
article_code?: string | null;
|
|
10899
|
+
connection_id?: string;
|
|
10900
|
+
data?: import("../integrations/supabase/types").Json;
|
|
10901
|
+
description?: string | null;
|
|
10902
|
+
fetched_at?: string;
|
|
10903
|
+
invoice_number?: string;
|
|
10904
|
+
line_number?: number;
|
|
10905
|
+
line_total?: number | null;
|
|
10906
|
+
quantity?: number | null;
|
|
10907
|
+
unit_price?: number | null;
|
|
10908
|
+
vat_code?: string | null;
|
|
10909
|
+
vat_rate?: number | null;
|
|
10910
|
+
};
|
|
10911
|
+
Relationships: [{
|
|
10912
|
+
foreignKeyName: "twinfield_invoice_lines_cache_v2_connection_id_fkey";
|
|
10913
|
+
columns: ["connection_id"];
|
|
10914
|
+
isOneToOne: false;
|
|
10915
|
+
referencedRelation: "twinfield_connections";
|
|
10916
|
+
referencedColumns: ["id"];
|
|
10917
|
+
}];
|
|
10918
|
+
};
|
|
10919
|
+
twinfield_invoice_pdf_cache: {
|
|
10920
|
+
Row: {
|
|
10921
|
+
connection_id: string;
|
|
10922
|
+
created_at: string;
|
|
10923
|
+
fetched_at: string;
|
|
10924
|
+
id: string;
|
|
10925
|
+
invoice_number: string;
|
|
10926
|
+
last_accessed_at: string;
|
|
10927
|
+
object_path: string;
|
|
10928
|
+
office_code: string;
|
|
10929
|
+
size_bytes: number;
|
|
10930
|
+
updated_at: string;
|
|
10931
|
+
};
|
|
10932
|
+
Insert: {
|
|
9520
10933
|
connection_id: string;
|
|
9521
|
-
|
|
9522
|
-
description?: string | null;
|
|
10934
|
+
created_at?: string;
|
|
9523
10935
|
fetched_at?: string;
|
|
10936
|
+
id?: string;
|
|
9524
10937
|
invoice_number: string;
|
|
9525
|
-
|
|
9526
|
-
|
|
9527
|
-
|
|
9528
|
-
|
|
9529
|
-
|
|
9530
|
-
vat_rate?: number | null;
|
|
10938
|
+
last_accessed_at?: string;
|
|
10939
|
+
object_path: string;
|
|
10940
|
+
office_code: string;
|
|
10941
|
+
size_bytes?: number;
|
|
10942
|
+
updated_at?: string;
|
|
9531
10943
|
};
|
|
9532
10944
|
Update: {
|
|
9533
|
-
article_code?: string | null;
|
|
9534
10945
|
connection_id?: string;
|
|
9535
|
-
|
|
9536
|
-
description?: string | null;
|
|
10946
|
+
created_at?: string;
|
|
9537
10947
|
fetched_at?: string;
|
|
10948
|
+
id?: string;
|
|
9538
10949
|
invoice_number?: string;
|
|
9539
|
-
|
|
9540
|
-
|
|
9541
|
-
|
|
9542
|
-
|
|
9543
|
-
|
|
9544
|
-
vat_rate?: number | null;
|
|
10950
|
+
last_accessed_at?: string;
|
|
10951
|
+
object_path?: string;
|
|
10952
|
+
office_code?: string;
|
|
10953
|
+
size_bytes?: number;
|
|
10954
|
+
updated_at?: string;
|
|
9545
10955
|
};
|
|
9546
10956
|
Relationships: [{
|
|
9547
|
-
foreignKeyName: "
|
|
10957
|
+
foreignKeyName: "twinfield_invoice_pdf_cache_connection_id_fkey";
|
|
9548
10958
|
columns: ["connection_id"];
|
|
9549
10959
|
isOneToOne: false;
|
|
9550
10960
|
referencedRelation: "twinfield_connections";
|
|
@@ -9554,6 +10964,8 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
9554
10964
|
twinfield_invoice_settings: {
|
|
9555
10965
|
Row: {
|
|
9556
10966
|
created_at: string;
|
|
10967
|
+
debtor_gl_account: string;
|
|
10968
|
+
default_credit_invoice_type: string | null;
|
|
9557
10969
|
default_gl_account: string;
|
|
9558
10970
|
default_invoice_type: string;
|
|
9559
10971
|
default_payment_term_days: number;
|
|
@@ -9562,11 +10974,15 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
9562
10974
|
invoice_enabled_fo: boolean;
|
|
9563
10975
|
invoice_enabled_ho: boolean;
|
|
9564
10976
|
invoice_enabled_mo: boolean;
|
|
10977
|
+
payment_gl_account: string;
|
|
10978
|
+
payment_journal_code: string;
|
|
9565
10979
|
updated_at: string;
|
|
9566
10980
|
user_id: string;
|
|
9567
10981
|
};
|
|
9568
10982
|
Insert: {
|
|
9569
10983
|
created_at?: string;
|
|
10984
|
+
debtor_gl_account?: string;
|
|
10985
|
+
default_credit_invoice_type?: string | null;
|
|
9570
10986
|
default_gl_account?: string;
|
|
9571
10987
|
default_invoice_type?: string;
|
|
9572
10988
|
default_payment_term_days?: number;
|
|
@@ -9575,11 +10991,15 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
9575
10991
|
invoice_enabled_fo?: boolean;
|
|
9576
10992
|
invoice_enabled_ho?: boolean;
|
|
9577
10993
|
invoice_enabled_mo?: boolean;
|
|
10994
|
+
payment_gl_account?: string;
|
|
10995
|
+
payment_journal_code?: string;
|
|
9578
10996
|
updated_at?: string;
|
|
9579
10997
|
user_id: string;
|
|
9580
10998
|
};
|
|
9581
10999
|
Update: {
|
|
9582
11000
|
created_at?: string;
|
|
11001
|
+
debtor_gl_account?: string;
|
|
11002
|
+
default_credit_invoice_type?: string | null;
|
|
9583
11003
|
default_gl_account?: string;
|
|
9584
11004
|
default_invoice_type?: string;
|
|
9585
11005
|
default_payment_term_days?: number;
|
|
@@ -9588,6 +11008,8 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
9588
11008
|
invoice_enabled_fo?: boolean;
|
|
9589
11009
|
invoice_enabled_ho?: boolean;
|
|
9590
11010
|
invoice_enabled_mo?: boolean;
|
|
11011
|
+
payment_gl_account?: string;
|
|
11012
|
+
payment_journal_code?: string;
|
|
9591
11013
|
updated_at?: string;
|
|
9592
11014
|
user_id?: string;
|
|
9593
11015
|
};
|
|
@@ -9808,43 +11230,49 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
9808
11230
|
};
|
|
9809
11231
|
twinfield_push_queue: {
|
|
9810
11232
|
Row: {
|
|
11233
|
+
action: string;
|
|
9811
11234
|
attempts: number;
|
|
9812
11235
|
connection_id: string;
|
|
9813
11236
|
created_at: string;
|
|
11237
|
+
customer_id: string | null;
|
|
9814
11238
|
external_id: string | null;
|
|
9815
11239
|
id: string;
|
|
9816
11240
|
idempotency_key: string;
|
|
9817
11241
|
last_error: string | null;
|
|
9818
11242
|
next_attempt_at: string;
|
|
9819
|
-
office_code: string;
|
|
11243
|
+
office_code: string | null;
|
|
9820
11244
|
payload: import("../integrations/supabase/types").Json;
|
|
9821
11245
|
status: string;
|
|
9822
11246
|
updated_at: string;
|
|
9823
11247
|
};
|
|
9824
11248
|
Insert: {
|
|
11249
|
+
action?: string;
|
|
9825
11250
|
attempts?: number;
|
|
9826
11251
|
connection_id: string;
|
|
9827
11252
|
created_at?: string;
|
|
11253
|
+
customer_id?: string | null;
|
|
9828
11254
|
external_id?: string | null;
|
|
9829
11255
|
id?: string;
|
|
9830
11256
|
idempotency_key: string;
|
|
9831
11257
|
last_error?: string | null;
|
|
9832
11258
|
next_attempt_at?: string;
|
|
9833
|
-
office_code
|
|
11259
|
+
office_code?: string | null;
|
|
9834
11260
|
payload: import("../integrations/supabase/types").Json;
|
|
9835
11261
|
status?: string;
|
|
9836
11262
|
updated_at?: string;
|
|
9837
11263
|
};
|
|
9838
11264
|
Update: {
|
|
11265
|
+
action?: string;
|
|
9839
11266
|
attempts?: number;
|
|
9840
11267
|
connection_id?: string;
|
|
9841
11268
|
created_at?: string;
|
|
11269
|
+
customer_id?: string | null;
|
|
9842
11270
|
external_id?: string | null;
|
|
9843
11271
|
id?: string;
|
|
9844
11272
|
idempotency_key?: string;
|
|
9845
11273
|
last_error?: string | null;
|
|
9846
11274
|
next_attempt_at?: string;
|
|
9847
|
-
office_code?: string;
|
|
11275
|
+
office_code?: string | null;
|
|
9848
11276
|
payload?: import("../integrations/supabase/types").Json;
|
|
9849
11277
|
status?: string;
|
|
9850
11278
|
updated_at?: string;
|
|
@@ -9855,6 +11283,12 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
9855
11283
|
isOneToOne: false;
|
|
9856
11284
|
referencedRelation: "twinfield_connections";
|
|
9857
11285
|
referencedColumns: ["id"];
|
|
11286
|
+
}, {
|
|
11287
|
+
foreignKeyName: "twinfield_push_queue_customer_id_fkey";
|
|
11288
|
+
columns: ["customer_id"];
|
|
11289
|
+
isOneToOne: false;
|
|
11290
|
+
referencedRelation: "customers";
|
|
11291
|
+
referencedColumns: ["id"];
|
|
9858
11292
|
}];
|
|
9859
11293
|
};
|
|
9860
11294
|
twinfield_request_metrics: {
|
|
@@ -10063,72 +11497,420 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
10063
11497
|
size_bytes?: number | null;
|
|
10064
11498
|
};
|
|
10065
11499
|
Update: {
|
|
10066
|
-
action?: string;
|
|
10067
|
-
attempt_number?: number;
|
|
10068
|
-
caller?: string;
|
|
10069
|
-
client_user_id?: string | null;
|
|
10070
|
-
content_type?: string | null;
|
|
11500
|
+
action?: string;
|
|
11501
|
+
attempt_number?: number;
|
|
11502
|
+
caller?: string;
|
|
11503
|
+
client_user_id?: string | null;
|
|
11504
|
+
content_type?: string | null;
|
|
11505
|
+
created_at?: string;
|
|
11506
|
+
environment?: string;
|
|
11507
|
+
error_message?: string | null;
|
|
11508
|
+
filename?: string | null;
|
|
11509
|
+
id?: string;
|
|
11510
|
+
idempotency_key?: string | null;
|
|
11511
|
+
module?: string;
|
|
11512
|
+
path?: string;
|
|
11513
|
+
reference_id?: string | null;
|
|
11514
|
+
request_body_hash?: string | null;
|
|
11515
|
+
request_timestamp?: number | null;
|
|
11516
|
+
response_content_type?: string | null;
|
|
11517
|
+
response_status?: number | null;
|
|
11518
|
+
size_bytes?: number | null;
|
|
11519
|
+
};
|
|
11520
|
+
Relationships: [];
|
|
11521
|
+
};
|
|
11522
|
+
voorraad_publish_attempts: {
|
|
11523
|
+
Row: {
|
|
11524
|
+
action: string;
|
|
11525
|
+
connection_id: string | null;
|
|
11526
|
+
created_at: string;
|
|
11527
|
+
error: string | null;
|
|
11528
|
+
gateway_attempt_id: string | null;
|
|
11529
|
+
gateway_status: number | null;
|
|
11530
|
+
id: string;
|
|
11531
|
+
intent: string;
|
|
11532
|
+
ok: boolean;
|
|
11533
|
+
request_summary: import("../integrations/supabase/types").Json | null;
|
|
11534
|
+
trade_item_id: string | null;
|
|
11535
|
+
user_id: string;
|
|
11536
|
+
};
|
|
11537
|
+
Insert: {
|
|
11538
|
+
action: string;
|
|
11539
|
+
connection_id?: string | null;
|
|
11540
|
+
created_at?: string;
|
|
11541
|
+
error?: string | null;
|
|
11542
|
+
gateway_attempt_id?: string | null;
|
|
11543
|
+
gateway_status?: number | null;
|
|
11544
|
+
id?: string;
|
|
11545
|
+
intent: string;
|
|
11546
|
+
ok: boolean;
|
|
11547
|
+
request_summary?: import("../integrations/supabase/types").Json | null;
|
|
11548
|
+
trade_item_id?: string | null;
|
|
11549
|
+
user_id: string;
|
|
11550
|
+
};
|
|
11551
|
+
Update: {
|
|
11552
|
+
action?: string;
|
|
11553
|
+
connection_id?: string | null;
|
|
11554
|
+
created_at?: string;
|
|
11555
|
+
error?: string | null;
|
|
11556
|
+
gateway_attempt_id?: string | null;
|
|
11557
|
+
gateway_status?: number | null;
|
|
11558
|
+
id?: string;
|
|
11559
|
+
intent?: string;
|
|
11560
|
+
ok?: boolean;
|
|
11561
|
+
request_summary?: import("../integrations/supabase/types").Json | null;
|
|
11562
|
+
trade_item_id?: string | null;
|
|
11563
|
+
user_id?: string;
|
|
11564
|
+
};
|
|
11565
|
+
Relationships: [];
|
|
11566
|
+
};
|
|
11567
|
+
werkbon_package_ai_rules: {
|
|
11568
|
+
Row: {
|
|
11569
|
+
active: boolean;
|
|
11570
|
+
case_sensitive: boolean;
|
|
11571
|
+
created_at: string;
|
|
11572
|
+
id: string;
|
|
11573
|
+
package_id: string;
|
|
11574
|
+
priority: number;
|
|
11575
|
+
rule_type: string;
|
|
11576
|
+
updated_at: string;
|
|
11577
|
+
value: string;
|
|
11578
|
+
};
|
|
11579
|
+
Insert: {
|
|
11580
|
+
active?: boolean;
|
|
11581
|
+
case_sensitive?: boolean;
|
|
11582
|
+
created_at?: string;
|
|
11583
|
+
id?: string;
|
|
11584
|
+
package_id: string;
|
|
11585
|
+
priority?: number;
|
|
11586
|
+
rule_type: string;
|
|
11587
|
+
updated_at?: string;
|
|
11588
|
+
value: string;
|
|
11589
|
+
};
|
|
11590
|
+
Update: {
|
|
11591
|
+
active?: boolean;
|
|
11592
|
+
case_sensitive?: boolean;
|
|
11593
|
+
created_at?: string;
|
|
11594
|
+
id?: string;
|
|
11595
|
+
package_id?: string;
|
|
11596
|
+
priority?: number;
|
|
11597
|
+
rule_type?: string;
|
|
11598
|
+
updated_at?: string;
|
|
11599
|
+
value?: string;
|
|
11600
|
+
};
|
|
11601
|
+
Relationships: [{
|
|
11602
|
+
foreignKeyName: "werkbon_package_ai_rules_package_id_fkey";
|
|
11603
|
+
columns: ["package_id"];
|
|
11604
|
+
isOneToOne: false;
|
|
11605
|
+
referencedRelation: "werkbon_packages";
|
|
11606
|
+
referencedColumns: ["id"];
|
|
11607
|
+
}];
|
|
11608
|
+
};
|
|
11609
|
+
werkbon_package_categories: {
|
|
11610
|
+
Row: {
|
|
11611
|
+
active: boolean;
|
|
11612
|
+
created_at: string;
|
|
11613
|
+
id: string;
|
|
11614
|
+
kleur: string | null;
|
|
11615
|
+
naam: string;
|
|
11616
|
+
sort_order: number;
|
|
11617
|
+
updated_at: string;
|
|
11618
|
+
};
|
|
11619
|
+
Insert: {
|
|
11620
|
+
active?: boolean;
|
|
11621
|
+
created_at?: string;
|
|
11622
|
+
id?: string;
|
|
11623
|
+
kleur?: string | null;
|
|
11624
|
+
naam: string;
|
|
11625
|
+
sort_order?: number;
|
|
11626
|
+
updated_at?: string;
|
|
11627
|
+
};
|
|
11628
|
+
Update: {
|
|
11629
|
+
active?: boolean;
|
|
11630
|
+
created_at?: string;
|
|
11631
|
+
id?: string;
|
|
11632
|
+
kleur?: string | null;
|
|
11633
|
+
naam?: string;
|
|
11634
|
+
sort_order?: number;
|
|
11635
|
+
updated_at?: string;
|
|
11636
|
+
};
|
|
11637
|
+
Relationships: [];
|
|
11638
|
+
};
|
|
11639
|
+
werkbon_package_lines: {
|
|
11640
|
+
Row: {
|
|
11641
|
+
created_at: string;
|
|
11642
|
+
created_by: string | null;
|
|
11643
|
+
id: string;
|
|
11644
|
+
package_id: string;
|
|
11645
|
+
quantity: number;
|
|
11646
|
+
unit_price_cents_snapshot: number;
|
|
11647
|
+
werkbon_id: string;
|
|
11648
|
+
};
|
|
11649
|
+
Insert: {
|
|
11650
|
+
created_at?: string;
|
|
11651
|
+
created_by?: string | null;
|
|
11652
|
+
id?: string;
|
|
11653
|
+
package_id: string;
|
|
11654
|
+
quantity?: number;
|
|
11655
|
+
unit_price_cents_snapshot?: number;
|
|
11656
|
+
werkbon_id: string;
|
|
11657
|
+
};
|
|
11658
|
+
Update: {
|
|
11659
|
+
created_at?: string;
|
|
11660
|
+
created_by?: string | null;
|
|
11661
|
+
id?: string;
|
|
11662
|
+
package_id?: string;
|
|
11663
|
+
quantity?: number;
|
|
11664
|
+
unit_price_cents_snapshot?: number;
|
|
11665
|
+
werkbon_id?: string;
|
|
11666
|
+
};
|
|
11667
|
+
Relationships: [{
|
|
11668
|
+
foreignKeyName: "werkbon_package_lines_package_id_fkey";
|
|
11669
|
+
columns: ["package_id"];
|
|
11670
|
+
isOneToOne: false;
|
|
11671
|
+
referencedRelation: "werkbon_packages";
|
|
11672
|
+
referencedColumns: ["id"];
|
|
11673
|
+
}, {
|
|
11674
|
+
foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
|
|
11675
|
+
columns: ["werkbon_id"];
|
|
11676
|
+
isOneToOne: false;
|
|
11677
|
+
referencedRelation: "werkbonnen";
|
|
11678
|
+
referencedColumns: ["id"];
|
|
11679
|
+
}];
|
|
11680
|
+
};
|
|
11681
|
+
werkbon_packages: {
|
|
11682
|
+
Row: {
|
|
11683
|
+
active: boolean;
|
|
11684
|
+
ai_tags: string[];
|
|
11685
|
+
category_id: string | null;
|
|
11686
|
+
code: string;
|
|
11687
|
+
created_at: string;
|
|
11688
|
+
default_quantity: number;
|
|
11689
|
+
description: string | null;
|
|
11690
|
+
duration_minutes: number | null;
|
|
11691
|
+
id: string;
|
|
11692
|
+
mandaat_type: string | null;
|
|
11693
|
+
name: string;
|
|
11694
|
+
sort_order: number;
|
|
11695
|
+
unit_price_cents: number;
|
|
11696
|
+
updated_at: string;
|
|
11697
|
+
};
|
|
11698
|
+
Insert: {
|
|
11699
|
+
active?: boolean;
|
|
11700
|
+
ai_tags?: string[];
|
|
11701
|
+
category_id?: string | null;
|
|
11702
|
+
code: string;
|
|
11703
|
+
created_at?: string;
|
|
11704
|
+
default_quantity?: number;
|
|
11705
|
+
description?: string | null;
|
|
11706
|
+
duration_minutes?: number | null;
|
|
11707
|
+
id?: string;
|
|
11708
|
+
mandaat_type?: string | null;
|
|
11709
|
+
name: string;
|
|
11710
|
+
sort_order?: number;
|
|
11711
|
+
unit_price_cents?: number;
|
|
11712
|
+
updated_at?: string;
|
|
11713
|
+
};
|
|
11714
|
+
Update: {
|
|
11715
|
+
active?: boolean;
|
|
11716
|
+
ai_tags?: string[];
|
|
11717
|
+
category_id?: string | null;
|
|
11718
|
+
code?: string;
|
|
11719
|
+
created_at?: string;
|
|
11720
|
+
default_quantity?: number;
|
|
11721
|
+
description?: string | null;
|
|
11722
|
+
duration_minutes?: number | null;
|
|
11723
|
+
id?: string;
|
|
11724
|
+
mandaat_type?: string | null;
|
|
11725
|
+
name?: string;
|
|
11726
|
+
sort_order?: number;
|
|
11727
|
+
unit_price_cents?: number;
|
|
11728
|
+
updated_at?: string;
|
|
11729
|
+
};
|
|
11730
|
+
Relationships: [{
|
|
11731
|
+
foreignKeyName: "werkbon_packages_category_id_fkey";
|
|
11732
|
+
columns: ["category_id"];
|
|
11733
|
+
isOneToOne: false;
|
|
11734
|
+
referencedRelation: "werkbon_package_categories";
|
|
11735
|
+
referencedColumns: ["id"];
|
|
11736
|
+
}];
|
|
11737
|
+
};
|
|
11738
|
+
werkbon_photos: {
|
|
11739
|
+
Row: {
|
|
11740
|
+
created_at: string;
|
|
11741
|
+
id: string;
|
|
11742
|
+
storage_path: string;
|
|
11743
|
+
user_id: string;
|
|
11744
|
+
werkbon_id: string;
|
|
11745
|
+
};
|
|
11746
|
+
Insert: {
|
|
11747
|
+
created_at?: string;
|
|
11748
|
+
id?: string;
|
|
11749
|
+
storage_path: string;
|
|
11750
|
+
user_id: string;
|
|
11751
|
+
werkbon_id: string;
|
|
11752
|
+
};
|
|
11753
|
+
Update: {
|
|
11754
|
+
created_at?: string;
|
|
11755
|
+
id?: string;
|
|
11756
|
+
storage_path?: string;
|
|
11757
|
+
user_id?: string;
|
|
11758
|
+
werkbon_id?: string;
|
|
11759
|
+
};
|
|
11760
|
+
Relationships: [{
|
|
11761
|
+
foreignKeyName: "werkbon_photos_werkbon_id_fkey";
|
|
11762
|
+
columns: ["werkbon_id"];
|
|
11763
|
+
isOneToOne: false;
|
|
11764
|
+
referencedRelation: "werkbonnen";
|
|
11765
|
+
referencedColumns: ["id"];
|
|
11766
|
+
}];
|
|
11767
|
+
};
|
|
11768
|
+
werkbon_time_logs: {
|
|
11769
|
+
Row: {
|
|
11770
|
+
activity: string;
|
|
11771
|
+
created_at: string;
|
|
11772
|
+
ended_at: string | null;
|
|
11773
|
+
id: string;
|
|
11774
|
+
started_at: string;
|
|
11775
|
+
user_id: string;
|
|
11776
|
+
werkbon_id: string;
|
|
11777
|
+
};
|
|
11778
|
+
Insert: {
|
|
11779
|
+
activity: string;
|
|
11780
|
+
created_at?: string;
|
|
11781
|
+
ended_at?: string | null;
|
|
11782
|
+
id?: string;
|
|
11783
|
+
started_at?: string;
|
|
11784
|
+
user_id: string;
|
|
11785
|
+
werkbon_id: string;
|
|
11786
|
+
};
|
|
11787
|
+
Update: {
|
|
11788
|
+
activity?: string;
|
|
10071
11789
|
created_at?: string;
|
|
10072
|
-
|
|
10073
|
-
error_message?: string | null;
|
|
10074
|
-
filename?: string | null;
|
|
11790
|
+
ended_at?: string | null;
|
|
10075
11791
|
id?: string;
|
|
10076
|
-
|
|
10077
|
-
|
|
10078
|
-
|
|
10079
|
-
reference_id?: string | null;
|
|
10080
|
-
request_body_hash?: string | null;
|
|
10081
|
-
request_timestamp?: number | null;
|
|
10082
|
-
response_content_type?: string | null;
|
|
10083
|
-
response_status?: number | null;
|
|
10084
|
-
size_bytes?: number | null;
|
|
11792
|
+
started_at?: string;
|
|
11793
|
+
user_id?: string;
|
|
11794
|
+
werkbon_id?: string;
|
|
10085
11795
|
};
|
|
10086
|
-
Relationships: [
|
|
11796
|
+
Relationships: [{
|
|
11797
|
+
foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
|
|
11798
|
+
columns: ["werkbon_id"];
|
|
11799
|
+
isOneToOne: false;
|
|
11800
|
+
referencedRelation: "werkbonnen";
|
|
11801
|
+
referencedColumns: ["id"];
|
|
11802
|
+
}];
|
|
10087
11803
|
};
|
|
10088
|
-
|
|
11804
|
+
werkbonnen: {
|
|
10089
11805
|
Row: {
|
|
10090
|
-
|
|
10091
|
-
|
|
11806
|
+
assigned_user_id: string | null;
|
|
11807
|
+
budget_mandate_cents: number;
|
|
11808
|
+
complaint_description: string | null;
|
|
10092
11809
|
created_at: string;
|
|
10093
|
-
|
|
10094
|
-
|
|
10095
|
-
|
|
11810
|
+
created_by: string | null;
|
|
11811
|
+
customer_id: string | null;
|
|
11812
|
+
externe_referentie: string | null;
|
|
11813
|
+
first_time_fix: boolean | null;
|
|
10096
11814
|
id: string;
|
|
10097
|
-
|
|
10098
|
-
|
|
10099
|
-
|
|
10100
|
-
|
|
10101
|
-
|
|
11815
|
+
internal_notes: string | null;
|
|
11816
|
+
parent_werkbon_id: string | null;
|
|
11817
|
+
parsed_payload: import("../integrations/supabase/types").Json | null;
|
|
11818
|
+
planning_status: string;
|
|
11819
|
+
project_number: string | null;
|
|
11820
|
+
room_number: string | null;
|
|
11821
|
+
scheduled_end_time: string | null;
|
|
11822
|
+
scheduled_start_time: string | null;
|
|
11823
|
+
sequence_number: number;
|
|
11824
|
+
source_email_meta: import("../integrations/supabase/types").Json | null;
|
|
11825
|
+
source_mailbox_message_id: string | null;
|
|
11826
|
+
source_pdf_path: string | null;
|
|
11827
|
+
source_type: string;
|
|
11828
|
+
status: string;
|
|
11829
|
+
technician_id: string | null;
|
|
11830
|
+
technician_notes: string | null;
|
|
11831
|
+
technician_notes_raw: string | null;
|
|
11832
|
+
technician_task_description: string | null;
|
|
11833
|
+
updated_at: string;
|
|
11834
|
+
version: number;
|
|
11835
|
+
work_address: string | null;
|
|
10102
11836
|
};
|
|
10103
11837
|
Insert: {
|
|
10104
|
-
|
|
10105
|
-
|
|
11838
|
+
assigned_user_id?: string | null;
|
|
11839
|
+
budget_mandate_cents?: number;
|
|
11840
|
+
complaint_description?: string | null;
|
|
10106
11841
|
created_at?: string;
|
|
10107
|
-
|
|
10108
|
-
|
|
10109
|
-
|
|
11842
|
+
created_by?: string | null;
|
|
11843
|
+
customer_id?: string | null;
|
|
11844
|
+
externe_referentie?: string | null;
|
|
11845
|
+
first_time_fix?: boolean | null;
|
|
10110
11846
|
id?: string;
|
|
10111
|
-
|
|
10112
|
-
|
|
10113
|
-
|
|
10114
|
-
|
|
10115
|
-
|
|
11847
|
+
internal_notes?: string | null;
|
|
11848
|
+
parent_werkbon_id?: string | null;
|
|
11849
|
+
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
11850
|
+
planning_status?: string;
|
|
11851
|
+
project_number?: string | null;
|
|
11852
|
+
room_number?: string | null;
|
|
11853
|
+
scheduled_end_time?: string | null;
|
|
11854
|
+
scheduled_start_time?: string | null;
|
|
11855
|
+
sequence_number: number;
|
|
11856
|
+
source_email_meta?: import("../integrations/supabase/types").Json | null;
|
|
11857
|
+
source_mailbox_message_id?: string | null;
|
|
11858
|
+
source_pdf_path?: string | null;
|
|
11859
|
+
source_type?: string;
|
|
11860
|
+
status?: string;
|
|
11861
|
+
technician_id?: string | null;
|
|
11862
|
+
technician_notes?: string | null;
|
|
11863
|
+
technician_notes_raw?: string | null;
|
|
11864
|
+
technician_task_description?: string | null;
|
|
11865
|
+
updated_at?: string;
|
|
11866
|
+
version?: number;
|
|
11867
|
+
work_address?: string | null;
|
|
10116
11868
|
};
|
|
10117
11869
|
Update: {
|
|
10118
|
-
|
|
10119
|
-
|
|
11870
|
+
assigned_user_id?: string | null;
|
|
11871
|
+
budget_mandate_cents?: number;
|
|
11872
|
+
complaint_description?: string | null;
|
|
10120
11873
|
created_at?: string;
|
|
10121
|
-
|
|
10122
|
-
|
|
10123
|
-
|
|
11874
|
+
created_by?: string | null;
|
|
11875
|
+
customer_id?: string | null;
|
|
11876
|
+
externe_referentie?: string | null;
|
|
11877
|
+
first_time_fix?: boolean | null;
|
|
10124
11878
|
id?: string;
|
|
10125
|
-
|
|
10126
|
-
|
|
10127
|
-
|
|
10128
|
-
|
|
10129
|
-
|
|
11879
|
+
internal_notes?: string | null;
|
|
11880
|
+
parent_werkbon_id?: string | null;
|
|
11881
|
+
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
11882
|
+
planning_status?: string;
|
|
11883
|
+
project_number?: string | null;
|
|
11884
|
+
room_number?: string | null;
|
|
11885
|
+
scheduled_end_time?: string | null;
|
|
11886
|
+
scheduled_start_time?: string | null;
|
|
11887
|
+
sequence_number?: number;
|
|
11888
|
+
source_email_meta?: import("../integrations/supabase/types").Json | null;
|
|
11889
|
+
source_mailbox_message_id?: string | null;
|
|
11890
|
+
source_pdf_path?: string | null;
|
|
11891
|
+
source_type?: string;
|
|
11892
|
+
status?: string;
|
|
11893
|
+
technician_id?: string | null;
|
|
11894
|
+
technician_notes?: string | null;
|
|
11895
|
+
technician_notes_raw?: string | null;
|
|
11896
|
+
technician_task_description?: string | null;
|
|
11897
|
+
updated_at?: string;
|
|
11898
|
+
version?: number;
|
|
11899
|
+
work_address?: string | null;
|
|
10130
11900
|
};
|
|
10131
|
-
Relationships: [
|
|
11901
|
+
Relationships: [{
|
|
11902
|
+
foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
|
|
11903
|
+
columns: ["parent_werkbon_id"];
|
|
11904
|
+
isOneToOne: false;
|
|
11905
|
+
referencedRelation: "werkbonnen";
|
|
11906
|
+
referencedColumns: ["id"];
|
|
11907
|
+
}, {
|
|
11908
|
+
foreignKeyName: "werkbonnen_source_mailbox_message_id_fkey";
|
|
11909
|
+
columns: ["source_mailbox_message_id"];
|
|
11910
|
+
isOneToOne: false;
|
|
11911
|
+
referencedRelation: "mailbox_messages";
|
|
11912
|
+
referencedColumns: ["id"];
|
|
11913
|
+
}];
|
|
10132
11914
|
};
|
|
10133
11915
|
work_order_monteurs: {
|
|
10134
11916
|
Row: {
|
|
@@ -10300,6 +12082,8 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
10300
12082
|
created_at: string | null;
|
|
10301
12083
|
created_by: string | null;
|
|
10302
12084
|
display_name: string | null;
|
|
12085
|
+
graph_subscription_expires_at: string | null;
|
|
12086
|
+
graph_subscription_id: string | null;
|
|
10303
12087
|
has_access_token: boolean | null;
|
|
10304
12088
|
has_client_id: boolean | null;
|
|
10305
12089
|
has_client_secret: boolean | null;
|
|
@@ -10317,6 +12101,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
10317
12101
|
oauth_mode: string | null;
|
|
10318
12102
|
provider: string | null;
|
|
10319
12103
|
purpose_assignments: import("../integrations/supabase/types").Json | null;
|
|
12104
|
+
realtime_mode: string | null;
|
|
10320
12105
|
scopes: string[] | null;
|
|
10321
12106
|
smtp_host: string | null;
|
|
10322
12107
|
smtp_port: number | null;
|
|
@@ -10331,6 +12116,8 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
10331
12116
|
created_at?: string | null;
|
|
10332
12117
|
created_by?: string | null;
|
|
10333
12118
|
display_name?: string | null;
|
|
12119
|
+
graph_subscription_expires_at?: string | null;
|
|
12120
|
+
graph_subscription_id?: string | null;
|
|
10334
12121
|
has_access_token?: never;
|
|
10335
12122
|
has_client_id?: never;
|
|
10336
12123
|
has_client_secret?: never;
|
|
@@ -10348,6 +12135,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
10348
12135
|
oauth_mode?: string | null;
|
|
10349
12136
|
provider?: string | null;
|
|
10350
12137
|
purpose_assignments?: import("../integrations/supabase/types").Json | null;
|
|
12138
|
+
realtime_mode?: string | null;
|
|
10351
12139
|
scopes?: string[] | null;
|
|
10352
12140
|
smtp_host?: string | null;
|
|
10353
12141
|
smtp_port?: number | null;
|
|
@@ -10362,6 +12150,8 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
10362
12150
|
created_at?: string | null;
|
|
10363
12151
|
created_by?: string | null;
|
|
10364
12152
|
display_name?: string | null;
|
|
12153
|
+
graph_subscription_expires_at?: string | null;
|
|
12154
|
+
graph_subscription_id?: string | null;
|
|
10365
12155
|
has_access_token?: never;
|
|
10366
12156
|
has_client_id?: never;
|
|
10367
12157
|
has_client_secret?: never;
|
|
@@ -10379,6 +12169,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
10379
12169
|
oauth_mode?: string | null;
|
|
10380
12170
|
provider?: string | null;
|
|
10381
12171
|
purpose_assignments?: import("../integrations/supabase/types").Json | null;
|
|
12172
|
+
realtime_mode?: string | null;
|
|
10382
12173
|
scopes?: string[] | null;
|
|
10383
12174
|
smtp_host?: string | null;
|
|
10384
12175
|
smtp_port?: number | null;
|
|
@@ -10489,6 +12280,25 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
10489
12280
|
};
|
|
10490
12281
|
Relationships: [];
|
|
10491
12282
|
};
|
|
12283
|
+
floriday_customer_discounts: {
|
|
12284
|
+
Row: {
|
|
12285
|
+
base_price: number | null;
|
|
12286
|
+
buyer_organization_id: string | null;
|
|
12287
|
+
currency: string | null;
|
|
12288
|
+
discount_type: string | null;
|
|
12289
|
+
discount_value: number | null;
|
|
12290
|
+
min_quantity: number | null;
|
|
12291
|
+
net_price: number | null;
|
|
12292
|
+
product_group_id: string | null;
|
|
12293
|
+
raw: import("../integrations/supabase/types").Json | null;
|
|
12294
|
+
source: string | null;
|
|
12295
|
+
source_id: string | null;
|
|
12296
|
+
trade_item_id: string | null;
|
|
12297
|
+
valid_from: string | null;
|
|
12298
|
+
valid_until: string | null;
|
|
12299
|
+
};
|
|
12300
|
+
Relationships: [];
|
|
12301
|
+
};
|
|
10492
12302
|
local_customer_discounts: {
|
|
10493
12303
|
Row: {
|
|
10494
12304
|
base_price: number | null;
|
|
@@ -10825,6 +12635,21 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
10825
12635
|
};
|
|
10826
12636
|
Returns: string;
|
|
10827
12637
|
};
|
|
12638
|
+
ai_usage_by_module: {
|
|
12639
|
+
Args: {
|
|
12640
|
+
_from: string;
|
|
12641
|
+
_to: string;
|
|
12642
|
+
};
|
|
12643
|
+
Returns: {
|
|
12644
|
+
calls: number;
|
|
12645
|
+
consumer_module_id: string;
|
|
12646
|
+
cost_usd: number;
|
|
12647
|
+
errors: number;
|
|
12648
|
+
input_tokens: number;
|
|
12649
|
+
output_tokens: number;
|
|
12650
|
+
total_tokens: number;
|
|
12651
|
+
}[];
|
|
12652
|
+
};
|
|
10828
12653
|
apply_stock_consumption: {
|
|
10829
12654
|
Args: {
|
|
10830
12655
|
p_order_id: string;
|
|
@@ -10882,6 +12707,12 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
10882
12707
|
processed_items: number;
|
|
10883
12708
|
}[];
|
|
10884
12709
|
};
|
|
12710
|
+
calculate_layer_stock: {
|
|
12711
|
+
Args: {
|
|
12712
|
+
p_product_id: string;
|
|
12713
|
+
};
|
|
12714
|
+
Returns: number;
|
|
12715
|
+
};
|
|
10885
12716
|
call_exact_route: {
|
|
10886
12717
|
Args: {
|
|
10887
12718
|
path: string;
|
|
@@ -10910,6 +12741,33 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
10910
12741
|
};
|
|
10911
12742
|
Returns: import("../integrations/supabase/types").Json;
|
|
10912
12743
|
};
|
|
12744
|
+
claim_twinfield_push_batch: {
|
|
12745
|
+
Args: {
|
|
12746
|
+
_limit?: number;
|
|
12747
|
+
};
|
|
12748
|
+
Returns: {
|
|
12749
|
+
action: string;
|
|
12750
|
+
attempts: number;
|
|
12751
|
+
connection_id: string;
|
|
12752
|
+
created_at: string;
|
|
12753
|
+
customer_id: string | null;
|
|
12754
|
+
external_id: string | null;
|
|
12755
|
+
id: string;
|
|
12756
|
+
idempotency_key: string;
|
|
12757
|
+
last_error: string | null;
|
|
12758
|
+
next_attempt_at: string;
|
|
12759
|
+
office_code: string | null;
|
|
12760
|
+
payload: import("../integrations/supabase/types").Json;
|
|
12761
|
+
status: string;
|
|
12762
|
+
updated_at: string;
|
|
12763
|
+
}[];
|
|
12764
|
+
SetofOptions: {
|
|
12765
|
+
from: "*";
|
|
12766
|
+
to: "twinfield_push_queue";
|
|
12767
|
+
isOneToOne: false;
|
|
12768
|
+
isSetofReturn: true;
|
|
12769
|
+
};
|
|
12770
|
+
};
|
|
10913
12771
|
cleanup_old_bookings: {
|
|
10914
12772
|
Args: never;
|
|
10915
12773
|
Returns: undefined;
|
|
@@ -10968,6 +12826,12 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
10968
12826
|
Args: never;
|
|
10969
12827
|
Returns: string;
|
|
10970
12828
|
};
|
|
12829
|
+
custom_access_token_hook: {
|
|
12830
|
+
Args: {
|
|
12831
|
+
event: import("../integrations/supabase/types").Json;
|
|
12832
|
+
};
|
|
12833
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
12834
|
+
};
|
|
10971
12835
|
dashboard_alert_counts: {
|
|
10972
12836
|
Args: never;
|
|
10973
12837
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -11035,6 +12899,16 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
11035
12899
|
status: string;
|
|
11036
12900
|
}[];
|
|
11037
12901
|
};
|
|
12902
|
+
email_auth_upsert_connection: {
|
|
12903
|
+
Args: {
|
|
12904
|
+
_account_email: string;
|
|
12905
|
+
_created_by: string;
|
|
12906
|
+
_is_active: boolean;
|
|
12907
|
+
_provider: string;
|
|
12908
|
+
_status: string;
|
|
12909
|
+
};
|
|
12910
|
+
Returns: string;
|
|
12911
|
+
};
|
|
11038
12912
|
enqueue_cart_replan_if_unlocked: {
|
|
11039
12913
|
Args: {
|
|
11040
12914
|
p_order_id: string;
|
|
@@ -11154,6 +13028,19 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
11154
13028
|
resource: string;
|
|
11155
13029
|
}[];
|
|
11156
13030
|
};
|
|
13031
|
+
get_floriday_agreements_active: {
|
|
13032
|
+
Args: {
|
|
13033
|
+
p_on_date?: string;
|
|
13034
|
+
};
|
|
13035
|
+
Returns: {
|
|
13036
|
+
buyer_organization_id: string;
|
|
13037
|
+
data: import("../integrations/supabase/types").Json;
|
|
13038
|
+
floriday_id: string;
|
|
13039
|
+
status: string;
|
|
13040
|
+
valid_from: string;
|
|
13041
|
+
valid_until: string;
|
|
13042
|
+
}[];
|
|
13043
|
+
};
|
|
11157
13044
|
get_floriday_clock_supplies_window: {
|
|
11158
13045
|
Args: {
|
|
11159
13046
|
p_from: string;
|
|
@@ -11241,6 +13128,12 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
11241
13128
|
};
|
|
11242
13129
|
Returns: string;
|
|
11243
13130
|
};
|
|
13131
|
+
get_inventory_stock_for_key: {
|
|
13132
|
+
Args: {
|
|
13133
|
+
p_key: string;
|
|
13134
|
+
};
|
|
13135
|
+
Returns: number;
|
|
13136
|
+
};
|
|
11244
13137
|
get_offer_by_link_code: {
|
|
11245
13138
|
Args: {
|
|
11246
13139
|
p_code: string;
|
|
@@ -11271,6 +13164,12 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
11271
13164
|
};
|
|
11272
13165
|
Returns: string;
|
|
11273
13166
|
};
|
|
13167
|
+
get_product_group_available_stock: {
|
|
13168
|
+
Args: {
|
|
13169
|
+
p_group_id: string;
|
|
13170
|
+
};
|
|
13171
|
+
Returns: number;
|
|
13172
|
+
};
|
|
11274
13173
|
get_room_busy_windows: {
|
|
11275
13174
|
Args: {
|
|
11276
13175
|
p_from: string;
|
|
@@ -11302,6 +13201,14 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
11302
13201
|
};
|
|
11303
13202
|
Returns: string;
|
|
11304
13203
|
};
|
|
13204
|
+
has_module_permission: {
|
|
13205
|
+
Args: {
|
|
13206
|
+
_min: string;
|
|
13207
|
+
_module_id: string;
|
|
13208
|
+
_user_id: string;
|
|
13209
|
+
};
|
|
13210
|
+
Returns: boolean;
|
|
13211
|
+
};
|
|
11305
13212
|
has_role: {
|
|
11306
13213
|
Args: {
|
|
11307
13214
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -11309,6 +13216,10 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
11309
13216
|
};
|
|
11310
13217
|
Returns: boolean;
|
|
11311
13218
|
};
|
|
13219
|
+
has_twinfield_link: {
|
|
13220
|
+
Args: never;
|
|
13221
|
+
Returns: boolean;
|
|
13222
|
+
};
|
|
11312
13223
|
is_authenticated: {
|
|
11313
13224
|
Args: never;
|
|
11314
13225
|
Returns: boolean;
|
|
@@ -11323,6 +13234,37 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
11323
13234
|
};
|
|
11324
13235
|
Returns: boolean;
|
|
11325
13236
|
};
|
|
13237
|
+
jwt_has_role: {
|
|
13238
|
+
Args: {
|
|
13239
|
+
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
13240
|
+
};
|
|
13241
|
+
Returns: boolean;
|
|
13242
|
+
};
|
|
13243
|
+
list_monteurs: {
|
|
13244
|
+
Args: never;
|
|
13245
|
+
Returns: {
|
|
13246
|
+
avatar_url: string;
|
|
13247
|
+
display_name: string;
|
|
13248
|
+
email: string;
|
|
13249
|
+
id: string;
|
|
13250
|
+
}[];
|
|
13251
|
+
};
|
|
13252
|
+
list_my_planning_items: {
|
|
13253
|
+
Args: {
|
|
13254
|
+
_from: string;
|
|
13255
|
+
_to: string;
|
|
13256
|
+
};
|
|
13257
|
+
Returns: {
|
|
13258
|
+
assigned_monteur_id: string;
|
|
13259
|
+
end_at: string;
|
|
13260
|
+
id: string;
|
|
13261
|
+
notes: string;
|
|
13262
|
+
role: string;
|
|
13263
|
+
start_at: string;
|
|
13264
|
+
status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
|
|
13265
|
+
werkbon_id: string;
|
|
13266
|
+
}[];
|
|
13267
|
+
};
|
|
11326
13268
|
local_effective_price: {
|
|
11327
13269
|
Args: {
|
|
11328
13270
|
_customer_id: string;
|
|
@@ -11339,6 +13281,22 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
11339
13281
|
source_id: string;
|
|
11340
13282
|
}[];
|
|
11341
13283
|
};
|
|
13284
|
+
log_ai_call: {
|
|
13285
|
+
Args: {
|
|
13286
|
+
_consumer_module_id: string;
|
|
13287
|
+
_cost_usd: number;
|
|
13288
|
+
_duration_ms: number;
|
|
13289
|
+
_error_code: string;
|
|
13290
|
+
_error_message: string;
|
|
13291
|
+
_input_tokens: number;
|
|
13292
|
+
_model_slug: string;
|
|
13293
|
+
_output_tokens: number;
|
|
13294
|
+
_provider_slug: string;
|
|
13295
|
+
_status: string;
|
|
13296
|
+
_total_tokens: number;
|
|
13297
|
+
};
|
|
13298
|
+
Returns: string;
|
|
13299
|
+
};
|
|
11342
13300
|
mark_offer_clicked: {
|
|
11343
13301
|
Args: {
|
|
11344
13302
|
p_code: string;
|
|
@@ -11390,6 +13348,10 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
11390
13348
|
};
|
|
11391
13349
|
Returns: string;
|
|
11392
13350
|
};
|
|
13351
|
+
next_twinfield_code: {
|
|
13352
|
+
Args: never;
|
|
13353
|
+
Returns: string;
|
|
13354
|
+
};
|
|
11393
13355
|
next_work_order_number: {
|
|
11394
13356
|
Args: {
|
|
11395
13357
|
p_parent_work_order_id?: string;
|
|
@@ -11446,6 +13408,15 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
11446
13408
|
};
|
|
11447
13409
|
Returns: undefined;
|
|
11448
13410
|
};
|
|
13411
|
+
pickstation_resolve_delivery_orders: {
|
|
13412
|
+
Args: {
|
|
13413
|
+
p_sales_order_ids: string[];
|
|
13414
|
+
};
|
|
13415
|
+
Returns: {
|
|
13416
|
+
delivery_order_id: string;
|
|
13417
|
+
sales_order_id: string;
|
|
13418
|
+
}[];
|
|
13419
|
+
};
|
|
11449
13420
|
pickstation_set_cart_status: {
|
|
11450
13421
|
Args: {
|
|
11451
13422
|
p_cart_index: number;
|
|
@@ -11516,6 +13487,12 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
11516
13487
|
};
|
|
11517
13488
|
Returns: number;
|
|
11518
13489
|
};
|
|
13490
|
+
reorder_customer_price_groups: {
|
|
13491
|
+
Args: {
|
|
13492
|
+
_ids: string[];
|
|
13493
|
+
};
|
|
13494
|
+
Returns: undefined;
|
|
13495
|
+
};
|
|
11519
13496
|
reset_floriday_sync_cursor: {
|
|
11520
13497
|
Args: {
|
|
11521
13498
|
p_connection_id: string;
|
|
@@ -11551,6 +13528,12 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
11551
13528
|
};
|
|
11552
13529
|
Returns: string;
|
|
11553
13530
|
};
|
|
13531
|
+
retry_twinfield_push: {
|
|
13532
|
+
Args: {
|
|
13533
|
+
_customer_id: string;
|
|
13534
|
+
};
|
|
13535
|
+
Returns: number;
|
|
13536
|
+
};
|
|
11554
13537
|
reverse_production: {
|
|
11555
13538
|
Args: {
|
|
11556
13539
|
p_connection_id?: string;
|
|
@@ -11568,6 +13551,20 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
11568
13551
|
};
|
|
11569
13552
|
Returns: number;
|
|
11570
13553
|
};
|
|
13554
|
+
schedule_floriday_agreement_calloffs_sync: {
|
|
13555
|
+
Args: {
|
|
13556
|
+
p_apikey: string;
|
|
13557
|
+
p_url: string;
|
|
13558
|
+
};
|
|
13559
|
+
Returns: number;
|
|
13560
|
+
};
|
|
13561
|
+
schedule_floriday_agreements_sync: {
|
|
13562
|
+
Args: {
|
|
13563
|
+
p_apikey: string;
|
|
13564
|
+
p_url: string;
|
|
13565
|
+
};
|
|
13566
|
+
Returns: number;
|
|
13567
|
+
};
|
|
11571
13568
|
schedule_floriday_base_items_sync: {
|
|
11572
13569
|
Args: {
|
|
11573
13570
|
p_apikey: string;
|
|
@@ -11818,6 +13815,13 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
11818
13815
|
Args: never;
|
|
11819
13816
|
Returns: number;
|
|
11820
13817
|
};
|
|
13818
|
+
set_planning_status: {
|
|
13819
|
+
Args: {
|
|
13820
|
+
_id: string;
|
|
13821
|
+
_status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
|
|
13822
|
+
};
|
|
13823
|
+
Returns: undefined;
|
|
13824
|
+
};
|
|
11821
13825
|
show_limit: {
|
|
11822
13826
|
Args: never;
|
|
11823
13827
|
Returns: number;
|
|
@@ -11828,12 +13832,22 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
11828
13832
|
};
|
|
11829
13833
|
Returns: string[];
|
|
11830
13834
|
};
|
|
13835
|
+
sync_all_layer_stocks: {
|
|
13836
|
+
Args: never;
|
|
13837
|
+
Returns: undefined;
|
|
13838
|
+
};
|
|
11831
13839
|
sync_cached_packing_from_product: {
|
|
11832
13840
|
Args: {
|
|
11833
13841
|
p_product_id: string;
|
|
11834
13842
|
};
|
|
11835
13843
|
Returns: undefined;
|
|
11836
13844
|
};
|
|
13845
|
+
sync_layer_stock: {
|
|
13846
|
+
Args: {
|
|
13847
|
+
p_product_id: string;
|
|
13848
|
+
};
|
|
13849
|
+
Returns: undefined;
|
|
13850
|
+
};
|
|
11837
13851
|
sync_order_cart_item_packing_from_product: {
|
|
11838
13852
|
Args: {
|
|
11839
13853
|
p_product_id: string;
|
|
@@ -11877,9 +13891,12 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
|
|
|
11877
13891
|
};
|
|
11878
13892
|
};
|
|
11879
13893
|
Enums: {
|
|
11880
|
-
app_role: "admin" | "
|
|
13894
|
+
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
|
|
11881
13895
|
exact_env: "staging" | "live";
|
|
11882
13896
|
exact_push_status: "pending" | "sent" | "error";
|
|
13897
|
+
itk_customer_segment: "Business" | "Private";
|
|
13898
|
+
itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
|
|
13899
|
+
planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
|
|
11883
13900
|
quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
|
|
11884
13901
|
};
|
|
11885
13902
|
CompositeTypes: { [_ in never]: never; };
|