@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
@@ -18,6 +18,7 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
18
18
  Row: {
19
19
  auto_print_delivery_note: boolean;
20
20
  auto_process_paused: boolean;
21
+ control_bulk_max_carts: number;
21
22
  created_at: string;
22
23
  extra_pick_days_with_stickers: number;
23
24
  id: string;
@@ -35,6 +36,7 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
35
36
  Insert: {
36
37
  auto_print_delivery_note?: boolean;
37
38
  auto_process_paused?: boolean;
39
+ control_bulk_max_carts?: number;
38
40
  created_at?: string;
39
41
  extra_pick_days_with_stickers?: number;
40
42
  id?: string;
@@ -52,6 +54,7 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
52
54
  Update: {
53
55
  auto_print_delivery_note?: boolean;
54
56
  auto_process_paused?: boolean;
57
+ control_bulk_max_carts?: number;
55
58
  created_at?: string;
56
59
  extra_pick_days_with_stickers?: number;
57
60
  id?: string;
@@ -1394,6 +1397,7 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
1394
1397
  id: string;
1395
1398
  notes: string | null;
1396
1399
  performed_at: string;
1400
+ request_key: string | null;
1397
1401
  rescheduled_count: number;
1398
1402
  stock_consumed_at: string | null;
1399
1403
  total_carts: number;
@@ -1408,6 +1412,7 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
1408
1412
  id?: string;
1409
1413
  notes?: string | null;
1410
1414
  performed_at?: string;
1415
+ request_key?: string | null;
1411
1416
  rescheduled_count?: number;
1412
1417
  stock_consumed_at?: string | null;
1413
1418
  total_carts?: number;
@@ -1422,6 +1427,7 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
1422
1427
  id?: string;
1423
1428
  notes?: string | null;
1424
1429
  performed_at?: string;
1430
+ request_key?: string | null;
1425
1431
  rescheduled_count?: number;
1426
1432
  stock_consumed_at?: string | null;
1427
1433
  total_carts?: number;
@@ -1434,9 +1440,10 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
1434
1440
  Row: {
1435
1441
  assigned_at: string;
1436
1442
  cart_index: number;
1437
- cart_number: string | null;
1443
+ cart_number: string;
1438
1444
  day_seq: number | null;
1439
1445
  delivered_at: string | null;
1446
+ engine_cart_label: string | null;
1440
1447
  id: string;
1441
1448
  order_id: string;
1442
1449
  order_source: string;
@@ -1446,9 +1453,10 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
1446
1453
  Insert: {
1447
1454
  assigned_at?: string;
1448
1455
  cart_index: number;
1449
- cart_number?: string | null;
1456
+ cart_number: string;
1450
1457
  day_seq?: number | null;
1451
1458
  delivered_at?: string | null;
1459
+ engine_cart_label?: string | null;
1452
1460
  id?: string;
1453
1461
  order_id: string;
1454
1462
  order_source: string;
@@ -1458,9 +1466,10 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
1458
1466
  Update: {
1459
1467
  assigned_at?: string;
1460
1468
  cart_index?: number;
1461
- cart_number?: string | null;
1469
+ cart_number?: string;
1462
1470
  day_seq?: number | null;
1463
1471
  delivered_at?: string | null;
1472
+ engine_cart_label?: string | null;
1464
1473
  id?: string;
1465
1474
  order_id?: string;
1466
1475
  order_source?: string;
@@ -1835,6 +1844,42 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
1835
1844
  };
1836
1845
  Relationships: [];
1837
1846
  };
1847
+ customer_assortment_items: {
1848
+ Row: {
1849
+ created_at: string;
1850
+ customer_key: string;
1851
+ id: string;
1852
+ in_assortment: boolean;
1853
+ manual_override: boolean;
1854
+ source: string;
1855
+ synced_at: string | null;
1856
+ trade_item_key: string;
1857
+ updated_at: string;
1858
+ };
1859
+ Insert: {
1860
+ created_at?: string;
1861
+ customer_key: string;
1862
+ id?: string;
1863
+ in_assortment?: boolean;
1864
+ manual_override?: boolean;
1865
+ source?: string;
1866
+ synced_at?: string | null;
1867
+ trade_item_key: string;
1868
+ updated_at?: string;
1869
+ };
1870
+ Update: {
1871
+ created_at?: string;
1872
+ customer_key?: string;
1873
+ id?: string;
1874
+ in_assortment?: boolean;
1875
+ manual_override?: boolean;
1876
+ source?: string;
1877
+ synced_at?: string | null;
1878
+ trade_item_key?: string;
1879
+ updated_at?: string;
1880
+ };
1881
+ Relationships: [];
1882
+ };
1838
1883
  customer_audit_log: {
1839
1884
  Row: {
1840
1885
  action: string;
@@ -2237,6 +2282,63 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
2237
2282
  };
2238
2283
  Relationships: [];
2239
2284
  };
2285
+ customer_product_stickers: {
2286
+ Row: {
2287
+ content_hash: string | null;
2288
+ created_at: string;
2289
+ customer_key: string;
2290
+ file_name: string;
2291
+ file_path: string;
2292
+ file_size: number | null;
2293
+ floriday_sticker_id: string | null;
2294
+ floriday_synced_at: string | null;
2295
+ height_mm: number | null;
2296
+ id: string;
2297
+ mime_type: string | null;
2298
+ source: string;
2299
+ trade_item_key: string;
2300
+ updated_at: string;
2301
+ uploaded_by: string | null;
2302
+ width_mm: number | null;
2303
+ };
2304
+ Insert: {
2305
+ content_hash?: string | null;
2306
+ created_at?: string;
2307
+ customer_key: string;
2308
+ file_name: string;
2309
+ file_path: string;
2310
+ file_size?: number | null;
2311
+ floriday_sticker_id?: string | null;
2312
+ floriday_synced_at?: string | null;
2313
+ height_mm?: number | null;
2314
+ id?: string;
2315
+ mime_type?: string | null;
2316
+ source?: string;
2317
+ trade_item_key: string;
2318
+ updated_at?: string;
2319
+ uploaded_by?: string | null;
2320
+ width_mm?: number | null;
2321
+ };
2322
+ Update: {
2323
+ content_hash?: string | null;
2324
+ created_at?: string;
2325
+ customer_key?: string;
2326
+ file_name?: string;
2327
+ file_path?: string;
2328
+ file_size?: number | null;
2329
+ floriday_sticker_id?: string | null;
2330
+ floriday_synced_at?: string | null;
2331
+ height_mm?: number | null;
2332
+ id?: string;
2333
+ mime_type?: string | null;
2334
+ source?: string;
2335
+ trade_item_key?: string;
2336
+ updated_at?: string;
2337
+ uploaded_by?: string | null;
2338
+ width_mm?: number | null;
2339
+ };
2340
+ Relationships: [];
2341
+ };
2240
2342
  customer_selected_assortment: {
2241
2343
  Row: {
2242
2344
  article_number: string | null;
@@ -2285,6 +2387,30 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
2285
2387
  referencedColumns: ["id"];
2286
2388
  }];
2287
2389
  };
2390
+ customer_sticker_settings: {
2391
+ Row: {
2392
+ created_at: string;
2393
+ customer_key: string;
2394
+ height_mm: number;
2395
+ updated_at: string;
2396
+ width_mm: number;
2397
+ };
2398
+ Insert: {
2399
+ created_at?: string;
2400
+ customer_key: string;
2401
+ height_mm?: number;
2402
+ updated_at?: string;
2403
+ width_mm?: number;
2404
+ };
2405
+ Update: {
2406
+ created_at?: string;
2407
+ customer_key?: string;
2408
+ height_mm?: number;
2409
+ updated_at?: string;
2410
+ width_mm?: number;
2411
+ };
2412
+ Relationships: [];
2413
+ };
2288
2414
  customer_trade_settings: {
2289
2415
  Row: {
2290
2416
  category: string;
@@ -3610,6 +3736,7 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
3610
3736
  };
3611
3737
  email_auth_outbox: {
3612
3738
  Row: {
3739
+ attachments: import("../integrations/supabase/types").Json;
3613
3740
  attempts: number;
3614
3741
  bcc_addresses: string[];
3615
3742
  cc_addresses: string[];
@@ -3632,6 +3759,7 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
3632
3759
  updated_at: string;
3633
3760
  };
3634
3761
  Insert: {
3762
+ attachments?: import("../integrations/supabase/types").Json;
3635
3763
  attempts?: number;
3636
3764
  bcc_addresses?: string[];
3637
3765
  cc_addresses?: string[];
@@ -3654,6 +3782,7 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
3654
3782
  updated_at?: string;
3655
3783
  };
3656
3784
  Update: {
3785
+ attachments?: import("../integrations/supabase/types").Json;
3657
3786
  attempts?: number;
3658
3787
  bcc_addresses?: string[];
3659
3788
  cc_addresses?: string[];
@@ -5615,6 +5744,102 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
5615
5744
  referencedColumns: ["id"];
5616
5745
  }];
5617
5746
  };
5747
+ floriday_api_log: {
5748
+ Row: {
5749
+ action: string | null;
5750
+ caller: string | null;
5751
+ connection_id: string | null;
5752
+ created_at: string;
5753
+ cursor_from: number | null;
5754
+ direction: string;
5755
+ duration_ms: number | null;
5756
+ environment: string | null;
5757
+ error: string | null;
5758
+ floriday_id: string | null;
5759
+ floriday_reference: string | null;
5760
+ http_status: number;
5761
+ id: string;
5762
+ item_count: number | null;
5763
+ kind: string | null;
5764
+ local_id: string | null;
5765
+ local_reference: string | null;
5766
+ method: string;
5767
+ module: string | null;
5768
+ ok: boolean;
5769
+ path: string;
5770
+ request: import("../integrations/supabase/types").Json | null;
5771
+ resource_type: string | null;
5772
+ response: import("../integrations/supabase/types").Json | null;
5773
+ write_log_id: string | null;
5774
+ };
5775
+ Insert: {
5776
+ action?: string | null;
5777
+ caller?: string | null;
5778
+ connection_id?: string | null;
5779
+ created_at?: string;
5780
+ cursor_from?: number | null;
5781
+ direction: string;
5782
+ duration_ms?: number | null;
5783
+ environment?: string | null;
5784
+ error?: string | null;
5785
+ floriday_id?: string | null;
5786
+ floriday_reference?: string | null;
5787
+ http_status?: number;
5788
+ id?: string;
5789
+ item_count?: number | null;
5790
+ kind?: string | null;
5791
+ local_id?: string | null;
5792
+ local_reference?: string | null;
5793
+ method: string;
5794
+ module?: string | null;
5795
+ ok?: boolean;
5796
+ path: string;
5797
+ request?: import("../integrations/supabase/types").Json | null;
5798
+ resource_type?: string | null;
5799
+ response?: import("../integrations/supabase/types").Json | null;
5800
+ write_log_id?: string | null;
5801
+ };
5802
+ Update: {
5803
+ action?: string | null;
5804
+ caller?: string | null;
5805
+ connection_id?: string | null;
5806
+ created_at?: string;
5807
+ cursor_from?: number | null;
5808
+ direction?: string;
5809
+ duration_ms?: number | null;
5810
+ environment?: string | null;
5811
+ error?: string | null;
5812
+ floriday_id?: string | null;
5813
+ floriday_reference?: string | null;
5814
+ http_status?: number;
5815
+ id?: string;
5816
+ item_count?: number | null;
5817
+ kind?: string | null;
5818
+ local_id?: string | null;
5819
+ local_reference?: string | null;
5820
+ method?: string;
5821
+ module?: string | null;
5822
+ ok?: boolean;
5823
+ path?: string;
5824
+ request?: import("../integrations/supabase/types").Json | null;
5825
+ resource_type?: string | null;
5826
+ response?: import("../integrations/supabase/types").Json | null;
5827
+ write_log_id?: string | null;
5828
+ };
5829
+ Relationships: [{
5830
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
5831
+ columns: ["connection_id"];
5832
+ isOneToOne: false;
5833
+ referencedRelation: "floriday_connections";
5834
+ referencedColumns: ["id"];
5835
+ }, {
5836
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
5837
+ columns: ["write_log_id"];
5838
+ isOneToOne: false;
5839
+ referencedRelation: "floriday_write_log";
5840
+ referencedColumns: ["id"];
5841
+ }];
5842
+ };
5618
5843
  floriday_auction_letters_cache: {
5619
5844
  Row: {
5620
5845
  auction_letter_code: string;
@@ -5822,6 +6047,84 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
5822
6047
  referencedColumns: ["id"];
5823
6048
  }];
5824
6049
  };
6050
+ floriday_catalog_prices_cache: {
6051
+ Row: {
6052
+ connection_id: string;
6053
+ created_at: string;
6054
+ currency: string;
6055
+ id: string;
6056
+ is_deleted: boolean;
6057
+ price: number | null;
6058
+ price_group_id: string | null;
6059
+ price_group_name: string | null;
6060
+ price_type: string;
6061
+ raw: import("../integrations/supabase/types").Json | null;
6062
+ sales_unit: string | null;
6063
+ sequence_number: number;
6064
+ supplier_article_code: string | null;
6065
+ supply_line_id: string;
6066
+ synced_at: string;
6067
+ trade_item_id: string | null;
6068
+ updated_at: string;
6069
+ valid_from: string | null;
6070
+ valid_to: string | null;
6071
+ week: number | null;
6072
+ year: number | null;
6073
+ };
6074
+ Insert: {
6075
+ connection_id: string;
6076
+ created_at?: string;
6077
+ currency?: string;
6078
+ id?: string;
6079
+ is_deleted?: boolean;
6080
+ price?: number | null;
6081
+ price_group_id?: string | null;
6082
+ price_group_name?: string | null;
6083
+ price_type?: string;
6084
+ raw?: import("../integrations/supabase/types").Json | null;
6085
+ sales_unit?: string | null;
6086
+ sequence_number?: number;
6087
+ supplier_article_code?: string | null;
6088
+ supply_line_id: string;
6089
+ synced_at?: string;
6090
+ trade_item_id?: string | null;
6091
+ updated_at?: string;
6092
+ valid_from?: string | null;
6093
+ valid_to?: string | null;
6094
+ week?: number | null;
6095
+ year?: number | null;
6096
+ };
6097
+ Update: {
6098
+ connection_id?: string;
6099
+ created_at?: string;
6100
+ currency?: string;
6101
+ id?: string;
6102
+ is_deleted?: boolean;
6103
+ price?: number | null;
6104
+ price_group_id?: string | null;
6105
+ price_group_name?: string | null;
6106
+ price_type?: string;
6107
+ raw?: import("../integrations/supabase/types").Json | null;
6108
+ sales_unit?: string | null;
6109
+ sequence_number?: number;
6110
+ supplier_article_code?: string | null;
6111
+ supply_line_id?: string;
6112
+ synced_at?: string;
6113
+ trade_item_id?: string | null;
6114
+ updated_at?: string;
6115
+ valid_from?: string | null;
6116
+ valid_to?: string | null;
6117
+ week?: number | null;
6118
+ year?: number | null;
6119
+ };
6120
+ Relationships: [{
6121
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
6122
+ columns: ["connection_id"];
6123
+ isOneToOne: false;
6124
+ referencedRelation: "floriday_connections";
6125
+ referencedColumns: ["id"];
6126
+ }];
6127
+ };
5825
6128
  floriday_clock_presales_cache: {
5826
6129
  Row: {
5827
6130
  buyer_organization_id: string | null;
@@ -6737,6 +7040,69 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
6737
7040
  referencedColumns: ["id"];
6738
7041
  }];
6739
7042
  };
7043
+ floriday_link_templates: {
7044
+ Row: {
7045
+ created_at: string;
7046
+ floriday_url_template: string | null;
7047
+ is_active: boolean;
7048
+ label: string;
7049
+ local_url_template: string | null;
7050
+ resource_type: string;
7051
+ updated_at: string;
7052
+ };
7053
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
7072
+ };
7073
+ floriday_log_retention: {
7074
+ Row: {
7075
+ created_at: string;
7076
+ direction: string | null;
7077
+ id: string;
7078
+ keep_failed_days: number | null;
7079
+ keep_ok_days: number | null;
7080
+ note: string | null;
7081
+ resource_type: string | null;
7082
+ updated_at: string;
7083
+ };
7084
+ Insert: {
7085
+ created_at?: string;
7086
+ direction?: string | null;
7087
+ id?: string;
7088
+ keep_failed_days?: number | null;
7089
+ keep_ok_days?: number | null;
7090
+ note?: string | null;
7091
+ resource_type?: string | null;
7092
+ updated_at?: string;
7093
+ };
7094
+ Update: {
7095
+ created_at?: string;
7096
+ direction?: string | null;
7097
+ id?: string;
7098
+ keep_failed_days?: number | null;
7099
+ keep_ok_days?: number | null;
7100
+ note?: string | null;
7101
+ resource_type?: string | null;
7102
+ updated_at?: string;
7103
+ };
7104
+ Relationships: [];
7105
+ };
6740
7106
  floriday_logistic_labels_cache: {
6741
7107
  Row: {
6742
7108
  byte_size: number | null;
@@ -8453,15 +8819,56 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
8453
8819
  };
8454
8820
  Relationships: [];
8455
8821
  };
8456
- itk_handover_github_scan: {
8822
+ itk_handover_afspraken: {
8457
8823
  Row: {
8458
- gescand_op: string;
8459
- gevonden: boolean;
8460
- melding: string | null;
8461
- module_id: string | null;
8462
- repo: string;
8463
- };
8824
+ afgesproken_door: string | null;
8825
+ afgesproken_op: string;
8826
+ besluit: string;
8827
+ created_at: string;
8828
+ item: string;
8829
+ modules: string[];
8830
+ sleutel: string;
8831
+ soort: string;
8832
+ updated_at: string;
8833
+ versie_vingerafdruk: string;
8834
+ };
8835
+ Insert: {
8836
+ afgesproken_door?: string | null;
8837
+ afgesproken_op?: string;
8838
+ besluit?: string;
8839
+ created_at?: string;
8840
+ item?: string;
8841
+ modules?: string[];
8842
+ sleutel: string;
8843
+ soort?: string;
8844
+ updated_at?: string;
8845
+ versie_vingerafdruk?: string;
8846
+ };
8847
+ Update: {
8848
+ afgesproken_door?: string | null;
8849
+ afgesproken_op?: string;
8850
+ besluit?: string;
8851
+ created_at?: string;
8852
+ item?: string;
8853
+ modules?: string[];
8854
+ sleutel?: string;
8855
+ soort?: string;
8856
+ updated_at?: string;
8857
+ versie_vingerafdruk?: string;
8858
+ };
8859
+ Relationships: [];
8860
+ };
8861
+ itk_handover_github_scan: {
8862
+ Row: {
8863
+ genegeerd_op: string | null;
8864
+ gescand_op: string;
8865
+ gevonden: boolean;
8866
+ melding: string | null;
8867
+ module_id: string | null;
8868
+ repo: string;
8869
+ };
8464
8870
  Insert: {
8871
+ genegeerd_op?: string | null;
8465
8872
  gescand_op?: string;
8466
8873
  gevonden?: boolean;
8467
8874
  melding?: string | null;
@@ -8469,6 +8876,7 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
8469
8876
  repo: string;
8470
8877
  };
8471
8878
  Update: {
8879
+ genegeerd_op?: string | null;
8472
8880
  gescand_op?: string;
8473
8881
  gevonden?: boolean;
8474
8882
  melding?: string | null;
@@ -8477,13 +8885,45 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
8477
8885
  };
8478
8886
  Relationships: [];
8479
8887
  };
8888
+ itk_handover_github_voortgang: {
8889
+ Row: {
8890
+ bijgewerkt_op: string;
8891
+ huidige_repo: string | null;
8892
+ id: boolean;
8893
+ klaar: number;
8894
+ loopt: boolean;
8895
+ totaal: number;
8896
+ };
8897
+ Insert: {
8898
+ bijgewerkt_op?: string;
8899
+ huidige_repo?: string | null;
8900
+ id?: boolean;
8901
+ klaar?: number;
8902
+ loopt?: boolean;
8903
+ totaal?: number;
8904
+ };
8905
+ Update: {
8906
+ bijgewerkt_op?: string;
8907
+ huidige_repo?: string | null;
8908
+ id?: boolean;
8909
+ klaar?: number;
8910
+ loopt?: boolean;
8911
+ totaal?: number;
8912
+ };
8913
+ Relationships: [];
8914
+ };
8480
8915
  itk_handover_module_meta: {
8481
8916
  Row: {
8482
8917
  check_aangevraagd_op: string | null;
8483
8918
  check_nodig: boolean;
8484
8919
  check_reden: string | null;
8485
8920
  created_at: string;
8921
+ md_bron: boolean;
8922
+ md_bron_op: string | null;
8923
+ md_bron_pad: string | null;
8486
8924
  module_id: string;
8925
+ nieuw_gezien: boolean;
8926
+ nieuw_gezien_op: string | null;
8487
8927
  project_url: string | null;
8488
8928
  publicatie_url: string | null;
8489
8929
  updated_at: string;
@@ -8493,7 +8933,12 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
8493
8933
  check_nodig?: boolean;
8494
8934
  check_reden?: string | null;
8495
8935
  created_at?: string;
8936
+ md_bron?: boolean;
8937
+ md_bron_op?: string | null;
8938
+ md_bron_pad?: string | null;
8496
8939
  module_id: string;
8940
+ nieuw_gezien?: boolean;
8941
+ nieuw_gezien_op?: string | null;
8497
8942
  project_url?: string | null;
8498
8943
  publicatie_url?: string | null;
8499
8944
  updated_at?: string;
@@ -8503,13 +8948,45 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
8503
8948
  check_nodig?: boolean;
8504
8949
  check_reden?: string | null;
8505
8950
  created_at?: string;
8951
+ md_bron?: boolean;
8952
+ md_bron_op?: string | null;
8953
+ md_bron_pad?: string | null;
8506
8954
  module_id?: string;
8955
+ nieuw_gezien?: boolean;
8956
+ nieuw_gezien_op?: string | null;
8507
8957
  project_url?: string | null;
8508
8958
  publicatie_url?: string | null;
8509
8959
  updated_at?: string;
8510
8960
  };
8511
8961
  Relationships: [];
8512
8962
  };
8963
+ itk_handover_module_naam: {
8964
+ Row: {
8965
+ bron_repo: string;
8966
+ created_at: string;
8967
+ module_id: string;
8968
+ standaardnaam: string | null;
8969
+ updated_at: string;
8970
+ weergavenaam: string;
8971
+ };
8972
+ Insert: {
8973
+ bron_repo?: string;
8974
+ created_at?: string;
8975
+ module_id: string;
8976
+ standaardnaam?: string | null;
8977
+ updated_at?: string;
8978
+ weergavenaam: string;
8979
+ };
8980
+ Update: {
8981
+ bron_repo?: string;
8982
+ created_at?: string;
8983
+ module_id?: string;
8984
+ standaardnaam?: string | null;
8985
+ updated_at?: string;
8986
+ weergavenaam?: string;
8987
+ };
8988
+ Relationships: [];
8989
+ };
8513
8990
  itk_handover_project_modules: {
8514
8991
  Row: {
8515
8992
  created_at: string;
@@ -8623,6 +9100,7 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
8623
9100
  };
8624
9101
  itk_module_handovers: {
8625
9102
  Row: {
9103
+ bekende_risicos: string[];
8626
9104
  bevindingen: string | null;
8627
9105
  bezit_tabellen: string[];
8628
9106
  bron_commit: string | null;
@@ -8641,6 +9119,7 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
8641
9119
  inhoud_md: string;
8642
9120
  is_actueel: boolean;
8643
9121
  is_gearchiveerd: boolean;
9122
+ laatst_bevestigd_op: string | null;
8644
9123
  laatst_gecontroleerd_op: string | null;
8645
9124
  module_id: string;
8646
9125
  module_titel: string;
@@ -8650,6 +9129,7 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
8650
9129
  versie: number;
8651
9130
  };
8652
9131
  Insert: {
9132
+ bekende_risicos?: string[];
8653
9133
  bevindingen?: string | null;
8654
9134
  bezit_tabellen?: string[];
8655
9135
  bron_commit?: string | null;
@@ -8668,6 +9148,7 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
8668
9148
  inhoud_md: string;
8669
9149
  is_actueel?: boolean;
8670
9150
  is_gearchiveerd?: boolean;
9151
+ laatst_bevestigd_op?: string | null;
8671
9152
  laatst_gecontroleerd_op?: string | null;
8672
9153
  module_id: string;
8673
9154
  module_titel: string;
@@ -8677,6 +9158,7 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
8677
9158
  versie?: number;
8678
9159
  };
8679
9160
  Update: {
9161
+ bekende_risicos?: string[];
8680
9162
  bevindingen?: string | null;
8681
9163
  bezit_tabellen?: string[];
8682
9164
  bron_commit?: string | null;
@@ -8695,6 +9177,7 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
8695
9177
  inhoud_md?: string;
8696
9178
  is_actueel?: boolean;
8697
9179
  is_gearchiveerd?: boolean;
9180
+ laatst_bevestigd_op?: string | null;
8698
9181
  laatst_gecontroleerd_op?: string | null;
8699
9182
  module_id?: string;
8700
9183
  module_titel?: string;
@@ -8903,6 +9386,54 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
8903
9386
  };
8904
9387
  Relationships: [];
8905
9388
  };
9389
+ itk_offerte_werkbon_queue: {
9390
+ Row: {
9391
+ bron_werkbon_id: string | null;
9392
+ created_at: string;
9393
+ foutmelding: string | null;
9394
+ id: string;
9395
+ offerte_id: string;
9396
+ payload: import("../integrations/supabase/types").Json;
9397
+ status: string;
9398
+ updated_at: string;
9399
+ verwerkt_op: string | null;
9400
+ werkbon_id: string | null;
9401
+ werkbon_nummer: string | null;
9402
+ };
9403
+ Insert: {
9404
+ bron_werkbon_id?: string | null;
9405
+ created_at?: string;
9406
+ foutmelding?: string | null;
9407
+ id?: string;
9408
+ offerte_id: string;
9409
+ payload?: import("../integrations/supabase/types").Json;
9410
+ status?: string;
9411
+ updated_at?: string;
9412
+ verwerkt_op?: string | null;
9413
+ werkbon_id?: string | null;
9414
+ werkbon_nummer?: string | null;
9415
+ };
9416
+ Update: {
9417
+ bron_werkbon_id?: string | null;
9418
+ created_at?: string;
9419
+ foutmelding?: string | null;
9420
+ id?: string;
9421
+ offerte_id?: string;
9422
+ payload?: import("../integrations/supabase/types").Json;
9423
+ status?: string;
9424
+ updated_at?: string;
9425
+ verwerkt_op?: string | null;
9426
+ werkbon_id?: string | null;
9427
+ werkbon_nummer?: string | null;
9428
+ };
9429
+ Relationships: [{
9430
+ foreignKeyName: "itk_offerte_werkbon_queue_offerte_id_fkey";
9431
+ columns: ["offerte_id"];
9432
+ isOneToOne: false;
9433
+ referencedRelation: "itk_offertes";
9434
+ referencedColumns: ["id"];
9435
+ }];
9436
+ };
8906
9437
  itk_offertes: {
8907
9438
  Row: {
8908
9439
  ai_generated: boolean;
@@ -10088,6 +10619,36 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
10088
10619
  };
10089
10620
  Relationships: [];
10090
10621
  };
10622
+ logistics_floriday_push_refusals: {
10623
+ Row: {
10624
+ action: string | null;
10625
+ created_at: string;
10626
+ id: string;
10627
+ order_ref: string;
10628
+ reason: string;
10629
+ source_module: string | null;
10630
+ source_shell: string | null;
10631
+ };
10632
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
10651
+ };
10091
10652
  logistics_floriday_pushes: {
10092
10653
  Row: {
10093
10654
  attempts: number;
@@ -10163,6 +10724,42 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
10163
10724
  };
10164
10725
  Relationships: [];
10165
10726
  };
10727
+ logistics_floriday_status_sends: {
10728
+ Row: {
10729
+ action: string;
10730
+ created_at: string;
10731
+ detail: string | null;
10732
+ http_status: number | null;
10733
+ id: string;
10734
+ ok: boolean;
10735
+ order_ref: string;
10736
+ source_module: string | null;
10737
+ source_shell: string | null;
10738
+ };
10739
+ Insert: {
10740
+ action: string;
10741
+ created_at?: string;
10742
+ detail?: string | null;
10743
+ http_status?: number | null;
10744
+ id?: string;
10745
+ ok?: boolean;
10746
+ order_ref: string;
10747
+ source_module?: string | null;
10748
+ source_shell?: string | null;
10749
+ };
10750
+ Update: {
10751
+ action?: string;
10752
+ created_at?: string;
10753
+ detail?: string | null;
10754
+ http_status?: number | null;
10755
+ id?: string;
10756
+ ok?: boolean;
10757
+ order_ref?: string;
10758
+ source_module?: string | null;
10759
+ source_shell?: string | null;
10760
+ };
10761
+ Relationships: [];
10762
+ };
10166
10763
  logistics_formulas: {
10167
10764
  Row: {
10168
10765
  created_at: string;
@@ -10235,6 +10832,144 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
10235
10832
  };
10236
10833
  Relationships: [];
10237
10834
  };
10835
+ logistics_opening_exceptions: {
10836
+ Row: {
10837
+ closes: string | null;
10838
+ created_at: string;
10839
+ day: string;
10840
+ id: string;
10841
+ is_closed: boolean;
10842
+ note: string | null;
10843
+ opens: string | null;
10844
+ };
10845
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
10864
+ };
10865
+ logistics_opening_hours: {
10866
+ Row: {
10867
+ closes: string;
10868
+ created_at: string;
10869
+ id: string;
10870
+ is_active: boolean;
10871
+ note: string | null;
10872
+ opens: string;
10873
+ weekday: number;
10874
+ };
10875
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
10894
+ };
10895
+ logistics_order_merges: {
10896
+ Row: {
10897
+ group_key: string;
10898
+ id: string;
10899
+ items_moved: number;
10900
+ kept_order_id: string;
10901
+ kept_order_number: string | null;
10902
+ merged_at: string;
10903
+ merged_order_id: string;
10904
+ merged_order_number: string | null;
10905
+ sales_order_id: string | null;
10906
+ };
10907
+ Insert: {
10908
+ group_key: string;
10909
+ id?: string;
10910
+ items_moved?: number;
10911
+ kept_order_id: string;
10912
+ kept_order_number?: string | null;
10913
+ merged_at?: string;
10914
+ merged_order_id: string;
10915
+ merged_order_number?: string | null;
10916
+ sales_order_id?: string | null;
10917
+ };
10918
+ Update: {
10919
+ group_key?: string;
10920
+ id?: string;
10921
+ items_moved?: number;
10922
+ kept_order_id?: string;
10923
+ kept_order_number?: string | null;
10924
+ merged_at?: string;
10925
+ merged_order_id?: string;
10926
+ merged_order_number?: string | null;
10927
+ sales_order_id?: string | null;
10928
+ };
10929
+ Relationships: [];
10930
+ };
10931
+ logistics_pick_data_requests: {
10932
+ Row: {
10933
+ actions: import("../integrations/supabase/types").Json;
10934
+ created_at: string;
10935
+ event_id: string | null;
10936
+ finished_at: string | null;
10937
+ id: string;
10938
+ missing: import("../integrations/supabase/types").Json;
10939
+ order_ref: string;
10940
+ reason: string | null;
10941
+ result: import("../integrations/supabase/types").Json | null;
10942
+ status: string;
10943
+ unit_ref: string | null;
10944
+ };
10945
+ Insert: {
10946
+ actions?: import("../integrations/supabase/types").Json;
10947
+ created_at?: string;
10948
+ event_id?: string | null;
10949
+ finished_at?: string | null;
10950
+ id?: string;
10951
+ missing?: import("../integrations/supabase/types").Json;
10952
+ order_ref: string;
10953
+ reason?: string | null;
10954
+ result?: import("../integrations/supabase/types").Json | null;
10955
+ status?: string;
10956
+ unit_ref?: string | null;
10957
+ };
10958
+ Update: {
10959
+ actions?: import("../integrations/supabase/types").Json;
10960
+ created_at?: string;
10961
+ event_id?: string | null;
10962
+ finished_at?: string | null;
10963
+ id?: string;
10964
+ missing?: import("../integrations/supabase/types").Json;
10965
+ order_ref?: string;
10966
+ reason?: string | null;
10967
+ result?: import("../integrations/supabase/types").Json | null;
10968
+ status?: string;
10969
+ unit_ref?: string | null;
10970
+ };
10971
+ Relationships: [];
10972
+ };
10238
10973
  logistics_pickup_moments: {
10239
10974
  Row: {
10240
10975
  carrier_ref: string | null;
@@ -10271,6 +11006,30 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
10271
11006
  };
10272
11007
  Relationships: [];
10273
11008
  };
11009
+ logistics_plan_locks: {
11010
+ Row: {
11011
+ created_at: string;
11012
+ lock_key: string;
11013
+ locked_until: string;
11014
+ owner: string | null;
11015
+ updated_at: string;
11016
+ };
11017
+ Insert: {
11018
+ created_at?: string;
11019
+ lock_key: string;
11020
+ locked_until: string;
11021
+ owner?: string | null;
11022
+ updated_at?: string;
11023
+ };
11024
+ Update: {
11025
+ created_at?: string;
11026
+ lock_key?: string;
11027
+ locked_until?: string;
11028
+ owner?: string | null;
11029
+ updated_at?: string;
11030
+ };
11031
+ Relationships: [];
11032
+ };
10274
11033
  logistics_plan_queue: {
10275
11034
  Row: {
10276
11035
  attempts: number;
@@ -10694,6 +11453,69 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
10694
11453
  };
10695
11454
  Relationships: [];
10696
11455
  };
11456
+ logistics_slip_shipping_note: {
11457
+ Row: {
11458
+ attempts: number;
11459
+ batch_key: string | null;
11460
+ cart_id: string | null;
11461
+ created_at: string;
11462
+ error: string | null;
11463
+ error_code: string | null;
11464
+ fulfillment_order_id: string | null;
11465
+ id: string;
11466
+ locked_until: string | null;
11467
+ next_attempt_at: string | null;
11468
+ order_id: string | null;
11469
+ order_number: string | null;
11470
+ print_job_id: string | null;
11471
+ printer_id: string | null;
11472
+ retry_class: string | null;
11473
+ slip_job_id: string;
11474
+ status: string;
11475
+ updated_at: string;
11476
+ };
11477
+ Insert: {
11478
+ attempts?: number;
11479
+ batch_key?: string | null;
11480
+ cart_id?: string | null;
11481
+ created_at?: string;
11482
+ error?: string | null;
11483
+ error_code?: string | null;
11484
+ fulfillment_order_id?: string | null;
11485
+ id?: string;
11486
+ locked_until?: string | null;
11487
+ next_attempt_at?: string | null;
11488
+ order_id?: string | null;
11489
+ order_number?: string | null;
11490
+ print_job_id?: string | null;
11491
+ printer_id?: string | null;
11492
+ retry_class?: string | null;
11493
+ slip_job_id: string;
11494
+ status?: string;
11495
+ updated_at?: string;
11496
+ };
11497
+ Update: {
11498
+ attempts?: number;
11499
+ batch_key?: string | null;
11500
+ cart_id?: string | null;
11501
+ created_at?: string;
11502
+ error?: string | null;
11503
+ error_code?: string | null;
11504
+ fulfillment_order_id?: string | null;
11505
+ id?: string;
11506
+ locked_until?: string | null;
11507
+ next_attempt_at?: string | null;
11508
+ order_id?: string | null;
11509
+ order_number?: string | null;
11510
+ print_job_id?: string | null;
11511
+ printer_id?: string | null;
11512
+ retry_class?: string | null;
11513
+ slip_job_id?: string;
11514
+ status?: string;
11515
+ updated_at?: string;
11516
+ };
11517
+ Relationships: [];
11518
+ };
10697
11519
  logistics_staff_planning: {
10698
11520
  Row: {
10699
11521
  created_at: string;
@@ -11027,6 +11849,264 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
11027
11849
  };
11028
11850
  Relationships: [];
11029
11851
  };
11852
+ logistics_time_settings: {
11853
+ Row: {
11854
+ id: boolean;
11855
+ timezone: string;
11856
+ updated_at: string;
11857
+ };
11858
+ Insert: {
11859
+ id?: boolean;
11860
+ timezone: string;
11861
+ updated_at?: string;
11862
+ };
11863
+ Update: {
11864
+ id?: boolean;
11865
+ timezone?: string;
11866
+ updated_at?: string;
11867
+ };
11868
+ Relationships: [];
11869
+ };
11870
+ logistics_trace_events: {
11871
+ Row: {
11872
+ actor: string | null;
11873
+ attempts: number;
11874
+ calc: import("../integrations/supabase/types").Json | null;
11875
+ cart_ref: string | null;
11876
+ created_at: string;
11877
+ db_action: string | null;
11878
+ db_new: import("../integrations/supabase/types").Json | null;
11879
+ db_old: import("../integrations/supabase/types").Json | null;
11880
+ db_record: string | null;
11881
+ db_table: string | null;
11882
+ decision: string | null;
11883
+ duration_ms: number | null;
11884
+ error: string | null;
11885
+ error_class: string | null;
11886
+ external_action: string | null;
11887
+ external_ref: string | null;
11888
+ external_response: import("../integrations/supabase/types").Json | null;
11889
+ external_status: string | null;
11890
+ external_system: string | null;
11891
+ id: string;
11892
+ input: import("../integrations/supabase/types").Json | null;
11893
+ next_attempt_at: string | null;
11894
+ next_step: string | null;
11895
+ node_id: string | null;
11896
+ order_ref: string | null;
11897
+ order_source: string | null;
11898
+ output: import("../integrations/supabase/types").Json | null;
11899
+ phase: string;
11900
+ reads: import("../integrations/supabase/types").Json | null;
11901
+ reason: string | null;
11902
+ rule: string | null;
11903
+ slip_ref: string | null;
11904
+ status: string;
11905
+ step: string;
11906
+ trace_id: string;
11907
+ values_used: import("../integrations/supabase/types").Json | null;
11908
+ };
11909
+ Insert: {
11910
+ actor?: string | null;
11911
+ attempts?: number;
11912
+ calc?: import("../integrations/supabase/types").Json | null;
11913
+ cart_ref?: string | null;
11914
+ created_at?: string;
11915
+ db_action?: string | null;
11916
+ db_new?: import("../integrations/supabase/types").Json | null;
11917
+ db_old?: import("../integrations/supabase/types").Json | null;
11918
+ db_record?: string | null;
11919
+ db_table?: string | null;
11920
+ decision?: string | null;
11921
+ duration_ms?: number | null;
11922
+ error?: string | null;
11923
+ error_class?: string | null;
11924
+ external_action?: string | null;
11925
+ external_ref?: string | null;
11926
+ external_response?: import("../integrations/supabase/types").Json | null;
11927
+ external_status?: string | null;
11928
+ external_system?: string | null;
11929
+ id?: string;
11930
+ input?: import("../integrations/supabase/types").Json | null;
11931
+ next_attempt_at?: string | null;
11932
+ next_step?: string | null;
11933
+ node_id?: string | null;
11934
+ order_ref?: string | null;
11935
+ order_source?: string | null;
11936
+ output?: import("../integrations/supabase/types").Json | null;
11937
+ phase: string;
11938
+ reads?: import("../integrations/supabase/types").Json | null;
11939
+ reason?: string | null;
11940
+ rule?: string | null;
11941
+ slip_ref?: string | null;
11942
+ status: string;
11943
+ step: string;
11944
+ trace_id?: string;
11945
+ values_used?: import("../integrations/supabase/types").Json | null;
11946
+ };
11947
+ Update: {
11948
+ actor?: string | null;
11949
+ attempts?: number;
11950
+ calc?: import("../integrations/supabase/types").Json | null;
11951
+ cart_ref?: string | null;
11952
+ created_at?: string;
11953
+ db_action?: string | null;
11954
+ db_new?: import("../integrations/supabase/types").Json | null;
11955
+ db_old?: import("../integrations/supabase/types").Json | null;
11956
+ db_record?: string | null;
11957
+ db_table?: string | null;
11958
+ decision?: string | null;
11959
+ duration_ms?: number | null;
11960
+ error?: string | null;
11961
+ error_class?: string | null;
11962
+ external_action?: string | null;
11963
+ external_ref?: string | null;
11964
+ external_response?: import("../integrations/supabase/types").Json | null;
11965
+ external_status?: string | null;
11966
+ external_system?: string | null;
11967
+ id?: string;
11968
+ input?: import("../integrations/supabase/types").Json | null;
11969
+ next_attempt_at?: string | null;
11970
+ next_step?: string | null;
11971
+ node_id?: string | null;
11972
+ order_ref?: string | null;
11973
+ order_source?: string | null;
11974
+ output?: import("../integrations/supabase/types").Json | null;
11975
+ phase?: string;
11976
+ reads?: import("../integrations/supabase/types").Json | null;
11977
+ reason?: string | null;
11978
+ rule?: string | null;
11979
+ slip_ref?: string | null;
11980
+ status?: string;
11981
+ step?: string;
11982
+ trace_id?: string;
11983
+ values_used?: import("../integrations/supabase/types").Json | null;
11984
+ };
11985
+ Relationships: [];
11986
+ };
11987
+ logistics_trace_events_archive: {
11988
+ Row: {
11989
+ actor: string | null;
11990
+ attempts: number;
11991
+ calc: import("../integrations/supabase/types").Json | null;
11992
+ cart_ref: string | null;
11993
+ created_at: string;
11994
+ db_action: string | null;
11995
+ db_new: import("../integrations/supabase/types").Json | null;
11996
+ db_old: import("../integrations/supabase/types").Json | null;
11997
+ db_record: string | null;
11998
+ db_table: string | null;
11999
+ decision: string | null;
12000
+ duration_ms: number | null;
12001
+ error: string | null;
12002
+ error_class: string | null;
12003
+ external_action: string | null;
12004
+ external_ref: string | null;
12005
+ external_response: import("../integrations/supabase/types").Json | null;
12006
+ external_status: string | null;
12007
+ external_system: string | null;
12008
+ id: string;
12009
+ input: import("../integrations/supabase/types").Json | null;
12010
+ next_attempt_at: string | null;
12011
+ next_step: string | null;
12012
+ node_id: string | null;
12013
+ order_ref: string | null;
12014
+ order_source: string | null;
12015
+ output: import("../integrations/supabase/types").Json | null;
12016
+ phase: string;
12017
+ reads: import("../integrations/supabase/types").Json | null;
12018
+ reason: string | null;
12019
+ rule: string | null;
12020
+ slip_ref: string | null;
12021
+ status: string;
12022
+ step: string;
12023
+ superseded_at: string;
12024
+ superseded_reason: string | null;
12025
+ trace_id: string;
12026
+ values_used: import("../integrations/supabase/types").Json | null;
12027
+ };
12028
+ Insert: {
12029
+ actor?: string | null;
12030
+ attempts?: number;
12031
+ calc?: import("../integrations/supabase/types").Json | null;
12032
+ cart_ref?: string | null;
12033
+ created_at?: string;
12034
+ db_action?: string | null;
12035
+ db_new?: import("../integrations/supabase/types").Json | null;
12036
+ db_old?: import("../integrations/supabase/types").Json | null;
12037
+ db_record?: string | null;
12038
+ db_table?: string | null;
12039
+ decision?: string | null;
12040
+ duration_ms?: number | null;
12041
+ error?: string | null;
12042
+ error_class?: string | null;
12043
+ external_action?: string | null;
12044
+ external_ref?: string | null;
12045
+ external_response?: import("../integrations/supabase/types").Json | null;
12046
+ external_status?: string | null;
12047
+ external_system?: string | null;
12048
+ id?: string;
12049
+ input?: import("../integrations/supabase/types").Json | null;
12050
+ next_attempt_at?: string | null;
12051
+ next_step?: string | null;
12052
+ node_id?: string | null;
12053
+ order_ref?: string | null;
12054
+ order_source?: string | null;
12055
+ output?: import("../integrations/supabase/types").Json | null;
12056
+ phase: string;
12057
+ reads?: import("../integrations/supabase/types").Json | null;
12058
+ reason?: string | null;
12059
+ rule?: string | null;
12060
+ slip_ref?: string | null;
12061
+ status: string;
12062
+ step: string;
12063
+ superseded_at?: string;
12064
+ superseded_reason?: string | null;
12065
+ trace_id?: string;
12066
+ values_used?: import("../integrations/supabase/types").Json | null;
12067
+ };
12068
+ Update: {
12069
+ actor?: string | null;
12070
+ attempts?: number;
12071
+ calc?: import("../integrations/supabase/types").Json | null;
12072
+ cart_ref?: string | null;
12073
+ created_at?: string;
12074
+ db_action?: string | null;
12075
+ db_new?: import("../integrations/supabase/types").Json | null;
12076
+ db_old?: import("../integrations/supabase/types").Json | null;
12077
+ db_record?: string | null;
12078
+ db_table?: string | null;
12079
+ decision?: string | null;
12080
+ duration_ms?: number | null;
12081
+ error?: string | null;
12082
+ error_class?: string | null;
12083
+ external_action?: string | null;
12084
+ external_ref?: string | null;
12085
+ external_response?: import("../integrations/supabase/types").Json | null;
12086
+ external_status?: string | null;
12087
+ external_system?: string | null;
12088
+ id?: string;
12089
+ input?: import("../integrations/supabase/types").Json | null;
12090
+ next_attempt_at?: string | null;
12091
+ next_step?: string | null;
12092
+ node_id?: string | null;
12093
+ order_ref?: string | null;
12094
+ order_source?: string | null;
12095
+ output?: import("../integrations/supabase/types").Json | null;
12096
+ phase?: string;
12097
+ reads?: import("../integrations/supabase/types").Json | null;
12098
+ reason?: string | null;
12099
+ rule?: string | null;
12100
+ slip_ref?: string | null;
12101
+ status?: string;
12102
+ step?: string;
12103
+ superseded_at?: string;
12104
+ superseded_reason?: string | null;
12105
+ trace_id?: string;
12106
+ values_used?: import("../integrations/supabase/types").Json | null;
12107
+ };
12108
+ Relationships: [];
12109
+ };
11030
12110
  logistics_variables: {
11031
12111
  Row: {
11032
12112
  created_at: string;
@@ -11174,6 +12254,7 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
11174
12254
  has_attachments: boolean;
11175
12255
  id: string;
11176
12256
  message_id: string | null;
12257
+ preview: string | null;
11177
12258
  profile_id: string | null;
11178
12259
  raw_size: number | null;
11179
12260
  received_at: string | null;
@@ -11197,6 +12278,7 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
11197
12278
  has_attachments?: boolean;
11198
12279
  id?: string;
11199
12280
  message_id?: string | null;
12281
+ preview?: string | null;
11200
12282
  profile_id?: string | null;
11201
12283
  raw_size?: number | null;
11202
12284
  received_at?: string | null;
@@ -11220,6 +12302,7 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
11220
12302
  has_attachments?: boolean;
11221
12303
  id?: string;
11222
12304
  message_id?: string | null;
12305
+ preview?: string | null;
11223
12306
  profile_id?: string | null;
11224
12307
  raw_size?: number | null;
11225
12308
  received_at?: string | null;
@@ -11251,6 +12334,7 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
11251
12334
  };
11252
12335
  mailbox_order_proposals: {
11253
12336
  Row: {
12337
+ ai_ok: boolean | null;
11254
12338
  ai_validation: import("../integrations/supabase/types").Json | null;
11255
12339
  confidence: number | null;
11256
12340
  created_at: string;
@@ -11268,6 +12352,7 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
11268
12352
  updated_at: string;
11269
12353
  };
11270
12354
  Insert: {
12355
+ ai_ok?: boolean | null;
11271
12356
  ai_validation?: import("../integrations/supabase/types").Json | null;
11272
12357
  confidence?: number | null;
11273
12358
  created_at?: string;
@@ -11285,6 +12370,7 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
11285
12370
  updated_at?: string;
11286
12371
  };
11287
12372
  Update: {
12373
+ ai_ok?: boolean | null;
11288
12374
  ai_validation?: import("../integrations/supabase/types").Json | null;
11289
12375
  confidence?: number | null;
11290
12376
  created_at?: string;
@@ -13417,6 +14503,7 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
13417
14503
  customer_name: string;
13418
14504
  deleted_at: string | null;
13419
14505
  delivery_date: string | null;
14506
+ floriday_order_group_key: string | null;
13420
14507
  floriday_sales_order_id: string | null;
13421
14508
  id: string;
13422
14509
  invoice_due_at: string | null;
@@ -13444,6 +14531,7 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
13444
14531
  customer_name?: string;
13445
14532
  deleted_at?: string | null;
13446
14533
  delivery_date?: string | null;
14534
+ floriday_order_group_key?: string | null;
13447
14535
  floriday_sales_order_id?: string | null;
13448
14536
  id?: string;
13449
14537
  invoice_due_at?: string | null;
@@ -13471,6 +14559,7 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
13471
14559
  customer_name?: string;
13472
14560
  deleted_at?: string | null;
13473
14561
  delivery_date?: string | null;
14562
+ floriday_order_group_key?: string | null;
13474
14563
  floriday_sales_order_id?: string | null;
13475
14564
  id?: string;
13476
14565
  invoice_due_at?: string | null;
@@ -13664,6 +14753,27 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
13664
14753
  };
13665
14754
  Relationships: [];
13666
14755
  };
14756
+ pick_buffer_event_cursor: {
14757
+ Row: {
14758
+ created_at: string;
14759
+ id: boolean;
14760
+ last_event_at: string;
14761
+ updated_at: string;
14762
+ };
14763
+ Insert: {
14764
+ created_at?: string;
14765
+ id?: boolean;
14766
+ last_event_at?: string;
14767
+ updated_at?: string;
14768
+ };
14769
+ Update: {
14770
+ created_at?: string;
14771
+ id?: boolean;
14772
+ last_event_at?: string;
14773
+ updated_at?: string;
14774
+ };
14775
+ Relationships: [];
14776
+ };
13667
14777
  pick_countries: {
13668
14778
  Row: {
13669
14779
  active: boolean;
@@ -14750,6 +15860,123 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
14750
15860
  referencedColumns: ["id"];
14751
15861
  }];
14752
15862
  };
15863
+ price_list_rows: {
15864
+ Row: {
15865
+ action: string;
15866
+ created_at: string;
15867
+ id: string;
15868
+ message: string | null;
15869
+ parsed: import("../integrations/supabase/types").Json;
15870
+ price_list_id: string;
15871
+ raw: import("../integrations/supabase/types").Json;
15872
+ row_number: number;
15873
+ supplier_product_id: string | null;
15874
+ };
15875
+ Insert: {
15876
+ action?: string;
15877
+ created_at?: string;
15878
+ id?: string;
15879
+ message?: string | null;
15880
+ parsed?: import("../integrations/supabase/types").Json;
15881
+ price_list_id: string;
15882
+ raw?: import("../integrations/supabase/types").Json;
15883
+ row_number: number;
15884
+ supplier_product_id?: string | null;
15885
+ };
15886
+ Update: {
15887
+ action?: string;
15888
+ created_at?: string;
15889
+ id?: string;
15890
+ message?: string | null;
15891
+ parsed?: import("../integrations/supabase/types").Json;
15892
+ price_list_id?: string;
15893
+ raw?: import("../integrations/supabase/types").Json;
15894
+ row_number?: number;
15895
+ supplier_product_id?: string | null;
15896
+ };
15897
+ Relationships: [{
15898
+ foreignKeyName: "price_list_rows_price_list_id_fkey";
15899
+ columns: ["price_list_id"];
15900
+ isOneToOne: false;
15901
+ referencedRelation: "price_lists";
15902
+ referencedColumns: ["id"];
15903
+ }, {
15904
+ foreignKeyName: "price_list_rows_supplier_product_id_fkey";
15905
+ columns: ["supplier_product_id"];
15906
+ isOneToOne: false;
15907
+ referencedRelation: "supplier_products";
15908
+ referencedColumns: ["id"];
15909
+ }];
15910
+ };
15911
+ price_lists: {
15912
+ Row: {
15913
+ created_at: string;
15914
+ created_by: string | null;
15915
+ file_hash: string | null;
15916
+ file_name: string;
15917
+ file_path: string | null;
15918
+ headers: string[];
15919
+ id: string;
15920
+ preview: import("../integrations/supabase/types").Json;
15921
+ processed_at: string | null;
15922
+ reason: string | null;
15923
+ row_count: number;
15924
+ sheet_name: string | null;
15925
+ source: string;
15926
+ stats: import("../integrations/supabase/types").Json;
15927
+ status: string;
15928
+ supplier_guess: string | null;
15929
+ supplier_id: string | null;
15930
+ updated_at: string;
15931
+ };
15932
+ Insert: {
15933
+ created_at?: string;
15934
+ created_by?: string | null;
15935
+ file_hash?: string | null;
15936
+ file_name: string;
15937
+ file_path?: string | null;
15938
+ headers?: string[];
15939
+ id?: string;
15940
+ preview?: import("../integrations/supabase/types").Json;
15941
+ processed_at?: string | null;
15942
+ reason?: string | null;
15943
+ row_count?: number;
15944
+ sheet_name?: string | null;
15945
+ source?: string;
15946
+ stats?: import("../integrations/supabase/types").Json;
15947
+ status?: string;
15948
+ supplier_guess?: string | null;
15949
+ supplier_id?: string | null;
15950
+ updated_at?: string;
15951
+ };
15952
+ Update: {
15953
+ created_at?: string;
15954
+ created_by?: string | null;
15955
+ file_hash?: string | null;
15956
+ file_name?: string;
15957
+ file_path?: string | null;
15958
+ headers?: string[];
15959
+ id?: string;
15960
+ preview?: import("../integrations/supabase/types").Json;
15961
+ processed_at?: string | null;
15962
+ reason?: string | null;
15963
+ row_count?: number;
15964
+ sheet_name?: string | null;
15965
+ source?: string;
15966
+ stats?: import("../integrations/supabase/types").Json;
15967
+ status?: string;
15968
+ supplier_guess?: string | null;
15969
+ supplier_id?: string | null;
15970
+ updated_at?: string;
15971
+ };
15972
+ Relationships: [{
15973
+ foreignKeyName: "price_lists_supplier_id_fkey";
15974
+ columns: ["supplier_id"];
15975
+ isOneToOne: false;
15976
+ referencedRelation: "suppliers";
15977
+ referencedColumns: ["id"];
15978
+ }];
15979
+ };
14753
15980
  print_agents: {
14754
15981
  Row: {
14755
15982
  actief: boolean;
@@ -16307,34 +17534,112 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
16307
17534
  referencedColumns: ["id"];
16308
17535
  }];
16309
17536
  };
16310
- purchase_order_items: {
17537
+ purchase_order_dispatches: {
16311
17538
  Row: {
16312
17539
  created_at: string;
16313
17540
  id: string;
16314
- product_id: string | null;
16315
- product_type: string;
17541
+ last_error: string | null;
17542
+ outbox_id: string | null;
16316
17543
  purchase_order_id: string;
16317
- quantity: number;
17544
+ status: string;
17545
+ supplier_id: string | null;
17546
+ supplier_name: string;
17547
+ to_address: string;
17548
+ updated_at: string;
16318
17549
  };
16319
17550
  Insert: {
16320
17551
  created_at?: string;
16321
17552
  id?: string;
16322
- product_id?: string | null;
16323
- product_type?: string;
17553
+ last_error?: string | null;
17554
+ outbox_id?: string | null;
16324
17555
  purchase_order_id: string;
16325
- quantity?: number;
17556
+ status?: string;
17557
+ supplier_id?: string | null;
17558
+ supplier_name?: string;
17559
+ to_address: string;
17560
+ updated_at?: string;
16326
17561
  };
16327
17562
  Update: {
16328
17563
  created_at?: string;
16329
17564
  id?: string;
16330
- product_id?: string | null;
16331
- product_type?: string;
17565
+ last_error?: string | null;
17566
+ outbox_id?: string | null;
16332
17567
  purchase_order_id?: string;
16333
- quantity?: number;
17568
+ status?: string;
17569
+ supplier_id?: string | null;
17570
+ supplier_name?: string;
17571
+ to_address?: string;
17572
+ updated_at?: string;
16334
17573
  };
16335
17574
  Relationships: [{
16336
- foreignKeyName: "purchase_order_items_product_id_fkey";
16337
- columns: ["product_id"];
17575
+ foreignKeyName: "purchase_order_dispatches_purchase_order_id_fkey";
17576
+ columns: ["purchase_order_id"];
17577
+ isOneToOne: false;
17578
+ referencedRelation: "purchase_orders";
17579
+ referencedColumns: ["id"];
17580
+ }, {
17581
+ foreignKeyName: "purchase_order_dispatches_supplier_id_fkey";
17582
+ columns: ["supplier_id"];
17583
+ isOneToOne: false;
17584
+ referencedRelation: "suppliers";
17585
+ referencedColumns: ["id"];
17586
+ }];
17587
+ };
17588
+ purchase_order_items: {
17589
+ Row: {
17590
+ article_number: string | null;
17591
+ created_at: string;
17592
+ delivery_date: string | null;
17593
+ id: string;
17594
+ name: string;
17595
+ note: string | null;
17596
+ pot_size: string | null;
17597
+ product_id: string | null;
17598
+ product_type: string;
17599
+ purchase_order_id: string;
17600
+ quantity: number;
17601
+ supplier_id: string | null;
17602
+ supplier_product_id: string | null;
17603
+ unit_price_cents: number;
17604
+ updated_at: string;
17605
+ };
17606
+ Insert: {
17607
+ article_number?: string | null;
17608
+ created_at?: string;
17609
+ delivery_date?: string | null;
17610
+ id?: string;
17611
+ name?: string;
17612
+ note?: string | null;
17613
+ pot_size?: string | null;
17614
+ product_id?: string | null;
17615
+ product_type?: string;
17616
+ purchase_order_id: string;
17617
+ quantity?: number;
17618
+ supplier_id?: string | null;
17619
+ supplier_product_id?: string | null;
17620
+ unit_price_cents?: number;
17621
+ updated_at?: string;
17622
+ };
17623
+ Update: {
17624
+ article_number?: string | null;
17625
+ created_at?: string;
17626
+ delivery_date?: string | null;
17627
+ id?: string;
17628
+ name?: string;
17629
+ note?: string | null;
17630
+ pot_size?: string | null;
17631
+ product_id?: string | null;
17632
+ product_type?: string;
17633
+ purchase_order_id?: string;
17634
+ quantity?: number;
17635
+ supplier_id?: string | null;
17636
+ supplier_product_id?: string | null;
17637
+ unit_price_cents?: number;
17638
+ updated_at?: string;
17639
+ };
17640
+ Relationships: [{
17641
+ foreignKeyName: "purchase_order_items_product_id_fkey";
17642
+ columns: ["product_id"];
16338
17643
  isOneToOne: false;
16339
17644
  referencedRelation: "logistics_product_dimensions";
16340
17645
  referencedColumns: ["product_id"];
@@ -16350,43 +17655,70 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
16350
17655
  isOneToOne: false;
16351
17656
  referencedRelation: "purchase_orders";
16352
17657
  referencedColumns: ["id"];
17658
+ }, {
17659
+ foreignKeyName: "purchase_order_items_supplier_id_fkey";
17660
+ columns: ["supplier_id"];
17661
+ isOneToOne: false;
17662
+ referencedRelation: "suppliers";
17663
+ referencedColumns: ["id"];
17664
+ }, {
17665
+ foreignKeyName: "purchase_order_items_supplier_product_id_fkey";
17666
+ columns: ["supplier_product_id"];
17667
+ isOneToOne: false;
17668
+ referencedRelation: "supplier_products";
17669
+ referencedColumns: ["id"];
16353
17670
  }];
16354
17671
  };
16355
17672
  purchase_orders: {
16356
17673
  Row: {
17674
+ contact_person: string | null;
16357
17675
  created_at: string;
17676
+ created_by: string | null;
16358
17677
  expected_delivery_date: string;
16359
17678
  id: string;
16360
17679
  location_id: string | null;
16361
17680
  notes: string | null;
16362
17681
  order_number: string;
17682
+ reference: string | null;
17683
+ sent_at: string | null;
16363
17684
  status: string;
16364
17685
  supplier_id: string | null;
16365
17686
  supplier_name: string;
17687
+ total_cents: number;
16366
17688
  updated_at: string;
16367
17689
  };
16368
17690
  Insert: {
17691
+ contact_person?: string | null;
16369
17692
  created_at?: string;
16370
- expected_delivery_date: string;
17693
+ created_by?: string | null;
17694
+ expected_delivery_date?: string;
16371
17695
  id?: string;
16372
17696
  location_id?: string | null;
16373
17697
  notes?: string | null;
16374
- order_number: string;
17698
+ order_number?: string;
17699
+ reference?: string | null;
17700
+ sent_at?: string | null;
16375
17701
  status?: string;
16376
17702
  supplier_id?: string | null;
16377
17703
  supplier_name?: string;
17704
+ total_cents?: number;
16378
17705
  updated_at?: string;
16379
17706
  };
16380
17707
  Update: {
17708
+ contact_person?: string | null;
16381
17709
  created_at?: string;
17710
+ created_by?: string | null;
16382
17711
  expected_delivery_date?: string;
16383
17712
  id?: string;
16384
17713
  location_id?: string | null;
16385
17714
  notes?: string | null;
16386
17715
  order_number?: string;
17716
+ reference?: string | null;
17717
+ sent_at?: string | null;
16387
17718
  status?: string;
16388
17719
  supplier_id?: string | null;
16389
17720
  supplier_name?: string;
17721
+ total_cents?: number;
16390
17722
  updated_at?: string;
16391
17723
  };
16392
17724
  Relationships: [{
@@ -17273,15 +18605,160 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
17273
18605
  };
17274
18606
  Relationships: [];
17275
18607
  };
18608
+ supplier_contacts: {
18609
+ Row: {
18610
+ created_at: string;
18611
+ email: string | null;
18612
+ id: string;
18613
+ is_primary: boolean;
18614
+ name: string;
18615
+ phone: string | null;
18616
+ role: string | null;
18617
+ supplier_id: string;
18618
+ updated_at: string;
18619
+ };
18620
+ Insert: {
18621
+ created_at?: string;
18622
+ email?: string | null;
18623
+ id?: string;
18624
+ is_primary?: boolean;
18625
+ name: string;
18626
+ phone?: string | null;
18627
+ role?: string | null;
18628
+ supplier_id: string;
18629
+ updated_at?: string;
18630
+ };
18631
+ Update: {
18632
+ created_at?: string;
18633
+ email?: string | null;
18634
+ id?: string;
18635
+ is_primary?: boolean;
18636
+ name?: string;
18637
+ phone?: string | null;
18638
+ role?: string | null;
18639
+ supplier_id?: string;
18640
+ updated_at?: string;
18641
+ };
18642
+ Relationships: [{
18643
+ foreignKeyName: "supplier_contacts_supplier_id_fkey";
18644
+ columns: ["supplier_id"];
18645
+ isOneToOne: false;
18646
+ referencedRelation: "suppliers";
18647
+ referencedColumns: ["id"];
18648
+ }];
18649
+ };
18650
+ supplier_price_history: {
18651
+ Row: {
18652
+ created_at: string;
18653
+ id: string;
18654
+ new_price_cents: number;
18655
+ old_price_cents: number | null;
18656
+ price_list_id: string | null;
18657
+ supplier_id: string | null;
18658
+ supplier_product_id: string;
18659
+ };
18660
+ Insert: {
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
+ Update: {
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
+ Relationships: [{
18679
+ foreignKeyName: "supplier_price_history_price_list_id_fkey";
18680
+ columns: ["price_list_id"];
18681
+ isOneToOne: false;
18682
+ referencedRelation: "price_lists";
18683
+ referencedColumns: ["id"];
18684
+ }, {
18685
+ foreignKeyName: "supplier_price_history_supplier_product_id_fkey";
18686
+ columns: ["supplier_product_id"];
18687
+ isOneToOne: false;
18688
+ referencedRelation: "supplier_products";
18689
+ referencedColumns: ["id"];
18690
+ }];
18691
+ };
18692
+ supplier_price_list_mappings: {
18693
+ Row: {
18694
+ column_map: import("../integrations/supabase/types").Json;
18695
+ created_at: string;
18696
+ deactivate_missing: boolean;
18697
+ decimal_separator: string;
18698
+ expected_headers: string[];
18699
+ extract_pot_from_name: boolean;
18700
+ header_row: number;
18701
+ id: string;
18702
+ max_error_ratio: number;
18703
+ price_is_cents: boolean;
18704
+ sheet_name: string | null;
18705
+ supplier_id: string;
18706
+ updated_at: string;
18707
+ };
18708
+ Insert: {
18709
+ column_map?: import("../integrations/supabase/types").Json;
18710
+ created_at?: string;
18711
+ deactivate_missing?: boolean;
18712
+ decimal_separator?: string;
18713
+ expected_headers?: string[];
18714
+ extract_pot_from_name?: boolean;
18715
+ header_row?: number;
18716
+ id?: string;
18717
+ max_error_ratio?: number;
18718
+ price_is_cents?: boolean;
18719
+ sheet_name?: string | null;
18720
+ supplier_id: string;
18721
+ updated_at?: string;
18722
+ };
18723
+ Update: {
18724
+ column_map?: import("../integrations/supabase/types").Json;
18725
+ created_at?: string;
18726
+ deactivate_missing?: boolean;
18727
+ decimal_separator?: string;
18728
+ expected_headers?: string[];
18729
+ extract_pot_from_name?: boolean;
18730
+ header_row?: number;
18731
+ id?: string;
18732
+ max_error_ratio?: number;
18733
+ price_is_cents?: boolean;
18734
+ sheet_name?: string | null;
18735
+ supplier_id?: string;
18736
+ updated_at?: string;
18737
+ };
18738
+ Relationships: [{
18739
+ foreignKeyName: "supplier_price_list_mappings_supplier_id_fkey";
18740
+ columns: ["supplier_id"];
18741
+ isOneToOne: true;
18742
+ referencedRelation: "suppliers";
18743
+ referencedColumns: ["id"];
18744
+ }];
18745
+ };
17276
18746
  supplier_products: {
17277
18747
  Row: {
17278
18748
  article_number: string | null;
18749
+ available_quantity: number;
17279
18750
  created_at: string;
18751
+ height: string | null;
17280
18752
  id: string;
18753
+ is_active: boolean;
18754
+ min_order: number;
17281
18755
  name: string;
17282
18756
  notes: string | null;
18757
+ order_unit: number;
17283
18758
  pot_size: string | null;
17284
18759
  price: number | null;
18760
+ price_cents: number;
18761
+ quality: string | null;
17285
18762
  quantity: number | null;
17286
18763
  supplier_id: string;
17287
18764
  unit: string;
@@ -17289,12 +18766,19 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
17289
18766
  };
17290
18767
  Insert: {
17291
18768
  article_number?: string | null;
18769
+ available_quantity?: number;
17292
18770
  created_at?: string;
18771
+ height?: string | null;
17293
18772
  id?: string;
18773
+ is_active?: boolean;
18774
+ min_order?: number;
17294
18775
  name: string;
17295
18776
  notes?: string | null;
18777
+ order_unit?: number;
17296
18778
  pot_size?: string | null;
17297
18779
  price?: number | null;
18780
+ price_cents?: number;
18781
+ quality?: string | null;
17298
18782
  quantity?: number | null;
17299
18783
  supplier_id: string;
17300
18784
  unit?: string;
@@ -17302,12 +18786,19 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
17302
18786
  };
17303
18787
  Update: {
17304
18788
  article_number?: string | null;
18789
+ available_quantity?: number;
17305
18790
  created_at?: string;
18791
+ height?: string | null;
17306
18792
  id?: string;
18793
+ is_active?: boolean;
18794
+ min_order?: number;
17307
18795
  name?: string;
17308
18796
  notes?: string | null;
18797
+ order_unit?: number;
17309
18798
  pot_size?: string | null;
17310
18799
  price?: number | null;
18800
+ price_cents?: number;
18801
+ quality?: string | null;
17311
18802
  quantity?: number | null;
17312
18803
  supplier_id?: string;
17313
18804
  unit?: string;
@@ -17324,6 +18815,7 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
17324
18815
  suppliers: {
17325
18816
  Row: {
17326
18817
  address: string | null;
18818
+ category: string | null;
17327
18819
  column_mappings: import("../integrations/supabase/types").Json | null;
17328
18820
  contact_person: string | null;
17329
18821
  created_at: string;
@@ -17331,13 +18823,24 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
17331
18823
  email: string | null;
17332
18824
  id: string;
17333
18825
  imported_file_name: string | null;
18826
+ is_preferred: boolean;
18827
+ kvk_number: string | null;
18828
+ lead_time_days: number | null;
18829
+ min_order_amount_cents: number;
17334
18830
  name: string;
17335
18831
  notes: string | null;
18832
+ order_days: string[];
18833
+ order_email: string | null;
18834
+ payment_terms_days: number | null;
17336
18835
  phone: string | null;
18836
+ status: string;
17337
18837
  updated_at: string;
18838
+ vat_number: string | null;
18839
+ website: string | null;
17338
18840
  };
17339
18841
  Insert: {
17340
18842
  address?: string | null;
18843
+ category?: string | null;
17341
18844
  column_mappings?: import("../integrations/supabase/types").Json | null;
17342
18845
  contact_person?: string | null;
17343
18846
  created_at?: string;
@@ -17345,13 +18848,24 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
17345
18848
  email?: string | null;
17346
18849
  id?: string;
17347
18850
  imported_file_name?: string | null;
18851
+ is_preferred?: boolean;
18852
+ kvk_number?: string | null;
18853
+ lead_time_days?: number | null;
18854
+ min_order_amount_cents?: number;
17348
18855
  name: string;
17349
18856
  notes?: string | null;
18857
+ order_days?: string[];
18858
+ order_email?: string | null;
18859
+ payment_terms_days?: number | null;
17350
18860
  phone?: string | null;
18861
+ status?: string;
17351
18862
  updated_at?: string;
18863
+ vat_number?: string | null;
18864
+ website?: string | null;
17352
18865
  };
17353
18866
  Update: {
17354
18867
  address?: string | null;
18868
+ category?: string | null;
17355
18869
  column_mappings?: import("../integrations/supabase/types").Json | null;
17356
18870
  contact_person?: string | null;
17357
18871
  created_at?: string;
@@ -17359,10 +18873,20 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
17359
18873
  email?: string | null;
17360
18874
  id?: string;
17361
18875
  imported_file_name?: string | null;
18876
+ is_preferred?: boolean;
18877
+ kvk_number?: string | null;
18878
+ lead_time_days?: number | null;
18879
+ min_order_amount_cents?: number;
17362
18880
  name?: string;
17363
18881
  notes?: string | null;
18882
+ order_days?: string[];
18883
+ order_email?: string | null;
18884
+ payment_terms_days?: number | null;
17364
18885
  phone?: string | null;
18886
+ status?: string;
17365
18887
  updated_at?: string;
18888
+ vat_number?: string | null;
18889
+ website?: string | null;
17366
18890
  };
17367
18891
  Relationships: [];
17368
18892
  };
@@ -18364,11 +19888,13 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
18364
19888
  auto_invoice_trigger_statuses: string[];
18365
19889
  created_at: string;
18366
19890
  debtor_gl_account: string;
19891
+ default_article_code: string | null;
18367
19892
  default_credit_invoice_type: string | null;
18368
19893
  default_gl_account: string;
18369
19894
  default_invoice_type: string;
18370
19895
  default_payment_term_days: number;
18371
19896
  default_vat_code: string;
19897
+ email_purpose: string | null;
18372
19898
  home_country_code: string;
18373
19899
  invoice_enabled_ao: boolean;
18374
19900
  invoice_enabled_fo: boolean;
@@ -18390,11 +19916,13 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
18390
19916
  auto_invoice_trigger_statuses?: string[];
18391
19917
  created_at?: string;
18392
19918
  debtor_gl_account?: string;
19919
+ default_article_code?: string | null;
18393
19920
  default_credit_invoice_type?: string | null;
18394
19921
  default_gl_account?: string;
18395
19922
  default_invoice_type?: string;
18396
19923
  default_payment_term_days?: number;
18397
19924
  default_vat_code?: string;
19925
+ email_purpose?: string | null;
18398
19926
  home_country_code?: string;
18399
19927
  invoice_enabled_ao?: boolean;
18400
19928
  invoice_enabled_fo?: boolean;
@@ -18416,11 +19944,13 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
18416
19944
  auto_invoice_trigger_statuses?: string[];
18417
19945
  created_at?: string;
18418
19946
  debtor_gl_account?: string;
19947
+ default_article_code?: string | null;
18419
19948
  default_credit_invoice_type?: string | null;
18420
19949
  default_gl_account?: string;
18421
19950
  default_invoice_type?: string;
18422
19951
  default_payment_term_days?: number;
18423
19952
  default_vat_code?: string;
19953
+ email_purpose?: string | null;
18424
19954
  home_country_code?: string;
18425
19955
  invoice_enabled_ao?: boolean;
18426
19956
  invoice_enabled_fo?: boolean;
@@ -19313,6 +20843,36 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
19313
20843
  referencedColumns: ["id"];
19314
20844
  }];
19315
20845
  };
20846
+ voorraad_buffer_state: {
20847
+ Row: {
20848
+ buffer_id: string;
20849
+ buffer_key: string | null;
20850
+ closed_at: string | null;
20851
+ created_at: string;
20852
+ detached_orders: import("../integrations/supabase/types").Json;
20853
+ reason: string | null;
20854
+ updated_at: string;
20855
+ };
20856
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
20875
+ };
19316
20876
  voorraad_custom_fields: {
19317
20877
  Row: {
19318
20878
  created_at: string;
@@ -19355,6 +20915,36 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
19355
20915
  };
19356
20916
  Relationships: [];
19357
20917
  };
20918
+ voorraad_logistics_event_log: {
20919
+ Row: {
20920
+ created_at: string;
20921
+ event_id: string;
20922
+ event_type: string;
20923
+ order_ref: string | null;
20924
+ processed_at: string;
20925
+ result: import("../integrations/supabase/types").Json;
20926
+ updated_at: string;
20927
+ };
20928
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
20947
+ };
19358
20948
  voorraad_media_upload_failures: {
19359
20949
  Row: {
19360
20950
  action: string;
@@ -19622,15 +21212,51 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
19622
21212
  referencedColumns: ["id"];
19623
21213
  }];
19624
21214
  };
19625
- werkbon_export_runs: {
21215
+ werkbon_email_state: {
19626
21216
  Row: {
19627
21217
  created_at: string;
19628
- created_by: string | null;
19629
- filename: string | null;
21218
+ event_id: string;
19630
21219
  id: string;
19631
- werkbon_ids: string[];
19632
- };
19633
- Insert: {
21220
+ is_archived: boolean;
21221
+ is_read: boolean;
21222
+ updated_at: string;
21223
+ werkbon_id: string | null;
21224
+ };
21225
+ Insert: {
21226
+ created_at?: string;
21227
+ event_id: string;
21228
+ id?: string;
21229
+ is_archived?: boolean;
21230
+ is_read?: boolean;
21231
+ updated_at?: string;
21232
+ werkbon_id?: string | null;
21233
+ };
21234
+ Update: {
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
+ Relationships: [{
21244
+ foreignKeyName: "werkbon_email_state_event_id_fkey";
21245
+ columns: ["event_id"];
21246
+ isOneToOne: true;
21247
+ referencedRelation: "email_auth_events";
21248
+ referencedColumns: ["id"];
21249
+ }];
21250
+ };
21251
+ werkbon_export_runs: {
21252
+ Row: {
21253
+ created_at: string;
21254
+ created_by: string | null;
21255
+ filename: string | null;
21256
+ id: string;
21257
+ werkbon_ids: string[];
21258
+ };
21259
+ Insert: {
19634
21260
  created_at?: string;
19635
21261
  created_by?: string | null;
19636
21262
  filename?: string | null;
@@ -19775,6 +21401,147 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
19775
21401
  };
19776
21402
  Relationships: [];
19777
21403
  };
21404
+ werkbon_mail_ai_settings: {
21405
+ Row: {
21406
+ created_at: string;
21407
+ id: boolean;
21408
+ required_fields: string[];
21409
+ system_prompt: string;
21410
+ updated_at: string;
21411
+ updated_by: string | null;
21412
+ };
21413
+ Insert: {
21414
+ created_at?: string;
21415
+ id?: boolean;
21416
+ required_fields?: string[];
21417
+ system_prompt?: string;
21418
+ updated_at?: string;
21419
+ updated_by?: string | null;
21420
+ };
21421
+ Update: {
21422
+ created_at?: string;
21423
+ id?: boolean;
21424
+ required_fields?: string[];
21425
+ system_prompt?: string;
21426
+ updated_at?: string;
21427
+ updated_by?: string | null;
21428
+ };
21429
+ Relationships: [];
21430
+ };
21431
+ werkbon_mail_bodies: {
21432
+ Row: {
21433
+ created_at: string;
21434
+ event_id: string;
21435
+ fetch_error: string | null;
21436
+ fetched_at: string | null;
21437
+ html: string | null;
21438
+ updated_at: string;
21439
+ };
21440
+ Insert: {
21441
+ created_at?: string;
21442
+ event_id: string;
21443
+ fetch_error?: string | null;
21444
+ fetched_at?: string | null;
21445
+ html?: string | null;
21446
+ updated_at?: string;
21447
+ };
21448
+ Update: {
21449
+ created_at?: string;
21450
+ event_id?: string;
21451
+ fetch_error?: string | null;
21452
+ fetched_at?: string | null;
21453
+ html?: string | null;
21454
+ updated_at?: string;
21455
+ };
21456
+ Relationships: [];
21457
+ };
21458
+ werkbon_mail_inline_assets: {
21459
+ Row: {
21460
+ content_id: string | null;
21461
+ created_at: string;
21462
+ event_id: string;
21463
+ filename: string | null;
21464
+ id: string;
21465
+ is_inline: boolean;
21466
+ mime_type: string | null;
21467
+ size_bytes: number | null;
21468
+ storage_path: string;
21469
+ };
21470
+ Insert: {
21471
+ content_id?: string | null;
21472
+ created_at?: string;
21473
+ event_id: string;
21474
+ filename?: string | null;
21475
+ id?: string;
21476
+ is_inline?: boolean;
21477
+ mime_type?: string | null;
21478
+ size_bytes?: number | null;
21479
+ storage_path: string;
21480
+ };
21481
+ Update: {
21482
+ content_id?: string | null;
21483
+ created_at?: string;
21484
+ event_id?: string;
21485
+ filename?: string | null;
21486
+ id?: string;
21487
+ is_inline?: boolean;
21488
+ mime_type?: string | null;
21489
+ size_bytes?: number | null;
21490
+ storage_path?: string;
21491
+ };
21492
+ Relationships: [];
21493
+ };
21494
+ werkbon_mail_settings: {
21495
+ Row: {
21496
+ connection_id: string | null;
21497
+ connection_ids: string[];
21498
+ created_at: string;
21499
+ id: boolean;
21500
+ purposes: string[];
21501
+ source: string;
21502
+ updated_at: string;
21503
+ };
21504
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
21523
+ };
21524
+ werkbon_mail_user_settings: {
21525
+ Row: {
21526
+ created_at: string;
21527
+ email_purpose: string | null;
21528
+ updated_at: string;
21529
+ user_id: string;
21530
+ };
21531
+ Insert: {
21532
+ created_at?: string;
21533
+ email_purpose?: string | null;
21534
+ updated_at?: string;
21535
+ user_id: string;
21536
+ };
21537
+ Update: {
21538
+ created_at?: string;
21539
+ email_purpose?: string | null;
21540
+ updated_at?: string;
21541
+ user_id?: string;
21542
+ };
21543
+ Relationships: [];
21544
+ };
19778
21545
  werkbon_materials: {
19779
21546
  Row: {
19780
21547
  article_number: string | null;
@@ -20114,141 +21881,302 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
20114
21881
  referencedColumns: ["id"];
20115
21882
  }];
20116
21883
  };
20117
- werkbon_time_logs: {
21884
+ werkbon_proposal_lines: {
20118
21885
  Row: {
20119
- activity: string;
21886
+ article_number: string | null;
20120
21887
  created_at: string;
20121
- ended_at: string | null;
21888
+ description: string | null;
20122
21889
  id: string;
21890
+ line_type: string;
20123
21891
  note: string | null;
20124
- started_at: string;
20125
- user_id: string;
20126
- werkbon_id: string;
21892
+ package_id: string | null;
21893
+ proposal_id: string;
21894
+ quantity: number | null;
21895
+ sort_order: number;
21896
+ unit: string | null;
21897
+ updated_at: string;
20127
21898
  };
20128
21899
  Insert: {
20129
- activity: string;
21900
+ article_number?: string | null;
20130
21901
  created_at?: string;
20131
- ended_at?: string | null;
21902
+ description?: string | null;
20132
21903
  id?: string;
21904
+ line_type?: string;
20133
21905
  note?: string | null;
20134
- started_at?: string;
20135
- user_id: string;
20136
- werkbon_id: string;
21906
+ package_id?: string | null;
21907
+ proposal_id: string;
21908
+ quantity?: number | null;
21909
+ sort_order?: number;
21910
+ unit?: string | null;
21911
+ updated_at?: string;
20137
21912
  };
20138
21913
  Update: {
20139
- activity?: string;
21914
+ article_number?: string | null;
20140
21915
  created_at?: string;
20141
- ended_at?: string | null;
21916
+ description?: string | null;
20142
21917
  id?: string;
21918
+ line_type?: string;
20143
21919
  note?: string | null;
20144
- started_at?: string;
20145
- user_id?: string;
20146
- werkbon_id?: string;
21920
+ package_id?: string | null;
21921
+ proposal_id?: string;
21922
+ quantity?: number | null;
21923
+ sort_order?: number;
21924
+ unit?: string | null;
21925
+ updated_at?: string;
20147
21926
  };
20148
21927
  Relationships: [{
20149
- foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
20150
- columns: ["werkbon_id"];
20151
- isOneToOne: false;
20152
- referencedRelation: "werkbonnen";
20153
- referencedColumns: ["id"];
20154
- }, {
20155
- foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
20156
- columns: ["werkbon_id"];
21928
+ foreignKeyName: "werkbon_proposal_lines_proposal_id_fkey";
21929
+ columns: ["proposal_id"];
20157
21930
  isOneToOne: false;
20158
- referencedRelation: "wo_overview";
21931
+ referencedRelation: "werkbon_proposals";
20159
21932
  referencedColumns: ["id"];
20160
21933
  }];
20161
21934
  };
20162
- werkbonnen: {
21935
+ werkbon_proposals: {
20163
21936
  Row: {
20164
- assigned_user_id: string | null;
21937
+ analysed: boolean;
20165
21938
  budget_mandate_cents: number;
20166
21939
  complaint_description: string | null;
21940
+ contact_id: string | null;
20167
21941
  created_at: string;
20168
- created_by: string | null;
21942
+ created_werkbon_id: string | null;
20169
21943
  customer_id: string | null;
21944
+ deadline_date: string | null;
21945
+ estimated_days: number | null;
21946
+ estimated_duration_minutes: number | null;
21947
+ event_id: string;
21948
+ external_id: string | null;
20170
21949
  externe_referentie: string | null;
20171
- extra_costs_cents: number;
20172
- first_time_fix: boolean | null;
21950
+ from_email: string | null;
21951
+ from_name: string | null;
20173
21952
  id: string;
20174
21953
  internal_notes: string | null;
20175
- needs_detail_review: boolean;
20176
- parent_werkbon_id: string | null;
20177
- parsed_payload: import("../integrations/supabase/types").Json | null;
20178
- planning_status: string;
20179
- project_number: string | null;
20180
- review_reasons: string[];
21954
+ parsed_payload: import("../integrations/supabase/types").Json;
21955
+ received_at: string | null;
21956
+ reviewed_at: string | null;
21957
+ reviewed_by: string | null;
20181
21958
  room_number: string | null;
20182
21959
  scheduled_end_time: string | null;
20183
21960
  scheduled_start_time: string | null;
20184
- sequence_number: number;
20185
- signature_accepted_at: string | null;
20186
- signature_by_user_id: string | null;
20187
- signature_name: string | null;
20188
- source_email_meta: import("../integrations/supabase/types").Json | null;
20189
- source_mailbox_message_id: string | null;
20190
- source_pdf_path: string | null;
20191
- source_type: string;
20192
21961
  status: string;
21962
+ subject: string | null;
20193
21963
  technician_id: string | null;
20194
- technician_notes: string | null;
20195
- technician_notes_raw: string | null;
20196
21964
  technician_task_description: string | null;
20197
21965
  updated_at: string;
20198
- version: number;
20199
21966
  work_address: string | null;
20200
21967
  };
20201
21968
  Insert: {
20202
- assigned_user_id?: string | null;
21969
+ analysed?: boolean;
20203
21970
  budget_mandate_cents?: number;
20204
21971
  complaint_description?: string | null;
21972
+ contact_id?: string | null;
20205
21973
  created_at?: string;
20206
- created_by?: string | null;
21974
+ created_werkbon_id?: string | null;
20207
21975
  customer_id?: string | null;
21976
+ deadline_date?: string | null;
21977
+ estimated_days?: number | null;
21978
+ estimated_duration_minutes?: number | null;
21979
+ event_id: string;
21980
+ external_id?: string | null;
20208
21981
  externe_referentie?: string | null;
20209
- extra_costs_cents?: number;
20210
- first_time_fix?: boolean | null;
21982
+ from_email?: string | null;
21983
+ from_name?: string | null;
20211
21984
  id?: string;
20212
21985
  internal_notes?: string | null;
20213
- needs_detail_review?: boolean;
20214
- parent_werkbon_id?: string | null;
20215
- parsed_payload?: import("../integrations/supabase/types").Json | null;
20216
- planning_status?: string;
20217
- project_number?: string | null;
20218
- review_reasons?: string[];
21986
+ parsed_payload?: import("../integrations/supabase/types").Json;
21987
+ received_at?: string | null;
21988
+ reviewed_at?: string | null;
21989
+ reviewed_by?: string | null;
20219
21990
  room_number?: string | null;
20220
21991
  scheduled_end_time?: string | null;
20221
21992
  scheduled_start_time?: string | null;
20222
- sequence_number: number;
20223
- signature_accepted_at?: string | null;
20224
- signature_by_user_id?: string | null;
20225
- signature_name?: string | null;
20226
- source_email_meta?: import("../integrations/supabase/types").Json | null;
20227
- source_mailbox_message_id?: string | null;
20228
- source_pdf_path?: string | null;
20229
- source_type?: string;
20230
21993
  status?: string;
21994
+ subject?: string | null;
20231
21995
  technician_id?: string | null;
20232
- technician_notes?: string | null;
20233
- technician_notes_raw?: string | null;
20234
21996
  technician_task_description?: string | null;
20235
21997
  updated_at?: string;
20236
- version?: number;
20237
21998
  work_address?: string | null;
20238
21999
  };
20239
22000
  Update: {
20240
- assigned_user_id?: string | null;
22001
+ analysed?: boolean;
20241
22002
  budget_mandate_cents?: number;
20242
22003
  complaint_description?: string | null;
22004
+ contact_id?: string | null;
20243
22005
  created_at?: string;
20244
- created_by?: string | null;
22006
+ created_werkbon_id?: string | null;
20245
22007
  customer_id?: string | null;
22008
+ deadline_date?: string | null;
22009
+ estimated_days?: number | null;
22010
+ estimated_duration_minutes?: number | null;
22011
+ event_id?: string;
22012
+ external_id?: string | null;
20246
22013
  externe_referentie?: string | null;
20247
- extra_costs_cents?: number;
20248
- first_time_fix?: boolean | null;
22014
+ from_email?: string | null;
22015
+ from_name?: string | null;
20249
22016
  id?: string;
20250
22017
  internal_notes?: string | null;
20251
- needs_detail_review?: boolean;
22018
+ parsed_payload?: import("../integrations/supabase/types").Json;
22019
+ received_at?: string | null;
22020
+ reviewed_at?: string | null;
22021
+ reviewed_by?: string | null;
22022
+ room_number?: string | null;
22023
+ scheduled_end_time?: string | null;
22024
+ scheduled_start_time?: string | null;
22025
+ status?: string;
22026
+ subject?: string | null;
22027
+ technician_id?: string | null;
22028
+ technician_task_description?: string | null;
22029
+ updated_at?: string;
22030
+ work_address?: string | null;
22031
+ };
22032
+ Relationships: [];
22033
+ };
22034
+ werkbon_time_logs: {
22035
+ Row: {
22036
+ activity: string;
22037
+ created_at: string;
22038
+ ended_at: string | null;
22039
+ id: string;
22040
+ note: string | null;
22041
+ started_at: string;
22042
+ user_id: string;
22043
+ werkbon_id: string;
22044
+ };
22045
+ Insert: {
22046
+ activity: string;
22047
+ created_at?: string;
22048
+ ended_at?: string | null;
22049
+ id?: string;
22050
+ note?: string | null;
22051
+ started_at?: string;
22052
+ user_id: string;
22053
+ werkbon_id: string;
22054
+ };
22055
+ Update: {
22056
+ activity?: string;
22057
+ created_at?: string;
22058
+ ended_at?: string | null;
22059
+ id?: string;
22060
+ note?: string | null;
22061
+ started_at?: string;
22062
+ user_id?: string;
22063
+ werkbon_id?: string;
22064
+ };
22065
+ Relationships: [{
22066
+ foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
22067
+ columns: ["werkbon_id"];
22068
+ isOneToOne: false;
22069
+ referencedRelation: "werkbonnen";
22070
+ referencedColumns: ["id"];
22071
+ }, {
22072
+ foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
22073
+ columns: ["werkbon_id"];
22074
+ isOneToOne: false;
22075
+ referencedRelation: "wo_overview";
22076
+ referencedColumns: ["id"];
22077
+ }];
22078
+ };
22079
+ werkbonnen: {
22080
+ Row: {
22081
+ assigned_user_id: string | null;
22082
+ budget_mandate_cents: number;
22083
+ complaint_description: string | null;
22084
+ created_at: string;
22085
+ created_by: string | null;
22086
+ customer_id: string | null;
22087
+ deadline_date: string | null;
22088
+ estimated_days: number | null;
22089
+ estimated_duration_minutes: number | null;
22090
+ externe_referentie: string | null;
22091
+ extra_costs_cents: number;
22092
+ first_time_fix: boolean | null;
22093
+ id: string;
22094
+ internal_notes: string | null;
22095
+ needs_detail_review: boolean;
22096
+ parent_werkbon_id: string | null;
22097
+ parsed_payload: import("../integrations/supabase/types").Json | null;
22098
+ planning_status: string;
22099
+ project_number: string | null;
22100
+ review_reasons: string[];
22101
+ room_number: string | null;
22102
+ scheduled_end_time: string | null;
22103
+ scheduled_start_time: string | null;
22104
+ sequence_number: number;
22105
+ signature_accepted_at: string | null;
22106
+ signature_by_user_id: string | null;
22107
+ signature_name: string | null;
22108
+ source_email_meta: import("../integrations/supabase/types").Json | null;
22109
+ source_mailbox_message_id: string | null;
22110
+ source_pdf_path: string | null;
22111
+ source_type: string;
22112
+ status: string;
22113
+ technician_id: string | null;
22114
+ technician_notes: string | null;
22115
+ technician_notes_raw: string | null;
22116
+ technician_task_description: string | null;
22117
+ updated_at: string;
22118
+ version: number;
22119
+ work_address: string | null;
22120
+ workday_hours: number | null;
22121
+ };
22122
+ Insert: {
22123
+ assigned_user_id?: string | null;
22124
+ budget_mandate_cents?: number;
22125
+ complaint_description?: string | null;
22126
+ created_at?: string;
22127
+ created_by?: string | null;
22128
+ customer_id?: string | null;
22129
+ deadline_date?: string | null;
22130
+ estimated_days?: number | null;
22131
+ estimated_duration_minutes?: number | null;
22132
+ externe_referentie?: string | null;
22133
+ extra_costs_cents?: number;
22134
+ first_time_fix?: boolean | null;
22135
+ id?: string;
22136
+ internal_notes?: string | null;
22137
+ needs_detail_review?: boolean;
22138
+ parent_werkbon_id?: string | null;
22139
+ parsed_payload?: import("../integrations/supabase/types").Json | null;
22140
+ planning_status?: string;
22141
+ project_number?: string | null;
22142
+ review_reasons?: string[];
22143
+ room_number?: string | null;
22144
+ scheduled_end_time?: string | null;
22145
+ scheduled_start_time?: string | null;
22146
+ sequence_number: number;
22147
+ signature_accepted_at?: string | null;
22148
+ signature_by_user_id?: string | null;
22149
+ signature_name?: string | null;
22150
+ source_email_meta?: import("../integrations/supabase/types").Json | null;
22151
+ source_mailbox_message_id?: string | null;
22152
+ source_pdf_path?: string | null;
22153
+ source_type?: string;
22154
+ status?: string;
22155
+ technician_id?: string | null;
22156
+ technician_notes?: string | null;
22157
+ technician_notes_raw?: string | null;
22158
+ technician_task_description?: string | null;
22159
+ updated_at?: string;
22160
+ version?: number;
22161
+ work_address?: string | null;
22162
+ workday_hours?: number | null;
22163
+ };
22164
+ Update: {
22165
+ assigned_user_id?: string | null;
22166
+ budget_mandate_cents?: number;
22167
+ complaint_description?: string | null;
22168
+ created_at?: string;
22169
+ created_by?: string | null;
22170
+ customer_id?: string | null;
22171
+ deadline_date?: string | null;
22172
+ estimated_days?: number | null;
22173
+ estimated_duration_minutes?: number | null;
22174
+ externe_referentie?: string | null;
22175
+ extra_costs_cents?: number;
22176
+ first_time_fix?: boolean | null;
22177
+ id?: string;
22178
+ internal_notes?: string | null;
22179
+ needs_detail_review?: boolean;
20252
22180
  parent_werkbon_id?: string | null;
20253
22181
  parsed_payload?: import("../integrations/supabase/types").Json | null;
20254
22182
  planning_status?: string;
@@ -20273,6 +22201,7 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
20273
22201
  updated_at?: string;
20274
22202
  version?: number;
20275
22203
  work_address?: string | null;
22204
+ workday_hours?: number | null;
20276
22205
  };
20277
22206
  Relationships: [{
20278
22207
  foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
@@ -21477,6 +23406,10 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
21477
23406
  };
21478
23407
  Returns: string;
21479
23408
  };
23409
+ backfill_cart_numbers_day_seq: {
23410
+ Args: never;
23411
+ Returns: number;
23412
+ };
21480
23413
  backfill_open_order_reservations: {
21481
23414
  Args: never;
21482
23415
  Returns: {
@@ -21515,6 +23448,15 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
21515
23448
  Args: never;
21516
23449
  Returns: boolean;
21517
23450
  };
23451
+ cancel_open_print_jobs: {
23452
+ Args: {
23453
+ _cutoff: string;
23454
+ };
23455
+ Returns: {
23456
+ extern_job_id: string;
23457
+ id: string;
23458
+ }[];
23459
+ };
21518
23460
  check_offer_product_available_stock: {
21519
23461
  Args: {
21520
23462
  p_campaign_product_id: string;
@@ -21954,8 +23896,6 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
21954
23896
  cart_index: number;
21955
23897
  cart_number: string;
21956
23898
  cart_number_id: string;
21957
- cart_seq: number;
21958
- cart_total: number;
21959
23899
  order_id: string;
21960
23900
  order_number: string;
21961
23901
  order_source: string;
@@ -22180,6 +24120,17 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
22180
24120
  };
22181
24121
  Returns: boolean;
22182
24122
  };
24123
+ floriday_adopt_connection: {
24124
+ Args: {
24125
+ p_new: string;
24126
+ p_old: string;
24127
+ };
24128
+ Returns: import("../integrations/supabase/types").Json;
24129
+ };
24130
+ floriday_autoheal_connections: {
24131
+ Args: never;
24132
+ Returns: import("../integrations/supabase/types").Json;
24133
+ };
22183
24134
  floriday_capture_stock_snapshot: {
22184
24135
  Args: never;
22185
24136
  Returns: number;
@@ -22237,6 +24188,12 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
22237
24188
  };
22238
24189
  Returns: undefined;
22239
24190
  };
24191
+ floriday_relink_products: {
24192
+ Args: {
24193
+ p_connection_id?: string;
24194
+ };
24195
+ Returns: import("../integrations/supabase/types").Json;
24196
+ };
22240
24197
  floriday_requeue_dead_letters: {
22241
24198
  Args: {
22242
24199
  p_connection_id?: string;
@@ -22459,6 +24416,27 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
22459
24416
  Args: never;
22460
24417
  Returns: string;
22461
24418
  };
24419
+ handover_afspraak_intrekken: {
24420
+ Args: {
24421
+ _sleutel: string;
24422
+ };
24423
+ Returns: boolean;
24424
+ };
24425
+ handover_afspraak_zetten: {
24426
+ Args: {
24427
+ _besluit: string;
24428
+ _item: string;
24429
+ _modules: string[];
24430
+ _sleutel: string;
24431
+ _soort: string;
24432
+ _versie_vingerafdruk: string;
24433
+ };
24434
+ Returns: boolean;
24435
+ };
24436
+ handover_afspraken: {
24437
+ Args: never;
24438
+ Returns: import("../integrations/supabase/types").Json;
24439
+ };
22462
24440
  handover_archief_lijst: {
22463
24441
  Args: never;
22464
24442
  Returns: import("../integrations/supabase/types").Json;
@@ -22476,6 +24454,12 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
22476
24454
  };
22477
24455
  Returns: boolean;
22478
24456
  };
24457
+ handover_check_afronden_na_scan: {
24458
+ Args: {
24459
+ _module_ids: string[];
24460
+ };
24461
+ Returns: number;
24462
+ };
22479
24463
  handover_check_markeren: {
22480
24464
  Args: {
22481
24465
  _module_ids: string[];
@@ -22519,6 +24503,14 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
22519
24503
  };
22520
24504
  Returns: boolean;
22521
24505
  };
24506
+ handover_md_bron_zetten: {
24507
+ Args: {
24508
+ _md: boolean;
24509
+ _module_id: string;
24510
+ _pad?: string;
24511
+ };
24512
+ Returns: boolean;
24513
+ };
22522
24514
  handover_module_meta_zetten: {
22523
24515
  Args: {
22524
24516
  _module_id: string;
@@ -22527,6 +24519,24 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
22527
24519
  };
22528
24520
  Returns: boolean;
22529
24521
  };
24522
+ handover_naam_zetten: {
24523
+ Args: {
24524
+ _bron_repo?: string;
24525
+ _module_id: string;
24526
+ _weergavenaam?: string;
24527
+ };
24528
+ Returns: boolean;
24529
+ };
24530
+ handover_namen: {
24531
+ Args: never;
24532
+ Returns: import("../integrations/supabase/types").Json;
24533
+ };
24534
+ handover_nieuw_gezien: {
24535
+ Args: {
24536
+ _module_id: string;
24537
+ };
24538
+ Returns: boolean;
24539
+ };
22530
24540
  handover_norm_naam: {
22531
24541
  Args: {
22532
24542
  _naam: string;
@@ -22563,6 +24573,24 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
22563
24573
  _versie_label?: string;
22564
24574
  };
22565
24575
  Returns: import("../integrations/supabase/types").Json;
24576
+ } | {
24577
+ Args: {
24578
+ _bekende_risicos?: string[];
24579
+ _bezit_tabellen?: string[];
24580
+ _bron_soort?: string;
24581
+ _commit?: string;
24582
+ _contractfuncties?: string[];
24583
+ _inhoud_md: string;
24584
+ _laatst_bevestigd_op?: string;
24585
+ _module_id: string;
24586
+ _module_titel: string;
24587
+ _ontbrekende_contracten?: string[];
24588
+ _pad?: string;
24589
+ _repo?: string;
24590
+ _samenvatting?: string;
24591
+ _versie_label?: string;
24592
+ };
24593
+ Returns: import("../integrations/supabase/types").Json;
22566
24594
  };
22567
24595
  handover_publish_via_token: {
22568
24596
  Args: {
@@ -22660,6 +24688,27 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
22660
24688
  Args: never;
22661
24689
  Returns: boolean;
22662
24690
  };
24691
+ inkoop_apply_price_list: {
24692
+ Args: {
24693
+ _price_list_id: string;
24694
+ _rows: import("../integrations/supabase/types").Json;
24695
+ };
24696
+ Returns: import("../integrations/supabase/types").Json;
24697
+ };
24698
+ inkoop_next_order_number: {
24699
+ Args: never;
24700
+ Returns: string;
24701
+ };
24702
+ inkoop_send_order: {
24703
+ Args: {
24704
+ _order_id: string;
24705
+ };
24706
+ Returns: {
24707
+ outbox_id: string;
24708
+ supplier_name: string;
24709
+ to_address: string;
24710
+ }[];
24711
+ };
22663
24712
  instructie_get: {
22664
24713
  Args: {
22665
24714
  _sleutel: string;
@@ -22719,6 +24768,13 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
22719
24768
  };
22720
24769
  Returns: import("../integrations/supabase/types").Json;
22721
24770
  };
24771
+ invoice_source_lines: {
24772
+ Args: {
24773
+ _source_id: string;
24774
+ _source_type: string;
24775
+ };
24776
+ Returns: import("../integrations/supabase/types").Json;
24777
+ };
22722
24778
  is_authenticated: {
22723
24779
  Args: never;
22724
24780
  Returns: boolean;
@@ -22858,6 +24914,10 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
22858
24914
  };
22859
24915
  Returns: string;
22860
24916
  };
24917
+ logistics_active_layout_method: {
24918
+ Args: never;
24919
+ Returns: string;
24920
+ };
22861
24921
  logistics_active_pick_workdays: {
22862
24922
  Args: never;
22863
24923
  Returns: string[];
@@ -23032,6 +25092,12 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
23032
25092
  };
23033
25093
  Returns: string;
23034
25094
  };
25095
+ logistics_cart_checkin_at: {
25096
+ Args: {
25097
+ p_cart_id: string;
25098
+ };
25099
+ Returns: string;
25100
+ };
23035
25101
  logistics_cart_handled: {
23036
25102
  Args: {
23037
25103
  p_cart_index: number;
@@ -23065,10 +25131,22 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
23065
25131
  task_status: string;
23066
25132
  }[];
23067
25133
  };
25134
+ logistics_cart_is_full: {
25135
+ Args: {
25136
+ p_cart_id: string;
25137
+ };
25138
+ Returns: boolean;
25139
+ };
23068
25140
  logistics_cart_layout_method: {
23069
25141
  Args: never;
23070
25142
  Returns: import("../integrations/supabase/types").Json;
23071
25143
  };
25144
+ logistics_cart_order_refs: {
25145
+ Args: {
25146
+ p_cart_id: string;
25147
+ };
25148
+ Returns: string[];
25149
+ };
23072
25150
  logistics_cart_plan_overview: {
23073
25151
  Args: {
23074
25152
  p_days?: number;
@@ -23088,6 +25166,24 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
23088
25166
  };
23089
25167
  Returns: import("../integrations/supabase/types").Json;
23090
25168
  };
25169
+ logistics_cart_plan_status_core: {
25170
+ Args: {
25171
+ p_ref: string;
25172
+ };
25173
+ Returns: import("../integrations/supabase/types").Json;
25174
+ };
25175
+ logistics_cart_release_reason: {
25176
+ Args: {
25177
+ p_cart_id: string;
25178
+ };
25179
+ Returns: string;
25180
+ };
25181
+ logistics_cart_released: {
25182
+ Args: {
25183
+ p_cart_id: string;
25184
+ };
25185
+ Returns: boolean;
25186
+ };
23091
25187
  logistics_cart_seq: {
23092
25188
  Args: {
23093
25189
  p_order_uuid?: string;
@@ -23138,6 +25234,10 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
23138
25234
  unit_ref: string;
23139
25235
  }[];
23140
25236
  };
25237
+ logistics_carts_per_print: {
25238
+ Args: never;
25239
+ Returns: number;
25240
+ };
23141
25241
  logistics_check_order_allowed: {
23142
25242
  Args: {
23143
25243
  p_lines: import("../integrations/supabase/types").Json;
@@ -23241,6 +25341,16 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
23241
25341
  isSetofReturn: false;
23242
25342
  };
23243
25343
  };
25344
+ logistics_cleanup_orphan_print_jobs: {
25345
+ Args: never;
25346
+ Returns: import("../integrations/supabase/types").Json;
25347
+ };
25348
+ logistics_cleanup_tasks: {
25349
+ Args: {
25350
+ p_limit?: number;
25351
+ };
25352
+ Returns: import("../integrations/supabase/types").Json;
25353
+ };
23244
25354
  logistics_complete_task: {
23245
25355
  Args: {
23246
25356
  p_result?: import("../integrations/supabase/types").Json;
@@ -23303,6 +25413,12 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
23303
25413
  station_carts: number;
23304
25414
  }[];
23305
25415
  };
25416
+ logistics_control_complete_cart: {
25417
+ Args: {
25418
+ p_cart_id: string;
25419
+ };
25420
+ Returns: number;
25421
+ };
23306
25422
  logistics_control_scan_approve: {
23307
25423
  Args: {
23308
25424
  p_allow_reprint?: boolean;
@@ -23382,6 +25498,15 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
23382
25498
  Args: never;
23383
25499
  Returns: import("../integrations/supabase/types").Json;
23384
25500
  };
25501
+ logistics_day_windows: {
25502
+ Args: {
25503
+ p_day: string;
25504
+ };
25505
+ Returns: {
25506
+ win_end: string;
25507
+ win_start: string;
25508
+ }[];
25509
+ };
23385
25510
  logistics_delay_customer_email: {
23386
25511
  Args: {
23387
25512
  p_customer: string;
@@ -23449,6 +25574,17 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
23449
25574
  };
23450
25575
  Returns: import("../integrations/supabase/types").Json;
23451
25576
  };
25577
+ logistics_enqueue_shipping_note_with_slip: {
25578
+ Args: {
25579
+ _cart_id: string;
25580
+ _is_herprint: boolean;
25581
+ _printer_id: string;
25582
+ _queue_item_id: string;
25583
+ _session_id: string;
25584
+ _slip_job_id: string;
25585
+ };
25586
+ Returns: string;
25587
+ };
23452
25588
  logistics_enqueue_sticker_with_slip: {
23453
25589
  Args: {
23454
25590
  _cart_id: string;
@@ -23466,6 +25602,20 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
23466
25602
  };
23467
25603
  Returns: string;
23468
25604
  };
25605
+ logistics_ensure_pick_data: {
25606
+ Args: {
25607
+ p_event_id?: string;
25608
+ p_missing?: import("../integrations/supabase/types").Json;
25609
+ p_ref: string;
25610
+ };
25611
+ Returns: import("../integrations/supabase/types").Json;
25612
+ };
25613
+ logistics_ensure_shipping_notes: {
25614
+ Args: {
25615
+ p_limit?: number;
25616
+ };
25617
+ Returns: import("../integrations/supabase/types").Json;
25618
+ };
23469
25619
  logistics_fail_task: {
23470
25620
  Args: {
23471
25621
  p_error: string;
@@ -23511,6 +25661,10 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
23511
25661
  isSetofReturn: false;
23512
25662
  };
23513
25663
  };
25664
+ logistics_fix_wrong_shipping_notes: {
25665
+ Args: never;
25666
+ Returns: import("../integrations/supabase/types").Json;
25667
+ };
23514
25668
  logistics_floriday_cart_plan: {
23515
25669
  Args: {
23516
25670
  p_order_id: string;
@@ -23538,6 +25692,10 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
23538
25692
  revision: number;
23539
25693
  }[];
23540
25694
  };
25695
+ logistics_floriday_delivery_note_create_enabled: {
25696
+ Args: never;
25697
+ Returns: boolean;
25698
+ };
23541
25699
  logistics_floriday_finish_push: {
23542
25700
  Args: {
23543
25701
  _error?: string;
@@ -23587,6 +25745,38 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
23587
25745
  };
23588
25746
  Returns: string;
23589
25747
  };
25748
+ logistics_floriday_gate_status: {
25749
+ Args: never;
25750
+ Returns: import("../integrations/supabase/types").Json;
25751
+ };
25752
+ logistics_floriday_log_refusal: {
25753
+ Args: {
25754
+ _action?: string;
25755
+ _module?: string;
25756
+ _order_ref: string;
25757
+ _reason: string;
25758
+ _shell?: string;
25759
+ };
25760
+ Returns: undefined;
25761
+ };
25762
+ logistics_floriday_log_send: {
25763
+ Args: {
25764
+ _action: string;
25765
+ _detail?: string;
25766
+ _http_status?: number;
25767
+ _module?: string;
25768
+ _ok: boolean;
25769
+ _order_ref: string;
25770
+ _shell?: string;
25771
+ };
25772
+ Returns: undefined;
25773
+ };
25774
+ logistics_floriday_order_approved: {
25775
+ Args: {
25776
+ _order_ref: string;
25777
+ };
25778
+ Returns: boolean;
25779
+ };
23590
25780
  logistics_floriday_prune_pushes: {
23591
25781
  Args: {
23592
25782
  _days?: number;
@@ -23601,6 +25791,20 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
23601
25791
  };
23602
25792
  Returns: string;
23603
25793
  };
25794
+ logistics_floriday_status_updates_enabled: {
25795
+ Args: never;
25796
+ Returns: boolean;
25797
+ };
25798
+ logistics_floriday_stock_updates_enabled: {
25799
+ Args: never;
25800
+ Returns: boolean;
25801
+ };
25802
+ logistics_floriday_write_allowed: {
25803
+ Args: {
25804
+ _action: string;
25805
+ };
25806
+ Returns: boolean;
25807
+ };
23604
25808
  logistics_fulfill_barcode_requests: {
23605
25809
  Args: {
23606
25810
  p_limit?: number;
@@ -23621,6 +25825,10 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
23621
25825
  };
23622
25826
  Returns: boolean;
23623
25827
  };
25828
+ logistics_layout_method_status: {
25829
+ Args: never;
25830
+ Returns: import("../integrations/supabase/types").Json;
25831
+ };
23624
25832
  logistics_link_order_items: {
23625
25833
  Args: {
23626
25834
  p_order?: string;
@@ -23639,6 +25847,22 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
23639
25847
  };
23640
25848
  Returns: number;
23641
25849
  };
25850
+ logistics_merge_floriday_lines: {
25851
+ Args: {
25852
+ p_order_id: string;
25853
+ };
25854
+ Returns: string;
25855
+ };
25856
+ logistics_merge_lines_enabled: {
25857
+ Args: never;
25858
+ Returns: boolean;
25859
+ };
25860
+ logistics_merge_partial_carts: {
25861
+ Args: {
25862
+ p_limit?: number;
25863
+ };
25864
+ Returns: import("../integrations/supabase/types").Json;
25865
+ };
23642
25866
  logistics_next_workday_date: {
23643
25867
  Args: {
23644
25868
  p_date: string;
@@ -23665,12 +25889,50 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
23665
25889
  };
23666
25890
  Returns: string;
23667
25891
  };
25892
+ logistics_opening_timezone: {
25893
+ Args: never;
25894
+ Returns: string;
25895
+ };
25896
+ logistics_order_cart_approval: {
25897
+ Args: {
25898
+ _order_ref: string;
25899
+ };
25900
+ Returns: {
25901
+ approved: number;
25902
+ total: number;
25903
+ }[];
25904
+ };
23668
25905
  logistics_order_cart_count: {
23669
25906
  Args: {
23670
25907
  p_order_ref: string;
23671
25908
  };
23672
25909
  Returns: number;
23673
25910
  };
25911
+ logistics_order_changed: {
25912
+ Args: {
25913
+ p_order_id: string;
25914
+ p_reason?: string;
25915
+ };
25916
+ Returns: undefined;
25917
+ };
25918
+ logistics_order_documents_ready: {
25919
+ Args: {
25920
+ p_order_ref: string;
25921
+ };
25922
+ Returns: import("../integrations/supabase/types").Json;
25923
+ };
25924
+ logistics_order_documents_ready_bool: {
25925
+ Args: {
25926
+ p_order_ref: string;
25927
+ };
25928
+ Returns: boolean;
25929
+ };
25930
+ logistics_order_frozen: {
25931
+ Args: {
25932
+ p_order_id: string;
25933
+ };
25934
+ Returns: boolean;
25935
+ };
23674
25936
  logistics_order_handled: {
23675
25937
  Args: {
23676
25938
  p_order_uuid: string;
@@ -23684,6 +25946,18 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
23684
25946
  };
23685
25947
  Returns: boolean;
23686
25948
  };
25949
+ logistics_order_merge_key: {
25950
+ Args: {
25951
+ p_group_key: string;
25952
+ };
25953
+ Returns: string;
25954
+ };
25955
+ logistics_order_mergeable: {
25956
+ Args: {
25957
+ p_order_id: string;
25958
+ };
25959
+ Returns: boolean;
25960
+ };
23687
25961
  logistics_order_overview: {
23688
25962
  Args: {
23689
25963
  p_from?: string;
@@ -23721,6 +25995,12 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
23721
25995
  };
23722
25996
  Returns: string;
23723
25997
  };
25998
+ logistics_payload_is_floriday: {
25999
+ Args: {
26000
+ _payload: import("../integrations/supabase/types").Json;
26001
+ };
26002
+ Returns: boolean;
26003
+ };
23724
26004
  logistics_pick_agenda: {
23725
26005
  Args: {
23726
26006
  p_from?: string;
@@ -23749,6 +26029,10 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
23749
26029
  Args: never;
23750
26030
  Returns: import("../integrations/supabase/types").Json;
23751
26031
  };
26032
+ logistics_pick_partial_mode: {
26033
+ Args: never;
26034
+ Returns: string;
26035
+ };
23752
26036
  logistics_pick_start_estimate: {
23753
26037
  Args: {
23754
26038
  p_order: import("../integrations/supabase/types").Json;
@@ -23798,6 +26082,12 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
23798
26082
  order_id: string;
23799
26083
  }[];
23800
26084
  };
26085
+ logistics_plan_defer: {
26086
+ Args: {
26087
+ p_id: string;
26088
+ };
26089
+ Returns: undefined;
26090
+ };
23801
26091
  logistics_plan_enqueue: {
23802
26092
  Args: {
23803
26093
  p_order_id: string;
@@ -23811,6 +26101,18 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
23811
26101
  };
23812
26102
  Returns: boolean;
23813
26103
  };
26104
+ logistics_plan_error_class: {
26105
+ Args: {
26106
+ p_error: string;
26107
+ };
26108
+ Returns: string;
26109
+ };
26110
+ logistics_plan_error_text: {
26111
+ Args: {
26112
+ p_error: string;
26113
+ };
26114
+ Returns: string;
26115
+ };
23814
26116
  logistics_plan_finish: {
23815
26117
  Args: {
23816
26118
  p_error?: string;
@@ -23839,14 +26141,80 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
23839
26141
  Args: never;
23840
26142
  Returns: undefined;
23841
26143
  };
26144
+ logistics_plan_lock_acquire: {
26145
+ Args: {
26146
+ _key: string;
26147
+ _owner?: string;
26148
+ _ttl_seconds?: number;
26149
+ };
26150
+ Returns: boolean;
26151
+ };
26152
+ logistics_plan_lock_release: {
26153
+ Args: {
26154
+ _key: string;
26155
+ _owner?: string;
26156
+ };
26157
+ Returns: undefined;
26158
+ };
26159
+ logistics_plan_progress: {
26160
+ Args: {
26161
+ p_refs: string[];
26162
+ };
26163
+ Returns: {
26164
+ cart_plan_ready: boolean;
26165
+ cart_plan_reason: string;
26166
+ cart_plan_released: boolean;
26167
+ plan_progress: number;
26168
+ plan_state: string;
26169
+ plan_state_since: string;
26170
+ unit_ref: string;
26171
+ }[];
26172
+ };
26173
+ logistics_plan_progress_pct: {
26174
+ Args: {
26175
+ p_order_id: string;
26176
+ };
26177
+ Returns: number;
26178
+ };
23842
26179
  logistics_plan_prune: {
23843
26180
  Args: never;
23844
26181
  Returns: number;
23845
26182
  };
26183
+ logistics_plan_queue_list: {
26184
+ Args: {
26185
+ p_limit?: number;
26186
+ };
26187
+ Returns: {
26188
+ attempts: number;
26189
+ claimed_at: string;
26190
+ customer_name: string;
26191
+ enqueued_at: string;
26192
+ error_class: string;
26193
+ error_raw: string;
26194
+ error_text: string;
26195
+ id: string;
26196
+ max_attempts: number;
26197
+ next_attempt_at: string;
26198
+ order_created_at: string;
26199
+ order_id: string;
26200
+ order_number: string;
26201
+ progress_pct: number;
26202
+ reason: string;
26203
+ stand: string;
26204
+ status: string;
26205
+ updated_at: string;
26206
+ }[];
26207
+ };
23846
26208
  logistics_plan_release_stale: {
23847
26209
  Args: never;
23848
26210
  Returns: number;
23849
26211
  };
26212
+ logistics_plan_reset_queue: {
26213
+ Args: {
26214
+ p_scope?: string;
26215
+ };
26216
+ Returns: number;
26217
+ };
23850
26218
  logistics_plan_retry: {
23851
26219
  Args: {
23852
26220
  p_order_ids: string[];
@@ -23860,6 +26228,22 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
23860
26228
  };
23861
26229
  Returns: number;
23862
26230
  };
26231
+ logistics_plan_state_for: {
26232
+ Args: {
26233
+ p_ref: string;
26234
+ };
26235
+ Returns: import("../integrations/supabase/types").Json;
26236
+ };
26237
+ logistics_plan_timeout_running: {
26238
+ Args: never;
26239
+ Returns: number;
26240
+ };
26241
+ logistics_prepare_pick_documents: {
26242
+ Args: {
26243
+ p_limit?: number;
26244
+ };
26245
+ Returns: import("../integrations/supabase/types").Json;
26246
+ };
23863
26247
  logistics_prune_buffer_member_queue: {
23864
26248
  Args: never;
23865
26249
  Returns: number;
@@ -23900,12 +26284,42 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
23900
26284
  Args: never;
23901
26285
  Returns: import("../integrations/supabase/types").Json;
23902
26286
  };
26287
+ logistics_refresh_pick_queue_status: {
26288
+ Args: {
26289
+ p_ref: string;
26290
+ };
26291
+ Returns: number;
26292
+ };
23903
26293
  logistics_refresh_pickup_moments: {
23904
26294
  Args: {
23905
26295
  p_weeks?: number;
23906
26296
  };
23907
26297
  Returns: import("../integrations/supabase/types").Json;
23908
26298
  };
26299
+ logistics_refresh_plan_state: {
26300
+ Args: {
26301
+ p_limit?: number;
26302
+ };
26303
+ Returns: import("../integrations/supabase/types").Json;
26304
+ };
26305
+ logistics_replan_all: {
26306
+ Args: {
26307
+ p_reason?: string;
26308
+ };
26309
+ Returns: import("../integrations/supabase/types").Json;
26310
+ };
26311
+ logistics_replan_all_force: {
26312
+ Args: {
26313
+ p_reason?: string;
26314
+ };
26315
+ Returns: import("../integrations/supabase/types").Json;
26316
+ };
26317
+ logistics_replan_order_journey: {
26318
+ Args: {
26319
+ p_order_ref: string;
26320
+ };
26321
+ Returns: import("../integrations/supabase/types").Json;
26322
+ };
23909
26323
  logistics_report_delay: {
23910
26324
  Args: {
23911
26325
  p_expected_date?: string;
@@ -24008,95 +26422,361 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
24008
26422
  };
24009
26423
  Returns: import("../integrations/supabase/types").Json;
24010
26424
  };
24011
- logistics_scan_delays: {
24012
- Args: never;
24013
- Returns: number;
24014
- };
24015
- logistics_scan_order_stock: {
26425
+ logistics_scan_delays: {
26426
+ Args: never;
26427
+ Returns: number;
26428
+ };
26429
+ logistics_scan_order_stock: {
26430
+ Args: {
26431
+ p_order_id: string;
26432
+ };
26433
+ Returns: string;
26434
+ };
26435
+ logistics_scan_resolve: {
26436
+ Args: {
26437
+ p_code: string;
26438
+ };
26439
+ Returns: import("../integrations/supabase/types").Json;
26440
+ };
26441
+ logistics_schedule_tasks: {
26442
+ Args: never;
26443
+ Returns: number;
26444
+ } | {
26445
+ Args: {
26446
+ p_order_ref?: string;
26447
+ };
26448
+ Returns: number;
26449
+ };
26450
+ logistics_set_order_priority: {
26451
+ Args: {
26452
+ p_order_ref: string;
26453
+ p_priority: number;
26454
+ p_user_id?: string;
26455
+ };
26456
+ Returns: number;
26457
+ };
26458
+ logistics_set_pick_day: {
26459
+ Args: {
26460
+ p_order_ref: string;
26461
+ p_pick_day: string;
26462
+ };
26463
+ Returns: import("../integrations/supabase/types").Json;
26464
+ };
26465
+ logistics_shift_to_workday: {
26466
+ Args: {
26467
+ p_days: string[];
26468
+ p_ts: string;
26469
+ };
26470
+ Returns: string;
26471
+ };
26472
+ logistics_shipping_note_diagnose: {
26473
+ Args: {
26474
+ p_order_number: string;
26475
+ };
26476
+ Returns: import("../integrations/supabase/types").Json;
26477
+ };
26478
+ logistics_shipping_note_follows_slip: {
26479
+ Args: never;
26480
+ Returns: boolean;
26481
+ };
26482
+ logistics_shipping_note_from_barcode: {
26483
+ Args: {
26484
+ p_allow_reprint?: boolean;
26485
+ p_barcode: string;
26486
+ p_station_id?: string;
26487
+ };
26488
+ Returns: import("../integrations/supabase/types").Json;
26489
+ };
26490
+ logistics_shipping_note_job_for_slip: {
26491
+ Args: {
26492
+ _slip_job_id: string;
26493
+ };
26494
+ Returns: string;
26495
+ };
26496
+ logistics_shipping_notes_wake_all: {
26497
+ Args: never;
26498
+ Returns: import("../integrations/supabase/types").Json;
26499
+ };
26500
+ logistics_slip_is_floriday: {
26501
+ Args: {
26502
+ _slip_job_id: string;
26503
+ };
26504
+ Returns: boolean;
26505
+ };
26506
+ logistics_slip_note_claim: {
26507
+ Args: {
26508
+ _lease_seconds?: number;
26509
+ _limit?: number;
26510
+ };
26511
+ Returns: {
26512
+ attempts: number;
26513
+ batch_key: string | null;
26514
+ cart_id: string | null;
26515
+ created_at: string;
26516
+ error: string | null;
26517
+ error_code: string | null;
26518
+ fulfillment_order_id: string | null;
26519
+ id: string;
26520
+ locked_until: string | null;
26521
+ next_attempt_at: string | null;
26522
+ order_id: string | null;
26523
+ order_number: string | null;
26524
+ print_job_id: string | null;
26525
+ printer_id: string | null;
26526
+ retry_class: string | null;
26527
+ slip_job_id: string;
26528
+ status: string;
26529
+ updated_at: string;
26530
+ }[];
26531
+ SetofOptions: {
26532
+ from: "*";
26533
+ to: "logistics_slip_shipping_note";
26534
+ isOneToOne: false;
26535
+ isSetofReturn: true;
26536
+ };
26537
+ };
26538
+ logistics_slip_note_finish: {
26539
+ Args: {
26540
+ _error?: string;
26541
+ _error_code?: string;
26542
+ _fulfillment_order_id?: string;
26543
+ _id: string;
26544
+ _ok: boolean;
26545
+ _print_job_id?: string;
26546
+ _status?: string;
26547
+ };
26548
+ Returns: undefined;
26549
+ };
26550
+ logistics_slip_note_keep_waiting: {
26551
+ Args: {
26552
+ _class?: string;
26553
+ _id: string;
26554
+ _reason: string;
26555
+ };
26556
+ Returns: undefined;
26557
+ };
26558
+ logistics_sticker_follows_slip: {
26559
+ Args: never;
26560
+ Returns: boolean;
26561
+ };
26562
+ logistics_subtract_working_minutes: {
26563
+ Args: {
26564
+ p_deadline: string;
26565
+ p_max_workdays?: number;
26566
+ p_minutes: number;
26567
+ };
26568
+ Returns: import("../integrations/supabase/types").Json;
26569
+ };
26570
+ logistics_supersede_stale_tasks: {
26571
+ Args: {
26572
+ p_keep: string[];
26573
+ p_order_ref: string;
26574
+ p_run_id: string;
26575
+ p_user_id: string;
26576
+ };
26577
+ Returns: number;
26578
+ };
26579
+ logistics_sync_pick_queue: {
26580
+ Args: never;
26581
+ Returns: import("../integrations/supabase/types").Json;
26582
+ };
26583
+ logistics_sync_task_carriers: {
26584
+ Args: {
26585
+ p_order_ref?: string;
26586
+ };
26587
+ Returns: number;
26588
+ };
26589
+ logistics_task_owner: {
26590
+ Args: {
26591
+ p_task_type: string;
26592
+ };
26593
+ Returns: string;
26594
+ };
26595
+ logistics_task_pick_minutes: {
26596
+ Args: {
26597
+ p_payload: import("../integrations/supabase/types").Json;
26598
+ p_settings: import("../integrations/supabase/types").Json;
26599
+ };
26600
+ Returns: number;
26601
+ };
26602
+ logistics_task_retention_days: {
26603
+ Args: never;
26604
+ Returns: number;
26605
+ };
26606
+ logistics_tick_ping: {
26607
+ Args: never;
26608
+ Returns: string;
26609
+ };
26610
+ logistics_timezone_options: {
26611
+ Args: never;
26612
+ Returns: {
26613
+ name: string;
26614
+ }[];
26615
+ };
26616
+ logistics_trace: {
26617
+ Args: {
26618
+ p: import("../integrations/supabase/types").Json;
26619
+ };
26620
+ Returns: string;
26621
+ };
26622
+ logistics_trace_all_orders: {
26623
+ Args: {
26624
+ p_limit?: number;
26625
+ p_search?: string;
26626
+ };
26627
+ Returns: import("../integrations/supabase/types").Json;
26628
+ };
26629
+ logistics_trace_archive_order: {
26630
+ Args: {
26631
+ p_order_ref: string;
26632
+ p_reason: string;
26633
+ };
26634
+ Returns: number;
26635
+ };
26636
+ logistics_trace_batch: {
26637
+ Args: {
26638
+ p: import("../integrations/supabase/types").Json;
26639
+ };
26640
+ Returns: number;
26641
+ };
26642
+ logistics_trace_derive: {
26643
+ Args: {
26644
+ p: import("../integrations/supabase/types").Json;
26645
+ };
26646
+ Returns: number;
26647
+ };
26648
+ logistics_trace_node: {
26649
+ Args: {
26650
+ p_op?: string;
26651
+ p_status?: string;
26652
+ p_table: string;
26653
+ };
26654
+ Returns: string;
26655
+ };
26656
+ logistics_trace_order_journey_start: {
26657
+ Args: {
26658
+ p_order_id: string;
26659
+ p_reason?: string;
26660
+ };
26661
+ Returns: string;
26662
+ };
26663
+ logistics_trace_order_origin: {
26664
+ Args: {
26665
+ p_order_id: string;
26666
+ };
26667
+ Returns: undefined;
26668
+ };
26669
+ logistics_trace_order_overview: {
26670
+ Args: {
26671
+ p_error_class?: string;
26672
+ p_limit?: number;
26673
+ p_search?: string;
26674
+ p_since?: string;
26675
+ p_source?: string;
26676
+ p_state?: string;
26677
+ p_step?: string;
26678
+ };
26679
+ Returns: import("../integrations/supabase/types").Json;
26680
+ };
26681
+ logistics_trace_order_state: {
26682
+ Args: {
26683
+ p_order_ref: string;
26684
+ };
26685
+ Returns: import("../integrations/supabase/types").Json;
26686
+ };
26687
+ logistics_trace_order_step: {
26688
+ Args: {
26689
+ p_class?: string;
26690
+ p_decision?: string;
26691
+ p_error?: string;
26692
+ p_next_step?: string;
26693
+ p_node: string;
26694
+ p_order_id: string;
26695
+ p_reason?: string;
26696
+ p_status: string;
26697
+ p_step: string;
26698
+ };
26699
+ Returns: undefined;
26700
+ };
26701
+ logistics_trace_orders: {
26702
+ Args: {
26703
+ p_limit?: number;
26704
+ p_search?: string;
26705
+ p_since?: string;
26706
+ p_status?: string;
26707
+ };
26708
+ Returns: import("../integrations/supabase/types").Json;
26709
+ };
26710
+ logistics_trace_pick_state: {
24016
26711
  Args: {
24017
- p_order_id: string;
26712
+ p_order_number: string;
24018
26713
  };
24019
- Returns: string;
26714
+ Returns: undefined;
24020
26715
  };
24021
- logistics_scan_resolve: {
26716
+ logistics_trace_progress: {
24022
26717
  Args: {
24023
- p_code: string;
26718
+ p_limit?: number;
24024
26719
  };
24025
26720
  Returns: import("../integrations/supabase/types").Json;
24026
26721
  };
24027
- logistics_schedule_tasks: {
24028
- Args: never;
24029
- Returns: number;
24030
- };
24031
- logistics_set_order_priority: {
26722
+ logistics_trace_progress_order: {
24032
26723
  Args: {
24033
26724
  p_order_ref: string;
24034
- p_priority: number;
24035
- p_user_id?: string;
24036
26725
  };
24037
- Returns: number;
26726
+ Returns: import("../integrations/supabase/types").Json;
24038
26727
  };
24039
- logistics_set_pick_day: {
26728
+ logistics_trace_redact: {
24040
26729
  Args: {
24041
- p_order_ref: string;
24042
- p_pick_day: string;
26730
+ p: import("../integrations/supabase/types").Json;
24043
26731
  };
24044
26732
  Returns: import("../integrations/supabase/types").Json;
24045
26733
  };
24046
- logistics_shift_to_workday: {
26734
+ logistics_trace_source_node: {
24047
26735
  Args: {
24048
- p_days: string[];
24049
- p_ts: string;
26736
+ p_source: string;
24050
26737
  };
24051
26738
  Returns: string;
24052
26739
  };
24053
- logistics_shipping_note_from_barcode: {
26740
+ logistics_trace_step_once: {
24054
26741
  Args: {
24055
- p_allow_reprint?: boolean;
24056
- p_barcode: string;
24057
- p_station_id?: string;
26742
+ p_decision: string;
26743
+ p_next_step?: string;
26744
+ p_node: string;
26745
+ p_order_id: string;
26746
+ p_reason: string;
26747
+ p_status: string;
26748
+ p_step: string;
24058
26749
  };
24059
- Returns: import("../integrations/supabase/types").Json;
24060
- };
24061
- logistics_sticker_follows_slip: {
24062
- Args: never;
24063
- Returns: boolean;
26750
+ Returns: undefined;
24064
26751
  };
24065
- logistics_supersede_stale_tasks: {
26752
+ logistics_trace_stock_check: {
24066
26753
  Args: {
24067
- p_keep: string[];
24068
- p_order_ref: string;
24069
- p_run_id: string;
24070
- p_user_id: string;
26754
+ p_order_id: string;
24071
26755
  };
24072
- Returns: number;
24073
- };
24074
- logistics_sync_pick_queue: {
24075
- Args: never;
24076
- Returns: import("../integrations/supabase/types").Json;
26756
+ Returns: undefined;
24077
26757
  };
24078
- logistics_sync_task_carriers: {
26758
+ logistics_trace_timeline: {
24079
26759
  Args: {
24080
- p_order_ref?: string;
26760
+ p_limit?: number;
26761
+ p_order_ref: string;
24081
26762
  };
24082
- Returns: number;
26763
+ Returns: import("../integrations/supabase/types").Json;
24083
26764
  };
24084
- logistics_task_owner: {
26765
+ logistics_trace_version_events: {
24085
26766
  Args: {
24086
- p_task_type: string;
26767
+ p_from?: string;
26768
+ p_limit?: number;
26769
+ p_order_ref: string;
26770
+ p_to?: string;
26771
+ p_version_id: string;
24087
26772
  };
24088
- Returns: string;
26773
+ Returns: import("../integrations/supabase/types").Json;
24089
26774
  };
24090
- logistics_task_pick_minutes: {
26775
+ logistics_trace_versions: {
24091
26776
  Args: {
24092
- p_payload: import("../integrations/supabase/types").Json;
24093
- p_settings: import("../integrations/supabase/types").Json;
26777
+ p_order_ref: string;
24094
26778
  };
24095
- Returns: number;
24096
- };
24097
- logistics_tick_ping: {
24098
- Args: never;
24099
- Returns: string;
26779
+ Returns: import("../integrations/supabase/types").Json;
24100
26780
  };
24101
26781
  logistics_upsert_task: {
24102
26782
  Args: {
@@ -24117,6 +26797,16 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
24117
26797
  };
24118
26798
  Returns: string;
24119
26799
  };
26800
+ logistics_valid_timezone: {
26801
+ Args: {
26802
+ _tz: string;
26803
+ };
26804
+ Returns: boolean;
26805
+ };
26806
+ logistics_working_hours_status: {
26807
+ Args: never;
26808
+ Returns: import("../integrations/supabase/types").Json;
26809
+ };
24120
26810
  logistics_write_buffer_layer_positions: {
24121
26811
  Args: {
24122
26812
  p_buffer_id: string;
@@ -24178,6 +26868,12 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
24178
26868
  permission: string;
24179
26869
  }[];
24180
26870
  };
26871
+ next_cart_day_seq: {
26872
+ Args: {
26873
+ p_date: string;
26874
+ };
26875
+ Returns: number;
26876
+ };
24181
26877
  next_manufacture_partij: {
24182
26878
  Args: {
24183
26879
  _tenant_id: string;
@@ -24282,6 +26978,10 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
24282
26978
  online: boolean;
24283
26979
  }[];
24284
26980
  };
26981
+ pick_apply_buffer_events: {
26982
+ Args: never;
26983
+ Returns: import("../integrations/supabase/types").Json;
26984
+ };
24285
26985
  pick_available_pick_days: {
24286
26986
  Args: {
24287
26987
  _max_days?: number;
@@ -25125,6 +27825,18 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
25125
27825
  };
25126
27826
  Returns: undefined;
25127
27827
  };
27828
+ prune_floriday_api_log: {
27829
+ Args: never;
27830
+ Returns: number;
27831
+ };
27832
+ quote_ack_work_order: {
27833
+ Args: {
27834
+ _queue_id: string;
27835
+ _werkbon_id: string;
27836
+ _werkbon_nummer?: string;
27837
+ };
27838
+ Returns: boolean;
27839
+ };
25128
27840
  quote_create_from_source: {
25129
27841
  Args: {
25130
27842
  _payload?: import("../integrations/supabase/types").Json;
@@ -25133,6 +27845,13 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
25133
27845
  };
25134
27846
  Returns: string;
25135
27847
  };
27848
+ quote_fail_work_order: {
27849
+ Args: {
27850
+ _foutmelding: string;
27851
+ _queue_id: string;
27852
+ };
27853
+ Returns: boolean;
27854
+ };
25136
27855
  quote_get_billable_lines: {
25137
27856
  Args: {
25138
27857
  _quotation_id: string;
@@ -25149,6 +27868,12 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
25149
27868
  Args: never;
25150
27869
  Returns: import("../integrations/supabase/types").Json;
25151
27870
  };
27871
+ quote_list_pending_work_orders: {
27872
+ Args: {
27873
+ _limit?: number;
27874
+ };
27875
+ Returns: import("../integrations/supabase/types").Json;
27876
+ };
25152
27877
  quote_list_sources: {
25153
27878
  Args: {
25154
27879
  _limit?: number;
@@ -25156,6 +27881,12 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
25156
27881
  };
25157
27882
  Returns: import("../integrations/supabase/types").Json;
25158
27883
  };
27884
+ quote_queue_follow_up: {
27885
+ Args: {
27886
+ _offerte_id: string;
27887
+ };
27888
+ Returns: string;
27889
+ };
25159
27890
  recompute_all_reserved_stock: {
25160
27891
  Args: never;
25161
27892
  Returns: undefined;
@@ -25558,6 +28289,13 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
25558
28289
  };
25559
28290
  Returns: number;
25560
28291
  };
28292
+ schedule_floriday_catalog_prices_sync: {
28293
+ Args: {
28294
+ p_apikey: string;
28295
+ p_url: string;
28296
+ };
28297
+ Returns: number;
28298
+ };
25561
28299
  schedule_floriday_clock_presales_sync: {
25562
28300
  Args: {
25563
28301
  p_apikey: string;
@@ -25830,6 +28568,52 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
25830
28568
  p_end_time: string;
25831
28569
  };
25832
28570
  Returns: import("../integrations/supabase/types").Json;
28571
+ } | {
28572
+ Args: {
28573
+ p_end_lat?: number;
28574
+ p_end_lng?: number;
28575
+ p_log_id: string;
28576
+ };
28577
+ Returns: {
28578
+ auto_stop_reason: string | null;
28579
+ auto_stopped: boolean;
28580
+ created_at: string;
28581
+ current_latitude: number | null;
28582
+ current_longitude: number | null;
28583
+ current_position_updated_at: string | null;
28584
+ employee_id: string;
28585
+ end_latitude: number | null;
28586
+ end_longitude: number | null;
28587
+ end_time: string | null;
28588
+ eta_distance_km: number | null;
28589
+ eta_minutes: number | null;
28590
+ eta_updated_at: string | null;
28591
+ hour_category: string | null;
28592
+ id: string;
28593
+ last_reminder_at: string | null;
28594
+ notes: string | null;
28595
+ overtime_hours: number;
28596
+ overtime_type: string | null;
28597
+ regular_hours: number;
28598
+ reminder_count: number;
28599
+ requires_review: boolean;
28600
+ start_latitude: number | null;
28601
+ start_longitude: number | null;
28602
+ start_time: string;
28603
+ travel_cost: number | null;
28604
+ travel_distance_km: number | null;
28605
+ travel_duration_min: number | null;
28606
+ travel_time_minutes: number | null;
28607
+ type: string;
28608
+ updated_at: string;
28609
+ work_order_id: string | null;
28610
+ };
28611
+ SetofOptions: {
28612
+ from: "*";
28613
+ to: "time_logs";
28614
+ isOneToOne: true;
28615
+ isSetofReturn: false;
28616
+ };
25833
28617
  };
25834
28618
  swap_cart_layer_positions: {
25835
28619
  Args: {
@@ -25858,6 +28642,10 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
25858
28642
  };
25859
28643
  Returns: undefined;
25860
28644
  };
28645
+ sync_floriday_prices_into_price_groups: {
28646
+ Args: never;
28647
+ Returns: number;
28648
+ };
25861
28649
  sync_layer_stock: {
25862
28650
  Args: {
25863
28651
  p_product_id: string;
@@ -25982,14 +28770,99 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
25982
28770
  };
25983
28771
  Returns: undefined;
25984
28772
  };
28773
+ uren_employee_day_hours: {
28774
+ Args: {
28775
+ _day: string;
28776
+ _employee_id: string;
28777
+ };
28778
+ Returns: number;
28779
+ };
25985
28780
  uren_is_beheerder: {
25986
28781
  Args: never;
25987
28782
  Returns: boolean;
25988
28783
  };
28784
+ uren_list_medewerkers: {
28785
+ Args: never;
28786
+ Returns: {
28787
+ avatar_url: string;
28788
+ color: string;
28789
+ display_name: string;
28790
+ email: string;
28791
+ hours_fri: number;
28792
+ hours_mon: number;
28793
+ hours_thu: number;
28794
+ hours_tue: number;
28795
+ hours_wed: number;
28796
+ id: string;
28797
+ is_active: boolean;
28798
+ leave_balance_hours: number;
28799
+ persnr: string;
28800
+ phone: string;
28801
+ roles: string[];
28802
+ }[];
28803
+ };
25989
28804
  uren_my_monteur_id: {
25990
28805
  Args: never;
25991
28806
  Returns: string;
25992
28807
  };
28808
+ uren_planning_dagagenda: {
28809
+ Args: {
28810
+ _tot: string;
28811
+ _van: string;
28812
+ };
28813
+ Returns: {
28814
+ end_at: string;
28815
+ id: string;
28816
+ is_tweede_man: boolean;
28817
+ notes: string;
28818
+ start_at: string;
28819
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
28820
+ werkbon_id: string;
28821
+ }[];
28822
+ };
28823
+ uren_set_planning_item_status: {
28824
+ Args: {
28825
+ _id: string;
28826
+ _status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
28827
+ };
28828
+ Returns: undefined;
28829
+ };
28830
+ uren_set_planning_status: {
28831
+ Args: {
28832
+ p_status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
28833
+ p_werkbon_id: string;
28834
+ };
28835
+ Returns: number;
28836
+ };
28837
+ uren_stop_time_log: {
28838
+ Args: {
28839
+ p_employee_id: string;
28840
+ p_end_lat?: number;
28841
+ p_end_lng?: number;
28842
+ p_end_time: string;
28843
+ };
28844
+ Returns: import("../integrations/supabase/types").Json;
28845
+ };
28846
+ uren_switch_time_log: {
28847
+ Args: {
28848
+ p_employee_id: string;
28849
+ p_start_lat?: number;
28850
+ p_start_lng?: number;
28851
+ p_type: string;
28852
+ p_work_order_id?: string;
28853
+ };
28854
+ Returns: import("../integrations/supabase/types").Json;
28855
+ };
28856
+ uren_sync_sick_time_off: {
28857
+ Args: {
28858
+ _period_id: string;
28859
+ };
28860
+ Returns: number;
28861
+ };
28862
+ voorraad_cleanup_old_rows: {
28863
+ Args: never;
28864
+ Returns: import("../integrations/supabase/types").Json;
28865
+ };
25993
28866
  wake_print_queue: {
25994
28867
  Args: {
25995
28868
  _min_interval_ms?: number;
@@ -26028,6 +28901,25 @@ export declare const markOrderShipped: import("@tanstack/start-client-core").Req
26028
28901
  };
26029
28902
  Returns: import("../integrations/supabase/types").Json;
26030
28903
  };
28904
+ wo_list_offerte_requests: {
28905
+ Args: {
28906
+ _status?: string;
28907
+ };
28908
+ Returns: import("../integrations/supabase/types").Json;
28909
+ };
28910
+ wo_process_offerte_request: {
28911
+ Args: {
28912
+ _queue_id: string;
28913
+ };
28914
+ Returns: import("../integrations/supabase/types").Json;
28915
+ };
28916
+ wo_reject_offerte_request: {
28917
+ Args: {
28918
+ _queue_id: string;
28919
+ _reden?: string;
28920
+ };
28921
+ Returns: import("../integrations/supabase/types").Json;
28922
+ };
26031
28923
  wo_set_status: {
26032
28924
  Args: {
26033
28925
  _reason?: string;