@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
@@ -6,6 +6,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6
6
  Row: {
7
7
  auto_print_delivery_note: boolean;
8
8
  auto_process_paused: boolean;
9
+ control_bulk_max_carts: number;
9
10
  created_at: string;
10
11
  extra_pick_days_with_stickers: number;
11
12
  id: string;
@@ -23,6 +24,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23
24
  Insert: {
24
25
  auto_print_delivery_note?: boolean;
25
26
  auto_process_paused?: boolean;
27
+ control_bulk_max_carts?: number;
26
28
  created_at?: string;
27
29
  extra_pick_days_with_stickers?: number;
28
30
  id?: string;
@@ -33,13 +35,16 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
33
35
  signup_mail_enabled?: boolean;
34
36
  signup_mail_lead_minutes?: number;
35
37
  signup_mail_purpose?: string;
36
- transport_register_days_before?: number;
38
+ transport_register_days_before
39
+ /** Lazy: pas bij het eerste gebruik wordt de client gemaakt (SSR-veilig). */
40
+ ?: number;
37
41
  updated_at?: string;
38
42
  user_id: string;
39
43
  };
40
44
  Update: {
41
45
  auto_print_delivery_note?: boolean;
42
46
  auto_process_paused?: boolean;
47
+ control_bulk_max_carts?: number;
43
48
  created_at?: string;
44
49
  extra_pick_days_with_stickers?: number;
45
50
  id?: string;
@@ -1382,6 +1387,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1382
1387
  id: string;
1383
1388
  notes: string | null;
1384
1389
  performed_at: string;
1390
+ request_key: string | null;
1385
1391
  rescheduled_count: number;
1386
1392
  stock_consumed_at: string | null;
1387
1393
  total_carts: number;
@@ -1396,6 +1402,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1396
1402
  id?: string;
1397
1403
  notes?: string | null;
1398
1404
  performed_at?: string;
1405
+ request_key?: string | null;
1399
1406
  rescheduled_count?: number;
1400
1407
  stock_consumed_at?: string | null;
1401
1408
  total_carts?: number;
@@ -1410,6 +1417,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1410
1417
  id?: string;
1411
1418
  notes?: string | null;
1412
1419
  performed_at?: string;
1420
+ request_key?: string | null;
1413
1421
  rescheduled_count?: number;
1414
1422
  stock_consumed_at?: string | null;
1415
1423
  total_carts?: number;
@@ -1422,9 +1430,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1422
1430
  Row: {
1423
1431
  assigned_at: string;
1424
1432
  cart_index: number;
1425
- cart_number: string | null;
1433
+ cart_number: string;
1426
1434
  day_seq: number | null;
1427
1435
  delivered_at: string | null;
1436
+ engine_cart_label: string | null;
1428
1437
  id: string;
1429
1438
  order_id: string;
1430
1439
  order_source: string;
@@ -1434,9 +1443,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1434
1443
  Insert: {
1435
1444
  assigned_at?: string;
1436
1445
  cart_index: number;
1437
- cart_number?: string | null;
1446
+ cart_number: string;
1438
1447
  day_seq?: number | null;
1439
1448
  delivered_at?: string | null;
1449
+ engine_cart_label?: string | null;
1440
1450
  id?: string;
1441
1451
  order_id: string;
1442
1452
  order_source: string;
@@ -1446,9 +1456,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1446
1456
  Update: {
1447
1457
  assigned_at?: string;
1448
1458
  cart_index?: number;
1449
- cart_number?: string | null;
1459
+ cart_number?: string;
1450
1460
  day_seq?: number | null;
1451
1461
  delivered_at?: string | null;
1462
+ engine_cart_label?: string | null;
1452
1463
  id?: string;
1453
1464
  order_id?: string;
1454
1465
  order_source?: string;
@@ -1823,6 +1834,42 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1823
1834
  };
1824
1835
  Relationships: [];
1825
1836
  };
1837
+ customer_assortment_items: {
1838
+ Row: {
1839
+ created_at: string;
1840
+ customer_key: string;
1841
+ id: string;
1842
+ in_assortment: boolean;
1843
+ manual_override: boolean;
1844
+ source: string;
1845
+ synced_at: string | null;
1846
+ trade_item_key: string;
1847
+ updated_at: string;
1848
+ };
1849
+ Insert: {
1850
+ created_at?: string;
1851
+ customer_key: string;
1852
+ id?: string;
1853
+ in_assortment?: boolean;
1854
+ manual_override?: boolean;
1855
+ source?: string;
1856
+ synced_at?: string | null;
1857
+ trade_item_key: string;
1858
+ updated_at?: string;
1859
+ };
1860
+ Update: {
1861
+ created_at?: string;
1862
+ customer_key?: string;
1863
+ id?: string;
1864
+ in_assortment?: boolean;
1865
+ manual_override?: boolean;
1866
+ source?: string;
1867
+ synced_at?: string | null;
1868
+ trade_item_key?: string;
1869
+ updated_at?: string;
1870
+ };
1871
+ Relationships: [];
1872
+ };
1826
1873
  customer_audit_log: {
1827
1874
  Row: {
1828
1875
  action: string;
@@ -2225,6 +2272,63 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2225
2272
  };
2226
2273
  Relationships: [];
2227
2274
  };
2275
+ customer_product_stickers: {
2276
+ Row: {
2277
+ content_hash: string | null;
2278
+ created_at: string;
2279
+ customer_key: string;
2280
+ file_name: string;
2281
+ file_path: string;
2282
+ file_size: number | null;
2283
+ floriday_sticker_id: string | null;
2284
+ floriday_synced_at: string | null;
2285
+ height_mm: number | null;
2286
+ id: string;
2287
+ mime_type: string | null;
2288
+ source: string;
2289
+ trade_item_key: string;
2290
+ updated_at: string;
2291
+ uploaded_by: string | null;
2292
+ width_mm: number | null;
2293
+ };
2294
+ Insert: {
2295
+ content_hash?: string | null;
2296
+ created_at?: string;
2297
+ customer_key: string;
2298
+ file_name: string;
2299
+ file_path: string;
2300
+ file_size?: number | null;
2301
+ floriday_sticker_id?: string | null;
2302
+ floriday_synced_at?: string | null;
2303
+ height_mm?: number | null;
2304
+ id?: string;
2305
+ mime_type?: string | null;
2306
+ source?: string;
2307
+ trade_item_key: string;
2308
+ updated_at?: string;
2309
+ uploaded_by?: string | null;
2310
+ width_mm?: number | null;
2311
+ };
2312
+ Update: {
2313
+ content_hash?: string | null;
2314
+ created_at?: string;
2315
+ customer_key?: string;
2316
+ file_name?: string;
2317
+ file_path?: string;
2318
+ file_size?: number | null;
2319
+ floriday_sticker_id?: string | null;
2320
+ floriday_synced_at?: string | null;
2321
+ height_mm?: number | null;
2322
+ id?: string;
2323
+ mime_type?: string | null;
2324
+ source?: string;
2325
+ trade_item_key?: string;
2326
+ updated_at?: string;
2327
+ uploaded_by?: string | null;
2328
+ width_mm?: number | null;
2329
+ };
2330
+ Relationships: [];
2331
+ };
2228
2332
  customer_selected_assortment: {
2229
2333
  Row: {
2230
2334
  article_number: string | null;
@@ -2273,6 +2377,30 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2273
2377
  referencedColumns: ["id"];
2274
2378
  }];
2275
2379
  };
2380
+ customer_sticker_settings: {
2381
+ Row: {
2382
+ created_at: string;
2383
+ customer_key: string;
2384
+ height_mm: number;
2385
+ updated_at: string;
2386
+ width_mm: number;
2387
+ };
2388
+ Insert: {
2389
+ created_at?: string;
2390
+ customer_key: string;
2391
+ height_mm?: number;
2392
+ updated_at?: string;
2393
+ width_mm?: number;
2394
+ };
2395
+ Update: {
2396
+ created_at?: string;
2397
+ customer_key?: string;
2398
+ height_mm?: number;
2399
+ updated_at?: string;
2400
+ width_mm?: number;
2401
+ };
2402
+ Relationships: [];
2403
+ };
2276
2404
  customer_trade_settings: {
2277
2405
  Row: {
2278
2406
  category: string;
@@ -3598,6 +3726,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3598
3726
  };
3599
3727
  email_auth_outbox: {
3600
3728
  Row: {
3729
+ attachments: import("./types").Json;
3601
3730
  attempts: number;
3602
3731
  bcc_addresses: string[];
3603
3732
  cc_addresses: string[];
@@ -3620,6 +3749,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3620
3749
  updated_at: string;
3621
3750
  };
3622
3751
  Insert: {
3752
+ attachments?: import("./types").Json;
3623
3753
  attempts?: number;
3624
3754
  bcc_addresses?: string[];
3625
3755
  cc_addresses?: string[];
@@ -3642,6 +3772,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3642
3772
  updated_at?: string;
3643
3773
  };
3644
3774
  Update: {
3775
+ attachments?: import("./types").Json;
3645
3776
  attempts?: number;
3646
3777
  bcc_addresses?: string[];
3647
3778
  cc_addresses?: string[];
@@ -5603,6 +5734,102 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5603
5734
  referencedColumns: ["id"];
5604
5735
  }];
5605
5736
  };
5737
+ floriday_api_log: {
5738
+ Row: {
5739
+ action: string | null;
5740
+ caller: string | null;
5741
+ connection_id: string | null;
5742
+ created_at: string;
5743
+ cursor_from: number | null;
5744
+ direction: string;
5745
+ duration_ms: number | null;
5746
+ environment: string | null;
5747
+ error: string | null;
5748
+ floriday_id: string | null;
5749
+ floriday_reference: string | null;
5750
+ http_status: number;
5751
+ id: string;
5752
+ item_count: number | null;
5753
+ kind: string | null;
5754
+ local_id: string | null;
5755
+ local_reference: string | null;
5756
+ method: string;
5757
+ module: string | null;
5758
+ ok: boolean;
5759
+ path: string;
5760
+ request: import("./types").Json | null;
5761
+ resource_type: string | null;
5762
+ response: import("./types").Json | null;
5763
+ write_log_id: string | null;
5764
+ };
5765
+ Insert: {
5766
+ action?: string | null;
5767
+ caller?: string | null;
5768
+ connection_id?: string | null;
5769
+ created_at?: string;
5770
+ cursor_from?: number | null;
5771
+ direction: string;
5772
+ duration_ms?: number | null;
5773
+ environment?: string | null;
5774
+ error?: string | null;
5775
+ floriday_id?: string | null;
5776
+ floriday_reference?: string | null;
5777
+ http_status?: number;
5778
+ id?: string;
5779
+ item_count?: number | null;
5780
+ kind?: string | null;
5781
+ local_id?: string | null;
5782
+ local_reference?: string | null;
5783
+ method: string;
5784
+ module?: string | null;
5785
+ ok?: boolean;
5786
+ path: string;
5787
+ request?: import("./types").Json | null;
5788
+ resource_type?: string | null;
5789
+ response?: import("./types").Json | null;
5790
+ write_log_id?: string | null;
5791
+ };
5792
+ Update: {
5793
+ action?: string | null;
5794
+ caller?: string | null;
5795
+ connection_id?: string | null;
5796
+ created_at?: string;
5797
+ cursor_from?: number | null;
5798
+ direction?: string;
5799
+ duration_ms?: number | null;
5800
+ environment?: string | null;
5801
+ error?: string | null;
5802
+ floriday_id?: string | null;
5803
+ floriday_reference?: string | null;
5804
+ http_status?: number;
5805
+ id?: string;
5806
+ item_count?: number | null;
5807
+ kind?: string | null;
5808
+ local_id?: string | null;
5809
+ local_reference?: string | null;
5810
+ method?: string;
5811
+ module?: string | null;
5812
+ ok?: boolean;
5813
+ path?: string;
5814
+ request?: import("./types").Json | null;
5815
+ resource_type?: string | null;
5816
+ response?: import("./types").Json | null;
5817
+ write_log_id?: string | null;
5818
+ };
5819
+ Relationships: [{
5820
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
5821
+ columns: ["connection_id"];
5822
+ isOneToOne: false;
5823
+ referencedRelation: "floriday_connections";
5824
+ referencedColumns: ["id"];
5825
+ }, {
5826
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
5827
+ columns: ["write_log_id"];
5828
+ isOneToOne: false;
5829
+ referencedRelation: "floriday_write_log";
5830
+ referencedColumns: ["id"];
5831
+ }];
5832
+ };
5606
5833
  floriday_auction_letters_cache: {
5607
5834
  Row: {
5608
5835
  auction_letter_code: string;
@@ -5810,6 +6037,84 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5810
6037
  referencedColumns: ["id"];
5811
6038
  }];
5812
6039
  };
6040
+ floriday_catalog_prices_cache: {
6041
+ Row: {
6042
+ connection_id: string;
6043
+ created_at: string;
6044
+ currency: string;
6045
+ id: string;
6046
+ is_deleted: boolean;
6047
+ price: number | null;
6048
+ price_group_id: string | null;
6049
+ price_group_name: string | null;
6050
+ price_type: string;
6051
+ raw: import("./types").Json | null;
6052
+ sales_unit: string | null;
6053
+ sequence_number: number;
6054
+ supplier_article_code: string | null;
6055
+ supply_line_id: string;
6056
+ synced_at: string;
6057
+ trade_item_id: string | null;
6058
+ updated_at: string;
6059
+ valid_from: string | null;
6060
+ valid_to: string | null;
6061
+ week: number | null;
6062
+ year: number | null;
6063
+ };
6064
+ Insert: {
6065
+ connection_id: string;
6066
+ created_at?: string;
6067
+ currency?: string;
6068
+ id?: string;
6069
+ is_deleted?: boolean;
6070
+ price?: number | null;
6071
+ price_group_id?: string | null;
6072
+ price_group_name?: string | null;
6073
+ price_type?: string;
6074
+ raw?: import("./types").Json | null;
6075
+ sales_unit?: string | null;
6076
+ sequence_number?: number;
6077
+ supplier_article_code?: string | null;
6078
+ supply_line_id: string;
6079
+ synced_at?: string;
6080
+ trade_item_id?: string | null;
6081
+ updated_at?: string;
6082
+ valid_from?: string | null;
6083
+ valid_to?: string | null;
6084
+ week?: number | null;
6085
+ year?: number | null;
6086
+ };
6087
+ Update: {
6088
+ connection_id?: string;
6089
+ created_at?: string;
6090
+ currency?: string;
6091
+ id?: string;
6092
+ is_deleted?: boolean;
6093
+ price?: number | null;
6094
+ price_group_id?: string | null;
6095
+ price_group_name?: string | null;
6096
+ price_type?: string;
6097
+ raw?: import("./types").Json | null;
6098
+ sales_unit?: string | null;
6099
+ sequence_number?: number;
6100
+ supplier_article_code?: string | null;
6101
+ supply_line_id?: string;
6102
+ synced_at?: string;
6103
+ trade_item_id?: string | null;
6104
+ updated_at?: string;
6105
+ valid_from?: string | null;
6106
+ valid_to?: string | null;
6107
+ week?: number | null;
6108
+ year?: number | null;
6109
+ };
6110
+ Relationships: [{
6111
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
6112
+ columns: ["connection_id"];
6113
+ isOneToOne: false;
6114
+ referencedRelation: "floriday_connections";
6115
+ referencedColumns: ["id"];
6116
+ }];
6117
+ };
5813
6118
  floriday_clock_presales_cache: {
5814
6119
  Row: {
5815
6120
  buyer_organization_id: string | null;
@@ -6725,6 +7030,69 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6725
7030
  referencedColumns: ["id"];
6726
7031
  }];
6727
7032
  };
7033
+ floriday_link_templates: {
7034
+ Row: {
7035
+ created_at: string;
7036
+ floriday_url_template: string | null;
7037
+ is_active: boolean;
7038
+ label: string;
7039
+ local_url_template: string | null;
7040
+ resource_type: string;
7041
+ updated_at: string;
7042
+ };
7043
+ Insert: {
7044
+ created_at?: string;
7045
+ floriday_url_template?: string | null;
7046
+ is_active?: boolean;
7047
+ label: string;
7048
+ local_url_template?: string | null;
7049
+ resource_type: string;
7050
+ updated_at?: string;
7051
+ };
7052
+ Update: {
7053
+ created_at?: string;
7054
+ floriday_url_template?: string | null;
7055
+ is_active?: boolean;
7056
+ label?: string;
7057
+ local_url_template?: string | null;
7058
+ resource_type?: string;
7059
+ updated_at?: string;
7060
+ };
7061
+ Relationships: [];
7062
+ };
7063
+ floriday_log_retention: {
7064
+ Row: {
7065
+ created_at: string;
7066
+ direction: string | null;
7067
+ id: string;
7068
+ keep_failed_days: number | null;
7069
+ keep_ok_days: number | null;
7070
+ note: string | null;
7071
+ resource_type: string | null;
7072
+ updated_at: string;
7073
+ };
7074
+ Insert: {
7075
+ created_at?: string;
7076
+ direction?: string | null;
7077
+ id?: string;
7078
+ keep_failed_days?: number | null;
7079
+ keep_ok_days?: number | null;
7080
+ note?: string | null;
7081
+ resource_type?: string | null;
7082
+ updated_at?: string;
7083
+ };
7084
+ Update: {
7085
+ created_at?: string;
7086
+ direction?: string | null;
7087
+ id?: string;
7088
+ keep_failed_days?: number | null;
7089
+ keep_ok_days?: number | null;
7090
+ note?: string | null;
7091
+ resource_type?: string | null;
7092
+ updated_at?: string;
7093
+ };
7094
+ Relationships: [];
7095
+ };
6728
7096
  floriday_logistic_labels_cache: {
6729
7097
  Row: {
6730
7098
  byte_size: number | null;
@@ -8441,15 +8809,56 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8441
8809
  };
8442
8810
  Relationships: [];
8443
8811
  };
8444
- itk_handover_github_scan: {
8812
+ itk_handover_afspraken: {
8445
8813
  Row: {
8446
- gescand_op: string;
8447
- gevonden: boolean;
8448
- melding: string | null;
8449
- module_id: string | null;
8450
- repo: string;
8814
+ afgesproken_door: string | null;
8815
+ afgesproken_op: string;
8816
+ besluit: string;
8817
+ created_at: string;
8818
+ item: string;
8819
+ modules: string[];
8820
+ sleutel: string;
8821
+ soort: string;
8822
+ updated_at: string;
8823
+ versie_vingerafdruk: string;
8824
+ };
8825
+ Insert: {
8826
+ afgesproken_door?: string | null;
8827
+ afgesproken_op?: string;
8828
+ besluit?: string;
8829
+ created_at?: string;
8830
+ item?: string;
8831
+ modules?: string[];
8832
+ sleutel: string;
8833
+ soort?: string;
8834
+ updated_at?: string;
8835
+ versie_vingerafdruk?: string;
8836
+ };
8837
+ Update: {
8838
+ afgesproken_door?: string | null;
8839
+ afgesproken_op?: string;
8840
+ besluit?: string;
8841
+ created_at?: string;
8842
+ item?: string;
8843
+ modules?: string[];
8844
+ sleutel?: string;
8845
+ soort?: string;
8846
+ updated_at?: string;
8847
+ versie_vingerafdruk?: string;
8848
+ };
8849
+ Relationships: [];
8850
+ };
8851
+ itk_handover_github_scan: {
8852
+ Row: {
8853
+ genegeerd_op: string | null;
8854
+ gescand_op: string;
8855
+ gevonden: boolean;
8856
+ melding: string | null;
8857
+ module_id: string | null;
8858
+ repo: string;
8451
8859
  };
8452
8860
  Insert: {
8861
+ genegeerd_op?: string | null;
8453
8862
  gescand_op?: string;
8454
8863
  gevonden?: boolean;
8455
8864
  melding?: string | null;
@@ -8457,6 +8866,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8457
8866
  repo: string;
8458
8867
  };
8459
8868
  Update: {
8869
+ genegeerd_op?: string | null;
8460
8870
  gescand_op?: string;
8461
8871
  gevonden?: boolean;
8462
8872
  melding?: string | null;
@@ -8465,13 +8875,45 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8465
8875
  };
8466
8876
  Relationships: [];
8467
8877
  };
8878
+ itk_handover_github_voortgang: {
8879
+ Row: {
8880
+ bijgewerkt_op: string;
8881
+ huidige_repo: string | null;
8882
+ id: boolean;
8883
+ klaar: number;
8884
+ loopt: boolean;
8885
+ totaal: number;
8886
+ };
8887
+ Insert: {
8888
+ bijgewerkt_op?: string;
8889
+ huidige_repo?: string | null;
8890
+ id?: boolean;
8891
+ klaar?: number;
8892
+ loopt?: boolean;
8893
+ totaal?: number;
8894
+ };
8895
+ Update: {
8896
+ bijgewerkt_op?: string;
8897
+ huidige_repo?: string | null;
8898
+ id?: boolean;
8899
+ klaar?: number;
8900
+ loopt?: boolean;
8901
+ totaal?: number;
8902
+ };
8903
+ Relationships: [];
8904
+ };
8468
8905
  itk_handover_module_meta: {
8469
8906
  Row: {
8470
8907
  check_aangevraagd_op: string | null;
8471
8908
  check_nodig: boolean;
8472
8909
  check_reden: string | null;
8473
8910
  created_at: string;
8911
+ md_bron: boolean;
8912
+ md_bron_op: string | null;
8913
+ md_bron_pad: string | null;
8474
8914
  module_id: string;
8915
+ nieuw_gezien: boolean;
8916
+ nieuw_gezien_op: string | null;
8475
8917
  project_url: string | null;
8476
8918
  publicatie_url: string | null;
8477
8919
  updated_at: string;
@@ -8481,7 +8923,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8481
8923
  check_nodig?: boolean;
8482
8924
  check_reden?: string | null;
8483
8925
  created_at?: string;
8926
+ md_bron?: boolean;
8927
+ md_bron_op?: string | null;
8928
+ md_bron_pad?: string | null;
8484
8929
  module_id: string;
8930
+ nieuw_gezien?: boolean;
8931
+ nieuw_gezien_op?: string | null;
8485
8932
  project_url?: string | null;
8486
8933
  publicatie_url?: string | null;
8487
8934
  updated_at?: string;
@@ -8491,13 +8938,45 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8491
8938
  check_nodig?: boolean;
8492
8939
  check_reden?: string | null;
8493
8940
  created_at?: string;
8941
+ md_bron?: boolean;
8942
+ md_bron_op?: string | null;
8943
+ md_bron_pad?: string | null;
8494
8944
  module_id?: string;
8945
+ nieuw_gezien?: boolean;
8946
+ nieuw_gezien_op?: string | null;
8495
8947
  project_url?: string | null;
8496
8948
  publicatie_url?: string | null;
8497
8949
  updated_at?: string;
8498
8950
  };
8499
8951
  Relationships: [];
8500
8952
  };
8953
+ itk_handover_module_naam: {
8954
+ Row: {
8955
+ bron_repo: string;
8956
+ created_at: string;
8957
+ module_id: string;
8958
+ standaardnaam: string | null;
8959
+ updated_at: string;
8960
+ weergavenaam: string;
8961
+ };
8962
+ Insert: {
8963
+ bron_repo?: string;
8964
+ created_at?: string;
8965
+ module_id: string;
8966
+ standaardnaam?: string | null;
8967
+ updated_at?: string;
8968
+ weergavenaam: string;
8969
+ };
8970
+ Update: {
8971
+ bron_repo?: string;
8972
+ created_at?: string;
8973
+ module_id?: string;
8974
+ standaardnaam?: string | null;
8975
+ updated_at?: string;
8976
+ weergavenaam?: string;
8977
+ };
8978
+ Relationships: [];
8979
+ };
8501
8980
  itk_handover_project_modules: {
8502
8981
  Row: {
8503
8982
  created_at: string;
@@ -8611,6 +9090,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8611
9090
  };
8612
9091
  itk_module_handovers: {
8613
9092
  Row: {
9093
+ bekende_risicos: string[];
8614
9094
  bevindingen: string | null;
8615
9095
  bezit_tabellen: string[];
8616
9096
  bron_commit: string | null;
@@ -8629,6 +9109,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8629
9109
  inhoud_md: string;
8630
9110
  is_actueel: boolean;
8631
9111
  is_gearchiveerd: boolean;
9112
+ laatst_bevestigd_op: string | null;
8632
9113
  laatst_gecontroleerd_op: string | null;
8633
9114
  module_id: string;
8634
9115
  module_titel: string;
@@ -8638,6 +9119,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8638
9119
  versie: number;
8639
9120
  };
8640
9121
  Insert: {
9122
+ bekende_risicos?: string[];
8641
9123
  bevindingen?: string | null;
8642
9124
  bezit_tabellen?: string[];
8643
9125
  bron_commit?: string | null;
@@ -8656,6 +9138,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8656
9138
  inhoud_md: string;
8657
9139
  is_actueel?: boolean;
8658
9140
  is_gearchiveerd?: boolean;
9141
+ laatst_bevestigd_op?: string | null;
8659
9142
  laatst_gecontroleerd_op?: string | null;
8660
9143
  module_id: string;
8661
9144
  module_titel: string;
@@ -8665,6 +9148,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8665
9148
  versie?: number;
8666
9149
  };
8667
9150
  Update: {
9151
+ bekende_risicos?: string[];
8668
9152
  bevindingen?: string | null;
8669
9153
  bezit_tabellen?: string[];
8670
9154
  bron_commit?: string | null;
@@ -8683,6 +9167,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8683
9167
  inhoud_md?: string;
8684
9168
  is_actueel?: boolean;
8685
9169
  is_gearchiveerd?: boolean;
9170
+ laatst_bevestigd_op?: string | null;
8686
9171
  laatst_gecontroleerd_op?: string | null;
8687
9172
  module_id?: string;
8688
9173
  module_titel?: string;
@@ -8891,6 +9376,54 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8891
9376
  };
8892
9377
  Relationships: [];
8893
9378
  };
9379
+ itk_offerte_werkbon_queue: {
9380
+ Row: {
9381
+ bron_werkbon_id: string | null;
9382
+ created_at: string;
9383
+ foutmelding: string | null;
9384
+ id: string;
9385
+ offerte_id: string;
9386
+ payload: import("./types").Json;
9387
+ status: string;
9388
+ updated_at: string;
9389
+ verwerkt_op: string | null;
9390
+ werkbon_id: string | null;
9391
+ werkbon_nummer: string | null;
9392
+ };
9393
+ Insert: {
9394
+ bron_werkbon_id?: string | null;
9395
+ created_at?: string;
9396
+ foutmelding?: string | null;
9397
+ id?: string;
9398
+ offerte_id: string;
9399
+ payload?: import("./types").Json;
9400
+ status?: string;
9401
+ updated_at?: string;
9402
+ verwerkt_op?: string | null;
9403
+ werkbon_id?: string | null;
9404
+ werkbon_nummer?: string | null;
9405
+ };
9406
+ Update: {
9407
+ bron_werkbon_id?: string | null;
9408
+ created_at?: string;
9409
+ foutmelding?: string | null;
9410
+ id?: string;
9411
+ offerte_id?: string;
9412
+ payload?: import("./types").Json;
9413
+ status?: string;
9414
+ updated_at?: string;
9415
+ verwerkt_op?: string | null;
9416
+ werkbon_id?: string | null;
9417
+ werkbon_nummer?: string | null;
9418
+ };
9419
+ Relationships: [{
9420
+ foreignKeyName: "itk_offerte_werkbon_queue_offerte_id_fkey";
9421
+ columns: ["offerte_id"];
9422
+ isOneToOne: false;
9423
+ referencedRelation: "itk_offertes";
9424
+ referencedColumns: ["id"];
9425
+ }];
9426
+ };
8894
9427
  itk_offertes: {
8895
9428
  Row: {
8896
9429
  ai_generated: boolean;
@@ -10076,6 +10609,36 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10076
10609
  };
10077
10610
  Relationships: [];
10078
10611
  };
10612
+ logistics_floriday_push_refusals: {
10613
+ Row: {
10614
+ action: string | null;
10615
+ created_at: string;
10616
+ id: string;
10617
+ order_ref: string;
10618
+ reason: string;
10619
+ source_module: string | null;
10620
+ source_shell: string | null;
10621
+ };
10622
+ Insert: {
10623
+ action?: string | null;
10624
+ created_at?: string;
10625
+ id?: string;
10626
+ order_ref: string;
10627
+ reason: string;
10628
+ source_module?: string | null;
10629
+ source_shell?: string | null;
10630
+ };
10631
+ Update: {
10632
+ action?: string | null;
10633
+ created_at?: string;
10634
+ id?: string;
10635
+ order_ref?: string;
10636
+ reason?: string;
10637
+ source_module?: string | null;
10638
+ source_shell?: string | null;
10639
+ };
10640
+ Relationships: [];
10641
+ };
10079
10642
  logistics_floriday_pushes: {
10080
10643
  Row: {
10081
10644
  attempts: number;
@@ -10151,6 +10714,42 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10151
10714
  };
10152
10715
  Relationships: [];
10153
10716
  };
10717
+ logistics_floriday_status_sends: {
10718
+ Row: {
10719
+ action: string;
10720
+ created_at: string;
10721
+ detail: string | null;
10722
+ http_status: number | null;
10723
+ id: string;
10724
+ ok: boolean;
10725
+ order_ref: string;
10726
+ source_module: string | null;
10727
+ source_shell: string | null;
10728
+ };
10729
+ Insert: {
10730
+ action: string;
10731
+ created_at?: string;
10732
+ detail?: string | null;
10733
+ http_status?: number | null;
10734
+ id?: string;
10735
+ ok?: boolean;
10736
+ order_ref: string;
10737
+ source_module?: string | null;
10738
+ source_shell?: string | null;
10739
+ };
10740
+ Update: {
10741
+ action?: string;
10742
+ created_at?: string;
10743
+ detail?: string | null;
10744
+ http_status?: number | null;
10745
+ id?: string;
10746
+ ok?: boolean;
10747
+ order_ref?: string;
10748
+ source_module?: string | null;
10749
+ source_shell?: string | null;
10750
+ };
10751
+ Relationships: [];
10752
+ };
10154
10753
  logistics_formulas: {
10155
10754
  Row: {
10156
10755
  created_at: string;
@@ -10223,6 +10822,144 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10223
10822
  };
10224
10823
  Relationships: [];
10225
10824
  };
10825
+ logistics_opening_exceptions: {
10826
+ Row: {
10827
+ closes: string | null;
10828
+ created_at: string;
10829
+ day: string;
10830
+ id: string;
10831
+ is_closed: boolean;
10832
+ note: string | null;
10833
+ opens: string | null;
10834
+ };
10835
+ Insert: {
10836
+ closes?: string | null;
10837
+ created_at?: string;
10838
+ day: string;
10839
+ id?: string;
10840
+ is_closed?: boolean;
10841
+ note?: string | null;
10842
+ opens?: string | null;
10843
+ };
10844
+ Update: {
10845
+ closes?: string | null;
10846
+ created_at?: string;
10847
+ day?: string;
10848
+ id?: string;
10849
+ is_closed?: boolean;
10850
+ note?: string | null;
10851
+ opens?: string | null;
10852
+ };
10853
+ Relationships: [];
10854
+ };
10855
+ logistics_opening_hours: {
10856
+ Row: {
10857
+ closes: string;
10858
+ created_at: string;
10859
+ id: string;
10860
+ is_active: boolean;
10861
+ note: string | null;
10862
+ opens: string;
10863
+ weekday: number;
10864
+ };
10865
+ Insert: {
10866
+ closes: string;
10867
+ created_at?: string;
10868
+ id?: string;
10869
+ is_active?: boolean;
10870
+ note?: string | null;
10871
+ opens: string;
10872
+ weekday: number;
10873
+ };
10874
+ Update: {
10875
+ closes?: string;
10876
+ created_at?: string;
10877
+ id?: string;
10878
+ is_active?: boolean;
10879
+ note?: string | null;
10880
+ opens?: string;
10881
+ weekday?: number;
10882
+ };
10883
+ Relationships: [];
10884
+ };
10885
+ logistics_order_merges: {
10886
+ Row: {
10887
+ group_key: string;
10888
+ id: string;
10889
+ items_moved: number;
10890
+ kept_order_id: string;
10891
+ kept_order_number: string | null;
10892
+ merged_at: string;
10893
+ merged_order_id: string;
10894
+ merged_order_number: string | null;
10895
+ sales_order_id: string | null;
10896
+ };
10897
+ Insert: {
10898
+ group_key: string;
10899
+ id?: string;
10900
+ items_moved?: number;
10901
+ kept_order_id: string;
10902
+ kept_order_number?: string | null;
10903
+ merged_at?: string;
10904
+ merged_order_id: string;
10905
+ merged_order_number?: string | null;
10906
+ sales_order_id?: string | null;
10907
+ };
10908
+ Update: {
10909
+ group_key?: string;
10910
+ id?: string;
10911
+ items_moved?: number;
10912
+ kept_order_id?: string;
10913
+ kept_order_number?: string | null;
10914
+ merged_at?: string;
10915
+ merged_order_id?: string;
10916
+ merged_order_number?: string | null;
10917
+ sales_order_id?: string | null;
10918
+ };
10919
+ Relationships: [];
10920
+ };
10921
+ logistics_pick_data_requests: {
10922
+ Row: {
10923
+ actions: import("./types").Json;
10924
+ created_at: string;
10925
+ event_id: string | null;
10926
+ finished_at: string | null;
10927
+ id: string;
10928
+ missing: import("./types").Json;
10929
+ order_ref: string;
10930
+ reason: string | null;
10931
+ result: import("./types").Json | null;
10932
+ status: string;
10933
+ unit_ref: string | null;
10934
+ };
10935
+ Insert: {
10936
+ actions?: import("./types").Json;
10937
+ created_at?: string;
10938
+ event_id?: string | null;
10939
+ finished_at?: string | null;
10940
+ id?: string;
10941
+ missing?: import("./types").Json;
10942
+ order_ref: string;
10943
+ reason?: string | null;
10944
+ result?: import("./types").Json | null;
10945
+ status?: string;
10946
+ unit_ref?: string | null;
10947
+ };
10948
+ Update: {
10949
+ actions?: import("./types").Json;
10950
+ created_at?: string;
10951
+ event_id?: string | null;
10952
+ finished_at?: string | null;
10953
+ id?: string;
10954
+ missing?: import("./types").Json;
10955
+ order_ref?: string;
10956
+ reason?: string | null;
10957
+ result?: import("./types").Json | null;
10958
+ status?: string;
10959
+ unit_ref?: string | null;
10960
+ };
10961
+ Relationships: [];
10962
+ };
10226
10963
  logistics_pickup_moments: {
10227
10964
  Row: {
10228
10965
  carrier_ref: string | null;
@@ -10259,6 +10996,30 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10259
10996
  };
10260
10997
  Relationships: [];
10261
10998
  };
10999
+ logistics_plan_locks: {
11000
+ Row: {
11001
+ created_at: string;
11002
+ lock_key: string;
11003
+ locked_until: string;
11004
+ owner: string | null;
11005
+ updated_at: string;
11006
+ };
11007
+ Insert: {
11008
+ created_at?: string;
11009
+ lock_key: string;
11010
+ locked_until: string;
11011
+ owner?: string | null;
11012
+ updated_at?: string;
11013
+ };
11014
+ Update: {
11015
+ created_at?: string;
11016
+ lock_key?: string;
11017
+ locked_until?: string;
11018
+ owner?: string | null;
11019
+ updated_at?: string;
11020
+ };
11021
+ Relationships: [];
11022
+ };
10262
11023
  logistics_plan_queue: {
10263
11024
  Row: {
10264
11025
  attempts: number;
@@ -10682,7 +11443,70 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10682
11443
  };
10683
11444
  Relationships: [];
10684
11445
  };
10685
- logistics_staff_planning: {
11446
+ logistics_slip_shipping_note: {
11447
+ Row: {
11448
+ attempts: number;
11449
+ batch_key: string | null;
11450
+ cart_id: string | null;
11451
+ created_at: string;
11452
+ error: string | null;
11453
+ error_code: string | null;
11454
+ fulfillment_order_id: string | null;
11455
+ id: string;
11456
+ locked_until: string | null;
11457
+ next_attempt_at: string | null;
11458
+ order_id: string | null;
11459
+ order_number: string | null;
11460
+ print_job_id: string | null;
11461
+ printer_id: string | null;
11462
+ retry_class: string | null;
11463
+ slip_job_id: string;
11464
+ status: string;
11465
+ updated_at: string;
11466
+ };
11467
+ Insert: {
11468
+ attempts?: number;
11469
+ batch_key?: string | null;
11470
+ cart_id?: string | null;
11471
+ created_at?: string;
11472
+ error?: string | null;
11473
+ error_code?: string | null;
11474
+ fulfillment_order_id?: string | null;
11475
+ id?: string;
11476
+ locked_until?: string | null;
11477
+ next_attempt_at?: string | null;
11478
+ order_id?: string | null;
11479
+ order_number?: string | null;
11480
+ print_job_id?: string | null;
11481
+ printer_id?: string | null;
11482
+ retry_class?: string | null;
11483
+ slip_job_id: string;
11484
+ status?: string;
11485
+ updated_at?: string;
11486
+ };
11487
+ Update: {
11488
+ attempts?: number;
11489
+ batch_key?: string | null;
11490
+ cart_id?: string | null;
11491
+ created_at?: string;
11492
+ error?: string | null;
11493
+ error_code?: string | null;
11494
+ fulfillment_order_id?: string | null;
11495
+ id?: string;
11496
+ locked_until?: string | null;
11497
+ next_attempt_at?: string | null;
11498
+ order_id?: string | null;
11499
+ order_number?: string | null;
11500
+ print_job_id?: string | null;
11501
+ printer_id?: string | null;
11502
+ retry_class?: string | null;
11503
+ slip_job_id?: string;
11504
+ status?: string;
11505
+ updated_at?: string;
11506
+ };
11507
+ Relationships: [];
11508
+ };
11509
+ logistics_staff_planning: {
10686
11510
  Row: {
10687
11511
  created_at: string;
10688
11512
  end_time: string;
@@ -11015,6 +11839,264 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11015
11839
  };
11016
11840
  Relationships: [];
11017
11841
  };
11842
+ logistics_time_settings: {
11843
+ Row: {
11844
+ id: boolean;
11845
+ timezone: string;
11846
+ updated_at: string;
11847
+ };
11848
+ Insert: {
11849
+ id?: boolean;
11850
+ timezone: string;
11851
+ updated_at?: string;
11852
+ };
11853
+ Update: {
11854
+ id?: boolean;
11855
+ timezone?: string;
11856
+ updated_at?: string;
11857
+ };
11858
+ Relationships: [];
11859
+ };
11860
+ logistics_trace_events: {
11861
+ Row: {
11862
+ actor: string | null;
11863
+ attempts: number;
11864
+ calc: import("./types").Json | null;
11865
+ cart_ref: string | null;
11866
+ created_at: string;
11867
+ db_action: string | null;
11868
+ db_new: import("./types").Json | null;
11869
+ db_old: import("./types").Json | null;
11870
+ db_record: string | null;
11871
+ db_table: string | null;
11872
+ decision: string | null;
11873
+ duration_ms: number | null;
11874
+ error: string | null;
11875
+ error_class: string | null;
11876
+ external_action: string | null;
11877
+ external_ref: string | null;
11878
+ external_response: import("./types").Json | null;
11879
+ external_status: string | null;
11880
+ external_system: string | null;
11881
+ id: string;
11882
+ input: import("./types").Json | null;
11883
+ next_attempt_at: string | null;
11884
+ next_step: string | null;
11885
+ node_id: string | null;
11886
+ order_ref: string | null;
11887
+ order_source: string | null;
11888
+ output: import("./types").Json | null;
11889
+ phase: string;
11890
+ reads: import("./types").Json | null;
11891
+ reason: string | null;
11892
+ rule: string | null;
11893
+ slip_ref: string | null;
11894
+ status: string;
11895
+ step: string;
11896
+ trace_id: string;
11897
+ values_used: import("./types").Json | null;
11898
+ };
11899
+ Insert: {
11900
+ actor?: string | null;
11901
+ attempts?: number;
11902
+ calc?: import("./types").Json | null;
11903
+ cart_ref?: string | null;
11904
+ created_at?: string;
11905
+ db_action?: string | null;
11906
+ db_new?: import("./types").Json | null;
11907
+ db_old?: import("./types").Json | null;
11908
+ db_record?: string | null;
11909
+ db_table?: string | null;
11910
+ decision?: string | null;
11911
+ duration_ms?: number | null;
11912
+ error?: string | null;
11913
+ error_class?: string | null;
11914
+ external_action?: string | null;
11915
+ external_ref?: string | null;
11916
+ external_response?: import("./types").Json | null;
11917
+ external_status?: string | null;
11918
+ external_system?: string | null;
11919
+ id?: string;
11920
+ input?: import("./types").Json | null;
11921
+ next_attempt_at?: string | null;
11922
+ next_step?: string | null;
11923
+ node_id?: string | null;
11924
+ order_ref?: string | null;
11925
+ order_source?: string | null;
11926
+ output?: import("./types").Json | null;
11927
+ phase: string;
11928
+ reads?: import("./types").Json | null;
11929
+ reason?: string | null;
11930
+ rule?: string | null;
11931
+ slip_ref?: string | null;
11932
+ status: string;
11933
+ step: string;
11934
+ trace_id?: string;
11935
+ values_used?: import("./types").Json | null;
11936
+ };
11937
+ Update: {
11938
+ actor?: string | null;
11939
+ attempts?: number;
11940
+ calc?: import("./types").Json | null;
11941
+ cart_ref?: string | null;
11942
+ created_at?: string;
11943
+ db_action?: string | null;
11944
+ db_new?: import("./types").Json | null;
11945
+ db_old?: import("./types").Json | null;
11946
+ db_record?: string | null;
11947
+ db_table?: string | null;
11948
+ decision?: string | null;
11949
+ duration_ms?: number | null;
11950
+ error?: string | null;
11951
+ error_class?: string | null;
11952
+ external_action?: string | null;
11953
+ external_ref?: string | null;
11954
+ external_response?: import("./types").Json | null;
11955
+ external_status?: string | null;
11956
+ external_system?: string | null;
11957
+ id?: string;
11958
+ input?: import("./types").Json | null;
11959
+ next_attempt_at?: string | null;
11960
+ next_step?: string | null;
11961
+ node_id?: string | null;
11962
+ order_ref?: string | null;
11963
+ order_source?: string | null;
11964
+ output?: import("./types").Json | null;
11965
+ phase?: string;
11966
+ reads?: import("./types").Json | null;
11967
+ reason?: string | null;
11968
+ rule?: string | null;
11969
+ slip_ref?: string | null;
11970
+ status?: string;
11971
+ step?: string;
11972
+ trace_id?: string;
11973
+ values_used?: import("./types").Json | null;
11974
+ };
11975
+ Relationships: [];
11976
+ };
11977
+ logistics_trace_events_archive: {
11978
+ Row: {
11979
+ actor: string | null;
11980
+ attempts: number;
11981
+ calc: import("./types").Json | null;
11982
+ cart_ref: string | null;
11983
+ created_at: string;
11984
+ db_action: string | null;
11985
+ db_new: import("./types").Json | null;
11986
+ db_old: import("./types").Json | null;
11987
+ db_record: string | null;
11988
+ db_table: string | null;
11989
+ decision: string | null;
11990
+ duration_ms: number | null;
11991
+ error: string | null;
11992
+ error_class: string | null;
11993
+ external_action: string | null;
11994
+ external_ref: string | null;
11995
+ external_response: import("./types").Json | null;
11996
+ external_status: string | null;
11997
+ external_system: string | null;
11998
+ id: string;
11999
+ input: import("./types").Json | null;
12000
+ next_attempt_at: string | null;
12001
+ next_step: string | null;
12002
+ node_id: string | null;
12003
+ order_ref: string | null;
12004
+ order_source: string | null;
12005
+ output: import("./types").Json | null;
12006
+ phase: string;
12007
+ reads: import("./types").Json | null;
12008
+ reason: string | null;
12009
+ rule: string | null;
12010
+ slip_ref: string | null;
12011
+ status: string;
12012
+ step: string;
12013
+ superseded_at: string;
12014
+ superseded_reason: string | null;
12015
+ trace_id: string;
12016
+ values_used: import("./types").Json | null;
12017
+ };
12018
+ Insert: {
12019
+ actor?: string | null;
12020
+ attempts?: number;
12021
+ calc?: import("./types").Json | null;
12022
+ cart_ref?: string | null;
12023
+ created_at?: string;
12024
+ db_action?: string | null;
12025
+ db_new?: import("./types").Json | null;
12026
+ db_old?: import("./types").Json | null;
12027
+ db_record?: string | null;
12028
+ db_table?: string | null;
12029
+ decision?: string | null;
12030
+ duration_ms?: number | null;
12031
+ error?: string | null;
12032
+ error_class?: string | null;
12033
+ external_action?: string | null;
12034
+ external_ref?: string | null;
12035
+ external_response?: import("./types").Json | null;
12036
+ external_status?: string | null;
12037
+ external_system?: string | null;
12038
+ id?: string;
12039
+ input?: import("./types").Json | null;
12040
+ next_attempt_at?: string | null;
12041
+ next_step?: string | null;
12042
+ node_id?: string | null;
12043
+ order_ref?: string | null;
12044
+ order_source?: string | null;
12045
+ output?: import("./types").Json | null;
12046
+ phase: string;
12047
+ reads?: import("./types").Json | null;
12048
+ reason?: string | null;
12049
+ rule?: string | null;
12050
+ slip_ref?: string | null;
12051
+ status: string;
12052
+ step: string;
12053
+ superseded_at?: string;
12054
+ superseded_reason?: string | null;
12055
+ trace_id?: string;
12056
+ values_used?: import("./types").Json | null;
12057
+ };
12058
+ Update: {
12059
+ actor?: string | null;
12060
+ attempts?: number;
12061
+ calc?: import("./types").Json | null;
12062
+ cart_ref?: string | null;
12063
+ created_at?: string;
12064
+ db_action?: string | null;
12065
+ db_new?: import("./types").Json | null;
12066
+ db_old?: import("./types").Json | null;
12067
+ db_record?: string | null;
12068
+ db_table?: string | null;
12069
+ decision?: string | null;
12070
+ duration_ms?: number | null;
12071
+ error?: string | null;
12072
+ error_class?: string | null;
12073
+ external_action?: string | null;
12074
+ external_ref?: string | null;
12075
+ external_response?: import("./types").Json | null;
12076
+ external_status?: string | null;
12077
+ external_system?: string | null;
12078
+ id?: string;
12079
+ input?: import("./types").Json | null;
12080
+ next_attempt_at?: string | null;
12081
+ next_step?: string | null;
12082
+ node_id?: string | null;
12083
+ order_ref?: string | null;
12084
+ order_source?: string | null;
12085
+ output?: import("./types").Json | null;
12086
+ phase?: string;
12087
+ reads?: import("./types").Json | null;
12088
+ reason?: string | null;
12089
+ rule?: string | null;
12090
+ slip_ref?: string | null;
12091
+ status?: string;
12092
+ step?: string;
12093
+ superseded_at?: string;
12094
+ superseded_reason?: string | null;
12095
+ trace_id?: string;
12096
+ values_used?: import("./types").Json | null;
12097
+ };
12098
+ Relationships: [];
12099
+ };
11018
12100
  logistics_variables: {
11019
12101
  Row: {
11020
12102
  created_at: string;
@@ -11162,6 +12244,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11162
12244
  has_attachments: boolean;
11163
12245
  id: string;
11164
12246
  message_id: string | null;
12247
+ preview: string | null;
11165
12248
  profile_id: string | null;
11166
12249
  raw_size: number | null;
11167
12250
  received_at: string | null;
@@ -11185,6 +12268,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11185
12268
  has_attachments?: boolean;
11186
12269
  id?: string;
11187
12270
  message_id?: string | null;
12271
+ preview?: string | null;
11188
12272
  profile_id?: string | null;
11189
12273
  raw_size?: number | null;
11190
12274
  received_at?: string | null;
@@ -11208,6 +12292,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11208
12292
  has_attachments?: boolean;
11209
12293
  id?: string;
11210
12294
  message_id?: string | null;
12295
+ preview?: string | null;
11211
12296
  profile_id?: string | null;
11212
12297
  raw_size?: number | null;
11213
12298
  received_at?: string | null;
@@ -11239,6 +12324,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11239
12324
  };
11240
12325
  mailbox_order_proposals: {
11241
12326
  Row: {
12327
+ ai_ok: boolean | null;
11242
12328
  ai_validation: import("./types").Json | null;
11243
12329
  confidence: number | null;
11244
12330
  created_at: string;
@@ -11256,6 +12342,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11256
12342
  updated_at: string;
11257
12343
  };
11258
12344
  Insert: {
12345
+ ai_ok?: boolean | null;
11259
12346
  ai_validation?: import("./types").Json | null;
11260
12347
  confidence?: number | null;
11261
12348
  created_at?: string;
@@ -11273,6 +12360,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11273
12360
  updated_at?: string;
11274
12361
  };
11275
12362
  Update: {
12363
+ ai_ok?: boolean | null;
11276
12364
  ai_validation?: import("./types").Json | null;
11277
12365
  confidence?: number | null;
11278
12366
  created_at?: string;
@@ -13405,6 +14493,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
13405
14493
  customer_name: string;
13406
14494
  deleted_at: string | null;
13407
14495
  delivery_date: string | null;
14496
+ floriday_order_group_key: string | null;
13408
14497
  floriday_sales_order_id: string | null;
13409
14498
  id: string;
13410
14499
  invoice_due_at: string | null;
@@ -13432,6 +14521,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
13432
14521
  customer_name?: string;
13433
14522
  deleted_at?: string | null;
13434
14523
  delivery_date?: string | null;
14524
+ floriday_order_group_key?: string | null;
13435
14525
  floriday_sales_order_id?: string | null;
13436
14526
  id?: string;
13437
14527
  invoice_due_at?: string | null;
@@ -13459,6 +14549,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
13459
14549
  customer_name?: string;
13460
14550
  deleted_at?: string | null;
13461
14551
  delivery_date?: string | null;
14552
+ floriday_order_group_key?: string | null;
13462
14553
  floriday_sales_order_id?: string | null;
13463
14554
  id?: string;
13464
14555
  invoice_due_at?: string | null;
@@ -13652,6 +14743,27 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
13652
14743
  };
13653
14744
  Relationships: [];
13654
14745
  };
14746
+ pick_buffer_event_cursor: {
14747
+ Row: {
14748
+ created_at: string;
14749
+ id: boolean;
14750
+ last_event_at: string;
14751
+ updated_at: string;
14752
+ };
14753
+ Insert: {
14754
+ created_at?: string;
14755
+ id?: boolean;
14756
+ last_event_at?: string;
14757
+ updated_at?: string;
14758
+ };
14759
+ Update: {
14760
+ created_at?: string;
14761
+ id?: boolean;
14762
+ last_event_at?: string;
14763
+ updated_at?: string;
14764
+ };
14765
+ Relationships: [];
14766
+ };
13655
14767
  pick_countries: {
13656
14768
  Row: {
13657
14769
  active: boolean;
@@ -14738,6 +15850,123 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
14738
15850
  referencedColumns: ["id"];
14739
15851
  }];
14740
15852
  };
15853
+ price_list_rows: {
15854
+ Row: {
15855
+ action: string;
15856
+ created_at: string;
15857
+ id: string;
15858
+ message: string | null;
15859
+ parsed: import("./types").Json;
15860
+ price_list_id: string;
15861
+ raw: import("./types").Json;
15862
+ row_number: number;
15863
+ supplier_product_id: string | null;
15864
+ };
15865
+ Insert: {
15866
+ action?: string;
15867
+ created_at?: string;
15868
+ id?: string;
15869
+ message?: string | null;
15870
+ parsed?: import("./types").Json;
15871
+ price_list_id: string;
15872
+ raw?: import("./types").Json;
15873
+ row_number: number;
15874
+ supplier_product_id?: string | null;
15875
+ };
15876
+ Update: {
15877
+ action?: string;
15878
+ created_at?: string;
15879
+ id?: string;
15880
+ message?: string | null;
15881
+ parsed?: import("./types").Json;
15882
+ price_list_id?: string;
15883
+ raw?: import("./types").Json;
15884
+ row_number?: number;
15885
+ supplier_product_id?: string | null;
15886
+ };
15887
+ Relationships: [{
15888
+ foreignKeyName: "price_list_rows_price_list_id_fkey";
15889
+ columns: ["price_list_id"];
15890
+ isOneToOne: false;
15891
+ referencedRelation: "price_lists";
15892
+ referencedColumns: ["id"];
15893
+ }, {
15894
+ foreignKeyName: "price_list_rows_supplier_product_id_fkey";
15895
+ columns: ["supplier_product_id"];
15896
+ isOneToOne: false;
15897
+ referencedRelation: "supplier_products";
15898
+ referencedColumns: ["id"];
15899
+ }];
15900
+ };
15901
+ price_lists: {
15902
+ Row: {
15903
+ created_at: string;
15904
+ created_by: string | null;
15905
+ file_hash: string | null;
15906
+ file_name: string;
15907
+ file_path: string | null;
15908
+ headers: string[];
15909
+ id: string;
15910
+ preview: import("./types").Json;
15911
+ processed_at: string | null;
15912
+ reason: string | null;
15913
+ row_count: number;
15914
+ sheet_name: string | null;
15915
+ source: string;
15916
+ stats: import("./types").Json;
15917
+ status: string;
15918
+ supplier_guess: string | null;
15919
+ supplier_id: string | null;
15920
+ updated_at: string;
15921
+ };
15922
+ Insert: {
15923
+ created_at?: string;
15924
+ created_by?: string | null;
15925
+ file_hash?: string | null;
15926
+ file_name: string;
15927
+ file_path?: string | null;
15928
+ headers?: string[];
15929
+ id?: string;
15930
+ preview?: import("./types").Json;
15931
+ processed_at?: string | null;
15932
+ reason?: string | null;
15933
+ row_count?: number;
15934
+ sheet_name?: string | null;
15935
+ source?: string;
15936
+ stats?: import("./types").Json;
15937
+ status?: string;
15938
+ supplier_guess?: string | null;
15939
+ supplier_id?: string | null;
15940
+ updated_at?: string;
15941
+ };
15942
+ Update: {
15943
+ created_at?: string;
15944
+ created_by?: string | null;
15945
+ file_hash?: string | null;
15946
+ file_name?: string;
15947
+ file_path?: string | null;
15948
+ headers?: string[];
15949
+ id?: string;
15950
+ preview?: import("./types").Json;
15951
+ processed_at?: string | null;
15952
+ reason?: string | null;
15953
+ row_count?: number;
15954
+ sheet_name?: string | null;
15955
+ source?: string;
15956
+ stats?: import("./types").Json;
15957
+ status?: string;
15958
+ supplier_guess?: string | null;
15959
+ supplier_id?: string | null;
15960
+ updated_at?: string;
15961
+ };
15962
+ Relationships: [{
15963
+ foreignKeyName: "price_lists_supplier_id_fkey";
15964
+ columns: ["supplier_id"];
15965
+ isOneToOne: false;
15966
+ referencedRelation: "suppliers";
15967
+ referencedColumns: ["id"];
15968
+ }];
15969
+ };
14741
15970
  print_agents: {
14742
15971
  Row: {
14743
15972
  actief: boolean;
@@ -16295,33 +17524,111 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
16295
17524
  referencedColumns: ["id"];
16296
17525
  }];
16297
17526
  };
16298
- purchase_order_items: {
17527
+ purchase_order_dispatches: {
16299
17528
  Row: {
16300
17529
  created_at: string;
16301
17530
  id: string;
16302
- product_id: string | null;
16303
- product_type: string;
17531
+ last_error: string | null;
17532
+ outbox_id: string | null;
16304
17533
  purchase_order_id: string;
16305
- quantity: number;
17534
+ status: string;
17535
+ supplier_id: string | null;
17536
+ supplier_name: string;
17537
+ to_address: string;
17538
+ updated_at: string;
16306
17539
  };
16307
17540
  Insert: {
16308
17541
  created_at?: string;
16309
17542
  id?: string;
16310
- product_id?: string | null;
16311
- product_type?: string;
17543
+ last_error?: string | null;
17544
+ outbox_id?: string | null;
16312
17545
  purchase_order_id: string;
16313
- quantity?: number;
17546
+ status?: string;
17547
+ supplier_id?: string | null;
17548
+ supplier_name?: string;
17549
+ to_address: string;
17550
+ updated_at?: string;
16314
17551
  };
16315
17552
  Update: {
16316
17553
  created_at?: string;
16317
17554
  id?: string;
16318
- product_id?: string | null;
16319
- product_type?: string;
17555
+ last_error?: string | null;
17556
+ outbox_id?: string | null;
16320
17557
  purchase_order_id?: string;
16321
- quantity?: number;
17558
+ status?: string;
17559
+ supplier_id?: string | null;
17560
+ supplier_name?: string;
17561
+ to_address?: string;
17562
+ updated_at?: string;
16322
17563
  };
16323
17564
  Relationships: [{
16324
- foreignKeyName: "purchase_order_items_product_id_fkey";
17565
+ foreignKeyName: "purchase_order_dispatches_purchase_order_id_fkey";
17566
+ columns: ["purchase_order_id"];
17567
+ isOneToOne: false;
17568
+ referencedRelation: "purchase_orders";
17569
+ referencedColumns: ["id"];
17570
+ }, {
17571
+ foreignKeyName: "purchase_order_dispatches_supplier_id_fkey";
17572
+ columns: ["supplier_id"];
17573
+ isOneToOne: false;
17574
+ referencedRelation: "suppliers";
17575
+ referencedColumns: ["id"];
17576
+ }];
17577
+ };
17578
+ purchase_order_items: {
17579
+ Row: {
17580
+ article_number: string | null;
17581
+ created_at: string;
17582
+ delivery_date: string | null;
17583
+ id: string;
17584
+ name: string;
17585
+ note: string | null;
17586
+ pot_size: string | null;
17587
+ product_id: string | null;
17588
+ product_type: string;
17589
+ purchase_order_id: string;
17590
+ quantity: number;
17591
+ supplier_id: string | null;
17592
+ supplier_product_id: string | null;
17593
+ unit_price_cents: number;
17594
+ updated_at: string;
17595
+ };
17596
+ Insert: {
17597
+ article_number?: string | null;
17598
+ created_at?: string;
17599
+ delivery_date?: string | null;
17600
+ id?: string;
17601
+ name?: string;
17602
+ note?: string | null;
17603
+ pot_size?: string | null;
17604
+ product_id?: string | null;
17605
+ product_type?: string;
17606
+ purchase_order_id: string;
17607
+ quantity?: number;
17608
+ supplier_id?: string | null;
17609
+ supplier_product_id?: string | null;
17610
+ unit_price_cents?: number;
17611
+ updated_at?: string;
17612
+ };
17613
+ Update: {
17614
+ article_number?: string | null;
17615
+ created_at?: string;
17616
+ delivery_date?: string | null;
17617
+ id?: string;
17618
+ name?: string;
17619
+ note?: string | null;
17620
+ pot_size?: string | null;
17621
+ product_id?: string | null;
17622
+ product_type?: string;
17623
+ purchase_order_id?: string;
17624
+ quantity?: number;
17625
+ supplier_id?: string | null;
17626
+ supplier_product_id?: string | null;
17627
+ unit_price_cents?: number;
17628
+ updated_at?: string;
17629
+ };
17630
+ Relationships: [{
17631
+ foreignKeyName: "purchase_order_items_product_id_fkey";
16325
17632
  columns: ["product_id"];
16326
17633
  isOneToOne: false;
16327
17634
  referencedRelation: "logistics_product_dimensions";
@@ -16338,43 +17645,70 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
16338
17645
  isOneToOne: false;
16339
17646
  referencedRelation: "purchase_orders";
16340
17647
  referencedColumns: ["id"];
17648
+ }, {
17649
+ foreignKeyName: "purchase_order_items_supplier_id_fkey";
17650
+ columns: ["supplier_id"];
17651
+ isOneToOne: false;
17652
+ referencedRelation: "suppliers";
17653
+ referencedColumns: ["id"];
17654
+ }, {
17655
+ foreignKeyName: "purchase_order_items_supplier_product_id_fkey";
17656
+ columns: ["supplier_product_id"];
17657
+ isOneToOne: false;
17658
+ referencedRelation: "supplier_products";
17659
+ referencedColumns: ["id"];
16341
17660
  }];
16342
17661
  };
16343
17662
  purchase_orders: {
16344
17663
  Row: {
17664
+ contact_person: string | null;
16345
17665
  created_at: string;
17666
+ created_by: string | null;
16346
17667
  expected_delivery_date: string;
16347
17668
  id: string;
16348
17669
  location_id: string | null;
16349
17670
  notes: string | null;
16350
17671
  order_number: string;
17672
+ reference: string | null;
17673
+ sent_at: string | null;
16351
17674
  status: string;
16352
17675
  supplier_id: string | null;
16353
17676
  supplier_name: string;
17677
+ total_cents: number;
16354
17678
  updated_at: string;
16355
17679
  };
16356
17680
  Insert: {
17681
+ contact_person?: string | null;
16357
17682
  created_at?: string;
16358
- expected_delivery_date: string;
17683
+ created_by?: string | null;
17684
+ expected_delivery_date?: string;
16359
17685
  id?: string;
16360
17686
  location_id?: string | null;
16361
17687
  notes?: string | null;
16362
- order_number: string;
17688
+ order_number?: string;
17689
+ reference?: string | null;
17690
+ sent_at?: string | null;
16363
17691
  status?: string;
16364
17692
  supplier_id?: string | null;
16365
17693
  supplier_name?: string;
17694
+ total_cents?: number;
16366
17695
  updated_at?: string;
16367
17696
  };
16368
17697
  Update: {
17698
+ contact_person?: string | null;
16369
17699
  created_at?: string;
17700
+ created_by?: string | null;
16370
17701
  expected_delivery_date?: string;
16371
17702
  id?: string;
16372
17703
  location_id?: string | null;
16373
17704
  notes?: string | null;
16374
17705
  order_number?: string;
17706
+ reference?: string | null;
17707
+ sent_at?: string | null;
16375
17708
  status?: string;
16376
17709
  supplier_id?: string | null;
16377
17710
  supplier_name?: string;
17711
+ total_cents?: number;
16378
17712
  updated_at?: string;
16379
17713
  };
16380
17714
  Relationships: [{
@@ -17261,15 +18595,160 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17261
18595
  };
17262
18596
  Relationships: [];
17263
18597
  };
18598
+ supplier_contacts: {
18599
+ Row: {
18600
+ created_at: string;
18601
+ email: string | null;
18602
+ id: string;
18603
+ is_primary: boolean;
18604
+ name: string;
18605
+ phone: string | null;
18606
+ role: string | null;
18607
+ supplier_id: string;
18608
+ updated_at: string;
18609
+ };
18610
+ Insert: {
18611
+ created_at?: string;
18612
+ email?: string | null;
18613
+ id?: string;
18614
+ is_primary?: boolean;
18615
+ name: string;
18616
+ phone?: string | null;
18617
+ role?: string | null;
18618
+ supplier_id: string;
18619
+ updated_at?: string;
18620
+ };
18621
+ Update: {
18622
+ created_at?: string;
18623
+ email?: string | null;
18624
+ id?: string;
18625
+ is_primary?: boolean;
18626
+ name?: string;
18627
+ phone?: string | null;
18628
+ role?: string | null;
18629
+ supplier_id?: string;
18630
+ updated_at?: string;
18631
+ };
18632
+ Relationships: [{
18633
+ foreignKeyName: "supplier_contacts_supplier_id_fkey";
18634
+ columns: ["supplier_id"];
18635
+ isOneToOne: false;
18636
+ referencedRelation: "suppliers";
18637
+ referencedColumns: ["id"];
18638
+ }];
18639
+ };
18640
+ supplier_price_history: {
18641
+ Row: {
18642
+ created_at: string;
18643
+ id: string;
18644
+ new_price_cents: number;
18645
+ old_price_cents: number | null;
18646
+ price_list_id: string | null;
18647
+ supplier_id: string | null;
18648
+ supplier_product_id: string;
18649
+ };
18650
+ Insert: {
18651
+ created_at?: string;
18652
+ id?: string;
18653
+ new_price_cents: number;
18654
+ old_price_cents?: number | null;
18655
+ price_list_id?: string | null;
18656
+ supplier_id?: string | null;
18657
+ supplier_product_id: string;
18658
+ };
18659
+ Update: {
18660
+ created_at?: string;
18661
+ id?: string;
18662
+ new_price_cents?: number;
18663
+ old_price_cents?: number | null;
18664
+ price_list_id?: string | null;
18665
+ supplier_id?: string | null;
18666
+ supplier_product_id?: string;
18667
+ };
18668
+ Relationships: [{
18669
+ foreignKeyName: "supplier_price_history_price_list_id_fkey";
18670
+ columns: ["price_list_id"];
18671
+ isOneToOne: false;
18672
+ referencedRelation: "price_lists";
18673
+ referencedColumns: ["id"];
18674
+ }, {
18675
+ foreignKeyName: "supplier_price_history_supplier_product_id_fkey";
18676
+ columns: ["supplier_product_id"];
18677
+ isOneToOne: false;
18678
+ referencedRelation: "supplier_products";
18679
+ referencedColumns: ["id"];
18680
+ }];
18681
+ };
18682
+ supplier_price_list_mappings: {
18683
+ Row: {
18684
+ column_map: import("./types").Json;
18685
+ created_at: string;
18686
+ deactivate_missing: boolean;
18687
+ decimal_separator: string;
18688
+ expected_headers: string[];
18689
+ extract_pot_from_name: boolean;
18690
+ header_row: number;
18691
+ id: string;
18692
+ max_error_ratio: number;
18693
+ price_is_cents: boolean;
18694
+ sheet_name: string | null;
18695
+ supplier_id: string;
18696
+ updated_at: string;
18697
+ };
18698
+ Insert: {
18699
+ column_map?: import("./types").Json;
18700
+ created_at?: string;
18701
+ deactivate_missing?: boolean;
18702
+ decimal_separator?: string;
18703
+ expected_headers?: string[];
18704
+ extract_pot_from_name?: boolean;
18705
+ header_row?: number;
18706
+ id?: string;
18707
+ max_error_ratio?: number;
18708
+ price_is_cents?: boolean;
18709
+ sheet_name?: string | null;
18710
+ supplier_id: string;
18711
+ updated_at?: string;
18712
+ };
18713
+ Update: {
18714
+ column_map?: import("./types").Json;
18715
+ created_at?: string;
18716
+ deactivate_missing?: boolean;
18717
+ decimal_separator?: string;
18718
+ expected_headers?: string[];
18719
+ extract_pot_from_name?: boolean;
18720
+ header_row?: number;
18721
+ id?: string;
18722
+ max_error_ratio?: number;
18723
+ price_is_cents?: boolean;
18724
+ sheet_name?: string | null;
18725
+ supplier_id?: string;
18726
+ updated_at?: string;
18727
+ };
18728
+ Relationships: [{
18729
+ foreignKeyName: "supplier_price_list_mappings_supplier_id_fkey";
18730
+ columns: ["supplier_id"];
18731
+ isOneToOne: true;
18732
+ referencedRelation: "suppliers";
18733
+ referencedColumns: ["id"];
18734
+ }];
18735
+ };
17264
18736
  supplier_products: {
17265
18737
  Row: {
17266
18738
  article_number: string | null;
18739
+ available_quantity: number;
17267
18740
  created_at: string;
18741
+ height: string | null;
17268
18742
  id: string;
18743
+ is_active: boolean;
18744
+ min_order: number;
17269
18745
  name: string;
17270
18746
  notes: string | null;
18747
+ order_unit: number;
17271
18748
  pot_size: string | null;
17272
18749
  price: number | null;
18750
+ price_cents: number;
18751
+ quality: string | null;
17273
18752
  quantity: number | null;
17274
18753
  supplier_id: string;
17275
18754
  unit: string;
@@ -17277,12 +18756,19 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17277
18756
  };
17278
18757
  Insert: {
17279
18758
  article_number?: string | null;
18759
+ available_quantity?: number;
17280
18760
  created_at?: string;
18761
+ height?: string | null;
17281
18762
  id?: string;
18763
+ is_active?: boolean;
18764
+ min_order?: number;
17282
18765
  name: string;
17283
18766
  notes?: string | null;
18767
+ order_unit?: number;
17284
18768
  pot_size?: string | null;
17285
18769
  price?: number | null;
18770
+ price_cents?: number;
18771
+ quality?: string | null;
17286
18772
  quantity?: number | null;
17287
18773
  supplier_id: string;
17288
18774
  unit?: string;
@@ -17290,12 +18776,19 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17290
18776
  };
17291
18777
  Update: {
17292
18778
  article_number?: string | null;
18779
+ available_quantity?: number;
17293
18780
  created_at?: string;
18781
+ height?: string | null;
17294
18782
  id?: string;
18783
+ is_active?: boolean;
18784
+ min_order?: number;
17295
18785
  name?: string;
17296
18786
  notes?: string | null;
18787
+ order_unit?: number;
17297
18788
  pot_size?: string | null;
17298
18789
  price?: number | null;
18790
+ price_cents?: number;
18791
+ quality?: string | null;
17299
18792
  quantity?: number | null;
17300
18793
  supplier_id?: string;
17301
18794
  unit?: string;
@@ -17312,6 +18805,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17312
18805
  suppliers: {
17313
18806
  Row: {
17314
18807
  address: string | null;
18808
+ category: string | null;
17315
18809
  column_mappings: import("./types").Json | null;
17316
18810
  contact_person: string | null;
17317
18811
  created_at: string;
@@ -17319,13 +18813,24 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17319
18813
  email: string | null;
17320
18814
  id: string;
17321
18815
  imported_file_name: string | null;
18816
+ is_preferred: boolean;
18817
+ kvk_number: string | null;
18818
+ lead_time_days: number | null;
18819
+ min_order_amount_cents: number;
17322
18820
  name: string;
17323
18821
  notes: string | null;
18822
+ order_days: string[];
18823
+ order_email: string | null;
18824
+ payment_terms_days: number | null;
17324
18825
  phone: string | null;
18826
+ status: string;
17325
18827
  updated_at: string;
18828
+ vat_number: string | null;
18829
+ website: string | null;
17326
18830
  };
17327
18831
  Insert: {
17328
18832
  address?: string | null;
18833
+ category?: string | null;
17329
18834
  column_mappings?: import("./types").Json | null;
17330
18835
  contact_person?: string | null;
17331
18836
  created_at?: string;
@@ -17333,13 +18838,24 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17333
18838
  email?: string | null;
17334
18839
  id?: string;
17335
18840
  imported_file_name?: string | null;
18841
+ is_preferred?: boolean;
18842
+ kvk_number?: string | null;
18843
+ lead_time_days?: number | null;
18844
+ min_order_amount_cents?: number;
17336
18845
  name: string;
17337
18846
  notes?: string | null;
18847
+ order_days?: string[];
18848
+ order_email?: string | null;
18849
+ payment_terms_days?: number | null;
17338
18850
  phone?: string | null;
18851
+ status?: string;
17339
18852
  updated_at?: string;
18853
+ vat_number?: string | null;
18854
+ website?: string | null;
17340
18855
  };
17341
18856
  Update: {
17342
18857
  address?: string | null;
18858
+ category?: string | null;
17343
18859
  column_mappings?: import("./types").Json | null;
17344
18860
  contact_person?: string | null;
17345
18861
  created_at?: string;
@@ -17347,10 +18863,20 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17347
18863
  email?: string | null;
17348
18864
  id?: string;
17349
18865
  imported_file_name?: string | null;
18866
+ is_preferred?: boolean;
18867
+ kvk_number?: string | null;
18868
+ lead_time_days?: number | null;
18869
+ min_order_amount_cents?: number;
17350
18870
  name?: string;
17351
18871
  notes?: string | null;
18872
+ order_days?: string[];
18873
+ order_email?: string | null;
18874
+ payment_terms_days?: number | null;
17352
18875
  phone?: string | null;
18876
+ status?: string;
17353
18877
  updated_at?: string;
18878
+ vat_number?: string | null;
18879
+ website?: string | null;
17354
18880
  };
17355
18881
  Relationships: [];
17356
18882
  };
@@ -18352,11 +19878,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18352
19878
  auto_invoice_trigger_statuses: string[];
18353
19879
  created_at: string;
18354
19880
  debtor_gl_account: string;
19881
+ default_article_code: string | null;
18355
19882
  default_credit_invoice_type: string | null;
18356
19883
  default_gl_account: string;
18357
19884
  default_invoice_type: string;
18358
19885
  default_payment_term_days: number;
18359
19886
  default_vat_code: string;
19887
+ email_purpose: string | null;
18360
19888
  home_country_code: string;
18361
19889
  invoice_enabled_ao: boolean;
18362
19890
  invoice_enabled_fo: boolean;
@@ -18378,11 +19906,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18378
19906
  auto_invoice_trigger_statuses?: string[];
18379
19907
  created_at?: string;
18380
19908
  debtor_gl_account?: string;
19909
+ default_article_code?: string | null;
18381
19910
  default_credit_invoice_type?: string | null;
18382
19911
  default_gl_account?: string;
18383
19912
  default_invoice_type?: string;
18384
19913
  default_payment_term_days?: number;
18385
19914
  default_vat_code?: string;
19915
+ email_purpose?: string | null;
18386
19916
  home_country_code?: string;
18387
19917
  invoice_enabled_ao?: boolean;
18388
19918
  invoice_enabled_fo?: boolean;
@@ -18404,11 +19934,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18404
19934
  auto_invoice_trigger_statuses?: string[];
18405
19935
  created_at?: string;
18406
19936
  debtor_gl_account?: string;
19937
+ default_article_code?: string | null;
18407
19938
  default_credit_invoice_type?: string | null;
18408
19939
  default_gl_account?: string;
18409
19940
  default_invoice_type?: string;
18410
19941
  default_payment_term_days?: number;
18411
19942
  default_vat_code?: string;
19943
+ email_purpose?: string | null;
18412
19944
  home_country_code?: string;
18413
19945
  invoice_enabled_ao?: boolean;
18414
19946
  invoice_enabled_fo?: boolean;
@@ -19301,6 +20833,36 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19301
20833
  referencedColumns: ["id"];
19302
20834
  }];
19303
20835
  };
20836
+ voorraad_buffer_state: {
20837
+ Row: {
20838
+ buffer_id: string;
20839
+ buffer_key: string | null;
20840
+ closed_at: string | null;
20841
+ created_at: string;
20842
+ detached_orders: import("./types").Json;
20843
+ reason: string | null;
20844
+ updated_at: string;
20845
+ };
20846
+ Insert: {
20847
+ buffer_id: string;
20848
+ buffer_key?: string | null;
20849
+ closed_at?: string | null;
20850
+ created_at?: string;
20851
+ detached_orders?: import("./types").Json;
20852
+ reason?: string | null;
20853
+ updated_at?: string;
20854
+ };
20855
+ Update: {
20856
+ buffer_id?: string;
20857
+ buffer_key?: string | null;
20858
+ closed_at?: string | null;
20859
+ created_at?: string;
20860
+ detached_orders?: import("./types").Json;
20861
+ reason?: string | null;
20862
+ updated_at?: string;
20863
+ };
20864
+ Relationships: [];
20865
+ };
19304
20866
  voorraad_custom_fields: {
19305
20867
  Row: {
19306
20868
  created_at: string;
@@ -19343,6 +20905,36 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19343
20905
  };
19344
20906
  Relationships: [];
19345
20907
  };
20908
+ voorraad_logistics_event_log: {
20909
+ Row: {
20910
+ created_at: string;
20911
+ event_id: string;
20912
+ event_type: string;
20913
+ order_ref: string | null;
20914
+ processed_at: string;
20915
+ result: import("./types").Json;
20916
+ updated_at: string;
20917
+ };
20918
+ Insert: {
20919
+ created_at?: string;
20920
+ event_id: string;
20921
+ event_type: string;
20922
+ order_ref?: string | null;
20923
+ processed_at?: string;
20924
+ result?: import("./types").Json;
20925
+ updated_at?: string;
20926
+ };
20927
+ Update: {
20928
+ created_at?: string;
20929
+ event_id?: string;
20930
+ event_type?: string;
20931
+ order_ref?: string | null;
20932
+ processed_at?: string;
20933
+ result?: import("./types").Json;
20934
+ updated_at?: string;
20935
+ };
20936
+ Relationships: [];
20937
+ };
19346
20938
  voorraad_media_upload_failures: {
19347
20939
  Row: {
19348
20940
  action: string;
@@ -19610,13 +21202,49 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19610
21202
  referencedColumns: ["id"];
19611
21203
  }];
19612
21204
  };
19613
- werkbon_export_runs: {
21205
+ werkbon_email_state: {
19614
21206
  Row: {
19615
21207
  created_at: string;
19616
- created_by: string | null;
19617
- filename: string | null;
21208
+ event_id: string;
19618
21209
  id: string;
19619
- werkbon_ids: string[];
21210
+ is_archived: boolean;
21211
+ is_read: boolean;
21212
+ updated_at: string;
21213
+ werkbon_id: string | null;
21214
+ };
21215
+ Insert: {
21216
+ created_at?: string;
21217
+ event_id: string;
21218
+ id?: string;
21219
+ is_archived?: boolean;
21220
+ is_read?: boolean;
21221
+ updated_at?: string;
21222
+ werkbon_id?: string | null;
21223
+ };
21224
+ Update: {
21225
+ created_at?: string;
21226
+ event_id?: string;
21227
+ id?: string;
21228
+ is_archived?: boolean;
21229
+ is_read?: boolean;
21230
+ updated_at?: string;
21231
+ werkbon_id?: string | null;
21232
+ };
21233
+ Relationships: [{
21234
+ foreignKeyName: "werkbon_email_state_event_id_fkey";
21235
+ columns: ["event_id"];
21236
+ isOneToOne: true;
21237
+ referencedRelation: "email_auth_events";
21238
+ referencedColumns: ["id"];
21239
+ }];
21240
+ };
21241
+ werkbon_export_runs: {
21242
+ Row: {
21243
+ created_at: string;
21244
+ created_by: string | null;
21245
+ filename: string | null;
21246
+ id: string;
21247
+ werkbon_ids: string[];
19620
21248
  };
19621
21249
  Insert: {
19622
21250
  created_at?: string;
@@ -19763,6 +21391,147 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19763
21391
  };
19764
21392
  Relationships: [];
19765
21393
  };
21394
+ werkbon_mail_ai_settings: {
21395
+ Row: {
21396
+ created_at: string;
21397
+ id: boolean;
21398
+ required_fields: string[];
21399
+ system_prompt: string;
21400
+ updated_at: string;
21401
+ updated_by: string | null;
21402
+ };
21403
+ Insert: {
21404
+ created_at?: string;
21405
+ id?: boolean;
21406
+ required_fields?: string[];
21407
+ system_prompt?: string;
21408
+ updated_at?: string;
21409
+ updated_by?: string | null;
21410
+ };
21411
+ Update: {
21412
+ created_at?: string;
21413
+ id?: boolean;
21414
+ required_fields?: string[];
21415
+ system_prompt?: string;
21416
+ updated_at?: string;
21417
+ updated_by?: string | null;
21418
+ };
21419
+ Relationships: [];
21420
+ };
21421
+ werkbon_mail_bodies: {
21422
+ Row: {
21423
+ created_at: string;
21424
+ event_id: string;
21425
+ fetch_error: string | null;
21426
+ fetched_at: string | null;
21427
+ html: string | null;
21428
+ updated_at: string;
21429
+ };
21430
+ Insert: {
21431
+ created_at?: string;
21432
+ event_id: string;
21433
+ fetch_error?: string | null;
21434
+ fetched_at?: string | null;
21435
+ html?: string | null;
21436
+ updated_at?: string;
21437
+ };
21438
+ Update: {
21439
+ created_at?: string;
21440
+ event_id?: string;
21441
+ fetch_error?: string | null;
21442
+ fetched_at?: string | null;
21443
+ html?: string | null;
21444
+ updated_at?: string;
21445
+ };
21446
+ Relationships: [];
21447
+ };
21448
+ werkbon_mail_inline_assets: {
21449
+ Row: {
21450
+ content_id: string | null;
21451
+ created_at: string;
21452
+ event_id: string;
21453
+ filename: string | null;
21454
+ id: string;
21455
+ is_inline: boolean;
21456
+ mime_type: string | null;
21457
+ size_bytes: number | null;
21458
+ storage_path: string;
21459
+ };
21460
+ Insert: {
21461
+ content_id?: string | null;
21462
+ created_at?: string;
21463
+ event_id: string;
21464
+ filename?: string | null;
21465
+ id?: string;
21466
+ is_inline?: boolean;
21467
+ mime_type?: string | null;
21468
+ size_bytes?: number | null;
21469
+ storage_path: string;
21470
+ };
21471
+ Update: {
21472
+ content_id?: string | null;
21473
+ created_at?: string;
21474
+ event_id?: string;
21475
+ filename?: string | null;
21476
+ id?: string;
21477
+ is_inline?: boolean;
21478
+ mime_type?: string | null;
21479
+ size_bytes?: number | null;
21480
+ storage_path?: string;
21481
+ };
21482
+ Relationships: [];
21483
+ };
21484
+ werkbon_mail_settings: {
21485
+ Row: {
21486
+ connection_id: string | null;
21487
+ connection_ids: string[];
21488
+ created_at: string;
21489
+ id: boolean;
21490
+ purposes: string[];
21491
+ source: string;
21492
+ updated_at: string;
21493
+ };
21494
+ Insert: {
21495
+ connection_id?: string | null;
21496
+ connection_ids?: string[];
21497
+ created_at?: string;
21498
+ id?: boolean;
21499
+ purposes?: string[];
21500
+ source?: string;
21501
+ updated_at?: string;
21502
+ };
21503
+ Update: {
21504
+ connection_id?: string | null;
21505
+ connection_ids?: string[];
21506
+ created_at?: string;
21507
+ id?: boolean;
21508
+ purposes?: string[];
21509
+ source?: string;
21510
+ updated_at?: string;
21511
+ };
21512
+ Relationships: [];
21513
+ };
21514
+ werkbon_mail_user_settings: {
21515
+ Row: {
21516
+ created_at: string;
21517
+ email_purpose: string | null;
21518
+ updated_at: string;
21519
+ user_id: string;
21520
+ };
21521
+ Insert: {
21522
+ created_at?: string;
21523
+ email_purpose?: string | null;
21524
+ updated_at?: string;
21525
+ user_id: string;
21526
+ };
21527
+ Update: {
21528
+ created_at?: string;
21529
+ email_purpose?: string | null;
21530
+ updated_at?: string;
21531
+ user_id?: string;
21532
+ };
21533
+ Relationships: [];
21534
+ };
19766
21535
  werkbon_materials: {
19767
21536
  Row: {
19768
21537
  article_number: string | null;
@@ -20102,6 +21871,156 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20102
21871
  referencedColumns: ["id"];
20103
21872
  }];
20104
21873
  };
21874
+ werkbon_proposal_lines: {
21875
+ Row: {
21876
+ article_number: string | null;
21877
+ created_at: string;
21878
+ description: string | null;
21879
+ id: string;
21880
+ line_type: string;
21881
+ note: string | null;
21882
+ package_id: string | null;
21883
+ proposal_id: string;
21884
+ quantity: number | null;
21885
+ sort_order: number;
21886
+ unit: string | null;
21887
+ updated_at: string;
21888
+ };
21889
+ Insert: {
21890
+ article_number?: string | null;
21891
+ created_at?: string;
21892
+ description?: string | null;
21893
+ id?: string;
21894
+ line_type?: string;
21895
+ note?: string | null;
21896
+ package_id?: string | null;
21897
+ proposal_id: string;
21898
+ quantity?: number | null;
21899
+ sort_order?: number;
21900
+ unit?: string | null;
21901
+ updated_at?: string;
21902
+ };
21903
+ Update: {
21904
+ article_number?: string | null;
21905
+ created_at?: string;
21906
+ description?: string | null;
21907
+ id?: string;
21908
+ line_type?: string;
21909
+ note?: string | null;
21910
+ package_id?: string | null;
21911
+ proposal_id?: string;
21912
+ quantity?: number | null;
21913
+ sort_order?: number;
21914
+ unit?: string | null;
21915
+ updated_at?: string;
21916
+ };
21917
+ Relationships: [{
21918
+ foreignKeyName: "werkbon_proposal_lines_proposal_id_fkey";
21919
+ columns: ["proposal_id"];
21920
+ isOneToOne: false;
21921
+ referencedRelation: "werkbon_proposals";
21922
+ referencedColumns: ["id"];
21923
+ }];
21924
+ };
21925
+ werkbon_proposals: {
21926
+ Row: {
21927
+ analysed: boolean;
21928
+ budget_mandate_cents: number;
21929
+ complaint_description: string | null;
21930
+ contact_id: string | null;
21931
+ created_at: string;
21932
+ created_werkbon_id: string | null;
21933
+ customer_id: string | null;
21934
+ deadline_date: string | null;
21935
+ estimated_days: number | null;
21936
+ estimated_duration_minutes: number | null;
21937
+ event_id: string;
21938
+ external_id: string | null;
21939
+ externe_referentie: string | null;
21940
+ from_email: string | null;
21941
+ from_name: string | null;
21942
+ id: string;
21943
+ internal_notes: string | null;
21944
+ parsed_payload: import("./types").Json;
21945
+ received_at: string | null;
21946
+ reviewed_at: string | null;
21947
+ reviewed_by: string | null;
21948
+ room_number: string | null;
21949
+ scheduled_end_time: string | null;
21950
+ scheduled_start_time: string | null;
21951
+ status: string;
21952
+ subject: string | null;
21953
+ technician_id: string | null;
21954
+ technician_task_description: string | null;
21955
+ updated_at: string;
21956
+ work_address: string | null;
21957
+ };
21958
+ Insert: {
21959
+ analysed?: boolean;
21960
+ budget_mandate_cents?: number;
21961
+ complaint_description?: string | null;
21962
+ contact_id?: string | null;
21963
+ created_at?: string;
21964
+ created_werkbon_id?: string | null;
21965
+ customer_id?: string | null;
21966
+ deadline_date?: string | null;
21967
+ estimated_days?: number | null;
21968
+ estimated_duration_minutes?: number | null;
21969
+ event_id: string;
21970
+ external_id?: string | null;
21971
+ externe_referentie?: string | null;
21972
+ from_email?: string | null;
21973
+ from_name?: string | null;
21974
+ id?: string;
21975
+ internal_notes?: string | null;
21976
+ parsed_payload?: import("./types").Json;
21977
+ received_at?: string | null;
21978
+ reviewed_at?: string | null;
21979
+ reviewed_by?: string | null;
21980
+ room_number?: string | null;
21981
+ scheduled_end_time?: string | null;
21982
+ scheduled_start_time?: string | null;
21983
+ status?: string;
21984
+ subject?: string | null;
21985
+ technician_id?: string | null;
21986
+ technician_task_description?: string | null;
21987
+ updated_at?: string;
21988
+ work_address?: string | null;
21989
+ };
21990
+ Update: {
21991
+ analysed?: boolean;
21992
+ budget_mandate_cents?: number;
21993
+ complaint_description?: string | null;
21994
+ contact_id?: string | null;
21995
+ created_at?: string;
21996
+ created_werkbon_id?: string | null;
21997
+ customer_id?: string | null;
21998
+ deadline_date?: string | null;
21999
+ estimated_days?: number | null;
22000
+ estimated_duration_minutes?: number | null;
22001
+ event_id?: string;
22002
+ external_id?: string | null;
22003
+ externe_referentie?: string | null;
22004
+ from_email?: string | null;
22005
+ from_name?: string | null;
22006
+ id?: string;
22007
+ internal_notes?: string | null;
22008
+ parsed_payload?: import("./types").Json;
22009
+ received_at?: string | null;
22010
+ reviewed_at?: string | null;
22011
+ reviewed_by?: string | null;
22012
+ room_number?: string | null;
22013
+ scheduled_end_time?: string | null;
22014
+ scheduled_start_time?: string | null;
22015
+ status?: string;
22016
+ subject?: string | null;
22017
+ technician_id?: string | null;
22018
+ technician_task_description?: string | null;
22019
+ updated_at?: string;
22020
+ work_address?: string | null;
22021
+ };
22022
+ Relationships: [];
22023
+ };
20105
22024
  werkbon_time_logs: {
20106
22025
  Row: {
20107
22026
  activity: string;
@@ -20155,6 +22074,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20155
22074
  created_at: string;
20156
22075
  created_by: string | null;
20157
22076
  customer_id: string | null;
22077
+ deadline_date: string | null;
22078
+ estimated_days: number | null;
22079
+ estimated_duration_minutes: number | null;
20158
22080
  externe_referentie: string | null;
20159
22081
  extra_costs_cents: number;
20160
22082
  first_time_fix: boolean | null;
@@ -20185,6 +22107,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20185
22107
  updated_at: string;
20186
22108
  version: number;
20187
22109
  work_address: string | null;
22110
+ workday_hours: number | null;
20188
22111
  };
20189
22112
  Insert: {
20190
22113
  assigned_user_id?: string | null;
@@ -20193,6 +22116,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20193
22116
  created_at?: string;
20194
22117
  created_by?: string | null;
20195
22118
  customer_id?: string | null;
22119
+ deadline_date?: string | null;
22120
+ estimated_days?: number | null;
22121
+ estimated_duration_minutes?: number | null;
20196
22122
  externe_referentie?: string | null;
20197
22123
  extra_costs_cents?: number;
20198
22124
  first_time_fix?: boolean | null;
@@ -20223,6 +22149,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20223
22149
  updated_at?: string;
20224
22150
  version?: number;
20225
22151
  work_address?: string | null;
22152
+ workday_hours?: number | null;
20226
22153
  };
20227
22154
  Update: {
20228
22155
  assigned_user_id?: string | null;
@@ -20231,6 +22158,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20231
22158
  created_at?: string;
20232
22159
  created_by?: string | null;
20233
22160
  customer_id?: string | null;
22161
+ deadline_date?: string | null;
22162
+ estimated_days?: number | null;
22163
+ estimated_duration_minutes?: number | null;
20234
22164
  externe_referentie?: string | null;
20235
22165
  extra_costs_cents?: number;
20236
22166
  first_time_fix?: boolean | null;
@@ -20261,6 +22191,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20261
22191
  updated_at?: string;
20262
22192
  version?: number;
20263
22193
  work_address?: string | null;
22194
+ workday_hours?: number | null;
20264
22195
  };
20265
22196
  Relationships: [{
20266
22197
  foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
@@ -21465,7 +23396,11 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
21465
23396
  };
21466
23397
  Returns: string;
21467
23398
  };
21468
- backfill_open_order_reservations: {
23399
+ backfill_cart_numbers_day_seq: {
23400
+ Args: never;
23401
+ Returns: number;
23402
+ };
23403
+ backfill_open_order_reservations: {
21469
23404
  Args: never;
21470
23405
  Returns: {
21471
23406
  processed_items: number;
@@ -21503,6 +23438,15 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
21503
23438
  Args: never;
21504
23439
  Returns: boolean;
21505
23440
  };
23441
+ cancel_open_print_jobs: {
23442
+ Args: {
23443
+ _cutoff: string;
23444
+ };
23445
+ Returns: {
23446
+ extern_job_id: string;
23447
+ id: string;
23448
+ }[];
23449
+ };
21506
23450
  check_offer_product_available_stock: {
21507
23451
  Args: {
21508
23452
  p_campaign_product_id: string;
@@ -21942,8 +23886,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
21942
23886
  cart_index: number;
21943
23887
  cart_number: string;
21944
23888
  cart_number_id: string;
21945
- cart_seq: number;
21946
- cart_total: number;
21947
23889
  order_id: string;
21948
23890
  order_number: string;
21949
23891
  order_source: string;
@@ -22168,6 +24110,17 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
22168
24110
  };
22169
24111
  Returns: boolean;
22170
24112
  };
24113
+ floriday_adopt_connection: {
24114
+ Args: {
24115
+ p_new: string;
24116
+ p_old: string;
24117
+ };
24118
+ Returns: import("./types").Json;
24119
+ };
24120
+ floriday_autoheal_connections: {
24121
+ Args: never;
24122
+ Returns: import("./types").Json;
24123
+ };
22171
24124
  floriday_capture_stock_snapshot: {
22172
24125
  Args: never;
22173
24126
  Returns: number;
@@ -22225,6 +24178,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
22225
24178
  };
22226
24179
  Returns: undefined;
22227
24180
  };
24181
+ floriday_relink_products: {
24182
+ Args: {
24183
+ p_connection_id?: string;
24184
+ };
24185
+ Returns: import("./types").Json;
24186
+ };
22228
24187
  floriday_requeue_dead_letters: {
22229
24188
  Args: {
22230
24189
  p_connection_id?: string;
@@ -22447,6 +24406,27 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
22447
24406
  Args: never;
22448
24407
  Returns: string;
22449
24408
  };
24409
+ handover_afspraak_intrekken: {
24410
+ Args: {
24411
+ _sleutel: string;
24412
+ };
24413
+ Returns: boolean;
24414
+ };
24415
+ handover_afspraak_zetten: {
24416
+ Args: {
24417
+ _besluit: string;
24418
+ _item: string;
24419
+ _modules: string[];
24420
+ _sleutel: string;
24421
+ _soort: string;
24422
+ _versie_vingerafdruk: string;
24423
+ };
24424
+ Returns: boolean;
24425
+ };
24426
+ handover_afspraken: {
24427
+ Args: never;
24428
+ Returns: import("./types").Json;
24429
+ };
22450
24430
  handover_archief_lijst: {
22451
24431
  Args: never;
22452
24432
  Returns: import("./types").Json;
@@ -22464,6 +24444,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
22464
24444
  };
22465
24445
  Returns: boolean;
22466
24446
  };
24447
+ handover_check_afronden_na_scan: {
24448
+ Args: {
24449
+ _module_ids: string[];
24450
+ };
24451
+ Returns: number;
24452
+ };
22467
24453
  handover_check_markeren: {
22468
24454
  Args: {
22469
24455
  _module_ids: string[];
@@ -22507,6 +24493,14 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
22507
24493
  };
22508
24494
  Returns: boolean;
22509
24495
  };
24496
+ handover_md_bron_zetten: {
24497
+ Args: {
24498
+ _md: boolean;
24499
+ _module_id: string;
24500
+ _pad?: string;
24501
+ };
24502
+ Returns: boolean;
24503
+ };
22510
24504
  handover_module_meta_zetten: {
22511
24505
  Args: {
22512
24506
  _module_id: string;
@@ -22515,6 +24509,24 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
22515
24509
  };
22516
24510
  Returns: boolean;
22517
24511
  };
24512
+ handover_naam_zetten: {
24513
+ Args: {
24514
+ _bron_repo?: string;
24515
+ _module_id: string;
24516
+ _weergavenaam?: string;
24517
+ };
24518
+ Returns: boolean;
24519
+ };
24520
+ handover_namen: {
24521
+ Args: never;
24522
+ Returns: import("./types").Json;
24523
+ };
24524
+ handover_nieuw_gezien: {
24525
+ Args: {
24526
+ _module_id: string;
24527
+ };
24528
+ Returns: boolean;
24529
+ };
22518
24530
  handover_norm_naam: {
22519
24531
  Args: {
22520
24532
  _naam: string;
@@ -22551,6 +24563,24 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
22551
24563
  _versie_label?: string;
22552
24564
  };
22553
24565
  Returns: import("./types").Json;
24566
+ } | {
24567
+ Args: {
24568
+ _bekende_risicos?: string[];
24569
+ _bezit_tabellen?: string[];
24570
+ _bron_soort?: string;
24571
+ _commit?: string;
24572
+ _contractfuncties?: string[];
24573
+ _inhoud_md: string;
24574
+ _laatst_bevestigd_op?: string;
24575
+ _module_id: string;
24576
+ _module_titel: string;
24577
+ _ontbrekende_contracten?: string[];
24578
+ _pad?: string;
24579
+ _repo?: string;
24580
+ _samenvatting?: string;
24581
+ _versie_label?: string;
24582
+ };
24583
+ Returns: import("./types").Json;
22554
24584
  };
22555
24585
  handover_publish_via_token: {
22556
24586
  Args: {
@@ -22648,6 +24678,27 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
22648
24678
  Args: never;
22649
24679
  Returns: boolean;
22650
24680
  };
24681
+ inkoop_apply_price_list: {
24682
+ Args: {
24683
+ _price_list_id: string;
24684
+ _rows: import("./types").Json;
24685
+ };
24686
+ Returns: import("./types").Json;
24687
+ };
24688
+ inkoop_next_order_number: {
24689
+ Args: never;
24690
+ Returns: string;
24691
+ };
24692
+ inkoop_send_order: {
24693
+ Args: {
24694
+ _order_id: string;
24695
+ };
24696
+ Returns: {
24697
+ outbox_id: string;
24698
+ supplier_name: string;
24699
+ to_address: string;
24700
+ }[];
24701
+ };
22651
24702
  instructie_get: {
22652
24703
  Args: {
22653
24704
  _sleutel: string;
@@ -22707,6 +24758,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
22707
24758
  };
22708
24759
  Returns: import("./types").Json;
22709
24760
  };
24761
+ invoice_source_lines: {
24762
+ Args: {
24763
+ _source_id: string;
24764
+ _source_type: string;
24765
+ };
24766
+ Returns: import("./types").Json;
24767
+ };
22710
24768
  is_authenticated: {
22711
24769
  Args: never;
22712
24770
  Returns: boolean;
@@ -22846,6 +24904,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
22846
24904
  };
22847
24905
  Returns: string;
22848
24906
  };
24907
+ logistics_active_layout_method: {
24908
+ Args: never;
24909
+ Returns: string;
24910
+ };
22849
24911
  logistics_active_pick_workdays: {
22850
24912
  Args: never;
22851
24913
  Returns: string[];
@@ -23020,6 +25082,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23020
25082
  };
23021
25083
  Returns: string;
23022
25084
  };
25085
+ logistics_cart_checkin_at: {
25086
+ Args: {
25087
+ p_cart_id: string;
25088
+ };
25089
+ Returns: string;
25090
+ };
23023
25091
  logistics_cart_handled: {
23024
25092
  Args: {
23025
25093
  p_cart_index: number;
@@ -23053,10 +25121,22 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23053
25121
  task_status: string;
23054
25122
  }[];
23055
25123
  };
25124
+ logistics_cart_is_full: {
25125
+ Args: {
25126
+ p_cart_id: string;
25127
+ };
25128
+ Returns: boolean;
25129
+ };
23056
25130
  logistics_cart_layout_method: {
23057
25131
  Args: never;
23058
25132
  Returns: import("./types").Json;
23059
25133
  };
25134
+ logistics_cart_order_refs: {
25135
+ Args: {
25136
+ p_cart_id: string;
25137
+ };
25138
+ Returns: string[];
25139
+ };
23060
25140
  logistics_cart_plan_overview: {
23061
25141
  Args: {
23062
25142
  p_days?: number;
@@ -23076,6 +25156,24 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23076
25156
  };
23077
25157
  Returns: import("./types").Json;
23078
25158
  };
25159
+ logistics_cart_plan_status_core: {
25160
+ Args: {
25161
+ p_ref: string;
25162
+ };
25163
+ Returns: import("./types").Json;
25164
+ };
25165
+ logistics_cart_release_reason: {
25166
+ Args: {
25167
+ p_cart_id: string;
25168
+ };
25169
+ Returns: string;
25170
+ };
25171
+ logistics_cart_released: {
25172
+ Args: {
25173
+ p_cart_id: string;
25174
+ };
25175
+ Returns: boolean;
25176
+ };
23079
25177
  logistics_cart_seq: {
23080
25178
  Args: {
23081
25179
  p_order_uuid?: string;
@@ -23126,6 +25224,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23126
25224
  unit_ref: string;
23127
25225
  }[];
23128
25226
  };
25227
+ logistics_carts_per_print: {
25228
+ Args: never;
25229
+ Returns: number;
25230
+ };
23129
25231
  logistics_check_order_allowed: {
23130
25232
  Args: {
23131
25233
  p_lines: import("./types").Json;
@@ -23229,6 +25331,16 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23229
25331
  isSetofReturn: false;
23230
25332
  };
23231
25333
  };
25334
+ logistics_cleanup_orphan_print_jobs: {
25335
+ Args: never;
25336
+ Returns: import("./types").Json;
25337
+ };
25338
+ logistics_cleanup_tasks: {
25339
+ Args: {
25340
+ p_limit?: number;
25341
+ };
25342
+ Returns: import("./types").Json;
25343
+ };
23232
25344
  logistics_complete_task: {
23233
25345
  Args: {
23234
25346
  p_result?: import("./types").Json;
@@ -23291,6 +25403,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23291
25403
  station_carts: number;
23292
25404
  }[];
23293
25405
  };
25406
+ logistics_control_complete_cart: {
25407
+ Args: {
25408
+ p_cart_id: string;
25409
+ };
25410
+ Returns: number;
25411
+ };
23294
25412
  logistics_control_scan_approve: {
23295
25413
  Args: {
23296
25414
  p_allow_reprint?: boolean;
@@ -23370,6 +25488,15 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23370
25488
  Args: never;
23371
25489
  Returns: import("./types").Json;
23372
25490
  };
25491
+ logistics_day_windows: {
25492
+ Args: {
25493
+ p_day: string;
25494
+ };
25495
+ Returns: {
25496
+ win_end: string;
25497
+ win_start: string;
25498
+ }[];
25499
+ };
23373
25500
  logistics_delay_customer_email: {
23374
25501
  Args: {
23375
25502
  p_customer: string;
@@ -23437,6 +25564,17 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23437
25564
  };
23438
25565
  Returns: import("./types").Json;
23439
25566
  };
25567
+ logistics_enqueue_shipping_note_with_slip: {
25568
+ Args: {
25569
+ _cart_id: string;
25570
+ _is_herprint: boolean;
25571
+ _printer_id: string;
25572
+ _queue_item_id: string;
25573
+ _session_id: string;
25574
+ _slip_job_id: string;
25575
+ };
25576
+ Returns: string;
25577
+ };
23440
25578
  logistics_enqueue_sticker_with_slip: {
23441
25579
  Args: {
23442
25580
  _cart_id: string;
@@ -23454,6 +25592,20 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23454
25592
  };
23455
25593
  Returns: string;
23456
25594
  };
25595
+ logistics_ensure_pick_data: {
25596
+ Args: {
25597
+ p_event_id?: string;
25598
+ p_missing?: import("./types").Json;
25599
+ p_ref: string;
25600
+ };
25601
+ Returns: import("./types").Json;
25602
+ };
25603
+ logistics_ensure_shipping_notes: {
25604
+ Args: {
25605
+ p_limit?: number;
25606
+ };
25607
+ Returns: import("./types").Json;
25608
+ };
23457
25609
  logistics_fail_task: {
23458
25610
  Args: {
23459
25611
  p_error: string;
@@ -23499,6 +25651,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23499
25651
  isSetofReturn: false;
23500
25652
  };
23501
25653
  };
25654
+ logistics_fix_wrong_shipping_notes: {
25655
+ Args: never;
25656
+ Returns: import("./types").Json;
25657
+ };
23502
25658
  logistics_floriday_cart_plan: {
23503
25659
  Args: {
23504
25660
  p_order_id: string;
@@ -23526,6 +25682,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23526
25682
  revision: number;
23527
25683
  }[];
23528
25684
  };
25685
+ logistics_floriday_delivery_note_create_enabled: {
25686
+ Args: never;
25687
+ Returns: boolean;
25688
+ };
23529
25689
  logistics_floriday_finish_push: {
23530
25690
  Args: {
23531
25691
  _error?: string;
@@ -23575,6 +25735,38 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23575
25735
  };
23576
25736
  Returns: string;
23577
25737
  };
25738
+ logistics_floriday_gate_status: {
25739
+ Args: never;
25740
+ Returns: import("./types").Json;
25741
+ };
25742
+ logistics_floriday_log_refusal: {
25743
+ Args: {
25744
+ _action?: string;
25745
+ _module?: string;
25746
+ _order_ref: string;
25747
+ _reason: string;
25748
+ _shell?: string;
25749
+ };
25750
+ Returns: undefined;
25751
+ };
25752
+ logistics_floriday_log_send: {
25753
+ Args: {
25754
+ _action: string;
25755
+ _detail?: string;
25756
+ _http_status?: number;
25757
+ _module?: string;
25758
+ _ok: boolean;
25759
+ _order_ref: string;
25760
+ _shell?: string;
25761
+ };
25762
+ Returns: undefined;
25763
+ };
25764
+ logistics_floriday_order_approved: {
25765
+ Args: {
25766
+ _order_ref: string;
25767
+ };
25768
+ Returns: boolean;
25769
+ };
23578
25770
  logistics_floriday_prune_pushes: {
23579
25771
  Args: {
23580
25772
  _days?: number;
@@ -23589,6 +25781,20 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23589
25781
  };
23590
25782
  Returns: string;
23591
25783
  };
25784
+ logistics_floriday_status_updates_enabled: {
25785
+ Args: never;
25786
+ Returns: boolean;
25787
+ };
25788
+ logistics_floriday_stock_updates_enabled: {
25789
+ Args: never;
25790
+ Returns: boolean;
25791
+ };
25792
+ logistics_floriday_write_allowed: {
25793
+ Args: {
25794
+ _action: string;
25795
+ };
25796
+ Returns: boolean;
25797
+ };
23592
25798
  logistics_fulfill_barcode_requests: {
23593
25799
  Args: {
23594
25800
  p_limit?: number;
@@ -23609,6 +25815,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23609
25815
  };
23610
25816
  Returns: boolean;
23611
25817
  };
25818
+ logistics_layout_method_status: {
25819
+ Args: never;
25820
+ Returns: import("./types").Json;
25821
+ };
23612
25822
  logistics_link_order_items: {
23613
25823
  Args: {
23614
25824
  p_order?: string;
@@ -23627,6 +25837,22 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23627
25837
  };
23628
25838
  Returns: number;
23629
25839
  };
25840
+ logistics_merge_floriday_lines: {
25841
+ Args: {
25842
+ p_order_id: string;
25843
+ };
25844
+ Returns: string;
25845
+ };
25846
+ logistics_merge_lines_enabled: {
25847
+ Args: never;
25848
+ Returns: boolean;
25849
+ };
25850
+ logistics_merge_partial_carts: {
25851
+ Args: {
25852
+ p_limit?: number;
25853
+ };
25854
+ Returns: import("./types").Json;
25855
+ };
23630
25856
  logistics_next_workday_date: {
23631
25857
  Args: {
23632
25858
  p_date: string;
@@ -23653,12 +25879,50 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23653
25879
  };
23654
25880
  Returns: string;
23655
25881
  };
25882
+ logistics_opening_timezone: {
25883
+ Args: never;
25884
+ Returns: string;
25885
+ };
25886
+ logistics_order_cart_approval: {
25887
+ Args: {
25888
+ _order_ref: string;
25889
+ };
25890
+ Returns: {
25891
+ approved: number;
25892
+ total: number;
25893
+ }[];
25894
+ };
23656
25895
  logistics_order_cart_count: {
23657
25896
  Args: {
23658
25897
  p_order_ref: string;
23659
25898
  };
23660
25899
  Returns: number;
23661
25900
  };
25901
+ logistics_order_changed: {
25902
+ Args: {
25903
+ p_order_id: string;
25904
+ p_reason?: string;
25905
+ };
25906
+ Returns: undefined;
25907
+ };
25908
+ logistics_order_documents_ready: {
25909
+ Args: {
25910
+ p_order_ref: string;
25911
+ };
25912
+ Returns: import("./types").Json;
25913
+ };
25914
+ logistics_order_documents_ready_bool: {
25915
+ Args: {
25916
+ p_order_ref: string;
25917
+ };
25918
+ Returns: boolean;
25919
+ };
25920
+ logistics_order_frozen: {
25921
+ Args: {
25922
+ p_order_id: string;
25923
+ };
25924
+ Returns: boolean;
25925
+ };
23662
25926
  logistics_order_handled: {
23663
25927
  Args: {
23664
25928
  p_order_uuid: string;
@@ -23672,7 +25936,19 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23672
25936
  };
23673
25937
  Returns: boolean;
23674
25938
  };
23675
- logistics_order_overview: {
25939
+ logistics_order_merge_key: {
25940
+ Args: {
25941
+ p_group_key: string;
25942
+ };
25943
+ Returns: string;
25944
+ };
25945
+ logistics_order_mergeable: {
25946
+ Args: {
25947
+ p_order_id: string;
25948
+ };
25949
+ Returns: boolean;
25950
+ };
25951
+ logistics_order_overview: {
23676
25952
  Args: {
23677
25953
  p_from?: string;
23678
25954
  p_to?: string;
@@ -23709,6 +25985,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23709
25985
  };
23710
25986
  Returns: string;
23711
25987
  };
25988
+ logistics_payload_is_floriday: {
25989
+ Args: {
25990
+ _payload: import("./types").Json;
25991
+ };
25992
+ Returns: boolean;
25993
+ };
23712
25994
  logistics_pick_agenda: {
23713
25995
  Args: {
23714
25996
  p_from?: string;
@@ -23737,6 +26019,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23737
26019
  Args: never;
23738
26020
  Returns: import("./types").Json;
23739
26021
  };
26022
+ logistics_pick_partial_mode: {
26023
+ Args: never;
26024
+ Returns: string;
26025
+ };
23740
26026
  logistics_pick_start_estimate: {
23741
26027
  Args: {
23742
26028
  p_order: import("./types").Json;
@@ -23786,6 +26072,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23786
26072
  order_id: string;
23787
26073
  }[];
23788
26074
  };
26075
+ logistics_plan_defer: {
26076
+ Args: {
26077
+ p_id: string;
26078
+ };
26079
+ Returns: undefined;
26080
+ };
23789
26081
  logistics_plan_enqueue: {
23790
26082
  Args: {
23791
26083
  p_order_id: string;
@@ -23799,6 +26091,18 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23799
26091
  };
23800
26092
  Returns: boolean;
23801
26093
  };
26094
+ logistics_plan_error_class: {
26095
+ Args: {
26096
+ p_error: string;
26097
+ };
26098
+ Returns: string;
26099
+ };
26100
+ logistics_plan_error_text: {
26101
+ Args: {
26102
+ p_error: string;
26103
+ };
26104
+ Returns: string;
26105
+ };
23802
26106
  logistics_plan_finish: {
23803
26107
  Args: {
23804
26108
  p_error?: string;
@@ -23827,14 +26131,80 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23827
26131
  Args: never;
23828
26132
  Returns: undefined;
23829
26133
  };
26134
+ logistics_plan_lock_acquire: {
26135
+ Args: {
26136
+ _key: string;
26137
+ _owner?: string;
26138
+ _ttl_seconds?: number;
26139
+ };
26140
+ Returns: boolean;
26141
+ };
26142
+ logistics_plan_lock_release: {
26143
+ Args: {
26144
+ _key: string;
26145
+ _owner?: string;
26146
+ };
26147
+ Returns: undefined;
26148
+ };
26149
+ logistics_plan_progress: {
26150
+ Args: {
26151
+ p_refs: string[];
26152
+ };
26153
+ Returns: {
26154
+ cart_plan_ready: boolean;
26155
+ cart_plan_reason: string;
26156
+ cart_plan_released: boolean;
26157
+ plan_progress: number;
26158
+ plan_state: string;
26159
+ plan_state_since: string;
26160
+ unit_ref: string;
26161
+ }[];
26162
+ };
26163
+ logistics_plan_progress_pct: {
26164
+ Args: {
26165
+ p_order_id: string;
26166
+ };
26167
+ Returns: number;
26168
+ };
23830
26169
  logistics_plan_prune: {
23831
26170
  Args: never;
23832
26171
  Returns: number;
23833
26172
  };
26173
+ logistics_plan_queue_list: {
26174
+ Args: {
26175
+ p_limit?: number;
26176
+ };
26177
+ Returns: {
26178
+ attempts: number;
26179
+ claimed_at: string;
26180
+ customer_name: string;
26181
+ enqueued_at: string;
26182
+ error_class: string;
26183
+ error_raw: string;
26184
+ error_text: string;
26185
+ id: string;
26186
+ max_attempts: number;
26187
+ next_attempt_at: string;
26188
+ order_created_at: string;
26189
+ order_id: string;
26190
+ order_number: string;
26191
+ progress_pct: number;
26192
+ reason: string;
26193
+ stand: string;
26194
+ status: string;
26195
+ updated_at: string;
26196
+ }[];
26197
+ };
23834
26198
  logistics_plan_release_stale: {
23835
26199
  Args: never;
23836
26200
  Returns: number;
23837
26201
  };
26202
+ logistics_plan_reset_queue: {
26203
+ Args: {
26204
+ p_scope?: string;
26205
+ };
26206
+ Returns: number;
26207
+ };
23838
26208
  logistics_plan_retry: {
23839
26209
  Args: {
23840
26210
  p_order_ids: string[];
@@ -23848,6 +26218,22 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23848
26218
  };
23849
26219
  Returns: number;
23850
26220
  };
26221
+ logistics_plan_state_for: {
26222
+ Args: {
26223
+ p_ref: string;
26224
+ };
26225
+ Returns: import("./types").Json;
26226
+ };
26227
+ logistics_plan_timeout_running: {
26228
+ Args: never;
26229
+ Returns: number;
26230
+ };
26231
+ logistics_prepare_pick_documents: {
26232
+ Args: {
26233
+ p_limit?: number;
26234
+ };
26235
+ Returns: import("./types").Json;
26236
+ };
23851
26237
  logistics_prune_buffer_member_queue: {
23852
26238
  Args: never;
23853
26239
  Returns: number;
@@ -23888,12 +26274,42 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23888
26274
  Args: never;
23889
26275
  Returns: import("./types").Json;
23890
26276
  };
26277
+ logistics_refresh_pick_queue_status: {
26278
+ Args: {
26279
+ p_ref: string;
26280
+ };
26281
+ Returns: number;
26282
+ };
23891
26283
  logistics_refresh_pickup_moments: {
23892
26284
  Args: {
23893
26285
  p_weeks?: number;
23894
26286
  };
23895
26287
  Returns: import("./types").Json;
23896
26288
  };
26289
+ logistics_refresh_plan_state: {
26290
+ Args: {
26291
+ p_limit?: number;
26292
+ };
26293
+ Returns: import("./types").Json;
26294
+ };
26295
+ logistics_replan_all: {
26296
+ Args: {
26297
+ p_reason?: string;
26298
+ };
26299
+ Returns: import("./types").Json;
26300
+ };
26301
+ logistics_replan_all_force: {
26302
+ Args: {
26303
+ p_reason?: string;
26304
+ };
26305
+ Returns: import("./types").Json;
26306
+ };
26307
+ logistics_replan_order_journey: {
26308
+ Args: {
26309
+ p_order_ref: string;
26310
+ };
26311
+ Returns: import("./types").Json;
26312
+ };
23897
26313
  logistics_report_delay: {
23898
26314
  Args: {
23899
26315
  p_expected_date?: string;
@@ -23996,95 +26412,361 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23996
26412
  };
23997
26413
  Returns: import("./types").Json;
23998
26414
  };
23999
- logistics_scan_delays: {
24000
- Args: never;
24001
- Returns: number;
24002
- };
24003
- logistics_scan_order_stock: {
26415
+ logistics_scan_delays: {
26416
+ Args: never;
26417
+ Returns: number;
26418
+ };
26419
+ logistics_scan_order_stock: {
26420
+ Args: {
26421
+ p_order_id: string;
26422
+ };
26423
+ Returns: string;
26424
+ };
26425
+ logistics_scan_resolve: {
26426
+ Args: {
26427
+ p_code: string;
26428
+ };
26429
+ Returns: import("./types").Json;
26430
+ };
26431
+ logistics_schedule_tasks: {
26432
+ Args: never;
26433
+ Returns: number;
26434
+ } | {
26435
+ Args: {
26436
+ p_order_ref?: string;
26437
+ };
26438
+ Returns: number;
26439
+ };
26440
+ logistics_set_order_priority: {
26441
+ Args: {
26442
+ p_order_ref: string;
26443
+ p_priority: number;
26444
+ p_user_id?: string;
26445
+ };
26446
+ Returns: number;
26447
+ };
26448
+ logistics_set_pick_day: {
26449
+ Args: {
26450
+ p_order_ref: string;
26451
+ p_pick_day: string;
26452
+ };
26453
+ Returns: import("./types").Json;
26454
+ };
26455
+ logistics_shift_to_workday: {
26456
+ Args: {
26457
+ p_days: string[];
26458
+ p_ts: string;
26459
+ };
26460
+ Returns: string;
26461
+ };
26462
+ logistics_shipping_note_diagnose: {
26463
+ Args: {
26464
+ p_order_number: string;
26465
+ };
26466
+ Returns: import("./types").Json;
26467
+ };
26468
+ logistics_shipping_note_follows_slip: {
26469
+ Args: never;
26470
+ Returns: boolean;
26471
+ };
26472
+ logistics_shipping_note_from_barcode: {
26473
+ Args: {
26474
+ p_allow_reprint?: boolean;
26475
+ p_barcode: string;
26476
+ p_station_id?: string;
26477
+ };
26478
+ Returns: import("./types").Json;
26479
+ };
26480
+ logistics_shipping_note_job_for_slip: {
26481
+ Args: {
26482
+ _slip_job_id: string;
26483
+ };
26484
+ Returns: string;
26485
+ };
26486
+ logistics_shipping_notes_wake_all: {
26487
+ Args: never;
26488
+ Returns: import("./types").Json;
26489
+ };
26490
+ logistics_slip_is_floriday: {
26491
+ Args: {
26492
+ _slip_job_id: string;
26493
+ };
26494
+ Returns: boolean;
26495
+ };
26496
+ logistics_slip_note_claim: {
26497
+ Args: {
26498
+ _lease_seconds?: number;
26499
+ _limit?: number;
26500
+ };
26501
+ Returns: {
26502
+ attempts: number;
26503
+ batch_key: string | null;
26504
+ cart_id: string | null;
26505
+ created_at: string;
26506
+ error: string | null;
26507
+ error_code: string | null;
26508
+ fulfillment_order_id: string | null;
26509
+ id: string;
26510
+ locked_until: string | null;
26511
+ next_attempt_at: string | null;
26512
+ order_id: string | null;
26513
+ order_number: string | null;
26514
+ print_job_id: string | null;
26515
+ printer_id: string | null;
26516
+ retry_class: string | null;
26517
+ slip_job_id: string;
26518
+ status: string;
26519
+ updated_at: string;
26520
+ }[];
26521
+ SetofOptions: {
26522
+ from: "*";
26523
+ to: "logistics_slip_shipping_note";
26524
+ isOneToOne: false;
26525
+ isSetofReturn: true;
26526
+ };
26527
+ };
26528
+ logistics_slip_note_finish: {
26529
+ Args: {
26530
+ _error?: string;
26531
+ _error_code?: string;
26532
+ _fulfillment_order_id?: string;
26533
+ _id: string;
26534
+ _ok: boolean;
26535
+ _print_job_id?: string;
26536
+ _status?: string;
26537
+ };
26538
+ Returns: undefined;
26539
+ };
26540
+ logistics_slip_note_keep_waiting: {
26541
+ Args: {
26542
+ _class?: string;
26543
+ _id: string;
26544
+ _reason: string;
26545
+ };
26546
+ Returns: undefined;
26547
+ };
26548
+ logistics_sticker_follows_slip: {
26549
+ Args: never;
26550
+ Returns: boolean;
26551
+ };
26552
+ logistics_subtract_working_minutes: {
26553
+ Args: {
26554
+ p_deadline: string;
26555
+ p_max_workdays?: number;
26556
+ p_minutes: number;
26557
+ };
26558
+ Returns: import("./types").Json;
26559
+ };
26560
+ logistics_supersede_stale_tasks: {
26561
+ Args: {
26562
+ p_keep: string[];
26563
+ p_order_ref: string;
26564
+ p_run_id: string;
26565
+ p_user_id: string;
26566
+ };
26567
+ Returns: number;
26568
+ };
26569
+ logistics_sync_pick_queue: {
26570
+ Args: never;
26571
+ Returns: import("./types").Json;
26572
+ };
26573
+ logistics_sync_task_carriers: {
26574
+ Args: {
26575
+ p_order_ref?: string;
26576
+ };
26577
+ Returns: number;
26578
+ };
26579
+ logistics_task_owner: {
26580
+ Args: {
26581
+ p_task_type: string;
26582
+ };
26583
+ Returns: string;
26584
+ };
26585
+ logistics_task_pick_minutes: {
26586
+ Args: {
26587
+ p_payload: import("./types").Json;
26588
+ p_settings: import("./types").Json;
26589
+ };
26590
+ Returns: number;
26591
+ };
26592
+ logistics_task_retention_days: {
26593
+ Args: never;
26594
+ Returns: number;
26595
+ };
26596
+ logistics_tick_ping: {
26597
+ Args: never;
26598
+ Returns: string;
26599
+ };
26600
+ logistics_timezone_options: {
26601
+ Args: never;
26602
+ Returns: {
26603
+ name: string;
26604
+ }[];
26605
+ };
26606
+ logistics_trace: {
26607
+ Args: {
26608
+ p: import("./types").Json;
26609
+ };
26610
+ Returns: string;
26611
+ };
26612
+ logistics_trace_all_orders: {
26613
+ Args: {
26614
+ p_limit?: number;
26615
+ p_search?: string;
26616
+ };
26617
+ Returns: import("./types").Json;
26618
+ };
26619
+ logistics_trace_archive_order: {
26620
+ Args: {
26621
+ p_order_ref: string;
26622
+ p_reason: string;
26623
+ };
26624
+ Returns: number;
26625
+ };
26626
+ logistics_trace_batch: {
26627
+ Args: {
26628
+ p: import("./types").Json;
26629
+ };
26630
+ Returns: number;
26631
+ };
26632
+ logistics_trace_derive: {
26633
+ Args: {
26634
+ p: import("./types").Json;
26635
+ };
26636
+ Returns: number;
26637
+ };
26638
+ logistics_trace_node: {
26639
+ Args: {
26640
+ p_op?: string;
26641
+ p_status?: string;
26642
+ p_table: string;
26643
+ };
26644
+ Returns: string;
26645
+ };
26646
+ logistics_trace_order_journey_start: {
26647
+ Args: {
26648
+ p_order_id: string;
26649
+ p_reason?: string;
26650
+ };
26651
+ Returns: string;
26652
+ };
26653
+ logistics_trace_order_origin: {
26654
+ Args: {
26655
+ p_order_id: string;
26656
+ };
26657
+ Returns: undefined;
26658
+ };
26659
+ logistics_trace_order_overview: {
26660
+ Args: {
26661
+ p_error_class?: string;
26662
+ p_limit?: number;
26663
+ p_search?: string;
26664
+ p_since?: string;
26665
+ p_source?: string;
26666
+ p_state?: string;
26667
+ p_step?: string;
26668
+ };
26669
+ Returns: import("./types").Json;
26670
+ };
26671
+ logistics_trace_order_state: {
26672
+ Args: {
26673
+ p_order_ref: string;
26674
+ };
26675
+ Returns: import("./types").Json;
26676
+ };
26677
+ logistics_trace_order_step: {
26678
+ Args: {
26679
+ p_class?: string;
26680
+ p_decision?: string;
26681
+ p_error?: string;
26682
+ p_next_step?: string;
26683
+ p_node: string;
26684
+ p_order_id: string;
26685
+ p_reason?: string;
26686
+ p_status: string;
26687
+ p_step: string;
26688
+ };
26689
+ Returns: undefined;
26690
+ };
26691
+ logistics_trace_orders: {
26692
+ Args: {
26693
+ p_limit?: number;
26694
+ p_search?: string;
26695
+ p_since?: string;
26696
+ p_status?: string;
26697
+ };
26698
+ Returns: import("./types").Json;
26699
+ };
26700
+ logistics_trace_pick_state: {
24004
26701
  Args: {
24005
- p_order_id: string;
26702
+ p_order_number: string;
24006
26703
  };
24007
- Returns: string;
26704
+ Returns: undefined;
24008
26705
  };
24009
- logistics_scan_resolve: {
26706
+ logistics_trace_progress: {
24010
26707
  Args: {
24011
- p_code: string;
26708
+ p_limit?: number;
24012
26709
  };
24013
26710
  Returns: import("./types").Json;
24014
26711
  };
24015
- logistics_schedule_tasks: {
24016
- Args: never;
24017
- Returns: number;
24018
- };
24019
- logistics_set_order_priority: {
26712
+ logistics_trace_progress_order: {
24020
26713
  Args: {
24021
26714
  p_order_ref: string;
24022
- p_priority: number;
24023
- p_user_id?: string;
24024
26715
  };
24025
- Returns: number;
26716
+ Returns: import("./types").Json;
24026
26717
  };
24027
- logistics_set_pick_day: {
26718
+ logistics_trace_redact: {
24028
26719
  Args: {
24029
- p_order_ref: string;
24030
- p_pick_day: string;
26720
+ p: import("./types").Json;
24031
26721
  };
24032
26722
  Returns: import("./types").Json;
24033
26723
  };
24034
- logistics_shift_to_workday: {
26724
+ logistics_trace_source_node: {
24035
26725
  Args: {
24036
- p_days: string[];
24037
- p_ts: string;
26726
+ p_source: string;
24038
26727
  };
24039
26728
  Returns: string;
24040
26729
  };
24041
- logistics_shipping_note_from_barcode: {
26730
+ logistics_trace_step_once: {
24042
26731
  Args: {
24043
- p_allow_reprint?: boolean;
24044
- p_barcode: string;
24045
- p_station_id?: string;
26732
+ p_decision: string;
26733
+ p_next_step?: string;
26734
+ p_node: string;
26735
+ p_order_id: string;
26736
+ p_reason: string;
26737
+ p_status: string;
26738
+ p_step: string;
24046
26739
  };
24047
- Returns: import("./types").Json;
24048
- };
24049
- logistics_sticker_follows_slip: {
24050
- Args: never;
24051
- Returns: boolean;
26740
+ Returns: undefined;
24052
26741
  };
24053
- logistics_supersede_stale_tasks: {
26742
+ logistics_trace_stock_check: {
24054
26743
  Args: {
24055
- p_keep: string[];
24056
- p_order_ref: string;
24057
- p_run_id: string;
24058
- p_user_id: string;
26744
+ p_order_id: string;
24059
26745
  };
24060
- Returns: number;
24061
- };
24062
- logistics_sync_pick_queue: {
24063
- Args: never;
24064
- Returns: import("./types").Json;
26746
+ Returns: undefined;
24065
26747
  };
24066
- logistics_sync_task_carriers: {
26748
+ logistics_trace_timeline: {
24067
26749
  Args: {
24068
- p_order_ref?: string;
26750
+ p_limit?: number;
26751
+ p_order_ref: string;
24069
26752
  };
24070
- Returns: number;
26753
+ Returns: import("./types").Json;
24071
26754
  };
24072
- logistics_task_owner: {
26755
+ logistics_trace_version_events: {
24073
26756
  Args: {
24074
- p_task_type: string;
26757
+ p_from?: string;
26758
+ p_limit?: number;
26759
+ p_order_ref: string;
26760
+ p_to?: string;
26761
+ p_version_id: string;
24075
26762
  };
24076
- Returns: string;
26763
+ Returns: import("./types").Json;
24077
26764
  };
24078
- logistics_task_pick_minutes: {
26765
+ logistics_trace_versions: {
24079
26766
  Args: {
24080
- p_payload: import("./types").Json;
24081
- p_settings: import("./types").Json;
26767
+ p_order_ref: string;
24082
26768
  };
24083
- Returns: number;
24084
- };
24085
- logistics_tick_ping: {
24086
- Args: never;
24087
- Returns: string;
26769
+ Returns: import("./types").Json;
24088
26770
  };
24089
26771
  logistics_upsert_task: {
24090
26772
  Args: {
@@ -24105,6 +26787,16 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
24105
26787
  };
24106
26788
  Returns: string;
24107
26789
  };
26790
+ logistics_valid_timezone: {
26791
+ Args: {
26792
+ _tz: string;
26793
+ };
26794
+ Returns: boolean;
26795
+ };
26796
+ logistics_working_hours_status: {
26797
+ Args: never;
26798
+ Returns: import("./types").Json;
26799
+ };
24108
26800
  logistics_write_buffer_layer_positions: {
24109
26801
  Args: {
24110
26802
  p_buffer_id: string;
@@ -24166,6 +26858,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
24166
26858
  permission: string;
24167
26859
  }[];
24168
26860
  };
26861
+ next_cart_day_seq: {
26862
+ Args: {
26863
+ p_date: string;
26864
+ };
26865
+ Returns: number;
26866
+ };
24169
26867
  next_manufacture_partij: {
24170
26868
  Args: {
24171
26869
  _tenant_id: string;
@@ -24270,6 +26968,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
24270
26968
  online: boolean;
24271
26969
  }[];
24272
26970
  };
26971
+ pick_apply_buffer_events: {
26972
+ Args: never;
26973
+ Returns: import("./types").Json;
26974
+ };
24273
26975
  pick_available_pick_days: {
24274
26976
  Args: {
24275
26977
  _max_days?: number;
@@ -25113,6 +27815,18 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
25113
27815
  };
25114
27816
  Returns: undefined;
25115
27817
  };
27818
+ prune_floriday_api_log: {
27819
+ Args: never;
27820
+ Returns: number;
27821
+ };
27822
+ quote_ack_work_order: {
27823
+ Args: {
27824
+ _queue_id: string;
27825
+ _werkbon_id: string;
27826
+ _werkbon_nummer?: string;
27827
+ };
27828
+ Returns: boolean;
27829
+ };
25116
27830
  quote_create_from_source: {
25117
27831
  Args: {
25118
27832
  _payload?: import("./types").Json;
@@ -25121,6 +27835,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
25121
27835
  };
25122
27836
  Returns: string;
25123
27837
  };
27838
+ quote_fail_work_order: {
27839
+ Args: {
27840
+ _foutmelding: string;
27841
+ _queue_id: string;
27842
+ };
27843
+ Returns: boolean;
27844
+ };
25124
27845
  quote_get_billable_lines: {
25125
27846
  Args: {
25126
27847
  _quotation_id: string;
@@ -25137,6 +27858,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
25137
27858
  Args: never;
25138
27859
  Returns: import("./types").Json;
25139
27860
  };
27861
+ quote_list_pending_work_orders: {
27862
+ Args: {
27863
+ _limit?: number;
27864
+ };
27865
+ Returns: import("./types").Json;
27866
+ };
25140
27867
  quote_list_sources: {
25141
27868
  Args: {
25142
27869
  _limit?: number;
@@ -25144,6 +27871,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
25144
27871
  };
25145
27872
  Returns: import("./types").Json;
25146
27873
  };
27874
+ quote_queue_follow_up: {
27875
+ Args: {
27876
+ _offerte_id: string;
27877
+ };
27878
+ Returns: string;
27879
+ };
25147
27880
  recompute_all_reserved_stock: {
25148
27881
  Args: never;
25149
27882
  Returns: undefined;
@@ -25546,6 +28279,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
25546
28279
  };
25547
28280
  Returns: number;
25548
28281
  };
28282
+ schedule_floriday_catalog_prices_sync: {
28283
+ Args: {
28284
+ p_apikey: string;
28285
+ p_url: string;
28286
+ };
28287
+ Returns: number;
28288
+ };
25549
28289
  schedule_floriday_clock_presales_sync: {
25550
28290
  Args: {
25551
28291
  p_apikey: string;
@@ -25818,6 +28558,52 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
25818
28558
  p_end_time: string;
25819
28559
  };
25820
28560
  Returns: import("./types").Json;
28561
+ } | {
28562
+ Args: {
28563
+ p_end_lat?: number;
28564
+ p_end_lng?: number;
28565
+ p_log_id: string;
28566
+ };
28567
+ Returns: {
28568
+ auto_stop_reason: string | null;
28569
+ auto_stopped: boolean;
28570
+ created_at: string;
28571
+ current_latitude: number | null;
28572
+ current_longitude: number | null;
28573
+ current_position_updated_at: string | null;
28574
+ employee_id: string;
28575
+ end_latitude: number | null;
28576
+ end_longitude: number | null;
28577
+ end_time: string | null;
28578
+ eta_distance_km: number | null;
28579
+ eta_minutes: number | null;
28580
+ eta_updated_at: string | null;
28581
+ hour_category: string | null;
28582
+ id: string;
28583
+ last_reminder_at: string | null;
28584
+ notes: string | null;
28585
+ overtime_hours: number;
28586
+ overtime_type: string | null;
28587
+ regular_hours: number;
28588
+ reminder_count: number;
28589
+ requires_review: boolean;
28590
+ start_latitude: number | null;
28591
+ start_longitude: number | null;
28592
+ start_time: string;
28593
+ travel_cost: number | null;
28594
+ travel_distance_km: number | null;
28595
+ travel_duration_min: number | null;
28596
+ travel_time_minutes: number | null;
28597
+ type: string;
28598
+ updated_at: string;
28599
+ work_order_id: string | null;
28600
+ };
28601
+ SetofOptions: {
28602
+ from: "*";
28603
+ to: "time_logs";
28604
+ isOneToOne: true;
28605
+ isSetofReturn: false;
28606
+ };
25821
28607
  };
25822
28608
  swap_cart_layer_positions: {
25823
28609
  Args: {
@@ -25846,6 +28632,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
25846
28632
  };
25847
28633
  Returns: undefined;
25848
28634
  };
28635
+ sync_floriday_prices_into_price_groups: {
28636
+ Args: never;
28637
+ Returns: number;
28638
+ };
25849
28639
  sync_layer_stock: {
25850
28640
  Args: {
25851
28641
  p_product_id: string;
@@ -25970,14 +28760,99 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
25970
28760
  };
25971
28761
  Returns: undefined;
25972
28762
  };
28763
+ uren_employee_day_hours: {
28764
+ Args: {
28765
+ _day: string;
28766
+ _employee_id: string;
28767
+ };
28768
+ Returns: number;
28769
+ };
25973
28770
  uren_is_beheerder: {
25974
28771
  Args: never;
25975
28772
  Returns: boolean;
25976
28773
  };
28774
+ uren_list_medewerkers: {
28775
+ Args: never;
28776
+ Returns: {
28777
+ avatar_url: string;
28778
+ color: string;
28779
+ display_name: string;
28780
+ email: string;
28781
+ hours_fri: number;
28782
+ hours_mon: number;
28783
+ hours_thu: number;
28784
+ hours_tue: number;
28785
+ hours_wed: number;
28786
+ id: string;
28787
+ is_active: boolean;
28788
+ leave_balance_hours: number;
28789
+ persnr: string;
28790
+ phone: string;
28791
+ roles: string[];
28792
+ }[];
28793
+ };
25977
28794
  uren_my_monteur_id: {
25978
28795
  Args: never;
25979
28796
  Returns: string;
25980
28797
  };
28798
+ uren_planning_dagagenda: {
28799
+ Args: {
28800
+ _tot: string;
28801
+ _van: string;
28802
+ };
28803
+ Returns: {
28804
+ end_at: string;
28805
+ id: string;
28806
+ is_tweede_man: boolean;
28807
+ notes: string;
28808
+ start_at: string;
28809
+ status: Database["public"]["Enums"]["planning_item_status"];
28810
+ werkbon_id: string;
28811
+ }[];
28812
+ };
28813
+ uren_set_planning_item_status: {
28814
+ Args: {
28815
+ _id: string;
28816
+ _status: Database["public"]["Enums"]["planning_item_status"];
28817
+ };
28818
+ Returns: undefined;
28819
+ };
28820
+ uren_set_planning_status: {
28821
+ Args: {
28822
+ p_status: Database["public"]["Enums"]["planning_item_status"];
28823
+ p_werkbon_id: string;
28824
+ };
28825
+ Returns: number;
28826
+ };
28827
+ uren_stop_time_log: {
28828
+ Args: {
28829
+ p_employee_id: string;
28830
+ p_end_lat?: number;
28831
+ p_end_lng?: number;
28832
+ p_end_time: string;
28833
+ };
28834
+ Returns: import("./types").Json;
28835
+ };
28836
+ uren_switch_time_log: {
28837
+ Args: {
28838
+ p_employee_id: string;
28839
+ p_start_lat?: number;
28840
+ p_start_lng?: number;
28841
+ p_type: string;
28842
+ p_work_order_id?: string;
28843
+ };
28844
+ Returns: import("./types").Json;
28845
+ };
28846
+ uren_sync_sick_time_off: {
28847
+ Args: {
28848
+ _period_id: string;
28849
+ };
28850
+ Returns: number;
28851
+ };
28852
+ voorraad_cleanup_old_rows: {
28853
+ Args: never;
28854
+ Returns: import("./types").Json;
28855
+ };
25981
28856
  wake_print_queue: {
25982
28857
  Args: {
25983
28858
  _min_interval_ms?: number;
@@ -26016,6 +28891,25 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
26016
28891
  };
26017
28892
  Returns: import("./types").Json;
26018
28893
  };
28894
+ wo_list_offerte_requests: {
28895
+ Args: {
28896
+ _status?: string;
28897
+ };
28898
+ Returns: import("./types").Json;
28899
+ };
28900
+ wo_process_offerte_request: {
28901
+ Args: {
28902
+ _queue_id: string;
28903
+ };
28904
+ Returns: import("./types").Json;
28905
+ };
28906
+ wo_reject_offerte_request: {
28907
+ Args: {
28908
+ _queue_id: string;
28909
+ _reden?: string;
28910
+ };
28911
+ Returns: import("./types").Json;
28912
+ };
26019
28913
  wo_set_status: {
26020
28914
  Args: {
26021
28915
  _reason?: string;