@flowselections/floriday-afhandeling-module 1.0.44 → 1.0.45

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 (63) hide show
  1. package/dist-lib/components/afhandeling/ControlePage.d.ts.map +1 -1
  2. package/dist-lib/components/afhandeling/ControlePage.js +92 -54
  3. package/dist-lib/hooks/useCartIndex.d.ts.map +1 -1
  4. package/dist-lib/hooks/useCartIndex.js +16 -7
  5. package/dist-lib/hooks/useEngineBufferEvents.d.ts +5 -0
  6. package/dist-lib/hooks/useEngineBufferEvents.d.ts.map +1 -1
  7. package/dist-lib/hooks/useEngineBufferEvents.js +18 -13
  8. package/dist-lib/hooks/useEngineTasks.d.ts.map +1 -1
  9. package/dist-lib/hooks/useEngineTasks.js +8 -18
  10. package/dist-lib/hooks/useKnownOrders.d.ts.map +1 -1
  11. package/dist-lib/hooks/useKnownOrders.js +2 -1
  12. package/dist-lib/hooks/useOrderPickDates.d.ts +1 -1
  13. package/dist-lib/hooks/useOrderPickDates.d.ts.map +1 -1
  14. package/dist-lib/hooks/useOrderPickDates.js +5 -3
  15. package/dist-lib/hooks/usePickAgenda.d.ts.map +1 -1
  16. package/dist-lib/hooks/usePickAgenda.js +17 -13
  17. package/dist-lib/hooks/usePickMode.d.ts +8 -2
  18. package/dist-lib/hooks/usePickMode.d.ts.map +1 -1
  19. package/dist-lib/hooks/usePickMode.js +17 -9
  20. package/dist-lib/index.d.ts +1 -2
  21. package/dist-lib/index.d.ts.map +1 -1
  22. package/dist-lib/index.js +1 -33
  23. package/dist-lib/integrations/supabase/auth-middleware.d.ts +3053 -161
  24. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  25. package/dist-lib/integrations/supabase/client.server.d.ts +3053 -161
  26. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  27. package/dist-lib/integrations/supabase/moduleClient.d.ts +2982 -88
  28. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  29. package/dist-lib/integrations/supabase/types.d.ts +3063 -143
  30. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  31. package/dist-lib/lib/afhandelingSettings.functions.d.ts +5798 -14
  32. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/carriers.functions.d.ts +14510 -40
  34. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/cartAssignments.functions.d.ts +14495 -35
  36. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  37. package/dist-lib/lib/cartControl.functions.d.ts +31999 -104
  38. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  39. package/dist-lib/lib/cartControl.functions.js +389 -259
  40. package/dist-lib/lib/deliveryNote.functions.d.ts +3053 -161
  41. package/dist-lib/lib/deliveryNote.functions.d.ts.map +1 -1
  42. package/dist-lib/lib/engineLayouts.functions.d.ts +3053 -161
  43. package/dist-lib/lib/engineLayouts.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/floriday.functions.d.ts +5798 -14
  45. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/orderFulfilment.functions.d.ts +3053 -161
  47. package/dist-lib/lib/orderFulfilment.functions.d.ts.map +1 -1
  48. package/dist-lib/lib/pickDates.functions.d.ts +2985 -88
  49. package/dist-lib/lib/pickDates.functions.d.ts.map +1 -1
  50. package/dist-lib/lib/pickDates.functions.js +30 -3
  51. package/dist-lib/lib/pickMode.d.ts +20 -2
  52. package/dist-lib/lib/pickMode.d.ts.map +1 -1
  53. package/dist-lib/lib/pickMode.js +65 -16
  54. package/dist-lib/lib/realtimeBus.d.ts +20 -0
  55. package/dist-lib/lib/realtimeBus.d.ts.map +1 -0
  56. package/dist-lib/lib/realtimeBus.js +56 -0
  57. package/dist-lib/lib/serverFnError.d.ts +12 -0
  58. package/dist-lib/lib/serverFnError.d.ts.map +1 -1
  59. package/dist-lib/lib/serverFnError.js +48 -1
  60. package/dist-lib/moduleDefinition.d.ts +3 -0
  61. package/dist-lib/moduleDefinition.d.ts.map +1 -0
  62. package/dist-lib/moduleDefinition.js +36 -0
  63. package/package.json +2 -2
@@ -15,6 +15,11 @@ export interface OrderPickDate {
15
15
  /** Vroegst geplande dag van deze order volgens de Engine (YYYY-MM-DD). */
16
16
  firstPlannedDate: string | null;
17
17
  }
18
+ /** Zichtbaar venster; zonder venster valt de correctie terug op een klein bereik. */
19
+ export interface ListOrderPickDatesInput {
20
+ from?: string;
21
+ to?: string;
22
+ }
18
23
  export declare const listOrderPickDates: import("@tanstack/start-client-core").OptionalFetcher<readonly [import("@tanstack/start-client-core").FunctionMiddlewareAfterServer<{}, unknown, undefined, {
19
24
  supabase: SupabaseClient<import("../integrations/supabase/types").Database, "public", "public", {
20
25
  Tables: {
@@ -22,6 +27,7 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
22
27
  Row: {
23
28
  auto_print_delivery_note: boolean;
24
29
  auto_process_paused: boolean;
30
+ control_bulk_max_carts: number;
25
31
  created_at: string;
26
32
  extra_pick_days_with_stickers: number;
27
33
  id: string;
@@ -39,6 +45,7 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
39
45
  Insert: {
40
46
  auto_print_delivery_note?: boolean;
41
47
  auto_process_paused?: boolean;
48
+ control_bulk_max_carts?: number;
42
49
  created_at?: string;
43
50
  extra_pick_days_with_stickers?: number;
44
51
  id?: string;
@@ -56,6 +63,7 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
56
63
  Update: {
57
64
  auto_print_delivery_note?: boolean;
58
65
  auto_process_paused?: boolean;
66
+ control_bulk_max_carts?: number;
59
67
  created_at?: string;
60
68
  extra_pick_days_with_stickers?: number;
61
69
  id?: string;
@@ -1398,6 +1406,7 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
1398
1406
  id: string;
1399
1407
  notes: string | null;
1400
1408
  performed_at: string;
1409
+ request_key: string | null;
1401
1410
  rescheduled_count: number;
1402
1411
  stock_consumed_at: string | null;
1403
1412
  total_carts: number;
@@ -1412,6 +1421,7 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
1412
1421
  id?: string;
1413
1422
  notes?: string | null;
1414
1423
  performed_at?: string;
1424
+ request_key?: string | null;
1415
1425
  rescheduled_count?: number;
1416
1426
  stock_consumed_at?: string | null;
1417
1427
  total_carts?: number;
@@ -1426,6 +1436,7 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
1426
1436
  id?: string;
1427
1437
  notes?: string | null;
1428
1438
  performed_at?: string;
1439
+ request_key?: string | null;
1429
1440
  rescheduled_count?: number;
1430
1441
  stock_consumed_at?: string | null;
1431
1442
  total_carts?: number;
@@ -1438,9 +1449,10 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
1438
1449
  Row: {
1439
1450
  assigned_at: string;
1440
1451
  cart_index: number;
1441
- cart_number: string | null;
1452
+ cart_number: string;
1442
1453
  day_seq: number | null;
1443
1454
  delivered_at: string | null;
1455
+ engine_cart_label: string | null;
1444
1456
  id: string;
1445
1457
  order_id: string;
1446
1458
  order_source: string;
@@ -1450,9 +1462,10 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
1450
1462
  Insert: {
1451
1463
  assigned_at?: string;
1452
1464
  cart_index: number;
1453
- cart_number?: string | null;
1465
+ cart_number: string;
1454
1466
  day_seq?: number | null;
1455
1467
  delivered_at?: string | null;
1468
+ engine_cart_label?: string | null;
1456
1469
  id?: string;
1457
1470
  order_id: string;
1458
1471
  order_source: string;
@@ -1462,9 +1475,10 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
1462
1475
  Update: {
1463
1476
  assigned_at?: string;
1464
1477
  cart_index?: number;
1465
- cart_number?: string | null;
1478
+ cart_number?: string;
1466
1479
  day_seq?: number | null;
1467
1480
  delivered_at?: string | null;
1481
+ engine_cart_label?: string | null;
1468
1482
  id?: string;
1469
1483
  order_id?: string;
1470
1484
  order_source?: string;
@@ -1839,6 +1853,42 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
1839
1853
  };
1840
1854
  Relationships: [];
1841
1855
  };
1856
+ customer_assortment_items: {
1857
+ Row: {
1858
+ created_at: string;
1859
+ customer_key: string;
1860
+ id: string;
1861
+ in_assortment: boolean;
1862
+ manual_override: boolean;
1863
+ source: string;
1864
+ synced_at: string | null;
1865
+ trade_item_key: string;
1866
+ updated_at: string;
1867
+ };
1868
+ Insert: {
1869
+ created_at?: string;
1870
+ customer_key: string;
1871
+ id?: string;
1872
+ in_assortment?: boolean;
1873
+ manual_override?: boolean;
1874
+ source?: string;
1875
+ synced_at?: string | null;
1876
+ trade_item_key: string;
1877
+ updated_at?: string;
1878
+ };
1879
+ Update: {
1880
+ created_at?: string;
1881
+ customer_key?: string;
1882
+ id?: string;
1883
+ in_assortment?: boolean;
1884
+ manual_override?: boolean;
1885
+ source?: string;
1886
+ synced_at?: string | null;
1887
+ trade_item_key?: string;
1888
+ updated_at?: string;
1889
+ };
1890
+ Relationships: [];
1891
+ };
1842
1892
  customer_audit_log: {
1843
1893
  Row: {
1844
1894
  action: string;
@@ -2241,6 +2291,63 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
2241
2291
  };
2242
2292
  Relationships: [];
2243
2293
  };
2294
+ customer_product_stickers: {
2295
+ Row: {
2296
+ content_hash: string | null;
2297
+ created_at: string;
2298
+ customer_key: string;
2299
+ file_name: string;
2300
+ file_path: string;
2301
+ file_size: number | null;
2302
+ floriday_sticker_id: string | null;
2303
+ floriday_synced_at: string | null;
2304
+ height_mm: number | null;
2305
+ id: string;
2306
+ mime_type: string | null;
2307
+ source: string;
2308
+ trade_item_key: string;
2309
+ updated_at: string;
2310
+ uploaded_by: string | null;
2311
+ width_mm: number | null;
2312
+ };
2313
+ Insert: {
2314
+ content_hash?: string | null;
2315
+ created_at?: string;
2316
+ customer_key: string;
2317
+ file_name: string;
2318
+ file_path: string;
2319
+ file_size?: number | null;
2320
+ floriday_sticker_id?: string | null;
2321
+ floriday_synced_at?: string | null;
2322
+ height_mm?: number | null;
2323
+ id?: string;
2324
+ mime_type?: string | null;
2325
+ source?: string;
2326
+ trade_item_key: string;
2327
+ updated_at?: string;
2328
+ uploaded_by?: string | null;
2329
+ width_mm?: number | null;
2330
+ };
2331
+ Update: {
2332
+ content_hash?: string | null;
2333
+ created_at?: string;
2334
+ customer_key?: string;
2335
+ file_name?: string;
2336
+ file_path?: string;
2337
+ file_size?: number | null;
2338
+ floriday_sticker_id?: string | null;
2339
+ floriday_synced_at?: string | null;
2340
+ height_mm?: number | null;
2341
+ id?: string;
2342
+ mime_type?: string | null;
2343
+ source?: string;
2344
+ trade_item_key?: string;
2345
+ updated_at?: string;
2346
+ uploaded_by?: string | null;
2347
+ width_mm?: number | null;
2348
+ };
2349
+ Relationships: [];
2350
+ };
2244
2351
  customer_selected_assortment: {
2245
2352
  Row: {
2246
2353
  article_number: string | null;
@@ -2289,6 +2396,30 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
2289
2396
  referencedColumns: ["id"];
2290
2397
  }];
2291
2398
  };
2399
+ customer_sticker_settings: {
2400
+ Row: {
2401
+ created_at: string;
2402
+ customer_key: string;
2403
+ height_mm: number;
2404
+ updated_at: string;
2405
+ width_mm: number;
2406
+ };
2407
+ Insert: {
2408
+ created_at?: string;
2409
+ customer_key: string;
2410
+ height_mm?: number;
2411
+ updated_at?: string;
2412
+ width_mm?: number;
2413
+ };
2414
+ Update: {
2415
+ created_at?: string;
2416
+ customer_key?: string;
2417
+ height_mm?: number;
2418
+ updated_at?: string;
2419
+ width_mm?: number;
2420
+ };
2421
+ Relationships: [];
2422
+ };
2292
2423
  customer_trade_settings: {
2293
2424
  Row: {
2294
2425
  category: string;
@@ -3614,6 +3745,7 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
3614
3745
  };
3615
3746
  email_auth_outbox: {
3616
3747
  Row: {
3748
+ attachments: import("../integrations/supabase/types").Json;
3617
3749
  attempts: number;
3618
3750
  bcc_addresses: string[];
3619
3751
  cc_addresses: string[];
@@ -3636,6 +3768,7 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
3636
3768
  updated_at: string;
3637
3769
  };
3638
3770
  Insert: {
3771
+ attachments?: import("../integrations/supabase/types").Json;
3639
3772
  attempts?: number;
3640
3773
  bcc_addresses?: string[];
3641
3774
  cc_addresses?: string[];
@@ -3658,6 +3791,7 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
3658
3791
  updated_at?: string;
3659
3792
  };
3660
3793
  Update: {
3794
+ attachments?: import("../integrations/supabase/types").Json;
3661
3795
  attempts?: number;
3662
3796
  bcc_addresses?: string[];
3663
3797
  cc_addresses?: string[];
@@ -5619,6 +5753,102 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
5619
5753
  referencedColumns: ["id"];
5620
5754
  }];
5621
5755
  };
5756
+ floriday_api_log: {
5757
+ Row: {
5758
+ action: string | null;
5759
+ caller: string | null;
5760
+ connection_id: string | null;
5761
+ created_at: string;
5762
+ cursor_from: number | null;
5763
+ direction: string;
5764
+ duration_ms: number | null;
5765
+ environment: string | null;
5766
+ error: string | null;
5767
+ floriday_id: string | null;
5768
+ floriday_reference: string | null;
5769
+ http_status: number;
5770
+ id: string;
5771
+ item_count: number | null;
5772
+ kind: string | null;
5773
+ local_id: string | null;
5774
+ local_reference: string | null;
5775
+ method: string;
5776
+ module: string | null;
5777
+ ok: boolean;
5778
+ path: string;
5779
+ request: import("../integrations/supabase/types").Json | null;
5780
+ resource_type: string | null;
5781
+ response: import("../integrations/supabase/types").Json | null;
5782
+ write_log_id: string | null;
5783
+ };
5784
+ Insert: {
5785
+ action?: string | null;
5786
+ caller?: string | null;
5787
+ connection_id?: string | null;
5788
+ created_at?: string;
5789
+ cursor_from?: number | null;
5790
+ direction: string;
5791
+ duration_ms?: number | null;
5792
+ environment?: string | null;
5793
+ error?: string | null;
5794
+ floriday_id?: string | null;
5795
+ floriday_reference?: string | null;
5796
+ http_status?: number;
5797
+ id?: string;
5798
+ item_count?: number | null;
5799
+ kind?: string | null;
5800
+ local_id?: string | null;
5801
+ local_reference?: string | null;
5802
+ method: string;
5803
+ module?: string | null;
5804
+ ok?: boolean;
5805
+ path: string;
5806
+ request?: import("../integrations/supabase/types").Json | null;
5807
+ resource_type?: string | null;
5808
+ response?: import("../integrations/supabase/types").Json | null;
5809
+ write_log_id?: string | null;
5810
+ };
5811
+ Update: {
5812
+ action?: string | null;
5813
+ caller?: string | null;
5814
+ connection_id?: string | null;
5815
+ created_at?: string;
5816
+ cursor_from?: number | null;
5817
+ direction?: string;
5818
+ duration_ms?: number | null;
5819
+ environment?: string | null;
5820
+ error?: string | null;
5821
+ floriday_id?: string | null;
5822
+ floriday_reference?: string | null;
5823
+ http_status?: number;
5824
+ id?: string;
5825
+ item_count?: number | null;
5826
+ kind?: string | null;
5827
+ local_id?: string | null;
5828
+ local_reference?: string | null;
5829
+ method?: string;
5830
+ module?: string | null;
5831
+ ok?: boolean;
5832
+ path?: string;
5833
+ request?: import("../integrations/supabase/types").Json | null;
5834
+ resource_type?: string | null;
5835
+ response?: import("../integrations/supabase/types").Json | null;
5836
+ write_log_id?: string | null;
5837
+ };
5838
+ Relationships: [{
5839
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
5840
+ columns: ["connection_id"];
5841
+ isOneToOne: false;
5842
+ referencedRelation: "floriday_connections";
5843
+ referencedColumns: ["id"];
5844
+ }, {
5845
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
5846
+ columns: ["write_log_id"];
5847
+ isOneToOne: false;
5848
+ referencedRelation: "floriday_write_log";
5849
+ referencedColumns: ["id"];
5850
+ }];
5851
+ };
5622
5852
  floriday_auction_letters_cache: {
5623
5853
  Row: {
5624
5854
  auction_letter_code: string;
@@ -5826,6 +6056,84 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
5826
6056
  referencedColumns: ["id"];
5827
6057
  }];
5828
6058
  };
6059
+ floriday_catalog_prices_cache: {
6060
+ Row: {
6061
+ connection_id: string;
6062
+ created_at: string;
6063
+ currency: string;
6064
+ id: string;
6065
+ is_deleted: boolean;
6066
+ price: number | null;
6067
+ price_group_id: string | null;
6068
+ price_group_name: string | null;
6069
+ price_type: string;
6070
+ raw: import("../integrations/supabase/types").Json | null;
6071
+ sales_unit: string | null;
6072
+ sequence_number: number;
6073
+ supplier_article_code: string | null;
6074
+ supply_line_id: string;
6075
+ synced_at: string;
6076
+ trade_item_id: string | null;
6077
+ updated_at: string;
6078
+ valid_from: string | null;
6079
+ valid_to: string | null;
6080
+ week: number | null;
6081
+ year: number | null;
6082
+ };
6083
+ Insert: {
6084
+ connection_id: string;
6085
+ created_at?: string;
6086
+ currency?: string;
6087
+ id?: string;
6088
+ is_deleted?: boolean;
6089
+ price?: number | null;
6090
+ price_group_id?: string | null;
6091
+ price_group_name?: string | null;
6092
+ price_type?: string;
6093
+ raw?: import("../integrations/supabase/types").Json | null;
6094
+ sales_unit?: string | null;
6095
+ sequence_number?: number;
6096
+ supplier_article_code?: string | null;
6097
+ supply_line_id: string;
6098
+ synced_at?: string;
6099
+ trade_item_id?: string | null;
6100
+ updated_at?: string;
6101
+ valid_from?: string | null;
6102
+ valid_to?: string | null;
6103
+ week?: number | null;
6104
+ year?: number | null;
6105
+ };
6106
+ Update: {
6107
+ connection_id?: string;
6108
+ created_at?: string;
6109
+ currency?: string;
6110
+ id?: string;
6111
+ is_deleted?: boolean;
6112
+ price?: number | null;
6113
+ price_group_id?: string | null;
6114
+ price_group_name?: string | null;
6115
+ price_type?: string;
6116
+ raw?: import("../integrations/supabase/types").Json | null;
6117
+ sales_unit?: string | null;
6118
+ sequence_number?: number;
6119
+ supplier_article_code?: string | null;
6120
+ supply_line_id?: string;
6121
+ synced_at?: string;
6122
+ trade_item_id?: string | null;
6123
+ updated_at?: string;
6124
+ valid_from?: string | null;
6125
+ valid_to?: string | null;
6126
+ week?: number | null;
6127
+ year?: number | null;
6128
+ };
6129
+ Relationships: [{
6130
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
6131
+ columns: ["connection_id"];
6132
+ isOneToOne: false;
6133
+ referencedRelation: "floriday_connections";
6134
+ referencedColumns: ["id"];
6135
+ }];
6136
+ };
5829
6137
  floriday_clock_presales_cache: {
5830
6138
  Row: {
5831
6139
  buyer_organization_id: string | null;
@@ -6741,6 +7049,69 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
6741
7049
  referencedColumns: ["id"];
6742
7050
  }];
6743
7051
  };
7052
+ floriday_link_templates: {
7053
+ Row: {
7054
+ created_at: string;
7055
+ floriday_url_template: string | null;
7056
+ is_active: boolean;
7057
+ label: string;
7058
+ local_url_template: string | null;
7059
+ resource_type: string;
7060
+ updated_at: string;
7061
+ };
7062
+ Insert: {
7063
+ created_at?: string;
7064
+ floriday_url_template?: string | null;
7065
+ is_active?: boolean;
7066
+ label: string;
7067
+ local_url_template?: string | null;
7068
+ resource_type: string;
7069
+ updated_at?: string;
7070
+ };
7071
+ Update: {
7072
+ created_at?: string;
7073
+ floriday_url_template?: string | null;
7074
+ is_active?: boolean;
7075
+ label?: string;
7076
+ local_url_template?: string | null;
7077
+ resource_type?: string;
7078
+ updated_at?: string;
7079
+ };
7080
+ Relationships: [];
7081
+ };
7082
+ floriday_log_retention: {
7083
+ Row: {
7084
+ created_at: string;
7085
+ direction: string | null;
7086
+ id: string;
7087
+ keep_failed_days: number | null;
7088
+ keep_ok_days: number | null;
7089
+ note: string | null;
7090
+ resource_type: string | null;
7091
+ updated_at: string;
7092
+ };
7093
+ Insert: {
7094
+ created_at?: string;
7095
+ direction?: string | null;
7096
+ id?: string;
7097
+ keep_failed_days?: number | null;
7098
+ keep_ok_days?: number | null;
7099
+ note?: string | null;
7100
+ resource_type?: string | null;
7101
+ updated_at?: string;
7102
+ };
7103
+ Update: {
7104
+ created_at?: string;
7105
+ direction?: string | null;
7106
+ id?: string;
7107
+ keep_failed_days?: number | null;
7108
+ keep_ok_days?: number | null;
7109
+ note?: string | null;
7110
+ resource_type?: string | null;
7111
+ updated_at?: string;
7112
+ };
7113
+ Relationships: [];
7114
+ };
6744
7115
  floriday_logistic_labels_cache: {
6745
7116
  Row: {
6746
7117
  byte_size: number | null;
@@ -8457,15 +8828,56 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
8457
8828
  };
8458
8829
  Relationships: [];
8459
8830
  };
8460
- itk_handover_github_scan: {
8831
+ itk_handover_afspraken: {
8461
8832
  Row: {
8462
- gescand_op: string;
8463
- gevonden: boolean;
8464
- melding: string | null;
8465
- module_id: string | null;
8466
- repo: string;
8833
+ afgesproken_door: string | null;
8834
+ afgesproken_op: string;
8835
+ besluit: string;
8836
+ created_at: string;
8837
+ item: string;
8838
+ modules: string[];
8839
+ sleutel: string;
8840
+ soort: string;
8841
+ updated_at: string;
8842
+ versie_vingerafdruk: string;
8843
+ };
8844
+ Insert: {
8845
+ afgesproken_door?: string | null;
8846
+ afgesproken_op?: string;
8847
+ besluit?: string;
8848
+ created_at?: string;
8849
+ item?: string;
8850
+ modules?: string[];
8851
+ sleutel: string;
8852
+ soort?: string;
8853
+ updated_at?: string;
8854
+ versie_vingerafdruk?: string;
8855
+ };
8856
+ Update: {
8857
+ afgesproken_door?: string | null;
8858
+ afgesproken_op?: string;
8859
+ besluit?: string;
8860
+ created_at?: string;
8861
+ item?: string;
8862
+ modules?: string[];
8863
+ sleutel?: string;
8864
+ soort?: string;
8865
+ updated_at?: string;
8866
+ versie_vingerafdruk?: string;
8867
+ };
8868
+ Relationships: [];
8869
+ };
8870
+ itk_handover_github_scan: {
8871
+ Row: {
8872
+ genegeerd_op: string | null;
8873
+ gescand_op: string;
8874
+ gevonden: boolean;
8875
+ melding: string | null;
8876
+ module_id: string | null;
8877
+ repo: string;
8467
8878
  };
8468
8879
  Insert: {
8880
+ genegeerd_op?: string | null;
8469
8881
  gescand_op?: string;
8470
8882
  gevonden?: boolean;
8471
8883
  melding?: string | null;
@@ -8473,6 +8885,7 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
8473
8885
  repo: string;
8474
8886
  };
8475
8887
  Update: {
8888
+ genegeerd_op?: string | null;
8476
8889
  gescand_op?: string;
8477
8890
  gevonden?: boolean;
8478
8891
  melding?: string | null;
@@ -8481,13 +8894,45 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
8481
8894
  };
8482
8895
  Relationships: [];
8483
8896
  };
8897
+ itk_handover_github_voortgang: {
8898
+ Row: {
8899
+ bijgewerkt_op: string;
8900
+ huidige_repo: string | null;
8901
+ id: boolean;
8902
+ klaar: number;
8903
+ loopt: boolean;
8904
+ totaal: number;
8905
+ };
8906
+ Insert: {
8907
+ bijgewerkt_op?: string;
8908
+ huidige_repo?: string | null;
8909
+ id?: boolean;
8910
+ klaar?: number;
8911
+ loopt?: boolean;
8912
+ totaal?: number;
8913
+ };
8914
+ Update: {
8915
+ bijgewerkt_op?: string;
8916
+ huidige_repo?: string | null;
8917
+ id?: boolean;
8918
+ klaar?: number;
8919
+ loopt?: boolean;
8920
+ totaal?: number;
8921
+ };
8922
+ Relationships: [];
8923
+ };
8484
8924
  itk_handover_module_meta: {
8485
8925
  Row: {
8486
8926
  check_aangevraagd_op: string | null;
8487
8927
  check_nodig: boolean;
8488
8928
  check_reden: string | null;
8489
8929
  created_at: string;
8930
+ md_bron: boolean;
8931
+ md_bron_op: string | null;
8932
+ md_bron_pad: string | null;
8490
8933
  module_id: string;
8934
+ nieuw_gezien: boolean;
8935
+ nieuw_gezien_op: string | null;
8491
8936
  project_url: string | null;
8492
8937
  publicatie_url: string | null;
8493
8938
  updated_at: string;
@@ -8497,7 +8942,12 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
8497
8942
  check_nodig?: boolean;
8498
8943
  check_reden?: string | null;
8499
8944
  created_at?: string;
8945
+ md_bron?: boolean;
8946
+ md_bron_op?: string | null;
8947
+ md_bron_pad?: string | null;
8500
8948
  module_id: string;
8949
+ nieuw_gezien?: boolean;
8950
+ nieuw_gezien_op?: string | null;
8501
8951
  project_url?: string | null;
8502
8952
  publicatie_url?: string | null;
8503
8953
  updated_at?: string;
@@ -8507,13 +8957,45 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
8507
8957
  check_nodig?: boolean;
8508
8958
  check_reden?: string | null;
8509
8959
  created_at?: string;
8960
+ md_bron?: boolean;
8961
+ md_bron_op?: string | null;
8962
+ md_bron_pad?: string | null;
8510
8963
  module_id?: string;
8964
+ nieuw_gezien?: boolean;
8965
+ nieuw_gezien_op?: string | null;
8511
8966
  project_url?: string | null;
8512
8967
  publicatie_url?: string | null;
8513
8968
  updated_at?: string;
8514
8969
  };
8515
8970
  Relationships: [];
8516
8971
  };
8972
+ itk_handover_module_naam: {
8973
+ Row: {
8974
+ bron_repo: string;
8975
+ created_at: string;
8976
+ module_id: string;
8977
+ standaardnaam: string | null;
8978
+ updated_at: string;
8979
+ weergavenaam: string;
8980
+ };
8981
+ Insert: {
8982
+ bron_repo?: string;
8983
+ created_at?: string;
8984
+ module_id: string;
8985
+ standaardnaam?: string | null;
8986
+ updated_at?: string;
8987
+ weergavenaam: string;
8988
+ };
8989
+ Update: {
8990
+ bron_repo?: string;
8991
+ created_at?: string;
8992
+ module_id?: string;
8993
+ standaardnaam?: string | null;
8994
+ updated_at?: string;
8995
+ weergavenaam?: string;
8996
+ };
8997
+ Relationships: [];
8998
+ };
8517
8999
  itk_handover_project_modules: {
8518
9000
  Row: {
8519
9001
  created_at: string;
@@ -8627,6 +9109,7 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
8627
9109
  };
8628
9110
  itk_module_handovers: {
8629
9111
  Row: {
9112
+ bekende_risicos: string[];
8630
9113
  bevindingen: string | null;
8631
9114
  bezit_tabellen: string[];
8632
9115
  bron_commit: string | null;
@@ -8645,6 +9128,7 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
8645
9128
  inhoud_md: string;
8646
9129
  is_actueel: boolean;
8647
9130
  is_gearchiveerd: boolean;
9131
+ laatst_bevestigd_op: string | null;
8648
9132
  laatst_gecontroleerd_op: string | null;
8649
9133
  module_id: string;
8650
9134
  module_titel: string;
@@ -8654,6 +9138,7 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
8654
9138
  versie: number;
8655
9139
  };
8656
9140
  Insert: {
9141
+ bekende_risicos?: string[];
8657
9142
  bevindingen?: string | null;
8658
9143
  bezit_tabellen?: string[];
8659
9144
  bron_commit?: string | null;
@@ -8672,6 +9157,7 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
8672
9157
  inhoud_md: string;
8673
9158
  is_actueel?: boolean;
8674
9159
  is_gearchiveerd?: boolean;
9160
+ laatst_bevestigd_op?: string | null;
8675
9161
  laatst_gecontroleerd_op?: string | null;
8676
9162
  module_id: string;
8677
9163
  module_titel: string;
@@ -8681,6 +9167,7 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
8681
9167
  versie?: number;
8682
9168
  };
8683
9169
  Update: {
9170
+ bekende_risicos?: string[];
8684
9171
  bevindingen?: string | null;
8685
9172
  bezit_tabellen?: string[];
8686
9173
  bron_commit?: string | null;
@@ -8699,6 +9186,7 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
8699
9186
  inhoud_md?: string;
8700
9187
  is_actueel?: boolean;
8701
9188
  is_gearchiveerd?: boolean;
9189
+ laatst_bevestigd_op?: string | null;
8702
9190
  laatst_gecontroleerd_op?: string | null;
8703
9191
  module_id?: string;
8704
9192
  module_titel?: string;
@@ -8907,6 +9395,54 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
8907
9395
  };
8908
9396
  Relationships: [];
8909
9397
  };
9398
+ itk_offerte_werkbon_queue: {
9399
+ Row: {
9400
+ bron_werkbon_id: string | null;
9401
+ created_at: string;
9402
+ foutmelding: string | null;
9403
+ id: string;
9404
+ offerte_id: string;
9405
+ payload: import("../integrations/supabase/types").Json;
9406
+ status: string;
9407
+ updated_at: string;
9408
+ verwerkt_op: string | null;
9409
+ werkbon_id: string | null;
9410
+ werkbon_nummer: string | null;
9411
+ };
9412
+ Insert: {
9413
+ bron_werkbon_id?: string | null;
9414
+ created_at?: string;
9415
+ foutmelding?: string | null;
9416
+ id?: string;
9417
+ offerte_id: string;
9418
+ payload?: import("../integrations/supabase/types").Json;
9419
+ status?: string;
9420
+ updated_at?: string;
9421
+ verwerkt_op?: string | null;
9422
+ werkbon_id?: string | null;
9423
+ werkbon_nummer?: string | null;
9424
+ };
9425
+ Update: {
9426
+ bron_werkbon_id?: string | null;
9427
+ created_at?: string;
9428
+ foutmelding?: string | null;
9429
+ id?: string;
9430
+ offerte_id?: string;
9431
+ payload?: import("../integrations/supabase/types").Json;
9432
+ status?: string;
9433
+ updated_at?: string;
9434
+ verwerkt_op?: string | null;
9435
+ werkbon_id?: string | null;
9436
+ werkbon_nummer?: string | null;
9437
+ };
9438
+ Relationships: [{
9439
+ foreignKeyName: "itk_offerte_werkbon_queue_offerte_id_fkey";
9440
+ columns: ["offerte_id"];
9441
+ isOneToOne: false;
9442
+ referencedRelation: "itk_offertes";
9443
+ referencedColumns: ["id"];
9444
+ }];
9445
+ };
8910
9446
  itk_offertes: {
8911
9447
  Row: {
8912
9448
  ai_generated: boolean;
@@ -10092,6 +10628,36 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
10092
10628
  };
10093
10629
  Relationships: [];
10094
10630
  };
10631
+ logistics_floriday_push_refusals: {
10632
+ Row: {
10633
+ action: string | null;
10634
+ created_at: string;
10635
+ id: string;
10636
+ order_ref: string;
10637
+ reason: string;
10638
+ source_module: string | null;
10639
+ source_shell: string | null;
10640
+ };
10641
+ Insert: {
10642
+ action?: string | null;
10643
+ created_at?: string;
10644
+ id?: string;
10645
+ order_ref: string;
10646
+ reason: string;
10647
+ source_module?: string | null;
10648
+ source_shell?: string | null;
10649
+ };
10650
+ Update: {
10651
+ action?: string | null;
10652
+ created_at?: string;
10653
+ id?: string;
10654
+ order_ref?: string;
10655
+ reason?: string;
10656
+ source_module?: string | null;
10657
+ source_shell?: string | null;
10658
+ };
10659
+ Relationships: [];
10660
+ };
10095
10661
  logistics_floriday_pushes: {
10096
10662
  Row: {
10097
10663
  attempts: number;
@@ -10167,6 +10733,42 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
10167
10733
  };
10168
10734
  Relationships: [];
10169
10735
  };
10736
+ logistics_floriday_status_sends: {
10737
+ Row: {
10738
+ action: string;
10739
+ created_at: string;
10740
+ detail: string | null;
10741
+ http_status: number | null;
10742
+ id: string;
10743
+ ok: boolean;
10744
+ order_ref: string;
10745
+ source_module: string | null;
10746
+ source_shell: string | null;
10747
+ };
10748
+ Insert: {
10749
+ action: string;
10750
+ created_at?: string;
10751
+ detail?: string | null;
10752
+ http_status?: number | null;
10753
+ id?: string;
10754
+ ok?: boolean;
10755
+ order_ref: string;
10756
+ source_module?: string | null;
10757
+ source_shell?: string | null;
10758
+ };
10759
+ Update: {
10760
+ action?: string;
10761
+ created_at?: string;
10762
+ detail?: string | null;
10763
+ http_status?: number | null;
10764
+ id?: string;
10765
+ ok?: boolean;
10766
+ order_ref?: string;
10767
+ source_module?: string | null;
10768
+ source_shell?: string | null;
10769
+ };
10770
+ Relationships: [];
10771
+ };
10170
10772
  logistics_formulas: {
10171
10773
  Row: {
10172
10774
  created_at: string;
@@ -10239,6 +10841,144 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
10239
10841
  };
10240
10842
  Relationships: [];
10241
10843
  };
10844
+ logistics_opening_exceptions: {
10845
+ Row: {
10846
+ closes: string | null;
10847
+ created_at: string;
10848
+ day: string;
10849
+ id: string;
10850
+ is_closed: boolean;
10851
+ note: string | null;
10852
+ opens: string | null;
10853
+ };
10854
+ Insert: {
10855
+ closes?: string | null;
10856
+ created_at?: string;
10857
+ day: string;
10858
+ id?: string;
10859
+ is_closed?: boolean;
10860
+ note?: string | null;
10861
+ opens?: string | null;
10862
+ };
10863
+ Update: {
10864
+ closes?: string | null;
10865
+ created_at?: string;
10866
+ day?: string;
10867
+ id?: string;
10868
+ is_closed?: boolean;
10869
+ note?: string | null;
10870
+ opens?: string | null;
10871
+ };
10872
+ Relationships: [];
10873
+ };
10874
+ logistics_opening_hours: {
10875
+ Row: {
10876
+ closes: string;
10877
+ created_at: string;
10878
+ id: string;
10879
+ is_active: boolean;
10880
+ note: string | null;
10881
+ opens: string;
10882
+ weekday: number;
10883
+ };
10884
+ Insert: {
10885
+ closes: string;
10886
+ created_at?: string;
10887
+ id?: string;
10888
+ is_active?: boolean;
10889
+ note?: string | null;
10890
+ opens: string;
10891
+ weekday: number;
10892
+ };
10893
+ Update: {
10894
+ closes?: string;
10895
+ created_at?: string;
10896
+ id?: string;
10897
+ is_active?: boolean;
10898
+ note?: string | null;
10899
+ opens?: string;
10900
+ weekday?: number;
10901
+ };
10902
+ Relationships: [];
10903
+ };
10904
+ logistics_order_merges: {
10905
+ Row: {
10906
+ group_key: string;
10907
+ id: string;
10908
+ items_moved: number;
10909
+ kept_order_id: string;
10910
+ kept_order_number: string | null;
10911
+ merged_at: string;
10912
+ merged_order_id: string;
10913
+ merged_order_number: string | null;
10914
+ sales_order_id: string | null;
10915
+ };
10916
+ Insert: {
10917
+ group_key: string;
10918
+ id?: string;
10919
+ items_moved?: number;
10920
+ kept_order_id: string;
10921
+ kept_order_number?: string | null;
10922
+ merged_at?: string;
10923
+ merged_order_id: string;
10924
+ merged_order_number?: string | null;
10925
+ sales_order_id?: string | null;
10926
+ };
10927
+ Update: {
10928
+ group_key?: string;
10929
+ id?: string;
10930
+ items_moved?: number;
10931
+ kept_order_id?: string;
10932
+ kept_order_number?: string | null;
10933
+ merged_at?: string;
10934
+ merged_order_id?: string;
10935
+ merged_order_number?: string | null;
10936
+ sales_order_id?: string | null;
10937
+ };
10938
+ Relationships: [];
10939
+ };
10940
+ logistics_pick_data_requests: {
10941
+ Row: {
10942
+ actions: import("../integrations/supabase/types").Json;
10943
+ created_at: string;
10944
+ event_id: string | null;
10945
+ finished_at: string | null;
10946
+ id: string;
10947
+ missing: import("../integrations/supabase/types").Json;
10948
+ order_ref: string;
10949
+ reason: string | null;
10950
+ result: import("../integrations/supabase/types").Json | null;
10951
+ status: string;
10952
+ unit_ref: string | null;
10953
+ };
10954
+ Insert: {
10955
+ actions?: import("../integrations/supabase/types").Json;
10956
+ created_at?: string;
10957
+ event_id?: string | null;
10958
+ finished_at?: string | null;
10959
+ id?: string;
10960
+ missing?: import("../integrations/supabase/types").Json;
10961
+ order_ref: string;
10962
+ reason?: string | null;
10963
+ result?: import("../integrations/supabase/types").Json | null;
10964
+ status?: string;
10965
+ unit_ref?: string | null;
10966
+ };
10967
+ Update: {
10968
+ actions?: import("../integrations/supabase/types").Json;
10969
+ created_at?: string;
10970
+ event_id?: string | null;
10971
+ finished_at?: string | null;
10972
+ id?: string;
10973
+ missing?: import("../integrations/supabase/types").Json;
10974
+ order_ref?: string;
10975
+ reason?: string | null;
10976
+ result?: import("../integrations/supabase/types").Json | null;
10977
+ status?: string;
10978
+ unit_ref?: string | null;
10979
+ };
10980
+ Relationships: [];
10981
+ };
10242
10982
  logistics_pickup_moments: {
10243
10983
  Row: {
10244
10984
  carrier_ref: string | null;
@@ -10275,6 +11015,30 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
10275
11015
  };
10276
11016
  Relationships: [];
10277
11017
  };
11018
+ logistics_plan_locks: {
11019
+ Row: {
11020
+ created_at: string;
11021
+ lock_key: string;
11022
+ locked_until: string;
11023
+ owner: string | null;
11024
+ updated_at: string;
11025
+ };
11026
+ Insert: {
11027
+ created_at?: string;
11028
+ lock_key: string;
11029
+ locked_until: string;
11030
+ owner?: string | null;
11031
+ updated_at?: string;
11032
+ };
11033
+ Update: {
11034
+ created_at?: string;
11035
+ lock_key?: string;
11036
+ locked_until?: string;
11037
+ owner?: string | null;
11038
+ updated_at?: string;
11039
+ };
11040
+ Relationships: [];
11041
+ };
10278
11042
  logistics_plan_queue: {
10279
11043
  Row: {
10280
11044
  attempts: number;
@@ -10698,7 +11462,70 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
10698
11462
  };
10699
11463
  Relationships: [];
10700
11464
  };
10701
- logistics_staff_planning: {
11465
+ logistics_slip_shipping_note: {
11466
+ Row: {
11467
+ attempts: number;
11468
+ batch_key: string | null;
11469
+ cart_id: string | null;
11470
+ created_at: string;
11471
+ error: string | null;
11472
+ error_code: string | null;
11473
+ fulfillment_order_id: string | null;
11474
+ id: string;
11475
+ locked_until: string | null;
11476
+ next_attempt_at: string | null;
11477
+ order_id: string | null;
11478
+ order_number: string | null;
11479
+ print_job_id: string | null;
11480
+ printer_id: string | null;
11481
+ retry_class: string | null;
11482
+ slip_job_id: string;
11483
+ status: string;
11484
+ updated_at: string;
11485
+ };
11486
+ Insert: {
11487
+ attempts?: number;
11488
+ batch_key?: string | null;
11489
+ cart_id?: string | null;
11490
+ created_at?: string;
11491
+ error?: string | null;
11492
+ error_code?: string | null;
11493
+ fulfillment_order_id?: string | null;
11494
+ id?: string;
11495
+ locked_until?: string | null;
11496
+ next_attempt_at?: string | null;
11497
+ order_id?: string | null;
11498
+ order_number?: string | null;
11499
+ print_job_id?: string | null;
11500
+ printer_id?: string | null;
11501
+ retry_class?: string | null;
11502
+ slip_job_id: string;
11503
+ status?: string;
11504
+ updated_at?: string;
11505
+ };
11506
+ Update: {
11507
+ attempts?: number;
11508
+ batch_key?: string | null;
11509
+ cart_id?: string | null;
11510
+ created_at?: string;
11511
+ error?: string | null;
11512
+ error_code?: string | null;
11513
+ fulfillment_order_id?: string | null;
11514
+ id?: string;
11515
+ locked_until?: string | null;
11516
+ next_attempt_at?: string | null;
11517
+ order_id?: string | null;
11518
+ order_number?: string | null;
11519
+ print_job_id?: string | null;
11520
+ printer_id?: string | null;
11521
+ retry_class?: string | null;
11522
+ slip_job_id?: string;
11523
+ status?: string;
11524
+ updated_at?: string;
11525
+ };
11526
+ Relationships: [];
11527
+ };
11528
+ logistics_staff_planning: {
10702
11529
  Row: {
10703
11530
  created_at: string;
10704
11531
  end_time: string;
@@ -11031,6 +11858,264 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
11031
11858
  };
11032
11859
  Relationships: [];
11033
11860
  };
11861
+ logistics_time_settings: {
11862
+ Row: {
11863
+ id: boolean;
11864
+ timezone: string;
11865
+ updated_at: string;
11866
+ };
11867
+ Insert: {
11868
+ id?: boolean;
11869
+ timezone: string;
11870
+ updated_at?: string;
11871
+ };
11872
+ Update: {
11873
+ id?: boolean;
11874
+ timezone?: string;
11875
+ updated_at?: string;
11876
+ };
11877
+ Relationships: [];
11878
+ };
11879
+ logistics_trace_events: {
11880
+ Row: {
11881
+ actor: string | null;
11882
+ attempts: number;
11883
+ calc: import("../integrations/supabase/types").Json | null;
11884
+ cart_ref: string | null;
11885
+ created_at: string;
11886
+ db_action: string | null;
11887
+ db_new: import("../integrations/supabase/types").Json | null;
11888
+ db_old: import("../integrations/supabase/types").Json | null;
11889
+ db_record: string | null;
11890
+ db_table: string | null;
11891
+ decision: string | null;
11892
+ duration_ms: number | null;
11893
+ error: string | null;
11894
+ error_class: string | null;
11895
+ external_action: string | null;
11896
+ external_ref: string | null;
11897
+ external_response: import("../integrations/supabase/types").Json | null;
11898
+ external_status: string | null;
11899
+ external_system: string | null;
11900
+ id: string;
11901
+ input: import("../integrations/supabase/types").Json | null;
11902
+ next_attempt_at: string | null;
11903
+ next_step: string | null;
11904
+ node_id: string | null;
11905
+ order_ref: string | null;
11906
+ order_source: string | null;
11907
+ output: import("../integrations/supabase/types").Json | null;
11908
+ phase: string;
11909
+ reads: import("../integrations/supabase/types").Json | null;
11910
+ reason: string | null;
11911
+ rule: string | null;
11912
+ slip_ref: string | null;
11913
+ status: string;
11914
+ step: string;
11915
+ trace_id: string;
11916
+ values_used: import("../integrations/supabase/types").Json | null;
11917
+ };
11918
+ Insert: {
11919
+ actor?: string | null;
11920
+ attempts?: number;
11921
+ calc?: import("../integrations/supabase/types").Json | null;
11922
+ cart_ref?: string | null;
11923
+ created_at?: string;
11924
+ db_action?: string | null;
11925
+ db_new?: import("../integrations/supabase/types").Json | null;
11926
+ db_old?: import("../integrations/supabase/types").Json | null;
11927
+ db_record?: string | null;
11928
+ db_table?: string | null;
11929
+ decision?: string | null;
11930
+ duration_ms?: number | null;
11931
+ error?: string | null;
11932
+ error_class?: string | null;
11933
+ external_action?: string | null;
11934
+ external_ref?: string | null;
11935
+ external_response?: import("../integrations/supabase/types").Json | null;
11936
+ external_status?: string | null;
11937
+ external_system?: string | null;
11938
+ id?: string;
11939
+ input?: import("../integrations/supabase/types").Json | null;
11940
+ next_attempt_at?: string | null;
11941
+ next_step?: string | null;
11942
+ node_id?: string | null;
11943
+ order_ref?: string | null;
11944
+ order_source?: string | null;
11945
+ output?: import("../integrations/supabase/types").Json | null;
11946
+ phase: string;
11947
+ reads?: import("../integrations/supabase/types").Json | null;
11948
+ reason?: string | null;
11949
+ rule?: string | null;
11950
+ slip_ref?: string | null;
11951
+ status: string;
11952
+ step: string;
11953
+ trace_id?: string;
11954
+ values_used?: import("../integrations/supabase/types").Json | null;
11955
+ };
11956
+ Update: {
11957
+ actor?: string | null;
11958
+ attempts?: number;
11959
+ calc?: import("../integrations/supabase/types").Json | null;
11960
+ cart_ref?: string | null;
11961
+ created_at?: string;
11962
+ db_action?: string | null;
11963
+ db_new?: import("../integrations/supabase/types").Json | null;
11964
+ db_old?: import("../integrations/supabase/types").Json | null;
11965
+ db_record?: string | null;
11966
+ db_table?: string | null;
11967
+ decision?: string | null;
11968
+ duration_ms?: number | null;
11969
+ error?: string | null;
11970
+ error_class?: string | null;
11971
+ external_action?: string | null;
11972
+ external_ref?: string | null;
11973
+ external_response?: import("../integrations/supabase/types").Json | null;
11974
+ external_status?: string | null;
11975
+ external_system?: string | null;
11976
+ id?: string;
11977
+ input?: import("../integrations/supabase/types").Json | null;
11978
+ next_attempt_at?: string | null;
11979
+ next_step?: string | null;
11980
+ node_id?: string | null;
11981
+ order_ref?: string | null;
11982
+ order_source?: string | null;
11983
+ output?: import("../integrations/supabase/types").Json | null;
11984
+ phase?: string;
11985
+ reads?: import("../integrations/supabase/types").Json | null;
11986
+ reason?: string | null;
11987
+ rule?: string | null;
11988
+ slip_ref?: string | null;
11989
+ status?: string;
11990
+ step?: string;
11991
+ trace_id?: string;
11992
+ values_used?: import("../integrations/supabase/types").Json | null;
11993
+ };
11994
+ Relationships: [];
11995
+ };
11996
+ logistics_trace_events_archive: {
11997
+ Row: {
11998
+ actor: string | null;
11999
+ attempts: number;
12000
+ calc: import("../integrations/supabase/types").Json | null;
12001
+ cart_ref: string | null;
12002
+ created_at: string;
12003
+ db_action: string | null;
12004
+ db_new: import("../integrations/supabase/types").Json | null;
12005
+ db_old: import("../integrations/supabase/types").Json | null;
12006
+ db_record: string | null;
12007
+ db_table: string | null;
12008
+ decision: string | null;
12009
+ duration_ms: number | null;
12010
+ error: string | null;
12011
+ error_class: string | null;
12012
+ external_action: string | null;
12013
+ external_ref: string | null;
12014
+ external_response: import("../integrations/supabase/types").Json | null;
12015
+ external_status: string | null;
12016
+ external_system: string | null;
12017
+ id: string;
12018
+ input: import("../integrations/supabase/types").Json | null;
12019
+ next_attempt_at: string | null;
12020
+ next_step: string | null;
12021
+ node_id: string | null;
12022
+ order_ref: string | null;
12023
+ order_source: string | null;
12024
+ output: import("../integrations/supabase/types").Json | null;
12025
+ phase: string;
12026
+ reads: import("../integrations/supabase/types").Json | null;
12027
+ reason: string | null;
12028
+ rule: string | null;
12029
+ slip_ref: string | null;
12030
+ status: string;
12031
+ step: string;
12032
+ superseded_at: string;
12033
+ superseded_reason: string | null;
12034
+ trace_id: string;
12035
+ values_used: import("../integrations/supabase/types").Json | null;
12036
+ };
12037
+ Insert: {
12038
+ actor?: string | null;
12039
+ attempts?: number;
12040
+ calc?: import("../integrations/supabase/types").Json | null;
12041
+ cart_ref?: string | null;
12042
+ created_at?: string;
12043
+ db_action?: string | null;
12044
+ db_new?: import("../integrations/supabase/types").Json | null;
12045
+ db_old?: import("../integrations/supabase/types").Json | null;
12046
+ db_record?: string | null;
12047
+ db_table?: string | null;
12048
+ decision?: string | null;
12049
+ duration_ms?: number | null;
12050
+ error?: string | null;
12051
+ error_class?: string | null;
12052
+ external_action?: string | null;
12053
+ external_ref?: string | null;
12054
+ external_response?: import("../integrations/supabase/types").Json | null;
12055
+ external_status?: string | null;
12056
+ external_system?: string | null;
12057
+ id?: string;
12058
+ input?: import("../integrations/supabase/types").Json | null;
12059
+ next_attempt_at?: string | null;
12060
+ next_step?: string | null;
12061
+ node_id?: string | null;
12062
+ order_ref?: string | null;
12063
+ order_source?: string | null;
12064
+ output?: import("../integrations/supabase/types").Json | null;
12065
+ phase: string;
12066
+ reads?: import("../integrations/supabase/types").Json | null;
12067
+ reason?: string | null;
12068
+ rule?: string | null;
12069
+ slip_ref?: string | null;
12070
+ status: string;
12071
+ step: string;
12072
+ superseded_at?: string;
12073
+ superseded_reason?: string | null;
12074
+ trace_id?: string;
12075
+ values_used?: import("../integrations/supabase/types").Json | null;
12076
+ };
12077
+ Update: {
12078
+ actor?: string | null;
12079
+ attempts?: number;
12080
+ calc?: import("../integrations/supabase/types").Json | null;
12081
+ cart_ref?: string | null;
12082
+ created_at?: string;
12083
+ db_action?: string | null;
12084
+ db_new?: import("../integrations/supabase/types").Json | null;
12085
+ db_old?: import("../integrations/supabase/types").Json | null;
12086
+ db_record?: string | null;
12087
+ db_table?: string | null;
12088
+ decision?: string | null;
12089
+ duration_ms?: number | null;
12090
+ error?: string | null;
12091
+ error_class?: string | null;
12092
+ external_action?: string | null;
12093
+ external_ref?: string | null;
12094
+ external_response?: import("../integrations/supabase/types").Json | null;
12095
+ external_status?: string | null;
12096
+ external_system?: string | null;
12097
+ id?: string;
12098
+ input?: import("../integrations/supabase/types").Json | null;
12099
+ next_attempt_at?: string | null;
12100
+ next_step?: string | null;
12101
+ node_id?: string | null;
12102
+ order_ref?: string | null;
12103
+ order_source?: string | null;
12104
+ output?: import("../integrations/supabase/types").Json | null;
12105
+ phase?: string;
12106
+ reads?: import("../integrations/supabase/types").Json | null;
12107
+ reason?: string | null;
12108
+ rule?: string | null;
12109
+ slip_ref?: string | null;
12110
+ status?: string;
12111
+ step?: string;
12112
+ superseded_at?: string;
12113
+ superseded_reason?: string | null;
12114
+ trace_id?: string;
12115
+ values_used?: import("../integrations/supabase/types").Json | null;
12116
+ };
12117
+ Relationships: [];
12118
+ };
11034
12119
  logistics_variables: {
11035
12120
  Row: {
11036
12121
  created_at: string;
@@ -11178,6 +12263,7 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
11178
12263
  has_attachments: boolean;
11179
12264
  id: string;
11180
12265
  message_id: string | null;
12266
+ preview: string | null;
11181
12267
  profile_id: string | null;
11182
12268
  raw_size: number | null;
11183
12269
  received_at: string | null;
@@ -11201,6 +12287,7 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
11201
12287
  has_attachments?: boolean;
11202
12288
  id?: string;
11203
12289
  message_id?: string | null;
12290
+ preview?: string | null;
11204
12291
  profile_id?: string | null;
11205
12292
  raw_size?: number | null;
11206
12293
  received_at?: string | null;
@@ -11224,6 +12311,7 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
11224
12311
  has_attachments?: boolean;
11225
12312
  id?: string;
11226
12313
  message_id?: string | null;
12314
+ preview?: string | null;
11227
12315
  profile_id?: string | null;
11228
12316
  raw_size?: number | null;
11229
12317
  received_at?: string | null;
@@ -11255,6 +12343,7 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
11255
12343
  };
11256
12344
  mailbox_order_proposals: {
11257
12345
  Row: {
12346
+ ai_ok: boolean | null;
11258
12347
  ai_validation: import("../integrations/supabase/types").Json | null;
11259
12348
  confidence: number | null;
11260
12349
  created_at: string;
@@ -11272,6 +12361,7 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
11272
12361
  updated_at: string;
11273
12362
  };
11274
12363
  Insert: {
12364
+ ai_ok?: boolean | null;
11275
12365
  ai_validation?: import("../integrations/supabase/types").Json | null;
11276
12366
  confidence?: number | null;
11277
12367
  created_at?: string;
@@ -11289,6 +12379,7 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
11289
12379
  updated_at?: string;
11290
12380
  };
11291
12381
  Update: {
12382
+ ai_ok?: boolean | null;
11292
12383
  ai_validation?: import("../integrations/supabase/types").Json | null;
11293
12384
  confidence?: number | null;
11294
12385
  created_at?: string;
@@ -13421,6 +14512,7 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
13421
14512
  customer_name: string;
13422
14513
  deleted_at: string | null;
13423
14514
  delivery_date: string | null;
14515
+ floriday_order_group_key: string | null;
13424
14516
  floriday_sales_order_id: string | null;
13425
14517
  id: string;
13426
14518
  invoice_due_at: string | null;
@@ -13448,6 +14540,7 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
13448
14540
  customer_name?: string;
13449
14541
  deleted_at?: string | null;
13450
14542
  delivery_date?: string | null;
14543
+ floriday_order_group_key?: string | null;
13451
14544
  floriday_sales_order_id?: string | null;
13452
14545
  id?: string;
13453
14546
  invoice_due_at?: string | null;
@@ -13475,6 +14568,7 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
13475
14568
  customer_name?: string;
13476
14569
  deleted_at?: string | null;
13477
14570
  delivery_date?: string | null;
14571
+ floriday_order_group_key?: string | null;
13478
14572
  floriday_sales_order_id?: string | null;
13479
14573
  id?: string;
13480
14574
  invoice_due_at?: string | null;
@@ -13668,6 +14762,27 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
13668
14762
  };
13669
14763
  Relationships: [];
13670
14764
  };
14765
+ pick_buffer_event_cursor: {
14766
+ Row: {
14767
+ created_at: string;
14768
+ id: boolean;
14769
+ last_event_at: string;
14770
+ updated_at: string;
14771
+ };
14772
+ Insert: {
14773
+ created_at?: string;
14774
+ id?: boolean;
14775
+ last_event_at?: string;
14776
+ updated_at?: string;
14777
+ };
14778
+ Update: {
14779
+ created_at?: string;
14780
+ id?: boolean;
14781
+ last_event_at?: string;
14782
+ updated_at?: string;
14783
+ };
14784
+ Relationships: [];
14785
+ };
13671
14786
  pick_countries: {
13672
14787
  Row: {
13673
14788
  active: boolean;
@@ -14754,6 +15869,123 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
14754
15869
  referencedColumns: ["id"];
14755
15870
  }];
14756
15871
  };
15872
+ price_list_rows: {
15873
+ Row: {
15874
+ action: string;
15875
+ created_at: string;
15876
+ id: string;
15877
+ message: string | null;
15878
+ parsed: import("../integrations/supabase/types").Json;
15879
+ price_list_id: string;
15880
+ raw: import("../integrations/supabase/types").Json;
15881
+ row_number: number;
15882
+ supplier_product_id: string | null;
15883
+ };
15884
+ Insert: {
15885
+ action?: string;
15886
+ created_at?: string;
15887
+ id?: string;
15888
+ message?: string | null;
15889
+ parsed?: import("../integrations/supabase/types").Json;
15890
+ price_list_id: string;
15891
+ raw?: import("../integrations/supabase/types").Json;
15892
+ row_number: number;
15893
+ supplier_product_id?: string | null;
15894
+ };
15895
+ Update: {
15896
+ action?: string;
15897
+ created_at?: string;
15898
+ id?: string;
15899
+ message?: string | null;
15900
+ parsed?: import("../integrations/supabase/types").Json;
15901
+ price_list_id?: string;
15902
+ raw?: import("../integrations/supabase/types").Json;
15903
+ row_number?: number;
15904
+ supplier_product_id?: string | null;
15905
+ };
15906
+ Relationships: [{
15907
+ foreignKeyName: "price_list_rows_price_list_id_fkey";
15908
+ columns: ["price_list_id"];
15909
+ isOneToOne: false;
15910
+ referencedRelation: "price_lists";
15911
+ referencedColumns: ["id"];
15912
+ }, {
15913
+ foreignKeyName: "price_list_rows_supplier_product_id_fkey";
15914
+ columns: ["supplier_product_id"];
15915
+ isOneToOne: false;
15916
+ referencedRelation: "supplier_products";
15917
+ referencedColumns: ["id"];
15918
+ }];
15919
+ };
15920
+ price_lists: {
15921
+ Row: {
15922
+ created_at: string;
15923
+ created_by: string | null;
15924
+ file_hash: string | null;
15925
+ file_name: string;
15926
+ file_path: string | null;
15927
+ headers: string[];
15928
+ id: string;
15929
+ preview: import("../integrations/supabase/types").Json;
15930
+ processed_at: string | null;
15931
+ reason: string | null;
15932
+ row_count: number;
15933
+ sheet_name: string | null;
15934
+ source: string;
15935
+ stats: import("../integrations/supabase/types").Json;
15936
+ status: string;
15937
+ supplier_guess: string | null;
15938
+ supplier_id: string | null;
15939
+ updated_at: string;
15940
+ };
15941
+ Insert: {
15942
+ created_at?: string;
15943
+ created_by?: string | null;
15944
+ file_hash?: string | null;
15945
+ file_name: string;
15946
+ file_path?: string | null;
15947
+ headers?: string[];
15948
+ id?: string;
15949
+ preview?: import("../integrations/supabase/types").Json;
15950
+ processed_at?: string | null;
15951
+ reason?: string | null;
15952
+ row_count?: number;
15953
+ sheet_name?: string | null;
15954
+ source?: string;
15955
+ stats?: import("../integrations/supabase/types").Json;
15956
+ status?: string;
15957
+ supplier_guess?: string | null;
15958
+ supplier_id?: string | null;
15959
+ updated_at?: string;
15960
+ };
15961
+ Update: {
15962
+ created_at?: string;
15963
+ created_by?: string | null;
15964
+ file_hash?: string | null;
15965
+ file_name?: string;
15966
+ file_path?: string | null;
15967
+ headers?: string[];
15968
+ id?: string;
15969
+ preview?: import("../integrations/supabase/types").Json;
15970
+ processed_at?: string | null;
15971
+ reason?: string | null;
15972
+ row_count?: number;
15973
+ sheet_name?: string | null;
15974
+ source?: string;
15975
+ stats?: import("../integrations/supabase/types").Json;
15976
+ status?: string;
15977
+ supplier_guess?: string | null;
15978
+ supplier_id?: string | null;
15979
+ updated_at?: string;
15980
+ };
15981
+ Relationships: [{
15982
+ foreignKeyName: "price_lists_supplier_id_fkey";
15983
+ columns: ["supplier_id"];
15984
+ isOneToOne: false;
15985
+ referencedRelation: "suppliers";
15986
+ referencedColumns: ["id"];
15987
+ }];
15988
+ };
14757
15989
  print_agents: {
14758
15990
  Row: {
14759
15991
  actief: boolean;
@@ -16311,33 +17543,111 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
16311
17543
  referencedColumns: ["id"];
16312
17544
  }];
16313
17545
  };
16314
- purchase_order_items: {
17546
+ purchase_order_dispatches: {
16315
17547
  Row: {
16316
17548
  created_at: string;
16317
17549
  id: string;
16318
- product_id: string | null;
16319
- product_type: string;
17550
+ last_error: string | null;
17551
+ outbox_id: string | null;
16320
17552
  purchase_order_id: string;
16321
- quantity: number;
17553
+ status: string;
17554
+ supplier_id: string | null;
17555
+ supplier_name: string;
17556
+ to_address: string;
17557
+ updated_at: string;
16322
17558
  };
16323
17559
  Insert: {
16324
17560
  created_at?: string;
16325
17561
  id?: string;
16326
- product_id?: string | null;
16327
- product_type?: string;
17562
+ last_error?: string | null;
17563
+ outbox_id?: string | null;
16328
17564
  purchase_order_id: string;
16329
- quantity?: number;
17565
+ status?: string;
17566
+ supplier_id?: string | null;
17567
+ supplier_name?: string;
17568
+ to_address: string;
17569
+ updated_at?: string;
16330
17570
  };
16331
17571
  Update: {
16332
17572
  created_at?: string;
16333
17573
  id?: string;
16334
- product_id?: string | null;
16335
- product_type?: string;
17574
+ last_error?: string | null;
17575
+ outbox_id?: string | null;
16336
17576
  purchase_order_id?: string;
16337
- quantity?: number;
17577
+ status?: string;
17578
+ supplier_id?: string | null;
17579
+ supplier_name?: string;
17580
+ to_address?: string;
17581
+ updated_at?: string;
16338
17582
  };
16339
17583
  Relationships: [{
16340
- foreignKeyName: "purchase_order_items_product_id_fkey";
17584
+ foreignKeyName: "purchase_order_dispatches_purchase_order_id_fkey";
17585
+ columns: ["purchase_order_id"];
17586
+ isOneToOne: false;
17587
+ referencedRelation: "purchase_orders";
17588
+ referencedColumns: ["id"];
17589
+ }, {
17590
+ foreignKeyName: "purchase_order_dispatches_supplier_id_fkey";
17591
+ columns: ["supplier_id"];
17592
+ isOneToOne: false;
17593
+ referencedRelation: "suppliers";
17594
+ referencedColumns: ["id"];
17595
+ }];
17596
+ };
17597
+ purchase_order_items: {
17598
+ Row: {
17599
+ article_number: string | null;
17600
+ created_at: string;
17601
+ delivery_date: string | null;
17602
+ id: string;
17603
+ name: string;
17604
+ note: string | null;
17605
+ pot_size: string | null;
17606
+ product_id: string | null;
17607
+ product_type: string;
17608
+ purchase_order_id: string;
17609
+ quantity: number;
17610
+ supplier_id: string | null;
17611
+ supplier_product_id: string | null;
17612
+ unit_price_cents: number;
17613
+ updated_at: string;
17614
+ };
17615
+ Insert: {
17616
+ article_number?: string | null;
17617
+ created_at?: string;
17618
+ delivery_date?: string | null;
17619
+ id?: string;
17620
+ name?: string;
17621
+ note?: string | null;
17622
+ pot_size?: string | null;
17623
+ product_id?: string | null;
17624
+ product_type?: string;
17625
+ purchase_order_id: string;
17626
+ quantity?: number;
17627
+ supplier_id?: string | null;
17628
+ supplier_product_id?: string | null;
17629
+ unit_price_cents?: number;
17630
+ updated_at?: string;
17631
+ };
17632
+ Update: {
17633
+ article_number?: string | null;
17634
+ created_at?: string;
17635
+ delivery_date?: string | null;
17636
+ id?: string;
17637
+ name?: string;
17638
+ note?: string | null;
17639
+ pot_size?: string | null;
17640
+ product_id?: string | null;
17641
+ product_type?: string;
17642
+ purchase_order_id?: string;
17643
+ quantity?: number;
17644
+ supplier_id?: string | null;
17645
+ supplier_product_id?: string | null;
17646
+ unit_price_cents?: number;
17647
+ updated_at?: string;
17648
+ };
17649
+ Relationships: [{
17650
+ foreignKeyName: "purchase_order_items_product_id_fkey";
16341
17651
  columns: ["product_id"];
16342
17652
  isOneToOne: false;
16343
17653
  referencedRelation: "logistics_product_dimensions";
@@ -16354,43 +17664,70 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
16354
17664
  isOneToOne: false;
16355
17665
  referencedRelation: "purchase_orders";
16356
17666
  referencedColumns: ["id"];
17667
+ }, {
17668
+ foreignKeyName: "purchase_order_items_supplier_id_fkey";
17669
+ columns: ["supplier_id"];
17670
+ isOneToOne: false;
17671
+ referencedRelation: "suppliers";
17672
+ referencedColumns: ["id"];
17673
+ }, {
17674
+ foreignKeyName: "purchase_order_items_supplier_product_id_fkey";
17675
+ columns: ["supplier_product_id"];
17676
+ isOneToOne: false;
17677
+ referencedRelation: "supplier_products";
17678
+ referencedColumns: ["id"];
16357
17679
  }];
16358
17680
  };
16359
17681
  purchase_orders: {
16360
17682
  Row: {
17683
+ contact_person: string | null;
16361
17684
  created_at: string;
17685
+ created_by: string | null;
16362
17686
  expected_delivery_date: string;
16363
17687
  id: string;
16364
17688
  location_id: string | null;
16365
17689
  notes: string | null;
16366
17690
  order_number: string;
17691
+ reference: string | null;
17692
+ sent_at: string | null;
16367
17693
  status: string;
16368
17694
  supplier_id: string | null;
16369
17695
  supplier_name: string;
17696
+ total_cents: number;
16370
17697
  updated_at: string;
16371
17698
  };
16372
17699
  Insert: {
17700
+ contact_person?: string | null;
16373
17701
  created_at?: string;
16374
- expected_delivery_date: string;
17702
+ created_by?: string | null;
17703
+ expected_delivery_date?: string;
16375
17704
  id?: string;
16376
17705
  location_id?: string | null;
16377
17706
  notes?: string | null;
16378
- order_number: string;
17707
+ order_number?: string;
17708
+ reference?: string | null;
17709
+ sent_at?: string | null;
16379
17710
  status?: string;
16380
17711
  supplier_id?: string | null;
16381
17712
  supplier_name?: string;
17713
+ total_cents?: number;
16382
17714
  updated_at?: string;
16383
17715
  };
16384
17716
  Update: {
17717
+ contact_person?: string | null;
16385
17718
  created_at?: string;
17719
+ created_by?: string | null;
16386
17720
  expected_delivery_date?: string;
16387
17721
  id?: string;
16388
17722
  location_id?: string | null;
16389
17723
  notes?: string | null;
16390
17724
  order_number?: string;
17725
+ reference?: string | null;
17726
+ sent_at?: string | null;
16391
17727
  status?: string;
16392
17728
  supplier_id?: string | null;
16393
17729
  supplier_name?: string;
17730
+ total_cents?: number;
16394
17731
  updated_at?: string;
16395
17732
  };
16396
17733
  Relationships: [{
@@ -17277,15 +18614,160 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
17277
18614
  };
17278
18615
  Relationships: [];
17279
18616
  };
18617
+ supplier_contacts: {
18618
+ Row: {
18619
+ created_at: string;
18620
+ email: string | null;
18621
+ id: string;
18622
+ is_primary: boolean;
18623
+ name: string;
18624
+ phone: string | null;
18625
+ role: string | null;
18626
+ supplier_id: string;
18627
+ updated_at: string;
18628
+ };
18629
+ Insert: {
18630
+ created_at?: string;
18631
+ email?: string | null;
18632
+ id?: string;
18633
+ is_primary?: boolean;
18634
+ name: string;
18635
+ phone?: string | null;
18636
+ role?: string | null;
18637
+ supplier_id: string;
18638
+ updated_at?: string;
18639
+ };
18640
+ Update: {
18641
+ created_at?: string;
18642
+ email?: string | null;
18643
+ id?: string;
18644
+ is_primary?: boolean;
18645
+ name?: string;
18646
+ phone?: string | null;
18647
+ role?: string | null;
18648
+ supplier_id?: string;
18649
+ updated_at?: string;
18650
+ };
18651
+ Relationships: [{
18652
+ foreignKeyName: "supplier_contacts_supplier_id_fkey";
18653
+ columns: ["supplier_id"];
18654
+ isOneToOne: false;
18655
+ referencedRelation: "suppliers";
18656
+ referencedColumns: ["id"];
18657
+ }];
18658
+ };
18659
+ supplier_price_history: {
18660
+ Row: {
18661
+ created_at: string;
18662
+ id: string;
18663
+ new_price_cents: number;
18664
+ old_price_cents: number | null;
18665
+ price_list_id: string | null;
18666
+ supplier_id: string | null;
18667
+ supplier_product_id: string;
18668
+ };
18669
+ Insert: {
18670
+ created_at?: string;
18671
+ id?: string;
18672
+ new_price_cents: number;
18673
+ old_price_cents?: number | null;
18674
+ price_list_id?: string | null;
18675
+ supplier_id?: string | null;
18676
+ supplier_product_id: string;
18677
+ };
18678
+ Update: {
18679
+ created_at?: string;
18680
+ id?: string;
18681
+ new_price_cents?: number;
18682
+ old_price_cents?: number | null;
18683
+ price_list_id?: string | null;
18684
+ supplier_id?: string | null;
18685
+ supplier_product_id?: string;
18686
+ };
18687
+ Relationships: [{
18688
+ foreignKeyName: "supplier_price_history_price_list_id_fkey";
18689
+ columns: ["price_list_id"];
18690
+ isOneToOne: false;
18691
+ referencedRelation: "price_lists";
18692
+ referencedColumns: ["id"];
18693
+ }, {
18694
+ foreignKeyName: "supplier_price_history_supplier_product_id_fkey";
18695
+ columns: ["supplier_product_id"];
18696
+ isOneToOne: false;
18697
+ referencedRelation: "supplier_products";
18698
+ referencedColumns: ["id"];
18699
+ }];
18700
+ };
18701
+ supplier_price_list_mappings: {
18702
+ Row: {
18703
+ column_map: import("../integrations/supabase/types").Json;
18704
+ created_at: string;
18705
+ deactivate_missing: boolean;
18706
+ decimal_separator: string;
18707
+ expected_headers: string[];
18708
+ extract_pot_from_name: boolean;
18709
+ header_row: number;
18710
+ id: string;
18711
+ max_error_ratio: number;
18712
+ price_is_cents: boolean;
18713
+ sheet_name: string | null;
18714
+ supplier_id: string;
18715
+ updated_at: string;
18716
+ };
18717
+ Insert: {
18718
+ column_map?: import("../integrations/supabase/types").Json;
18719
+ created_at?: string;
18720
+ deactivate_missing?: boolean;
18721
+ decimal_separator?: string;
18722
+ expected_headers?: string[];
18723
+ extract_pot_from_name?: boolean;
18724
+ header_row?: number;
18725
+ id?: string;
18726
+ max_error_ratio?: number;
18727
+ price_is_cents?: boolean;
18728
+ sheet_name?: string | null;
18729
+ supplier_id: string;
18730
+ updated_at?: string;
18731
+ };
18732
+ Update: {
18733
+ column_map?: import("../integrations/supabase/types").Json;
18734
+ created_at?: string;
18735
+ deactivate_missing?: boolean;
18736
+ decimal_separator?: string;
18737
+ expected_headers?: string[];
18738
+ extract_pot_from_name?: boolean;
18739
+ header_row?: number;
18740
+ id?: string;
18741
+ max_error_ratio?: number;
18742
+ price_is_cents?: boolean;
18743
+ sheet_name?: string | null;
18744
+ supplier_id?: string;
18745
+ updated_at?: string;
18746
+ };
18747
+ Relationships: [{
18748
+ foreignKeyName: "supplier_price_list_mappings_supplier_id_fkey";
18749
+ columns: ["supplier_id"];
18750
+ isOneToOne: true;
18751
+ referencedRelation: "suppliers";
18752
+ referencedColumns: ["id"];
18753
+ }];
18754
+ };
17280
18755
  supplier_products: {
17281
18756
  Row: {
17282
18757
  article_number: string | null;
18758
+ available_quantity: number;
17283
18759
  created_at: string;
18760
+ height: string | null;
17284
18761
  id: string;
18762
+ is_active: boolean;
18763
+ min_order: number;
17285
18764
  name: string;
17286
18765
  notes: string | null;
18766
+ order_unit: number;
17287
18767
  pot_size: string | null;
17288
18768
  price: number | null;
18769
+ price_cents: number;
18770
+ quality: string | null;
17289
18771
  quantity: number | null;
17290
18772
  supplier_id: string;
17291
18773
  unit: string;
@@ -17293,12 +18775,19 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
17293
18775
  };
17294
18776
  Insert: {
17295
18777
  article_number?: string | null;
18778
+ available_quantity?: number;
17296
18779
  created_at?: string;
18780
+ height?: string | null;
17297
18781
  id?: string;
18782
+ is_active?: boolean;
18783
+ min_order?: number;
17298
18784
  name: string;
17299
18785
  notes?: string | null;
18786
+ order_unit?: number;
17300
18787
  pot_size?: string | null;
17301
18788
  price?: number | null;
18789
+ price_cents?: number;
18790
+ quality?: string | null;
17302
18791
  quantity?: number | null;
17303
18792
  supplier_id: string;
17304
18793
  unit?: string;
@@ -17306,12 +18795,19 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
17306
18795
  };
17307
18796
  Update: {
17308
18797
  article_number?: string | null;
18798
+ available_quantity?: number;
17309
18799
  created_at?: string;
18800
+ height?: string | null;
17310
18801
  id?: string;
18802
+ is_active?: boolean;
18803
+ min_order?: number;
17311
18804
  name?: string;
17312
18805
  notes?: string | null;
18806
+ order_unit?: number;
17313
18807
  pot_size?: string | null;
17314
18808
  price?: number | null;
18809
+ price_cents?: number;
18810
+ quality?: string | null;
17315
18811
  quantity?: number | null;
17316
18812
  supplier_id?: string;
17317
18813
  unit?: string;
@@ -17328,6 +18824,7 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
17328
18824
  suppliers: {
17329
18825
  Row: {
17330
18826
  address: string | null;
18827
+ category: string | null;
17331
18828
  column_mappings: import("../integrations/supabase/types").Json | null;
17332
18829
  contact_person: string | null;
17333
18830
  created_at: string;
@@ -17335,13 +18832,24 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
17335
18832
  email: string | null;
17336
18833
  id: string;
17337
18834
  imported_file_name: string | null;
18835
+ is_preferred: boolean;
18836
+ kvk_number: string | null;
18837
+ lead_time_days: number | null;
18838
+ min_order_amount_cents: number;
17338
18839
  name: string;
17339
18840
  notes: string | null;
18841
+ order_days: string[];
18842
+ order_email: string | null;
18843
+ payment_terms_days: number | null;
17340
18844
  phone: string | null;
18845
+ status: string;
17341
18846
  updated_at: string;
18847
+ vat_number: string | null;
18848
+ website: string | null;
17342
18849
  };
17343
18850
  Insert: {
17344
18851
  address?: string | null;
18852
+ category?: string | null;
17345
18853
  column_mappings?: import("../integrations/supabase/types").Json | null;
17346
18854
  contact_person?: string | null;
17347
18855
  created_at?: string;
@@ -17349,13 +18857,24 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
17349
18857
  email?: string | null;
17350
18858
  id?: string;
17351
18859
  imported_file_name?: string | null;
18860
+ is_preferred?: boolean;
18861
+ kvk_number?: string | null;
18862
+ lead_time_days?: number | null;
18863
+ min_order_amount_cents?: number;
17352
18864
  name: string;
17353
18865
  notes?: string | null;
18866
+ order_days?: string[];
18867
+ order_email?: string | null;
18868
+ payment_terms_days?: number | null;
17354
18869
  phone?: string | null;
18870
+ status?: string;
17355
18871
  updated_at?: string;
18872
+ vat_number?: string | null;
18873
+ website?: string | null;
17356
18874
  };
17357
18875
  Update: {
17358
18876
  address?: string | null;
18877
+ category?: string | null;
17359
18878
  column_mappings?: import("../integrations/supabase/types").Json | null;
17360
18879
  contact_person?: string | null;
17361
18880
  created_at?: string;
@@ -17363,10 +18882,20 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
17363
18882
  email?: string | null;
17364
18883
  id?: string;
17365
18884
  imported_file_name?: string | null;
18885
+ is_preferred?: boolean;
18886
+ kvk_number?: string | null;
18887
+ lead_time_days?: number | null;
18888
+ min_order_amount_cents?: number;
17366
18889
  name?: string;
17367
18890
  notes?: string | null;
18891
+ order_days?: string[];
18892
+ order_email?: string | null;
18893
+ payment_terms_days?: number | null;
17368
18894
  phone?: string | null;
18895
+ status?: string;
17369
18896
  updated_at?: string;
18897
+ vat_number?: string | null;
18898
+ website?: string | null;
17370
18899
  };
17371
18900
  Relationships: [];
17372
18901
  };
@@ -18368,11 +19897,13 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
18368
19897
  auto_invoice_trigger_statuses: string[];
18369
19898
  created_at: string;
18370
19899
  debtor_gl_account: string;
19900
+ default_article_code: string | null;
18371
19901
  default_credit_invoice_type: string | null;
18372
19902
  default_gl_account: string;
18373
19903
  default_invoice_type: string;
18374
19904
  default_payment_term_days: number;
18375
19905
  default_vat_code: string;
19906
+ email_purpose: string | null;
18376
19907
  home_country_code: string;
18377
19908
  invoice_enabled_ao: boolean;
18378
19909
  invoice_enabled_fo: boolean;
@@ -18394,11 +19925,13 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
18394
19925
  auto_invoice_trigger_statuses?: string[];
18395
19926
  created_at?: string;
18396
19927
  debtor_gl_account?: string;
19928
+ default_article_code?: string | null;
18397
19929
  default_credit_invoice_type?: string | null;
18398
19930
  default_gl_account?: string;
18399
19931
  default_invoice_type?: string;
18400
19932
  default_payment_term_days?: number;
18401
19933
  default_vat_code?: string;
19934
+ email_purpose?: string | null;
18402
19935
  home_country_code?: string;
18403
19936
  invoice_enabled_ao?: boolean;
18404
19937
  invoice_enabled_fo?: boolean;
@@ -18420,11 +19953,13 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
18420
19953
  auto_invoice_trigger_statuses?: string[];
18421
19954
  created_at?: string;
18422
19955
  debtor_gl_account?: string;
19956
+ default_article_code?: string | null;
18423
19957
  default_credit_invoice_type?: string | null;
18424
19958
  default_gl_account?: string;
18425
19959
  default_invoice_type?: string;
18426
19960
  default_payment_term_days?: number;
18427
19961
  default_vat_code?: string;
19962
+ email_purpose?: string | null;
18428
19963
  home_country_code?: string;
18429
19964
  invoice_enabled_ao?: boolean;
18430
19965
  invoice_enabled_fo?: boolean;
@@ -19317,6 +20852,36 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
19317
20852
  referencedColumns: ["id"];
19318
20853
  }];
19319
20854
  };
20855
+ voorraad_buffer_state: {
20856
+ Row: {
20857
+ buffer_id: string;
20858
+ buffer_key: string | null;
20859
+ closed_at: string | null;
20860
+ created_at: string;
20861
+ detached_orders: import("../integrations/supabase/types").Json;
20862
+ reason: string | null;
20863
+ updated_at: string;
20864
+ };
20865
+ Insert: {
20866
+ buffer_id: string;
20867
+ buffer_key?: string | null;
20868
+ closed_at?: string | null;
20869
+ created_at?: string;
20870
+ detached_orders?: import("../integrations/supabase/types").Json;
20871
+ reason?: string | null;
20872
+ updated_at?: string;
20873
+ };
20874
+ Update: {
20875
+ buffer_id?: string;
20876
+ buffer_key?: string | null;
20877
+ closed_at?: string | null;
20878
+ created_at?: string;
20879
+ detached_orders?: import("../integrations/supabase/types").Json;
20880
+ reason?: string | null;
20881
+ updated_at?: string;
20882
+ };
20883
+ Relationships: [];
20884
+ };
19320
20885
  voorraad_custom_fields: {
19321
20886
  Row: {
19322
20887
  created_at: string;
@@ -19359,6 +20924,36 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
19359
20924
  };
19360
20925
  Relationships: [];
19361
20926
  };
20927
+ voorraad_logistics_event_log: {
20928
+ Row: {
20929
+ created_at: string;
20930
+ event_id: string;
20931
+ event_type: string;
20932
+ order_ref: string | null;
20933
+ processed_at: string;
20934
+ result: import("../integrations/supabase/types").Json;
20935
+ updated_at: string;
20936
+ };
20937
+ Insert: {
20938
+ created_at?: string;
20939
+ event_id: string;
20940
+ event_type: string;
20941
+ order_ref?: string | null;
20942
+ processed_at?: string;
20943
+ result?: import("../integrations/supabase/types").Json;
20944
+ updated_at?: string;
20945
+ };
20946
+ Update: {
20947
+ created_at?: string;
20948
+ event_id?: string;
20949
+ event_type?: string;
20950
+ order_ref?: string | null;
20951
+ processed_at?: string;
20952
+ result?: import("../integrations/supabase/types").Json;
20953
+ updated_at?: string;
20954
+ };
20955
+ Relationships: [];
20956
+ };
19362
20957
  voorraad_media_upload_failures: {
19363
20958
  Row: {
19364
20959
  action: string;
@@ -19626,13 +21221,49 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
19626
21221
  referencedColumns: ["id"];
19627
21222
  }];
19628
21223
  };
19629
- werkbon_export_runs: {
21224
+ werkbon_email_state: {
19630
21225
  Row: {
19631
21226
  created_at: string;
19632
- created_by: string | null;
19633
- filename: string | null;
21227
+ event_id: string;
19634
21228
  id: string;
19635
- werkbon_ids: string[];
21229
+ is_archived: boolean;
21230
+ is_read: boolean;
21231
+ updated_at: string;
21232
+ werkbon_id: string | null;
21233
+ };
21234
+ Insert: {
21235
+ created_at?: string;
21236
+ event_id: string;
21237
+ id?: string;
21238
+ is_archived?: boolean;
21239
+ is_read?: boolean;
21240
+ updated_at?: string;
21241
+ werkbon_id?: string | null;
21242
+ };
21243
+ Update: {
21244
+ created_at?: string;
21245
+ event_id?: string;
21246
+ id?: string;
21247
+ is_archived?: boolean;
21248
+ is_read?: boolean;
21249
+ updated_at?: string;
21250
+ werkbon_id?: string | null;
21251
+ };
21252
+ Relationships: [{
21253
+ foreignKeyName: "werkbon_email_state_event_id_fkey";
21254
+ columns: ["event_id"];
21255
+ isOneToOne: true;
21256
+ referencedRelation: "email_auth_events";
21257
+ referencedColumns: ["id"];
21258
+ }];
21259
+ };
21260
+ werkbon_export_runs: {
21261
+ Row: {
21262
+ created_at: string;
21263
+ created_by: string | null;
21264
+ filename: string | null;
21265
+ id: string;
21266
+ werkbon_ids: string[];
19636
21267
  };
19637
21268
  Insert: {
19638
21269
  created_at?: string;
@@ -19779,6 +21410,147 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
19779
21410
  };
19780
21411
  Relationships: [];
19781
21412
  };
21413
+ werkbon_mail_ai_settings: {
21414
+ Row: {
21415
+ created_at: string;
21416
+ id: boolean;
21417
+ required_fields: string[];
21418
+ system_prompt: string;
21419
+ updated_at: string;
21420
+ updated_by: string | null;
21421
+ };
21422
+ Insert: {
21423
+ created_at?: string;
21424
+ id?: boolean;
21425
+ required_fields?: string[];
21426
+ system_prompt?: string;
21427
+ updated_at?: string;
21428
+ updated_by?: string | null;
21429
+ };
21430
+ Update: {
21431
+ created_at?: string;
21432
+ id?: boolean;
21433
+ required_fields?: string[];
21434
+ system_prompt?: string;
21435
+ updated_at?: string;
21436
+ updated_by?: string | null;
21437
+ };
21438
+ Relationships: [];
21439
+ };
21440
+ werkbon_mail_bodies: {
21441
+ Row: {
21442
+ created_at: string;
21443
+ event_id: string;
21444
+ fetch_error: string | null;
21445
+ fetched_at: string | null;
21446
+ html: string | null;
21447
+ updated_at: string;
21448
+ };
21449
+ Insert: {
21450
+ created_at?: string;
21451
+ event_id: string;
21452
+ fetch_error?: string | null;
21453
+ fetched_at?: string | null;
21454
+ html?: string | null;
21455
+ updated_at?: string;
21456
+ };
21457
+ Update: {
21458
+ created_at?: string;
21459
+ event_id?: string;
21460
+ fetch_error?: string | null;
21461
+ fetched_at?: string | null;
21462
+ html?: string | null;
21463
+ updated_at?: string;
21464
+ };
21465
+ Relationships: [];
21466
+ };
21467
+ werkbon_mail_inline_assets: {
21468
+ Row: {
21469
+ content_id: string | null;
21470
+ created_at: string;
21471
+ event_id: string;
21472
+ filename: string | null;
21473
+ id: string;
21474
+ is_inline: boolean;
21475
+ mime_type: string | null;
21476
+ size_bytes: number | null;
21477
+ storage_path: string;
21478
+ };
21479
+ Insert: {
21480
+ content_id?: string | null;
21481
+ created_at?: string;
21482
+ event_id: string;
21483
+ filename?: string | null;
21484
+ id?: string;
21485
+ is_inline?: boolean;
21486
+ mime_type?: string | null;
21487
+ size_bytes?: number | null;
21488
+ storage_path: string;
21489
+ };
21490
+ Update: {
21491
+ content_id?: string | null;
21492
+ created_at?: string;
21493
+ event_id?: string;
21494
+ filename?: string | null;
21495
+ id?: string;
21496
+ is_inline?: boolean;
21497
+ mime_type?: string | null;
21498
+ size_bytes?: number | null;
21499
+ storage_path?: string;
21500
+ };
21501
+ Relationships: [];
21502
+ };
21503
+ werkbon_mail_settings: {
21504
+ Row: {
21505
+ connection_id: string | null;
21506
+ connection_ids: string[];
21507
+ created_at: string;
21508
+ id: boolean;
21509
+ purposes: string[];
21510
+ source: string;
21511
+ updated_at: string;
21512
+ };
21513
+ Insert: {
21514
+ connection_id?: string | null;
21515
+ connection_ids?: string[];
21516
+ created_at?: string;
21517
+ id?: boolean;
21518
+ purposes?: string[];
21519
+ source?: string;
21520
+ updated_at?: string;
21521
+ };
21522
+ Update: {
21523
+ connection_id?: string | null;
21524
+ connection_ids?: string[];
21525
+ created_at?: string;
21526
+ id?: boolean;
21527
+ purposes?: string[];
21528
+ source?: string;
21529
+ updated_at?: string;
21530
+ };
21531
+ Relationships: [];
21532
+ };
21533
+ werkbon_mail_user_settings: {
21534
+ Row: {
21535
+ created_at: string;
21536
+ email_purpose: string | null;
21537
+ updated_at: string;
21538
+ user_id: string;
21539
+ };
21540
+ Insert: {
21541
+ created_at?: string;
21542
+ email_purpose?: string | null;
21543
+ updated_at?: string;
21544
+ user_id: string;
21545
+ };
21546
+ Update: {
21547
+ created_at?: string;
21548
+ email_purpose?: string | null;
21549
+ updated_at?: string;
21550
+ user_id?: string;
21551
+ };
21552
+ Relationships: [];
21553
+ };
19782
21554
  werkbon_materials: {
19783
21555
  Row: {
19784
21556
  article_number: string | null;
@@ -20118,6 +21890,156 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
20118
21890
  referencedColumns: ["id"];
20119
21891
  }];
20120
21892
  };
21893
+ werkbon_proposal_lines: {
21894
+ Row: {
21895
+ article_number: string | null;
21896
+ created_at: string;
21897
+ description: string | null;
21898
+ id: string;
21899
+ line_type: string;
21900
+ note: string | null;
21901
+ package_id: string | null;
21902
+ proposal_id: string;
21903
+ quantity: number | null;
21904
+ sort_order: number;
21905
+ unit: string | null;
21906
+ updated_at: string;
21907
+ };
21908
+ Insert: {
21909
+ article_number?: string | null;
21910
+ created_at?: string;
21911
+ description?: string | null;
21912
+ id?: string;
21913
+ line_type?: string;
21914
+ note?: string | null;
21915
+ package_id?: string | null;
21916
+ proposal_id: string;
21917
+ quantity?: number | null;
21918
+ sort_order?: number;
21919
+ unit?: string | null;
21920
+ updated_at?: string;
21921
+ };
21922
+ Update: {
21923
+ article_number?: string | null;
21924
+ created_at?: string;
21925
+ description?: string | null;
21926
+ id?: string;
21927
+ line_type?: string;
21928
+ note?: string | null;
21929
+ package_id?: string | null;
21930
+ proposal_id?: string;
21931
+ quantity?: number | null;
21932
+ sort_order?: number;
21933
+ unit?: string | null;
21934
+ updated_at?: string;
21935
+ };
21936
+ Relationships: [{
21937
+ foreignKeyName: "werkbon_proposal_lines_proposal_id_fkey";
21938
+ columns: ["proposal_id"];
21939
+ isOneToOne: false;
21940
+ referencedRelation: "werkbon_proposals";
21941
+ referencedColumns: ["id"];
21942
+ }];
21943
+ };
21944
+ werkbon_proposals: {
21945
+ Row: {
21946
+ analysed: boolean;
21947
+ budget_mandate_cents: number;
21948
+ complaint_description: string | null;
21949
+ contact_id: string | null;
21950
+ created_at: string;
21951
+ created_werkbon_id: string | null;
21952
+ customer_id: string | null;
21953
+ deadline_date: string | null;
21954
+ estimated_days: number | null;
21955
+ estimated_duration_minutes: number | null;
21956
+ event_id: string;
21957
+ external_id: string | null;
21958
+ externe_referentie: string | null;
21959
+ from_email: string | null;
21960
+ from_name: string | null;
21961
+ id: string;
21962
+ internal_notes: string | null;
21963
+ parsed_payload: import("../integrations/supabase/types").Json;
21964
+ received_at: string | null;
21965
+ reviewed_at: string | null;
21966
+ reviewed_by: string | null;
21967
+ room_number: string | null;
21968
+ scheduled_end_time: string | null;
21969
+ scheduled_start_time: string | null;
21970
+ status: string;
21971
+ subject: string | null;
21972
+ technician_id: string | null;
21973
+ technician_task_description: string | null;
21974
+ updated_at: string;
21975
+ work_address: string | null;
21976
+ };
21977
+ Insert: {
21978
+ analysed?: boolean;
21979
+ budget_mandate_cents?: number;
21980
+ complaint_description?: string | null;
21981
+ contact_id?: string | null;
21982
+ created_at?: string;
21983
+ created_werkbon_id?: string | null;
21984
+ customer_id?: string | null;
21985
+ deadline_date?: string | null;
21986
+ estimated_days?: number | null;
21987
+ estimated_duration_minutes?: number | null;
21988
+ event_id: string;
21989
+ external_id?: string | null;
21990
+ externe_referentie?: string | null;
21991
+ from_email?: string | null;
21992
+ from_name?: string | null;
21993
+ id?: string;
21994
+ internal_notes?: string | null;
21995
+ parsed_payload?: import("../integrations/supabase/types").Json;
21996
+ received_at?: string | null;
21997
+ reviewed_at?: string | null;
21998
+ reviewed_by?: string | null;
21999
+ room_number?: string | null;
22000
+ scheduled_end_time?: string | null;
22001
+ scheduled_start_time?: string | null;
22002
+ status?: string;
22003
+ subject?: string | null;
22004
+ technician_id?: string | null;
22005
+ technician_task_description?: string | null;
22006
+ updated_at?: string;
22007
+ work_address?: string | null;
22008
+ };
22009
+ Update: {
22010
+ analysed?: boolean;
22011
+ budget_mandate_cents?: number;
22012
+ complaint_description?: string | null;
22013
+ contact_id?: string | null;
22014
+ created_at?: string;
22015
+ created_werkbon_id?: string | null;
22016
+ customer_id?: string | null;
22017
+ deadline_date?: string | null;
22018
+ estimated_days?: number | null;
22019
+ estimated_duration_minutes?: number | null;
22020
+ event_id?: string;
22021
+ external_id?: string | null;
22022
+ externe_referentie?: string | null;
22023
+ from_email?: string | null;
22024
+ from_name?: string | null;
22025
+ id?: string;
22026
+ internal_notes?: string | null;
22027
+ parsed_payload?: import("../integrations/supabase/types").Json;
22028
+ received_at?: string | null;
22029
+ reviewed_at?: string | null;
22030
+ reviewed_by?: string | null;
22031
+ room_number?: string | null;
22032
+ scheduled_end_time?: string | null;
22033
+ scheduled_start_time?: string | null;
22034
+ status?: string;
22035
+ subject?: string | null;
22036
+ technician_id?: string | null;
22037
+ technician_task_description?: string | null;
22038
+ updated_at?: string;
22039
+ work_address?: string | null;
22040
+ };
22041
+ Relationships: [];
22042
+ };
20121
22043
  werkbon_time_logs: {
20122
22044
  Row: {
20123
22045
  activity: string;
@@ -20171,6 +22093,9 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
20171
22093
  created_at: string;
20172
22094
  created_by: string | null;
20173
22095
  customer_id: string | null;
22096
+ deadline_date: string | null;
22097
+ estimated_days: number | null;
22098
+ estimated_duration_minutes: number | null;
20174
22099
  externe_referentie: string | null;
20175
22100
  extra_costs_cents: number;
20176
22101
  first_time_fix: boolean | null;
@@ -20201,6 +22126,7 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
20201
22126
  updated_at: string;
20202
22127
  version: number;
20203
22128
  work_address: string | null;
22129
+ workday_hours: number | null;
20204
22130
  };
20205
22131
  Insert: {
20206
22132
  assigned_user_id?: string | null;
@@ -20209,6 +22135,9 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
20209
22135
  created_at?: string;
20210
22136
  created_by?: string | null;
20211
22137
  customer_id?: string | null;
22138
+ deadline_date?: string | null;
22139
+ estimated_days?: number | null;
22140
+ estimated_duration_minutes?: number | null;
20212
22141
  externe_referentie?: string | null;
20213
22142
  extra_costs_cents?: number;
20214
22143
  first_time_fix?: boolean | null;
@@ -20239,6 +22168,7 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
20239
22168
  updated_at?: string;
20240
22169
  version?: number;
20241
22170
  work_address?: string | null;
22171
+ workday_hours?: number | null;
20242
22172
  };
20243
22173
  Update: {
20244
22174
  assigned_user_id?: string | null;
@@ -20247,6 +22177,9 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
20247
22177
  created_at?: string;
20248
22178
  created_by?: string | null;
20249
22179
  customer_id?: string | null;
22180
+ deadline_date?: string | null;
22181
+ estimated_days?: number | null;
22182
+ estimated_duration_minutes?: number | null;
20250
22183
  externe_referentie?: string | null;
20251
22184
  extra_costs_cents?: number;
20252
22185
  first_time_fix?: boolean | null;
@@ -20277,6 +22210,7 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
20277
22210
  updated_at?: string;
20278
22211
  version?: number;
20279
22212
  work_address?: string | null;
22213
+ workday_hours?: number | null;
20280
22214
  };
20281
22215
  Relationships: [{
20282
22216
  foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
@@ -21481,7 +23415,11 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
21481
23415
  };
21482
23416
  Returns: string;
21483
23417
  };
21484
- backfill_open_order_reservations: {
23418
+ backfill_cart_numbers_day_seq: {
23419
+ Args: never;
23420
+ Returns: number;
23421
+ };
23422
+ backfill_open_order_reservations: {
21485
23423
  Args: never;
21486
23424
  Returns: {
21487
23425
  processed_items: number;
@@ -21519,6 +23457,15 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
21519
23457
  Args: never;
21520
23458
  Returns: boolean;
21521
23459
  };
23460
+ cancel_open_print_jobs: {
23461
+ Args: {
23462
+ _cutoff: string;
23463
+ };
23464
+ Returns: {
23465
+ extern_job_id: string;
23466
+ id: string;
23467
+ }[];
23468
+ };
21522
23469
  check_offer_product_available_stock: {
21523
23470
  Args: {
21524
23471
  p_campaign_product_id: string;
@@ -21958,8 +23905,6 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
21958
23905
  cart_index: number;
21959
23906
  cart_number: string;
21960
23907
  cart_number_id: string;
21961
- cart_seq: number;
21962
- cart_total: number;
21963
23908
  order_id: string;
21964
23909
  order_number: string;
21965
23910
  order_source: string;
@@ -22184,6 +24129,17 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
22184
24129
  };
22185
24130
  Returns: boolean;
22186
24131
  };
24132
+ floriday_adopt_connection: {
24133
+ Args: {
24134
+ p_new: string;
24135
+ p_old: string;
24136
+ };
24137
+ Returns: import("../integrations/supabase/types").Json;
24138
+ };
24139
+ floriday_autoheal_connections: {
24140
+ Args: never;
24141
+ Returns: import("../integrations/supabase/types").Json;
24142
+ };
22187
24143
  floriday_capture_stock_snapshot: {
22188
24144
  Args: never;
22189
24145
  Returns: number;
@@ -22241,6 +24197,12 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
22241
24197
  };
22242
24198
  Returns: undefined;
22243
24199
  };
24200
+ floriday_relink_products: {
24201
+ Args: {
24202
+ p_connection_id?: string;
24203
+ };
24204
+ Returns: import("../integrations/supabase/types").Json;
24205
+ };
22244
24206
  floriday_requeue_dead_letters: {
22245
24207
  Args: {
22246
24208
  p_connection_id?: string;
@@ -22463,6 +24425,27 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
22463
24425
  Args: never;
22464
24426
  Returns: string;
22465
24427
  };
24428
+ handover_afspraak_intrekken: {
24429
+ Args: {
24430
+ _sleutel: string;
24431
+ };
24432
+ Returns: boolean;
24433
+ };
24434
+ handover_afspraak_zetten: {
24435
+ Args: {
24436
+ _besluit: string;
24437
+ _item: string;
24438
+ _modules: string[];
24439
+ _sleutel: string;
24440
+ _soort: string;
24441
+ _versie_vingerafdruk: string;
24442
+ };
24443
+ Returns: boolean;
24444
+ };
24445
+ handover_afspraken: {
24446
+ Args: never;
24447
+ Returns: import("../integrations/supabase/types").Json;
24448
+ };
22466
24449
  handover_archief_lijst: {
22467
24450
  Args: never;
22468
24451
  Returns: import("../integrations/supabase/types").Json;
@@ -22480,6 +24463,12 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
22480
24463
  };
22481
24464
  Returns: boolean;
22482
24465
  };
24466
+ handover_check_afronden_na_scan: {
24467
+ Args: {
24468
+ _module_ids: string[];
24469
+ };
24470
+ Returns: number;
24471
+ };
22483
24472
  handover_check_markeren: {
22484
24473
  Args: {
22485
24474
  _module_ids: string[];
@@ -22523,6 +24512,14 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
22523
24512
  };
22524
24513
  Returns: boolean;
22525
24514
  };
24515
+ handover_md_bron_zetten: {
24516
+ Args: {
24517
+ _md: boolean;
24518
+ _module_id: string;
24519
+ _pad?: string;
24520
+ };
24521
+ Returns: boolean;
24522
+ };
22526
24523
  handover_module_meta_zetten: {
22527
24524
  Args: {
22528
24525
  _module_id: string;
@@ -22531,6 +24528,24 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
22531
24528
  };
22532
24529
  Returns: boolean;
22533
24530
  };
24531
+ handover_naam_zetten: {
24532
+ Args: {
24533
+ _bron_repo?: string;
24534
+ _module_id: string;
24535
+ _weergavenaam?: string;
24536
+ };
24537
+ Returns: boolean;
24538
+ };
24539
+ handover_namen: {
24540
+ Args: never;
24541
+ Returns: import("../integrations/supabase/types").Json;
24542
+ };
24543
+ handover_nieuw_gezien: {
24544
+ Args: {
24545
+ _module_id: string;
24546
+ };
24547
+ Returns: boolean;
24548
+ };
22534
24549
  handover_norm_naam: {
22535
24550
  Args: {
22536
24551
  _naam: string;
@@ -22567,6 +24582,24 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
22567
24582
  _versie_label?: string;
22568
24583
  };
22569
24584
  Returns: import("../integrations/supabase/types").Json;
24585
+ } | {
24586
+ Args: {
24587
+ _bekende_risicos?: string[];
24588
+ _bezit_tabellen?: string[];
24589
+ _bron_soort?: string;
24590
+ _commit?: string;
24591
+ _contractfuncties?: string[];
24592
+ _inhoud_md: string;
24593
+ _laatst_bevestigd_op?: string;
24594
+ _module_id: string;
24595
+ _module_titel: string;
24596
+ _ontbrekende_contracten?: string[];
24597
+ _pad?: string;
24598
+ _repo?: string;
24599
+ _samenvatting?: string;
24600
+ _versie_label?: string;
24601
+ };
24602
+ Returns: import("../integrations/supabase/types").Json;
22570
24603
  };
22571
24604
  handover_publish_via_token: {
22572
24605
  Args: {
@@ -22664,6 +24697,27 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
22664
24697
  Args: never;
22665
24698
  Returns: boolean;
22666
24699
  };
24700
+ inkoop_apply_price_list: {
24701
+ Args: {
24702
+ _price_list_id: string;
24703
+ _rows: import("../integrations/supabase/types").Json;
24704
+ };
24705
+ Returns: import("../integrations/supabase/types").Json;
24706
+ };
24707
+ inkoop_next_order_number: {
24708
+ Args: never;
24709
+ Returns: string;
24710
+ };
24711
+ inkoop_send_order: {
24712
+ Args: {
24713
+ _order_id: string;
24714
+ };
24715
+ Returns: {
24716
+ outbox_id: string;
24717
+ supplier_name: string;
24718
+ to_address: string;
24719
+ }[];
24720
+ };
22667
24721
  instructie_get: {
22668
24722
  Args: {
22669
24723
  _sleutel: string;
@@ -22723,6 +24777,13 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
22723
24777
  };
22724
24778
  Returns: import("../integrations/supabase/types").Json;
22725
24779
  };
24780
+ invoice_source_lines: {
24781
+ Args: {
24782
+ _source_id: string;
24783
+ _source_type: string;
24784
+ };
24785
+ Returns: import("../integrations/supabase/types").Json;
24786
+ };
22726
24787
  is_authenticated: {
22727
24788
  Args: never;
22728
24789
  Returns: boolean;
@@ -22862,6 +24923,10 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
22862
24923
  };
22863
24924
  Returns: string;
22864
24925
  };
24926
+ logistics_active_layout_method: {
24927
+ Args: never;
24928
+ Returns: string;
24929
+ };
22865
24930
  logistics_active_pick_workdays: {
22866
24931
  Args: never;
22867
24932
  Returns: string[];
@@ -23036,6 +25101,12 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
23036
25101
  };
23037
25102
  Returns: string;
23038
25103
  };
25104
+ logistics_cart_checkin_at: {
25105
+ Args: {
25106
+ p_cart_id: string;
25107
+ };
25108
+ Returns: string;
25109
+ };
23039
25110
  logistics_cart_handled: {
23040
25111
  Args: {
23041
25112
  p_cart_index: number;
@@ -23069,10 +25140,22 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
23069
25140
  task_status: string;
23070
25141
  }[];
23071
25142
  };
25143
+ logistics_cart_is_full: {
25144
+ Args: {
25145
+ p_cart_id: string;
25146
+ };
25147
+ Returns: boolean;
25148
+ };
23072
25149
  logistics_cart_layout_method: {
23073
25150
  Args: never;
23074
25151
  Returns: import("../integrations/supabase/types").Json;
23075
25152
  };
25153
+ logistics_cart_order_refs: {
25154
+ Args: {
25155
+ p_cart_id: string;
25156
+ };
25157
+ Returns: string[];
25158
+ };
23076
25159
  logistics_cart_plan_overview: {
23077
25160
  Args: {
23078
25161
  p_days?: number;
@@ -23092,6 +25175,24 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
23092
25175
  };
23093
25176
  Returns: import("../integrations/supabase/types").Json;
23094
25177
  };
25178
+ logistics_cart_plan_status_core: {
25179
+ Args: {
25180
+ p_ref: string;
25181
+ };
25182
+ Returns: import("../integrations/supabase/types").Json;
25183
+ };
25184
+ logistics_cart_release_reason: {
25185
+ Args: {
25186
+ p_cart_id: string;
25187
+ };
25188
+ Returns: string;
25189
+ };
25190
+ logistics_cart_released: {
25191
+ Args: {
25192
+ p_cart_id: string;
25193
+ };
25194
+ Returns: boolean;
25195
+ };
23095
25196
  logistics_cart_seq: {
23096
25197
  Args: {
23097
25198
  p_order_uuid?: string;
@@ -23142,6 +25243,10 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
23142
25243
  unit_ref: string;
23143
25244
  }[];
23144
25245
  };
25246
+ logistics_carts_per_print: {
25247
+ Args: never;
25248
+ Returns: number;
25249
+ };
23145
25250
  logistics_check_order_allowed: {
23146
25251
  Args: {
23147
25252
  p_lines: import("../integrations/supabase/types").Json;
@@ -23245,6 +25350,16 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
23245
25350
  isSetofReturn: false;
23246
25351
  };
23247
25352
  };
25353
+ logistics_cleanup_orphan_print_jobs: {
25354
+ Args: never;
25355
+ Returns: import("../integrations/supabase/types").Json;
25356
+ };
25357
+ logistics_cleanup_tasks: {
25358
+ Args: {
25359
+ p_limit?: number;
25360
+ };
25361
+ Returns: import("../integrations/supabase/types").Json;
25362
+ };
23248
25363
  logistics_complete_task: {
23249
25364
  Args: {
23250
25365
  p_result?: import("../integrations/supabase/types").Json;
@@ -23307,6 +25422,12 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
23307
25422
  station_carts: number;
23308
25423
  }[];
23309
25424
  };
25425
+ logistics_control_complete_cart: {
25426
+ Args: {
25427
+ p_cart_id: string;
25428
+ };
25429
+ Returns: number;
25430
+ };
23310
25431
  logistics_control_scan_approve: {
23311
25432
  Args: {
23312
25433
  p_allow_reprint?: boolean;
@@ -23386,6 +25507,15 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
23386
25507
  Args: never;
23387
25508
  Returns: import("../integrations/supabase/types").Json;
23388
25509
  };
25510
+ logistics_day_windows: {
25511
+ Args: {
25512
+ p_day: string;
25513
+ };
25514
+ Returns: {
25515
+ win_end: string;
25516
+ win_start: string;
25517
+ }[];
25518
+ };
23389
25519
  logistics_delay_customer_email: {
23390
25520
  Args: {
23391
25521
  p_customer: string;
@@ -23453,6 +25583,17 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
23453
25583
  };
23454
25584
  Returns: import("../integrations/supabase/types").Json;
23455
25585
  };
25586
+ logistics_enqueue_shipping_note_with_slip: {
25587
+ Args: {
25588
+ _cart_id: string;
25589
+ _is_herprint: boolean;
25590
+ _printer_id: string;
25591
+ _queue_item_id: string;
25592
+ _session_id: string;
25593
+ _slip_job_id: string;
25594
+ };
25595
+ Returns: string;
25596
+ };
23456
25597
  logistics_enqueue_sticker_with_slip: {
23457
25598
  Args: {
23458
25599
  _cart_id: string;
@@ -23470,6 +25611,20 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
23470
25611
  };
23471
25612
  Returns: string;
23472
25613
  };
25614
+ logistics_ensure_pick_data: {
25615
+ Args: {
25616
+ p_event_id?: string;
25617
+ p_missing?: import("../integrations/supabase/types").Json;
25618
+ p_ref: string;
25619
+ };
25620
+ Returns: import("../integrations/supabase/types").Json;
25621
+ };
25622
+ logistics_ensure_shipping_notes: {
25623
+ Args: {
25624
+ p_limit?: number;
25625
+ };
25626
+ Returns: import("../integrations/supabase/types").Json;
25627
+ };
23473
25628
  logistics_fail_task: {
23474
25629
  Args: {
23475
25630
  p_error: string;
@@ -23515,6 +25670,10 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
23515
25670
  isSetofReturn: false;
23516
25671
  };
23517
25672
  };
25673
+ logistics_fix_wrong_shipping_notes: {
25674
+ Args: never;
25675
+ Returns: import("../integrations/supabase/types").Json;
25676
+ };
23518
25677
  logistics_floriday_cart_plan: {
23519
25678
  Args: {
23520
25679
  p_order_id: string;
@@ -23542,6 +25701,10 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
23542
25701
  revision: number;
23543
25702
  }[];
23544
25703
  };
25704
+ logistics_floriday_delivery_note_create_enabled: {
25705
+ Args: never;
25706
+ Returns: boolean;
25707
+ };
23545
25708
  logistics_floriday_finish_push: {
23546
25709
  Args: {
23547
25710
  _error?: string;
@@ -23591,6 +25754,38 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
23591
25754
  };
23592
25755
  Returns: string;
23593
25756
  };
25757
+ logistics_floriday_gate_status: {
25758
+ Args: never;
25759
+ Returns: import("../integrations/supabase/types").Json;
25760
+ };
25761
+ logistics_floriday_log_refusal: {
25762
+ Args: {
25763
+ _action?: string;
25764
+ _module?: string;
25765
+ _order_ref: string;
25766
+ _reason: string;
25767
+ _shell?: string;
25768
+ };
25769
+ Returns: undefined;
25770
+ };
25771
+ logistics_floriday_log_send: {
25772
+ Args: {
25773
+ _action: string;
25774
+ _detail?: string;
25775
+ _http_status?: number;
25776
+ _module?: string;
25777
+ _ok: boolean;
25778
+ _order_ref: string;
25779
+ _shell?: string;
25780
+ };
25781
+ Returns: undefined;
25782
+ };
25783
+ logistics_floriday_order_approved: {
25784
+ Args: {
25785
+ _order_ref: string;
25786
+ };
25787
+ Returns: boolean;
25788
+ };
23594
25789
  logistics_floriday_prune_pushes: {
23595
25790
  Args: {
23596
25791
  _days?: number;
@@ -23605,6 +25800,20 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
23605
25800
  };
23606
25801
  Returns: string;
23607
25802
  };
25803
+ logistics_floriday_status_updates_enabled: {
25804
+ Args: never;
25805
+ Returns: boolean;
25806
+ };
25807
+ logistics_floriday_stock_updates_enabled: {
25808
+ Args: never;
25809
+ Returns: boolean;
25810
+ };
25811
+ logistics_floriday_write_allowed: {
25812
+ Args: {
25813
+ _action: string;
25814
+ };
25815
+ Returns: boolean;
25816
+ };
23608
25817
  logistics_fulfill_barcode_requests: {
23609
25818
  Args: {
23610
25819
  p_limit?: number;
@@ -23625,6 +25834,10 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
23625
25834
  };
23626
25835
  Returns: boolean;
23627
25836
  };
25837
+ logistics_layout_method_status: {
25838
+ Args: never;
25839
+ Returns: import("../integrations/supabase/types").Json;
25840
+ };
23628
25841
  logistics_link_order_items: {
23629
25842
  Args: {
23630
25843
  p_order?: string;
@@ -23643,6 +25856,22 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
23643
25856
  };
23644
25857
  Returns: number;
23645
25858
  };
25859
+ logistics_merge_floriday_lines: {
25860
+ Args: {
25861
+ p_order_id: string;
25862
+ };
25863
+ Returns: string;
25864
+ };
25865
+ logistics_merge_lines_enabled: {
25866
+ Args: never;
25867
+ Returns: boolean;
25868
+ };
25869
+ logistics_merge_partial_carts: {
25870
+ Args: {
25871
+ p_limit?: number;
25872
+ };
25873
+ Returns: import("../integrations/supabase/types").Json;
25874
+ };
23646
25875
  logistics_next_workday_date: {
23647
25876
  Args: {
23648
25877
  p_date: string;
@@ -23669,12 +25898,50 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
23669
25898
  };
23670
25899
  Returns: string;
23671
25900
  };
25901
+ logistics_opening_timezone: {
25902
+ Args: never;
25903
+ Returns: string;
25904
+ };
25905
+ logistics_order_cart_approval: {
25906
+ Args: {
25907
+ _order_ref: string;
25908
+ };
25909
+ Returns: {
25910
+ approved: number;
25911
+ total: number;
25912
+ }[];
25913
+ };
23672
25914
  logistics_order_cart_count: {
23673
25915
  Args: {
23674
25916
  p_order_ref: string;
23675
25917
  };
23676
25918
  Returns: number;
23677
25919
  };
25920
+ logistics_order_changed: {
25921
+ Args: {
25922
+ p_order_id: string;
25923
+ p_reason?: string;
25924
+ };
25925
+ Returns: undefined;
25926
+ };
25927
+ logistics_order_documents_ready: {
25928
+ Args: {
25929
+ p_order_ref: string;
25930
+ };
25931
+ Returns: import("../integrations/supabase/types").Json;
25932
+ };
25933
+ logistics_order_documents_ready_bool: {
25934
+ Args: {
25935
+ p_order_ref: string;
25936
+ };
25937
+ Returns: boolean;
25938
+ };
25939
+ logistics_order_frozen: {
25940
+ Args: {
25941
+ p_order_id: string;
25942
+ };
25943
+ Returns: boolean;
25944
+ };
23678
25945
  logistics_order_handled: {
23679
25946
  Args: {
23680
25947
  p_order_uuid: string;
@@ -23688,7 +25955,19 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
23688
25955
  };
23689
25956
  Returns: boolean;
23690
25957
  };
23691
- logistics_order_overview: {
25958
+ logistics_order_merge_key: {
25959
+ Args: {
25960
+ p_group_key: string;
25961
+ };
25962
+ Returns: string;
25963
+ };
25964
+ logistics_order_mergeable: {
25965
+ Args: {
25966
+ p_order_id: string;
25967
+ };
25968
+ Returns: boolean;
25969
+ };
25970
+ logistics_order_overview: {
23692
25971
  Args: {
23693
25972
  p_from?: string;
23694
25973
  p_to?: string;
@@ -23725,6 +26004,12 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
23725
26004
  };
23726
26005
  Returns: string;
23727
26006
  };
26007
+ logistics_payload_is_floriday: {
26008
+ Args: {
26009
+ _payload: import("../integrations/supabase/types").Json;
26010
+ };
26011
+ Returns: boolean;
26012
+ };
23728
26013
  logistics_pick_agenda: {
23729
26014
  Args: {
23730
26015
  p_from?: string;
@@ -23753,6 +26038,10 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
23753
26038
  Args: never;
23754
26039
  Returns: import("../integrations/supabase/types").Json;
23755
26040
  };
26041
+ logistics_pick_partial_mode: {
26042
+ Args: never;
26043
+ Returns: string;
26044
+ };
23756
26045
  logistics_pick_start_estimate: {
23757
26046
  Args: {
23758
26047
  p_order: import("../integrations/supabase/types").Json;
@@ -23802,6 +26091,12 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
23802
26091
  order_id: string;
23803
26092
  }[];
23804
26093
  };
26094
+ logistics_plan_defer: {
26095
+ Args: {
26096
+ p_id: string;
26097
+ };
26098
+ Returns: undefined;
26099
+ };
23805
26100
  logistics_plan_enqueue: {
23806
26101
  Args: {
23807
26102
  p_order_id: string;
@@ -23815,6 +26110,18 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
23815
26110
  };
23816
26111
  Returns: boolean;
23817
26112
  };
26113
+ logistics_plan_error_class: {
26114
+ Args: {
26115
+ p_error: string;
26116
+ };
26117
+ Returns: string;
26118
+ };
26119
+ logistics_plan_error_text: {
26120
+ Args: {
26121
+ p_error: string;
26122
+ };
26123
+ Returns: string;
26124
+ };
23818
26125
  logistics_plan_finish: {
23819
26126
  Args: {
23820
26127
  p_error?: string;
@@ -23843,14 +26150,80 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
23843
26150
  Args: never;
23844
26151
  Returns: undefined;
23845
26152
  };
26153
+ logistics_plan_lock_acquire: {
26154
+ Args: {
26155
+ _key: string;
26156
+ _owner?: string;
26157
+ _ttl_seconds?: number;
26158
+ };
26159
+ Returns: boolean;
26160
+ };
26161
+ logistics_plan_lock_release: {
26162
+ Args: {
26163
+ _key: string;
26164
+ _owner?: string;
26165
+ };
26166
+ Returns: undefined;
26167
+ };
26168
+ logistics_plan_progress: {
26169
+ Args: {
26170
+ p_refs: string[];
26171
+ };
26172
+ Returns: {
26173
+ cart_plan_ready: boolean;
26174
+ cart_plan_reason: string;
26175
+ cart_plan_released: boolean;
26176
+ plan_progress: number;
26177
+ plan_state: string;
26178
+ plan_state_since: string;
26179
+ unit_ref: string;
26180
+ }[];
26181
+ };
26182
+ logistics_plan_progress_pct: {
26183
+ Args: {
26184
+ p_order_id: string;
26185
+ };
26186
+ Returns: number;
26187
+ };
23846
26188
  logistics_plan_prune: {
23847
26189
  Args: never;
23848
26190
  Returns: number;
23849
26191
  };
26192
+ logistics_plan_queue_list: {
26193
+ Args: {
26194
+ p_limit?: number;
26195
+ };
26196
+ Returns: {
26197
+ attempts: number;
26198
+ claimed_at: string;
26199
+ customer_name: string;
26200
+ enqueued_at: string;
26201
+ error_class: string;
26202
+ error_raw: string;
26203
+ error_text: string;
26204
+ id: string;
26205
+ max_attempts: number;
26206
+ next_attempt_at: string;
26207
+ order_created_at: string;
26208
+ order_id: string;
26209
+ order_number: string;
26210
+ progress_pct: number;
26211
+ reason: string;
26212
+ stand: string;
26213
+ status: string;
26214
+ updated_at: string;
26215
+ }[];
26216
+ };
23850
26217
  logistics_plan_release_stale: {
23851
26218
  Args: never;
23852
26219
  Returns: number;
23853
26220
  };
26221
+ logistics_plan_reset_queue: {
26222
+ Args: {
26223
+ p_scope?: string;
26224
+ };
26225
+ Returns: number;
26226
+ };
23854
26227
  logistics_plan_retry: {
23855
26228
  Args: {
23856
26229
  p_order_ids: string[];
@@ -23864,6 +26237,22 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
23864
26237
  };
23865
26238
  Returns: number;
23866
26239
  };
26240
+ logistics_plan_state_for: {
26241
+ Args: {
26242
+ p_ref: string;
26243
+ };
26244
+ Returns: import("../integrations/supabase/types").Json;
26245
+ };
26246
+ logistics_plan_timeout_running: {
26247
+ Args: never;
26248
+ Returns: number;
26249
+ };
26250
+ logistics_prepare_pick_documents: {
26251
+ Args: {
26252
+ p_limit?: number;
26253
+ };
26254
+ Returns: import("../integrations/supabase/types").Json;
26255
+ };
23867
26256
  logistics_prune_buffer_member_queue: {
23868
26257
  Args: never;
23869
26258
  Returns: number;
@@ -23904,12 +26293,42 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
23904
26293
  Args: never;
23905
26294
  Returns: import("../integrations/supabase/types").Json;
23906
26295
  };
26296
+ logistics_refresh_pick_queue_status: {
26297
+ Args: {
26298
+ p_ref: string;
26299
+ };
26300
+ Returns: number;
26301
+ };
23907
26302
  logistics_refresh_pickup_moments: {
23908
26303
  Args: {
23909
26304
  p_weeks?: number;
23910
26305
  };
23911
26306
  Returns: import("../integrations/supabase/types").Json;
23912
26307
  };
26308
+ logistics_refresh_plan_state: {
26309
+ Args: {
26310
+ p_limit?: number;
26311
+ };
26312
+ Returns: import("../integrations/supabase/types").Json;
26313
+ };
26314
+ logistics_replan_all: {
26315
+ Args: {
26316
+ p_reason?: string;
26317
+ };
26318
+ Returns: import("../integrations/supabase/types").Json;
26319
+ };
26320
+ logistics_replan_all_force: {
26321
+ Args: {
26322
+ p_reason?: string;
26323
+ };
26324
+ Returns: import("../integrations/supabase/types").Json;
26325
+ };
26326
+ logistics_replan_order_journey: {
26327
+ Args: {
26328
+ p_order_ref: string;
26329
+ };
26330
+ Returns: import("../integrations/supabase/types").Json;
26331
+ };
23913
26332
  logistics_report_delay: {
23914
26333
  Args: {
23915
26334
  p_expected_date?: string;
@@ -24012,95 +26431,361 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
24012
26431
  };
24013
26432
  Returns: import("../integrations/supabase/types").Json;
24014
26433
  };
24015
- logistics_scan_delays: {
24016
- Args: never;
24017
- Returns: number;
24018
- };
24019
- logistics_scan_order_stock: {
26434
+ logistics_scan_delays: {
26435
+ Args: never;
26436
+ Returns: number;
26437
+ };
26438
+ logistics_scan_order_stock: {
26439
+ Args: {
26440
+ p_order_id: string;
26441
+ };
26442
+ Returns: string;
26443
+ };
26444
+ logistics_scan_resolve: {
26445
+ Args: {
26446
+ p_code: string;
26447
+ };
26448
+ Returns: import("../integrations/supabase/types").Json;
26449
+ };
26450
+ logistics_schedule_tasks: {
26451
+ Args: never;
26452
+ Returns: number;
26453
+ } | {
26454
+ Args: {
26455
+ p_order_ref?: string;
26456
+ };
26457
+ Returns: number;
26458
+ };
26459
+ logistics_set_order_priority: {
26460
+ Args: {
26461
+ p_order_ref: string;
26462
+ p_priority: number;
26463
+ p_user_id?: string;
26464
+ };
26465
+ Returns: number;
26466
+ };
26467
+ logistics_set_pick_day: {
26468
+ Args: {
26469
+ p_order_ref: string;
26470
+ p_pick_day: string;
26471
+ };
26472
+ Returns: import("../integrations/supabase/types").Json;
26473
+ };
26474
+ logistics_shift_to_workday: {
26475
+ Args: {
26476
+ p_days: string[];
26477
+ p_ts: string;
26478
+ };
26479
+ Returns: string;
26480
+ };
26481
+ logistics_shipping_note_diagnose: {
26482
+ Args: {
26483
+ p_order_number: string;
26484
+ };
26485
+ Returns: import("../integrations/supabase/types").Json;
26486
+ };
26487
+ logistics_shipping_note_follows_slip: {
26488
+ Args: never;
26489
+ Returns: boolean;
26490
+ };
26491
+ logistics_shipping_note_from_barcode: {
26492
+ Args: {
26493
+ p_allow_reprint?: boolean;
26494
+ p_barcode: string;
26495
+ p_station_id?: string;
26496
+ };
26497
+ Returns: import("../integrations/supabase/types").Json;
26498
+ };
26499
+ logistics_shipping_note_job_for_slip: {
26500
+ Args: {
26501
+ _slip_job_id: string;
26502
+ };
26503
+ Returns: string;
26504
+ };
26505
+ logistics_shipping_notes_wake_all: {
26506
+ Args: never;
26507
+ Returns: import("../integrations/supabase/types").Json;
26508
+ };
26509
+ logistics_slip_is_floriday: {
26510
+ Args: {
26511
+ _slip_job_id: string;
26512
+ };
26513
+ Returns: boolean;
26514
+ };
26515
+ logistics_slip_note_claim: {
26516
+ Args: {
26517
+ _lease_seconds?: number;
26518
+ _limit?: number;
26519
+ };
26520
+ Returns: {
26521
+ attempts: number;
26522
+ batch_key: string | null;
26523
+ cart_id: string | null;
26524
+ created_at: string;
26525
+ error: string | null;
26526
+ error_code: string | null;
26527
+ fulfillment_order_id: string | null;
26528
+ id: string;
26529
+ locked_until: string | null;
26530
+ next_attempt_at: string | null;
26531
+ order_id: string | null;
26532
+ order_number: string | null;
26533
+ print_job_id: string | null;
26534
+ printer_id: string | null;
26535
+ retry_class: string | null;
26536
+ slip_job_id: string;
26537
+ status: string;
26538
+ updated_at: string;
26539
+ }[];
26540
+ SetofOptions: {
26541
+ from: "*";
26542
+ to: "logistics_slip_shipping_note";
26543
+ isOneToOne: false;
26544
+ isSetofReturn: true;
26545
+ };
26546
+ };
26547
+ logistics_slip_note_finish: {
26548
+ Args: {
26549
+ _error?: string;
26550
+ _error_code?: string;
26551
+ _fulfillment_order_id?: string;
26552
+ _id: string;
26553
+ _ok: boolean;
26554
+ _print_job_id?: string;
26555
+ _status?: string;
26556
+ };
26557
+ Returns: undefined;
26558
+ };
26559
+ logistics_slip_note_keep_waiting: {
26560
+ Args: {
26561
+ _class?: string;
26562
+ _id: string;
26563
+ _reason: string;
26564
+ };
26565
+ Returns: undefined;
26566
+ };
26567
+ logistics_sticker_follows_slip: {
26568
+ Args: never;
26569
+ Returns: boolean;
26570
+ };
26571
+ logistics_subtract_working_minutes: {
26572
+ Args: {
26573
+ p_deadline: string;
26574
+ p_max_workdays?: number;
26575
+ p_minutes: number;
26576
+ };
26577
+ Returns: import("../integrations/supabase/types").Json;
26578
+ };
26579
+ logistics_supersede_stale_tasks: {
26580
+ Args: {
26581
+ p_keep: string[];
26582
+ p_order_ref: string;
26583
+ p_run_id: string;
26584
+ p_user_id: string;
26585
+ };
26586
+ Returns: number;
26587
+ };
26588
+ logistics_sync_pick_queue: {
26589
+ Args: never;
26590
+ Returns: import("../integrations/supabase/types").Json;
26591
+ };
26592
+ logistics_sync_task_carriers: {
26593
+ Args: {
26594
+ p_order_ref?: string;
26595
+ };
26596
+ Returns: number;
26597
+ };
26598
+ logistics_task_owner: {
26599
+ Args: {
26600
+ p_task_type: string;
26601
+ };
26602
+ Returns: string;
26603
+ };
26604
+ logistics_task_pick_minutes: {
26605
+ Args: {
26606
+ p_payload: import("../integrations/supabase/types").Json;
26607
+ p_settings: import("../integrations/supabase/types").Json;
26608
+ };
26609
+ Returns: number;
26610
+ };
26611
+ logistics_task_retention_days: {
26612
+ Args: never;
26613
+ Returns: number;
26614
+ };
26615
+ logistics_tick_ping: {
26616
+ Args: never;
26617
+ Returns: string;
26618
+ };
26619
+ logistics_timezone_options: {
26620
+ Args: never;
26621
+ Returns: {
26622
+ name: string;
26623
+ }[];
26624
+ };
26625
+ logistics_trace: {
26626
+ Args: {
26627
+ p: import("../integrations/supabase/types").Json;
26628
+ };
26629
+ Returns: string;
26630
+ };
26631
+ logistics_trace_all_orders: {
26632
+ Args: {
26633
+ p_limit?: number;
26634
+ p_search?: string;
26635
+ };
26636
+ Returns: import("../integrations/supabase/types").Json;
26637
+ };
26638
+ logistics_trace_archive_order: {
26639
+ Args: {
26640
+ p_order_ref: string;
26641
+ p_reason: string;
26642
+ };
26643
+ Returns: number;
26644
+ };
26645
+ logistics_trace_batch: {
26646
+ Args: {
26647
+ p: import("../integrations/supabase/types").Json;
26648
+ };
26649
+ Returns: number;
26650
+ };
26651
+ logistics_trace_derive: {
26652
+ Args: {
26653
+ p: import("../integrations/supabase/types").Json;
26654
+ };
26655
+ Returns: number;
26656
+ };
26657
+ logistics_trace_node: {
26658
+ Args: {
26659
+ p_op?: string;
26660
+ p_status?: string;
26661
+ p_table: string;
26662
+ };
26663
+ Returns: string;
26664
+ };
26665
+ logistics_trace_order_journey_start: {
26666
+ Args: {
26667
+ p_order_id: string;
26668
+ p_reason?: string;
26669
+ };
26670
+ Returns: string;
26671
+ };
26672
+ logistics_trace_order_origin: {
26673
+ Args: {
26674
+ p_order_id: string;
26675
+ };
26676
+ Returns: undefined;
26677
+ };
26678
+ logistics_trace_order_overview: {
26679
+ Args: {
26680
+ p_error_class?: string;
26681
+ p_limit?: number;
26682
+ p_search?: string;
26683
+ p_since?: string;
26684
+ p_source?: string;
26685
+ p_state?: string;
26686
+ p_step?: string;
26687
+ };
26688
+ Returns: import("../integrations/supabase/types").Json;
26689
+ };
26690
+ logistics_trace_order_state: {
26691
+ Args: {
26692
+ p_order_ref: string;
26693
+ };
26694
+ Returns: import("../integrations/supabase/types").Json;
26695
+ };
26696
+ logistics_trace_order_step: {
26697
+ Args: {
26698
+ p_class?: string;
26699
+ p_decision?: string;
26700
+ p_error?: string;
26701
+ p_next_step?: string;
26702
+ p_node: string;
26703
+ p_order_id: string;
26704
+ p_reason?: string;
26705
+ p_status: string;
26706
+ p_step: string;
26707
+ };
26708
+ Returns: undefined;
26709
+ };
26710
+ logistics_trace_orders: {
26711
+ Args: {
26712
+ p_limit?: number;
26713
+ p_search?: string;
26714
+ p_since?: string;
26715
+ p_status?: string;
26716
+ };
26717
+ Returns: import("../integrations/supabase/types").Json;
26718
+ };
26719
+ logistics_trace_pick_state: {
24020
26720
  Args: {
24021
- p_order_id: string;
26721
+ p_order_number: string;
24022
26722
  };
24023
- Returns: string;
26723
+ Returns: undefined;
24024
26724
  };
24025
- logistics_scan_resolve: {
26725
+ logistics_trace_progress: {
24026
26726
  Args: {
24027
- p_code: string;
26727
+ p_limit?: number;
24028
26728
  };
24029
26729
  Returns: import("../integrations/supabase/types").Json;
24030
26730
  };
24031
- logistics_schedule_tasks: {
24032
- Args: never;
24033
- Returns: number;
24034
- };
24035
- logistics_set_order_priority: {
26731
+ logistics_trace_progress_order: {
24036
26732
  Args: {
24037
26733
  p_order_ref: string;
24038
- p_priority: number;
24039
- p_user_id?: string;
24040
26734
  };
24041
- Returns: number;
26735
+ Returns: import("../integrations/supabase/types").Json;
24042
26736
  };
24043
- logistics_set_pick_day: {
26737
+ logistics_trace_redact: {
24044
26738
  Args: {
24045
- p_order_ref: string;
24046
- p_pick_day: string;
26739
+ p: import("../integrations/supabase/types").Json;
24047
26740
  };
24048
26741
  Returns: import("../integrations/supabase/types").Json;
24049
26742
  };
24050
- logistics_shift_to_workday: {
26743
+ logistics_trace_source_node: {
24051
26744
  Args: {
24052
- p_days: string[];
24053
- p_ts: string;
26745
+ p_source: string;
24054
26746
  };
24055
26747
  Returns: string;
24056
26748
  };
24057
- logistics_shipping_note_from_barcode: {
26749
+ logistics_trace_step_once: {
24058
26750
  Args: {
24059
- p_allow_reprint?: boolean;
24060
- p_barcode: string;
24061
- p_station_id?: string;
26751
+ p_decision: string;
26752
+ p_next_step?: string;
26753
+ p_node: string;
26754
+ p_order_id: string;
26755
+ p_reason: string;
26756
+ p_status: string;
26757
+ p_step: string;
24062
26758
  };
24063
- Returns: import("../integrations/supabase/types").Json;
24064
- };
24065
- logistics_sticker_follows_slip: {
24066
- Args: never;
24067
- Returns: boolean;
26759
+ Returns: undefined;
24068
26760
  };
24069
- logistics_supersede_stale_tasks: {
26761
+ logistics_trace_stock_check: {
24070
26762
  Args: {
24071
- p_keep: string[];
24072
- p_order_ref: string;
24073
- p_run_id: string;
24074
- p_user_id: string;
26763
+ p_order_id: string;
24075
26764
  };
24076
- Returns: number;
24077
- };
24078
- logistics_sync_pick_queue: {
24079
- Args: never;
24080
- Returns: import("../integrations/supabase/types").Json;
26765
+ Returns: undefined;
24081
26766
  };
24082
- logistics_sync_task_carriers: {
26767
+ logistics_trace_timeline: {
24083
26768
  Args: {
24084
- p_order_ref?: string;
26769
+ p_limit?: number;
26770
+ p_order_ref: string;
24085
26771
  };
24086
- Returns: number;
26772
+ Returns: import("../integrations/supabase/types").Json;
24087
26773
  };
24088
- logistics_task_owner: {
26774
+ logistics_trace_version_events: {
24089
26775
  Args: {
24090
- p_task_type: string;
26776
+ p_from?: string;
26777
+ p_limit?: number;
26778
+ p_order_ref: string;
26779
+ p_to?: string;
26780
+ p_version_id: string;
24091
26781
  };
24092
- Returns: string;
26782
+ Returns: import("../integrations/supabase/types").Json;
24093
26783
  };
24094
- logistics_task_pick_minutes: {
26784
+ logistics_trace_versions: {
24095
26785
  Args: {
24096
- p_payload: import("../integrations/supabase/types").Json;
24097
- p_settings: import("../integrations/supabase/types").Json;
26786
+ p_order_ref: string;
24098
26787
  };
24099
- Returns: number;
24100
- };
24101
- logistics_tick_ping: {
24102
- Args: never;
24103
- Returns: string;
26788
+ Returns: import("../integrations/supabase/types").Json;
24104
26789
  };
24105
26790
  logistics_upsert_task: {
24106
26791
  Args: {
@@ -24121,6 +26806,16 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
24121
26806
  };
24122
26807
  Returns: string;
24123
26808
  };
26809
+ logistics_valid_timezone: {
26810
+ Args: {
26811
+ _tz: string;
26812
+ };
26813
+ Returns: boolean;
26814
+ };
26815
+ logistics_working_hours_status: {
26816
+ Args: never;
26817
+ Returns: import("../integrations/supabase/types").Json;
26818
+ };
24124
26819
  logistics_write_buffer_layer_positions: {
24125
26820
  Args: {
24126
26821
  p_buffer_id: string;
@@ -24182,6 +26877,12 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
24182
26877
  permission: string;
24183
26878
  }[];
24184
26879
  };
26880
+ next_cart_day_seq: {
26881
+ Args: {
26882
+ p_date: string;
26883
+ };
26884
+ Returns: number;
26885
+ };
24185
26886
  next_manufacture_partij: {
24186
26887
  Args: {
24187
26888
  _tenant_id: string;
@@ -24286,6 +26987,10 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
24286
26987
  online: boolean;
24287
26988
  }[];
24288
26989
  };
26990
+ pick_apply_buffer_events: {
26991
+ Args: never;
26992
+ Returns: import("../integrations/supabase/types").Json;
26993
+ };
24289
26994
  pick_available_pick_days: {
24290
26995
  Args: {
24291
26996
  _max_days?: number;
@@ -25129,6 +27834,18 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
25129
27834
  };
25130
27835
  Returns: undefined;
25131
27836
  };
27837
+ prune_floriday_api_log: {
27838
+ Args: never;
27839
+ Returns: number;
27840
+ };
27841
+ quote_ack_work_order: {
27842
+ Args: {
27843
+ _queue_id: string;
27844
+ _werkbon_id: string;
27845
+ _werkbon_nummer?: string;
27846
+ };
27847
+ Returns: boolean;
27848
+ };
25132
27849
  quote_create_from_source: {
25133
27850
  Args: {
25134
27851
  _payload?: import("../integrations/supabase/types").Json;
@@ -25137,6 +27854,13 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
25137
27854
  };
25138
27855
  Returns: string;
25139
27856
  };
27857
+ quote_fail_work_order: {
27858
+ Args: {
27859
+ _foutmelding: string;
27860
+ _queue_id: string;
27861
+ };
27862
+ Returns: boolean;
27863
+ };
25140
27864
  quote_get_billable_lines: {
25141
27865
  Args: {
25142
27866
  _quotation_id: string;
@@ -25153,6 +27877,12 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
25153
27877
  Args: never;
25154
27878
  Returns: import("../integrations/supabase/types").Json;
25155
27879
  };
27880
+ quote_list_pending_work_orders: {
27881
+ Args: {
27882
+ _limit?: number;
27883
+ };
27884
+ Returns: import("../integrations/supabase/types").Json;
27885
+ };
25156
27886
  quote_list_sources: {
25157
27887
  Args: {
25158
27888
  _limit?: number;
@@ -25160,6 +27890,12 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
25160
27890
  };
25161
27891
  Returns: import("../integrations/supabase/types").Json;
25162
27892
  };
27893
+ quote_queue_follow_up: {
27894
+ Args: {
27895
+ _offerte_id: string;
27896
+ };
27897
+ Returns: string;
27898
+ };
25163
27899
  recompute_all_reserved_stock: {
25164
27900
  Args: never;
25165
27901
  Returns: undefined;
@@ -25562,6 +28298,13 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
25562
28298
  };
25563
28299
  Returns: number;
25564
28300
  };
28301
+ schedule_floriday_catalog_prices_sync: {
28302
+ Args: {
28303
+ p_apikey: string;
28304
+ p_url: string;
28305
+ };
28306
+ Returns: number;
28307
+ };
25565
28308
  schedule_floriday_clock_presales_sync: {
25566
28309
  Args: {
25567
28310
  p_apikey: string;
@@ -25834,6 +28577,52 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
25834
28577
  p_end_time: string;
25835
28578
  };
25836
28579
  Returns: import("../integrations/supabase/types").Json;
28580
+ } | {
28581
+ Args: {
28582
+ p_end_lat?: number;
28583
+ p_end_lng?: number;
28584
+ p_log_id: string;
28585
+ };
28586
+ Returns: {
28587
+ auto_stop_reason: string | null;
28588
+ auto_stopped: boolean;
28589
+ created_at: string;
28590
+ current_latitude: number | null;
28591
+ current_longitude: number | null;
28592
+ current_position_updated_at: string | null;
28593
+ employee_id: string;
28594
+ end_latitude: number | null;
28595
+ end_longitude: number | null;
28596
+ end_time: string | null;
28597
+ eta_distance_km: number | null;
28598
+ eta_minutes: number | null;
28599
+ eta_updated_at: string | null;
28600
+ hour_category: string | null;
28601
+ id: string;
28602
+ last_reminder_at: string | null;
28603
+ notes: string | null;
28604
+ overtime_hours: number;
28605
+ overtime_type: string | null;
28606
+ regular_hours: number;
28607
+ reminder_count: number;
28608
+ requires_review: boolean;
28609
+ start_latitude: number | null;
28610
+ start_longitude: number | null;
28611
+ start_time: string;
28612
+ travel_cost: number | null;
28613
+ travel_distance_km: number | null;
28614
+ travel_duration_min: number | null;
28615
+ travel_time_minutes: number | null;
28616
+ type: string;
28617
+ updated_at: string;
28618
+ work_order_id: string | null;
28619
+ };
28620
+ SetofOptions: {
28621
+ from: "*";
28622
+ to: "time_logs";
28623
+ isOneToOne: true;
28624
+ isSetofReturn: false;
28625
+ };
25837
28626
  };
25838
28627
  swap_cart_layer_positions: {
25839
28628
  Args: {
@@ -25862,6 +28651,10 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
25862
28651
  };
25863
28652
  Returns: undefined;
25864
28653
  };
28654
+ sync_floriday_prices_into_price_groups: {
28655
+ Args: never;
28656
+ Returns: number;
28657
+ };
25865
28658
  sync_layer_stock: {
25866
28659
  Args: {
25867
28660
  p_product_id: string;
@@ -25986,14 +28779,99 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
25986
28779
  };
25987
28780
  Returns: undefined;
25988
28781
  };
28782
+ uren_employee_day_hours: {
28783
+ Args: {
28784
+ _day: string;
28785
+ _employee_id: string;
28786
+ };
28787
+ Returns: number;
28788
+ };
25989
28789
  uren_is_beheerder: {
25990
28790
  Args: never;
25991
28791
  Returns: boolean;
25992
28792
  };
28793
+ uren_list_medewerkers: {
28794
+ Args: never;
28795
+ Returns: {
28796
+ avatar_url: string;
28797
+ color: string;
28798
+ display_name: string;
28799
+ email: string;
28800
+ hours_fri: number;
28801
+ hours_mon: number;
28802
+ hours_thu: number;
28803
+ hours_tue: number;
28804
+ hours_wed: number;
28805
+ id: string;
28806
+ is_active: boolean;
28807
+ leave_balance_hours: number;
28808
+ persnr: string;
28809
+ phone: string;
28810
+ roles: string[];
28811
+ }[];
28812
+ };
25993
28813
  uren_my_monteur_id: {
25994
28814
  Args: never;
25995
28815
  Returns: string;
25996
28816
  };
28817
+ uren_planning_dagagenda: {
28818
+ Args: {
28819
+ _tot: string;
28820
+ _van: string;
28821
+ };
28822
+ Returns: {
28823
+ end_at: string;
28824
+ id: string;
28825
+ is_tweede_man: boolean;
28826
+ notes: string;
28827
+ start_at: string;
28828
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
28829
+ werkbon_id: string;
28830
+ }[];
28831
+ };
28832
+ uren_set_planning_item_status: {
28833
+ Args: {
28834
+ _id: string;
28835
+ _status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
28836
+ };
28837
+ Returns: undefined;
28838
+ };
28839
+ uren_set_planning_status: {
28840
+ Args: {
28841
+ p_status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
28842
+ p_werkbon_id: string;
28843
+ };
28844
+ Returns: number;
28845
+ };
28846
+ uren_stop_time_log: {
28847
+ Args: {
28848
+ p_employee_id: string;
28849
+ p_end_lat?: number;
28850
+ p_end_lng?: number;
28851
+ p_end_time: string;
28852
+ };
28853
+ Returns: import("../integrations/supabase/types").Json;
28854
+ };
28855
+ uren_switch_time_log: {
28856
+ Args: {
28857
+ p_employee_id: string;
28858
+ p_start_lat?: number;
28859
+ p_start_lng?: number;
28860
+ p_type: string;
28861
+ p_work_order_id?: string;
28862
+ };
28863
+ Returns: import("../integrations/supabase/types").Json;
28864
+ };
28865
+ uren_sync_sick_time_off: {
28866
+ Args: {
28867
+ _period_id: string;
28868
+ };
28869
+ Returns: number;
28870
+ };
28871
+ voorraad_cleanup_old_rows: {
28872
+ Args: never;
28873
+ Returns: import("../integrations/supabase/types").Json;
28874
+ };
25997
28875
  wake_print_queue: {
25998
28876
  Args: {
25999
28877
  _min_interval_ms?: number;
@@ -26032,6 +28910,25 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
26032
28910
  };
26033
28911
  Returns: import("../integrations/supabase/types").Json;
26034
28912
  };
28913
+ wo_list_offerte_requests: {
28914
+ Args: {
28915
+ _status?: string;
28916
+ };
28917
+ Returns: import("../integrations/supabase/types").Json;
28918
+ };
28919
+ wo_process_offerte_request: {
28920
+ Args: {
28921
+ _queue_id: string;
28922
+ };
28923
+ Returns: import("../integrations/supabase/types").Json;
28924
+ };
28925
+ wo_reject_offerte_request: {
28926
+ Args: {
28927
+ _queue_id: string;
28928
+ _reden?: string;
28929
+ };
28930
+ Returns: import("../integrations/supabase/types").Json;
28931
+ };
26035
28932
  wo_set_status: {
26036
28933
  Args: {
26037
28934
  _reason?: string;
@@ -26062,7 +28959,7 @@ export declare const listOrderPickDates: import("@tanstack/start-client-core").O
26062
28959
  }>;
26063
28960
  userId: string;
26064
28961
  claims: import("@supabase/auth-js").JwtPayload;
26065
- }, undefined, undefined, undefined>], undefined, Promise<{
28962
+ }, undefined, undefined, undefined>], (input: ListOrderPickDatesInput | undefined) => ListOrderPickDatesInput, Promise<{
26066
28963
  items: OrderPickDate[];
26067
28964
  error?: string;
26068
28965
  }>>;