@flowselections/floriday-afhandeling-module 1.0.18 → 1.0.20

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.
Files changed (52) hide show
  1. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1581 -310
  2. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  3. package/dist-lib/integrations/supabase/client.d.ts +1581 -310
  4. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  5. package/dist-lib/integrations/supabase/client.js +7 -26
  6. package/dist-lib/integrations/supabase/client.server.d.ts +1581 -310
  7. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  8. package/dist-lib/integrations/supabase/types.d.ts +1620 -310
  9. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  10. package/dist-lib/integrations/supabase/types.js +11 -9
  11. package/dist-lib/lib/afhandelingSettings.functions.d.ts +4141 -1599
  12. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  13. package/dist-lib/lib/carriers.functions.d.ts +7829 -1474
  14. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  15. package/dist-lib/lib/cartAssignments.functions.d.ts +7829 -1474
  16. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  17. package/dist-lib/lib/cartControl.functions.d.ts +16184 -3474
  18. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  19. package/dist-lib/lib/floriday.functions.d.ts +1581 -310
  20. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  21. package/dist-lib/lib/logisticsEngine/capacity.functions.d.ts +6158 -1074
  22. package/dist-lib/lib/logisticsEngine/capacity.functions.d.ts.map +1 -1
  23. package/dist-lib/lib/logisticsEngine/evaluate.functions.d.ts +1581 -310
  24. package/dist-lib/lib/logisticsEngine/evaluate.functions.d.ts.map +1 -1
  25. package/dist-lib/lib/logisticsEngine/formulas.functions.d.ts +4141 -1599
  26. package/dist-lib/lib/logisticsEngine/formulas.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/logisticsEngine/strategies.functions.d.ts +12842 -2674
  28. package/dist-lib/lib/logisticsEngine/strategies.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/logisticsEngine/wizard.functions.d.ts +6158 -1074
  30. package/dist-lib/lib/logisticsEngine/wizard.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/pickstationOrders.server.d.ts +4 -3
  32. package/dist-lib/lib/pickstationOrders.server.d.ts.map +1 -1
  33. package/dist-lib/lib/pickstationOrders.server.js +6 -6
  34. package/dist-lib/lib/serverRoutes/dispatchCarrierSignups.handler.d.ts +3 -0
  35. package/dist-lib/lib/serverRoutes/dispatchCarrierSignups.handler.d.ts.map +1 -0
  36. package/dist-lib/lib/serverRoutes/dispatchCarrierSignups.handler.js +321 -0
  37. package/dist-lib/lib/serverRoutes/index.d.ts +6 -0
  38. package/dist-lib/lib/serverRoutes/index.d.ts.map +1 -0
  39. package/dist-lib/lib/serverRoutes/index.js +8 -0
  40. package/dist-lib/lib/serverRoutes/logisticsTick.handler.d.ts +3 -0
  41. package/dist-lib/lib/serverRoutes/logisticsTick.handler.d.ts.map +1 -0
  42. package/dist-lib/lib/serverRoutes/logisticsTick.handler.js +37 -0
  43. package/dist-lib/lib/serverRoutes/pickstationOrders.handler.d.ts +3 -0
  44. package/dist-lib/lib/serverRoutes/pickstationOrders.handler.d.ts.map +1 -0
  45. package/dist-lib/lib/serverRoutes/pickstationOrders.handler.js +58 -0
  46. package/dist-lib/lib/serverRoutes/pickstationPrint.handler.d.ts +3 -0
  47. package/dist-lib/lib/serverRoutes/pickstationPrint.handler.d.ts.map +1 -0
  48. package/dist-lib/lib/serverRoutes/pickstationPrint.handler.js +116 -0
  49. package/dist-lib/lib/serverRoutes/pickstationStatus.handler.d.ts +3 -0
  50. package/dist-lib/lib/serverRoutes/pickstationStatus.handler.d.ts.map +1 -0
  51. package/dist-lib/lib/serverRoutes/pickstationStatus.handler.js +28 -0
  52. package/package.json +32 -2
@@ -242,12 +242,98 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
242
242
  };
243
243
  Relationships: [];
244
244
  };
245
+ ai_admin_credentials: {
246
+ Row: {
247
+ active: boolean;
248
+ admin_key: string;
249
+ created_at: string;
250
+ id: string;
251
+ label: string;
252
+ provider_id: string;
253
+ updated_at: string;
254
+ };
255
+ Insert: {
256
+ active?: boolean;
257
+ admin_key: string;
258
+ created_at?: string;
259
+ id?: string;
260
+ label: string;
261
+ provider_id: string;
262
+ updated_at?: string;
263
+ };
264
+ Update: {
265
+ active?: boolean;
266
+ admin_key?: string;
267
+ created_at?: string;
268
+ id?: string;
269
+ label?: string;
270
+ provider_id?: string;
271
+ updated_at?: string;
272
+ };
273
+ Relationships: [{
274
+ foreignKeyName: "ai_admin_credentials_provider_id_fkey";
275
+ columns: ["provider_id"];
276
+ isOneToOne: true;
277
+ referencedRelation: "ai_providers";
278
+ referencedColumns: ["id"];
279
+ }];
280
+ };
281
+ ai_call_log: {
282
+ Row: {
283
+ consumer_module_id: string;
284
+ cost_usd: number | null;
285
+ created_at: string;
286
+ created_by: string | null;
287
+ duration_ms: number | null;
288
+ error_code: string | null;
289
+ error_message: string | null;
290
+ id: string;
291
+ input_tokens: number;
292
+ model_slug: string | null;
293
+ output_tokens: number;
294
+ provider_slug: string | null;
295
+ status: string;
296
+ total_tokens: number;
297
+ };
298
+ Insert: {
299
+ consumer_module_id: string;
300
+ cost_usd?: number | null;
301
+ created_at?: string;
302
+ created_by?: string | null;
303
+ duration_ms?: number | null;
304
+ error_code?: string | null;
305
+ error_message?: string | null;
306
+ id?: string;
307
+ input_tokens?: number;
308
+ model_slug?: string | null;
309
+ output_tokens?: number;
310
+ provider_slug?: string | null;
311
+ status: string;
312
+ total_tokens?: number;
313
+ };
314
+ Update: {
315
+ consumer_module_id?: string;
316
+ cost_usd?: number | null;
317
+ created_at?: string;
318
+ created_by?: string | null;
319
+ duration_ms?: number | null;
320
+ error_code?: string | null;
321
+ error_message?: string | null;
322
+ id?: string;
323
+ input_tokens?: number;
324
+ model_slug?: string | null;
325
+ output_tokens?: number;
326
+ provider_slug?: string | null;
327
+ status?: string;
328
+ total_tokens?: number;
329
+ };
330
+ Relationships: [];
331
+ };
245
332
  ai_credentials: {
246
333
  Row: {
247
334
  active: boolean;
248
335
  api_key: string;
249
336
  created_at: string;
250
- created_by: string | null;
251
337
  id: string;
252
338
  label: string;
253
339
  provider_id: string;
@@ -257,7 +343,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
257
343
  active?: boolean;
258
344
  api_key: string;
259
345
  created_at?: string;
260
- created_by?: string | null;
261
346
  id?: string;
262
347
  label: string;
263
348
  provider_id: string;
@@ -267,7 +352,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
267
352
  active?: boolean;
268
353
  api_key?: string;
269
354
  created_at?: string;
270
- created_by?: string | null;
271
355
  id?: string;
272
356
  label?: string;
273
357
  provider_id?: string;
@@ -281,6 +365,75 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
281
365
  referencedColumns: ["id"];
282
366
  }];
283
367
  };
368
+ ai_goals: {
369
+ Row: {
370
+ active: boolean;
371
+ created_at: string;
372
+ description: string | null;
373
+ key: string;
374
+ label: string;
375
+ sort_order: number;
376
+ updated_at: string;
377
+ };
378
+ Insert: {
379
+ active?: boolean;
380
+ created_at?: string;
381
+ description?: string | null;
382
+ key: string;
383
+ label: string;
384
+ sort_order?: number;
385
+ updated_at?: string;
386
+ };
387
+ Update: {
388
+ active?: boolean;
389
+ created_at?: string;
390
+ description?: string | null;
391
+ key?: string;
392
+ label?: string;
393
+ sort_order?: number;
394
+ updated_at?: string;
395
+ };
396
+ Relationships: [];
397
+ };
398
+ ai_model_pricing: {
399
+ Row: {
400
+ created_at: string;
401
+ currency: string;
402
+ fetched_at: string;
403
+ id: string;
404
+ input_per_mtok: number | null;
405
+ model_slug: string;
406
+ output_per_mtok: number | null;
407
+ provider_slug: string;
408
+ source: string;
409
+ updated_at: string;
410
+ };
411
+ Insert: {
412
+ created_at?: string;
413
+ currency?: string;
414
+ fetched_at?: string;
415
+ id?: string;
416
+ input_per_mtok?: number | null;
417
+ model_slug: string;
418
+ output_per_mtok?: number | null;
419
+ provider_slug: string;
420
+ source?: string;
421
+ updated_at?: string;
422
+ };
423
+ Update: {
424
+ created_at?: string;
425
+ currency?: string;
426
+ fetched_at?: string;
427
+ id?: string;
428
+ input_per_mtok?: number | null;
429
+ model_slug?: string;
430
+ output_per_mtok?: number | null;
431
+ provider_slug?: string;
432
+ source?: string;
433
+ updated_at?: string;
434
+ };
435
+ Relationships: [];
436
+ };
284
437
  ai_models: {
285
438
  Row: {
286
439
  active: boolean;
@@ -1226,6 +1379,69 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1226
1379
  };
1227
1380
  Relationships: [];
1228
1381
  };
1382
+ catalog_articles_cache: {
1383
+ Row: {
1384
+ created_at: string;
1385
+ default_price: number;
1386
+ default_vat_rate_ref: string | null;
1387
+ external_ref: string;
1388
+ id: string;
1389
+ name: string;
1390
+ updated_at: string;
1391
+ user_id: string;
1392
+ };
1393
+ Insert: {
1394
+ created_at?: string;
1395
+ default_price?: number;
1396
+ default_vat_rate_ref?: string | null;
1397
+ external_ref: string;
1398
+ id?: string;
1399
+ name: string;
1400
+ updated_at?: string;
1401
+ user_id: string;
1402
+ };
1403
+ Update: {
1404
+ created_at?: string;
1405
+ default_price?: number;
1406
+ default_vat_rate_ref?: string | null;
1407
+ external_ref?: string;
1408
+ id?: string;
1409
+ name?: string;
1410
+ updated_at?: string;
1411
+ user_id?: string;
1412
+ };
1413
+ Relationships: [];
1414
+ };
1415
+ catalog_vat_rates_cache: {
1416
+ Row: {
1417
+ created_at: string;
1418
+ external_ref: string;
1419
+ id: string;
1420
+ label: string;
1421
+ percentage: number;
1422
+ updated_at: string;
1423
+ user_id: string;
1424
+ };
1425
+ Insert: {
1426
+ created_at?: string;
1427
+ external_ref: string;
1428
+ id?: string;
1429
+ label: string;
1430
+ percentage?: number;
1431
+ updated_at?: string;
1432
+ user_id: string;
1433
+ };
1434
+ Update: {
1435
+ created_at?: string;
1436
+ external_ref?: string;
1437
+ id?: string;
1438
+ label?: string;
1439
+ percentage?: number;
1440
+ updated_at?: string;
1441
+ user_id?: string;
1442
+ };
1443
+ Relationships: [];
1444
+ };
1229
1445
  collections: {
1230
1446
  Row: {
1231
1447
  created_at: string;
@@ -1505,6 +1721,105 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1505
1721
  };
1506
1722
  Relationships: [];
1507
1723
  };
1724
+ customer_price_group_members: {
1725
+ Row: {
1726
+ created_at: string;
1727
+ customer_key: string;
1728
+ id: string;
1729
+ owner_id: string;
1730
+ price_group_id: string;
1731
+ };
1732
+ Insert: {
1733
+ created_at?: string;
1734
+ customer_key: string;
1735
+ id?: string;
1736
+ owner_id?: string;
1737
+ price_group_id: string;
1738
+ };
1739
+ Update: {
1740
+ created_at?: string;
1741
+ customer_key?: string;
1742
+ id?: string;
1743
+ owner_id?: string;
1744
+ price_group_id?: string;
1745
+ };
1746
+ Relationships: [{
1747
+ foreignKeyName: "customer_price_group_members_price_group_id_fkey";
1748
+ columns: ["price_group_id"];
1749
+ isOneToOne: false;
1750
+ referencedRelation: "customer_price_groups";
1751
+ referencedColumns: ["id"];
1752
+ }];
1753
+ };
1754
+ customer_price_groups: {
1755
+ Row: {
1756
+ calc_type: string | null;
1757
+ calc_value: number | null;
1758
+ calc_value_type: string | null;
1759
+ created_at: string;
1760
+ currency: string;
1761
+ distribute_over: string | null;
1762
+ group_type: string;
1763
+ handling_fee: number | null;
1764
+ id: string;
1765
+ include_stickers: boolean;
1766
+ is_active: boolean;
1767
+ name: string;
1768
+ owner_id: string;
1769
+ price_scope: string;
1770
+ pricing_mode: string;
1771
+ rounding: string;
1772
+ rounding_step: number;
1773
+ sort_order: number;
1774
+ unit: string;
1775
+ updated_at: string;
1776
+ };
1777
+ Insert: {
1778
+ calc_type?: string | null;
1779
+ calc_value?: number | null;
1780
+ calc_value_type?: string | null;
1781
+ created_at?: string;
1782
+ currency?: string;
1783
+ distribute_over?: string | null;
1784
+ group_type?: string;
1785
+ handling_fee?: number | null;
1786
+ id?: string;
1787
+ include_stickers?: boolean;
1788
+ is_active?: boolean;
1789
+ name: string;
1790
+ owner_id?: string;
1791
+ price_scope?: string;
1792
+ pricing_mode?: string;
1793
+ rounding?: string;
1794
+ rounding_step?: number;
1795
+ sort_order?: number;
1796
+ unit?: string;
1797
+ updated_at?: string;
1798
+ };
1799
+ Update: {
1800
+ calc_type?: string | null;
1801
+ calc_value?: number | null;
1802
+ calc_value_type?: string | null;
1803
+ created_at?: string;
1804
+ currency?: string;
1805
+ distribute_over?: string | null;
1806
+ group_type?: string;
1807
+ handling_fee?: number | null;
1808
+ id?: string;
1809
+ include_stickers?: boolean;
1810
+ is_active?: boolean;
1811
+ name?: string;
1812
+ owner_id?: string;
1813
+ price_scope?: string;
1814
+ pricing_mode?: string;
1815
+ rounding?: string;
1816
+ rounding_step?: number;
1817
+ sort_order?: number;
1818
+ unit?: string;
1819
+ updated_at?: string;
1820
+ };
1821
+ Relationships: [];
1822
+ };
1508
1823
  customer_selected_assortment: {
1509
1824
  Row: {
1510
1825
  article_number: string | null;
@@ -1658,6 +1973,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1658
1973
  sync_error: string | null;
1659
1974
  sync_status: string;
1660
1975
  trade_forms: string[];
1976
+ twinfield_code: string | null;
1977
+ twinfield_last_hash: string | null;
1978
+ twinfield_sync_error: string | null;
1979
+ twinfield_synced_at: string | null;
1661
1980
  updated_at: string;
1662
1981
  vat_display: string | null;
1663
1982
  vat_number: string | null;
@@ -1725,6 +2044,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1725
2044
  sync_error?: string | null;
1726
2045
  sync_status?: string;
1727
2046
  trade_forms?: string[];
2047
+ twinfield_code?: string | null;
2048
+ twinfield_last_hash?: string | null;
2049
+ twinfield_sync_error?: string | null;
2050
+ twinfield_synced_at?: string | null;
1728
2051
  updated_at?: string;
1729
2052
  vat_display?: string | null;
1730
2053
  vat_number?: string | null;
@@ -1792,6 +2115,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1792
2115
  sync_error?: string | null;
1793
2116
  sync_status?: string;
1794
2117
  trade_forms?: string[];
2118
+ twinfield_code?: string | null;
2119
+ twinfield_last_hash?: string | null;
2120
+ twinfield_sync_error?: string | null;
2121
+ twinfield_synced_at?: string | null;
1795
2122
  updated_at?: string;
1796
2123
  vat_display?: string | null;
1797
2124
  vat_number?: string | null;
@@ -3605,48 +3932,147 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3605
3932
  referencedColumns: ["id"];
3606
3933
  }];
3607
3934
  };
3608
- floriday_auction_letters_cache: {
3935
+ floriday_agreement_calloffs_cache: {
3609
3936
  Row: {
3610
- auction_letter_code: string;
3611
- clock_supply_id: string;
3937
+ agreement_id: string | null;
3612
3938
  connection_id: string;
3613
- content_type: string;
3939
+ data: import("./types").Json;
3940
+ delivery_date: string | null;
3614
3941
  fetched_at: string;
3942
+ floriday_id: string;
3615
3943
  id: string;
3616
- storage_path: string;
3944
+ is_deleted: boolean;
3945
+ sequence_number: number;
3946
+ status: string | null;
3947
+ updated_at: string;
3617
3948
  };
3618
3949
  Insert: {
3619
- auction_letter_code: string;
3620
- clock_supply_id: string;
3950
+ agreement_id?: string | null;
3621
3951
  connection_id: string;
3622
- content_type?: string;
3952
+ data?: import("./types").Json;
3953
+ delivery_date?: string | null;
3623
3954
  fetched_at?: string;
3955
+ floriday_id: string;
3624
3956
  id?: string;
3625
- storage_path: string;
3957
+ is_deleted?: boolean;
3958
+ sequence_number?: number;
3959
+ status?: string | null;
3960
+ updated_at?: string;
3626
3961
  };
3627
3962
  Update: {
3628
- auction_letter_code?: string;
3629
- clock_supply_id?: string;
3963
+ agreement_id?: string | null;
3630
3964
  connection_id?: string;
3631
- content_type?: string;
3965
+ data?: import("./types").Json;
3966
+ delivery_date?: string | null;
3632
3967
  fetched_at?: string;
3968
+ floriday_id?: string;
3633
3969
  id?: string;
3634
- storage_path?: string;
3970
+ is_deleted?: boolean;
3971
+ sequence_number?: number;
3972
+ status?: string | null;
3973
+ updated_at?: string;
3635
3974
  };
3636
3975
  Relationships: [{
3637
- foreignKeyName: "floriday_auction_letters_cache_connection_id_fkey";
3976
+ foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
3638
3977
  columns: ["connection_id"];
3639
3978
  isOneToOne: false;
3640
3979
  referencedRelation: "floriday_connections";
3641
3980
  referencedColumns: ["id"];
3642
3981
  }];
3643
3982
  };
3644
- floriday_auto_fulfillment_log: {
3983
+ floriday_agreements_cache: {
3645
3984
  Row: {
3646
- attempts: number;
3985
+ buyer_organization_id: string | null;
3647
3986
  connection_id: string;
3648
- created_at: string;
3649
- error: string | null;
3987
+ data: import("./types").Json;
3988
+ fetched_at: string;
3989
+ floriday_id: string;
3990
+ id: string;
3991
+ is_deleted: boolean;
3992
+ sequence_number: number;
3993
+ status: string | null;
3994
+ updated_at: string;
3995
+ valid_from: string | null;
3996
+ valid_until: string | null;
3997
+ };
3998
+ Insert: {
3999
+ buyer_organization_id?: string | null;
4000
+ connection_id: string;
4001
+ data?: import("./types").Json;
4002
+ fetched_at?: string;
4003
+ floriday_id: string;
4004
+ id?: string;
4005
+ is_deleted?: boolean;
4006
+ sequence_number?: number;
4007
+ status?: string | null;
4008
+ updated_at?: string;
4009
+ valid_from?: string | null;
4010
+ valid_until?: string | null;
4011
+ };
4012
+ Update: {
4013
+ buyer_organization_id?: string | null;
4014
+ connection_id?: string;
4015
+ data?: import("./types").Json;
4016
+ fetched_at?: string;
4017
+ floriday_id?: string;
4018
+ id?: string;
4019
+ is_deleted?: boolean;
4020
+ sequence_number?: number;
4021
+ status?: string | null;
4022
+ updated_at?: string;
4023
+ valid_from?: string | null;
4024
+ valid_until?: string | null;
4025
+ };
4026
+ Relationships: [{
4027
+ foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
4028
+ columns: ["connection_id"];
4029
+ isOneToOne: false;
4030
+ referencedRelation: "floriday_connections";
4031
+ referencedColumns: ["id"];
4032
+ }];
4033
+ };
4034
+ floriday_auction_letters_cache: {
4035
+ Row: {
4036
+ auction_letter_code: string;
4037
+ clock_supply_id: string;
4038
+ connection_id: string;
4039
+ content_type: string;
4040
+ fetched_at: string;
4041
+ id: string;
4042
+ storage_path: string;
4043
+ };
4044
+ Insert: {
4045
+ auction_letter_code: string;
4046
+ clock_supply_id: string;
4047
+ connection_id: string;
4048
+ content_type?: string;
4049
+ fetched_at?: string;
4050
+ id?: string;
4051
+ storage_path: string;
4052
+ };
4053
+ Update: {
4054
+ auction_letter_code?: string;
4055
+ clock_supply_id?: string;
4056
+ connection_id?: string;
4057
+ content_type?: string;
4058
+ fetched_at?: string;
4059
+ id?: string;
4060
+ storage_path?: string;
4061
+ };
4062
+ Relationships: [{
4063
+ foreignKeyName: "floriday_auction_letters_cache_connection_id_fkey";
4064
+ columns: ["connection_id"];
4065
+ isOneToOne: false;
4066
+ referencedRelation: "floriday_connections";
4067
+ referencedColumns: ["id"];
4068
+ }];
4069
+ };
4070
+ floriday_auto_fulfillment_log: {
4071
+ Row: {
4072
+ attempts: number;
4073
+ connection_id: string;
4074
+ created_at: string;
4075
+ error: string | null;
3650
4076
  fulfillment_order_id: string | null;
3651
4077
  id: string;
3652
4078
  last_attempt_at: string | null;
@@ -4103,27 +4529,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4103
4529
  referencedColumns: ["id"];
4104
4530
  }];
4105
4531
  };
4106
- floriday_continuous_stock_cache: {
4107
- Row: {
4108
- connection_id: string;
4109
- fetched_at: string;
4110
- number_of_pieces: number;
4111
- trade_item_id: string;
4112
- };
4113
- Insert: {
4114
- connection_id: string;
4115
- fetched_at?: string;
4116
- number_of_pieces?: number;
4117
- trade_item_id: string;
4118
- };
4119
- Update: {
4120
- connection_id?: string;
4121
- fetched_at?: string;
4122
- number_of_pieces?: number;
4123
- trade_item_id?: string;
4124
- };
4125
- Relationships: [];
4126
- };
4127
4532
  floriday_continuous_stock_queue: {
4128
4533
  Row: {
4129
4534
  attempts: number;
@@ -4899,8 +5304,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4899
5304
  Row: {
4900
5305
  buyer_organization_id: string | null;
4901
5306
  connection_id: string;
4902
- controlled_at: string | null;
4903
- controlled_by: string | null;
4904
5307
  created_at: string;
4905
5308
  data: import("./types").Json;
4906
5309
  floriday_id: string;
@@ -4912,8 +5315,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4912
5315
  Insert: {
4913
5316
  buyer_organization_id?: string | null;
4914
5317
  connection_id: string;
4915
- controlled_at?: string | null;
4916
- controlled_by?: string | null;
4917
5318
  created_at?: string;
4918
5319
  data: import("./types").Json;
4919
5320
  floriday_id: string;
@@ -4925,8 +5326,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4925
5326
  Update: {
4926
5327
  buyer_organization_id?: string | null;
4927
5328
  connection_id?: string;
4928
- controlled_at?: string | null;
4929
- controlled_by?: string | null;
4930
5329
  created_at?: string;
4931
5330
  data?: import("./types").Json;
4932
5331
  floriday_id?: string;
@@ -5108,45 +5507,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5108
5507
  referencedColumns: ["id"];
5109
5508
  }];
5110
5509
  };
5111
- floriday_trade_settings_customers_cache: {
5112
- Row: {
5113
- connection_id: string;
5114
- data: import("./types").Json;
5115
- fetched_at: string;
5116
- floriday_id: string;
5117
- id: string;
5118
- is_deleted: boolean;
5119
- sequence_number: number;
5120
- updated_at: string;
5121
- };
5122
- Insert: {
5123
- connection_id: string;
5124
- data: import("./types").Json;
5125
- fetched_at?: string;
5126
- floriday_id: string;
5127
- id?: string;
5128
- is_deleted?: boolean;
5129
- sequence_number?: number;
5130
- updated_at?: string;
5131
- };
5132
- Update: {
5133
- connection_id?: string;
5134
- data?: import("./types").Json;
5135
- fetched_at?: string;
5136
- floriday_id?: string;
5137
- id?: string;
5138
- is_deleted?: boolean;
5139
- sequence_number?: number;
5140
- updated_at?: string;
5141
- };
5142
- Relationships: [{
5143
- foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
5144
- columns: ["connection_id"];
5145
- isOneToOne: false;
5146
- referencedRelation: "floriday_connections";
5147
- referencedColumns: ["id"];
5148
- }];
5149
- };
5150
5510
  floriday_trips_cache: {
5151
5511
  Row: {
5152
5512
  carrier_organization_id: string | null;
@@ -5195,27 +5555,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5195
5555
  referencedColumns: ["id"];
5196
5556
  }];
5197
5557
  };
5198
- floriday_vbn_required_characteristics: {
5199
- Row: {
5200
- required_codes: string[];
5201
- updated_at: string;
5202
- updated_by: string | null;
5203
- vbn_code: string;
5204
- };
5205
- Insert: {
5206
- required_codes?: string[];
5207
- updated_at?: string;
5208
- updated_by?: string | null;
5209
- vbn_code: string;
5210
- };
5211
- Update: {
5212
- required_codes?: string[];
5213
- updated_at?: string;
5214
- updated_by?: string | null;
5215
- vbn_code?: string;
5216
- };
5217
- Relationships: [];
5218
- };
5219
5558
  floriday_warehouses_cache: {
5220
5559
  Row: {
5221
5560
  connection_id: string;
@@ -5696,135 +6035,417 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5696
6035
  };
5697
6036
  Relationships: [];
5698
6037
  };
5699
- local_customer_agreements: {
6038
+ itk_contact_persons: {
5700
6039
  Row: {
5701
- base_price: number | null;
5702
6040
  created_at: string;
5703
- currency: string;
5704
6041
  customer_id: string;
6042
+ email: string | null;
5705
6043
  id: string;
5706
- min_quantity: number;
5707
- net_price: number;
5708
- notes: string | null;
5709
- product_category_id: string | null;
5710
- product_id: string | null;
6044
+ name: string;
6045
+ phone: string | null;
6046
+ role: string | null;
5711
6047
  updated_at: string;
5712
- valid_from: string | null;
5713
- valid_until: string | null;
5714
6048
  };
5715
6049
  Insert: {
5716
- base_price?: number | null;
5717
6050
  created_at?: string;
5718
- currency?: string;
5719
6051
  customer_id: string;
6052
+ email?: string | null;
5720
6053
  id?: string;
5721
- min_quantity?: number;
5722
- net_price: number;
5723
- notes?: string | null;
5724
- product_category_id?: string | null;
5725
- product_id?: string | null;
6054
+ name: string;
6055
+ phone?: string | null;
6056
+ role?: string | null;
5726
6057
  updated_at?: string;
5727
- valid_from?: string | null;
5728
- valid_until?: string | null;
5729
6058
  };
5730
6059
  Update: {
5731
- base_price?: number | null;
5732
6060
  created_at?: string;
5733
- currency?: string;
5734
6061
  customer_id?: string;
6062
+ email?: string | null;
5735
6063
  id?: string;
5736
- min_quantity?: number;
5737
- net_price?: number;
5738
- notes?: string | null;
5739
- product_category_id?: string | null;
5740
- product_id?: string | null;
6064
+ name?: string;
6065
+ phone?: string | null;
6066
+ role?: string | null;
5741
6067
  updated_at?: string;
5742
- valid_from?: string | null;
5743
- valid_until?: string | null;
5744
6068
  };
5745
6069
  Relationships: [{
5746
- foreignKeyName: "local_customer_agreements_customer_id_fkey";
6070
+ foreignKeyName: "itk_contact_persons_customer_id_fkey";
5747
6071
  columns: ["customer_id"];
5748
6072
  isOneToOne: false;
5749
- referencedRelation: "customers";
5750
- referencedColumns: ["id"];
5751
- }, {
5752
- foreignKeyName: "local_customer_agreements_product_category_id_fkey";
5753
- columns: ["product_category_id"];
5754
- isOneToOne: false;
5755
- referencedRelation: "product_categories";
5756
- referencedColumns: ["id"];
5757
- }, {
5758
- foreignKeyName: "local_customer_agreements_product_id_fkey";
5759
- columns: ["product_id"];
5760
- isOneToOne: false;
5761
- referencedRelation: "products";
6073
+ referencedRelation: "itk_customers";
5762
6074
  referencedColumns: ["id"];
5763
6075
  }];
5764
6076
  };
5765
- local_customer_price_groups: {
6077
+ itk_customer_dynamic_values: {
5766
6078
  Row: {
5767
6079
  created_at: string;
5768
- currency: string;
5769
6080
  customer_id: string;
5770
- discount_type: string;
5771
- discount_value: number;
6081
+ field_id: string;
5772
6082
  id: string;
5773
- min_quantity: number;
5774
- notes: string | null;
5775
- product_category_id: string | null;
5776
- product_id: string | null;
5777
6083
  updated_at: string;
5778
- valid_from: string | null;
5779
- valid_until: string | null;
6084
+ value: string | null;
5780
6085
  };
5781
6086
  Insert: {
5782
6087
  created_at?: string;
5783
- currency?: string;
5784
6088
  customer_id: string;
5785
- discount_type: string;
5786
- discount_value: number;
6089
+ field_id: string;
5787
6090
  id?: string;
5788
- min_quantity?: number;
5789
- notes?: string | null;
5790
- product_category_id?: string | null;
5791
- product_id?: string | null;
5792
6091
  updated_at?: string;
5793
- valid_from?: string | null;
5794
- valid_until?: string | null;
6092
+ value?: string | null;
5795
6093
  };
5796
6094
  Update: {
5797
6095
  created_at?: string;
5798
- currency?: string;
5799
6096
  customer_id?: string;
5800
- discount_type?: string;
5801
- discount_value?: number;
6097
+ field_id?: string;
5802
6098
  id?: string;
5803
- min_quantity?: number;
5804
- notes?: string | null;
5805
- product_category_id?: string | null;
5806
- product_id?: string | null;
5807
6099
  updated_at?: string;
5808
- valid_from?: string | null;
5809
- valid_until?: string | null;
6100
+ value?: string | null;
5810
6101
  };
5811
6102
  Relationships: [{
5812
- foreignKeyName: "local_customer_price_groups_customer_id_fkey";
6103
+ foreignKeyName: "itk_customer_dynamic_values_customer_id_fkey";
5813
6104
  columns: ["customer_id"];
5814
6105
  isOneToOne: false;
5815
- referencedRelation: "customers";
5816
- referencedColumns: ["id"];
5817
- }, {
5818
- foreignKeyName: "local_customer_price_groups_product_category_id_fkey";
5819
- columns: ["product_category_id"];
5820
- isOneToOne: false;
5821
- referencedRelation: "product_categories";
6106
+ referencedRelation: "itk_customers";
5822
6107
  referencedColumns: ["id"];
5823
6108
  }, {
5824
- foreignKeyName: "local_customer_price_groups_product_id_fkey";
5825
- columns: ["product_id"];
6109
+ foreignKeyName: "itk_customer_dynamic_values_field_id_fkey";
6110
+ columns: ["field_id"];
5826
6111
  isOneToOne: false;
5827
- referencedRelation: "products";
6112
+ referencedRelation: "itk_dynamic_fields";
6113
+ referencedColumns: ["id"];
6114
+ }];
6115
+ };
6116
+ itk_customer_notes: {
6117
+ Row: {
6118
+ body: string;
6119
+ created_at: string;
6120
+ created_by: string | null;
6121
+ customer_id: string;
6122
+ id: string;
6123
+ note_type: string;
6124
+ updated_at: string;
6125
+ };
6126
+ Insert: {
6127
+ body: string;
6128
+ created_at?: string;
6129
+ created_by?: string | null;
6130
+ customer_id: string;
6131
+ id?: string;
6132
+ note_type?: string;
6133
+ updated_at?: string;
6134
+ };
6135
+ Update: {
6136
+ body?: string;
6137
+ created_at?: string;
6138
+ created_by?: string | null;
6139
+ customer_id?: string;
6140
+ id?: string;
6141
+ note_type?: string;
6142
+ updated_at?: string;
6143
+ };
6144
+ Relationships: [{
6145
+ foreignKeyName: "itk_customer_notes_customer_id_fkey";
6146
+ columns: ["customer_id"];
6147
+ isOneToOne: false;
6148
+ referencedRelation: "itk_customers";
6149
+ referencedColumns: ["id"];
6150
+ }];
6151
+ };
6152
+ itk_customers: {
6153
+ Row: {
6154
+ billing_city: string | null;
6155
+ billing_postcode: string | null;
6156
+ billing_street: string | null;
6157
+ created_at: string;
6158
+ general_email: string | null;
6159
+ general_phone: string | null;
6160
+ id: string;
6161
+ legacy_customer_id: string | null;
6162
+ name: string;
6163
+ segment: Database["public"]["Enums"]["itk_customer_segment"];
6164
+ updated_at: string;
6165
+ };
6166
+ Insert: {
6167
+ billing_city?: string | null;
6168
+ billing_postcode?: string | null;
6169
+ billing_street?: string | null;
6170
+ created_at?: string;
6171
+ general_email?: string | null;
6172
+ general_phone?: string | null;
6173
+ id?: string;
6174
+ legacy_customer_id?: string | null;
6175
+ name: string;
6176
+ segment?: Database["public"]["Enums"]["itk_customer_segment"];
6177
+ updated_at?: string;
6178
+ };
6179
+ Update: {
6180
+ billing_city?: string | null;
6181
+ billing_postcode?: string | null;
6182
+ billing_street?: string | null;
6183
+ created_at?: string;
6184
+ general_email?: string | null;
6185
+ general_phone?: string | null;
6186
+ id?: string;
6187
+ legacy_customer_id?: string | null;
6188
+ name?: string;
6189
+ segment?: Database["public"]["Enums"]["itk_customer_segment"];
6190
+ updated_at?: string;
6191
+ };
6192
+ Relationships: [{
6193
+ foreignKeyName: "itk_customers_legacy_customer_id_fkey";
6194
+ columns: ["legacy_customer_id"];
6195
+ isOneToOne: false;
6196
+ referencedRelation: "customers";
6197
+ referencedColumns: ["id"];
6198
+ }];
6199
+ };
6200
+ itk_dynamic_fields: {
6201
+ Row: {
6202
+ created_at: string;
6203
+ field_name: string;
6204
+ field_type: Database["public"]["Enums"]["itk_dynamic_field_type"];
6205
+ id: string;
6206
+ options: import("./types").Json;
6207
+ sort_order: number;
6208
+ updated_at: string;
6209
+ };
6210
+ Insert: {
6211
+ created_at?: string;
6212
+ field_name: string;
6213
+ field_type?: Database["public"]["Enums"]["itk_dynamic_field_type"];
6214
+ id?: string;
6215
+ options?: import("./types").Json;
6216
+ sort_order?: number;
6217
+ updated_at?: string;
6218
+ };
6219
+ Update: {
6220
+ created_at?: string;
6221
+ field_name?: string;
6222
+ field_type?: Database["public"]["Enums"]["itk_dynamic_field_type"];
6223
+ id?: string;
6224
+ options?: import("./types").Json;
6225
+ sort_order?: number;
6226
+ updated_at?: string;
6227
+ };
6228
+ Relationships: [];
6229
+ };
6230
+ itk_work_locations: {
6231
+ Row: {
6232
+ city: string | null;
6233
+ created_at: string;
6234
+ customer_id: string;
6235
+ id: string;
6236
+ instructions: string | null;
6237
+ label: string;
6238
+ latitude: number | null;
6239
+ longitude: number | null;
6240
+ postcode: string | null;
6241
+ street: string | null;
6242
+ updated_at: string;
6243
+ };
6244
+ Insert: {
6245
+ city?: string | null;
6246
+ created_at?: string;
6247
+ customer_id: string;
6248
+ id?: string;
6249
+ instructions?: string | null;
6250
+ label: string;
6251
+ latitude?: number | null;
6252
+ longitude?: number | null;
6253
+ postcode?: string | null;
6254
+ street?: string | null;
6255
+ updated_at?: string;
6256
+ };
6257
+ Update: {
6258
+ city?: string | null;
6259
+ created_at?: string;
6260
+ customer_id?: string;
6261
+ id?: string;
6262
+ instructions?: string | null;
6263
+ label?: string;
6264
+ latitude?: number | null;
6265
+ longitude?: number | null;
6266
+ postcode?: string | null;
6267
+ street?: string | null;
6268
+ updated_at?: string;
6269
+ };
6270
+ Relationships: [{
6271
+ foreignKeyName: "itk_work_locations_customer_id_fkey";
6272
+ columns: ["customer_id"];
6273
+ isOneToOne: false;
6274
+ referencedRelation: "itk_customers";
6275
+ referencedColumns: ["id"];
6276
+ }];
6277
+ };
6278
+ leave_requests: {
6279
+ Row: {
6280
+ created_at: string;
6281
+ end_date: string;
6282
+ id: string;
6283
+ reason: string | null;
6284
+ start_date: string;
6285
+ status: string;
6286
+ tenant_id: string;
6287
+ updated_at: string;
6288
+ user_id: string;
6289
+ };
6290
+ Insert: {
6291
+ created_at?: string;
6292
+ end_date: string;
6293
+ id?: string;
6294
+ reason?: string | null;
6295
+ start_date: string;
6296
+ status?: string;
6297
+ tenant_id?: string;
6298
+ updated_at?: string;
6299
+ user_id: string;
6300
+ };
6301
+ Update: {
6302
+ created_at?: string;
6303
+ end_date?: string;
6304
+ id?: string;
6305
+ reason?: string | null;
6306
+ start_date?: string;
6307
+ status?: string;
6308
+ tenant_id?: string;
6309
+ updated_at?: string;
6310
+ user_id?: string;
6311
+ };
6312
+ Relationships: [{
6313
+ foreignKeyName: "leave_requests_user_id_fkey";
6314
+ columns: ["user_id"];
6315
+ isOneToOne: false;
6316
+ referencedRelation: "monteurs";
6317
+ referencedColumns: ["id"];
6318
+ }];
6319
+ };
6320
+ local_customer_agreements: {
6321
+ Row: {
6322
+ base_price: number | null;
6323
+ created_at: string;
6324
+ currency: string;
6325
+ customer_id: string;
6326
+ id: string;
6327
+ min_quantity: number;
6328
+ net_price: number;
6329
+ notes: string | null;
6330
+ product_category_id: string | null;
6331
+ product_id: string | null;
6332
+ updated_at: string;
6333
+ valid_from: string | null;
6334
+ valid_until: string | null;
6335
+ };
6336
+ Insert: {
6337
+ base_price?: number | null;
6338
+ created_at?: string;
6339
+ currency?: string;
6340
+ customer_id: string;
6341
+ id?: string;
6342
+ min_quantity?: number;
6343
+ net_price: number;
6344
+ notes?: string | null;
6345
+ product_category_id?: string | null;
6346
+ product_id?: string | null;
6347
+ updated_at?: string;
6348
+ valid_from?: string | null;
6349
+ valid_until?: string | null;
6350
+ };
6351
+ Update: {
6352
+ base_price?: number | null;
6353
+ created_at?: string;
6354
+ currency?: string;
6355
+ customer_id?: string;
6356
+ id?: string;
6357
+ min_quantity?: number;
6358
+ net_price?: number;
6359
+ notes?: string | null;
6360
+ product_category_id?: string | null;
6361
+ product_id?: string | null;
6362
+ updated_at?: string;
6363
+ valid_from?: string | null;
6364
+ valid_until?: string | null;
6365
+ };
6366
+ Relationships: [{
6367
+ foreignKeyName: "local_customer_agreements_customer_id_fkey";
6368
+ columns: ["customer_id"];
6369
+ isOneToOne: false;
6370
+ referencedRelation: "customers";
6371
+ referencedColumns: ["id"];
6372
+ }, {
6373
+ foreignKeyName: "local_customer_agreements_product_category_id_fkey";
6374
+ columns: ["product_category_id"];
6375
+ isOneToOne: false;
6376
+ referencedRelation: "product_categories";
6377
+ referencedColumns: ["id"];
6378
+ }, {
6379
+ foreignKeyName: "local_customer_agreements_product_id_fkey";
6380
+ columns: ["product_id"];
6381
+ isOneToOne: false;
6382
+ referencedRelation: "products";
6383
+ referencedColumns: ["id"];
6384
+ }];
6385
+ };
6386
+ local_customer_price_groups: {
6387
+ Row: {
6388
+ created_at: string;
6389
+ currency: string;
6390
+ customer_id: string;
6391
+ discount_type: string;
6392
+ discount_value: number;
6393
+ id: string;
6394
+ min_quantity: number;
6395
+ notes: string | null;
6396
+ product_category_id: string | null;
6397
+ product_id: string | null;
6398
+ updated_at: string;
6399
+ valid_from: string | null;
6400
+ valid_until: string | null;
6401
+ };
6402
+ Insert: {
6403
+ created_at?: string;
6404
+ currency?: string;
6405
+ customer_id: string;
6406
+ discount_type: string;
6407
+ discount_value: number;
6408
+ id?: string;
6409
+ min_quantity?: number;
6410
+ notes?: string | null;
6411
+ product_category_id?: string | null;
6412
+ product_id?: string | null;
6413
+ updated_at?: string;
6414
+ valid_from?: string | null;
6415
+ valid_until?: string | null;
6416
+ };
6417
+ Update: {
6418
+ created_at?: string;
6419
+ currency?: string;
6420
+ customer_id?: string;
6421
+ discount_type?: string;
6422
+ discount_value?: number;
6423
+ id?: string;
6424
+ min_quantity?: number;
6425
+ notes?: string | null;
6426
+ product_category_id?: string | null;
6427
+ product_id?: string | null;
6428
+ updated_at?: string;
6429
+ valid_from?: string | null;
6430
+ valid_until?: string | null;
6431
+ };
6432
+ Relationships: [{
6433
+ foreignKeyName: "local_customer_price_groups_customer_id_fkey";
6434
+ columns: ["customer_id"];
6435
+ isOneToOne: false;
6436
+ referencedRelation: "customers";
6437
+ referencedColumns: ["id"];
6438
+ }, {
6439
+ foreignKeyName: "local_customer_price_groups_product_category_id_fkey";
6440
+ columns: ["product_category_id"];
6441
+ isOneToOne: false;
6442
+ referencedRelation: "product_categories";
6443
+ referencedColumns: ["id"];
6444
+ }, {
6445
+ foreignKeyName: "local_customer_price_groups_product_id_fkey";
6446
+ columns: ["product_id"];
6447
+ isOneToOne: false;
6448
+ referencedRelation: "products";
5828
6449
  referencedColumns: ["id"];
5829
6450
  }];
5830
6451
  };
@@ -6592,60 +7213,66 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6592
7213
  };
6593
7214
  manufacture_products: {
6594
7215
  Row: {
6595
- aantal_te_produceren: number;
6596
7216
  created_at: string;
6597
7217
  description: string | null;
6598
7218
  id: string;
6599
7219
  is_active: boolean;
6600
- location_id: string | null;
6601
7220
  name: string;
6602
- partij_nummer: string | null;
6603
- photos: import("./types").Json;
6604
7221
  produced_stock: number;
6605
7222
  product_code: string;
6606
7223
  tenant_id: string;
6607
- unit: string;
6608
7224
  updated_at: string;
6609
7225
  };
6610
7226
  Insert: {
6611
- aantal_te_produceren?: number;
6612
7227
  created_at?: string;
6613
7228
  description?: string | null;
6614
7229
  id?: string;
6615
7230
  is_active?: boolean;
6616
- location_id?: string | null;
6617
7231
  name: string;
6618
- partij_nummer?: string | null;
6619
- photos?: import("./types").Json;
6620
7232
  produced_stock?: number;
6621
7233
  product_code: string;
6622
7234
  tenant_id: string;
6623
- unit?: string;
6624
7235
  updated_at?: string;
6625
7236
  };
6626
7237
  Update: {
6627
- aantal_te_produceren?: number;
6628
7238
  created_at?: string;
6629
7239
  description?: string | null;
6630
7240
  id?: string;
6631
7241
  is_active?: boolean;
6632
- location_id?: string | null;
6633
7242
  name?: string;
6634
- partij_nummer?: string | null;
6635
- photos?: import("./types").Json;
6636
7243
  produced_stock?: number;
6637
7244
  product_code?: string;
6638
7245
  tenant_id?: string;
6639
- unit?: string;
6640
7246
  updated_at?: string;
6641
7247
  };
6642
- Relationships: [{
6643
- foreignKeyName: "manufacture_products_location_id_fkey";
6644
- columns: ["location_id"];
6645
- isOneToOne: false;
6646
- referencedRelation: "locations";
6647
- referencedColumns: ["id"];
6648
- }];
7248
+ Relationships: [];
7249
+ };
7250
+ module_permissions: {
7251
+ Row: {
7252
+ created_at: string;
7253
+ id: string;
7254
+ module_id: string;
7255
+ permission: string;
7256
+ role: Database["public"]["Enums"]["app_role"];
7257
+ updated_at: string;
7258
+ };
7259
+ Insert: {
7260
+ created_at?: string;
7261
+ id?: string;
7262
+ module_id: string;
7263
+ permission: string;
7264
+ role: Database["public"]["Enums"]["app_role"];
7265
+ updated_at?: string;
7266
+ };
7267
+ Update: {
7268
+ created_at?: string;
7269
+ id?: string;
7270
+ module_id?: string;
7271
+ permission?: string;
7272
+ role?: Database["public"]["Enums"]["app_role"];
7273
+ updated_at?: string;
7274
+ };
7275
+ Relationships: [];
6649
7276
  };
6650
7277
  monteurs: {
6651
7278
  Row: {
@@ -7964,6 +8591,78 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7964
8591
  };
7965
8592
  Relationships: [];
7966
8593
  };
8594
+ planning_item_assistants: {
8595
+ Row: {
8596
+ created_at: string;
8597
+ created_by: string | null;
8598
+ monteur_id: string;
8599
+ planning_item_id: string;
8600
+ };
8601
+ Insert: {
8602
+ created_at?: string;
8603
+ created_by?: string | null;
8604
+ monteur_id: string;
8605
+ planning_item_id: string;
8606
+ };
8607
+ Update: {
8608
+ created_at?: string;
8609
+ created_by?: string | null;
8610
+ monteur_id?: string;
8611
+ planning_item_id?: string;
8612
+ };
8613
+ Relationships: [{
8614
+ foreignKeyName: "planning_item_assistants_planning_item_id_fkey";
8615
+ columns: ["planning_item_id"];
8616
+ isOneToOne: false;
8617
+ referencedRelation: "planning_items";
8618
+ referencedColumns: ["id"];
8619
+ }];
8620
+ };
8621
+ planning_items: {
8622
+ Row: {
8623
+ assigned_monteur_id: string;
8624
+ created_at: string;
8625
+ created_by: string | null;
8626
+ end_at: string;
8627
+ id: string;
8628
+ notes: string | null;
8629
+ start_at: string;
8630
+ status: Database["public"]["Enums"]["planning_item_status"];
8631
+ updated_at: string;
8632
+ werkbon_id: string;
8633
+ };
8634
+ Insert: {
8635
+ assigned_monteur_id: string;
8636
+ created_at?: string;
8637
+ created_by?: string | null;
8638
+ end_at: string;
8639
+ id?: string;
8640
+ notes?: string | null;
8641
+ start_at: string;
8642
+ status?: Database["public"]["Enums"]["planning_item_status"];
8643
+ updated_at?: string;
8644
+ werkbon_id: string;
8645
+ };
8646
+ Update: {
8647
+ assigned_monteur_id?: string;
8648
+ created_at?: string;
8649
+ created_by?: string | null;
8650
+ end_at?: string;
8651
+ id?: string;
8652
+ notes?: string | null;
8653
+ start_at?: string;
8654
+ status?: Database["public"]["Enums"]["planning_item_status"];
8655
+ updated_at?: string;
8656
+ werkbon_id?: string;
8657
+ };
8658
+ Relationships: [{
8659
+ foreignKeyName: "planning_items_werkbon_id_fkey";
8660
+ columns: ["werkbon_id"];
8661
+ isOneToOne: false;
8662
+ referencedRelation: "werkbonnen";
8663
+ referencedColumns: ["id"];
8664
+ }];
8665
+ };
7967
8666
  product_bom_items: {
7968
8667
  Row: {
7969
8668
  component_product_id: string | null;
@@ -8305,8 +9004,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8305
9004
  crates_per_layer: number;
8306
9005
  created_at: string;
8307
9006
  custom_fields: import("./types").Json;
8308
- floriday_active: boolean;
8309
- floriday_payload: import("./types").Json;
8310
9007
  floriday_trade_item_id: string | null;
8311
9008
  id: string;
8312
9009
  image_url: string | null;
@@ -8324,8 +9021,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8324
9021
  trade_item_key: string | null;
8325
9022
  unit: string;
8326
9023
  updated_at: string;
8327
- vat_code: string | null;
8328
- vat_rate: number | null;
8329
9024
  weight: string | null;
8330
9025
  };
8331
9026
  Insert: {
@@ -8335,8 +9030,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8335
9030
  crates_per_layer?: number;
8336
9031
  created_at?: string;
8337
9032
  custom_fields?: import("./types").Json;
8338
- floriday_active?: boolean;
8339
- floriday_payload?: import("./types").Json;
8340
9033
  floriday_trade_item_id?: string | null;
8341
9034
  id?: string;
8342
9035
  image_url?: string | null;
@@ -8354,8 +9047,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8354
9047
  trade_item_key?: string | null;
8355
9048
  unit?: string;
8356
9049
  updated_at?: string;
8357
- vat_code?: string | null;
8358
- vat_rate?: number | null;
8359
9050
  weight?: string | null;
8360
9051
  };
8361
9052
  Update: {
@@ -8365,8 +9056,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8365
9056
  crates_per_layer?: number;
8366
9057
  created_at?: string;
8367
9058
  custom_fields?: import("./types").Json;
8368
- floriday_active?: boolean;
8369
- floriday_payload?: import("./types").Json;
8370
9059
  floriday_trade_item_id?: string | null;
8371
9060
  id?: string;
8372
9061
  image_url?: string | null;
@@ -8384,8 +9073,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8384
9073
  trade_item_key?: string | null;
8385
9074
  unit?: string;
8386
9075
  updated_at?: string;
8387
- vat_code?: string | null;
8388
- vat_rate?: number | null;
8389
9076
  weight?: string | null;
8390
9077
  };
8391
9078
  Relationships: [];
@@ -8393,6 +9080,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8393
9080
  profiles: {
8394
9081
  Row: {
8395
9082
  address: string | null;
9083
+ avatar_url: string | null;
8396
9084
  created_at: string;
8397
9085
  display_name: string | null;
8398
9086
  email: string | null;
@@ -8404,6 +9092,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8404
9092
  };
8405
9093
  Insert: {
8406
9094
  address?: string | null;
9095
+ avatar_url?: string | null;
8407
9096
  created_at?: string;
8408
9097
  display_name?: string | null;
8409
9098
  email?: string | null;
@@ -8415,6 +9104,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8415
9104
  };
8416
9105
  Update: {
8417
9106
  address?: string | null;
9107
+ avatar_url?: string | null;
8418
9108
  created_at?: string;
8419
9109
  display_name?: string | null;
8420
9110
  email?: string | null;
@@ -9279,7 +9969,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9279
9969
  order_id: string | null;
9280
9970
  order_item_id: string | null;
9281
9971
  order_source: string | null;
9282
- parent_trade_item_key: string | null;
9283
9972
  physical_after: number | null;
9284
9973
  physical_before: number | null;
9285
9974
  production_batch_id: string | null;
@@ -9298,7 +9987,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9298
9987
  order_id?: string | null;
9299
9988
  order_item_id?: string | null;
9300
9989
  order_source?: string | null;
9301
- parent_trade_item_key?: string | null;
9302
9990
  physical_after?: number | null;
9303
9991
  physical_before?: number | null;
9304
9992
  production_batch_id?: string | null;
@@ -9317,7 +10005,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9317
10005
  order_id?: string | null;
9318
10006
  order_item_id?: string | null;
9319
10007
  order_source?: string | null;
9320
- parent_trade_item_key?: string | null;
9321
10008
  physical_after?: number | null;
9322
10009
  physical_before?: number | null;
9323
10010
  production_batch_id?: string | null;
@@ -9407,18 +10094,39 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9407
10094
  updated_at?: string;
9408
10095
  };
9409
10096
  Update: {
9410
- address?: string | null;
9411
- column_mappings?: import("./types").Json | null;
9412
- contact_person?: string | null;
10097
+ address?: string | null;
10098
+ column_mappings?: import("./types").Json | null;
10099
+ contact_person?: string | null;
10100
+ created_at?: string;
10101
+ default_product_type?: string;
10102
+ email?: string | null;
10103
+ id?: string;
10104
+ imported_file_name?: string | null;
10105
+ name?: string;
10106
+ notes?: string | null;
10107
+ phone?: string | null;
10108
+ updated_at?: string;
10109
+ };
10110
+ Relationships: [];
10111
+ };
10112
+ technician_rates: {
10113
+ Row: {
10114
+ created_at: string;
10115
+ hourly_rate_cents: number;
10116
+ updated_at: string;
10117
+ user_id: string;
10118
+ };
10119
+ Insert: {
10120
+ created_at?: string;
10121
+ hourly_rate_cents?: number;
10122
+ updated_at?: string;
10123
+ user_id: string;
10124
+ };
10125
+ Update: {
9413
10126
  created_at?: string;
9414
- default_product_type?: string;
9415
- email?: string | null;
9416
- id?: string;
9417
- imported_file_name?: string | null;
9418
- name?: string;
9419
- notes?: string | null;
9420
- phone?: string | null;
10127
+ hourly_rate_cents?: number;
9421
10128
  updated_at?: string;
10129
+ user_id?: string;
9422
10130
  };
9423
10131
  Relationships: [];
9424
10132
  };
@@ -9821,7 +10529,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9821
10529
  twinfield_connections: {
9822
10530
  Row: {
9823
10531
  access_token: string | null;
9824
- client_id: string | null;
10532
+ client_id: string;
9825
10533
  client_secret: string | null;
9826
10534
  cluster_uri: string | null;
9827
10535
  company_code: string | null;
@@ -9833,7 +10541,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9833
10541
  is_active: boolean;
9834
10542
  label: string | null;
9835
10543
  office_code: string | null;
9836
- redirect_uri: string | null;
10544
+ redirect_uri: string;
9837
10545
  refresh_token: string | null;
9838
10546
  token_expires_at: string | null;
9839
10547
  updated_at: string;
@@ -9841,7 +10549,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9841
10549
  };
9842
10550
  Insert: {
9843
10551
  access_token?: string | null;
9844
- client_id?: string | null;
10552
+ client_id: string;
9845
10553
  client_secret?: string | null;
9846
10554
  cluster_uri?: string | null;
9847
10555
  company_code?: string | null;
@@ -9853,7 +10561,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9853
10561
  is_active?: boolean;
9854
10562
  label?: string | null;
9855
10563
  office_code?: string | null;
9856
- redirect_uri?: string | null;
10564
+ redirect_uri: string;
9857
10565
  refresh_token?: string | null;
9858
10566
  token_expires_at?: string | null;
9859
10567
  updated_at?: string;
@@ -9861,7 +10569,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9861
10569
  };
9862
10570
  Update: {
9863
10571
  access_token?: string | null;
9864
- client_id?: string | null;
10572
+ client_id?: string;
9865
10573
  client_secret?: string | null;
9866
10574
  cluster_uri?: string | null;
9867
10575
  company_code?: string | null;
@@ -9873,7 +10581,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9873
10581
  is_active?: boolean;
9874
10582
  label?: string | null;
9875
10583
  office_code?: string | null;
9876
- redirect_uri?: string | null;
10584
+ redirect_uri?: string;
9877
10585
  refresh_token?: string | null;
9878
10586
  token_expires_at?: string | null;
9879
10587
  updated_at?: string;
@@ -9933,6 +10641,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9933
10641
  country: string | null;
9934
10642
  created_at: string;
9935
10643
  email: string | null;
10644
+ external_group_key: string | null;
9936
10645
  id: string;
9937
10646
  last_synced_at: string | null;
9938
10647
  name: string;
@@ -9951,6 +10660,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9951
10660
  country?: string | null;
9952
10661
  created_at?: string;
9953
10662
  email?: string | null;
10663
+ external_group_key?: string | null;
9954
10664
  id?: string;
9955
10665
  last_synced_at?: string | null;
9956
10666
  name: string;
@@ -9969,6 +10679,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9969
10679
  country?: string | null;
9970
10680
  created_at?: string;
9971
10681
  email?: string | null;
10682
+ external_group_key?: string | null;
9972
10683
  id?: string;
9973
10684
  last_synced_at?: string | null;
9974
10685
  name?: string;
@@ -10178,6 +10889,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10178
10889
  twinfield_invoice_settings: {
10179
10890
  Row: {
10180
10891
  created_at: string;
10892
+ debtor_gl_account: string;
10893
+ default_credit_invoice_type: string | null;
10181
10894
  default_gl_account: string;
10182
10895
  default_invoice_type: string;
10183
10896
  default_payment_term_days: number;
@@ -10186,11 +10899,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10186
10899
  invoice_enabled_fo: boolean;
10187
10900
  invoice_enabled_ho: boolean;
10188
10901
  invoice_enabled_mo: boolean;
10902
+ payment_gl_account: string;
10903
+ payment_journal_code: string;
10189
10904
  updated_at: string;
10190
10905
  user_id: string;
10191
10906
  };
10192
10907
  Insert: {
10193
10908
  created_at?: string;
10909
+ debtor_gl_account?: string;
10910
+ default_credit_invoice_type?: string | null;
10194
10911
  default_gl_account?: string;
10195
10912
  default_invoice_type?: string;
10196
10913
  default_payment_term_days?: number;
@@ -10199,11 +10916,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10199
10916
  invoice_enabled_fo?: boolean;
10200
10917
  invoice_enabled_ho?: boolean;
10201
10918
  invoice_enabled_mo?: boolean;
10919
+ payment_gl_account?: string;
10920
+ payment_journal_code?: string;
10202
10921
  updated_at?: string;
10203
10922
  user_id: string;
10204
10923
  };
10205
10924
  Update: {
10206
10925
  created_at?: string;
10926
+ debtor_gl_account?: string;
10927
+ default_credit_invoice_type?: string | null;
10207
10928
  default_gl_account?: string;
10208
10929
  default_invoice_type?: string;
10209
10930
  default_payment_term_days?: number;
@@ -10212,6 +10933,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10212
10933
  invoice_enabled_fo?: boolean;
10213
10934
  invoice_enabled_ho?: boolean;
10214
10935
  invoice_enabled_mo?: boolean;
10936
+ payment_gl_account?: string;
10937
+ payment_journal_code?: string;
10215
10938
  updated_at?: string;
10216
10939
  user_id?: string;
10217
10940
  };
@@ -10432,43 +11155,49 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10432
11155
  };
10433
11156
  twinfield_push_queue: {
10434
11157
  Row: {
11158
+ action: string;
10435
11159
  attempts: number;
10436
11160
  connection_id: string;
10437
11161
  created_at: string;
11162
+ customer_id: string | null;
10438
11163
  external_id: string | null;
10439
11164
  id: string;
10440
11165
  idempotency_key: string;
10441
11166
  last_error: string | null;
10442
11167
  next_attempt_at: string;
10443
- office_code: string;
11168
+ office_code: string | null;
10444
11169
  payload: import("./types").Json;
10445
11170
  status: string;
10446
11171
  updated_at: string;
10447
11172
  };
10448
11173
  Insert: {
11174
+ action?: string;
10449
11175
  attempts?: number;
10450
11176
  connection_id: string;
10451
11177
  created_at?: string;
11178
+ customer_id?: string | null;
10452
11179
  external_id?: string | null;
10453
11180
  id?: string;
10454
11181
  idempotency_key: string;
10455
11182
  last_error?: string | null;
10456
11183
  next_attempt_at?: string;
10457
- office_code: string;
11184
+ office_code?: string | null;
10458
11185
  payload: import("./types").Json;
10459
11186
  status?: string;
10460
11187
  updated_at?: string;
10461
11188
  };
10462
11189
  Update: {
11190
+ action?: string;
10463
11191
  attempts?: number;
10464
11192
  connection_id?: string;
10465
11193
  created_at?: string;
11194
+ customer_id?: string | null;
10466
11195
  external_id?: string | null;
10467
11196
  id?: string;
10468
11197
  idempotency_key?: string;
10469
11198
  last_error?: string | null;
10470
11199
  next_attempt_at?: string;
10471
- office_code?: string;
11200
+ office_code?: string | null;
10472
11201
  payload?: import("./types").Json;
10473
11202
  status?: string;
10474
11203
  updated_at?: string;
@@ -10479,6 +11208,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10479
11208
  isOneToOne: false;
10480
11209
  referencedRelation: "twinfield_connections";
10481
11210
  referencedColumns: ["id"];
11211
+ }, {
11212
+ foreignKeyName: "twinfield_push_queue_customer_id_fkey";
11213
+ columns: ["customer_id"];
11214
+ isOneToOne: false;
11215
+ referencedRelation: "customers";
11216
+ referencedColumns: ["id"];
10482
11217
  }];
10483
11218
  };
10484
11219
  twinfield_request_metrics: {
@@ -10666,93 +11401,441 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10666
11401
  size_bytes: number | null;
10667
11402
  };
10668
11403
  Insert: {
10669
- action?: string;
10670
- attempt_number?: number;
10671
- caller?: string;
10672
- client_user_id?: string | null;
10673
- content_type?: string | null;
11404
+ action?: string;
11405
+ attempt_number?: number;
11406
+ caller?: string;
11407
+ client_user_id?: string | null;
11408
+ content_type?: string | null;
11409
+ created_at?: string;
11410
+ environment: string;
11411
+ error_message?: string | null;
11412
+ filename?: string | null;
11413
+ id?: string;
11414
+ idempotency_key?: string | null;
11415
+ module?: string;
11416
+ path: string;
11417
+ reference_id?: string | null;
11418
+ request_body_hash?: string | null;
11419
+ request_timestamp?: number | null;
11420
+ response_content_type?: string | null;
11421
+ response_status?: number | null;
11422
+ size_bytes?: number | null;
11423
+ };
11424
+ Update: {
11425
+ action?: string;
11426
+ attempt_number?: number;
11427
+ caller?: string;
11428
+ client_user_id?: string | null;
11429
+ content_type?: string | null;
11430
+ created_at?: string;
11431
+ environment?: string;
11432
+ error_message?: string | null;
11433
+ filename?: string | null;
11434
+ id?: string;
11435
+ idempotency_key?: string | null;
11436
+ module?: string;
11437
+ path?: string;
11438
+ reference_id?: string | null;
11439
+ request_body_hash?: string | null;
11440
+ request_timestamp?: number | null;
11441
+ response_content_type?: string | null;
11442
+ response_status?: number | null;
11443
+ size_bytes?: number | null;
11444
+ };
11445
+ Relationships: [];
11446
+ };
11447
+ voorraad_publish_attempts: {
11448
+ Row: {
11449
+ action: string;
11450
+ connection_id: string | null;
11451
+ created_at: string;
11452
+ error: string | null;
11453
+ gateway_attempt_id: string | null;
11454
+ gateway_status: number | null;
11455
+ id: string;
11456
+ intent: string;
11457
+ ok: boolean;
11458
+ request_summary: import("./types").Json | null;
11459
+ trade_item_id: string | null;
11460
+ user_id: string;
11461
+ };
11462
+ Insert: {
11463
+ action: string;
11464
+ connection_id?: string | null;
11465
+ created_at?: string;
11466
+ error?: string | null;
11467
+ gateway_attempt_id?: string | null;
11468
+ gateway_status?: number | null;
11469
+ id?: string;
11470
+ intent: string;
11471
+ ok: boolean;
11472
+ request_summary?: import("./types").Json | null;
11473
+ trade_item_id?: string | null;
11474
+ user_id: string;
11475
+ };
11476
+ Update: {
11477
+ action?: string;
11478
+ connection_id?: string | null;
11479
+ created_at?: string;
11480
+ error?: string | null;
11481
+ gateway_attempt_id?: string | null;
11482
+ gateway_status?: number | null;
11483
+ id?: string;
11484
+ intent?: string;
11485
+ ok?: boolean;
11486
+ request_summary?: import("./types").Json | null;
11487
+ trade_item_id?: string | null;
11488
+ user_id?: string;
11489
+ };
11490
+ Relationships: [];
11491
+ };
11492
+ werkbon_package_ai_rules: {
11493
+ Row: {
11494
+ active: boolean;
11495
+ case_sensitive: boolean;
11496
+ created_at: string;
11497
+ id: string;
11498
+ package_id: string;
11499
+ priority: number;
11500
+ rule_type: string;
11501
+ updated_at: string;
11502
+ value: string;
11503
+ };
11504
+ Insert: {
11505
+ active?: boolean;
11506
+ case_sensitive?: boolean;
11507
+ created_at?: string;
11508
+ id?: string;
11509
+ package_id: string;
11510
+ priority?: number;
11511
+ rule_type: string;
11512
+ updated_at?: string;
11513
+ value: string;
11514
+ };
11515
+ Update: {
11516
+ active?: boolean;
11517
+ case_sensitive?: boolean;
11518
+ created_at?: string;
11519
+ id?: string;
11520
+ package_id?: string;
11521
+ priority?: number;
11522
+ rule_type?: string;
11523
+ updated_at?: string;
11524
+ value?: string;
11525
+ };
11526
+ Relationships: [{
11527
+ foreignKeyName: "werkbon_package_ai_rules_package_id_fkey";
11528
+ columns: ["package_id"];
11529
+ isOneToOne: false;
11530
+ referencedRelation: "werkbon_packages";
11531
+ referencedColumns: ["id"];
11532
+ }];
11533
+ };
11534
+ werkbon_package_categories: {
11535
+ Row: {
11536
+ active: boolean;
11537
+ created_at: string;
11538
+ id: string;
11539
+ kleur: string | null;
11540
+ naam: string;
11541
+ sort_order: number;
11542
+ updated_at: string;
11543
+ };
11544
+ Insert: {
11545
+ active?: boolean;
11546
+ created_at?: string;
11547
+ id?: string;
11548
+ kleur?: string | null;
11549
+ naam: string;
11550
+ sort_order?: number;
11551
+ updated_at?: string;
11552
+ };
11553
+ Update: {
11554
+ active?: boolean;
11555
+ created_at?: string;
11556
+ id?: string;
11557
+ kleur?: string | null;
11558
+ naam?: string;
11559
+ sort_order?: number;
11560
+ updated_at?: string;
11561
+ };
11562
+ Relationships: [];
11563
+ };
11564
+ werkbon_package_lines: {
11565
+ Row: {
11566
+ created_at: string;
11567
+ created_by: string | null;
11568
+ id: string;
11569
+ package_id: string;
11570
+ quantity: number;
11571
+ unit_price_cents_snapshot: number;
11572
+ werkbon_id: string;
11573
+ };
11574
+ Insert: {
11575
+ created_at?: string;
11576
+ created_by?: string | null;
11577
+ id?: string;
11578
+ package_id: string;
11579
+ quantity?: number;
11580
+ unit_price_cents_snapshot?: number;
11581
+ werkbon_id: string;
11582
+ };
11583
+ Update: {
11584
+ created_at?: string;
11585
+ created_by?: string | null;
11586
+ id?: string;
11587
+ package_id?: string;
11588
+ quantity?: number;
11589
+ unit_price_cents_snapshot?: number;
11590
+ werkbon_id?: string;
11591
+ };
11592
+ Relationships: [{
11593
+ foreignKeyName: "werkbon_package_lines_package_id_fkey";
11594
+ columns: ["package_id"];
11595
+ isOneToOne: false;
11596
+ referencedRelation: "werkbon_packages";
11597
+ referencedColumns: ["id"];
11598
+ }, {
11599
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
11600
+ columns: ["werkbon_id"];
11601
+ isOneToOne: false;
11602
+ referencedRelation: "werkbonnen";
11603
+ referencedColumns: ["id"];
11604
+ }];
11605
+ };
11606
+ werkbon_packages: {
11607
+ Row: {
11608
+ active: boolean;
11609
+ ai_tags: string[];
11610
+ category_id: string | null;
11611
+ code: string;
11612
+ created_at: string;
11613
+ default_quantity: number;
11614
+ description: string | null;
11615
+ duration_minutes: number | null;
11616
+ id: string;
11617
+ mandaat_type: string | null;
11618
+ name: string;
11619
+ sort_order: number;
11620
+ unit_price_cents: number;
11621
+ updated_at: string;
11622
+ };
11623
+ Insert: {
11624
+ active?: boolean;
11625
+ ai_tags?: string[];
11626
+ category_id?: string | null;
11627
+ code: string;
11628
+ created_at?: string;
11629
+ default_quantity?: number;
11630
+ description?: string | null;
11631
+ duration_minutes?: number | null;
11632
+ id?: string;
11633
+ mandaat_type?: string | null;
11634
+ name: string;
11635
+ sort_order?: number;
11636
+ unit_price_cents?: number;
11637
+ updated_at?: string;
11638
+ };
11639
+ Update: {
11640
+ active?: boolean;
11641
+ ai_tags?: string[];
11642
+ category_id?: string | null;
11643
+ code?: string;
11644
+ created_at?: string;
11645
+ default_quantity?: number;
11646
+ description?: string | null;
11647
+ duration_minutes?: number | null;
11648
+ id?: string;
11649
+ mandaat_type?: string | null;
11650
+ name?: string;
11651
+ sort_order?: number;
11652
+ unit_price_cents?: number;
11653
+ updated_at?: string;
11654
+ };
11655
+ Relationships: [{
11656
+ foreignKeyName: "werkbon_packages_category_id_fkey";
11657
+ columns: ["category_id"];
11658
+ isOneToOne: false;
11659
+ referencedRelation: "werkbon_package_categories";
11660
+ referencedColumns: ["id"];
11661
+ }];
11662
+ };
11663
+ werkbon_photos: {
11664
+ Row: {
11665
+ created_at: string;
11666
+ id: string;
11667
+ storage_path: string;
11668
+ user_id: string;
11669
+ werkbon_id: string;
11670
+ };
11671
+ Insert: {
10674
11672
  created_at?: string;
10675
- environment: string;
10676
- error_message?: string | null;
10677
- filename?: string | null;
10678
11673
  id?: string;
10679
- idempotency_key?: string | null;
10680
- module?: string;
10681
- path: string;
10682
- reference_id?: string | null;
10683
- request_body_hash?: string | null;
10684
- request_timestamp?: number | null;
10685
- response_content_type?: string | null;
10686
- response_status?: number | null;
10687
- size_bytes?: number | null;
11674
+ storage_path: string;
11675
+ user_id: string;
11676
+ werkbon_id: string;
10688
11677
  };
10689
11678
  Update: {
10690
- action?: string;
10691
- attempt_number?: number;
10692
- caller?: string;
10693
- client_user_id?: string | null;
10694
- content_type?: string | null;
10695
11679
  created_at?: string;
10696
- environment?: string;
10697
- error_message?: string | null;
10698
- filename?: string | null;
10699
11680
  id?: string;
10700
- idempotency_key?: string | null;
10701
- module?: string;
10702
- path?: string;
10703
- reference_id?: string | null;
10704
- request_body_hash?: string | null;
10705
- request_timestamp?: number | null;
10706
- response_content_type?: string | null;
10707
- response_status?: number | null;
10708
- size_bytes?: number | null;
11681
+ storage_path?: string;
11682
+ user_id?: string;
11683
+ werkbon_id?: string;
10709
11684
  };
10710
- Relationships: [];
11685
+ Relationships: [{
11686
+ foreignKeyName: "werkbon_photos_werkbon_id_fkey";
11687
+ columns: ["werkbon_id"];
11688
+ isOneToOne: false;
11689
+ referencedRelation: "werkbonnen";
11690
+ referencedColumns: ["id"];
11691
+ }];
10711
11692
  };
10712
- voorraad_publish_attempts: {
11693
+ werkbon_time_logs: {
10713
11694
  Row: {
10714
- action: string;
10715
- connection_id: string | null;
11695
+ activity: string;
10716
11696
  created_at: string;
10717
- error: string | null;
10718
- gateway_attempt_id: string | null;
10719
- gateway_status: number | null;
11697
+ ended_at: string | null;
10720
11698
  id: string;
10721
- intent: string;
10722
- ok: boolean;
10723
- request_summary: import("./types").Json | null;
10724
- trade_item_id: string | null;
11699
+ started_at: string;
10725
11700
  user_id: string;
11701
+ werkbon_id: string;
10726
11702
  };
10727
11703
  Insert: {
10728
- action: string;
10729
- connection_id?: string | null;
11704
+ activity: string;
10730
11705
  created_at?: string;
10731
- error?: string | null;
10732
- gateway_attempt_id?: string | null;
10733
- gateway_status?: number | null;
11706
+ ended_at?: string | null;
10734
11707
  id?: string;
10735
- intent: string;
10736
- ok: boolean;
10737
- request_summary?: import("./types").Json | null;
10738
- trade_item_id?: string | null;
11708
+ started_at?: string;
10739
11709
  user_id: string;
11710
+ werkbon_id: string;
10740
11711
  };
10741
11712
  Update: {
10742
- action?: string;
10743
- connection_id?: string | null;
11713
+ activity?: string;
10744
11714
  created_at?: string;
10745
- error?: string | null;
10746
- gateway_attempt_id?: string | null;
10747
- gateway_status?: number | null;
11715
+ ended_at?: string | null;
10748
11716
  id?: string;
10749
- intent?: string;
10750
- ok?: boolean;
10751
- request_summary?: import("./types").Json | null;
10752
- trade_item_id?: string | null;
11717
+ started_at?: string;
10753
11718
  user_id?: string;
11719
+ werkbon_id?: string;
10754
11720
  };
10755
- Relationships: [];
11721
+ Relationships: [{
11722
+ foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
11723
+ columns: ["werkbon_id"];
11724
+ isOneToOne: false;
11725
+ referencedRelation: "werkbonnen";
11726
+ referencedColumns: ["id"];
11727
+ }];
11728
+ };
11729
+ werkbonnen: {
11730
+ Row: {
11731
+ assigned_user_id: string | null;
11732
+ budget_mandate_cents: number;
11733
+ complaint_description: string | null;
11734
+ created_at: string;
11735
+ created_by: string | null;
11736
+ customer_id: string | null;
11737
+ externe_referentie: string | null;
11738
+ first_time_fix: boolean | null;
11739
+ id: string;
11740
+ internal_notes: string | null;
11741
+ parent_werkbon_id: string | null;
11742
+ parsed_payload: import("./types").Json | null;
11743
+ planning_status: string;
11744
+ project_number: string | null;
11745
+ room_number: string | null;
11746
+ scheduled_end_time: string | null;
11747
+ scheduled_start_time: string | null;
11748
+ sequence_number: number;
11749
+ source_email_meta: import("./types").Json | null;
11750
+ source_mailbox_message_id: string | null;
11751
+ source_pdf_path: string | null;
11752
+ source_type: string;
11753
+ status: string;
11754
+ technician_id: string | null;
11755
+ technician_notes: string | null;
11756
+ technician_notes_raw: string | null;
11757
+ technician_task_description: string | null;
11758
+ updated_at: string;
11759
+ version: number;
11760
+ work_address: string | null;
11761
+ };
11762
+ Insert: {
11763
+ assigned_user_id?: string | null;
11764
+ budget_mandate_cents?: number;
11765
+ complaint_description?: string | null;
11766
+ created_at?: string;
11767
+ created_by?: string | null;
11768
+ customer_id?: string | null;
11769
+ externe_referentie?: string | null;
11770
+ first_time_fix?: boolean | null;
11771
+ id?: string;
11772
+ internal_notes?: string | null;
11773
+ parent_werkbon_id?: string | null;
11774
+ parsed_payload?: import("./types").Json | null;
11775
+ planning_status?: string;
11776
+ project_number?: string | null;
11777
+ room_number?: string | null;
11778
+ scheduled_end_time?: string | null;
11779
+ scheduled_start_time?: string | null;
11780
+ sequence_number: number;
11781
+ source_email_meta?: import("./types").Json | null;
11782
+ source_mailbox_message_id?: string | null;
11783
+ source_pdf_path?: string | null;
11784
+ source_type?: string;
11785
+ status?: string;
11786
+ technician_id?: string | null;
11787
+ technician_notes?: string | null;
11788
+ technician_notes_raw?: string | null;
11789
+ technician_task_description?: string | null;
11790
+ updated_at?: string;
11791
+ version?: number;
11792
+ work_address?: string | null;
11793
+ };
11794
+ Update: {
11795
+ assigned_user_id?: string | null;
11796
+ budget_mandate_cents?: number;
11797
+ complaint_description?: string | null;
11798
+ created_at?: string;
11799
+ created_by?: string | null;
11800
+ customer_id?: string | null;
11801
+ externe_referentie?: string | null;
11802
+ first_time_fix?: boolean | null;
11803
+ id?: string;
11804
+ internal_notes?: string | null;
11805
+ parent_werkbon_id?: string | null;
11806
+ parsed_payload?: import("./types").Json | null;
11807
+ planning_status?: string;
11808
+ project_number?: string | null;
11809
+ room_number?: string | null;
11810
+ scheduled_end_time?: string | null;
11811
+ scheduled_start_time?: string | null;
11812
+ sequence_number?: number;
11813
+ source_email_meta?: import("./types").Json | null;
11814
+ source_mailbox_message_id?: string | null;
11815
+ source_pdf_path?: string | null;
11816
+ source_type?: string;
11817
+ status?: string;
11818
+ technician_id?: string | null;
11819
+ technician_notes?: string | null;
11820
+ technician_notes_raw?: string | null;
11821
+ technician_task_description?: string | null;
11822
+ updated_at?: string;
11823
+ version?: number;
11824
+ work_address?: string | null;
11825
+ };
11826
+ Relationships: [{
11827
+ foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
11828
+ columns: ["parent_werkbon_id"];
11829
+ isOneToOne: false;
11830
+ referencedRelation: "werkbonnen";
11831
+ referencedColumns: ["id"];
11832
+ }, {
11833
+ foreignKeyName: "werkbonnen_source_mailbox_message_id_fkey";
11834
+ columns: ["source_mailbox_message_id"];
11835
+ isOneToOne: false;
11836
+ referencedRelation: "mailbox_messages";
11837
+ referencedColumns: ["id"];
11838
+ }];
10756
11839
  };
10757
11840
  work_order_monteurs: {
10758
11841
  Row: {
@@ -10924,6 +12007,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10924
12007
  created_at: string | null;
10925
12008
  created_by: string | null;
10926
12009
  display_name: string | null;
12010
+ graph_subscription_expires_at: string | null;
12011
+ graph_subscription_id: string | null;
10927
12012
  has_access_token: boolean | null;
10928
12013
  has_client_id: boolean | null;
10929
12014
  has_client_secret: boolean | null;
@@ -10941,6 +12026,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10941
12026
  oauth_mode: string | null;
10942
12027
  provider: string | null;
10943
12028
  purpose_assignments: import("./types").Json | null;
12029
+ realtime_mode: string | null;
10944
12030
  scopes: string[] | null;
10945
12031
  smtp_host: string | null;
10946
12032
  smtp_port: number | null;
@@ -10955,6 +12041,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10955
12041
  created_at?: string | null;
10956
12042
  created_by?: string | null;
10957
12043
  display_name?: string | null;
12044
+ graph_subscription_expires_at?: string | null;
12045
+ graph_subscription_id?: string | null;
10958
12046
  has_access_token?: never;
10959
12047
  has_client_id?: never;
10960
12048
  has_client_secret?: never;
@@ -10972,6 +12060,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10972
12060
  oauth_mode?: string | null;
10973
12061
  provider?: string | null;
10974
12062
  purpose_assignments?: import("./types").Json | null;
12063
+ realtime_mode?: string | null;
10975
12064
  scopes?: string[] | null;
10976
12065
  smtp_host?: string | null;
10977
12066
  smtp_port?: number | null;
@@ -10986,6 +12075,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10986
12075
  created_at?: string | null;
10987
12076
  created_by?: string | null;
10988
12077
  display_name?: string | null;
12078
+ graph_subscription_expires_at?: string | null;
12079
+ graph_subscription_id?: string | null;
10989
12080
  has_access_token?: never;
10990
12081
  has_client_id?: never;
10991
12082
  has_client_secret?: never;
@@ -11003,6 +12094,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11003
12094
  oauth_mode?: string | null;
11004
12095
  provider?: string | null;
11005
12096
  purpose_assignments?: import("./types").Json | null;
12097
+ realtime_mode?: string | null;
11006
12098
  scopes?: string[] | null;
11007
12099
  smtp_host?: string | null;
11008
12100
  smtp_port?: number | null;
@@ -11113,6 +12205,25 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11113
12205
  };
11114
12206
  Relationships: [];
11115
12207
  };
12208
+ floriday_customer_discounts: {
12209
+ Row: {
12210
+ base_price: number | null;
12211
+ buyer_organization_id: string | null;
12212
+ currency: string | null;
12213
+ discount_type: string | null;
12214
+ discount_value: number | null;
12215
+ min_quantity: number | null;
12216
+ net_price: number | null;
12217
+ product_group_id: string | null;
12218
+ raw: import("./types").Json | null;
12219
+ source: string | null;
12220
+ source_id: string | null;
12221
+ trade_item_id: string | null;
12222
+ valid_from: string | null;
12223
+ valid_until: string | null;
12224
+ };
12225
+ Relationships: [];
12226
+ };
11116
12227
  local_customer_discounts: {
11117
12228
  Row: {
11118
12229
  base_price: number | null;
@@ -11449,6 +12560,21 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11449
12560
  };
11450
12561
  Returns: string;
11451
12562
  };
12563
+ ai_usage_by_module: {
12564
+ Args: {
12565
+ _from: string;
12566
+ _to: string;
12567
+ };
12568
+ Returns: {
12569
+ calls: number;
12570
+ consumer_module_id: string;
12571
+ cost_usd: number;
12572
+ errors: number;
12573
+ input_tokens: number;
12574
+ output_tokens: number;
12575
+ total_tokens: number;
12576
+ }[];
12577
+ };
11452
12578
  apply_stock_consumption: {
11453
12579
  Args: {
11454
12580
  p_order_id: string;
@@ -11540,6 +12666,33 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11540
12666
  };
11541
12667
  Returns: import("./types").Json;
11542
12668
  };
12669
+ claim_twinfield_push_batch: {
12670
+ Args: {
12671
+ _limit?: number;
12672
+ };
12673
+ Returns: {
12674
+ action: string;
12675
+ attempts: number;
12676
+ connection_id: string;
12677
+ created_at: string;
12678
+ customer_id: string | null;
12679
+ external_id: string | null;
12680
+ id: string;
12681
+ idempotency_key: string;
12682
+ last_error: string | null;
12683
+ next_attempt_at: string;
12684
+ office_code: string | null;
12685
+ payload: import("./types").Json;
12686
+ status: string;
12687
+ updated_at: string;
12688
+ }[];
12689
+ SetofOptions: {
12690
+ from: "*";
12691
+ to: "twinfield_push_queue";
12692
+ isOneToOne: false;
12693
+ isSetofReturn: true;
12694
+ };
12695
+ };
11543
12696
  cleanup_old_bookings: {
11544
12697
  Args: never;
11545
12698
  Returns: undefined;
@@ -11598,6 +12751,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11598
12751
  Args: never;
11599
12752
  Returns: string;
11600
12753
  };
12754
+ custom_access_token_hook: {
12755
+ Args: {
12756
+ event: import("./types").Json;
12757
+ };
12758
+ Returns: import("./types").Json;
12759
+ };
11601
12760
  dashboard_alert_counts: {
11602
12761
  Args: never;
11603
12762
  Returns: import("./types").Json;
@@ -11794,6 +12953,19 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11794
12953
  resource: string;
11795
12954
  }[];
11796
12955
  };
12956
+ get_floriday_agreements_active: {
12957
+ Args: {
12958
+ p_on_date?: string;
12959
+ };
12960
+ Returns: {
12961
+ buyer_organization_id: string;
12962
+ data: import("./types").Json;
12963
+ floriday_id: string;
12964
+ status: string;
12965
+ valid_from: string;
12966
+ valid_until: string;
12967
+ }[];
12968
+ };
11797
12969
  get_floriday_clock_supplies_window: {
11798
12970
  Args: {
11799
12971
  p_from: string;
@@ -11954,6 +13126,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11954
13126
  };
11955
13127
  Returns: string;
11956
13128
  };
13129
+ has_module_permission: {
13130
+ Args: {
13131
+ _min: string;
13132
+ _module_id: string;
13133
+ _user_id: string;
13134
+ };
13135
+ Returns: boolean;
13136
+ };
11957
13137
  has_role: {
11958
13138
  Args: {
11959
13139
  _role: Database["public"]["Enums"]["app_role"];
@@ -11961,6 +13141,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11961
13141
  };
11962
13142
  Returns: boolean;
11963
13143
  };
13144
+ has_twinfield_link: {
13145
+ Args: never;
13146
+ Returns: boolean;
13147
+ };
11964
13148
  is_authenticated: {
11965
13149
  Args: never;
11966
13150
  Returns: boolean;
@@ -11975,6 +13159,37 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11975
13159
  };
11976
13160
  Returns: boolean;
11977
13161
  };
13162
+ jwt_has_role: {
13163
+ Args: {
13164
+ _role: Database["public"]["Enums"]["app_role"];
13165
+ };
13166
+ Returns: boolean;
13167
+ };
13168
+ list_monteurs: {
13169
+ Args: never;
13170
+ Returns: {
13171
+ avatar_url: string;
13172
+ display_name: string;
13173
+ email: string;
13174
+ id: string;
13175
+ }[];
13176
+ };
13177
+ list_my_planning_items: {
13178
+ Args: {
13179
+ _from: string;
13180
+ _to: string;
13181
+ };
13182
+ Returns: {
13183
+ assigned_monteur_id: string;
13184
+ end_at: string;
13185
+ id: string;
13186
+ notes: string;
13187
+ role: string;
13188
+ start_at: string;
13189
+ status: Database["public"]["Enums"]["planning_item_status"];
13190
+ werkbon_id: string;
13191
+ }[];
13192
+ };
11978
13193
  local_effective_price: {
11979
13194
  Args: {
11980
13195
  _customer_id: string;
@@ -11991,6 +13206,22 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11991
13206
  source_id: string;
11992
13207
  }[];
11993
13208
  };
13209
+ log_ai_call: {
13210
+ Args: {
13211
+ _consumer_module_id: string;
13212
+ _cost_usd: number;
13213
+ _duration_ms: number;
13214
+ _error_code: string;
13215
+ _error_message: string;
13216
+ _input_tokens: number;
13217
+ _model_slug: string;
13218
+ _output_tokens: number;
13219
+ _provider_slug: string;
13220
+ _status: string;
13221
+ _total_tokens: number;
13222
+ };
13223
+ Returns: string;
13224
+ };
11994
13225
  mark_offer_clicked: {
11995
13226
  Args: {
11996
13227
  p_code: string;
@@ -12042,6 +13273,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12042
13273
  };
12043
13274
  Returns: string;
12044
13275
  };
13276
+ next_twinfield_code: {
13277
+ Args: never;
13278
+ Returns: string;
13279
+ };
12045
13280
  next_work_order_number: {
12046
13281
  Args: {
12047
13282
  p_parent_work_order_id?: string;
@@ -12177,6 +13412,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12177
13412
  };
12178
13413
  Returns: number;
12179
13414
  };
13415
+ reorder_customer_price_groups: {
13416
+ Args: {
13417
+ _ids: string[];
13418
+ };
13419
+ Returns: undefined;
13420
+ };
12180
13421
  reset_floriday_sync_cursor: {
12181
13422
  Args: {
12182
13423
  p_connection_id: string;
@@ -12212,6 +13453,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12212
13453
  };
12213
13454
  Returns: string;
12214
13455
  };
13456
+ retry_twinfield_push: {
13457
+ Args: {
13458
+ _customer_id: string;
13459
+ };
13460
+ Returns: number;
13461
+ };
12215
13462
  reverse_production: {
12216
13463
  Args: {
12217
13464
  p_connection_id?: string;
@@ -12229,6 +13476,20 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12229
13476
  };
12230
13477
  Returns: number;
12231
13478
  };
13479
+ schedule_floriday_agreement_calloffs_sync: {
13480
+ Args: {
13481
+ p_apikey: string;
13482
+ p_url: string;
13483
+ };
13484
+ Returns: number;
13485
+ };
13486
+ schedule_floriday_agreements_sync: {
13487
+ Args: {
13488
+ p_apikey: string;
13489
+ p_url: string;
13490
+ };
13491
+ Returns: number;
13492
+ };
12232
13493
  schedule_floriday_base_items_sync: {
12233
13494
  Args: {
12234
13495
  p_apikey: string;
@@ -12479,6 +13740,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12479
13740
  Args: never;
12480
13741
  Returns: number;
12481
13742
  };
13743
+ set_planning_status: {
13744
+ Args: {
13745
+ _id: string;
13746
+ _status: Database["public"]["Enums"]["planning_item_status"];
13747
+ };
13748
+ Returns: undefined;
13749
+ };
12482
13750
  show_limit: {
12483
13751
  Args: never;
12484
13752
  Returns: number;
@@ -12548,9 +13816,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12548
13816
  };
12549
13817
  };
12550
13818
  Enums: {
12551
- app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
13819
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
12552
13820
  exact_env: "staging" | "live";
12553
13821
  exact_push_status: "pending" | "sent" | "error";
13822
+ itk_customer_segment: "Business" | "Private";
13823
+ itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
13824
+ planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
12554
13825
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
12555
13826
  };
12556
13827
  CompositeTypes: { [_ in never]: never; };