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