@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
@@ -14,6 +14,7 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
14
14
  Row: {
15
15
  auto_print_delivery_note: boolean;
16
16
  auto_process_paused: boolean;
17
+ control_bulk_max_carts: number;
17
18
  created_at: string;
18
19
  extra_pick_days_with_stickers: number;
19
20
  id: string;
@@ -31,6 +32,7 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
31
32
  Insert: {
32
33
  auto_print_delivery_note?: boolean;
33
34
  auto_process_paused?: boolean;
35
+ control_bulk_max_carts?: number;
34
36
  created_at?: string;
35
37
  extra_pick_days_with_stickers?: number;
36
38
  id?: string;
@@ -48,6 +50,7 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
48
50
  Update: {
49
51
  auto_print_delivery_note?: boolean;
50
52
  auto_process_paused?: boolean;
53
+ control_bulk_max_carts?: number;
51
54
  created_at?: string;
52
55
  extra_pick_days_with_stickers?: number;
53
56
  id?: string;
@@ -1390,6 +1393,7 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
1390
1393
  id: string;
1391
1394
  notes: string | null;
1392
1395
  performed_at: string;
1396
+ request_key: string | null;
1393
1397
  rescheduled_count: number;
1394
1398
  stock_consumed_at: string | null;
1395
1399
  total_carts: number;
@@ -1404,6 +1408,7 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
1404
1408
  id?: string;
1405
1409
  notes?: string | null;
1406
1410
  performed_at?: string;
1411
+ request_key?: string | null;
1407
1412
  rescheduled_count?: number;
1408
1413
  stock_consumed_at?: string | null;
1409
1414
  total_carts?: number;
@@ -1418,6 +1423,7 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
1418
1423
  id?: string;
1419
1424
  notes?: string | null;
1420
1425
  performed_at?: string;
1426
+ request_key?: string | null;
1421
1427
  rescheduled_count?: number;
1422
1428
  stock_consumed_at?: string | null;
1423
1429
  total_carts?: number;
@@ -1430,9 +1436,10 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
1430
1436
  Row: {
1431
1437
  assigned_at: string;
1432
1438
  cart_index: number;
1433
- cart_number: string | null;
1439
+ cart_number: string;
1434
1440
  day_seq: number | null;
1435
1441
  delivered_at: string | null;
1442
+ engine_cart_label: string | null;
1436
1443
  id: string;
1437
1444
  order_id: string;
1438
1445
  order_source: string;
@@ -1442,9 +1449,10 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
1442
1449
  Insert: {
1443
1450
  assigned_at?: string;
1444
1451
  cart_index: number;
1445
- cart_number?: string | null;
1452
+ cart_number: string;
1446
1453
  day_seq?: number | null;
1447
1454
  delivered_at?: string | null;
1455
+ engine_cart_label?: string | null;
1448
1456
  id?: string;
1449
1457
  order_id: string;
1450
1458
  order_source: string;
@@ -1454,9 +1462,10 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
1454
1462
  Update: {
1455
1463
  assigned_at?: string;
1456
1464
  cart_index?: number;
1457
- cart_number?: string | null;
1465
+ cart_number?: string;
1458
1466
  day_seq?: number | null;
1459
1467
  delivered_at?: string | null;
1468
+ engine_cart_label?: string | null;
1460
1469
  id?: string;
1461
1470
  order_id?: string;
1462
1471
  order_source?: string;
@@ -1831,6 +1840,42 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
1831
1840
  };
1832
1841
  Relationships: [];
1833
1842
  };
1843
+ customer_assortment_items: {
1844
+ Row: {
1845
+ created_at: string;
1846
+ customer_key: string;
1847
+ id: string;
1848
+ in_assortment: boolean;
1849
+ manual_override: boolean;
1850
+ source: string;
1851
+ synced_at: string | null;
1852
+ trade_item_key: string;
1853
+ updated_at: string;
1854
+ };
1855
+ Insert: {
1856
+ created_at?: string;
1857
+ customer_key: string;
1858
+ id?: string;
1859
+ in_assortment?: boolean;
1860
+ manual_override?: boolean;
1861
+ source?: string;
1862
+ synced_at?: string | null;
1863
+ trade_item_key: string;
1864
+ updated_at?: string;
1865
+ };
1866
+ Update: {
1867
+ created_at?: string;
1868
+ customer_key?: string;
1869
+ id?: string;
1870
+ in_assortment?: boolean;
1871
+ manual_override?: boolean;
1872
+ source?: string;
1873
+ synced_at?: string | null;
1874
+ trade_item_key?: string;
1875
+ updated_at?: string;
1876
+ };
1877
+ Relationships: [];
1878
+ };
1834
1879
  customer_audit_log: {
1835
1880
  Row: {
1836
1881
  action: string;
@@ -2233,6 +2278,63 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
2233
2278
  };
2234
2279
  Relationships: [];
2235
2280
  };
2281
+ customer_product_stickers: {
2282
+ Row: {
2283
+ content_hash: string | null;
2284
+ created_at: string;
2285
+ customer_key: string;
2286
+ file_name: string;
2287
+ file_path: string;
2288
+ file_size: number | null;
2289
+ floriday_sticker_id: string | null;
2290
+ floriday_synced_at: string | null;
2291
+ height_mm: number | null;
2292
+ id: string;
2293
+ mime_type: string | null;
2294
+ source: string;
2295
+ trade_item_key: string;
2296
+ updated_at: string;
2297
+ uploaded_by: string | null;
2298
+ width_mm: number | null;
2299
+ };
2300
+ Insert: {
2301
+ content_hash?: string | null;
2302
+ created_at?: string;
2303
+ customer_key: string;
2304
+ file_name: string;
2305
+ file_path: string;
2306
+ file_size?: number | null;
2307
+ floriday_sticker_id?: string | null;
2308
+ floriday_synced_at?: string | null;
2309
+ height_mm?: number | null;
2310
+ id?: string;
2311
+ mime_type?: string | null;
2312
+ source?: string;
2313
+ trade_item_key: string;
2314
+ updated_at?: string;
2315
+ uploaded_by?: string | null;
2316
+ width_mm?: number | null;
2317
+ };
2318
+ Update: {
2319
+ content_hash?: string | null;
2320
+ created_at?: string;
2321
+ customer_key?: string;
2322
+ file_name?: string;
2323
+ file_path?: string;
2324
+ file_size?: number | null;
2325
+ floriday_sticker_id?: string | null;
2326
+ floriday_synced_at?: string | null;
2327
+ height_mm?: number | null;
2328
+ id?: string;
2329
+ mime_type?: string | null;
2330
+ source?: string;
2331
+ trade_item_key?: string;
2332
+ updated_at?: string;
2333
+ uploaded_by?: string | null;
2334
+ width_mm?: number | null;
2335
+ };
2336
+ Relationships: [];
2337
+ };
2236
2338
  customer_selected_assortment: {
2237
2339
  Row: {
2238
2340
  article_number: string | null;
@@ -2281,6 +2383,30 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
2281
2383
  referencedColumns: ["id"];
2282
2384
  }];
2283
2385
  };
2386
+ customer_sticker_settings: {
2387
+ Row: {
2388
+ created_at: string;
2389
+ customer_key: string;
2390
+ height_mm: number;
2391
+ updated_at: string;
2392
+ width_mm: number;
2393
+ };
2394
+ Insert: {
2395
+ created_at?: string;
2396
+ customer_key: string;
2397
+ height_mm?: number;
2398
+ updated_at?: string;
2399
+ width_mm?: number;
2400
+ };
2401
+ Update: {
2402
+ created_at?: string;
2403
+ customer_key?: string;
2404
+ height_mm?: number;
2405
+ updated_at?: string;
2406
+ width_mm?: number;
2407
+ };
2408
+ Relationships: [];
2409
+ };
2284
2410
  customer_trade_settings: {
2285
2411
  Row: {
2286
2412
  category: string;
@@ -3606,6 +3732,7 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
3606
3732
  };
3607
3733
  email_auth_outbox: {
3608
3734
  Row: {
3735
+ attachments: import("../integrations/supabase/types").Json;
3609
3736
  attempts: number;
3610
3737
  bcc_addresses: string[];
3611
3738
  cc_addresses: string[];
@@ -3628,6 +3755,7 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
3628
3755
  updated_at: string;
3629
3756
  };
3630
3757
  Insert: {
3758
+ attachments?: import("../integrations/supabase/types").Json;
3631
3759
  attempts?: number;
3632
3760
  bcc_addresses?: string[];
3633
3761
  cc_addresses?: string[];
@@ -3650,6 +3778,7 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
3650
3778
  updated_at?: string;
3651
3779
  };
3652
3780
  Update: {
3781
+ attachments?: import("../integrations/supabase/types").Json;
3653
3782
  attempts?: number;
3654
3783
  bcc_addresses?: string[];
3655
3784
  cc_addresses?: string[];
@@ -5611,6 +5740,102 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
5611
5740
  referencedColumns: ["id"];
5612
5741
  }];
5613
5742
  };
5743
+ floriday_api_log: {
5744
+ Row: {
5745
+ action: string | null;
5746
+ caller: string | null;
5747
+ connection_id: string | null;
5748
+ created_at: string;
5749
+ cursor_from: number | null;
5750
+ direction: string;
5751
+ duration_ms: number | null;
5752
+ environment: string | null;
5753
+ error: string | null;
5754
+ floriday_id: string | null;
5755
+ floriday_reference: string | null;
5756
+ http_status: number;
5757
+ id: string;
5758
+ item_count: number | null;
5759
+ kind: string | null;
5760
+ local_id: string | null;
5761
+ local_reference: string | null;
5762
+ method: string;
5763
+ module: string | null;
5764
+ ok: boolean;
5765
+ path: string;
5766
+ request: import("../integrations/supabase/types").Json | null;
5767
+ resource_type: string | null;
5768
+ response: import("../integrations/supabase/types").Json | null;
5769
+ write_log_id: string | null;
5770
+ };
5771
+ Insert: {
5772
+ action?: string | null;
5773
+ caller?: string | null;
5774
+ connection_id?: string | null;
5775
+ created_at?: string;
5776
+ cursor_from?: number | null;
5777
+ direction: string;
5778
+ duration_ms?: number | null;
5779
+ environment?: string | null;
5780
+ error?: string | null;
5781
+ floriday_id?: string | null;
5782
+ floriday_reference?: string | null;
5783
+ http_status?: number;
5784
+ id?: string;
5785
+ item_count?: number | null;
5786
+ kind?: string | null;
5787
+ local_id?: string | null;
5788
+ local_reference?: string | null;
5789
+ method: string;
5790
+ module?: string | null;
5791
+ ok?: boolean;
5792
+ path: string;
5793
+ request?: import("../integrations/supabase/types").Json | null;
5794
+ resource_type?: string | null;
5795
+ response?: import("../integrations/supabase/types").Json | null;
5796
+ write_log_id?: string | null;
5797
+ };
5798
+ Update: {
5799
+ action?: string | null;
5800
+ caller?: string | null;
5801
+ connection_id?: string | null;
5802
+ created_at?: string;
5803
+ cursor_from?: number | null;
5804
+ direction?: string;
5805
+ duration_ms?: number | null;
5806
+ environment?: string | null;
5807
+ error?: string | null;
5808
+ floriday_id?: string | null;
5809
+ floriday_reference?: string | null;
5810
+ http_status?: number;
5811
+ id?: string;
5812
+ item_count?: number | null;
5813
+ kind?: string | null;
5814
+ local_id?: string | null;
5815
+ local_reference?: string | null;
5816
+ method?: string;
5817
+ module?: string | null;
5818
+ ok?: boolean;
5819
+ path?: string;
5820
+ request?: import("../integrations/supabase/types").Json | null;
5821
+ resource_type?: string | null;
5822
+ response?: import("../integrations/supabase/types").Json | null;
5823
+ write_log_id?: string | null;
5824
+ };
5825
+ Relationships: [{
5826
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
5827
+ columns: ["connection_id"];
5828
+ isOneToOne: false;
5829
+ referencedRelation: "floriday_connections";
5830
+ referencedColumns: ["id"];
5831
+ }, {
5832
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
5833
+ columns: ["write_log_id"];
5834
+ isOneToOne: false;
5835
+ referencedRelation: "floriday_write_log";
5836
+ referencedColumns: ["id"];
5837
+ }];
5838
+ };
5614
5839
  floriday_auction_letters_cache: {
5615
5840
  Row: {
5616
5841
  auction_letter_code: string;
@@ -5818,6 +6043,84 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
5818
6043
  referencedColumns: ["id"];
5819
6044
  }];
5820
6045
  };
6046
+ floriday_catalog_prices_cache: {
6047
+ Row: {
6048
+ connection_id: string;
6049
+ created_at: string;
6050
+ currency: string;
6051
+ id: string;
6052
+ is_deleted: boolean;
6053
+ price: number | null;
6054
+ price_group_id: string | null;
6055
+ price_group_name: string | null;
6056
+ price_type: string;
6057
+ raw: import("../integrations/supabase/types").Json | null;
6058
+ sales_unit: string | null;
6059
+ sequence_number: number;
6060
+ supplier_article_code: string | null;
6061
+ supply_line_id: string;
6062
+ synced_at: string;
6063
+ trade_item_id: string | null;
6064
+ updated_at: string;
6065
+ valid_from: string | null;
6066
+ valid_to: string | null;
6067
+ week: number | null;
6068
+ year: number | null;
6069
+ };
6070
+ Insert: {
6071
+ connection_id: string;
6072
+ created_at?: string;
6073
+ currency?: string;
6074
+ id?: string;
6075
+ is_deleted?: boolean;
6076
+ price?: number | null;
6077
+ price_group_id?: string | null;
6078
+ price_group_name?: string | null;
6079
+ price_type?: string;
6080
+ raw?: import("../integrations/supabase/types").Json | null;
6081
+ sales_unit?: string | null;
6082
+ sequence_number?: number;
6083
+ supplier_article_code?: string | null;
6084
+ supply_line_id: string;
6085
+ synced_at?: string;
6086
+ trade_item_id?: string | null;
6087
+ updated_at?: string;
6088
+ valid_from?: string | null;
6089
+ valid_to?: string | null;
6090
+ week?: number | null;
6091
+ year?: number | null;
6092
+ };
6093
+ Update: {
6094
+ connection_id?: string;
6095
+ created_at?: string;
6096
+ currency?: string;
6097
+ id?: string;
6098
+ is_deleted?: boolean;
6099
+ price?: number | null;
6100
+ price_group_id?: string | null;
6101
+ price_group_name?: string | null;
6102
+ price_type?: string;
6103
+ raw?: import("../integrations/supabase/types").Json | null;
6104
+ sales_unit?: string | null;
6105
+ sequence_number?: number;
6106
+ supplier_article_code?: string | null;
6107
+ supply_line_id?: string;
6108
+ synced_at?: string;
6109
+ trade_item_id?: string | null;
6110
+ updated_at?: string;
6111
+ valid_from?: string | null;
6112
+ valid_to?: string | null;
6113
+ week?: number | null;
6114
+ year?: number | null;
6115
+ };
6116
+ Relationships: [{
6117
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
6118
+ columns: ["connection_id"];
6119
+ isOneToOne: false;
6120
+ referencedRelation: "floriday_connections";
6121
+ referencedColumns: ["id"];
6122
+ }];
6123
+ };
5821
6124
  floriday_clock_presales_cache: {
5822
6125
  Row: {
5823
6126
  buyer_organization_id: string | null;
@@ -6733,6 +7036,69 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
6733
7036
  referencedColumns: ["id"];
6734
7037
  }];
6735
7038
  };
7039
+ floriday_link_templates: {
7040
+ Row: {
7041
+ created_at: string;
7042
+ floriday_url_template: string | null;
7043
+ is_active: boolean;
7044
+ label: string;
7045
+ local_url_template: string | null;
7046
+ resource_type: string;
7047
+ updated_at: string;
7048
+ };
7049
+ Insert: {
7050
+ created_at?: string;
7051
+ floriday_url_template?: string | null;
7052
+ is_active?: boolean;
7053
+ label: string;
7054
+ local_url_template?: string | null;
7055
+ resource_type: string;
7056
+ updated_at?: string;
7057
+ };
7058
+ Update: {
7059
+ created_at?: string;
7060
+ floriday_url_template?: string | null;
7061
+ is_active?: boolean;
7062
+ label?: string;
7063
+ local_url_template?: string | null;
7064
+ resource_type?: string;
7065
+ updated_at?: string;
7066
+ };
7067
+ Relationships: [];
7068
+ };
7069
+ floriday_log_retention: {
7070
+ Row: {
7071
+ created_at: string;
7072
+ direction: string | null;
7073
+ id: string;
7074
+ keep_failed_days: number | null;
7075
+ keep_ok_days: number | null;
7076
+ note: string | null;
7077
+ resource_type: string | null;
7078
+ updated_at: string;
7079
+ };
7080
+ Insert: {
7081
+ created_at?: string;
7082
+ direction?: string | null;
7083
+ id?: string;
7084
+ keep_failed_days?: number | null;
7085
+ keep_ok_days?: number | null;
7086
+ note?: string | null;
7087
+ resource_type?: string | null;
7088
+ updated_at?: string;
7089
+ };
7090
+ Update: {
7091
+ created_at?: string;
7092
+ direction?: string | null;
7093
+ id?: string;
7094
+ keep_failed_days?: number | null;
7095
+ keep_ok_days?: number | null;
7096
+ note?: string | null;
7097
+ resource_type?: string | null;
7098
+ updated_at?: string;
7099
+ };
7100
+ Relationships: [];
7101
+ };
6736
7102
  floriday_logistic_labels_cache: {
6737
7103
  Row: {
6738
7104
  byte_size: number | null;
@@ -8449,15 +8815,56 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
8449
8815
  };
8450
8816
  Relationships: [];
8451
8817
  };
8452
- itk_handover_github_scan: {
8818
+ itk_handover_afspraken: {
8453
8819
  Row: {
8454
- gescand_op: string;
8455
- gevonden: boolean;
8456
- melding: string | null;
8457
- module_id: string | null;
8458
- repo: string;
8459
- };
8820
+ afgesproken_door: string | null;
8821
+ afgesproken_op: string;
8822
+ besluit: string;
8823
+ created_at: string;
8824
+ item: string;
8825
+ modules: string[];
8826
+ sleutel: string;
8827
+ soort: string;
8828
+ updated_at: string;
8829
+ versie_vingerafdruk: string;
8830
+ };
8831
+ Insert: {
8832
+ afgesproken_door?: string | null;
8833
+ afgesproken_op?: string;
8834
+ besluit?: string;
8835
+ created_at?: string;
8836
+ item?: string;
8837
+ modules?: string[];
8838
+ sleutel: string;
8839
+ soort?: string;
8840
+ updated_at?: string;
8841
+ versie_vingerafdruk?: string;
8842
+ };
8843
+ Update: {
8844
+ afgesproken_door?: string | null;
8845
+ afgesproken_op?: string;
8846
+ besluit?: string;
8847
+ created_at?: string;
8848
+ item?: string;
8849
+ modules?: string[];
8850
+ sleutel?: string;
8851
+ soort?: string;
8852
+ updated_at?: string;
8853
+ versie_vingerafdruk?: string;
8854
+ };
8855
+ Relationships: [];
8856
+ };
8857
+ itk_handover_github_scan: {
8858
+ Row: {
8859
+ genegeerd_op: string | null;
8860
+ gescand_op: string;
8861
+ gevonden: boolean;
8862
+ melding: string | null;
8863
+ module_id: string | null;
8864
+ repo: string;
8865
+ };
8460
8866
  Insert: {
8867
+ genegeerd_op?: string | null;
8461
8868
  gescand_op?: string;
8462
8869
  gevonden?: boolean;
8463
8870
  melding?: string | null;
@@ -8465,6 +8872,7 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
8465
8872
  repo: string;
8466
8873
  };
8467
8874
  Update: {
8875
+ genegeerd_op?: string | null;
8468
8876
  gescand_op?: string;
8469
8877
  gevonden?: boolean;
8470
8878
  melding?: string | null;
@@ -8473,13 +8881,45 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
8473
8881
  };
8474
8882
  Relationships: [];
8475
8883
  };
8884
+ itk_handover_github_voortgang: {
8885
+ Row: {
8886
+ bijgewerkt_op: string;
8887
+ huidige_repo: string | null;
8888
+ id: boolean;
8889
+ klaar: number;
8890
+ loopt: boolean;
8891
+ totaal: number;
8892
+ };
8893
+ Insert: {
8894
+ bijgewerkt_op?: string;
8895
+ huidige_repo?: string | null;
8896
+ id?: boolean;
8897
+ klaar?: number;
8898
+ loopt?: boolean;
8899
+ totaal?: number;
8900
+ };
8901
+ Update: {
8902
+ bijgewerkt_op?: string;
8903
+ huidige_repo?: string | null;
8904
+ id?: boolean;
8905
+ klaar?: number;
8906
+ loopt?: boolean;
8907
+ totaal?: number;
8908
+ };
8909
+ Relationships: [];
8910
+ };
8476
8911
  itk_handover_module_meta: {
8477
8912
  Row: {
8478
8913
  check_aangevraagd_op: string | null;
8479
8914
  check_nodig: boolean;
8480
8915
  check_reden: string | null;
8481
8916
  created_at: string;
8917
+ md_bron: boolean;
8918
+ md_bron_op: string | null;
8919
+ md_bron_pad: string | null;
8482
8920
  module_id: string;
8921
+ nieuw_gezien: boolean;
8922
+ nieuw_gezien_op: string | null;
8483
8923
  project_url: string | null;
8484
8924
  publicatie_url: string | null;
8485
8925
  updated_at: string;
@@ -8489,7 +8929,12 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
8489
8929
  check_nodig?: boolean;
8490
8930
  check_reden?: string | null;
8491
8931
  created_at?: string;
8932
+ md_bron?: boolean;
8933
+ md_bron_op?: string | null;
8934
+ md_bron_pad?: string | null;
8492
8935
  module_id: string;
8936
+ nieuw_gezien?: boolean;
8937
+ nieuw_gezien_op?: string | null;
8493
8938
  project_url?: string | null;
8494
8939
  publicatie_url?: string | null;
8495
8940
  updated_at?: string;
@@ -8499,13 +8944,45 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
8499
8944
  check_nodig?: boolean;
8500
8945
  check_reden?: string | null;
8501
8946
  created_at?: string;
8947
+ md_bron?: boolean;
8948
+ md_bron_op?: string | null;
8949
+ md_bron_pad?: string | null;
8502
8950
  module_id?: string;
8951
+ nieuw_gezien?: boolean;
8952
+ nieuw_gezien_op?: string | null;
8503
8953
  project_url?: string | null;
8504
8954
  publicatie_url?: string | null;
8505
8955
  updated_at?: string;
8506
8956
  };
8507
8957
  Relationships: [];
8508
8958
  };
8959
+ itk_handover_module_naam: {
8960
+ Row: {
8961
+ bron_repo: string;
8962
+ created_at: string;
8963
+ module_id: string;
8964
+ standaardnaam: string | null;
8965
+ updated_at: string;
8966
+ weergavenaam: string;
8967
+ };
8968
+ Insert: {
8969
+ bron_repo?: string;
8970
+ created_at?: string;
8971
+ module_id: string;
8972
+ standaardnaam?: string | null;
8973
+ updated_at?: string;
8974
+ weergavenaam: string;
8975
+ };
8976
+ Update: {
8977
+ bron_repo?: string;
8978
+ created_at?: string;
8979
+ module_id?: string;
8980
+ standaardnaam?: string | null;
8981
+ updated_at?: string;
8982
+ weergavenaam?: string;
8983
+ };
8984
+ Relationships: [];
8985
+ };
8509
8986
  itk_handover_project_modules: {
8510
8987
  Row: {
8511
8988
  created_at: string;
@@ -8619,6 +9096,7 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
8619
9096
  };
8620
9097
  itk_module_handovers: {
8621
9098
  Row: {
9099
+ bekende_risicos: string[];
8622
9100
  bevindingen: string | null;
8623
9101
  bezit_tabellen: string[];
8624
9102
  bron_commit: string | null;
@@ -8637,6 +9115,7 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
8637
9115
  inhoud_md: string;
8638
9116
  is_actueel: boolean;
8639
9117
  is_gearchiveerd: boolean;
9118
+ laatst_bevestigd_op: string | null;
8640
9119
  laatst_gecontroleerd_op: string | null;
8641
9120
  module_id: string;
8642
9121
  module_titel: string;
@@ -8646,6 +9125,7 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
8646
9125
  versie: number;
8647
9126
  };
8648
9127
  Insert: {
9128
+ bekende_risicos?: string[];
8649
9129
  bevindingen?: string | null;
8650
9130
  bezit_tabellen?: string[];
8651
9131
  bron_commit?: string | null;
@@ -8664,6 +9144,7 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
8664
9144
  inhoud_md: string;
8665
9145
  is_actueel?: boolean;
8666
9146
  is_gearchiveerd?: boolean;
9147
+ laatst_bevestigd_op?: string | null;
8667
9148
  laatst_gecontroleerd_op?: string | null;
8668
9149
  module_id: string;
8669
9150
  module_titel: string;
@@ -8673,6 +9154,7 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
8673
9154
  versie?: number;
8674
9155
  };
8675
9156
  Update: {
9157
+ bekende_risicos?: string[];
8676
9158
  bevindingen?: string | null;
8677
9159
  bezit_tabellen?: string[];
8678
9160
  bron_commit?: string | null;
@@ -8691,6 +9173,7 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
8691
9173
  inhoud_md?: string;
8692
9174
  is_actueel?: boolean;
8693
9175
  is_gearchiveerd?: boolean;
9176
+ laatst_bevestigd_op?: string | null;
8694
9177
  laatst_gecontroleerd_op?: string | null;
8695
9178
  module_id?: string;
8696
9179
  module_titel?: string;
@@ -8899,6 +9382,54 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
8899
9382
  };
8900
9383
  Relationships: [];
8901
9384
  };
9385
+ itk_offerte_werkbon_queue: {
9386
+ Row: {
9387
+ bron_werkbon_id: string | null;
9388
+ created_at: string;
9389
+ foutmelding: string | null;
9390
+ id: string;
9391
+ offerte_id: string;
9392
+ payload: import("../integrations/supabase/types").Json;
9393
+ status: string;
9394
+ updated_at: string;
9395
+ verwerkt_op: string | null;
9396
+ werkbon_id: string | null;
9397
+ werkbon_nummer: string | null;
9398
+ };
9399
+ Insert: {
9400
+ bron_werkbon_id?: string | null;
9401
+ created_at?: string;
9402
+ foutmelding?: string | null;
9403
+ id?: string;
9404
+ offerte_id: string;
9405
+ payload?: import("../integrations/supabase/types").Json;
9406
+ status?: string;
9407
+ updated_at?: string;
9408
+ verwerkt_op?: string | null;
9409
+ werkbon_id?: string | null;
9410
+ werkbon_nummer?: string | null;
9411
+ };
9412
+ Update: {
9413
+ bron_werkbon_id?: string | null;
9414
+ created_at?: string;
9415
+ foutmelding?: string | null;
9416
+ id?: string;
9417
+ offerte_id?: string;
9418
+ payload?: import("../integrations/supabase/types").Json;
9419
+ status?: string;
9420
+ updated_at?: string;
9421
+ verwerkt_op?: string | null;
9422
+ werkbon_id?: string | null;
9423
+ werkbon_nummer?: string | null;
9424
+ };
9425
+ Relationships: [{
9426
+ foreignKeyName: "itk_offerte_werkbon_queue_offerte_id_fkey";
9427
+ columns: ["offerte_id"];
9428
+ isOneToOne: false;
9429
+ referencedRelation: "itk_offertes";
9430
+ referencedColumns: ["id"];
9431
+ }];
9432
+ };
8902
9433
  itk_offertes: {
8903
9434
  Row: {
8904
9435
  ai_generated: boolean;
@@ -10084,6 +10615,36 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
10084
10615
  };
10085
10616
  Relationships: [];
10086
10617
  };
10618
+ logistics_floriday_push_refusals: {
10619
+ Row: {
10620
+ action: string | null;
10621
+ created_at: string;
10622
+ id: string;
10623
+ order_ref: string;
10624
+ reason: string;
10625
+ source_module: string | null;
10626
+ source_shell: string | null;
10627
+ };
10628
+ Insert: {
10629
+ action?: string | null;
10630
+ created_at?: string;
10631
+ id?: string;
10632
+ order_ref: string;
10633
+ reason: string;
10634
+ source_module?: string | null;
10635
+ source_shell?: string | null;
10636
+ };
10637
+ Update: {
10638
+ action?: string | null;
10639
+ created_at?: string;
10640
+ id?: string;
10641
+ order_ref?: string;
10642
+ reason?: string;
10643
+ source_module?: string | null;
10644
+ source_shell?: string | null;
10645
+ };
10646
+ Relationships: [];
10647
+ };
10087
10648
  logistics_floriday_pushes: {
10088
10649
  Row: {
10089
10650
  attempts: number;
@@ -10159,6 +10720,42 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
10159
10720
  };
10160
10721
  Relationships: [];
10161
10722
  };
10723
+ logistics_floriday_status_sends: {
10724
+ Row: {
10725
+ action: string;
10726
+ created_at: string;
10727
+ detail: string | null;
10728
+ http_status: number | null;
10729
+ id: string;
10730
+ ok: boolean;
10731
+ order_ref: string;
10732
+ source_module: string | null;
10733
+ source_shell: string | null;
10734
+ };
10735
+ Insert: {
10736
+ action: string;
10737
+ created_at?: string;
10738
+ detail?: string | null;
10739
+ http_status?: number | null;
10740
+ id?: string;
10741
+ ok?: boolean;
10742
+ order_ref: string;
10743
+ source_module?: string | null;
10744
+ source_shell?: string | null;
10745
+ };
10746
+ Update: {
10747
+ action?: string;
10748
+ created_at?: string;
10749
+ detail?: string | null;
10750
+ http_status?: number | null;
10751
+ id?: string;
10752
+ ok?: boolean;
10753
+ order_ref?: string;
10754
+ source_module?: string | null;
10755
+ source_shell?: string | null;
10756
+ };
10757
+ Relationships: [];
10758
+ };
10162
10759
  logistics_formulas: {
10163
10760
  Row: {
10164
10761
  created_at: string;
@@ -10231,6 +10828,144 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
10231
10828
  };
10232
10829
  Relationships: [];
10233
10830
  };
10831
+ logistics_opening_exceptions: {
10832
+ Row: {
10833
+ closes: string | null;
10834
+ created_at: string;
10835
+ day: string;
10836
+ id: string;
10837
+ is_closed: boolean;
10838
+ note: string | null;
10839
+ opens: string | null;
10840
+ };
10841
+ Insert: {
10842
+ closes?: string | null;
10843
+ created_at?: string;
10844
+ day: string;
10845
+ id?: string;
10846
+ is_closed?: boolean;
10847
+ note?: string | null;
10848
+ opens?: string | null;
10849
+ };
10850
+ Update: {
10851
+ closes?: string | null;
10852
+ created_at?: string;
10853
+ day?: string;
10854
+ id?: string;
10855
+ is_closed?: boolean;
10856
+ note?: string | null;
10857
+ opens?: string | null;
10858
+ };
10859
+ Relationships: [];
10860
+ };
10861
+ logistics_opening_hours: {
10862
+ Row: {
10863
+ closes: string;
10864
+ created_at: string;
10865
+ id: string;
10866
+ is_active: boolean;
10867
+ note: string | null;
10868
+ opens: string;
10869
+ weekday: number;
10870
+ };
10871
+ Insert: {
10872
+ closes: string;
10873
+ created_at?: string;
10874
+ id?: string;
10875
+ is_active?: boolean;
10876
+ note?: string | null;
10877
+ opens: string;
10878
+ weekday: number;
10879
+ };
10880
+ Update: {
10881
+ closes?: string;
10882
+ created_at?: string;
10883
+ id?: string;
10884
+ is_active?: boolean;
10885
+ note?: string | null;
10886
+ opens?: string;
10887
+ weekday?: number;
10888
+ };
10889
+ Relationships: [];
10890
+ };
10891
+ logistics_order_merges: {
10892
+ Row: {
10893
+ group_key: string;
10894
+ id: string;
10895
+ items_moved: number;
10896
+ kept_order_id: string;
10897
+ kept_order_number: string | null;
10898
+ merged_at: string;
10899
+ merged_order_id: string;
10900
+ merged_order_number: string | null;
10901
+ sales_order_id: string | null;
10902
+ };
10903
+ Insert: {
10904
+ group_key: string;
10905
+ id?: string;
10906
+ items_moved?: number;
10907
+ kept_order_id: string;
10908
+ kept_order_number?: string | null;
10909
+ merged_at?: string;
10910
+ merged_order_id: string;
10911
+ merged_order_number?: string | null;
10912
+ sales_order_id?: string | null;
10913
+ };
10914
+ Update: {
10915
+ group_key?: string;
10916
+ id?: string;
10917
+ items_moved?: number;
10918
+ kept_order_id?: string;
10919
+ kept_order_number?: string | null;
10920
+ merged_at?: string;
10921
+ merged_order_id?: string;
10922
+ merged_order_number?: string | null;
10923
+ sales_order_id?: string | null;
10924
+ };
10925
+ Relationships: [];
10926
+ };
10927
+ logistics_pick_data_requests: {
10928
+ Row: {
10929
+ actions: import("../integrations/supabase/types").Json;
10930
+ created_at: string;
10931
+ event_id: string | null;
10932
+ finished_at: string | null;
10933
+ id: string;
10934
+ missing: import("../integrations/supabase/types").Json;
10935
+ order_ref: string;
10936
+ reason: string | null;
10937
+ result: import("../integrations/supabase/types").Json | null;
10938
+ status: string;
10939
+ unit_ref: string | null;
10940
+ };
10941
+ Insert: {
10942
+ actions?: import("../integrations/supabase/types").Json;
10943
+ created_at?: string;
10944
+ event_id?: string | null;
10945
+ finished_at?: string | null;
10946
+ id?: string;
10947
+ missing?: import("../integrations/supabase/types").Json;
10948
+ order_ref: string;
10949
+ reason?: string | null;
10950
+ result?: import("../integrations/supabase/types").Json | null;
10951
+ status?: string;
10952
+ unit_ref?: string | null;
10953
+ };
10954
+ Update: {
10955
+ actions?: import("../integrations/supabase/types").Json;
10956
+ created_at?: string;
10957
+ event_id?: string | null;
10958
+ finished_at?: string | null;
10959
+ id?: string;
10960
+ missing?: import("../integrations/supabase/types").Json;
10961
+ order_ref?: string;
10962
+ reason?: string | null;
10963
+ result?: import("../integrations/supabase/types").Json | null;
10964
+ status?: string;
10965
+ unit_ref?: string | null;
10966
+ };
10967
+ Relationships: [];
10968
+ };
10234
10969
  logistics_pickup_moments: {
10235
10970
  Row: {
10236
10971
  carrier_ref: string | null;
@@ -10267,6 +11002,30 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
10267
11002
  };
10268
11003
  Relationships: [];
10269
11004
  };
11005
+ logistics_plan_locks: {
11006
+ Row: {
11007
+ created_at: string;
11008
+ lock_key: string;
11009
+ locked_until: string;
11010
+ owner: string | null;
11011
+ updated_at: string;
11012
+ };
11013
+ Insert: {
11014
+ created_at?: string;
11015
+ lock_key: string;
11016
+ locked_until: string;
11017
+ owner?: string | null;
11018
+ updated_at?: string;
11019
+ };
11020
+ Update: {
11021
+ created_at?: string;
11022
+ lock_key?: string;
11023
+ locked_until?: string;
11024
+ owner?: string | null;
11025
+ updated_at?: string;
11026
+ };
11027
+ Relationships: [];
11028
+ };
10270
11029
  logistics_plan_queue: {
10271
11030
  Row: {
10272
11031
  attempts: number;
@@ -10690,6 +11449,69 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
10690
11449
  };
10691
11450
  Relationships: [];
10692
11451
  };
11452
+ logistics_slip_shipping_note: {
11453
+ Row: {
11454
+ attempts: number;
11455
+ batch_key: string | null;
11456
+ cart_id: string | null;
11457
+ created_at: string;
11458
+ error: string | null;
11459
+ error_code: string | null;
11460
+ fulfillment_order_id: string | null;
11461
+ id: string;
11462
+ locked_until: string | null;
11463
+ next_attempt_at: string | null;
11464
+ order_id: string | null;
11465
+ order_number: string | null;
11466
+ print_job_id: string | null;
11467
+ printer_id: string | null;
11468
+ retry_class: string | null;
11469
+ slip_job_id: string;
11470
+ status: string;
11471
+ updated_at: string;
11472
+ };
11473
+ Insert: {
11474
+ attempts?: number;
11475
+ batch_key?: string | null;
11476
+ cart_id?: string | null;
11477
+ created_at?: string;
11478
+ error?: string | null;
11479
+ error_code?: string | null;
11480
+ fulfillment_order_id?: string | null;
11481
+ id?: string;
11482
+ locked_until?: string | null;
11483
+ next_attempt_at?: string | null;
11484
+ order_id?: string | null;
11485
+ order_number?: string | null;
11486
+ print_job_id?: string | null;
11487
+ printer_id?: string | null;
11488
+ retry_class?: string | null;
11489
+ slip_job_id: string;
11490
+ status?: string;
11491
+ updated_at?: string;
11492
+ };
11493
+ Update: {
11494
+ attempts?: number;
11495
+ batch_key?: string | null;
11496
+ cart_id?: string | null;
11497
+ created_at?: string;
11498
+ error?: string | null;
11499
+ error_code?: string | null;
11500
+ fulfillment_order_id?: string | null;
11501
+ id?: string;
11502
+ locked_until?: string | null;
11503
+ next_attempt_at?: string | null;
11504
+ order_id?: string | null;
11505
+ order_number?: string | null;
11506
+ print_job_id?: string | null;
11507
+ printer_id?: string | null;
11508
+ retry_class?: string | null;
11509
+ slip_job_id?: string;
11510
+ status?: string;
11511
+ updated_at?: string;
11512
+ };
11513
+ Relationships: [];
11514
+ };
10693
11515
  logistics_staff_planning: {
10694
11516
  Row: {
10695
11517
  created_at: string;
@@ -11023,6 +11845,264 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
11023
11845
  };
11024
11846
  Relationships: [];
11025
11847
  };
11848
+ logistics_time_settings: {
11849
+ Row: {
11850
+ id: boolean;
11851
+ timezone: string;
11852
+ updated_at: string;
11853
+ };
11854
+ Insert: {
11855
+ id?: boolean;
11856
+ timezone: string;
11857
+ updated_at?: string;
11858
+ };
11859
+ Update: {
11860
+ id?: boolean;
11861
+ timezone?: string;
11862
+ updated_at?: string;
11863
+ };
11864
+ Relationships: [];
11865
+ };
11866
+ logistics_trace_events: {
11867
+ Row: {
11868
+ actor: string | null;
11869
+ attempts: number;
11870
+ calc: import("../integrations/supabase/types").Json | null;
11871
+ cart_ref: string | null;
11872
+ created_at: string;
11873
+ db_action: string | null;
11874
+ db_new: import("../integrations/supabase/types").Json | null;
11875
+ db_old: import("../integrations/supabase/types").Json | null;
11876
+ db_record: string | null;
11877
+ db_table: string | null;
11878
+ decision: string | null;
11879
+ duration_ms: number | null;
11880
+ error: string | null;
11881
+ error_class: string | null;
11882
+ external_action: string | null;
11883
+ external_ref: string | null;
11884
+ external_response: import("../integrations/supabase/types").Json | null;
11885
+ external_status: string | null;
11886
+ external_system: string | null;
11887
+ id: string;
11888
+ input: import("../integrations/supabase/types").Json | null;
11889
+ next_attempt_at: string | null;
11890
+ next_step: string | null;
11891
+ node_id: string | null;
11892
+ order_ref: string | null;
11893
+ order_source: string | null;
11894
+ output: import("../integrations/supabase/types").Json | null;
11895
+ phase: string;
11896
+ reads: import("../integrations/supabase/types").Json | null;
11897
+ reason: string | null;
11898
+ rule: string | null;
11899
+ slip_ref: string | null;
11900
+ status: string;
11901
+ step: string;
11902
+ trace_id: string;
11903
+ values_used: import("../integrations/supabase/types").Json | null;
11904
+ };
11905
+ Insert: {
11906
+ actor?: string | null;
11907
+ attempts?: number;
11908
+ calc?: import("../integrations/supabase/types").Json | null;
11909
+ cart_ref?: string | null;
11910
+ created_at?: string;
11911
+ db_action?: string | null;
11912
+ db_new?: import("../integrations/supabase/types").Json | null;
11913
+ db_old?: import("../integrations/supabase/types").Json | null;
11914
+ db_record?: string | null;
11915
+ db_table?: string | null;
11916
+ decision?: string | null;
11917
+ duration_ms?: number | null;
11918
+ error?: string | null;
11919
+ error_class?: string | null;
11920
+ external_action?: string | null;
11921
+ external_ref?: string | null;
11922
+ external_response?: import("../integrations/supabase/types").Json | null;
11923
+ external_status?: string | null;
11924
+ external_system?: string | null;
11925
+ id?: string;
11926
+ input?: import("../integrations/supabase/types").Json | null;
11927
+ next_attempt_at?: string | null;
11928
+ next_step?: string | null;
11929
+ node_id?: string | null;
11930
+ order_ref?: string | null;
11931
+ order_source?: string | null;
11932
+ output?: import("../integrations/supabase/types").Json | null;
11933
+ phase: string;
11934
+ reads?: import("../integrations/supabase/types").Json | null;
11935
+ reason?: string | null;
11936
+ rule?: string | null;
11937
+ slip_ref?: string | null;
11938
+ status: string;
11939
+ step: string;
11940
+ trace_id?: string;
11941
+ values_used?: import("../integrations/supabase/types").Json | null;
11942
+ };
11943
+ Update: {
11944
+ actor?: string | null;
11945
+ attempts?: number;
11946
+ calc?: import("../integrations/supabase/types").Json | null;
11947
+ cart_ref?: string | null;
11948
+ created_at?: string;
11949
+ db_action?: string | null;
11950
+ db_new?: import("../integrations/supabase/types").Json | null;
11951
+ db_old?: import("../integrations/supabase/types").Json | null;
11952
+ db_record?: string | null;
11953
+ db_table?: string | null;
11954
+ decision?: string | null;
11955
+ duration_ms?: number | null;
11956
+ error?: string | null;
11957
+ error_class?: string | null;
11958
+ external_action?: string | null;
11959
+ external_ref?: string | null;
11960
+ external_response?: import("../integrations/supabase/types").Json | null;
11961
+ external_status?: string | null;
11962
+ external_system?: string | null;
11963
+ id?: string;
11964
+ input?: import("../integrations/supabase/types").Json | null;
11965
+ next_attempt_at?: string | null;
11966
+ next_step?: string | null;
11967
+ node_id?: string | null;
11968
+ order_ref?: string | null;
11969
+ order_source?: string | null;
11970
+ output?: import("../integrations/supabase/types").Json | null;
11971
+ phase?: string;
11972
+ reads?: import("../integrations/supabase/types").Json | null;
11973
+ reason?: string | null;
11974
+ rule?: string | null;
11975
+ slip_ref?: string | null;
11976
+ status?: string;
11977
+ step?: string;
11978
+ trace_id?: string;
11979
+ values_used?: import("../integrations/supabase/types").Json | null;
11980
+ };
11981
+ Relationships: [];
11982
+ };
11983
+ logistics_trace_events_archive: {
11984
+ Row: {
11985
+ actor: string | null;
11986
+ attempts: number;
11987
+ calc: import("../integrations/supabase/types").Json | null;
11988
+ cart_ref: string | null;
11989
+ created_at: string;
11990
+ db_action: string | null;
11991
+ db_new: import("../integrations/supabase/types").Json | null;
11992
+ db_old: import("../integrations/supabase/types").Json | null;
11993
+ db_record: string | null;
11994
+ db_table: string | null;
11995
+ decision: string | null;
11996
+ duration_ms: number | null;
11997
+ error: string | null;
11998
+ error_class: string | null;
11999
+ external_action: string | null;
12000
+ external_ref: string | null;
12001
+ external_response: import("../integrations/supabase/types").Json | null;
12002
+ external_status: string | null;
12003
+ external_system: string | null;
12004
+ id: string;
12005
+ input: import("../integrations/supabase/types").Json | null;
12006
+ next_attempt_at: string | null;
12007
+ next_step: string | null;
12008
+ node_id: string | null;
12009
+ order_ref: string | null;
12010
+ order_source: string | null;
12011
+ output: import("../integrations/supabase/types").Json | null;
12012
+ phase: string;
12013
+ reads: import("../integrations/supabase/types").Json | null;
12014
+ reason: string | null;
12015
+ rule: string | null;
12016
+ slip_ref: string | null;
12017
+ status: string;
12018
+ step: string;
12019
+ superseded_at: string;
12020
+ superseded_reason: string | null;
12021
+ trace_id: string;
12022
+ values_used: import("../integrations/supabase/types").Json | null;
12023
+ };
12024
+ Insert: {
12025
+ actor?: string | null;
12026
+ attempts?: number;
12027
+ calc?: import("../integrations/supabase/types").Json | null;
12028
+ cart_ref?: string | null;
12029
+ created_at?: string;
12030
+ db_action?: string | null;
12031
+ db_new?: import("../integrations/supabase/types").Json | null;
12032
+ db_old?: import("../integrations/supabase/types").Json | null;
12033
+ db_record?: string | null;
12034
+ db_table?: string | null;
12035
+ decision?: string | null;
12036
+ duration_ms?: number | null;
12037
+ error?: string | null;
12038
+ error_class?: string | null;
12039
+ external_action?: string | null;
12040
+ external_ref?: string | null;
12041
+ external_response?: import("../integrations/supabase/types").Json | null;
12042
+ external_status?: string | null;
12043
+ external_system?: string | null;
12044
+ id?: string;
12045
+ input?: import("../integrations/supabase/types").Json | null;
12046
+ next_attempt_at?: string | null;
12047
+ next_step?: string | null;
12048
+ node_id?: string | null;
12049
+ order_ref?: string | null;
12050
+ order_source?: string | null;
12051
+ output?: import("../integrations/supabase/types").Json | null;
12052
+ phase: string;
12053
+ reads?: import("../integrations/supabase/types").Json | null;
12054
+ reason?: string | null;
12055
+ rule?: string | null;
12056
+ slip_ref?: string | null;
12057
+ status: string;
12058
+ step: string;
12059
+ superseded_at?: string;
12060
+ superseded_reason?: string | null;
12061
+ trace_id?: string;
12062
+ values_used?: import("../integrations/supabase/types").Json | null;
12063
+ };
12064
+ Update: {
12065
+ actor?: string | null;
12066
+ attempts?: number;
12067
+ calc?: import("../integrations/supabase/types").Json | null;
12068
+ cart_ref?: string | null;
12069
+ created_at?: string;
12070
+ db_action?: string | null;
12071
+ db_new?: import("../integrations/supabase/types").Json | null;
12072
+ db_old?: import("../integrations/supabase/types").Json | null;
12073
+ db_record?: string | null;
12074
+ db_table?: string | null;
12075
+ decision?: string | null;
12076
+ duration_ms?: number | null;
12077
+ error?: string | null;
12078
+ error_class?: string | null;
12079
+ external_action?: string | null;
12080
+ external_ref?: string | null;
12081
+ external_response?: import("../integrations/supabase/types").Json | null;
12082
+ external_status?: string | null;
12083
+ external_system?: string | null;
12084
+ id?: string;
12085
+ input?: import("../integrations/supabase/types").Json | null;
12086
+ next_attempt_at?: string | null;
12087
+ next_step?: string | null;
12088
+ node_id?: string | null;
12089
+ order_ref?: string | null;
12090
+ order_source?: string | null;
12091
+ output?: import("../integrations/supabase/types").Json | null;
12092
+ phase?: string;
12093
+ reads?: import("../integrations/supabase/types").Json | null;
12094
+ reason?: string | null;
12095
+ rule?: string | null;
12096
+ slip_ref?: string | null;
12097
+ status?: string;
12098
+ step?: string;
12099
+ superseded_at?: string;
12100
+ superseded_reason?: string | null;
12101
+ trace_id?: string;
12102
+ values_used?: import("../integrations/supabase/types").Json | null;
12103
+ };
12104
+ Relationships: [];
12105
+ };
11026
12106
  logistics_variables: {
11027
12107
  Row: {
11028
12108
  created_at: string;
@@ -11170,6 +12250,7 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
11170
12250
  has_attachments: boolean;
11171
12251
  id: string;
11172
12252
  message_id: string | null;
12253
+ preview: string | null;
11173
12254
  profile_id: string | null;
11174
12255
  raw_size: number | null;
11175
12256
  received_at: string | null;
@@ -11193,6 +12274,7 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
11193
12274
  has_attachments?: boolean;
11194
12275
  id?: string;
11195
12276
  message_id?: string | null;
12277
+ preview?: string | null;
11196
12278
  profile_id?: string | null;
11197
12279
  raw_size?: number | null;
11198
12280
  received_at?: string | null;
@@ -11216,6 +12298,7 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
11216
12298
  has_attachments?: boolean;
11217
12299
  id?: string;
11218
12300
  message_id?: string | null;
12301
+ preview?: string | null;
11219
12302
  profile_id?: string | null;
11220
12303
  raw_size?: number | null;
11221
12304
  received_at?: string | null;
@@ -11247,6 +12330,7 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
11247
12330
  };
11248
12331
  mailbox_order_proposals: {
11249
12332
  Row: {
12333
+ ai_ok: boolean | null;
11250
12334
  ai_validation: import("../integrations/supabase/types").Json | null;
11251
12335
  confidence: number | null;
11252
12336
  created_at: string;
@@ -11264,6 +12348,7 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
11264
12348
  updated_at: string;
11265
12349
  };
11266
12350
  Insert: {
12351
+ ai_ok?: boolean | null;
11267
12352
  ai_validation?: import("../integrations/supabase/types").Json | null;
11268
12353
  confidence?: number | null;
11269
12354
  created_at?: string;
@@ -11281,6 +12366,7 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
11281
12366
  updated_at?: string;
11282
12367
  };
11283
12368
  Update: {
12369
+ ai_ok?: boolean | null;
11284
12370
  ai_validation?: import("../integrations/supabase/types").Json | null;
11285
12371
  confidence?: number | null;
11286
12372
  created_at?: string;
@@ -13413,6 +14499,7 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
13413
14499
  customer_name: string;
13414
14500
  deleted_at: string | null;
13415
14501
  delivery_date: string | null;
14502
+ floriday_order_group_key: string | null;
13416
14503
  floriday_sales_order_id: string | null;
13417
14504
  id: string;
13418
14505
  invoice_due_at: string | null;
@@ -13440,6 +14527,7 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
13440
14527
  customer_name?: string;
13441
14528
  deleted_at?: string | null;
13442
14529
  delivery_date?: string | null;
14530
+ floriday_order_group_key?: string | null;
13443
14531
  floriday_sales_order_id?: string | null;
13444
14532
  id?: string;
13445
14533
  invoice_due_at?: string | null;
@@ -13467,6 +14555,7 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
13467
14555
  customer_name?: string;
13468
14556
  deleted_at?: string | null;
13469
14557
  delivery_date?: string | null;
14558
+ floriday_order_group_key?: string | null;
13470
14559
  floriday_sales_order_id?: string | null;
13471
14560
  id?: string;
13472
14561
  invoice_due_at?: string | null;
@@ -13660,6 +14749,27 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
13660
14749
  };
13661
14750
  Relationships: [];
13662
14751
  };
14752
+ pick_buffer_event_cursor: {
14753
+ Row: {
14754
+ created_at: string;
14755
+ id: boolean;
14756
+ last_event_at: string;
14757
+ updated_at: string;
14758
+ };
14759
+ Insert: {
14760
+ created_at?: string;
14761
+ id?: boolean;
14762
+ last_event_at?: string;
14763
+ updated_at?: string;
14764
+ };
14765
+ Update: {
14766
+ created_at?: string;
14767
+ id?: boolean;
14768
+ last_event_at?: string;
14769
+ updated_at?: string;
14770
+ };
14771
+ Relationships: [];
14772
+ };
13663
14773
  pick_countries: {
13664
14774
  Row: {
13665
14775
  active: boolean;
@@ -14746,6 +15856,123 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
14746
15856
  referencedColumns: ["id"];
14747
15857
  }];
14748
15858
  };
15859
+ price_list_rows: {
15860
+ Row: {
15861
+ action: string;
15862
+ created_at: string;
15863
+ id: string;
15864
+ message: string | null;
15865
+ parsed: import("../integrations/supabase/types").Json;
15866
+ price_list_id: string;
15867
+ raw: import("../integrations/supabase/types").Json;
15868
+ row_number: number;
15869
+ supplier_product_id: string | null;
15870
+ };
15871
+ Insert: {
15872
+ action?: string;
15873
+ created_at?: string;
15874
+ id?: string;
15875
+ message?: string | null;
15876
+ parsed?: import("../integrations/supabase/types").Json;
15877
+ price_list_id: string;
15878
+ raw?: import("../integrations/supabase/types").Json;
15879
+ row_number: number;
15880
+ supplier_product_id?: string | null;
15881
+ };
15882
+ Update: {
15883
+ action?: string;
15884
+ created_at?: string;
15885
+ id?: string;
15886
+ message?: string | null;
15887
+ parsed?: import("../integrations/supabase/types").Json;
15888
+ price_list_id?: string;
15889
+ raw?: import("../integrations/supabase/types").Json;
15890
+ row_number?: number;
15891
+ supplier_product_id?: string | null;
15892
+ };
15893
+ Relationships: [{
15894
+ foreignKeyName: "price_list_rows_price_list_id_fkey";
15895
+ columns: ["price_list_id"];
15896
+ isOneToOne: false;
15897
+ referencedRelation: "price_lists";
15898
+ referencedColumns: ["id"];
15899
+ }, {
15900
+ foreignKeyName: "price_list_rows_supplier_product_id_fkey";
15901
+ columns: ["supplier_product_id"];
15902
+ isOneToOne: false;
15903
+ referencedRelation: "supplier_products";
15904
+ referencedColumns: ["id"];
15905
+ }];
15906
+ };
15907
+ price_lists: {
15908
+ Row: {
15909
+ created_at: string;
15910
+ created_by: string | null;
15911
+ file_hash: string | null;
15912
+ file_name: string;
15913
+ file_path: string | null;
15914
+ headers: string[];
15915
+ id: string;
15916
+ preview: import("../integrations/supabase/types").Json;
15917
+ processed_at: string | null;
15918
+ reason: string | null;
15919
+ row_count: number;
15920
+ sheet_name: string | null;
15921
+ source: string;
15922
+ stats: import("../integrations/supabase/types").Json;
15923
+ status: string;
15924
+ supplier_guess: string | null;
15925
+ supplier_id: string | null;
15926
+ updated_at: string;
15927
+ };
15928
+ Insert: {
15929
+ created_at?: string;
15930
+ created_by?: string | null;
15931
+ file_hash?: string | null;
15932
+ file_name: string;
15933
+ file_path?: string | null;
15934
+ headers?: string[];
15935
+ id?: string;
15936
+ preview?: import("../integrations/supabase/types").Json;
15937
+ processed_at?: string | null;
15938
+ reason?: string | null;
15939
+ row_count?: number;
15940
+ sheet_name?: string | null;
15941
+ source?: string;
15942
+ stats?: import("../integrations/supabase/types").Json;
15943
+ status?: string;
15944
+ supplier_guess?: string | null;
15945
+ supplier_id?: string | null;
15946
+ updated_at?: string;
15947
+ };
15948
+ Update: {
15949
+ created_at?: string;
15950
+ created_by?: string | null;
15951
+ file_hash?: string | null;
15952
+ file_name?: string;
15953
+ file_path?: string | null;
15954
+ headers?: string[];
15955
+ id?: string;
15956
+ preview?: import("../integrations/supabase/types").Json;
15957
+ processed_at?: string | null;
15958
+ reason?: string | null;
15959
+ row_count?: number;
15960
+ sheet_name?: string | null;
15961
+ source?: string;
15962
+ stats?: import("../integrations/supabase/types").Json;
15963
+ status?: string;
15964
+ supplier_guess?: string | null;
15965
+ supplier_id?: string | null;
15966
+ updated_at?: string;
15967
+ };
15968
+ Relationships: [{
15969
+ foreignKeyName: "price_lists_supplier_id_fkey";
15970
+ columns: ["supplier_id"];
15971
+ isOneToOne: false;
15972
+ referencedRelation: "suppliers";
15973
+ referencedColumns: ["id"];
15974
+ }];
15975
+ };
14749
15976
  print_agents: {
14750
15977
  Row: {
14751
15978
  actief: boolean;
@@ -16303,34 +17530,112 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
16303
17530
  referencedColumns: ["id"];
16304
17531
  }];
16305
17532
  };
16306
- purchase_order_items: {
17533
+ purchase_order_dispatches: {
16307
17534
  Row: {
16308
17535
  created_at: string;
16309
17536
  id: string;
16310
- product_id: string | null;
16311
- product_type: string;
17537
+ last_error: string | null;
17538
+ outbox_id: string | null;
16312
17539
  purchase_order_id: string;
16313
- quantity: number;
17540
+ status: string;
17541
+ supplier_id: string | null;
17542
+ supplier_name: string;
17543
+ to_address: string;
17544
+ updated_at: string;
16314
17545
  };
16315
17546
  Insert: {
16316
17547
  created_at?: string;
16317
17548
  id?: string;
16318
- product_id?: string | null;
16319
- product_type?: string;
17549
+ last_error?: string | null;
17550
+ outbox_id?: string | null;
16320
17551
  purchase_order_id: string;
16321
- quantity?: number;
17552
+ status?: string;
17553
+ supplier_id?: string | null;
17554
+ supplier_name?: string;
17555
+ to_address: string;
17556
+ updated_at?: string;
16322
17557
  };
16323
17558
  Update: {
16324
17559
  created_at?: string;
16325
17560
  id?: string;
16326
- product_id?: string | null;
16327
- product_type?: string;
17561
+ last_error?: string | null;
17562
+ outbox_id?: string | null;
16328
17563
  purchase_order_id?: string;
16329
- quantity?: number;
17564
+ status?: string;
17565
+ supplier_id?: string | null;
17566
+ supplier_name?: string;
17567
+ to_address?: string;
17568
+ updated_at?: string;
16330
17569
  };
16331
17570
  Relationships: [{
16332
- foreignKeyName: "purchase_order_items_product_id_fkey";
16333
- columns: ["product_id"];
17571
+ foreignKeyName: "purchase_order_dispatches_purchase_order_id_fkey";
17572
+ columns: ["purchase_order_id"];
17573
+ isOneToOne: false;
17574
+ referencedRelation: "purchase_orders";
17575
+ referencedColumns: ["id"];
17576
+ }, {
17577
+ foreignKeyName: "purchase_order_dispatches_supplier_id_fkey";
17578
+ columns: ["supplier_id"];
17579
+ isOneToOne: false;
17580
+ referencedRelation: "suppliers";
17581
+ referencedColumns: ["id"];
17582
+ }];
17583
+ };
17584
+ purchase_order_items: {
17585
+ Row: {
17586
+ article_number: string | null;
17587
+ created_at: string;
17588
+ delivery_date: string | null;
17589
+ id: string;
17590
+ name: string;
17591
+ note: string | null;
17592
+ pot_size: string | null;
17593
+ product_id: string | null;
17594
+ product_type: string;
17595
+ purchase_order_id: string;
17596
+ quantity: number;
17597
+ supplier_id: string | null;
17598
+ supplier_product_id: string | null;
17599
+ unit_price_cents: number;
17600
+ updated_at: string;
17601
+ };
17602
+ Insert: {
17603
+ article_number?: string | null;
17604
+ created_at?: string;
17605
+ delivery_date?: string | null;
17606
+ id?: string;
17607
+ name?: string;
17608
+ note?: string | null;
17609
+ pot_size?: string | null;
17610
+ product_id?: string | null;
17611
+ product_type?: string;
17612
+ purchase_order_id: string;
17613
+ quantity?: number;
17614
+ supplier_id?: string | null;
17615
+ supplier_product_id?: string | null;
17616
+ unit_price_cents?: number;
17617
+ updated_at?: string;
17618
+ };
17619
+ Update: {
17620
+ article_number?: string | null;
17621
+ created_at?: string;
17622
+ delivery_date?: string | null;
17623
+ id?: string;
17624
+ name?: string;
17625
+ note?: string | null;
17626
+ pot_size?: string | null;
17627
+ product_id?: string | null;
17628
+ product_type?: string;
17629
+ purchase_order_id?: string;
17630
+ quantity?: number;
17631
+ supplier_id?: string | null;
17632
+ supplier_product_id?: string | null;
17633
+ unit_price_cents?: number;
17634
+ updated_at?: string;
17635
+ };
17636
+ Relationships: [{
17637
+ foreignKeyName: "purchase_order_items_product_id_fkey";
17638
+ columns: ["product_id"];
16334
17639
  isOneToOne: false;
16335
17640
  referencedRelation: "logistics_product_dimensions";
16336
17641
  referencedColumns: ["product_id"];
@@ -16346,43 +17651,70 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
16346
17651
  isOneToOne: false;
16347
17652
  referencedRelation: "purchase_orders";
16348
17653
  referencedColumns: ["id"];
17654
+ }, {
17655
+ foreignKeyName: "purchase_order_items_supplier_id_fkey";
17656
+ columns: ["supplier_id"];
17657
+ isOneToOne: false;
17658
+ referencedRelation: "suppliers";
17659
+ referencedColumns: ["id"];
17660
+ }, {
17661
+ foreignKeyName: "purchase_order_items_supplier_product_id_fkey";
17662
+ columns: ["supplier_product_id"];
17663
+ isOneToOne: false;
17664
+ referencedRelation: "supplier_products";
17665
+ referencedColumns: ["id"];
16349
17666
  }];
16350
17667
  };
16351
17668
  purchase_orders: {
16352
17669
  Row: {
17670
+ contact_person: string | null;
16353
17671
  created_at: string;
17672
+ created_by: string | null;
16354
17673
  expected_delivery_date: string;
16355
17674
  id: string;
16356
17675
  location_id: string | null;
16357
17676
  notes: string | null;
16358
17677
  order_number: string;
17678
+ reference: string | null;
17679
+ sent_at: string | null;
16359
17680
  status: string;
16360
17681
  supplier_id: string | null;
16361
17682
  supplier_name: string;
17683
+ total_cents: number;
16362
17684
  updated_at: string;
16363
17685
  };
16364
17686
  Insert: {
17687
+ contact_person?: string | null;
16365
17688
  created_at?: string;
16366
- expected_delivery_date: string;
17689
+ created_by?: string | null;
17690
+ expected_delivery_date?: string;
16367
17691
  id?: string;
16368
17692
  location_id?: string | null;
16369
17693
  notes?: string | null;
16370
- order_number: string;
17694
+ order_number?: string;
17695
+ reference?: string | null;
17696
+ sent_at?: string | null;
16371
17697
  status?: string;
16372
17698
  supplier_id?: string | null;
16373
17699
  supplier_name?: string;
17700
+ total_cents?: number;
16374
17701
  updated_at?: string;
16375
17702
  };
16376
17703
  Update: {
17704
+ contact_person?: string | null;
16377
17705
  created_at?: string;
17706
+ created_by?: string | null;
16378
17707
  expected_delivery_date?: string;
16379
17708
  id?: string;
16380
17709
  location_id?: string | null;
16381
17710
  notes?: string | null;
16382
17711
  order_number?: string;
17712
+ reference?: string | null;
17713
+ sent_at?: string | null;
16383
17714
  status?: string;
16384
17715
  supplier_id?: string | null;
16385
17716
  supplier_name?: string;
17717
+ total_cents?: number;
16386
17718
  updated_at?: string;
16387
17719
  };
16388
17720
  Relationships: [{
@@ -17269,15 +18601,160 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
17269
18601
  };
17270
18602
  Relationships: [];
17271
18603
  };
18604
+ supplier_contacts: {
18605
+ Row: {
18606
+ created_at: string;
18607
+ email: string | null;
18608
+ id: string;
18609
+ is_primary: boolean;
18610
+ name: string;
18611
+ phone: string | null;
18612
+ role: string | null;
18613
+ supplier_id: string;
18614
+ updated_at: string;
18615
+ };
18616
+ Insert: {
18617
+ created_at?: string;
18618
+ email?: string | null;
18619
+ id?: string;
18620
+ is_primary?: boolean;
18621
+ name: string;
18622
+ phone?: string | null;
18623
+ role?: string | null;
18624
+ supplier_id: string;
18625
+ updated_at?: string;
18626
+ };
18627
+ Update: {
18628
+ created_at?: string;
18629
+ email?: string | null;
18630
+ id?: string;
18631
+ is_primary?: boolean;
18632
+ name?: string;
18633
+ phone?: string | null;
18634
+ role?: string | null;
18635
+ supplier_id?: string;
18636
+ updated_at?: string;
18637
+ };
18638
+ Relationships: [{
18639
+ foreignKeyName: "supplier_contacts_supplier_id_fkey";
18640
+ columns: ["supplier_id"];
18641
+ isOneToOne: false;
18642
+ referencedRelation: "suppliers";
18643
+ referencedColumns: ["id"];
18644
+ }];
18645
+ };
18646
+ supplier_price_history: {
18647
+ Row: {
18648
+ created_at: string;
18649
+ id: string;
18650
+ new_price_cents: number;
18651
+ old_price_cents: number | null;
18652
+ price_list_id: string | null;
18653
+ supplier_id: string | null;
18654
+ supplier_product_id: string;
18655
+ };
18656
+ Insert: {
18657
+ created_at?: string;
18658
+ id?: string;
18659
+ new_price_cents: number;
18660
+ old_price_cents?: number | null;
18661
+ price_list_id?: string | null;
18662
+ supplier_id?: string | null;
18663
+ supplier_product_id: string;
18664
+ };
18665
+ Update: {
18666
+ created_at?: string;
18667
+ id?: string;
18668
+ new_price_cents?: number;
18669
+ old_price_cents?: number | null;
18670
+ price_list_id?: string | null;
18671
+ supplier_id?: string | null;
18672
+ supplier_product_id?: string;
18673
+ };
18674
+ Relationships: [{
18675
+ foreignKeyName: "supplier_price_history_price_list_id_fkey";
18676
+ columns: ["price_list_id"];
18677
+ isOneToOne: false;
18678
+ referencedRelation: "price_lists";
18679
+ referencedColumns: ["id"];
18680
+ }, {
18681
+ foreignKeyName: "supplier_price_history_supplier_product_id_fkey";
18682
+ columns: ["supplier_product_id"];
18683
+ isOneToOne: false;
18684
+ referencedRelation: "supplier_products";
18685
+ referencedColumns: ["id"];
18686
+ }];
18687
+ };
18688
+ supplier_price_list_mappings: {
18689
+ Row: {
18690
+ column_map: import("../integrations/supabase/types").Json;
18691
+ created_at: string;
18692
+ deactivate_missing: boolean;
18693
+ decimal_separator: string;
18694
+ expected_headers: string[];
18695
+ extract_pot_from_name: boolean;
18696
+ header_row: number;
18697
+ id: string;
18698
+ max_error_ratio: number;
18699
+ price_is_cents: boolean;
18700
+ sheet_name: string | null;
18701
+ supplier_id: string;
18702
+ updated_at: string;
18703
+ };
18704
+ Insert: {
18705
+ column_map?: import("../integrations/supabase/types").Json;
18706
+ created_at?: string;
18707
+ deactivate_missing?: boolean;
18708
+ decimal_separator?: string;
18709
+ expected_headers?: string[];
18710
+ extract_pot_from_name?: boolean;
18711
+ header_row?: number;
18712
+ id?: string;
18713
+ max_error_ratio?: number;
18714
+ price_is_cents?: boolean;
18715
+ sheet_name?: string | null;
18716
+ supplier_id: string;
18717
+ updated_at?: string;
18718
+ };
18719
+ Update: {
18720
+ column_map?: import("../integrations/supabase/types").Json;
18721
+ created_at?: string;
18722
+ deactivate_missing?: boolean;
18723
+ decimal_separator?: string;
18724
+ expected_headers?: string[];
18725
+ extract_pot_from_name?: boolean;
18726
+ header_row?: number;
18727
+ id?: string;
18728
+ max_error_ratio?: number;
18729
+ price_is_cents?: boolean;
18730
+ sheet_name?: string | null;
18731
+ supplier_id?: string;
18732
+ updated_at?: string;
18733
+ };
18734
+ Relationships: [{
18735
+ foreignKeyName: "supplier_price_list_mappings_supplier_id_fkey";
18736
+ columns: ["supplier_id"];
18737
+ isOneToOne: true;
18738
+ referencedRelation: "suppliers";
18739
+ referencedColumns: ["id"];
18740
+ }];
18741
+ };
17272
18742
  supplier_products: {
17273
18743
  Row: {
17274
18744
  article_number: string | null;
18745
+ available_quantity: number;
17275
18746
  created_at: string;
18747
+ height: string | null;
17276
18748
  id: string;
18749
+ is_active: boolean;
18750
+ min_order: number;
17277
18751
  name: string;
17278
18752
  notes: string | null;
18753
+ order_unit: number;
17279
18754
  pot_size: string | null;
17280
18755
  price: number | null;
18756
+ price_cents: number;
18757
+ quality: string | null;
17281
18758
  quantity: number | null;
17282
18759
  supplier_id: string;
17283
18760
  unit: string;
@@ -17285,12 +18762,19 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
17285
18762
  };
17286
18763
  Insert: {
17287
18764
  article_number?: string | null;
18765
+ available_quantity?: number;
17288
18766
  created_at?: string;
18767
+ height?: string | null;
17289
18768
  id?: string;
18769
+ is_active?: boolean;
18770
+ min_order?: number;
17290
18771
  name: string;
17291
18772
  notes?: string | null;
18773
+ order_unit?: number;
17292
18774
  pot_size?: string | null;
17293
18775
  price?: number | null;
18776
+ price_cents?: number;
18777
+ quality?: string | null;
17294
18778
  quantity?: number | null;
17295
18779
  supplier_id: string;
17296
18780
  unit?: string;
@@ -17298,12 +18782,19 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
17298
18782
  };
17299
18783
  Update: {
17300
18784
  article_number?: string | null;
18785
+ available_quantity?: number;
17301
18786
  created_at?: string;
18787
+ height?: string | null;
17302
18788
  id?: string;
18789
+ is_active?: boolean;
18790
+ min_order?: number;
17303
18791
  name?: string;
17304
18792
  notes?: string | null;
18793
+ order_unit?: number;
17305
18794
  pot_size?: string | null;
17306
18795
  price?: number | null;
18796
+ price_cents?: number;
18797
+ quality?: string | null;
17307
18798
  quantity?: number | null;
17308
18799
  supplier_id?: string;
17309
18800
  unit?: string;
@@ -17320,6 +18811,7 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
17320
18811
  suppliers: {
17321
18812
  Row: {
17322
18813
  address: string | null;
18814
+ category: string | null;
17323
18815
  column_mappings: import("../integrations/supabase/types").Json | null;
17324
18816
  contact_person: string | null;
17325
18817
  created_at: string;
@@ -17327,13 +18819,24 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
17327
18819
  email: string | null;
17328
18820
  id: string;
17329
18821
  imported_file_name: string | null;
18822
+ is_preferred: boolean;
18823
+ kvk_number: string | null;
18824
+ lead_time_days: number | null;
18825
+ min_order_amount_cents: number;
17330
18826
  name: string;
17331
18827
  notes: string | null;
18828
+ order_days: string[];
18829
+ order_email: string | null;
18830
+ payment_terms_days: number | null;
17332
18831
  phone: string | null;
18832
+ status: string;
17333
18833
  updated_at: string;
18834
+ vat_number: string | null;
18835
+ website: string | null;
17334
18836
  };
17335
18837
  Insert: {
17336
18838
  address?: string | null;
18839
+ category?: string | null;
17337
18840
  column_mappings?: import("../integrations/supabase/types").Json | null;
17338
18841
  contact_person?: string | null;
17339
18842
  created_at?: string;
@@ -17341,13 +18844,24 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
17341
18844
  email?: string | null;
17342
18845
  id?: string;
17343
18846
  imported_file_name?: string | null;
18847
+ is_preferred?: boolean;
18848
+ kvk_number?: string | null;
18849
+ lead_time_days?: number | null;
18850
+ min_order_amount_cents?: number;
17344
18851
  name: string;
17345
18852
  notes?: string | null;
18853
+ order_days?: string[];
18854
+ order_email?: string | null;
18855
+ payment_terms_days?: number | null;
17346
18856
  phone?: string | null;
18857
+ status?: string;
17347
18858
  updated_at?: string;
18859
+ vat_number?: string | null;
18860
+ website?: string | null;
17348
18861
  };
17349
18862
  Update: {
17350
18863
  address?: string | null;
18864
+ category?: string | null;
17351
18865
  column_mappings?: import("../integrations/supabase/types").Json | null;
17352
18866
  contact_person?: string | null;
17353
18867
  created_at?: string;
@@ -17355,10 +18869,20 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
17355
18869
  email?: string | null;
17356
18870
  id?: string;
17357
18871
  imported_file_name?: string | null;
18872
+ is_preferred?: boolean;
18873
+ kvk_number?: string | null;
18874
+ lead_time_days?: number | null;
18875
+ min_order_amount_cents?: number;
17358
18876
  name?: string;
17359
18877
  notes?: string | null;
18878
+ order_days?: string[];
18879
+ order_email?: string | null;
18880
+ payment_terms_days?: number | null;
17360
18881
  phone?: string | null;
18882
+ status?: string;
17361
18883
  updated_at?: string;
18884
+ vat_number?: string | null;
18885
+ website?: string | null;
17362
18886
  };
17363
18887
  Relationships: [];
17364
18888
  };
@@ -18360,11 +19884,13 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
18360
19884
  auto_invoice_trigger_statuses: string[];
18361
19885
  created_at: string;
18362
19886
  debtor_gl_account: string;
19887
+ default_article_code: string | null;
18363
19888
  default_credit_invoice_type: string | null;
18364
19889
  default_gl_account: string;
18365
19890
  default_invoice_type: string;
18366
19891
  default_payment_term_days: number;
18367
19892
  default_vat_code: string;
19893
+ email_purpose: string | null;
18368
19894
  home_country_code: string;
18369
19895
  invoice_enabled_ao: boolean;
18370
19896
  invoice_enabled_fo: boolean;
@@ -18386,11 +19912,13 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
18386
19912
  auto_invoice_trigger_statuses?: string[];
18387
19913
  created_at?: string;
18388
19914
  debtor_gl_account?: string;
19915
+ default_article_code?: string | null;
18389
19916
  default_credit_invoice_type?: string | null;
18390
19917
  default_gl_account?: string;
18391
19918
  default_invoice_type?: string;
18392
19919
  default_payment_term_days?: number;
18393
19920
  default_vat_code?: string;
19921
+ email_purpose?: string | null;
18394
19922
  home_country_code?: string;
18395
19923
  invoice_enabled_ao?: boolean;
18396
19924
  invoice_enabled_fo?: boolean;
@@ -18412,11 +19940,13 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
18412
19940
  auto_invoice_trigger_statuses?: string[];
18413
19941
  created_at?: string;
18414
19942
  debtor_gl_account?: string;
19943
+ default_article_code?: string | null;
18415
19944
  default_credit_invoice_type?: string | null;
18416
19945
  default_gl_account?: string;
18417
19946
  default_invoice_type?: string;
18418
19947
  default_payment_term_days?: number;
18419
19948
  default_vat_code?: string;
19949
+ email_purpose?: string | null;
18420
19950
  home_country_code?: string;
18421
19951
  invoice_enabled_ao?: boolean;
18422
19952
  invoice_enabled_fo?: boolean;
@@ -19309,6 +20839,36 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
19309
20839
  referencedColumns: ["id"];
19310
20840
  }];
19311
20841
  };
20842
+ voorraad_buffer_state: {
20843
+ Row: {
20844
+ buffer_id: string;
20845
+ buffer_key: string | null;
20846
+ closed_at: string | null;
20847
+ created_at: string;
20848
+ detached_orders: import("../integrations/supabase/types").Json;
20849
+ reason: string | null;
20850
+ updated_at: string;
20851
+ };
20852
+ Insert: {
20853
+ buffer_id: string;
20854
+ buffer_key?: string | null;
20855
+ closed_at?: string | null;
20856
+ created_at?: string;
20857
+ detached_orders?: import("../integrations/supabase/types").Json;
20858
+ reason?: string | null;
20859
+ updated_at?: string;
20860
+ };
20861
+ Update: {
20862
+ buffer_id?: string;
20863
+ buffer_key?: string | null;
20864
+ closed_at?: string | null;
20865
+ created_at?: string;
20866
+ detached_orders?: import("../integrations/supabase/types").Json;
20867
+ reason?: string | null;
20868
+ updated_at?: string;
20869
+ };
20870
+ Relationships: [];
20871
+ };
19312
20872
  voorraad_custom_fields: {
19313
20873
  Row: {
19314
20874
  created_at: string;
@@ -19351,6 +20911,36 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
19351
20911
  };
19352
20912
  Relationships: [];
19353
20913
  };
20914
+ voorraad_logistics_event_log: {
20915
+ Row: {
20916
+ created_at: string;
20917
+ event_id: string;
20918
+ event_type: string;
20919
+ order_ref: string | null;
20920
+ processed_at: string;
20921
+ result: import("../integrations/supabase/types").Json;
20922
+ updated_at: string;
20923
+ };
20924
+ Insert: {
20925
+ created_at?: string;
20926
+ event_id: string;
20927
+ event_type: string;
20928
+ order_ref?: string | null;
20929
+ processed_at?: string;
20930
+ result?: import("../integrations/supabase/types").Json;
20931
+ updated_at?: string;
20932
+ };
20933
+ Update: {
20934
+ created_at?: string;
20935
+ event_id?: string;
20936
+ event_type?: string;
20937
+ order_ref?: string | null;
20938
+ processed_at?: string;
20939
+ result?: import("../integrations/supabase/types").Json;
20940
+ updated_at?: string;
20941
+ };
20942
+ Relationships: [];
20943
+ };
19354
20944
  voorraad_media_upload_failures: {
19355
20945
  Row: {
19356
20946
  action: string;
@@ -19618,15 +21208,51 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
19618
21208
  referencedColumns: ["id"];
19619
21209
  }];
19620
21210
  };
19621
- werkbon_export_runs: {
21211
+ werkbon_email_state: {
19622
21212
  Row: {
19623
21213
  created_at: string;
19624
- created_by: string | null;
19625
- filename: string | null;
21214
+ event_id: string;
19626
21215
  id: string;
19627
- werkbon_ids: string[];
19628
- };
19629
- Insert: {
21216
+ is_archived: boolean;
21217
+ is_read: boolean;
21218
+ updated_at: string;
21219
+ werkbon_id: string | null;
21220
+ };
21221
+ Insert: {
21222
+ created_at?: string;
21223
+ event_id: string;
21224
+ id?: string;
21225
+ is_archived?: boolean;
21226
+ is_read?: boolean;
21227
+ updated_at?: string;
21228
+ werkbon_id?: string | null;
21229
+ };
21230
+ Update: {
21231
+ created_at?: string;
21232
+ event_id?: string;
21233
+ id?: string;
21234
+ is_archived?: boolean;
21235
+ is_read?: boolean;
21236
+ updated_at?: string;
21237
+ werkbon_id?: string | null;
21238
+ };
21239
+ Relationships: [{
21240
+ foreignKeyName: "werkbon_email_state_event_id_fkey";
21241
+ columns: ["event_id"];
21242
+ isOneToOne: true;
21243
+ referencedRelation: "email_auth_events";
21244
+ referencedColumns: ["id"];
21245
+ }];
21246
+ };
21247
+ werkbon_export_runs: {
21248
+ Row: {
21249
+ created_at: string;
21250
+ created_by: string | null;
21251
+ filename: string | null;
21252
+ id: string;
21253
+ werkbon_ids: string[];
21254
+ };
21255
+ Insert: {
19630
21256
  created_at?: string;
19631
21257
  created_by?: string | null;
19632
21258
  filename?: string | null;
@@ -19771,6 +21397,147 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
19771
21397
  };
19772
21398
  Relationships: [];
19773
21399
  };
21400
+ werkbon_mail_ai_settings: {
21401
+ Row: {
21402
+ created_at: string;
21403
+ id: boolean;
21404
+ required_fields: string[];
21405
+ system_prompt: string;
21406
+ updated_at: string;
21407
+ updated_by: string | null;
21408
+ };
21409
+ Insert: {
21410
+ created_at?: string;
21411
+ id?: boolean;
21412
+ required_fields?: string[];
21413
+ system_prompt?: string;
21414
+ updated_at?: string;
21415
+ updated_by?: string | null;
21416
+ };
21417
+ Update: {
21418
+ created_at?: string;
21419
+ id?: boolean;
21420
+ required_fields?: string[];
21421
+ system_prompt?: string;
21422
+ updated_at?: string;
21423
+ updated_by?: string | null;
21424
+ };
21425
+ Relationships: [];
21426
+ };
21427
+ werkbon_mail_bodies: {
21428
+ Row: {
21429
+ created_at: string;
21430
+ event_id: string;
21431
+ fetch_error: string | null;
21432
+ fetched_at: string | null;
21433
+ html: string | null;
21434
+ updated_at: string;
21435
+ };
21436
+ Insert: {
21437
+ created_at?: string;
21438
+ event_id: string;
21439
+ fetch_error?: string | null;
21440
+ fetched_at?: string | null;
21441
+ html?: string | null;
21442
+ updated_at?: string;
21443
+ };
21444
+ Update: {
21445
+ created_at?: string;
21446
+ event_id?: string;
21447
+ fetch_error?: string | null;
21448
+ fetched_at?: string | null;
21449
+ html?: string | null;
21450
+ updated_at?: string;
21451
+ };
21452
+ Relationships: [];
21453
+ };
21454
+ werkbon_mail_inline_assets: {
21455
+ Row: {
21456
+ content_id: string | null;
21457
+ created_at: string;
21458
+ event_id: string;
21459
+ filename: string | null;
21460
+ id: string;
21461
+ is_inline: boolean;
21462
+ mime_type: string | null;
21463
+ size_bytes: number | null;
21464
+ storage_path: string;
21465
+ };
21466
+ Insert: {
21467
+ content_id?: string | null;
21468
+ created_at?: string;
21469
+ event_id: string;
21470
+ filename?: string | null;
21471
+ id?: string;
21472
+ is_inline?: boolean;
21473
+ mime_type?: string | null;
21474
+ size_bytes?: number | null;
21475
+ storage_path: string;
21476
+ };
21477
+ Update: {
21478
+ content_id?: string | null;
21479
+ created_at?: string;
21480
+ event_id?: string;
21481
+ filename?: string | null;
21482
+ id?: string;
21483
+ is_inline?: boolean;
21484
+ mime_type?: string | null;
21485
+ size_bytes?: number | null;
21486
+ storage_path?: string;
21487
+ };
21488
+ Relationships: [];
21489
+ };
21490
+ werkbon_mail_settings: {
21491
+ Row: {
21492
+ connection_id: string | null;
21493
+ connection_ids: string[];
21494
+ created_at: string;
21495
+ id: boolean;
21496
+ purposes: string[];
21497
+ source: string;
21498
+ updated_at: string;
21499
+ };
21500
+ Insert: {
21501
+ connection_id?: string | null;
21502
+ connection_ids?: string[];
21503
+ created_at?: string;
21504
+ id?: boolean;
21505
+ purposes?: string[];
21506
+ source?: string;
21507
+ updated_at?: string;
21508
+ };
21509
+ Update: {
21510
+ connection_id?: string | null;
21511
+ connection_ids?: string[];
21512
+ created_at?: string;
21513
+ id?: boolean;
21514
+ purposes?: string[];
21515
+ source?: string;
21516
+ updated_at?: string;
21517
+ };
21518
+ Relationships: [];
21519
+ };
21520
+ werkbon_mail_user_settings: {
21521
+ Row: {
21522
+ created_at: string;
21523
+ email_purpose: string | null;
21524
+ updated_at: string;
21525
+ user_id: string;
21526
+ };
21527
+ Insert: {
21528
+ created_at?: string;
21529
+ email_purpose?: string | null;
21530
+ updated_at?: string;
21531
+ user_id: string;
21532
+ };
21533
+ Update: {
21534
+ created_at?: string;
21535
+ email_purpose?: string | null;
21536
+ updated_at?: string;
21537
+ user_id?: string;
21538
+ };
21539
+ Relationships: [];
21540
+ };
19774
21541
  werkbon_materials: {
19775
21542
  Row: {
19776
21543
  article_number: string | null;
@@ -20110,141 +21877,302 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
20110
21877
  referencedColumns: ["id"];
20111
21878
  }];
20112
21879
  };
20113
- werkbon_time_logs: {
21880
+ werkbon_proposal_lines: {
20114
21881
  Row: {
20115
- activity: string;
21882
+ article_number: string | null;
20116
21883
  created_at: string;
20117
- ended_at: string | null;
21884
+ description: string | null;
20118
21885
  id: string;
21886
+ line_type: string;
20119
21887
  note: string | null;
20120
- started_at: string;
20121
- user_id: string;
20122
- werkbon_id: string;
21888
+ package_id: string | null;
21889
+ proposal_id: string;
21890
+ quantity: number | null;
21891
+ sort_order: number;
21892
+ unit: string | null;
21893
+ updated_at: string;
20123
21894
  };
20124
21895
  Insert: {
20125
- activity: string;
21896
+ article_number?: string | null;
20126
21897
  created_at?: string;
20127
- ended_at?: string | null;
21898
+ description?: string | null;
20128
21899
  id?: string;
21900
+ line_type?: string;
20129
21901
  note?: string | null;
20130
- started_at?: string;
20131
- user_id: string;
20132
- werkbon_id: string;
21902
+ package_id?: string | null;
21903
+ proposal_id: string;
21904
+ quantity?: number | null;
21905
+ sort_order?: number;
21906
+ unit?: string | null;
21907
+ updated_at?: string;
20133
21908
  };
20134
21909
  Update: {
20135
- activity?: string;
21910
+ article_number?: string | null;
20136
21911
  created_at?: string;
20137
- ended_at?: string | null;
21912
+ description?: string | null;
20138
21913
  id?: string;
21914
+ line_type?: string;
20139
21915
  note?: string | null;
20140
- started_at?: string;
20141
- user_id?: string;
20142
- werkbon_id?: string;
21916
+ package_id?: string | null;
21917
+ proposal_id?: string;
21918
+ quantity?: number | null;
21919
+ sort_order?: number;
21920
+ unit?: string | null;
21921
+ updated_at?: string;
20143
21922
  };
20144
21923
  Relationships: [{
20145
- foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
20146
- columns: ["werkbon_id"];
20147
- isOneToOne: false;
20148
- referencedRelation: "werkbonnen";
20149
- referencedColumns: ["id"];
20150
- }, {
20151
- foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
20152
- columns: ["werkbon_id"];
21924
+ foreignKeyName: "werkbon_proposal_lines_proposal_id_fkey";
21925
+ columns: ["proposal_id"];
20153
21926
  isOneToOne: false;
20154
- referencedRelation: "wo_overview";
21927
+ referencedRelation: "werkbon_proposals";
20155
21928
  referencedColumns: ["id"];
20156
21929
  }];
20157
21930
  };
20158
- werkbonnen: {
21931
+ werkbon_proposals: {
20159
21932
  Row: {
20160
- assigned_user_id: string | null;
21933
+ analysed: boolean;
20161
21934
  budget_mandate_cents: number;
20162
21935
  complaint_description: string | null;
21936
+ contact_id: string | null;
20163
21937
  created_at: string;
20164
- created_by: string | null;
21938
+ created_werkbon_id: string | null;
20165
21939
  customer_id: string | null;
21940
+ deadline_date: string | null;
21941
+ estimated_days: number | null;
21942
+ estimated_duration_minutes: number | null;
21943
+ event_id: string;
21944
+ external_id: string | null;
20166
21945
  externe_referentie: string | null;
20167
- extra_costs_cents: number;
20168
- first_time_fix: boolean | null;
21946
+ from_email: string | null;
21947
+ from_name: string | null;
20169
21948
  id: string;
20170
21949
  internal_notes: string | null;
20171
- needs_detail_review: boolean;
20172
- parent_werkbon_id: string | null;
20173
- parsed_payload: import("../integrations/supabase/types").Json | null;
20174
- planning_status: string;
20175
- project_number: string | null;
20176
- review_reasons: string[];
21950
+ parsed_payload: import("../integrations/supabase/types").Json;
21951
+ received_at: string | null;
21952
+ reviewed_at: string | null;
21953
+ reviewed_by: string | null;
20177
21954
  room_number: string | null;
20178
21955
  scheduled_end_time: string | null;
20179
21956
  scheduled_start_time: string | null;
20180
- sequence_number: number;
20181
- signature_accepted_at: string | null;
20182
- signature_by_user_id: string | null;
20183
- signature_name: string | null;
20184
- source_email_meta: import("../integrations/supabase/types").Json | null;
20185
- source_mailbox_message_id: string | null;
20186
- source_pdf_path: string | null;
20187
- source_type: string;
20188
21957
  status: string;
21958
+ subject: string | null;
20189
21959
  technician_id: string | null;
20190
- technician_notes: string | null;
20191
- technician_notes_raw: string | null;
20192
21960
  technician_task_description: string | null;
20193
21961
  updated_at: string;
20194
- version: number;
20195
21962
  work_address: string | null;
20196
21963
  };
20197
21964
  Insert: {
20198
- assigned_user_id?: string | null;
21965
+ analysed?: boolean;
20199
21966
  budget_mandate_cents?: number;
20200
21967
  complaint_description?: string | null;
21968
+ contact_id?: string | null;
20201
21969
  created_at?: string;
20202
- created_by?: string | null;
21970
+ created_werkbon_id?: string | null;
20203
21971
  customer_id?: string | null;
21972
+ deadline_date?: string | null;
21973
+ estimated_days?: number | null;
21974
+ estimated_duration_minutes?: number | null;
21975
+ event_id: string;
21976
+ external_id?: string | null;
20204
21977
  externe_referentie?: string | null;
20205
- extra_costs_cents?: number;
20206
- first_time_fix?: boolean | null;
21978
+ from_email?: string | null;
21979
+ from_name?: string | null;
20207
21980
  id?: string;
20208
21981
  internal_notes?: string | null;
20209
- needs_detail_review?: boolean;
20210
- parent_werkbon_id?: string | null;
20211
- parsed_payload?: import("../integrations/supabase/types").Json | null;
20212
- planning_status?: string;
20213
- project_number?: string | null;
20214
- review_reasons?: string[];
21982
+ parsed_payload?: import("../integrations/supabase/types").Json;
21983
+ received_at?: string | null;
21984
+ reviewed_at?: string | null;
21985
+ reviewed_by?: string | null;
20215
21986
  room_number?: string | null;
20216
21987
  scheduled_end_time?: string | null;
20217
21988
  scheduled_start_time?: string | null;
20218
- sequence_number: number;
20219
- signature_accepted_at?: string | null;
20220
- signature_by_user_id?: string | null;
20221
- signature_name?: string | null;
20222
- source_email_meta?: import("../integrations/supabase/types").Json | null;
20223
- source_mailbox_message_id?: string | null;
20224
- source_pdf_path?: string | null;
20225
- source_type?: string;
20226
21989
  status?: string;
21990
+ subject?: string | null;
20227
21991
  technician_id?: string | null;
20228
- technician_notes?: string | null;
20229
- technician_notes_raw?: string | null;
20230
21992
  technician_task_description?: string | null;
20231
21993
  updated_at?: string;
20232
- version?: number;
20233
21994
  work_address?: string | null;
20234
21995
  };
20235
21996
  Update: {
20236
- assigned_user_id?: string | null;
21997
+ analysed?: boolean;
20237
21998
  budget_mandate_cents?: number;
20238
21999
  complaint_description?: string | null;
22000
+ contact_id?: string | null;
20239
22001
  created_at?: string;
20240
- created_by?: string | null;
22002
+ created_werkbon_id?: string | null;
20241
22003
  customer_id?: string | null;
22004
+ deadline_date?: string | null;
22005
+ estimated_days?: number | null;
22006
+ estimated_duration_minutes?: number | null;
22007
+ event_id?: string;
22008
+ external_id?: string | null;
20242
22009
  externe_referentie?: string | null;
20243
- extra_costs_cents?: number;
20244
- first_time_fix?: boolean | null;
22010
+ from_email?: string | null;
22011
+ from_name?: string | null;
20245
22012
  id?: string;
20246
22013
  internal_notes?: string | null;
20247
- needs_detail_review?: boolean;
22014
+ parsed_payload?: import("../integrations/supabase/types").Json;
22015
+ received_at?: string | null;
22016
+ reviewed_at?: string | null;
22017
+ reviewed_by?: string | null;
22018
+ room_number?: string | null;
22019
+ scheduled_end_time?: string | null;
22020
+ scheduled_start_time?: string | null;
22021
+ status?: string;
22022
+ subject?: string | null;
22023
+ technician_id?: string | null;
22024
+ technician_task_description?: string | null;
22025
+ updated_at?: string;
22026
+ work_address?: string | null;
22027
+ };
22028
+ Relationships: [];
22029
+ };
22030
+ werkbon_time_logs: {
22031
+ Row: {
22032
+ activity: string;
22033
+ created_at: string;
22034
+ ended_at: string | null;
22035
+ id: string;
22036
+ note: string | null;
22037
+ started_at: string;
22038
+ user_id: string;
22039
+ werkbon_id: string;
22040
+ };
22041
+ Insert: {
22042
+ activity: string;
22043
+ created_at?: string;
22044
+ ended_at?: string | null;
22045
+ id?: string;
22046
+ note?: string | null;
22047
+ started_at?: string;
22048
+ user_id: string;
22049
+ werkbon_id: string;
22050
+ };
22051
+ Update: {
22052
+ activity?: string;
22053
+ created_at?: string;
22054
+ ended_at?: string | null;
22055
+ id?: string;
22056
+ note?: string | null;
22057
+ started_at?: string;
22058
+ user_id?: string;
22059
+ werkbon_id?: string;
22060
+ };
22061
+ Relationships: [{
22062
+ foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
22063
+ columns: ["werkbon_id"];
22064
+ isOneToOne: false;
22065
+ referencedRelation: "werkbonnen";
22066
+ referencedColumns: ["id"];
22067
+ }, {
22068
+ foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
22069
+ columns: ["werkbon_id"];
22070
+ isOneToOne: false;
22071
+ referencedRelation: "wo_overview";
22072
+ referencedColumns: ["id"];
22073
+ }];
22074
+ };
22075
+ werkbonnen: {
22076
+ Row: {
22077
+ assigned_user_id: string | null;
22078
+ budget_mandate_cents: number;
22079
+ complaint_description: string | null;
22080
+ created_at: string;
22081
+ created_by: string | null;
22082
+ customer_id: string | null;
22083
+ deadline_date: string | null;
22084
+ estimated_days: number | null;
22085
+ estimated_duration_minutes: number | null;
22086
+ externe_referentie: string | null;
22087
+ extra_costs_cents: number;
22088
+ first_time_fix: boolean | null;
22089
+ id: string;
22090
+ internal_notes: string | null;
22091
+ needs_detail_review: boolean;
22092
+ parent_werkbon_id: string | null;
22093
+ parsed_payload: import("../integrations/supabase/types").Json | null;
22094
+ planning_status: string;
22095
+ project_number: string | null;
22096
+ review_reasons: string[];
22097
+ room_number: string | null;
22098
+ scheduled_end_time: string | null;
22099
+ scheduled_start_time: string | null;
22100
+ sequence_number: number;
22101
+ signature_accepted_at: string | null;
22102
+ signature_by_user_id: string | null;
22103
+ signature_name: string | null;
22104
+ source_email_meta: import("../integrations/supabase/types").Json | null;
22105
+ source_mailbox_message_id: string | null;
22106
+ source_pdf_path: string | null;
22107
+ source_type: string;
22108
+ status: string;
22109
+ technician_id: string | null;
22110
+ technician_notes: string | null;
22111
+ technician_notes_raw: string | null;
22112
+ technician_task_description: string | null;
22113
+ updated_at: string;
22114
+ version: number;
22115
+ work_address: string | null;
22116
+ workday_hours: number | null;
22117
+ };
22118
+ Insert: {
22119
+ assigned_user_id?: string | null;
22120
+ budget_mandate_cents?: number;
22121
+ complaint_description?: string | null;
22122
+ created_at?: string;
22123
+ created_by?: string | null;
22124
+ customer_id?: string | null;
22125
+ deadline_date?: string | null;
22126
+ estimated_days?: number | null;
22127
+ estimated_duration_minutes?: number | null;
22128
+ externe_referentie?: string | null;
22129
+ extra_costs_cents?: number;
22130
+ first_time_fix?: boolean | null;
22131
+ id?: string;
22132
+ internal_notes?: string | null;
22133
+ needs_detail_review?: boolean;
22134
+ parent_werkbon_id?: string | null;
22135
+ parsed_payload?: import("../integrations/supabase/types").Json | null;
22136
+ planning_status?: string;
22137
+ project_number?: string | null;
22138
+ review_reasons?: string[];
22139
+ room_number?: string | null;
22140
+ scheduled_end_time?: string | null;
22141
+ scheduled_start_time?: string | null;
22142
+ sequence_number: number;
22143
+ signature_accepted_at?: string | null;
22144
+ signature_by_user_id?: string | null;
22145
+ signature_name?: string | null;
22146
+ source_email_meta?: import("../integrations/supabase/types").Json | null;
22147
+ source_mailbox_message_id?: string | null;
22148
+ source_pdf_path?: string | null;
22149
+ source_type?: string;
22150
+ status?: string;
22151
+ technician_id?: string | null;
22152
+ technician_notes?: string | null;
22153
+ technician_notes_raw?: string | null;
22154
+ technician_task_description?: string | null;
22155
+ updated_at?: string;
22156
+ version?: number;
22157
+ work_address?: string | null;
22158
+ workday_hours?: number | null;
22159
+ };
22160
+ Update: {
22161
+ assigned_user_id?: string | null;
22162
+ budget_mandate_cents?: number;
22163
+ complaint_description?: string | null;
22164
+ created_at?: string;
22165
+ created_by?: string | null;
22166
+ customer_id?: string | null;
22167
+ deadline_date?: string | null;
22168
+ estimated_days?: number | null;
22169
+ estimated_duration_minutes?: number | null;
22170
+ externe_referentie?: string | null;
22171
+ extra_costs_cents?: number;
22172
+ first_time_fix?: boolean | null;
22173
+ id?: string;
22174
+ internal_notes?: string | null;
22175
+ needs_detail_review?: boolean;
20248
22176
  parent_werkbon_id?: string | null;
20249
22177
  parsed_payload?: import("../integrations/supabase/types").Json | null;
20250
22178
  planning_status?: string;
@@ -20269,6 +22197,7 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
20269
22197
  updated_at?: string;
20270
22198
  version?: number;
20271
22199
  work_address?: string | null;
22200
+ workday_hours?: number | null;
20272
22201
  };
20273
22202
  Relationships: [{
20274
22203
  foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
@@ -21473,6 +23402,10 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
21473
23402
  };
21474
23403
  Returns: string;
21475
23404
  };
23405
+ backfill_cart_numbers_day_seq: {
23406
+ Args: never;
23407
+ Returns: number;
23408
+ };
21476
23409
  backfill_open_order_reservations: {
21477
23410
  Args: never;
21478
23411
  Returns: {
@@ -21511,6 +23444,15 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
21511
23444
  Args: never;
21512
23445
  Returns: boolean;
21513
23446
  };
23447
+ cancel_open_print_jobs: {
23448
+ Args: {
23449
+ _cutoff: string;
23450
+ };
23451
+ Returns: {
23452
+ extern_job_id: string;
23453
+ id: string;
23454
+ }[];
23455
+ };
21514
23456
  check_offer_product_available_stock: {
21515
23457
  Args: {
21516
23458
  p_campaign_product_id: string;
@@ -21950,8 +23892,6 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
21950
23892
  cart_index: number;
21951
23893
  cart_number: string;
21952
23894
  cart_number_id: string;
21953
- cart_seq: number;
21954
- cart_total: number;
21955
23895
  order_id: string;
21956
23896
  order_number: string;
21957
23897
  order_source: string;
@@ -22176,6 +24116,17 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
22176
24116
  };
22177
24117
  Returns: boolean;
22178
24118
  };
24119
+ floriday_adopt_connection: {
24120
+ Args: {
24121
+ p_new: string;
24122
+ p_old: string;
24123
+ };
24124
+ Returns: import("../integrations/supabase/types").Json;
24125
+ };
24126
+ floriday_autoheal_connections: {
24127
+ Args: never;
24128
+ Returns: import("../integrations/supabase/types").Json;
24129
+ };
22179
24130
  floriday_capture_stock_snapshot: {
22180
24131
  Args: never;
22181
24132
  Returns: number;
@@ -22233,6 +24184,12 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
22233
24184
  };
22234
24185
  Returns: undefined;
22235
24186
  };
24187
+ floriday_relink_products: {
24188
+ Args: {
24189
+ p_connection_id?: string;
24190
+ };
24191
+ Returns: import("../integrations/supabase/types").Json;
24192
+ };
22236
24193
  floriday_requeue_dead_letters: {
22237
24194
  Args: {
22238
24195
  p_connection_id?: string;
@@ -22455,6 +24412,27 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
22455
24412
  Args: never;
22456
24413
  Returns: string;
22457
24414
  };
24415
+ handover_afspraak_intrekken: {
24416
+ Args: {
24417
+ _sleutel: string;
24418
+ };
24419
+ Returns: boolean;
24420
+ };
24421
+ handover_afspraak_zetten: {
24422
+ Args: {
24423
+ _besluit: string;
24424
+ _item: string;
24425
+ _modules: string[];
24426
+ _sleutel: string;
24427
+ _soort: string;
24428
+ _versie_vingerafdruk: string;
24429
+ };
24430
+ Returns: boolean;
24431
+ };
24432
+ handover_afspraken: {
24433
+ Args: never;
24434
+ Returns: import("../integrations/supabase/types").Json;
24435
+ };
22458
24436
  handover_archief_lijst: {
22459
24437
  Args: never;
22460
24438
  Returns: import("../integrations/supabase/types").Json;
@@ -22472,6 +24450,12 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
22472
24450
  };
22473
24451
  Returns: boolean;
22474
24452
  };
24453
+ handover_check_afronden_na_scan: {
24454
+ Args: {
24455
+ _module_ids: string[];
24456
+ };
24457
+ Returns: number;
24458
+ };
22475
24459
  handover_check_markeren: {
22476
24460
  Args: {
22477
24461
  _module_ids: string[];
@@ -22515,6 +24499,14 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
22515
24499
  };
22516
24500
  Returns: boolean;
22517
24501
  };
24502
+ handover_md_bron_zetten: {
24503
+ Args: {
24504
+ _md: boolean;
24505
+ _module_id: string;
24506
+ _pad?: string;
24507
+ };
24508
+ Returns: boolean;
24509
+ };
22518
24510
  handover_module_meta_zetten: {
22519
24511
  Args: {
22520
24512
  _module_id: string;
@@ -22523,6 +24515,24 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
22523
24515
  };
22524
24516
  Returns: boolean;
22525
24517
  };
24518
+ handover_naam_zetten: {
24519
+ Args: {
24520
+ _bron_repo?: string;
24521
+ _module_id: string;
24522
+ _weergavenaam?: string;
24523
+ };
24524
+ Returns: boolean;
24525
+ };
24526
+ handover_namen: {
24527
+ Args: never;
24528
+ Returns: import("../integrations/supabase/types").Json;
24529
+ };
24530
+ handover_nieuw_gezien: {
24531
+ Args: {
24532
+ _module_id: string;
24533
+ };
24534
+ Returns: boolean;
24535
+ };
22526
24536
  handover_norm_naam: {
22527
24537
  Args: {
22528
24538
  _naam: string;
@@ -22559,6 +24569,24 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
22559
24569
  _versie_label?: string;
22560
24570
  };
22561
24571
  Returns: import("../integrations/supabase/types").Json;
24572
+ } | {
24573
+ Args: {
24574
+ _bekende_risicos?: string[];
24575
+ _bezit_tabellen?: string[];
24576
+ _bron_soort?: string;
24577
+ _commit?: string;
24578
+ _contractfuncties?: string[];
24579
+ _inhoud_md: string;
24580
+ _laatst_bevestigd_op?: string;
24581
+ _module_id: string;
24582
+ _module_titel: string;
24583
+ _ontbrekende_contracten?: string[];
24584
+ _pad?: string;
24585
+ _repo?: string;
24586
+ _samenvatting?: string;
24587
+ _versie_label?: string;
24588
+ };
24589
+ Returns: import("../integrations/supabase/types").Json;
22562
24590
  };
22563
24591
  handover_publish_via_token: {
22564
24592
  Args: {
@@ -22656,6 +24684,27 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
22656
24684
  Args: never;
22657
24685
  Returns: boolean;
22658
24686
  };
24687
+ inkoop_apply_price_list: {
24688
+ Args: {
24689
+ _price_list_id: string;
24690
+ _rows: import("../integrations/supabase/types").Json;
24691
+ };
24692
+ Returns: import("../integrations/supabase/types").Json;
24693
+ };
24694
+ inkoop_next_order_number: {
24695
+ Args: never;
24696
+ Returns: string;
24697
+ };
24698
+ inkoop_send_order: {
24699
+ Args: {
24700
+ _order_id: string;
24701
+ };
24702
+ Returns: {
24703
+ outbox_id: string;
24704
+ supplier_name: string;
24705
+ to_address: string;
24706
+ }[];
24707
+ };
22659
24708
  instructie_get: {
22660
24709
  Args: {
22661
24710
  _sleutel: string;
@@ -22715,6 +24764,13 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
22715
24764
  };
22716
24765
  Returns: import("../integrations/supabase/types").Json;
22717
24766
  };
24767
+ invoice_source_lines: {
24768
+ Args: {
24769
+ _source_id: string;
24770
+ _source_type: string;
24771
+ };
24772
+ Returns: import("../integrations/supabase/types").Json;
24773
+ };
22718
24774
  is_authenticated: {
22719
24775
  Args: never;
22720
24776
  Returns: boolean;
@@ -22854,6 +24910,10 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
22854
24910
  };
22855
24911
  Returns: string;
22856
24912
  };
24913
+ logistics_active_layout_method: {
24914
+ Args: never;
24915
+ Returns: string;
24916
+ };
22857
24917
  logistics_active_pick_workdays: {
22858
24918
  Args: never;
22859
24919
  Returns: string[];
@@ -23028,6 +25088,12 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
23028
25088
  };
23029
25089
  Returns: string;
23030
25090
  };
25091
+ logistics_cart_checkin_at: {
25092
+ Args: {
25093
+ p_cart_id: string;
25094
+ };
25095
+ Returns: string;
25096
+ };
23031
25097
  logistics_cart_handled: {
23032
25098
  Args: {
23033
25099
  p_cart_index: number;
@@ -23061,10 +25127,22 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
23061
25127
  task_status: string;
23062
25128
  }[];
23063
25129
  };
25130
+ logistics_cart_is_full: {
25131
+ Args: {
25132
+ p_cart_id: string;
25133
+ };
25134
+ Returns: boolean;
25135
+ };
23064
25136
  logistics_cart_layout_method: {
23065
25137
  Args: never;
23066
25138
  Returns: import("../integrations/supabase/types").Json;
23067
25139
  };
25140
+ logistics_cart_order_refs: {
25141
+ Args: {
25142
+ p_cart_id: string;
25143
+ };
25144
+ Returns: string[];
25145
+ };
23068
25146
  logistics_cart_plan_overview: {
23069
25147
  Args: {
23070
25148
  p_days?: number;
@@ -23084,6 +25162,24 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
23084
25162
  };
23085
25163
  Returns: import("../integrations/supabase/types").Json;
23086
25164
  };
25165
+ logistics_cart_plan_status_core: {
25166
+ Args: {
25167
+ p_ref: string;
25168
+ };
25169
+ Returns: import("../integrations/supabase/types").Json;
25170
+ };
25171
+ logistics_cart_release_reason: {
25172
+ Args: {
25173
+ p_cart_id: string;
25174
+ };
25175
+ Returns: string;
25176
+ };
25177
+ logistics_cart_released: {
25178
+ Args: {
25179
+ p_cart_id: string;
25180
+ };
25181
+ Returns: boolean;
25182
+ };
23087
25183
  logistics_cart_seq: {
23088
25184
  Args: {
23089
25185
  p_order_uuid?: string;
@@ -23134,6 +25230,10 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
23134
25230
  unit_ref: string;
23135
25231
  }[];
23136
25232
  };
25233
+ logistics_carts_per_print: {
25234
+ Args: never;
25235
+ Returns: number;
25236
+ };
23137
25237
  logistics_check_order_allowed: {
23138
25238
  Args: {
23139
25239
  p_lines: import("../integrations/supabase/types").Json;
@@ -23237,6 +25337,16 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
23237
25337
  isSetofReturn: false;
23238
25338
  };
23239
25339
  };
25340
+ logistics_cleanup_orphan_print_jobs: {
25341
+ Args: never;
25342
+ Returns: import("../integrations/supabase/types").Json;
25343
+ };
25344
+ logistics_cleanup_tasks: {
25345
+ Args: {
25346
+ p_limit?: number;
25347
+ };
25348
+ Returns: import("../integrations/supabase/types").Json;
25349
+ };
23240
25350
  logistics_complete_task: {
23241
25351
  Args: {
23242
25352
  p_result?: import("../integrations/supabase/types").Json;
@@ -23299,6 +25409,12 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
23299
25409
  station_carts: number;
23300
25410
  }[];
23301
25411
  };
25412
+ logistics_control_complete_cart: {
25413
+ Args: {
25414
+ p_cart_id: string;
25415
+ };
25416
+ Returns: number;
25417
+ };
23302
25418
  logistics_control_scan_approve: {
23303
25419
  Args: {
23304
25420
  p_allow_reprint?: boolean;
@@ -23378,6 +25494,15 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
23378
25494
  Args: never;
23379
25495
  Returns: import("../integrations/supabase/types").Json;
23380
25496
  };
25497
+ logistics_day_windows: {
25498
+ Args: {
25499
+ p_day: string;
25500
+ };
25501
+ Returns: {
25502
+ win_end: string;
25503
+ win_start: string;
25504
+ }[];
25505
+ };
23381
25506
  logistics_delay_customer_email: {
23382
25507
  Args: {
23383
25508
  p_customer: string;
@@ -23445,6 +25570,17 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
23445
25570
  };
23446
25571
  Returns: import("../integrations/supabase/types").Json;
23447
25572
  };
25573
+ logistics_enqueue_shipping_note_with_slip: {
25574
+ Args: {
25575
+ _cart_id: string;
25576
+ _is_herprint: boolean;
25577
+ _printer_id: string;
25578
+ _queue_item_id: string;
25579
+ _session_id: string;
25580
+ _slip_job_id: string;
25581
+ };
25582
+ Returns: string;
25583
+ };
23448
25584
  logistics_enqueue_sticker_with_slip: {
23449
25585
  Args: {
23450
25586
  _cart_id: string;
@@ -23462,6 +25598,20 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
23462
25598
  };
23463
25599
  Returns: string;
23464
25600
  };
25601
+ logistics_ensure_pick_data: {
25602
+ Args: {
25603
+ p_event_id?: string;
25604
+ p_missing?: import("../integrations/supabase/types").Json;
25605
+ p_ref: string;
25606
+ };
25607
+ Returns: import("../integrations/supabase/types").Json;
25608
+ };
25609
+ logistics_ensure_shipping_notes: {
25610
+ Args: {
25611
+ p_limit?: number;
25612
+ };
25613
+ Returns: import("../integrations/supabase/types").Json;
25614
+ };
23465
25615
  logistics_fail_task: {
23466
25616
  Args: {
23467
25617
  p_error: string;
@@ -23507,6 +25657,10 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
23507
25657
  isSetofReturn: false;
23508
25658
  };
23509
25659
  };
25660
+ logistics_fix_wrong_shipping_notes: {
25661
+ Args: never;
25662
+ Returns: import("../integrations/supabase/types").Json;
25663
+ };
23510
25664
  logistics_floriday_cart_plan: {
23511
25665
  Args: {
23512
25666
  p_order_id: string;
@@ -23534,6 +25688,10 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
23534
25688
  revision: number;
23535
25689
  }[];
23536
25690
  };
25691
+ logistics_floriday_delivery_note_create_enabled: {
25692
+ Args: never;
25693
+ Returns: boolean;
25694
+ };
23537
25695
  logistics_floriday_finish_push: {
23538
25696
  Args: {
23539
25697
  _error?: string;
@@ -23583,6 +25741,38 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
23583
25741
  };
23584
25742
  Returns: string;
23585
25743
  };
25744
+ logistics_floriday_gate_status: {
25745
+ Args: never;
25746
+ Returns: import("../integrations/supabase/types").Json;
25747
+ };
25748
+ logistics_floriday_log_refusal: {
25749
+ Args: {
25750
+ _action?: string;
25751
+ _module?: string;
25752
+ _order_ref: string;
25753
+ _reason: string;
25754
+ _shell?: string;
25755
+ };
25756
+ Returns: undefined;
25757
+ };
25758
+ logistics_floriday_log_send: {
25759
+ Args: {
25760
+ _action: string;
25761
+ _detail?: string;
25762
+ _http_status?: number;
25763
+ _module?: string;
25764
+ _ok: boolean;
25765
+ _order_ref: string;
25766
+ _shell?: string;
25767
+ };
25768
+ Returns: undefined;
25769
+ };
25770
+ logistics_floriday_order_approved: {
25771
+ Args: {
25772
+ _order_ref: string;
25773
+ };
25774
+ Returns: boolean;
25775
+ };
23586
25776
  logistics_floriday_prune_pushes: {
23587
25777
  Args: {
23588
25778
  _days?: number;
@@ -23597,6 +25787,20 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
23597
25787
  };
23598
25788
  Returns: string;
23599
25789
  };
25790
+ logistics_floriday_status_updates_enabled: {
25791
+ Args: never;
25792
+ Returns: boolean;
25793
+ };
25794
+ logistics_floriday_stock_updates_enabled: {
25795
+ Args: never;
25796
+ Returns: boolean;
25797
+ };
25798
+ logistics_floriday_write_allowed: {
25799
+ Args: {
25800
+ _action: string;
25801
+ };
25802
+ Returns: boolean;
25803
+ };
23600
25804
  logistics_fulfill_barcode_requests: {
23601
25805
  Args: {
23602
25806
  p_limit?: number;
@@ -23617,6 +25821,10 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
23617
25821
  };
23618
25822
  Returns: boolean;
23619
25823
  };
25824
+ logistics_layout_method_status: {
25825
+ Args: never;
25826
+ Returns: import("../integrations/supabase/types").Json;
25827
+ };
23620
25828
  logistics_link_order_items: {
23621
25829
  Args: {
23622
25830
  p_order?: string;
@@ -23635,6 +25843,22 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
23635
25843
  };
23636
25844
  Returns: number;
23637
25845
  };
25846
+ logistics_merge_floriday_lines: {
25847
+ Args: {
25848
+ p_order_id: string;
25849
+ };
25850
+ Returns: string;
25851
+ };
25852
+ logistics_merge_lines_enabled: {
25853
+ Args: never;
25854
+ Returns: boolean;
25855
+ };
25856
+ logistics_merge_partial_carts: {
25857
+ Args: {
25858
+ p_limit?: number;
25859
+ };
25860
+ Returns: import("../integrations/supabase/types").Json;
25861
+ };
23638
25862
  logistics_next_workday_date: {
23639
25863
  Args: {
23640
25864
  p_date: string;
@@ -23661,12 +25885,50 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
23661
25885
  };
23662
25886
  Returns: string;
23663
25887
  };
25888
+ logistics_opening_timezone: {
25889
+ Args: never;
25890
+ Returns: string;
25891
+ };
25892
+ logistics_order_cart_approval: {
25893
+ Args: {
25894
+ _order_ref: string;
25895
+ };
25896
+ Returns: {
25897
+ approved: number;
25898
+ total: number;
25899
+ }[];
25900
+ };
23664
25901
  logistics_order_cart_count: {
23665
25902
  Args: {
23666
25903
  p_order_ref: string;
23667
25904
  };
23668
25905
  Returns: number;
23669
25906
  };
25907
+ logistics_order_changed: {
25908
+ Args: {
25909
+ p_order_id: string;
25910
+ p_reason?: string;
25911
+ };
25912
+ Returns: undefined;
25913
+ };
25914
+ logistics_order_documents_ready: {
25915
+ Args: {
25916
+ p_order_ref: string;
25917
+ };
25918
+ Returns: import("../integrations/supabase/types").Json;
25919
+ };
25920
+ logistics_order_documents_ready_bool: {
25921
+ Args: {
25922
+ p_order_ref: string;
25923
+ };
25924
+ Returns: boolean;
25925
+ };
25926
+ logistics_order_frozen: {
25927
+ Args: {
25928
+ p_order_id: string;
25929
+ };
25930
+ Returns: boolean;
25931
+ };
23670
25932
  logistics_order_handled: {
23671
25933
  Args: {
23672
25934
  p_order_uuid: string;
@@ -23680,6 +25942,18 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
23680
25942
  };
23681
25943
  Returns: boolean;
23682
25944
  };
25945
+ logistics_order_merge_key: {
25946
+ Args: {
25947
+ p_group_key: string;
25948
+ };
25949
+ Returns: string;
25950
+ };
25951
+ logistics_order_mergeable: {
25952
+ Args: {
25953
+ p_order_id: string;
25954
+ };
25955
+ Returns: boolean;
25956
+ };
23683
25957
  logistics_order_overview: {
23684
25958
  Args: {
23685
25959
  p_from?: string;
@@ -23717,6 +25991,12 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
23717
25991
  };
23718
25992
  Returns: string;
23719
25993
  };
25994
+ logistics_payload_is_floriday: {
25995
+ Args: {
25996
+ _payload: import("../integrations/supabase/types").Json;
25997
+ };
25998
+ Returns: boolean;
25999
+ };
23720
26000
  logistics_pick_agenda: {
23721
26001
  Args: {
23722
26002
  p_from?: string;
@@ -23745,6 +26025,10 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
23745
26025
  Args: never;
23746
26026
  Returns: import("../integrations/supabase/types").Json;
23747
26027
  };
26028
+ logistics_pick_partial_mode: {
26029
+ Args: never;
26030
+ Returns: string;
26031
+ };
23748
26032
  logistics_pick_start_estimate: {
23749
26033
  Args: {
23750
26034
  p_order: import("../integrations/supabase/types").Json;
@@ -23794,6 +26078,12 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
23794
26078
  order_id: string;
23795
26079
  }[];
23796
26080
  };
26081
+ logistics_plan_defer: {
26082
+ Args: {
26083
+ p_id: string;
26084
+ };
26085
+ Returns: undefined;
26086
+ };
23797
26087
  logistics_plan_enqueue: {
23798
26088
  Args: {
23799
26089
  p_order_id: string;
@@ -23807,6 +26097,18 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
23807
26097
  };
23808
26098
  Returns: boolean;
23809
26099
  };
26100
+ logistics_plan_error_class: {
26101
+ Args: {
26102
+ p_error: string;
26103
+ };
26104
+ Returns: string;
26105
+ };
26106
+ logistics_plan_error_text: {
26107
+ Args: {
26108
+ p_error: string;
26109
+ };
26110
+ Returns: string;
26111
+ };
23810
26112
  logistics_plan_finish: {
23811
26113
  Args: {
23812
26114
  p_error?: string;
@@ -23835,14 +26137,80 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
23835
26137
  Args: never;
23836
26138
  Returns: undefined;
23837
26139
  };
26140
+ logistics_plan_lock_acquire: {
26141
+ Args: {
26142
+ _key: string;
26143
+ _owner?: string;
26144
+ _ttl_seconds?: number;
26145
+ };
26146
+ Returns: boolean;
26147
+ };
26148
+ logistics_plan_lock_release: {
26149
+ Args: {
26150
+ _key: string;
26151
+ _owner?: string;
26152
+ };
26153
+ Returns: undefined;
26154
+ };
26155
+ logistics_plan_progress: {
26156
+ Args: {
26157
+ p_refs: string[];
26158
+ };
26159
+ Returns: {
26160
+ cart_plan_ready: boolean;
26161
+ cart_plan_reason: string;
26162
+ cart_plan_released: boolean;
26163
+ plan_progress: number;
26164
+ plan_state: string;
26165
+ plan_state_since: string;
26166
+ unit_ref: string;
26167
+ }[];
26168
+ };
26169
+ logistics_plan_progress_pct: {
26170
+ Args: {
26171
+ p_order_id: string;
26172
+ };
26173
+ Returns: number;
26174
+ };
23838
26175
  logistics_plan_prune: {
23839
26176
  Args: never;
23840
26177
  Returns: number;
23841
26178
  };
26179
+ logistics_plan_queue_list: {
26180
+ Args: {
26181
+ p_limit?: number;
26182
+ };
26183
+ Returns: {
26184
+ attempts: number;
26185
+ claimed_at: string;
26186
+ customer_name: string;
26187
+ enqueued_at: string;
26188
+ error_class: string;
26189
+ error_raw: string;
26190
+ error_text: string;
26191
+ id: string;
26192
+ max_attempts: number;
26193
+ next_attempt_at: string;
26194
+ order_created_at: string;
26195
+ order_id: string;
26196
+ order_number: string;
26197
+ progress_pct: number;
26198
+ reason: string;
26199
+ stand: string;
26200
+ status: string;
26201
+ updated_at: string;
26202
+ }[];
26203
+ };
23842
26204
  logistics_plan_release_stale: {
23843
26205
  Args: never;
23844
26206
  Returns: number;
23845
26207
  };
26208
+ logistics_plan_reset_queue: {
26209
+ Args: {
26210
+ p_scope?: string;
26211
+ };
26212
+ Returns: number;
26213
+ };
23846
26214
  logistics_plan_retry: {
23847
26215
  Args: {
23848
26216
  p_order_ids: string[];
@@ -23856,6 +26224,22 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
23856
26224
  };
23857
26225
  Returns: number;
23858
26226
  };
26227
+ logistics_plan_state_for: {
26228
+ Args: {
26229
+ p_ref: string;
26230
+ };
26231
+ Returns: import("../integrations/supabase/types").Json;
26232
+ };
26233
+ logistics_plan_timeout_running: {
26234
+ Args: never;
26235
+ Returns: number;
26236
+ };
26237
+ logistics_prepare_pick_documents: {
26238
+ Args: {
26239
+ p_limit?: number;
26240
+ };
26241
+ Returns: import("../integrations/supabase/types").Json;
26242
+ };
23859
26243
  logistics_prune_buffer_member_queue: {
23860
26244
  Args: never;
23861
26245
  Returns: number;
@@ -23896,12 +26280,42 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
23896
26280
  Args: never;
23897
26281
  Returns: import("../integrations/supabase/types").Json;
23898
26282
  };
26283
+ logistics_refresh_pick_queue_status: {
26284
+ Args: {
26285
+ p_ref: string;
26286
+ };
26287
+ Returns: number;
26288
+ };
23899
26289
  logistics_refresh_pickup_moments: {
23900
26290
  Args: {
23901
26291
  p_weeks?: number;
23902
26292
  };
23903
26293
  Returns: import("../integrations/supabase/types").Json;
23904
26294
  };
26295
+ logistics_refresh_plan_state: {
26296
+ Args: {
26297
+ p_limit?: number;
26298
+ };
26299
+ Returns: import("../integrations/supabase/types").Json;
26300
+ };
26301
+ logistics_replan_all: {
26302
+ Args: {
26303
+ p_reason?: string;
26304
+ };
26305
+ Returns: import("../integrations/supabase/types").Json;
26306
+ };
26307
+ logistics_replan_all_force: {
26308
+ Args: {
26309
+ p_reason?: string;
26310
+ };
26311
+ Returns: import("../integrations/supabase/types").Json;
26312
+ };
26313
+ logistics_replan_order_journey: {
26314
+ Args: {
26315
+ p_order_ref: string;
26316
+ };
26317
+ Returns: import("../integrations/supabase/types").Json;
26318
+ };
23905
26319
  logistics_report_delay: {
23906
26320
  Args: {
23907
26321
  p_expected_date?: string;
@@ -24004,95 +26418,361 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
24004
26418
  };
24005
26419
  Returns: import("../integrations/supabase/types").Json;
24006
26420
  };
24007
- logistics_scan_delays: {
24008
- Args: never;
24009
- Returns: number;
24010
- };
24011
- logistics_scan_order_stock: {
26421
+ logistics_scan_delays: {
26422
+ Args: never;
26423
+ Returns: number;
26424
+ };
26425
+ logistics_scan_order_stock: {
26426
+ Args: {
26427
+ p_order_id: string;
26428
+ };
26429
+ Returns: string;
26430
+ };
26431
+ logistics_scan_resolve: {
26432
+ Args: {
26433
+ p_code: string;
26434
+ };
26435
+ Returns: import("../integrations/supabase/types").Json;
26436
+ };
26437
+ logistics_schedule_tasks: {
26438
+ Args: never;
26439
+ Returns: number;
26440
+ } | {
26441
+ Args: {
26442
+ p_order_ref?: string;
26443
+ };
26444
+ Returns: number;
26445
+ };
26446
+ logistics_set_order_priority: {
26447
+ Args: {
26448
+ p_order_ref: string;
26449
+ p_priority: number;
26450
+ p_user_id?: string;
26451
+ };
26452
+ Returns: number;
26453
+ };
26454
+ logistics_set_pick_day: {
26455
+ Args: {
26456
+ p_order_ref: string;
26457
+ p_pick_day: string;
26458
+ };
26459
+ Returns: import("../integrations/supabase/types").Json;
26460
+ };
26461
+ logistics_shift_to_workday: {
26462
+ Args: {
26463
+ p_days: string[];
26464
+ p_ts: string;
26465
+ };
26466
+ Returns: string;
26467
+ };
26468
+ logistics_shipping_note_diagnose: {
26469
+ Args: {
26470
+ p_order_number: string;
26471
+ };
26472
+ Returns: import("../integrations/supabase/types").Json;
26473
+ };
26474
+ logistics_shipping_note_follows_slip: {
26475
+ Args: never;
26476
+ Returns: boolean;
26477
+ };
26478
+ logistics_shipping_note_from_barcode: {
26479
+ Args: {
26480
+ p_allow_reprint?: boolean;
26481
+ p_barcode: string;
26482
+ p_station_id?: string;
26483
+ };
26484
+ Returns: import("../integrations/supabase/types").Json;
26485
+ };
26486
+ logistics_shipping_note_job_for_slip: {
26487
+ Args: {
26488
+ _slip_job_id: string;
26489
+ };
26490
+ Returns: string;
26491
+ };
26492
+ logistics_shipping_notes_wake_all: {
26493
+ Args: never;
26494
+ Returns: import("../integrations/supabase/types").Json;
26495
+ };
26496
+ logistics_slip_is_floriday: {
26497
+ Args: {
26498
+ _slip_job_id: string;
26499
+ };
26500
+ Returns: boolean;
26501
+ };
26502
+ logistics_slip_note_claim: {
26503
+ Args: {
26504
+ _lease_seconds?: number;
26505
+ _limit?: number;
26506
+ };
26507
+ Returns: {
26508
+ attempts: number;
26509
+ batch_key: string | null;
26510
+ cart_id: string | null;
26511
+ created_at: string;
26512
+ error: string | null;
26513
+ error_code: string | null;
26514
+ fulfillment_order_id: string | null;
26515
+ id: string;
26516
+ locked_until: string | null;
26517
+ next_attempt_at: string | null;
26518
+ order_id: string | null;
26519
+ order_number: string | null;
26520
+ print_job_id: string | null;
26521
+ printer_id: string | null;
26522
+ retry_class: string | null;
26523
+ slip_job_id: string;
26524
+ status: string;
26525
+ updated_at: string;
26526
+ }[];
26527
+ SetofOptions: {
26528
+ from: "*";
26529
+ to: "logistics_slip_shipping_note";
26530
+ isOneToOne: false;
26531
+ isSetofReturn: true;
26532
+ };
26533
+ };
26534
+ logistics_slip_note_finish: {
26535
+ Args: {
26536
+ _error?: string;
26537
+ _error_code?: string;
26538
+ _fulfillment_order_id?: string;
26539
+ _id: string;
26540
+ _ok: boolean;
26541
+ _print_job_id?: string;
26542
+ _status?: string;
26543
+ };
26544
+ Returns: undefined;
26545
+ };
26546
+ logistics_slip_note_keep_waiting: {
26547
+ Args: {
26548
+ _class?: string;
26549
+ _id: string;
26550
+ _reason: string;
26551
+ };
26552
+ Returns: undefined;
26553
+ };
26554
+ logistics_sticker_follows_slip: {
26555
+ Args: never;
26556
+ Returns: boolean;
26557
+ };
26558
+ logistics_subtract_working_minutes: {
26559
+ Args: {
26560
+ p_deadline: string;
26561
+ p_max_workdays?: number;
26562
+ p_minutes: number;
26563
+ };
26564
+ Returns: import("../integrations/supabase/types").Json;
26565
+ };
26566
+ logistics_supersede_stale_tasks: {
26567
+ Args: {
26568
+ p_keep: string[];
26569
+ p_order_ref: string;
26570
+ p_run_id: string;
26571
+ p_user_id: string;
26572
+ };
26573
+ Returns: number;
26574
+ };
26575
+ logistics_sync_pick_queue: {
26576
+ Args: never;
26577
+ Returns: import("../integrations/supabase/types").Json;
26578
+ };
26579
+ logistics_sync_task_carriers: {
26580
+ Args: {
26581
+ p_order_ref?: string;
26582
+ };
26583
+ Returns: number;
26584
+ };
26585
+ logistics_task_owner: {
26586
+ Args: {
26587
+ p_task_type: string;
26588
+ };
26589
+ Returns: string;
26590
+ };
26591
+ logistics_task_pick_minutes: {
26592
+ Args: {
26593
+ p_payload: import("../integrations/supabase/types").Json;
26594
+ p_settings: import("../integrations/supabase/types").Json;
26595
+ };
26596
+ Returns: number;
26597
+ };
26598
+ logistics_task_retention_days: {
26599
+ Args: never;
26600
+ Returns: number;
26601
+ };
26602
+ logistics_tick_ping: {
26603
+ Args: never;
26604
+ Returns: string;
26605
+ };
26606
+ logistics_timezone_options: {
26607
+ Args: never;
26608
+ Returns: {
26609
+ name: string;
26610
+ }[];
26611
+ };
26612
+ logistics_trace: {
26613
+ Args: {
26614
+ p: import("../integrations/supabase/types").Json;
26615
+ };
26616
+ Returns: string;
26617
+ };
26618
+ logistics_trace_all_orders: {
26619
+ Args: {
26620
+ p_limit?: number;
26621
+ p_search?: string;
26622
+ };
26623
+ Returns: import("../integrations/supabase/types").Json;
26624
+ };
26625
+ logistics_trace_archive_order: {
26626
+ Args: {
26627
+ p_order_ref: string;
26628
+ p_reason: string;
26629
+ };
26630
+ Returns: number;
26631
+ };
26632
+ logistics_trace_batch: {
26633
+ Args: {
26634
+ p: import("../integrations/supabase/types").Json;
26635
+ };
26636
+ Returns: number;
26637
+ };
26638
+ logistics_trace_derive: {
26639
+ Args: {
26640
+ p: import("../integrations/supabase/types").Json;
26641
+ };
26642
+ Returns: number;
26643
+ };
26644
+ logistics_trace_node: {
26645
+ Args: {
26646
+ p_op?: string;
26647
+ p_status?: string;
26648
+ p_table: string;
26649
+ };
26650
+ Returns: string;
26651
+ };
26652
+ logistics_trace_order_journey_start: {
26653
+ Args: {
26654
+ p_order_id: string;
26655
+ p_reason?: string;
26656
+ };
26657
+ Returns: string;
26658
+ };
26659
+ logistics_trace_order_origin: {
26660
+ Args: {
26661
+ p_order_id: string;
26662
+ };
26663
+ Returns: undefined;
26664
+ };
26665
+ logistics_trace_order_overview: {
26666
+ Args: {
26667
+ p_error_class?: string;
26668
+ p_limit?: number;
26669
+ p_search?: string;
26670
+ p_since?: string;
26671
+ p_source?: string;
26672
+ p_state?: string;
26673
+ p_step?: string;
26674
+ };
26675
+ Returns: import("../integrations/supabase/types").Json;
26676
+ };
26677
+ logistics_trace_order_state: {
26678
+ Args: {
26679
+ p_order_ref: string;
26680
+ };
26681
+ Returns: import("../integrations/supabase/types").Json;
26682
+ };
26683
+ logistics_trace_order_step: {
26684
+ Args: {
26685
+ p_class?: string;
26686
+ p_decision?: string;
26687
+ p_error?: string;
26688
+ p_next_step?: string;
26689
+ p_node: string;
26690
+ p_order_id: string;
26691
+ p_reason?: string;
26692
+ p_status: string;
26693
+ p_step: string;
26694
+ };
26695
+ Returns: undefined;
26696
+ };
26697
+ logistics_trace_orders: {
26698
+ Args: {
26699
+ p_limit?: number;
26700
+ p_search?: string;
26701
+ p_since?: string;
26702
+ p_status?: string;
26703
+ };
26704
+ Returns: import("../integrations/supabase/types").Json;
26705
+ };
26706
+ logistics_trace_pick_state: {
24012
26707
  Args: {
24013
- p_order_id: string;
26708
+ p_order_number: string;
24014
26709
  };
24015
- Returns: string;
26710
+ Returns: undefined;
24016
26711
  };
24017
- logistics_scan_resolve: {
26712
+ logistics_trace_progress: {
24018
26713
  Args: {
24019
- p_code: string;
26714
+ p_limit?: number;
24020
26715
  };
24021
26716
  Returns: import("../integrations/supabase/types").Json;
24022
26717
  };
24023
- logistics_schedule_tasks: {
24024
- Args: never;
24025
- Returns: number;
24026
- };
24027
- logistics_set_order_priority: {
26718
+ logistics_trace_progress_order: {
24028
26719
  Args: {
24029
26720
  p_order_ref: string;
24030
- p_priority: number;
24031
- p_user_id?: string;
24032
26721
  };
24033
- Returns: number;
26722
+ Returns: import("../integrations/supabase/types").Json;
24034
26723
  };
24035
- logistics_set_pick_day: {
26724
+ logistics_trace_redact: {
24036
26725
  Args: {
24037
- p_order_ref: string;
24038
- p_pick_day: string;
26726
+ p: import("../integrations/supabase/types").Json;
24039
26727
  };
24040
26728
  Returns: import("../integrations/supabase/types").Json;
24041
26729
  };
24042
- logistics_shift_to_workday: {
26730
+ logistics_trace_source_node: {
24043
26731
  Args: {
24044
- p_days: string[];
24045
- p_ts: string;
26732
+ p_source: string;
24046
26733
  };
24047
26734
  Returns: string;
24048
26735
  };
24049
- logistics_shipping_note_from_barcode: {
26736
+ logistics_trace_step_once: {
24050
26737
  Args: {
24051
- p_allow_reprint?: boolean;
24052
- p_barcode: string;
24053
- p_station_id?: string;
26738
+ p_decision: string;
26739
+ p_next_step?: string;
26740
+ p_node: string;
26741
+ p_order_id: string;
26742
+ p_reason: string;
26743
+ p_status: string;
26744
+ p_step: string;
24054
26745
  };
24055
- Returns: import("../integrations/supabase/types").Json;
24056
- };
24057
- logistics_sticker_follows_slip: {
24058
- Args: never;
24059
- Returns: boolean;
26746
+ Returns: undefined;
24060
26747
  };
24061
- logistics_supersede_stale_tasks: {
26748
+ logistics_trace_stock_check: {
24062
26749
  Args: {
24063
- p_keep: string[];
24064
- p_order_ref: string;
24065
- p_run_id: string;
24066
- p_user_id: string;
26750
+ p_order_id: string;
24067
26751
  };
24068
- Returns: number;
24069
- };
24070
- logistics_sync_pick_queue: {
24071
- Args: never;
24072
- Returns: import("../integrations/supabase/types").Json;
26752
+ Returns: undefined;
24073
26753
  };
24074
- logistics_sync_task_carriers: {
26754
+ logistics_trace_timeline: {
24075
26755
  Args: {
24076
- p_order_ref?: string;
26756
+ p_limit?: number;
26757
+ p_order_ref: string;
24077
26758
  };
24078
- Returns: number;
26759
+ Returns: import("../integrations/supabase/types").Json;
24079
26760
  };
24080
- logistics_task_owner: {
26761
+ logistics_trace_version_events: {
24081
26762
  Args: {
24082
- p_task_type: string;
26763
+ p_from?: string;
26764
+ p_limit?: number;
26765
+ p_order_ref: string;
26766
+ p_to?: string;
26767
+ p_version_id: string;
24083
26768
  };
24084
- Returns: string;
26769
+ Returns: import("../integrations/supabase/types").Json;
24085
26770
  };
24086
- logistics_task_pick_minutes: {
26771
+ logistics_trace_versions: {
24087
26772
  Args: {
24088
- p_payload: import("../integrations/supabase/types").Json;
24089
- p_settings: import("../integrations/supabase/types").Json;
26773
+ p_order_ref: string;
24090
26774
  };
24091
- Returns: number;
24092
- };
24093
- logistics_tick_ping: {
24094
- Args: never;
24095
- Returns: string;
26775
+ Returns: import("../integrations/supabase/types").Json;
24096
26776
  };
24097
26777
  logistics_upsert_task: {
24098
26778
  Args: {
@@ -24113,6 +26793,16 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
24113
26793
  };
24114
26794
  Returns: string;
24115
26795
  };
26796
+ logistics_valid_timezone: {
26797
+ Args: {
26798
+ _tz: string;
26799
+ };
26800
+ Returns: boolean;
26801
+ };
26802
+ logistics_working_hours_status: {
26803
+ Args: never;
26804
+ Returns: import("../integrations/supabase/types").Json;
26805
+ };
24116
26806
  logistics_write_buffer_layer_positions: {
24117
26807
  Args: {
24118
26808
  p_buffer_id: string;
@@ -24174,6 +26864,12 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
24174
26864
  permission: string;
24175
26865
  }[];
24176
26866
  };
26867
+ next_cart_day_seq: {
26868
+ Args: {
26869
+ p_date: string;
26870
+ };
26871
+ Returns: number;
26872
+ };
24177
26873
  next_manufacture_partij: {
24178
26874
  Args: {
24179
26875
  _tenant_id: string;
@@ -24278,6 +26974,10 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
24278
26974
  online: boolean;
24279
26975
  }[];
24280
26976
  };
26977
+ pick_apply_buffer_events: {
26978
+ Args: never;
26979
+ Returns: import("../integrations/supabase/types").Json;
26980
+ };
24281
26981
  pick_available_pick_days: {
24282
26982
  Args: {
24283
26983
  _max_days?: number;
@@ -25121,6 +27821,18 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
25121
27821
  };
25122
27822
  Returns: undefined;
25123
27823
  };
27824
+ prune_floriday_api_log: {
27825
+ Args: never;
27826
+ Returns: number;
27827
+ };
27828
+ quote_ack_work_order: {
27829
+ Args: {
27830
+ _queue_id: string;
27831
+ _werkbon_id: string;
27832
+ _werkbon_nummer?: string;
27833
+ };
27834
+ Returns: boolean;
27835
+ };
25124
27836
  quote_create_from_source: {
25125
27837
  Args: {
25126
27838
  _payload?: import("../integrations/supabase/types").Json;
@@ -25129,6 +27841,13 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
25129
27841
  };
25130
27842
  Returns: string;
25131
27843
  };
27844
+ quote_fail_work_order: {
27845
+ Args: {
27846
+ _foutmelding: string;
27847
+ _queue_id: string;
27848
+ };
27849
+ Returns: boolean;
27850
+ };
25132
27851
  quote_get_billable_lines: {
25133
27852
  Args: {
25134
27853
  _quotation_id: string;
@@ -25145,6 +27864,12 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
25145
27864
  Args: never;
25146
27865
  Returns: import("../integrations/supabase/types").Json;
25147
27866
  };
27867
+ quote_list_pending_work_orders: {
27868
+ Args: {
27869
+ _limit?: number;
27870
+ };
27871
+ Returns: import("../integrations/supabase/types").Json;
27872
+ };
25148
27873
  quote_list_sources: {
25149
27874
  Args: {
25150
27875
  _limit?: number;
@@ -25152,6 +27877,12 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
25152
27877
  };
25153
27878
  Returns: import("../integrations/supabase/types").Json;
25154
27879
  };
27880
+ quote_queue_follow_up: {
27881
+ Args: {
27882
+ _offerte_id: string;
27883
+ };
27884
+ Returns: string;
27885
+ };
25155
27886
  recompute_all_reserved_stock: {
25156
27887
  Args: never;
25157
27888
  Returns: undefined;
@@ -25554,6 +28285,13 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
25554
28285
  };
25555
28286
  Returns: number;
25556
28287
  };
28288
+ schedule_floriday_catalog_prices_sync: {
28289
+ Args: {
28290
+ p_apikey: string;
28291
+ p_url: string;
28292
+ };
28293
+ Returns: number;
28294
+ };
25557
28295
  schedule_floriday_clock_presales_sync: {
25558
28296
  Args: {
25559
28297
  p_apikey: string;
@@ -25826,6 +28564,52 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
25826
28564
  p_end_time: string;
25827
28565
  };
25828
28566
  Returns: import("../integrations/supabase/types").Json;
28567
+ } | {
28568
+ Args: {
28569
+ p_end_lat?: number;
28570
+ p_end_lng?: number;
28571
+ p_log_id: string;
28572
+ };
28573
+ Returns: {
28574
+ auto_stop_reason: string | null;
28575
+ auto_stopped: boolean;
28576
+ created_at: string;
28577
+ current_latitude: number | null;
28578
+ current_longitude: number | null;
28579
+ current_position_updated_at: string | null;
28580
+ employee_id: string;
28581
+ end_latitude: number | null;
28582
+ end_longitude: number | null;
28583
+ end_time: string | null;
28584
+ eta_distance_km: number | null;
28585
+ eta_minutes: number | null;
28586
+ eta_updated_at: string | null;
28587
+ hour_category: string | null;
28588
+ id: string;
28589
+ last_reminder_at: string | null;
28590
+ notes: string | null;
28591
+ overtime_hours: number;
28592
+ overtime_type: string | null;
28593
+ regular_hours: number;
28594
+ reminder_count: number;
28595
+ requires_review: boolean;
28596
+ start_latitude: number | null;
28597
+ start_longitude: number | null;
28598
+ start_time: string;
28599
+ travel_cost: number | null;
28600
+ travel_distance_km: number | null;
28601
+ travel_duration_min: number | null;
28602
+ travel_time_minutes: number | null;
28603
+ type: string;
28604
+ updated_at: string;
28605
+ work_order_id: string | null;
28606
+ };
28607
+ SetofOptions: {
28608
+ from: "*";
28609
+ to: "time_logs";
28610
+ isOneToOne: true;
28611
+ isSetofReturn: false;
28612
+ };
25829
28613
  };
25830
28614
  swap_cart_layer_positions: {
25831
28615
  Args: {
@@ -25854,6 +28638,10 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
25854
28638
  };
25855
28639
  Returns: undefined;
25856
28640
  };
28641
+ sync_floriday_prices_into_price_groups: {
28642
+ Args: never;
28643
+ Returns: number;
28644
+ };
25857
28645
  sync_layer_stock: {
25858
28646
  Args: {
25859
28647
  p_product_id: string;
@@ -25978,14 +28766,99 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
25978
28766
  };
25979
28767
  Returns: undefined;
25980
28768
  };
28769
+ uren_employee_day_hours: {
28770
+ Args: {
28771
+ _day: string;
28772
+ _employee_id: string;
28773
+ };
28774
+ Returns: number;
28775
+ };
25981
28776
  uren_is_beheerder: {
25982
28777
  Args: never;
25983
28778
  Returns: boolean;
25984
28779
  };
28780
+ uren_list_medewerkers: {
28781
+ Args: never;
28782
+ Returns: {
28783
+ avatar_url: string;
28784
+ color: string;
28785
+ display_name: string;
28786
+ email: string;
28787
+ hours_fri: number;
28788
+ hours_mon: number;
28789
+ hours_thu: number;
28790
+ hours_tue: number;
28791
+ hours_wed: number;
28792
+ id: string;
28793
+ is_active: boolean;
28794
+ leave_balance_hours: number;
28795
+ persnr: string;
28796
+ phone: string;
28797
+ roles: string[];
28798
+ }[];
28799
+ };
25985
28800
  uren_my_monteur_id: {
25986
28801
  Args: never;
25987
28802
  Returns: string;
25988
28803
  };
28804
+ uren_planning_dagagenda: {
28805
+ Args: {
28806
+ _tot: string;
28807
+ _van: string;
28808
+ };
28809
+ Returns: {
28810
+ end_at: string;
28811
+ id: string;
28812
+ is_tweede_man: boolean;
28813
+ notes: string;
28814
+ start_at: string;
28815
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
28816
+ werkbon_id: string;
28817
+ }[];
28818
+ };
28819
+ uren_set_planning_item_status: {
28820
+ Args: {
28821
+ _id: string;
28822
+ _status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
28823
+ };
28824
+ Returns: undefined;
28825
+ };
28826
+ uren_set_planning_status: {
28827
+ Args: {
28828
+ p_status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
28829
+ p_werkbon_id: string;
28830
+ };
28831
+ Returns: number;
28832
+ };
28833
+ uren_stop_time_log: {
28834
+ Args: {
28835
+ p_employee_id: string;
28836
+ p_end_lat?: number;
28837
+ p_end_lng?: number;
28838
+ p_end_time: string;
28839
+ };
28840
+ Returns: import("../integrations/supabase/types").Json;
28841
+ };
28842
+ uren_switch_time_log: {
28843
+ Args: {
28844
+ p_employee_id: string;
28845
+ p_start_lat?: number;
28846
+ p_start_lng?: number;
28847
+ p_type: string;
28848
+ p_work_order_id?: string;
28849
+ };
28850
+ Returns: import("../integrations/supabase/types").Json;
28851
+ };
28852
+ uren_sync_sick_time_off: {
28853
+ Args: {
28854
+ _period_id: string;
28855
+ };
28856
+ Returns: number;
28857
+ };
28858
+ voorraad_cleanup_old_rows: {
28859
+ Args: never;
28860
+ Returns: import("../integrations/supabase/types").Json;
28861
+ };
25989
28862
  wake_print_queue: {
25990
28863
  Args: {
25991
28864
  _min_interval_ms?: number;
@@ -26024,6 +28897,25 @@ export declare const getDeliveryNotePdf: import("@tanstack/start-client-core").R
26024
28897
  };
26025
28898
  Returns: import("../integrations/supabase/types").Json;
26026
28899
  };
28900
+ wo_list_offerte_requests: {
28901
+ Args: {
28902
+ _status?: string;
28903
+ };
28904
+ Returns: import("../integrations/supabase/types").Json;
28905
+ };
28906
+ wo_process_offerte_request: {
28907
+ Args: {
28908
+ _queue_id: string;
28909
+ };
28910
+ Returns: import("../integrations/supabase/types").Json;
28911
+ };
28912
+ wo_reject_offerte_request: {
28913
+ Args: {
28914
+ _queue_id: string;
28915
+ _reden?: string;
28916
+ };
28917
+ Returns: import("../integrations/supabase/types").Json;
28918
+ };
26027
28919
  wo_set_status: {
26028
28920
  Args: {
26029
28921
  _reason?: string;