@flowselections/floriday-afhandeling-module 1.0.43 → 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 (68) 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/components/afhandeling/WeekAgendaView.d.ts.map +1 -1
  4. package/dist-lib/components/afhandeling/WeekAgendaView.js +24 -1
  5. package/dist-lib/hooks/useCartIndex.d.ts.map +1 -1
  6. package/dist-lib/hooks/useCartIndex.js +16 -7
  7. package/dist-lib/hooks/useEngineBufferEvents.d.ts +12 -0
  8. package/dist-lib/hooks/useEngineBufferEvents.d.ts.map +1 -0
  9. package/dist-lib/hooks/useEngineBufferEvents.js +52 -0
  10. package/dist-lib/hooks/useEngineTasks.d.ts.map +1 -1
  11. package/dist-lib/hooks/useEngineTasks.js +8 -18
  12. package/dist-lib/hooks/useKnownOrders.d.ts +1 -0
  13. package/dist-lib/hooks/useKnownOrders.d.ts.map +1 -1
  14. package/dist-lib/hooks/useKnownOrders.js +28 -2
  15. package/dist-lib/hooks/useOrderPickDates.d.ts +1 -1
  16. package/dist-lib/hooks/useOrderPickDates.d.ts.map +1 -1
  17. package/dist-lib/hooks/useOrderPickDates.js +5 -3
  18. package/dist-lib/hooks/usePickAgenda.d.ts +4 -0
  19. package/dist-lib/hooks/usePickAgenda.d.ts.map +1 -1
  20. package/dist-lib/hooks/usePickAgenda.js +23 -16
  21. package/dist-lib/hooks/usePickMode.d.ts +8 -2
  22. package/dist-lib/hooks/usePickMode.d.ts.map +1 -1
  23. package/dist-lib/hooks/usePickMode.js +17 -9
  24. package/dist-lib/index.d.ts +1 -2
  25. package/dist-lib/index.d.ts.map +1 -1
  26. package/dist-lib/index.js +1 -33
  27. package/dist-lib/integrations/supabase/auth-middleware.d.ts +3256 -191
  28. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  29. package/dist-lib/integrations/supabase/client.server.d.ts +3256 -191
  30. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  31. package/dist-lib/integrations/supabase/moduleClient.d.ts +3257 -190
  32. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  33. package/dist-lib/integrations/supabase/types.d.ts +3354 -261
  34. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  35. package/dist-lib/lib/afhandelingSettings.functions.d.ts +6144 -14
  36. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  37. package/dist-lib/lib/carriers.functions.d.ts +15375 -40
  38. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  39. package/dist-lib/lib/cartAssignments.functions.d.ts +15360 -35
  40. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  41. package/dist-lib/lib/cartControl.functions.d.ts +33902 -104
  42. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  43. package/dist-lib/lib/cartControl.functions.js +389 -259
  44. package/dist-lib/lib/deliveryNote.functions.d.ts +3256 -191
  45. package/dist-lib/lib/deliveryNote.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/engineLayouts.functions.d.ts +3256 -191
  47. package/dist-lib/lib/engineLayouts.functions.d.ts.map +1 -1
  48. package/dist-lib/lib/floriday.functions.d.ts +6146 -14
  49. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  50. package/dist-lib/lib/floriday.functions.js +1 -0
  51. package/dist-lib/lib/orderFulfilment.functions.d.ts +3256 -191
  52. package/dist-lib/lib/orderFulfilment.functions.d.ts.map +1 -1
  53. package/dist-lib/lib/pickDates.functions.d.ts +3260 -190
  54. package/dist-lib/lib/pickDates.functions.d.ts.map +1 -1
  55. package/dist-lib/lib/pickDates.functions.js +30 -3
  56. package/dist-lib/lib/pickMode.d.ts +20 -2
  57. package/dist-lib/lib/pickMode.d.ts.map +1 -1
  58. package/dist-lib/lib/pickMode.js +65 -16
  59. package/dist-lib/lib/realtimeBus.d.ts +20 -0
  60. package/dist-lib/lib/realtimeBus.d.ts.map +1 -0
  61. package/dist-lib/lib/realtimeBus.js +56 -0
  62. package/dist-lib/lib/serverFnError.d.ts +12 -0
  63. package/dist-lib/lib/serverFnError.d.ts.map +1 -1
  64. package/dist-lib/lib/serverFnError.js +48 -1
  65. package/dist-lib/moduleDefinition.d.ts +3 -0
  66. package/dist-lib/moduleDefinition.d.ts.map +1 -0
  67. package/dist-lib/moduleDefinition.js +36 -0
  68. package/package.json +2 -2
@@ -6,6 +6,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6
6
  Row: {
7
7
  auto_print_delivery_note: boolean;
8
8
  auto_process_paused: boolean;
9
+ control_bulk_max_carts: number;
9
10
  created_at: string;
10
11
  extra_pick_days_with_stickers: number;
11
12
  id: string;
@@ -23,6 +24,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23
24
  Insert: {
24
25
  auto_print_delivery_note?: boolean;
25
26
  auto_process_paused?: boolean;
27
+ control_bulk_max_carts?: number;
26
28
  created_at?: string;
27
29
  extra_pick_days_with_stickers?: number;
28
30
  id?: string;
@@ -33,13 +35,16 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
33
35
  signup_mail_enabled?: boolean;
34
36
  signup_mail_lead_minutes?: number;
35
37
  signup_mail_purpose?: string;
36
- transport_register_days_before?: number;
38
+ transport_register_days_before
39
+ /** Lazy: pas bij het eerste gebruik wordt de client gemaakt (SSR-veilig). */
40
+ ?: number;
37
41
  updated_at?: string;
38
42
  user_id: string;
39
43
  };
40
44
  Update: {
41
45
  auto_print_delivery_note?: boolean;
42
46
  auto_process_paused?: boolean;
47
+ control_bulk_max_carts?: number;
43
48
  created_at?: string;
44
49
  extra_pick_days_with_stickers?: number;
45
50
  id?: string;
@@ -1382,6 +1387,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1382
1387
  id: string;
1383
1388
  notes: string | null;
1384
1389
  performed_at: string;
1390
+ request_key: string | null;
1385
1391
  rescheduled_count: number;
1386
1392
  stock_consumed_at: string | null;
1387
1393
  total_carts: number;
@@ -1396,6 +1402,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1396
1402
  id?: string;
1397
1403
  notes?: string | null;
1398
1404
  performed_at?: string;
1405
+ request_key?: string | null;
1399
1406
  rescheduled_count?: number;
1400
1407
  stock_consumed_at?: string | null;
1401
1408
  total_carts?: number;
@@ -1410,6 +1417,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1410
1417
  id?: string;
1411
1418
  notes?: string | null;
1412
1419
  performed_at?: string;
1420
+ request_key?: string | null;
1413
1421
  rescheduled_count?: number;
1414
1422
  stock_consumed_at?: string | null;
1415
1423
  total_carts?: number;
@@ -1422,9 +1430,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1422
1430
  Row: {
1423
1431
  assigned_at: string;
1424
1432
  cart_index: number;
1425
- cart_number: string | null;
1433
+ cart_number: string;
1426
1434
  day_seq: number | null;
1427
1435
  delivered_at: string | null;
1436
+ engine_cart_label: string | null;
1428
1437
  id: string;
1429
1438
  order_id: string;
1430
1439
  order_source: string;
@@ -1434,9 +1443,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1434
1443
  Insert: {
1435
1444
  assigned_at?: string;
1436
1445
  cart_index: number;
1437
- cart_number?: string | null;
1446
+ cart_number: string;
1438
1447
  day_seq?: number | null;
1439
1448
  delivered_at?: string | null;
1449
+ engine_cart_label?: string | null;
1440
1450
  id?: string;
1441
1451
  order_id: string;
1442
1452
  order_source: string;
@@ -1446,9 +1456,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1446
1456
  Update: {
1447
1457
  assigned_at?: string;
1448
1458
  cart_index?: number;
1449
- cart_number?: string | null;
1459
+ cart_number?: string;
1450
1460
  day_seq?: number | null;
1451
1461
  delivered_at?: string | null;
1462
+ engine_cart_label?: string | null;
1452
1463
  id?: string;
1453
1464
  order_id?: string;
1454
1465
  order_source?: string;
@@ -1823,6 +1834,42 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1823
1834
  };
1824
1835
  Relationships: [];
1825
1836
  };
1837
+ customer_assortment_items: {
1838
+ Row: {
1839
+ created_at: string;
1840
+ customer_key: string;
1841
+ id: string;
1842
+ in_assortment: boolean;
1843
+ manual_override: boolean;
1844
+ source: string;
1845
+ synced_at: string | null;
1846
+ trade_item_key: string;
1847
+ updated_at: string;
1848
+ };
1849
+ Insert: {
1850
+ created_at?: string;
1851
+ customer_key: string;
1852
+ id?: string;
1853
+ in_assortment?: boolean;
1854
+ manual_override?: boolean;
1855
+ source?: string;
1856
+ synced_at?: string | null;
1857
+ trade_item_key: string;
1858
+ updated_at?: string;
1859
+ };
1860
+ Update: {
1861
+ created_at?: string;
1862
+ customer_key?: string;
1863
+ id?: string;
1864
+ in_assortment?: boolean;
1865
+ manual_override?: boolean;
1866
+ source?: string;
1867
+ synced_at?: string | null;
1868
+ trade_item_key?: string;
1869
+ updated_at?: string;
1870
+ };
1871
+ Relationships: [];
1872
+ };
1826
1873
  customer_audit_log: {
1827
1874
  Row: {
1828
1875
  action: string;
@@ -2155,6 +2202,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2155
2202
  created_at: string;
2156
2203
  currency: string;
2157
2204
  distribute_over: string | null;
2205
+ external_id: string | null;
2206
+ external_synced_at: string | null;
2158
2207
  group_type: string;
2159
2208
  handling_fee: number | null;
2160
2209
  id: string;
@@ -2167,6 +2216,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2167
2216
  rounding: string;
2168
2217
  rounding_step: number;
2169
2218
  sort_order: number;
2219
+ source: string;
2170
2220
  unit: string;
2171
2221
  updated_at: string;
2172
2222
  };
@@ -2177,6 +2227,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2177
2227
  created_at?: string;
2178
2228
  currency?: string;
2179
2229
  distribute_over?: string | null;
2230
+ external_id?: string | null;
2231
+ external_synced_at?: string | null;
2180
2232
  group_type?: string;
2181
2233
  handling_fee?: number | null;
2182
2234
  id?: string;
@@ -2189,6 +2241,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2189
2241
  rounding?: string;
2190
2242
  rounding_step?: number;
2191
2243
  sort_order?: number;
2244
+ source?: string;
2192
2245
  unit?: string;
2193
2246
  updated_at?: string;
2194
2247
  };
@@ -2199,6 +2252,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2199
2252
  created_at?: string;
2200
2253
  currency?: string;
2201
2254
  distribute_over?: string | null;
2255
+ external_id?: string | null;
2256
+ external_synced_at?: string | null;
2202
2257
  group_type?: string;
2203
2258
  handling_fee?: number | null;
2204
2259
  id?: string;
@@ -2211,11 +2266,69 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2211
2266
  rounding?: string;
2212
2267
  rounding_step?: number;
2213
2268
  sort_order?: number;
2269
+ source?: string;
2214
2270
  unit?: string;
2215
2271
  updated_at?: string;
2216
2272
  };
2217
2273
  Relationships: [];
2218
2274
  };
2275
+ customer_product_stickers: {
2276
+ Row: {
2277
+ content_hash: string | null;
2278
+ created_at: string;
2279
+ customer_key: string;
2280
+ file_name: string;
2281
+ file_path: string;
2282
+ file_size: number | null;
2283
+ floriday_sticker_id: string | null;
2284
+ floriday_synced_at: string | null;
2285
+ height_mm: number | null;
2286
+ id: string;
2287
+ mime_type: string | null;
2288
+ source: string;
2289
+ trade_item_key: string;
2290
+ updated_at: string;
2291
+ uploaded_by: string | null;
2292
+ width_mm: number | null;
2293
+ };
2294
+ Insert: {
2295
+ content_hash?: string | null;
2296
+ created_at?: string;
2297
+ customer_key: string;
2298
+ file_name: string;
2299
+ file_path: string;
2300
+ file_size?: number | null;
2301
+ floriday_sticker_id?: string | null;
2302
+ floriday_synced_at?: string | null;
2303
+ height_mm?: number | null;
2304
+ id?: string;
2305
+ mime_type?: string | null;
2306
+ source?: string;
2307
+ trade_item_key: string;
2308
+ updated_at?: string;
2309
+ uploaded_by?: string | null;
2310
+ width_mm?: number | null;
2311
+ };
2312
+ Update: {
2313
+ content_hash?: string | null;
2314
+ created_at?: string;
2315
+ customer_key?: string;
2316
+ file_name?: string;
2317
+ file_path?: string;
2318
+ file_size?: number | null;
2319
+ floriday_sticker_id?: string | null;
2320
+ floriday_synced_at?: string | null;
2321
+ height_mm?: number | null;
2322
+ id?: string;
2323
+ mime_type?: string | null;
2324
+ source?: string;
2325
+ trade_item_key?: string;
2326
+ updated_at?: string;
2327
+ uploaded_by?: string | null;
2328
+ width_mm?: number | null;
2329
+ };
2330
+ Relationships: [];
2331
+ };
2219
2332
  customer_selected_assortment: {
2220
2333
  Row: {
2221
2334
  article_number: string | null;
@@ -2264,6 +2377,30 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2264
2377
  referencedColumns: ["id"];
2265
2378
  }];
2266
2379
  };
2380
+ customer_sticker_settings: {
2381
+ Row: {
2382
+ created_at: string;
2383
+ customer_key: string;
2384
+ height_mm: number;
2385
+ updated_at: string;
2386
+ width_mm: number;
2387
+ };
2388
+ Insert: {
2389
+ created_at?: string;
2390
+ customer_key: string;
2391
+ height_mm?: number;
2392
+ updated_at?: string;
2393
+ width_mm?: number;
2394
+ };
2395
+ Update: {
2396
+ created_at?: string;
2397
+ customer_key?: string;
2398
+ height_mm?: number;
2399
+ updated_at?: string;
2400
+ width_mm?: number;
2401
+ };
2402
+ Relationships: [];
2403
+ };
2267
2404
  customer_trade_settings: {
2268
2405
  Row: {
2269
2406
  category: string;
@@ -3589,6 +3726,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3589
3726
  };
3590
3727
  email_auth_outbox: {
3591
3728
  Row: {
3729
+ attachments: import("./types").Json;
3592
3730
  attempts: number;
3593
3731
  bcc_addresses: string[];
3594
3732
  cc_addresses: string[];
@@ -3611,6 +3749,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3611
3749
  updated_at: string;
3612
3750
  };
3613
3751
  Insert: {
3752
+ attachments?: import("./types").Json;
3614
3753
  attempts?: number;
3615
3754
  bcc_addresses?: string[];
3616
3755
  cc_addresses?: string[];
@@ -3633,6 +3772,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3633
3772
  updated_at?: string;
3634
3773
  };
3635
3774
  Update: {
3775
+ attachments?: import("./types").Json;
3636
3776
  attempts?: number;
3637
3777
  bcc_addresses?: string[];
3638
3778
  cc_addresses?: string[];
@@ -5594,6 +5734,102 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5594
5734
  referencedColumns: ["id"];
5595
5735
  }];
5596
5736
  };
5737
+ floriday_api_log: {
5738
+ Row: {
5739
+ action: string | null;
5740
+ caller: string | null;
5741
+ connection_id: string | null;
5742
+ created_at: string;
5743
+ cursor_from: number | null;
5744
+ direction: string;
5745
+ duration_ms: number | null;
5746
+ environment: string | null;
5747
+ error: string | null;
5748
+ floriday_id: string | null;
5749
+ floriday_reference: string | null;
5750
+ http_status: number;
5751
+ id: string;
5752
+ item_count: number | null;
5753
+ kind: string | null;
5754
+ local_id: string | null;
5755
+ local_reference: string | null;
5756
+ method: string;
5757
+ module: string | null;
5758
+ ok: boolean;
5759
+ path: string;
5760
+ request: import("./types").Json | null;
5761
+ resource_type: string | null;
5762
+ response: import("./types").Json | null;
5763
+ write_log_id: string | null;
5764
+ };
5765
+ Insert: {
5766
+ action?: string | null;
5767
+ caller?: string | null;
5768
+ connection_id?: string | null;
5769
+ created_at?: string;
5770
+ cursor_from?: number | null;
5771
+ direction: string;
5772
+ duration_ms?: number | null;
5773
+ environment?: string | null;
5774
+ error?: string | null;
5775
+ floriday_id?: string | null;
5776
+ floriday_reference?: string | null;
5777
+ http_status?: number;
5778
+ id?: string;
5779
+ item_count?: number | null;
5780
+ kind?: string | null;
5781
+ local_id?: string | null;
5782
+ local_reference?: string | null;
5783
+ method: string;
5784
+ module?: string | null;
5785
+ ok?: boolean;
5786
+ path: string;
5787
+ request?: import("./types").Json | null;
5788
+ resource_type?: string | null;
5789
+ response?: import("./types").Json | null;
5790
+ write_log_id?: string | null;
5791
+ };
5792
+ Update: {
5793
+ action?: string | null;
5794
+ caller?: string | null;
5795
+ connection_id?: string | null;
5796
+ created_at?: string;
5797
+ cursor_from?: number | null;
5798
+ direction?: string;
5799
+ duration_ms?: number | null;
5800
+ environment?: string | null;
5801
+ error?: string | null;
5802
+ floriday_id?: string | null;
5803
+ floriday_reference?: string | null;
5804
+ http_status?: number;
5805
+ id?: string;
5806
+ item_count?: number | null;
5807
+ kind?: string | null;
5808
+ local_id?: string | null;
5809
+ local_reference?: string | null;
5810
+ method?: string;
5811
+ module?: string | null;
5812
+ ok?: boolean;
5813
+ path?: string;
5814
+ request?: import("./types").Json | null;
5815
+ resource_type?: string | null;
5816
+ response?: import("./types").Json | null;
5817
+ write_log_id?: string | null;
5818
+ };
5819
+ Relationships: [{
5820
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
5821
+ columns: ["connection_id"];
5822
+ isOneToOne: false;
5823
+ referencedRelation: "floriday_connections";
5824
+ referencedColumns: ["id"];
5825
+ }, {
5826
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
5827
+ columns: ["write_log_id"];
5828
+ isOneToOne: false;
5829
+ referencedRelation: "floriday_write_log";
5830
+ referencedColumns: ["id"];
5831
+ }];
5832
+ };
5597
5833
  floriday_auction_letters_cache: {
5598
5834
  Row: {
5599
5835
  auction_letter_code: string;
@@ -5801,6 +6037,84 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5801
6037
  referencedColumns: ["id"];
5802
6038
  }];
5803
6039
  };
6040
+ floriday_catalog_prices_cache: {
6041
+ Row: {
6042
+ connection_id: string;
6043
+ created_at: string;
6044
+ currency: string;
6045
+ id: string;
6046
+ is_deleted: boolean;
6047
+ price: number | null;
6048
+ price_group_id: string | null;
6049
+ price_group_name: string | null;
6050
+ price_type: string;
6051
+ raw: import("./types").Json | null;
6052
+ sales_unit: string | null;
6053
+ sequence_number: number;
6054
+ supplier_article_code: string | null;
6055
+ supply_line_id: string;
6056
+ synced_at: string;
6057
+ trade_item_id: string | null;
6058
+ updated_at: string;
6059
+ valid_from: string | null;
6060
+ valid_to: string | null;
6061
+ week: number | null;
6062
+ year: number | null;
6063
+ };
6064
+ Insert: {
6065
+ connection_id: string;
6066
+ created_at?: string;
6067
+ currency?: string;
6068
+ id?: string;
6069
+ is_deleted?: boolean;
6070
+ price?: number | null;
6071
+ price_group_id?: string | null;
6072
+ price_group_name?: string | null;
6073
+ price_type?: string;
6074
+ raw?: import("./types").Json | null;
6075
+ sales_unit?: string | null;
6076
+ sequence_number?: number;
6077
+ supplier_article_code?: string | null;
6078
+ supply_line_id: string;
6079
+ synced_at?: string;
6080
+ trade_item_id?: string | null;
6081
+ updated_at?: string;
6082
+ valid_from?: string | null;
6083
+ valid_to?: string | null;
6084
+ week?: number | null;
6085
+ year?: number | null;
6086
+ };
6087
+ Update: {
6088
+ connection_id?: string;
6089
+ created_at?: string;
6090
+ currency?: string;
6091
+ id?: string;
6092
+ is_deleted?: boolean;
6093
+ price?: number | null;
6094
+ price_group_id?: string | null;
6095
+ price_group_name?: string | null;
6096
+ price_type?: string;
6097
+ raw?: import("./types").Json | null;
6098
+ sales_unit?: string | null;
6099
+ sequence_number?: number;
6100
+ supplier_article_code?: string | null;
6101
+ supply_line_id?: string;
6102
+ synced_at?: string;
6103
+ trade_item_id?: string | null;
6104
+ updated_at?: string;
6105
+ valid_from?: string | null;
6106
+ valid_to?: string | null;
6107
+ week?: number | null;
6108
+ year?: number | null;
6109
+ };
6110
+ Relationships: [{
6111
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
6112
+ columns: ["connection_id"];
6113
+ isOneToOne: false;
6114
+ referencedRelation: "floriday_connections";
6115
+ referencedColumns: ["id"];
6116
+ }];
6117
+ };
5804
6118
  floriday_clock_presales_cache: {
5805
6119
  Row: {
5806
6120
  buyer_organization_id: string | null;
@@ -6716,6 +7030,69 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6716
7030
  referencedColumns: ["id"];
6717
7031
  }];
6718
7032
  };
7033
+ floriday_link_templates: {
7034
+ Row: {
7035
+ created_at: string;
7036
+ floriday_url_template: string | null;
7037
+ is_active: boolean;
7038
+ label: string;
7039
+ local_url_template: string | null;
7040
+ resource_type: string;
7041
+ updated_at: string;
7042
+ };
7043
+ Insert: {
7044
+ created_at?: string;
7045
+ floriday_url_template?: string | null;
7046
+ is_active?: boolean;
7047
+ label: string;
7048
+ local_url_template?: string | null;
7049
+ resource_type: string;
7050
+ updated_at?: string;
7051
+ };
7052
+ Update: {
7053
+ created_at?: string;
7054
+ floriday_url_template?: string | null;
7055
+ is_active?: boolean;
7056
+ label?: string;
7057
+ local_url_template?: string | null;
7058
+ resource_type?: string;
7059
+ updated_at?: string;
7060
+ };
7061
+ Relationships: [];
7062
+ };
7063
+ floriday_log_retention: {
7064
+ Row: {
7065
+ created_at: string;
7066
+ direction: string | null;
7067
+ id: string;
7068
+ keep_failed_days: number | null;
7069
+ keep_ok_days: number | null;
7070
+ note: string | null;
7071
+ resource_type: string | null;
7072
+ updated_at: string;
7073
+ };
7074
+ Insert: {
7075
+ created_at?: string;
7076
+ direction?: string | null;
7077
+ id?: string;
7078
+ keep_failed_days?: number | null;
7079
+ keep_ok_days?: number | null;
7080
+ note?: string | null;
7081
+ resource_type?: string | null;
7082
+ updated_at?: string;
7083
+ };
7084
+ Update: {
7085
+ created_at?: string;
7086
+ direction?: string | null;
7087
+ id?: string;
7088
+ keep_failed_days?: number | null;
7089
+ keep_ok_days?: number | null;
7090
+ note?: string | null;
7091
+ resource_type?: string | null;
7092
+ updated_at?: string;
7093
+ };
7094
+ Relationships: [];
7095
+ };
6719
7096
  floriday_logistic_labels_cache: {
6720
7097
  Row: {
6721
7098
  byte_size: number | null;
@@ -8432,8 +8809,48 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8432
8809
  };
8433
8810
  Relationships: [];
8434
8811
  };
8812
+ itk_handover_afspraken: {
8813
+ Row: {
8814
+ afgesproken_door: string | null;
8815
+ afgesproken_op: string;
8816
+ besluit: string;
8817
+ created_at: string;
8818
+ item: string;
8819
+ modules: string[];
8820
+ sleutel: string;
8821
+ soort: string;
8822
+ updated_at: string;
8823
+ versie_vingerafdruk: string;
8824
+ };
8825
+ Insert: {
8826
+ afgesproken_door?: string | null;
8827
+ afgesproken_op?: string;
8828
+ besluit?: string;
8829
+ created_at?: string;
8830
+ item?: string;
8831
+ modules?: string[];
8832
+ sleutel: string;
8833
+ soort?: string;
8834
+ updated_at?: string;
8835
+ versie_vingerafdruk?: string;
8836
+ };
8837
+ Update: {
8838
+ afgesproken_door?: string | null;
8839
+ afgesproken_op?: string;
8840
+ besluit?: string;
8841
+ created_at?: string;
8842
+ item?: string;
8843
+ modules?: string[];
8844
+ sleutel?: string;
8845
+ soort?: string;
8846
+ updated_at?: string;
8847
+ versie_vingerafdruk?: string;
8848
+ };
8849
+ Relationships: [];
8850
+ };
8435
8851
  itk_handover_github_scan: {
8436
8852
  Row: {
8853
+ genegeerd_op: string | null;
8437
8854
  gescand_op: string;
8438
8855
  gevonden: boolean;
8439
8856
  melding: string | null;
@@ -8441,6 +8858,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8441
8858
  repo: string;
8442
8859
  };
8443
8860
  Insert: {
8861
+ genegeerd_op?: string | null;
8444
8862
  gescand_op?: string;
8445
8863
  gevonden?: boolean;
8446
8864
  melding?: string | null;
@@ -8448,6 +8866,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8448
8866
  repo: string;
8449
8867
  };
8450
8868
  Update: {
8869
+ genegeerd_op?: string | null;
8451
8870
  gescand_op?: string;
8452
8871
  gevonden?: boolean;
8453
8872
  melding?: string | null;
@@ -8456,13 +8875,45 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8456
8875
  };
8457
8876
  Relationships: [];
8458
8877
  };
8878
+ itk_handover_github_voortgang: {
8879
+ Row: {
8880
+ bijgewerkt_op: string;
8881
+ huidige_repo: string | null;
8882
+ id: boolean;
8883
+ klaar: number;
8884
+ loopt: boolean;
8885
+ totaal: number;
8886
+ };
8887
+ Insert: {
8888
+ bijgewerkt_op?: string;
8889
+ huidige_repo?: string | null;
8890
+ id?: boolean;
8891
+ klaar?: number;
8892
+ loopt?: boolean;
8893
+ totaal?: number;
8894
+ };
8895
+ Update: {
8896
+ bijgewerkt_op?: string;
8897
+ huidige_repo?: string | null;
8898
+ id?: boolean;
8899
+ klaar?: number;
8900
+ loopt?: boolean;
8901
+ totaal?: number;
8902
+ };
8903
+ Relationships: [];
8904
+ };
8459
8905
  itk_handover_module_meta: {
8460
8906
  Row: {
8461
8907
  check_aangevraagd_op: string | null;
8462
8908
  check_nodig: boolean;
8463
8909
  check_reden: string | null;
8464
8910
  created_at: string;
8911
+ md_bron: boolean;
8912
+ md_bron_op: string | null;
8913
+ md_bron_pad: string | null;
8465
8914
  module_id: string;
8915
+ nieuw_gezien: boolean;
8916
+ nieuw_gezien_op: string | null;
8466
8917
  project_url: string | null;
8467
8918
  publicatie_url: string | null;
8468
8919
  updated_at: string;
@@ -8472,7 +8923,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8472
8923
  check_nodig?: boolean;
8473
8924
  check_reden?: string | null;
8474
8925
  created_at?: string;
8926
+ md_bron?: boolean;
8927
+ md_bron_op?: string | null;
8928
+ md_bron_pad?: string | null;
8475
8929
  module_id: string;
8930
+ nieuw_gezien?: boolean;
8931
+ nieuw_gezien_op?: string | null;
8476
8932
  project_url?: string | null;
8477
8933
  publicatie_url?: string | null;
8478
8934
  updated_at?: string;
@@ -8482,13 +8938,45 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8482
8938
  check_nodig?: boolean;
8483
8939
  check_reden?: string | null;
8484
8940
  created_at?: string;
8941
+ md_bron?: boolean;
8942
+ md_bron_op?: string | null;
8943
+ md_bron_pad?: string | null;
8485
8944
  module_id?: string;
8945
+ nieuw_gezien?: boolean;
8946
+ nieuw_gezien_op?: string | null;
8486
8947
  project_url?: string | null;
8487
8948
  publicatie_url?: string | null;
8488
8949
  updated_at?: string;
8489
8950
  };
8490
8951
  Relationships: [];
8491
8952
  };
8953
+ itk_handover_module_naam: {
8954
+ Row: {
8955
+ bron_repo: string;
8956
+ created_at: string;
8957
+ module_id: string;
8958
+ standaardnaam: string | null;
8959
+ updated_at: string;
8960
+ weergavenaam: string;
8961
+ };
8962
+ Insert: {
8963
+ bron_repo?: string;
8964
+ created_at?: string;
8965
+ module_id: string;
8966
+ standaardnaam?: string | null;
8967
+ updated_at?: string;
8968
+ weergavenaam: string;
8969
+ };
8970
+ Update: {
8971
+ bron_repo?: string;
8972
+ created_at?: string;
8973
+ module_id?: string;
8974
+ standaardnaam?: string | null;
8975
+ updated_at?: string;
8976
+ weergavenaam?: string;
8977
+ };
8978
+ Relationships: [];
8979
+ };
8492
8980
  itk_handover_project_modules: {
8493
8981
  Row: {
8494
8982
  created_at: string;
@@ -8602,6 +9090,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8602
9090
  };
8603
9091
  itk_module_handovers: {
8604
9092
  Row: {
9093
+ bekende_risicos: string[];
8605
9094
  bevindingen: string | null;
8606
9095
  bezit_tabellen: string[];
8607
9096
  bron_commit: string | null;
@@ -8620,6 +9109,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8620
9109
  inhoud_md: string;
8621
9110
  is_actueel: boolean;
8622
9111
  is_gearchiveerd: boolean;
9112
+ laatst_bevestigd_op: string | null;
8623
9113
  laatst_gecontroleerd_op: string | null;
8624
9114
  module_id: string;
8625
9115
  module_titel: string;
@@ -8629,6 +9119,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8629
9119
  versie: number;
8630
9120
  };
8631
9121
  Insert: {
9122
+ bekende_risicos?: string[];
8632
9123
  bevindingen?: string | null;
8633
9124
  bezit_tabellen?: string[];
8634
9125
  bron_commit?: string | null;
@@ -8647,6 +9138,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8647
9138
  inhoud_md: string;
8648
9139
  is_actueel?: boolean;
8649
9140
  is_gearchiveerd?: boolean;
9141
+ laatst_bevestigd_op?: string | null;
8650
9142
  laatst_gecontroleerd_op?: string | null;
8651
9143
  module_id: string;
8652
9144
  module_titel: string;
@@ -8656,6 +9148,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8656
9148
  versie?: number;
8657
9149
  };
8658
9150
  Update: {
9151
+ bekende_risicos?: string[];
8659
9152
  bevindingen?: string | null;
8660
9153
  bezit_tabellen?: string[];
8661
9154
  bron_commit?: string | null;
@@ -8674,6 +9167,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8674
9167
  inhoud_md?: string;
8675
9168
  is_actueel?: boolean;
8676
9169
  is_gearchiveerd?: boolean;
9170
+ laatst_bevestigd_op?: string | null;
8677
9171
  laatst_gecontroleerd_op?: string | null;
8678
9172
  module_id?: string;
8679
9173
  module_titel?: string;
@@ -8882,6 +9376,54 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8882
9376
  };
8883
9377
  Relationships: [];
8884
9378
  };
9379
+ itk_offerte_werkbon_queue: {
9380
+ Row: {
9381
+ bron_werkbon_id: string | null;
9382
+ created_at: string;
9383
+ foutmelding: string | null;
9384
+ id: string;
9385
+ offerte_id: string;
9386
+ payload: import("./types").Json;
9387
+ status: string;
9388
+ updated_at: string;
9389
+ verwerkt_op: string | null;
9390
+ werkbon_id: string | null;
9391
+ werkbon_nummer: string | null;
9392
+ };
9393
+ Insert: {
9394
+ bron_werkbon_id?: string | null;
9395
+ created_at?: string;
9396
+ foutmelding?: string | null;
9397
+ id?: string;
9398
+ offerte_id: string;
9399
+ payload?: import("./types").Json;
9400
+ status?: string;
9401
+ updated_at?: string;
9402
+ verwerkt_op?: string | null;
9403
+ werkbon_id?: string | null;
9404
+ werkbon_nummer?: string | null;
9405
+ };
9406
+ Update: {
9407
+ bron_werkbon_id?: string | null;
9408
+ created_at?: string;
9409
+ foutmelding?: string | null;
9410
+ id?: string;
9411
+ offerte_id?: string;
9412
+ payload?: import("./types").Json;
9413
+ status?: string;
9414
+ updated_at?: string;
9415
+ verwerkt_op?: string | null;
9416
+ werkbon_id?: string | null;
9417
+ werkbon_nummer?: string | null;
9418
+ };
9419
+ Relationships: [{
9420
+ foreignKeyName: "itk_offerte_werkbon_queue_offerte_id_fkey";
9421
+ columns: ["offerte_id"];
9422
+ isOneToOne: false;
9423
+ referencedRelation: "itk_offertes";
9424
+ referencedColumns: ["id"];
9425
+ }];
9426
+ };
8885
9427
  itk_offertes: {
8886
9428
  Row: {
8887
9429
  ai_generated: boolean;
@@ -9074,6 +9616,30 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9074
9616
  referencedColumns: ["id"];
9075
9617
  }];
9076
9618
  };
9619
+ job_locks: {
9620
+ Row: {
9621
+ created_at: string;
9622
+ lock_key: string;
9623
+ locked_until: string;
9624
+ owner: string | null;
9625
+ updated_at: string;
9626
+ };
9627
+ Insert: {
9628
+ created_at?: string;
9629
+ lock_key: string;
9630
+ locked_until: string;
9631
+ owner?: string | null;
9632
+ updated_at?: string;
9633
+ };
9634
+ Update: {
9635
+ created_at?: string;
9636
+ lock_key?: string;
9637
+ locked_until?: string;
9638
+ owner?: string | null;
9639
+ updated_at?: string;
9640
+ };
9641
+ Relationships: [];
9642
+ };
9077
9643
  layout_logos: {
9078
9644
  Row: {
9079
9645
  bestand_url: string;
@@ -10043,6 +10609,36 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10043
10609
  };
10044
10610
  Relationships: [];
10045
10611
  };
10612
+ logistics_floriday_push_refusals: {
10613
+ Row: {
10614
+ action: string | null;
10615
+ created_at: string;
10616
+ id: string;
10617
+ order_ref: string;
10618
+ reason: string;
10619
+ source_module: string | null;
10620
+ source_shell: string | null;
10621
+ };
10622
+ Insert: {
10623
+ action?: string | null;
10624
+ created_at?: string;
10625
+ id?: string;
10626
+ order_ref: string;
10627
+ reason: string;
10628
+ source_module?: string | null;
10629
+ source_shell?: string | null;
10630
+ };
10631
+ Update: {
10632
+ action?: string | null;
10633
+ created_at?: string;
10634
+ id?: string;
10635
+ order_ref?: string;
10636
+ reason?: string;
10637
+ source_module?: string | null;
10638
+ source_shell?: string | null;
10639
+ };
10640
+ Relationships: [];
10641
+ };
10046
10642
  logistics_floriday_pushes: {
10047
10643
  Row: {
10048
10644
  attempts: number;
@@ -10118,6 +10714,42 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10118
10714
  };
10119
10715
  Relationships: [];
10120
10716
  };
10717
+ logistics_floriday_status_sends: {
10718
+ Row: {
10719
+ action: string;
10720
+ created_at: string;
10721
+ detail: string | null;
10722
+ http_status: number | null;
10723
+ id: string;
10724
+ ok: boolean;
10725
+ order_ref: string;
10726
+ source_module: string | null;
10727
+ source_shell: string | null;
10728
+ };
10729
+ Insert: {
10730
+ action: string;
10731
+ created_at?: string;
10732
+ detail?: string | null;
10733
+ http_status?: number | null;
10734
+ id?: string;
10735
+ ok?: boolean;
10736
+ order_ref: string;
10737
+ source_module?: string | null;
10738
+ source_shell?: string | null;
10739
+ };
10740
+ Update: {
10741
+ action?: string;
10742
+ created_at?: string;
10743
+ detail?: string | null;
10744
+ http_status?: number | null;
10745
+ id?: string;
10746
+ ok?: boolean;
10747
+ order_ref?: string;
10748
+ source_module?: string | null;
10749
+ source_shell?: string | null;
10750
+ };
10751
+ Relationships: [];
10752
+ };
10121
10753
  logistics_formulas: {
10122
10754
  Row: {
10123
10755
  created_at: string;
@@ -10190,6 +10822,144 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10190
10822
  };
10191
10823
  Relationships: [];
10192
10824
  };
10825
+ logistics_opening_exceptions: {
10826
+ Row: {
10827
+ closes: string | null;
10828
+ created_at: string;
10829
+ day: string;
10830
+ id: string;
10831
+ is_closed: boolean;
10832
+ note: string | null;
10833
+ opens: string | null;
10834
+ };
10835
+ Insert: {
10836
+ closes?: string | null;
10837
+ created_at?: string;
10838
+ day: string;
10839
+ id?: string;
10840
+ is_closed?: boolean;
10841
+ note?: string | null;
10842
+ opens?: string | null;
10843
+ };
10844
+ Update: {
10845
+ closes?: string | null;
10846
+ created_at?: string;
10847
+ day?: string;
10848
+ id?: string;
10849
+ is_closed?: boolean;
10850
+ note?: string | null;
10851
+ opens?: string | null;
10852
+ };
10853
+ Relationships: [];
10854
+ };
10855
+ logistics_opening_hours: {
10856
+ Row: {
10857
+ closes: string;
10858
+ created_at: string;
10859
+ id: string;
10860
+ is_active: boolean;
10861
+ note: string | null;
10862
+ opens: string;
10863
+ weekday: number;
10864
+ };
10865
+ Insert: {
10866
+ closes: string;
10867
+ created_at?: string;
10868
+ id?: string;
10869
+ is_active?: boolean;
10870
+ note?: string | null;
10871
+ opens: string;
10872
+ weekday: number;
10873
+ };
10874
+ Update: {
10875
+ closes?: string;
10876
+ created_at?: string;
10877
+ id?: string;
10878
+ is_active?: boolean;
10879
+ note?: string | null;
10880
+ opens?: string;
10881
+ weekday?: number;
10882
+ };
10883
+ Relationships: [];
10884
+ };
10885
+ logistics_order_merges: {
10886
+ Row: {
10887
+ group_key: string;
10888
+ id: string;
10889
+ items_moved: number;
10890
+ kept_order_id: string;
10891
+ kept_order_number: string | null;
10892
+ merged_at: string;
10893
+ merged_order_id: string;
10894
+ merged_order_number: string | null;
10895
+ sales_order_id: string | null;
10896
+ };
10897
+ Insert: {
10898
+ group_key: string;
10899
+ id?: string;
10900
+ items_moved?: number;
10901
+ kept_order_id: string;
10902
+ kept_order_number?: string | null;
10903
+ merged_at?: string;
10904
+ merged_order_id: string;
10905
+ merged_order_number?: string | null;
10906
+ sales_order_id?: string | null;
10907
+ };
10908
+ Update: {
10909
+ group_key?: string;
10910
+ id?: string;
10911
+ items_moved?: number;
10912
+ kept_order_id?: string;
10913
+ kept_order_number?: string | null;
10914
+ merged_at?: string;
10915
+ merged_order_id?: string;
10916
+ merged_order_number?: string | null;
10917
+ sales_order_id?: string | null;
10918
+ };
10919
+ Relationships: [];
10920
+ };
10921
+ logistics_pick_data_requests: {
10922
+ Row: {
10923
+ actions: import("./types").Json;
10924
+ created_at: string;
10925
+ event_id: string | null;
10926
+ finished_at: string | null;
10927
+ id: string;
10928
+ missing: import("./types").Json;
10929
+ order_ref: string;
10930
+ reason: string | null;
10931
+ result: import("./types").Json | null;
10932
+ status: string;
10933
+ unit_ref: string | null;
10934
+ };
10935
+ Insert: {
10936
+ actions?: import("./types").Json;
10937
+ created_at?: string;
10938
+ event_id?: string | null;
10939
+ finished_at?: string | null;
10940
+ id?: string;
10941
+ missing?: import("./types").Json;
10942
+ order_ref: string;
10943
+ reason?: string | null;
10944
+ result?: import("./types").Json | null;
10945
+ status?: string;
10946
+ unit_ref?: string | null;
10947
+ };
10948
+ Update: {
10949
+ actions?: import("./types").Json;
10950
+ created_at?: string;
10951
+ event_id?: string | null;
10952
+ finished_at?: string | null;
10953
+ id?: string;
10954
+ missing?: import("./types").Json;
10955
+ order_ref?: string;
10956
+ reason?: string | null;
10957
+ result?: import("./types").Json | null;
10958
+ status?: string;
10959
+ unit_ref?: string | null;
10960
+ };
10961
+ Relationships: [];
10962
+ };
10193
10963
  logistics_pickup_moments: {
10194
10964
  Row: {
10195
10965
  carrier_ref: string | null;
@@ -10226,21 +10996,46 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10226
10996
  };
10227
10997
  Relationships: [];
10228
10998
  };
10229
- logistics_plan_queue: {
10999
+ logistics_plan_locks: {
10230
11000
  Row: {
10231
- attempts: number;
10232
- claimed_at: string | null;
10233
- enqueued_at: string;
10234
- error: string | null;
10235
- id: string;
10236
- next_attempt_at: string;
10237
- order_id: string;
10238
- reason: string;
10239
- status: string;
11001
+ created_at: string;
11002
+ lock_key: string;
11003
+ locked_until: string;
11004
+ owner: string | null;
10240
11005
  updated_at: string;
10241
11006
  };
10242
11007
  Insert: {
10243
- attempts?: number;
11008
+ created_at?: string;
11009
+ lock_key: string;
11010
+ locked_until: string;
11011
+ owner?: string | null;
11012
+ updated_at?: string;
11013
+ };
11014
+ Update: {
11015
+ created_at?: string;
11016
+ lock_key?: string;
11017
+ locked_until?: string;
11018
+ owner?: string | null;
11019
+ updated_at?: string;
11020
+ };
11021
+ Relationships: [];
11022
+ };
11023
+ logistics_plan_queue: {
11024
+ Row: {
11025
+ attempts: number;
11026
+ claimed_at: string | null;
11027
+ enqueued_at: string;
11028
+ error: string | null;
11029
+ id: string;
11030
+ next_attempt_at: string;
11031
+ order_id: string;
11032
+ reason: string;
11033
+ reason_code: string | null;
11034
+ status: string;
11035
+ updated_at: string;
11036
+ };
11037
+ Insert: {
11038
+ attempts?: number;
10244
11039
  claimed_at?: string | null;
10245
11040
  enqueued_at?: string;
10246
11041
  error?: string | null;
@@ -10248,6 +11043,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10248
11043
  next_attempt_at?: string;
10249
11044
  order_id: string;
10250
11045
  reason?: string;
11046
+ reason_code?: string | null;
10251
11047
  status?: string;
10252
11048
  updated_at?: string;
10253
11049
  };
@@ -10260,6 +11056,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10260
11056
  next_attempt_at?: string;
10261
11057
  order_id?: string;
10262
11058
  reason?: string;
11059
+ reason_code?: string | null;
10263
11060
  status?: string;
10264
11061
  updated_at?: string;
10265
11062
  };
@@ -10646,6 +11443,69 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10646
11443
  };
10647
11444
  Relationships: [];
10648
11445
  };
11446
+ logistics_slip_shipping_note: {
11447
+ Row: {
11448
+ attempts: number;
11449
+ batch_key: string | null;
11450
+ cart_id: string | null;
11451
+ created_at: string;
11452
+ error: string | null;
11453
+ error_code: string | null;
11454
+ fulfillment_order_id: string | null;
11455
+ id: string;
11456
+ locked_until: string | null;
11457
+ next_attempt_at: string | null;
11458
+ order_id: string | null;
11459
+ order_number: string | null;
11460
+ print_job_id: string | null;
11461
+ printer_id: string | null;
11462
+ retry_class: string | null;
11463
+ slip_job_id: string;
11464
+ status: string;
11465
+ updated_at: string;
11466
+ };
11467
+ Insert: {
11468
+ attempts?: number;
11469
+ batch_key?: string | null;
11470
+ cart_id?: string | null;
11471
+ created_at?: string;
11472
+ error?: string | null;
11473
+ error_code?: string | null;
11474
+ fulfillment_order_id?: string | null;
11475
+ id?: string;
11476
+ locked_until?: string | null;
11477
+ next_attempt_at?: string | null;
11478
+ order_id?: string | null;
11479
+ order_number?: string | null;
11480
+ print_job_id?: string | null;
11481
+ printer_id?: string | null;
11482
+ retry_class?: string | null;
11483
+ slip_job_id: string;
11484
+ status?: string;
11485
+ updated_at?: string;
11486
+ };
11487
+ Update: {
11488
+ attempts?: number;
11489
+ batch_key?: string | null;
11490
+ cart_id?: string | null;
11491
+ created_at?: string;
11492
+ error?: string | null;
11493
+ error_code?: string | null;
11494
+ fulfillment_order_id?: string | null;
11495
+ id?: string;
11496
+ locked_until?: string | null;
11497
+ next_attempt_at?: string | null;
11498
+ order_id?: string | null;
11499
+ order_number?: string | null;
11500
+ print_job_id?: string | null;
11501
+ printer_id?: string | null;
11502
+ retry_class?: string | null;
11503
+ slip_job_id?: string;
11504
+ status?: string;
11505
+ updated_at?: string;
11506
+ };
11507
+ Relationships: [];
11508
+ };
10649
11509
  logistics_staff_planning: {
10650
11510
  Row: {
10651
11511
  created_at: string;
@@ -10964,6 +11824,279 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10964
11824
  referencedColumns: ["id"];
10965
11825
  }];
10966
11826
  };
11827
+ logistics_tick_heartbeat: {
11828
+ Row: {
11829
+ id: boolean;
11830
+ last_tick_at: string;
11831
+ };
11832
+ Insert: {
11833
+ id?: boolean;
11834
+ last_tick_at?: string;
11835
+ };
11836
+ Update: {
11837
+ id?: boolean;
11838
+ last_tick_at?: string;
11839
+ };
11840
+ Relationships: [];
11841
+ };
11842
+ logistics_time_settings: {
11843
+ Row: {
11844
+ id: boolean;
11845
+ timezone: string;
11846
+ updated_at: string;
11847
+ };
11848
+ Insert: {
11849
+ id?: boolean;
11850
+ timezone: string;
11851
+ updated_at?: string;
11852
+ };
11853
+ Update: {
11854
+ id?: boolean;
11855
+ timezone?: string;
11856
+ updated_at?: string;
11857
+ };
11858
+ Relationships: [];
11859
+ };
11860
+ logistics_trace_events: {
11861
+ Row: {
11862
+ actor: string | null;
11863
+ attempts: number;
11864
+ calc: import("./types").Json | null;
11865
+ cart_ref: string | null;
11866
+ created_at: string;
11867
+ db_action: string | null;
11868
+ db_new: import("./types").Json | null;
11869
+ db_old: import("./types").Json | null;
11870
+ db_record: string | null;
11871
+ db_table: string | null;
11872
+ decision: string | null;
11873
+ duration_ms: number | null;
11874
+ error: string | null;
11875
+ error_class: string | null;
11876
+ external_action: string | null;
11877
+ external_ref: string | null;
11878
+ external_response: import("./types").Json | null;
11879
+ external_status: string | null;
11880
+ external_system: string | null;
11881
+ id: string;
11882
+ input: import("./types").Json | null;
11883
+ next_attempt_at: string | null;
11884
+ next_step: string | null;
11885
+ node_id: string | null;
11886
+ order_ref: string | null;
11887
+ order_source: string | null;
11888
+ output: import("./types").Json | null;
11889
+ phase: string;
11890
+ reads: import("./types").Json | null;
11891
+ reason: string | null;
11892
+ rule: string | null;
11893
+ slip_ref: string | null;
11894
+ status: string;
11895
+ step: string;
11896
+ trace_id: string;
11897
+ values_used: import("./types").Json | null;
11898
+ };
11899
+ Insert: {
11900
+ actor?: string | null;
11901
+ attempts?: number;
11902
+ calc?: import("./types").Json | null;
11903
+ cart_ref?: string | null;
11904
+ created_at?: string;
11905
+ db_action?: string | null;
11906
+ db_new?: import("./types").Json | null;
11907
+ db_old?: import("./types").Json | null;
11908
+ db_record?: string | null;
11909
+ db_table?: string | null;
11910
+ decision?: string | null;
11911
+ duration_ms?: number | null;
11912
+ error?: string | null;
11913
+ error_class?: string | null;
11914
+ external_action?: string | null;
11915
+ external_ref?: string | null;
11916
+ external_response?: import("./types").Json | null;
11917
+ external_status?: string | null;
11918
+ external_system?: string | null;
11919
+ id?: string;
11920
+ input?: import("./types").Json | null;
11921
+ next_attempt_at?: string | null;
11922
+ next_step?: string | null;
11923
+ node_id?: string | null;
11924
+ order_ref?: string | null;
11925
+ order_source?: string | null;
11926
+ output?: import("./types").Json | null;
11927
+ phase: string;
11928
+ reads?: import("./types").Json | null;
11929
+ reason?: string | null;
11930
+ rule?: string | null;
11931
+ slip_ref?: string | null;
11932
+ status: string;
11933
+ step: string;
11934
+ trace_id?: string;
11935
+ values_used?: import("./types").Json | null;
11936
+ };
11937
+ Update: {
11938
+ actor?: string | null;
11939
+ attempts?: number;
11940
+ calc?: import("./types").Json | null;
11941
+ cart_ref?: string | null;
11942
+ created_at?: string;
11943
+ db_action?: string | null;
11944
+ db_new?: import("./types").Json | null;
11945
+ db_old?: import("./types").Json | null;
11946
+ db_record?: string | null;
11947
+ db_table?: string | null;
11948
+ decision?: string | null;
11949
+ duration_ms?: number | null;
11950
+ error?: string | null;
11951
+ error_class?: string | null;
11952
+ external_action?: string | null;
11953
+ external_ref?: string | null;
11954
+ external_response?: import("./types").Json | null;
11955
+ external_status?: string | null;
11956
+ external_system?: string | null;
11957
+ id?: string;
11958
+ input?: import("./types").Json | null;
11959
+ next_attempt_at?: string | null;
11960
+ next_step?: string | null;
11961
+ node_id?: string | null;
11962
+ order_ref?: string | null;
11963
+ order_source?: string | null;
11964
+ output?: import("./types").Json | null;
11965
+ phase?: string;
11966
+ reads?: import("./types").Json | null;
11967
+ reason?: string | null;
11968
+ rule?: string | null;
11969
+ slip_ref?: string | null;
11970
+ status?: string;
11971
+ step?: string;
11972
+ trace_id?: string;
11973
+ values_used?: import("./types").Json | null;
11974
+ };
11975
+ Relationships: [];
11976
+ };
11977
+ logistics_trace_events_archive: {
11978
+ Row: {
11979
+ actor: string | null;
11980
+ attempts: number;
11981
+ calc: import("./types").Json | null;
11982
+ cart_ref: string | null;
11983
+ created_at: string;
11984
+ db_action: string | null;
11985
+ db_new: import("./types").Json | null;
11986
+ db_old: import("./types").Json | null;
11987
+ db_record: string | null;
11988
+ db_table: string | null;
11989
+ decision: string | null;
11990
+ duration_ms: number | null;
11991
+ error: string | null;
11992
+ error_class: string | null;
11993
+ external_action: string | null;
11994
+ external_ref: string | null;
11995
+ external_response: import("./types").Json | null;
11996
+ external_status: string | null;
11997
+ external_system: string | null;
11998
+ id: string;
11999
+ input: import("./types").Json | null;
12000
+ next_attempt_at: string | null;
12001
+ next_step: string | null;
12002
+ node_id: string | null;
12003
+ order_ref: string | null;
12004
+ order_source: string | null;
12005
+ output: import("./types").Json | null;
12006
+ phase: string;
12007
+ reads: import("./types").Json | null;
12008
+ reason: string | null;
12009
+ rule: string | null;
12010
+ slip_ref: string | null;
12011
+ status: string;
12012
+ step: string;
12013
+ superseded_at: string;
12014
+ superseded_reason: string | null;
12015
+ trace_id: string;
12016
+ values_used: import("./types").Json | null;
12017
+ };
12018
+ Insert: {
12019
+ actor?: string | null;
12020
+ attempts?: number;
12021
+ calc?: import("./types").Json | null;
12022
+ cart_ref?: string | null;
12023
+ created_at?: string;
12024
+ db_action?: string | null;
12025
+ db_new?: import("./types").Json | null;
12026
+ db_old?: import("./types").Json | null;
12027
+ db_record?: string | null;
12028
+ db_table?: string | null;
12029
+ decision?: string | null;
12030
+ duration_ms?: number | null;
12031
+ error?: string | null;
12032
+ error_class?: string | null;
12033
+ external_action?: string | null;
12034
+ external_ref?: string | null;
12035
+ external_response?: import("./types").Json | null;
12036
+ external_status?: string | null;
12037
+ external_system?: string | null;
12038
+ id?: string;
12039
+ input?: import("./types").Json | null;
12040
+ next_attempt_at?: string | null;
12041
+ next_step?: string | null;
12042
+ node_id?: string | null;
12043
+ order_ref?: string | null;
12044
+ order_source?: string | null;
12045
+ output?: import("./types").Json | null;
12046
+ phase: string;
12047
+ reads?: import("./types").Json | null;
12048
+ reason?: string | null;
12049
+ rule?: string | null;
12050
+ slip_ref?: string | null;
12051
+ status: string;
12052
+ step: string;
12053
+ superseded_at?: string;
12054
+ superseded_reason?: string | null;
12055
+ trace_id?: string;
12056
+ values_used?: import("./types").Json | null;
12057
+ };
12058
+ Update: {
12059
+ actor?: string | null;
12060
+ attempts?: number;
12061
+ calc?: import("./types").Json | null;
12062
+ cart_ref?: string | null;
12063
+ created_at?: string;
12064
+ db_action?: string | null;
12065
+ db_new?: import("./types").Json | null;
12066
+ db_old?: import("./types").Json | null;
12067
+ db_record?: string | null;
12068
+ db_table?: string | null;
12069
+ decision?: string | null;
12070
+ duration_ms?: number | null;
12071
+ error?: string | null;
12072
+ error_class?: string | null;
12073
+ external_action?: string | null;
12074
+ external_ref?: string | null;
12075
+ external_response?: import("./types").Json | null;
12076
+ external_status?: string | null;
12077
+ external_system?: string | null;
12078
+ id?: string;
12079
+ input?: import("./types").Json | null;
12080
+ next_attempt_at?: string | null;
12081
+ next_step?: string | null;
12082
+ node_id?: string | null;
12083
+ order_ref?: string | null;
12084
+ order_source?: string | null;
12085
+ output?: import("./types").Json | null;
12086
+ phase?: string;
12087
+ reads?: import("./types").Json | null;
12088
+ reason?: string | null;
12089
+ rule?: string | null;
12090
+ slip_ref?: string | null;
12091
+ status?: string;
12092
+ step?: string;
12093
+ superseded_at?: string;
12094
+ superseded_reason?: string | null;
12095
+ trace_id?: string;
12096
+ values_used?: import("./types").Json | null;
12097
+ };
12098
+ Relationships: [];
12099
+ };
10967
12100
  logistics_variables: {
10968
12101
  Row: {
10969
12102
  created_at: string;
@@ -11111,6 +12244,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11111
12244
  has_attachments: boolean;
11112
12245
  id: string;
11113
12246
  message_id: string | null;
12247
+ preview: string | null;
11114
12248
  profile_id: string | null;
11115
12249
  raw_size: number | null;
11116
12250
  received_at: string | null;
@@ -11134,6 +12268,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11134
12268
  has_attachments?: boolean;
11135
12269
  id?: string;
11136
12270
  message_id?: string | null;
12271
+ preview?: string | null;
11137
12272
  profile_id?: string | null;
11138
12273
  raw_size?: number | null;
11139
12274
  received_at?: string | null;
@@ -11157,6 +12292,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11157
12292
  has_attachments?: boolean;
11158
12293
  id?: string;
11159
12294
  message_id?: string | null;
12295
+ preview?: string | null;
11160
12296
  profile_id?: string | null;
11161
12297
  raw_size?: number | null;
11162
12298
  received_at?: string | null;
@@ -11188,6 +12324,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11188
12324
  };
11189
12325
  mailbox_order_proposals: {
11190
12326
  Row: {
12327
+ ai_ok: boolean | null;
11191
12328
  ai_validation: import("./types").Json | null;
11192
12329
  confidence: number | null;
11193
12330
  created_at: string;
@@ -11205,6 +12342,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11205
12342
  updated_at: string;
11206
12343
  };
11207
12344
  Insert: {
12345
+ ai_ok?: boolean | null;
11208
12346
  ai_validation?: import("./types").Json | null;
11209
12347
  confidence?: number | null;
11210
12348
  created_at?: string;
@@ -11222,6 +12360,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11222
12360
  updated_at?: string;
11223
12361
  };
11224
12362
  Update: {
12363
+ ai_ok?: boolean | null;
11225
12364
  ai_validation?: import("./types").Json | null;
11226
12365
  confidence?: number | null;
11227
12366
  created_at?: string;
@@ -13354,6 +14493,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
13354
14493
  customer_name: string;
13355
14494
  deleted_at: string | null;
13356
14495
  delivery_date: string | null;
14496
+ floriday_order_group_key: string | null;
13357
14497
  floriday_sales_order_id: string | null;
13358
14498
  id: string;
13359
14499
  invoice_due_at: string | null;
@@ -13381,6 +14521,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
13381
14521
  customer_name?: string;
13382
14522
  deleted_at?: string | null;
13383
14523
  delivery_date?: string | null;
14524
+ floriday_order_group_key?: string | null;
13384
14525
  floriday_sales_order_id?: string | null;
13385
14526
  id?: string;
13386
14527
  invoice_due_at?: string | null;
@@ -13408,6 +14549,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
13408
14549
  customer_name?: string;
13409
14550
  deleted_at?: string | null;
13410
14551
  delivery_date?: string | null;
14552
+ floriday_order_group_key?: string | null;
13411
14553
  floriday_sales_order_id?: string | null;
13412
14554
  id?: string;
13413
14555
  invoice_due_at?: string | null;
@@ -13601,6 +14743,27 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
13601
14743
  };
13602
14744
  Relationships: [];
13603
14745
  };
14746
+ pick_buffer_event_cursor: {
14747
+ Row: {
14748
+ created_at: string;
14749
+ id: boolean;
14750
+ last_event_at: string;
14751
+ updated_at: string;
14752
+ };
14753
+ Insert: {
14754
+ created_at?: string;
14755
+ id?: boolean;
14756
+ last_event_at?: string;
14757
+ updated_at?: string;
14758
+ };
14759
+ Update: {
14760
+ created_at?: string;
14761
+ id?: boolean;
14762
+ last_event_at?: string;
14763
+ updated_at?: string;
14764
+ };
14765
+ Relationships: [];
14766
+ };
13604
14767
  pick_countries: {
13605
14768
  Row: {
13606
14769
  active: boolean;
@@ -14687,70 +15850,187 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
14687
15850
  referencedColumns: ["id"];
14688
15851
  }];
14689
15852
  };
14690
- print_agents: {
15853
+ price_list_rows: {
14691
15854
  Row: {
14692
- actief: boolean;
15855
+ action: string;
14693
15856
  created_at: string;
14694
- gemelde_printers: import("./types").Json;
14695
15857
  id: string;
14696
- laatst_gezien: string | null;
14697
- locatie: string;
14698
- naam: string;
14699
- pairing_code_hash: string | null;
14700
- pairing_expires_at: string | null;
14701
- pairing_used_at: string | null;
14702
- token_hash: string;
14703
- updated_at: string;
14704
- versie: string;
15858
+ message: string | null;
15859
+ parsed: import("./types").Json;
15860
+ price_list_id: string;
15861
+ raw: import("./types").Json;
15862
+ row_number: number;
15863
+ supplier_product_id: string | null;
14705
15864
  };
14706
15865
  Insert: {
14707
- actief?: boolean;
15866
+ action?: string;
14708
15867
  created_at?: string;
14709
- gemelde_printers?: import("./types").Json;
14710
15868
  id?: string;
14711
- laatst_gezien?: string | null;
14712
- locatie?: string;
14713
- naam: string;
14714
- pairing_code_hash?: string | null;
14715
- pairing_expires_at?: string | null;
14716
- pairing_used_at?: string | null;
14717
- token_hash: string;
14718
- updated_at?: string;
14719
- versie?: string;
15869
+ message?: string | null;
15870
+ parsed?: import("./types").Json;
15871
+ price_list_id: string;
15872
+ raw?: import("./types").Json;
15873
+ row_number: number;
15874
+ supplier_product_id?: string | null;
14720
15875
  };
14721
15876
  Update: {
14722
- actief?: boolean;
15877
+ action?: string;
14723
15878
  created_at?: string;
14724
- gemelde_printers?: import("./types").Json;
14725
15879
  id?: string;
14726
- laatst_gezien?: string | null;
14727
- locatie?: string;
14728
- naam?: string;
14729
- pairing_code_hash?: string | null;
14730
- pairing_expires_at?: string | null;
14731
- pairing_used_at?: string | null;
14732
- token_hash?: string;
14733
- updated_at?: string;
14734
- versie?: string;
15880
+ message?: string | null;
15881
+ parsed?: import("./types").Json;
15882
+ price_list_id?: string;
15883
+ raw?: import("./types").Json;
15884
+ row_number?: number;
15885
+ supplier_product_id?: string | null;
14735
15886
  };
14736
- Relationships: [];
15887
+ Relationships: [{
15888
+ foreignKeyName: "price_list_rows_price_list_id_fkey";
15889
+ columns: ["price_list_id"];
15890
+ isOneToOne: false;
15891
+ referencedRelation: "price_lists";
15892
+ referencedColumns: ["id"];
15893
+ }, {
15894
+ foreignKeyName: "price_list_rows_supplier_product_id_fkey";
15895
+ columns: ["supplier_product_id"];
15896
+ isOneToOne: false;
15897
+ referencedRelation: "supplier_products";
15898
+ referencedColumns: ["id"];
15899
+ }];
14737
15900
  };
14738
- print_dedupe_events: {
15901
+ price_lists: {
14739
15902
  Row: {
14740
- bestaande_job_id: string | null;
14741
15903
  created_at: string;
14742
- detail: string | null;
14743
- documentnaam: string | null;
14744
- documenttype: string | null;
15904
+ created_by: string | null;
15905
+ file_hash: string | null;
15906
+ file_name: string;
15907
+ file_path: string | null;
15908
+ headers: string[];
14745
15909
  id: string;
14746
- idempotentie_sleutel: string;
14747
- reden: string;
14748
- };
14749
- Insert: {
14750
- bestaande_job_id?: string | null;
14751
- created_at?: string;
14752
- detail?: string | null;
14753
- documentnaam?: string | null;
15910
+ preview: import("./types").Json;
15911
+ processed_at: string | null;
15912
+ reason: string | null;
15913
+ row_count: number;
15914
+ sheet_name: string | null;
15915
+ source: string;
15916
+ stats: import("./types").Json;
15917
+ status: string;
15918
+ supplier_guess: string | null;
15919
+ supplier_id: string | null;
15920
+ updated_at: string;
15921
+ };
15922
+ Insert: {
15923
+ created_at?: string;
15924
+ created_by?: string | null;
15925
+ file_hash?: string | null;
15926
+ file_name: string;
15927
+ file_path?: string | null;
15928
+ headers?: string[];
15929
+ id?: string;
15930
+ preview?: import("./types").Json;
15931
+ processed_at?: string | null;
15932
+ reason?: string | null;
15933
+ row_count?: number;
15934
+ sheet_name?: string | null;
15935
+ source?: string;
15936
+ stats?: import("./types").Json;
15937
+ status?: string;
15938
+ supplier_guess?: string | null;
15939
+ supplier_id?: string | null;
15940
+ updated_at?: string;
15941
+ };
15942
+ Update: {
15943
+ created_at?: string;
15944
+ created_by?: string | null;
15945
+ file_hash?: string | null;
15946
+ file_name?: string;
15947
+ file_path?: string | null;
15948
+ headers?: string[];
15949
+ id?: string;
15950
+ preview?: import("./types").Json;
15951
+ processed_at?: string | null;
15952
+ reason?: string | null;
15953
+ row_count?: number;
15954
+ sheet_name?: string | null;
15955
+ source?: string;
15956
+ stats?: import("./types").Json;
15957
+ status?: string;
15958
+ supplier_guess?: string | null;
15959
+ supplier_id?: string | null;
15960
+ updated_at?: string;
15961
+ };
15962
+ Relationships: [{
15963
+ foreignKeyName: "price_lists_supplier_id_fkey";
15964
+ columns: ["supplier_id"];
15965
+ isOneToOne: false;
15966
+ referencedRelation: "suppliers";
15967
+ referencedColumns: ["id"];
15968
+ }];
15969
+ };
15970
+ print_agents: {
15971
+ Row: {
15972
+ actief: boolean;
15973
+ created_at: string;
15974
+ gemelde_printers: import("./types").Json;
15975
+ id: string;
15976
+ laatst_gezien: string | null;
15977
+ locatie: string;
15978
+ naam: string;
15979
+ pairing_code_hash: string | null;
15980
+ pairing_expires_at: string | null;
15981
+ pairing_used_at: string | null;
15982
+ token_hash: string;
15983
+ updated_at: string;
15984
+ versie: string;
15985
+ };
15986
+ Insert: {
15987
+ actief?: boolean;
15988
+ created_at?: string;
15989
+ gemelde_printers?: import("./types").Json;
15990
+ id?: string;
15991
+ laatst_gezien?: string | null;
15992
+ locatie?: string;
15993
+ naam: string;
15994
+ pairing_code_hash?: string | null;
15995
+ pairing_expires_at?: string | null;
15996
+ pairing_used_at?: string | null;
15997
+ token_hash: string;
15998
+ updated_at?: string;
15999
+ versie?: string;
16000
+ };
16001
+ Update: {
16002
+ actief?: boolean;
16003
+ created_at?: string;
16004
+ gemelde_printers?: import("./types").Json;
16005
+ id?: string;
16006
+ laatst_gezien?: string | null;
16007
+ locatie?: string;
16008
+ naam?: string;
16009
+ pairing_code_hash?: string | null;
16010
+ pairing_expires_at?: string | null;
16011
+ pairing_used_at?: string | null;
16012
+ token_hash?: string;
16013
+ updated_at?: string;
16014
+ versie?: string;
16015
+ };
16016
+ Relationships: [];
16017
+ };
16018
+ print_dedupe_events: {
16019
+ Row: {
16020
+ bestaande_job_id: string | null;
16021
+ created_at: string;
16022
+ detail: string | null;
16023
+ documentnaam: string | null;
16024
+ documenttype: string | null;
16025
+ id: string;
16026
+ idempotentie_sleutel: string;
16027
+ reden: string;
16028
+ };
16029
+ Insert: {
16030
+ bestaande_job_id?: string | null;
16031
+ created_at?: string;
16032
+ detail?: string | null;
16033
+ documentnaam?: string | null;
14754
16034
  documenttype?: string | null;
14755
16035
  id?: string;
14756
16036
  idempotentie_sleutel: string;
@@ -16244,30 +17524,108 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
16244
17524
  referencedColumns: ["id"];
16245
17525
  }];
16246
17526
  };
17527
+ purchase_order_dispatches: {
17528
+ Row: {
17529
+ created_at: string;
17530
+ id: string;
17531
+ last_error: string | null;
17532
+ outbox_id: string | null;
17533
+ purchase_order_id: string;
17534
+ status: string;
17535
+ supplier_id: string | null;
17536
+ supplier_name: string;
17537
+ to_address: string;
17538
+ updated_at: string;
17539
+ };
17540
+ Insert: {
17541
+ created_at?: string;
17542
+ id?: string;
17543
+ last_error?: string | null;
17544
+ outbox_id?: string | null;
17545
+ purchase_order_id: string;
17546
+ status?: string;
17547
+ supplier_id?: string | null;
17548
+ supplier_name?: string;
17549
+ to_address: string;
17550
+ updated_at?: string;
17551
+ };
17552
+ Update: {
17553
+ created_at?: string;
17554
+ id?: string;
17555
+ last_error?: string | null;
17556
+ outbox_id?: string | null;
17557
+ purchase_order_id?: string;
17558
+ status?: string;
17559
+ supplier_id?: string | null;
17560
+ supplier_name?: string;
17561
+ to_address?: string;
17562
+ updated_at?: string;
17563
+ };
17564
+ Relationships: [{
17565
+ foreignKeyName: "purchase_order_dispatches_purchase_order_id_fkey";
17566
+ columns: ["purchase_order_id"];
17567
+ isOneToOne: false;
17568
+ referencedRelation: "purchase_orders";
17569
+ referencedColumns: ["id"];
17570
+ }, {
17571
+ foreignKeyName: "purchase_order_dispatches_supplier_id_fkey";
17572
+ columns: ["supplier_id"];
17573
+ isOneToOne: false;
17574
+ referencedRelation: "suppliers";
17575
+ referencedColumns: ["id"];
17576
+ }];
17577
+ };
16247
17578
  purchase_order_items: {
16248
17579
  Row: {
17580
+ article_number: string | null;
16249
17581
  created_at: string;
17582
+ delivery_date: string | null;
16250
17583
  id: string;
17584
+ name: string;
17585
+ note: string | null;
17586
+ pot_size: string | null;
16251
17587
  product_id: string | null;
16252
17588
  product_type: string;
16253
17589
  purchase_order_id: string;
16254
17590
  quantity: number;
17591
+ supplier_id: string | null;
17592
+ supplier_product_id: string | null;
17593
+ unit_price_cents: number;
17594
+ updated_at: string;
16255
17595
  };
16256
17596
  Insert: {
17597
+ article_number?: string | null;
16257
17598
  created_at?: string;
17599
+ delivery_date?: string | null;
16258
17600
  id?: string;
17601
+ name?: string;
17602
+ note?: string | null;
17603
+ pot_size?: string | null;
16259
17604
  product_id?: string | null;
16260
17605
  product_type?: string;
16261
17606
  purchase_order_id: string;
16262
17607
  quantity?: number;
17608
+ supplier_id?: string | null;
17609
+ supplier_product_id?: string | null;
17610
+ unit_price_cents?: number;
17611
+ updated_at?: string;
16263
17612
  };
16264
17613
  Update: {
17614
+ article_number?: string | null;
16265
17615
  created_at?: string;
17616
+ delivery_date?: string | null;
16266
17617
  id?: string;
17618
+ name?: string;
17619
+ note?: string | null;
17620
+ pot_size?: string | null;
16267
17621
  product_id?: string | null;
16268
17622
  product_type?: string;
16269
17623
  purchase_order_id?: string;
16270
17624
  quantity?: number;
17625
+ supplier_id?: string | null;
17626
+ supplier_product_id?: string | null;
17627
+ unit_price_cents?: number;
17628
+ updated_at?: string;
16271
17629
  };
16272
17630
  Relationships: [{
16273
17631
  foreignKeyName: "purchase_order_items_product_id_fkey";
@@ -16287,43 +17645,70 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
16287
17645
  isOneToOne: false;
16288
17646
  referencedRelation: "purchase_orders";
16289
17647
  referencedColumns: ["id"];
17648
+ }, {
17649
+ foreignKeyName: "purchase_order_items_supplier_id_fkey";
17650
+ columns: ["supplier_id"];
17651
+ isOneToOne: false;
17652
+ referencedRelation: "suppliers";
17653
+ referencedColumns: ["id"];
17654
+ }, {
17655
+ foreignKeyName: "purchase_order_items_supplier_product_id_fkey";
17656
+ columns: ["supplier_product_id"];
17657
+ isOneToOne: false;
17658
+ referencedRelation: "supplier_products";
17659
+ referencedColumns: ["id"];
16290
17660
  }];
16291
17661
  };
16292
17662
  purchase_orders: {
16293
17663
  Row: {
17664
+ contact_person: string | null;
16294
17665
  created_at: string;
17666
+ created_by: string | null;
16295
17667
  expected_delivery_date: string;
16296
17668
  id: string;
16297
17669
  location_id: string | null;
16298
17670
  notes: string | null;
16299
17671
  order_number: string;
17672
+ reference: string | null;
17673
+ sent_at: string | null;
16300
17674
  status: string;
16301
17675
  supplier_id: string | null;
16302
17676
  supplier_name: string;
17677
+ total_cents: number;
16303
17678
  updated_at: string;
16304
17679
  };
16305
17680
  Insert: {
17681
+ contact_person?: string | null;
16306
17682
  created_at?: string;
16307
- expected_delivery_date: string;
17683
+ created_by?: string | null;
17684
+ expected_delivery_date?: string;
16308
17685
  id?: string;
16309
17686
  location_id?: string | null;
16310
17687
  notes?: string | null;
16311
- order_number: string;
17688
+ order_number?: string;
17689
+ reference?: string | null;
17690
+ sent_at?: string | null;
16312
17691
  status?: string;
16313
17692
  supplier_id?: string | null;
16314
17693
  supplier_name?: string;
17694
+ total_cents?: number;
16315
17695
  updated_at?: string;
16316
17696
  };
16317
17697
  Update: {
17698
+ contact_person?: string | null;
16318
17699
  created_at?: string;
17700
+ created_by?: string | null;
16319
17701
  expected_delivery_date?: string;
16320
17702
  id?: string;
16321
17703
  location_id?: string | null;
16322
17704
  notes?: string | null;
16323
17705
  order_number?: string;
17706
+ reference?: string | null;
17707
+ sent_at?: string | null;
16324
17708
  status?: string;
16325
17709
  supplier_id?: string | null;
16326
17710
  supplier_name?: string;
17711
+ total_cents?: number;
16327
17712
  updated_at?: string;
16328
17713
  };
16329
17714
  Relationships: [{
@@ -17210,96 +18595,288 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17210
18595
  };
17211
18596
  Relationships: [];
17212
18597
  };
17213
- supplier_products: {
18598
+ supplier_contacts: {
17214
18599
  Row: {
17215
- article_number: string | null;
17216
18600
  created_at: string;
18601
+ email: string | null;
17217
18602
  id: string;
18603
+ is_primary: boolean;
17218
18604
  name: string;
17219
- notes: string | null;
17220
- pot_size: string | null;
17221
- price: number | null;
17222
- quantity: number | null;
18605
+ phone: string | null;
18606
+ role: string | null;
17223
18607
  supplier_id: string;
17224
- unit: string;
17225
18608
  updated_at: string;
17226
18609
  };
17227
18610
  Insert: {
17228
- article_number?: string | null;
17229
18611
  created_at?: string;
18612
+ email?: string | null;
17230
18613
  id?: string;
18614
+ is_primary?: boolean;
17231
18615
  name: string;
17232
- notes?: string | null;
17233
- pot_size?: string | null;
17234
- price?: number | null;
17235
- quantity?: number | null;
18616
+ phone?: string | null;
18617
+ role?: string | null;
17236
18618
  supplier_id: string;
17237
- unit?: string;
17238
18619
  updated_at?: string;
17239
18620
  };
17240
18621
  Update: {
17241
- article_number?: string | null;
17242
18622
  created_at?: string;
18623
+ email?: string | null;
17243
18624
  id?: string;
18625
+ is_primary?: boolean;
17244
18626
  name?: string;
17245
- notes?: string | null;
17246
- pot_size?: string | null;
17247
- price?: number | null;
17248
- quantity?: number | null;
18627
+ phone?: string | null;
18628
+ role?: string | null;
17249
18629
  supplier_id?: string;
17250
- unit?: string;
17251
18630
  updated_at?: string;
17252
18631
  };
17253
18632
  Relationships: [{
17254
- foreignKeyName: "supplier_products_supplier_id_fkey";
18633
+ foreignKeyName: "supplier_contacts_supplier_id_fkey";
17255
18634
  columns: ["supplier_id"];
17256
18635
  isOneToOne: false;
17257
18636
  referencedRelation: "suppliers";
17258
18637
  referencedColumns: ["id"];
17259
18638
  }];
17260
18639
  };
17261
- suppliers: {
18640
+ supplier_price_history: {
17262
18641
  Row: {
17263
- address: string | null;
17264
- column_mappings: import("./types").Json | null;
17265
- contact_person: string | null;
17266
18642
  created_at: string;
17267
- default_product_type: string;
17268
- email: string | null;
17269
18643
  id: string;
17270
- imported_file_name: string | null;
17271
- name: string;
17272
- notes: string | null;
17273
- phone: string | null;
17274
- updated_at: string;
18644
+ new_price_cents: number;
18645
+ old_price_cents: number | null;
18646
+ price_list_id: string | null;
18647
+ supplier_id: string | null;
18648
+ supplier_product_id: string;
17275
18649
  };
17276
18650
  Insert: {
17277
- address?: string | null;
17278
- column_mappings?: import("./types").Json | null;
17279
- contact_person?: string | null;
17280
18651
  created_at?: string;
17281
- default_product_type?: string;
17282
- email?: string | null;
17283
18652
  id?: string;
17284
- imported_file_name?: string | null;
17285
- name: string;
17286
- notes?: string | null;
17287
- phone?: string | null;
17288
- updated_at?: string;
18653
+ new_price_cents: number;
18654
+ old_price_cents?: number | null;
18655
+ price_list_id?: string | null;
18656
+ supplier_id?: string | null;
18657
+ supplier_product_id: string;
17289
18658
  };
17290
18659
  Update: {
17291
- address?: string | null;
17292
- column_mappings?: import("./types").Json | null;
18660
+ created_at?: string;
18661
+ id?: string;
18662
+ new_price_cents?: number;
18663
+ old_price_cents?: number | null;
18664
+ price_list_id?: string | null;
18665
+ supplier_id?: string | null;
18666
+ supplier_product_id?: string;
18667
+ };
18668
+ Relationships: [{
18669
+ foreignKeyName: "supplier_price_history_price_list_id_fkey";
18670
+ columns: ["price_list_id"];
18671
+ isOneToOne: false;
18672
+ referencedRelation: "price_lists";
18673
+ referencedColumns: ["id"];
18674
+ }, {
18675
+ foreignKeyName: "supplier_price_history_supplier_product_id_fkey";
18676
+ columns: ["supplier_product_id"];
18677
+ isOneToOne: false;
18678
+ referencedRelation: "supplier_products";
18679
+ referencedColumns: ["id"];
18680
+ }];
18681
+ };
18682
+ supplier_price_list_mappings: {
18683
+ Row: {
18684
+ column_map: import("./types").Json;
18685
+ created_at: string;
18686
+ deactivate_missing: boolean;
18687
+ decimal_separator: string;
18688
+ expected_headers: string[];
18689
+ extract_pot_from_name: boolean;
18690
+ header_row: number;
18691
+ id: string;
18692
+ max_error_ratio: number;
18693
+ price_is_cents: boolean;
18694
+ sheet_name: string | null;
18695
+ supplier_id: string;
18696
+ updated_at: string;
18697
+ };
18698
+ Insert: {
18699
+ column_map?: import("./types").Json;
18700
+ created_at?: string;
18701
+ deactivate_missing?: boolean;
18702
+ decimal_separator?: string;
18703
+ expected_headers?: string[];
18704
+ extract_pot_from_name?: boolean;
18705
+ header_row?: number;
18706
+ id?: string;
18707
+ max_error_ratio?: number;
18708
+ price_is_cents?: boolean;
18709
+ sheet_name?: string | null;
18710
+ supplier_id: string;
18711
+ updated_at?: string;
18712
+ };
18713
+ Update: {
18714
+ column_map?: import("./types").Json;
18715
+ created_at?: string;
18716
+ deactivate_missing?: boolean;
18717
+ decimal_separator?: string;
18718
+ expected_headers?: string[];
18719
+ extract_pot_from_name?: boolean;
18720
+ header_row?: number;
18721
+ id?: string;
18722
+ max_error_ratio?: number;
18723
+ price_is_cents?: boolean;
18724
+ sheet_name?: string | null;
18725
+ supplier_id?: string;
18726
+ updated_at?: string;
18727
+ };
18728
+ Relationships: [{
18729
+ foreignKeyName: "supplier_price_list_mappings_supplier_id_fkey";
18730
+ columns: ["supplier_id"];
18731
+ isOneToOne: true;
18732
+ referencedRelation: "suppliers";
18733
+ referencedColumns: ["id"];
18734
+ }];
18735
+ };
18736
+ supplier_products: {
18737
+ Row: {
18738
+ article_number: string | null;
18739
+ available_quantity: number;
18740
+ created_at: string;
18741
+ height: string | null;
18742
+ id: string;
18743
+ is_active: boolean;
18744
+ min_order: number;
18745
+ name: string;
18746
+ notes: string | null;
18747
+ order_unit: number;
18748
+ pot_size: string | null;
18749
+ price: number | null;
18750
+ price_cents: number;
18751
+ quality: string | null;
18752
+ quantity: number | null;
18753
+ supplier_id: string;
18754
+ unit: string;
18755
+ updated_at: string;
18756
+ };
18757
+ Insert: {
18758
+ article_number?: string | null;
18759
+ available_quantity?: number;
18760
+ created_at?: string;
18761
+ height?: string | null;
18762
+ id?: string;
18763
+ is_active?: boolean;
18764
+ min_order?: number;
18765
+ name: string;
18766
+ notes?: string | null;
18767
+ order_unit?: number;
18768
+ pot_size?: string | null;
18769
+ price?: number | null;
18770
+ price_cents?: number;
18771
+ quality?: string | null;
18772
+ quantity?: number | null;
18773
+ supplier_id: string;
18774
+ unit?: string;
18775
+ updated_at?: string;
18776
+ };
18777
+ Update: {
18778
+ article_number?: string | null;
18779
+ available_quantity?: number;
18780
+ created_at?: string;
18781
+ height?: string | null;
18782
+ id?: string;
18783
+ is_active?: boolean;
18784
+ min_order?: number;
18785
+ name?: string;
18786
+ notes?: string | null;
18787
+ order_unit?: number;
18788
+ pot_size?: string | null;
18789
+ price?: number | null;
18790
+ price_cents?: number;
18791
+ quality?: string | null;
18792
+ quantity?: number | null;
18793
+ supplier_id?: string;
18794
+ unit?: string;
18795
+ updated_at?: string;
18796
+ };
18797
+ Relationships: [{
18798
+ foreignKeyName: "supplier_products_supplier_id_fkey";
18799
+ columns: ["supplier_id"];
18800
+ isOneToOne: false;
18801
+ referencedRelation: "suppliers";
18802
+ referencedColumns: ["id"];
18803
+ }];
18804
+ };
18805
+ suppliers: {
18806
+ Row: {
18807
+ address: string | null;
18808
+ category: string | null;
18809
+ column_mappings: import("./types").Json | null;
18810
+ contact_person: string | null;
18811
+ created_at: string;
18812
+ default_product_type: string;
18813
+ email: string | null;
18814
+ id: string;
18815
+ imported_file_name: string | null;
18816
+ is_preferred: boolean;
18817
+ kvk_number: string | null;
18818
+ lead_time_days: number | null;
18819
+ min_order_amount_cents: number;
18820
+ name: string;
18821
+ notes: string | null;
18822
+ order_days: string[];
18823
+ order_email: string | null;
18824
+ payment_terms_days: number | null;
18825
+ phone: string | null;
18826
+ status: string;
18827
+ updated_at: string;
18828
+ vat_number: string | null;
18829
+ website: string | null;
18830
+ };
18831
+ Insert: {
18832
+ address?: string | null;
18833
+ category?: string | null;
18834
+ column_mappings?: import("./types").Json | null;
18835
+ contact_person?: string | null;
18836
+ created_at?: string;
18837
+ default_product_type?: string;
18838
+ email?: string | null;
18839
+ id?: string;
18840
+ imported_file_name?: string | null;
18841
+ is_preferred?: boolean;
18842
+ kvk_number?: string | null;
18843
+ lead_time_days?: number | null;
18844
+ min_order_amount_cents?: number;
18845
+ name: string;
18846
+ notes?: string | null;
18847
+ order_days?: string[];
18848
+ order_email?: string | null;
18849
+ payment_terms_days?: number | null;
18850
+ phone?: string | null;
18851
+ status?: string;
18852
+ updated_at?: string;
18853
+ vat_number?: string | null;
18854
+ website?: string | null;
18855
+ };
18856
+ Update: {
18857
+ address?: string | null;
18858
+ category?: string | null;
18859
+ column_mappings?: import("./types").Json | null;
17293
18860
  contact_person?: string | null;
17294
18861
  created_at?: string;
17295
18862
  default_product_type?: string;
17296
18863
  email?: string | null;
17297
18864
  id?: string;
17298
18865
  imported_file_name?: string | null;
18866
+ is_preferred?: boolean;
18867
+ kvk_number?: string | null;
18868
+ lead_time_days?: number | null;
18869
+ min_order_amount_cents?: number;
17299
18870
  name?: string;
17300
18871
  notes?: string | null;
18872
+ order_days?: string[];
18873
+ order_email?: string | null;
18874
+ payment_terms_days?: number | null;
17301
18875
  phone?: string | null;
18876
+ status?: string;
17302
18877
  updated_at?: string;
18878
+ vat_number?: string | null;
18879
+ website?: string | null;
17303
18880
  };
17304
18881
  Relationships: [];
17305
18882
  };
@@ -18301,11 +19878,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18301
19878
  auto_invoice_trigger_statuses: string[];
18302
19879
  created_at: string;
18303
19880
  debtor_gl_account: string;
19881
+ default_article_code: string | null;
18304
19882
  default_credit_invoice_type: string | null;
18305
19883
  default_gl_account: string;
18306
19884
  default_invoice_type: string;
18307
19885
  default_payment_term_days: number;
18308
19886
  default_vat_code: string;
19887
+ email_purpose: string | null;
18309
19888
  home_country_code: string;
18310
19889
  invoice_enabled_ao: boolean;
18311
19890
  invoice_enabled_fo: boolean;
@@ -18327,11 +19906,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18327
19906
  auto_invoice_trigger_statuses?: string[];
18328
19907
  created_at?: string;
18329
19908
  debtor_gl_account?: string;
19909
+ default_article_code?: string | null;
18330
19910
  default_credit_invoice_type?: string | null;
18331
19911
  default_gl_account?: string;
18332
19912
  default_invoice_type?: string;
18333
19913
  default_payment_term_days?: number;
18334
19914
  default_vat_code?: string;
19915
+ email_purpose?: string | null;
18335
19916
  home_country_code?: string;
18336
19917
  invoice_enabled_ao?: boolean;
18337
19918
  invoice_enabled_fo?: boolean;
@@ -18353,11 +19934,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18353
19934
  auto_invoice_trigger_statuses?: string[];
18354
19935
  created_at?: string;
18355
19936
  debtor_gl_account?: string;
19937
+ default_article_code?: string | null;
18356
19938
  default_credit_invoice_type?: string | null;
18357
19939
  default_gl_account?: string;
18358
19940
  default_invoice_type?: string;
18359
19941
  default_payment_term_days?: number;
18360
19942
  default_vat_code?: string;
19943
+ email_purpose?: string | null;
18361
19944
  home_country_code?: string;
18362
19945
  invoice_enabled_ao?: boolean;
18363
19946
  invoice_enabled_fo?: boolean;
@@ -19250,6 +20833,36 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19250
20833
  referencedColumns: ["id"];
19251
20834
  }];
19252
20835
  };
20836
+ voorraad_buffer_state: {
20837
+ Row: {
20838
+ buffer_id: string;
20839
+ buffer_key: string | null;
20840
+ closed_at: string | null;
20841
+ created_at: string;
20842
+ detached_orders: import("./types").Json;
20843
+ reason: string | null;
20844
+ updated_at: string;
20845
+ };
20846
+ Insert: {
20847
+ buffer_id: string;
20848
+ buffer_key?: string | null;
20849
+ closed_at?: string | null;
20850
+ created_at?: string;
20851
+ detached_orders?: import("./types").Json;
20852
+ reason?: string | null;
20853
+ updated_at?: string;
20854
+ };
20855
+ Update: {
20856
+ buffer_id?: string;
20857
+ buffer_key?: string | null;
20858
+ closed_at?: string | null;
20859
+ created_at?: string;
20860
+ detached_orders?: import("./types").Json;
20861
+ reason?: string | null;
20862
+ updated_at?: string;
20863
+ };
20864
+ Relationships: [];
20865
+ };
19253
20866
  voorraad_custom_fields: {
19254
20867
  Row: {
19255
20868
  created_at: string;
@@ -19292,6 +20905,36 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19292
20905
  };
19293
20906
  Relationships: [];
19294
20907
  };
20908
+ voorraad_logistics_event_log: {
20909
+ Row: {
20910
+ created_at: string;
20911
+ event_id: string;
20912
+ event_type: string;
20913
+ order_ref: string | null;
20914
+ processed_at: string;
20915
+ result: import("./types").Json;
20916
+ updated_at: string;
20917
+ };
20918
+ Insert: {
20919
+ created_at?: string;
20920
+ event_id: string;
20921
+ event_type: string;
20922
+ order_ref?: string | null;
20923
+ processed_at?: string;
20924
+ result?: import("./types").Json;
20925
+ updated_at?: string;
20926
+ };
20927
+ Update: {
20928
+ created_at?: string;
20929
+ event_id?: string;
20930
+ event_type?: string;
20931
+ order_ref?: string | null;
20932
+ processed_at?: string;
20933
+ result?: import("./types").Json;
20934
+ updated_at?: string;
20935
+ };
20936
+ Relationships: [];
20937
+ };
19295
20938
  voorraad_media_upload_failures: {
19296
20939
  Row: {
19297
20940
  action: string;
@@ -19559,6 +21202,42 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19559
21202
  referencedColumns: ["id"];
19560
21203
  }];
19561
21204
  };
21205
+ werkbon_email_state: {
21206
+ Row: {
21207
+ created_at: string;
21208
+ event_id: string;
21209
+ id: string;
21210
+ is_archived: boolean;
21211
+ is_read: boolean;
21212
+ updated_at: string;
21213
+ werkbon_id: string | null;
21214
+ };
21215
+ Insert: {
21216
+ created_at?: string;
21217
+ event_id: string;
21218
+ id?: string;
21219
+ is_archived?: boolean;
21220
+ is_read?: boolean;
21221
+ updated_at?: string;
21222
+ werkbon_id?: string | null;
21223
+ };
21224
+ Update: {
21225
+ created_at?: string;
21226
+ event_id?: string;
21227
+ id?: string;
21228
+ is_archived?: boolean;
21229
+ is_read?: boolean;
21230
+ updated_at?: string;
21231
+ werkbon_id?: string | null;
21232
+ };
21233
+ Relationships: [{
21234
+ foreignKeyName: "werkbon_email_state_event_id_fkey";
21235
+ columns: ["event_id"];
21236
+ isOneToOne: true;
21237
+ referencedRelation: "email_auth_events";
21238
+ referencedColumns: ["id"];
21239
+ }];
21240
+ };
19562
21241
  werkbon_export_runs: {
19563
21242
  Row: {
19564
21243
  created_at: string;
@@ -19712,47 +21391,188 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19712
21391
  };
19713
21392
  Relationships: [];
19714
21393
  };
19715
- werkbon_materials: {
21394
+ werkbon_mail_ai_settings: {
19716
21395
  Row: {
19717
- article_number: string | null;
19718
21396
  created_at: string;
19719
- created_by: string | null;
19720
- description: string;
19721
- id: string;
19722
- quantity: number;
19723
- source: string;
19724
- unit: string;
19725
- unit_price_cents: number;
21397
+ id: boolean;
21398
+ required_fields: string[];
21399
+ system_prompt: string;
19726
21400
  updated_at: string;
19727
- werkbon_id: string;
21401
+ updated_by: string | null;
19728
21402
  };
19729
21403
  Insert: {
19730
- article_number?: string | null;
19731
21404
  created_at?: string;
19732
- created_by?: string | null;
19733
- description: string;
19734
- id?: string;
19735
- quantity?: number;
19736
- source?: string;
19737
- unit?: string;
19738
- unit_price_cents?: number;
21405
+ id?: boolean;
21406
+ required_fields?: string[];
21407
+ system_prompt?: string;
19739
21408
  updated_at?: string;
19740
- werkbon_id: string;
21409
+ updated_by?: string | null;
19741
21410
  };
19742
21411
  Update: {
19743
- article_number?: string | null;
19744
21412
  created_at?: string;
19745
- created_by?: string | null;
19746
- description?: string;
19747
- id?: string;
19748
- quantity?: number;
19749
- source?: string;
19750
- unit?: string;
19751
- unit_price_cents?: number;
21413
+ id?: boolean;
21414
+ required_fields?: string[];
21415
+ system_prompt?: string;
19752
21416
  updated_at?: string;
19753
- werkbon_id?: string;
21417
+ updated_by?: string | null;
19754
21418
  };
19755
- Relationships: [{
21419
+ Relationships: [];
21420
+ };
21421
+ werkbon_mail_bodies: {
21422
+ Row: {
21423
+ created_at: string;
21424
+ event_id: string;
21425
+ fetch_error: string | null;
21426
+ fetched_at: string | null;
21427
+ html: string | null;
21428
+ updated_at: string;
21429
+ };
21430
+ Insert: {
21431
+ created_at?: string;
21432
+ event_id: string;
21433
+ fetch_error?: string | null;
21434
+ fetched_at?: string | null;
21435
+ html?: string | null;
21436
+ updated_at?: string;
21437
+ };
21438
+ Update: {
21439
+ created_at?: string;
21440
+ event_id?: string;
21441
+ fetch_error?: string | null;
21442
+ fetched_at?: string | null;
21443
+ html?: string | null;
21444
+ updated_at?: string;
21445
+ };
21446
+ Relationships: [];
21447
+ };
21448
+ werkbon_mail_inline_assets: {
21449
+ Row: {
21450
+ content_id: string | null;
21451
+ created_at: string;
21452
+ event_id: string;
21453
+ filename: string | null;
21454
+ id: string;
21455
+ is_inline: boolean;
21456
+ mime_type: string | null;
21457
+ size_bytes: number | null;
21458
+ storage_path: string;
21459
+ };
21460
+ Insert: {
21461
+ content_id?: string | null;
21462
+ created_at?: string;
21463
+ event_id: string;
21464
+ filename?: string | null;
21465
+ id?: string;
21466
+ is_inline?: boolean;
21467
+ mime_type?: string | null;
21468
+ size_bytes?: number | null;
21469
+ storage_path: string;
21470
+ };
21471
+ Update: {
21472
+ content_id?: string | null;
21473
+ created_at?: string;
21474
+ event_id?: string;
21475
+ filename?: string | null;
21476
+ id?: string;
21477
+ is_inline?: boolean;
21478
+ mime_type?: string | null;
21479
+ size_bytes?: number | null;
21480
+ storage_path?: string;
21481
+ };
21482
+ Relationships: [];
21483
+ };
21484
+ werkbon_mail_settings: {
21485
+ Row: {
21486
+ connection_id: string | null;
21487
+ connection_ids: string[];
21488
+ created_at: string;
21489
+ id: boolean;
21490
+ purposes: string[];
21491
+ source: string;
21492
+ updated_at: string;
21493
+ };
21494
+ Insert: {
21495
+ connection_id?: string | null;
21496
+ connection_ids?: string[];
21497
+ created_at?: string;
21498
+ id?: boolean;
21499
+ purposes?: string[];
21500
+ source?: string;
21501
+ updated_at?: string;
21502
+ };
21503
+ Update: {
21504
+ connection_id?: string | null;
21505
+ connection_ids?: string[];
21506
+ created_at?: string;
21507
+ id?: boolean;
21508
+ purposes?: string[];
21509
+ source?: string;
21510
+ updated_at?: string;
21511
+ };
21512
+ Relationships: [];
21513
+ };
21514
+ werkbon_mail_user_settings: {
21515
+ Row: {
21516
+ created_at: string;
21517
+ email_purpose: string | null;
21518
+ updated_at: string;
21519
+ user_id: string;
21520
+ };
21521
+ Insert: {
21522
+ created_at?: string;
21523
+ email_purpose?: string | null;
21524
+ updated_at?: string;
21525
+ user_id: string;
21526
+ };
21527
+ Update: {
21528
+ created_at?: string;
21529
+ email_purpose?: string | null;
21530
+ updated_at?: string;
21531
+ user_id?: string;
21532
+ };
21533
+ Relationships: [];
21534
+ };
21535
+ werkbon_materials: {
21536
+ Row: {
21537
+ article_number: string | null;
21538
+ created_at: string;
21539
+ created_by: string | null;
21540
+ description: string;
21541
+ id: string;
21542
+ quantity: number;
21543
+ source: string;
21544
+ unit: string;
21545
+ unit_price_cents: number;
21546
+ updated_at: string;
21547
+ werkbon_id: string;
21548
+ };
21549
+ Insert: {
21550
+ article_number?: string | null;
21551
+ created_at?: string;
21552
+ created_by?: string | null;
21553
+ description: string;
21554
+ id?: string;
21555
+ quantity?: number;
21556
+ source?: string;
21557
+ unit?: string;
21558
+ unit_price_cents?: number;
21559
+ updated_at?: string;
21560
+ werkbon_id: string;
21561
+ };
21562
+ Update: {
21563
+ article_number?: string | null;
21564
+ created_at?: string;
21565
+ created_by?: string | null;
21566
+ description?: string;
21567
+ id?: string;
21568
+ quantity?: number;
21569
+ source?: string;
21570
+ unit?: string;
21571
+ unit_price_cents?: number;
21572
+ updated_at?: string;
21573
+ werkbon_id?: string;
21574
+ };
21575
+ Relationships: [{
19756
21576
  foreignKeyName: "werkbon_materials_werkbon_id_fkey";
19757
21577
  columns: ["werkbon_id"];
19758
21578
  isOneToOne: false;
@@ -20051,6 +21871,156 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20051
21871
  referencedColumns: ["id"];
20052
21872
  }];
20053
21873
  };
21874
+ werkbon_proposal_lines: {
21875
+ Row: {
21876
+ article_number: string | null;
21877
+ created_at: string;
21878
+ description: string | null;
21879
+ id: string;
21880
+ line_type: string;
21881
+ note: string | null;
21882
+ package_id: string | null;
21883
+ proposal_id: string;
21884
+ quantity: number | null;
21885
+ sort_order: number;
21886
+ unit: string | null;
21887
+ updated_at: string;
21888
+ };
21889
+ Insert: {
21890
+ article_number?: string | null;
21891
+ created_at?: string;
21892
+ description?: string | null;
21893
+ id?: string;
21894
+ line_type?: string;
21895
+ note?: string | null;
21896
+ package_id?: string | null;
21897
+ proposal_id: string;
21898
+ quantity?: number | null;
21899
+ sort_order?: number;
21900
+ unit?: string | null;
21901
+ updated_at?: string;
21902
+ };
21903
+ Update: {
21904
+ article_number?: string | null;
21905
+ created_at?: string;
21906
+ description?: string | null;
21907
+ id?: string;
21908
+ line_type?: string;
21909
+ note?: string | null;
21910
+ package_id?: string | null;
21911
+ proposal_id?: string;
21912
+ quantity?: number | null;
21913
+ sort_order?: number;
21914
+ unit?: string | null;
21915
+ updated_at?: string;
21916
+ };
21917
+ Relationships: [{
21918
+ foreignKeyName: "werkbon_proposal_lines_proposal_id_fkey";
21919
+ columns: ["proposal_id"];
21920
+ isOneToOne: false;
21921
+ referencedRelation: "werkbon_proposals";
21922
+ referencedColumns: ["id"];
21923
+ }];
21924
+ };
21925
+ werkbon_proposals: {
21926
+ Row: {
21927
+ analysed: boolean;
21928
+ budget_mandate_cents: number;
21929
+ complaint_description: string | null;
21930
+ contact_id: string | null;
21931
+ created_at: string;
21932
+ created_werkbon_id: string | null;
21933
+ customer_id: string | null;
21934
+ deadline_date: string | null;
21935
+ estimated_days: number | null;
21936
+ estimated_duration_minutes: number | null;
21937
+ event_id: string;
21938
+ external_id: string | null;
21939
+ externe_referentie: string | null;
21940
+ from_email: string | null;
21941
+ from_name: string | null;
21942
+ id: string;
21943
+ internal_notes: string | null;
21944
+ parsed_payload: import("./types").Json;
21945
+ received_at: string | null;
21946
+ reviewed_at: string | null;
21947
+ reviewed_by: string | null;
21948
+ room_number: string | null;
21949
+ scheduled_end_time: string | null;
21950
+ scheduled_start_time: string | null;
21951
+ status: string;
21952
+ subject: string | null;
21953
+ technician_id: string | null;
21954
+ technician_task_description: string | null;
21955
+ updated_at: string;
21956
+ work_address: string | null;
21957
+ };
21958
+ Insert: {
21959
+ analysed?: boolean;
21960
+ budget_mandate_cents?: number;
21961
+ complaint_description?: string | null;
21962
+ contact_id?: string | null;
21963
+ created_at?: string;
21964
+ created_werkbon_id?: string | null;
21965
+ customer_id?: string | null;
21966
+ deadline_date?: string | null;
21967
+ estimated_days?: number | null;
21968
+ estimated_duration_minutes?: number | null;
21969
+ event_id: string;
21970
+ external_id?: string | null;
21971
+ externe_referentie?: string | null;
21972
+ from_email?: string | null;
21973
+ from_name?: string | null;
21974
+ id?: string;
21975
+ internal_notes?: string | null;
21976
+ parsed_payload?: import("./types").Json;
21977
+ received_at?: string | null;
21978
+ reviewed_at?: string | null;
21979
+ reviewed_by?: string | null;
21980
+ room_number?: string | null;
21981
+ scheduled_end_time?: string | null;
21982
+ scheduled_start_time?: string | null;
21983
+ status?: string;
21984
+ subject?: string | null;
21985
+ technician_id?: string | null;
21986
+ technician_task_description?: string | null;
21987
+ updated_at?: string;
21988
+ work_address?: string | null;
21989
+ };
21990
+ Update: {
21991
+ analysed?: boolean;
21992
+ budget_mandate_cents?: number;
21993
+ complaint_description?: string | null;
21994
+ contact_id?: string | null;
21995
+ created_at?: string;
21996
+ created_werkbon_id?: string | null;
21997
+ customer_id?: string | null;
21998
+ deadline_date?: string | null;
21999
+ estimated_days?: number | null;
22000
+ estimated_duration_minutes?: number | null;
22001
+ event_id?: string;
22002
+ external_id?: string | null;
22003
+ externe_referentie?: string | null;
22004
+ from_email?: string | null;
22005
+ from_name?: string | null;
22006
+ id?: string;
22007
+ internal_notes?: string | null;
22008
+ parsed_payload?: import("./types").Json;
22009
+ received_at?: string | null;
22010
+ reviewed_at?: string | null;
22011
+ reviewed_by?: string | null;
22012
+ room_number?: string | null;
22013
+ scheduled_end_time?: string | null;
22014
+ scheduled_start_time?: string | null;
22015
+ status?: string;
22016
+ subject?: string | null;
22017
+ technician_id?: string | null;
22018
+ technician_task_description?: string | null;
22019
+ updated_at?: string;
22020
+ work_address?: string | null;
22021
+ };
22022
+ Relationships: [];
22023
+ };
20054
22024
  werkbon_time_logs: {
20055
22025
  Row: {
20056
22026
  activity: string;
@@ -20104,6 +22074,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20104
22074
  created_at: string;
20105
22075
  created_by: string | null;
20106
22076
  customer_id: string | null;
22077
+ deadline_date: string | null;
22078
+ estimated_days: number | null;
22079
+ estimated_duration_minutes: number | null;
20107
22080
  externe_referentie: string | null;
20108
22081
  extra_costs_cents: number;
20109
22082
  first_time_fix: boolean | null;
@@ -20134,6 +22107,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20134
22107
  updated_at: string;
20135
22108
  version: number;
20136
22109
  work_address: string | null;
22110
+ workday_hours: number | null;
20137
22111
  };
20138
22112
  Insert: {
20139
22113
  assigned_user_id?: string | null;
@@ -20142,6 +22116,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20142
22116
  created_at?: string;
20143
22117
  created_by?: string | null;
20144
22118
  customer_id?: string | null;
22119
+ deadline_date?: string | null;
22120
+ estimated_days?: number | null;
22121
+ estimated_duration_minutes?: number | null;
20145
22122
  externe_referentie?: string | null;
20146
22123
  extra_costs_cents?: number;
20147
22124
  first_time_fix?: boolean | null;
@@ -20172,6 +22149,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20172
22149
  updated_at?: string;
20173
22150
  version?: number;
20174
22151
  work_address?: string | null;
22152
+ workday_hours?: number | null;
20175
22153
  };
20176
22154
  Update: {
20177
22155
  assigned_user_id?: string | null;
@@ -20180,6 +22158,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20180
22158
  created_at?: string;
20181
22159
  created_by?: string | null;
20182
22160
  customer_id?: string | null;
22161
+ deadline_date?: string | null;
22162
+ estimated_days?: number | null;
22163
+ estimated_duration_minutes?: number | null;
20183
22164
  externe_referentie?: string | null;
20184
22165
  extra_costs_cents?: number;
20185
22166
  first_time_fix?: boolean | null;
@@ -20210,6 +22191,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20210
22191
  updated_at?: string;
20211
22192
  version?: number;
20212
22193
  work_address?: string | null;
22194
+ workday_hours?: number | null;
20213
22195
  };
20214
22196
  Relationships: [{
20215
22197
  foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
@@ -21414,6 +23396,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
21414
23396
  };
21415
23397
  Returns: string;
21416
23398
  };
23399
+ backfill_cart_numbers_day_seq: {
23400
+ Args: never;
23401
+ Returns: number;
23402
+ };
21417
23403
  backfill_open_order_reservations: {
21418
23404
  Args: never;
21419
23405
  Returns: {
@@ -21452,6 +23438,15 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
21452
23438
  Args: never;
21453
23439
  Returns: boolean;
21454
23440
  };
23441
+ cancel_open_print_jobs: {
23442
+ Args: {
23443
+ _cutoff: string;
23444
+ };
23445
+ Returns: {
23446
+ extern_job_id: string;
23447
+ id: string;
23448
+ }[];
23449
+ };
21455
23450
  check_offer_product_available_stock: {
21456
23451
  Args: {
21457
23452
  p_campaign_product_id: string;
@@ -21891,8 +23886,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
21891
23886
  cart_index: number;
21892
23887
  cart_number: string;
21893
23888
  cart_number_id: string;
21894
- cart_seq: number;
21895
- cart_total: number;
21896
23889
  order_id: string;
21897
23890
  order_number: string;
21898
23891
  order_source: string;
@@ -22117,6 +24110,17 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
22117
24110
  };
22118
24111
  Returns: boolean;
22119
24112
  };
24113
+ floriday_adopt_connection: {
24114
+ Args: {
24115
+ p_new: string;
24116
+ p_old: string;
24117
+ };
24118
+ Returns: import("./types").Json;
24119
+ };
24120
+ floriday_autoheal_connections: {
24121
+ Args: never;
24122
+ Returns: import("./types").Json;
24123
+ };
22120
24124
  floriday_capture_stock_snapshot: {
22121
24125
  Args: never;
22122
24126
  Returns: number;
@@ -22174,6 +24178,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
22174
24178
  };
22175
24179
  Returns: undefined;
22176
24180
  };
24181
+ floriday_relink_products: {
24182
+ Args: {
24183
+ p_connection_id?: string;
24184
+ };
24185
+ Returns: import("./types").Json;
24186
+ };
22177
24187
  floriday_requeue_dead_letters: {
22178
24188
  Args: {
22179
24189
  p_connection_id?: string;
@@ -22396,6 +24406,27 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
22396
24406
  Args: never;
22397
24407
  Returns: string;
22398
24408
  };
24409
+ handover_afspraak_intrekken: {
24410
+ Args: {
24411
+ _sleutel: string;
24412
+ };
24413
+ Returns: boolean;
24414
+ };
24415
+ handover_afspraak_zetten: {
24416
+ Args: {
24417
+ _besluit: string;
24418
+ _item: string;
24419
+ _modules: string[];
24420
+ _sleutel: string;
24421
+ _soort: string;
24422
+ _versie_vingerafdruk: string;
24423
+ };
24424
+ Returns: boolean;
24425
+ };
24426
+ handover_afspraken: {
24427
+ Args: never;
24428
+ Returns: import("./types").Json;
24429
+ };
22399
24430
  handover_archief_lijst: {
22400
24431
  Args: never;
22401
24432
  Returns: import("./types").Json;
@@ -22413,6 +24444,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
22413
24444
  };
22414
24445
  Returns: boolean;
22415
24446
  };
24447
+ handover_check_afronden_na_scan: {
24448
+ Args: {
24449
+ _module_ids: string[];
24450
+ };
24451
+ Returns: number;
24452
+ };
22416
24453
  handover_check_markeren: {
22417
24454
  Args: {
22418
24455
  _module_ids: string[];
@@ -22456,6 +24493,14 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
22456
24493
  };
22457
24494
  Returns: boolean;
22458
24495
  };
24496
+ handover_md_bron_zetten: {
24497
+ Args: {
24498
+ _md: boolean;
24499
+ _module_id: string;
24500
+ _pad?: string;
24501
+ };
24502
+ Returns: boolean;
24503
+ };
22459
24504
  handover_module_meta_zetten: {
22460
24505
  Args: {
22461
24506
  _module_id: string;
@@ -22464,6 +24509,24 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
22464
24509
  };
22465
24510
  Returns: boolean;
22466
24511
  };
24512
+ handover_naam_zetten: {
24513
+ Args: {
24514
+ _bron_repo?: string;
24515
+ _module_id: string;
24516
+ _weergavenaam?: string;
24517
+ };
24518
+ Returns: boolean;
24519
+ };
24520
+ handover_namen: {
24521
+ Args: never;
24522
+ Returns: import("./types").Json;
24523
+ };
24524
+ handover_nieuw_gezien: {
24525
+ Args: {
24526
+ _module_id: string;
24527
+ };
24528
+ Returns: boolean;
24529
+ };
22467
24530
  handover_norm_naam: {
22468
24531
  Args: {
22469
24532
  _naam: string;
@@ -22500,6 +24563,24 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
22500
24563
  _versie_label?: string;
22501
24564
  };
22502
24565
  Returns: import("./types").Json;
24566
+ } | {
24567
+ Args: {
24568
+ _bekende_risicos?: string[];
24569
+ _bezit_tabellen?: string[];
24570
+ _bron_soort?: string;
24571
+ _commit?: string;
24572
+ _contractfuncties?: string[];
24573
+ _inhoud_md: string;
24574
+ _laatst_bevestigd_op?: string;
24575
+ _module_id: string;
24576
+ _module_titel: string;
24577
+ _ontbrekende_contracten?: string[];
24578
+ _pad?: string;
24579
+ _repo?: string;
24580
+ _samenvatting?: string;
24581
+ _versie_label?: string;
24582
+ };
24583
+ Returns: import("./types").Json;
22503
24584
  };
22504
24585
  handover_publish_via_token: {
22505
24586
  Args: {
@@ -22597,6 +24678,27 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
22597
24678
  Args: never;
22598
24679
  Returns: boolean;
22599
24680
  };
24681
+ inkoop_apply_price_list: {
24682
+ Args: {
24683
+ _price_list_id: string;
24684
+ _rows: import("./types").Json;
24685
+ };
24686
+ Returns: import("./types").Json;
24687
+ };
24688
+ inkoop_next_order_number: {
24689
+ Args: never;
24690
+ Returns: string;
24691
+ };
24692
+ inkoop_send_order: {
24693
+ Args: {
24694
+ _order_id: string;
24695
+ };
24696
+ Returns: {
24697
+ outbox_id: string;
24698
+ supplier_name: string;
24699
+ to_address: string;
24700
+ }[];
24701
+ };
22600
24702
  instructie_get: {
22601
24703
  Args: {
22602
24704
  _sleutel: string;
@@ -22656,6 +24758,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
22656
24758
  };
22657
24759
  Returns: import("./types").Json;
22658
24760
  };
24761
+ invoice_source_lines: {
24762
+ Args: {
24763
+ _source_id: string;
24764
+ _source_type: string;
24765
+ };
24766
+ Returns: import("./types").Json;
24767
+ };
22659
24768
  is_authenticated: {
22660
24769
  Args: never;
22661
24770
  Returns: boolean;
@@ -22795,6 +24904,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
22795
24904
  };
22796
24905
  Returns: string;
22797
24906
  };
24907
+ logistics_active_layout_method: {
24908
+ Args: never;
24909
+ Returns: string;
24910
+ };
22798
24911
  logistics_active_pick_workdays: {
22799
24912
  Args: never;
22800
24913
  Returns: string[];
@@ -22846,6 +24959,30 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
22846
24959
  };
22847
24960
  Returns: import("./types").Json;
22848
24961
  };
24962
+ logistics_block_reason_code: {
24963
+ Args: {
24964
+ p_details?: import("./types").Json;
24965
+ p_reason: string;
24966
+ };
24967
+ Returns: string;
24968
+ };
24969
+ logistics_blocked_orders: {
24970
+ Args: never;
24971
+ Returns: {
24972
+ attempts: number;
24973
+ blocked_since: string;
24974
+ delivery_date: string;
24975
+ order_id: string;
24976
+ order_ref: string;
24977
+ queue_id: string;
24978
+ reason: string;
24979
+ reason_code: string;
24980
+ }[];
24981
+ };
24982
+ logistics_blocked_overview: {
24983
+ Args: never;
24984
+ Returns: import("./types").Json;
24985
+ };
22849
24986
  logistics_buffer_criteria: {
22850
24987
  Args: {
22851
24988
  p_settings: import("./types").Json;
@@ -22860,6 +24997,39 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
22860
24997
  };
22861
24998
  Returns: import("./types").Json;
22862
24999
  };
25000
+ logistics_buffer_detach_late_orders: {
25001
+ Args: {
25002
+ p_buffer?: string;
25003
+ };
25004
+ Returns: import("./types").Json;
25005
+ };
25006
+ logistics_buffer_frozen_order: {
25007
+ Args: {
25008
+ p_order_id: string;
25009
+ };
25010
+ Returns: boolean;
25011
+ };
25012
+ logistics_buffer_handled: {
25013
+ Args: {
25014
+ p_buffer: string;
25015
+ };
25016
+ Returns: boolean;
25017
+ };
25018
+ logistics_buffer_notify: {
25019
+ Args: {
25020
+ p_event_type: string;
25021
+ p_idempotency_key: string;
25022
+ p_order_ref: string;
25023
+ p_payload: import("./types").Json;
25024
+ };
25025
+ Returns: string;
25026
+ };
25027
+ logistics_buffer_open_key: {
25028
+ Args: {
25029
+ p_base_key: string;
25030
+ };
25031
+ Returns: string;
25032
+ };
22863
25033
  logistics_buffer_simulate: {
22864
25034
  Args: {
22865
25035
  p_orders?: import("./types").Json;
@@ -22912,6 +25082,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
22912
25082
  };
22913
25083
  Returns: string;
22914
25084
  };
25085
+ logistics_cart_checkin_at: {
25086
+ Args: {
25087
+ p_cart_id: string;
25088
+ };
25089
+ Returns: string;
25090
+ };
22915
25091
  logistics_cart_handled: {
22916
25092
  Args: {
22917
25093
  p_cart_index: number;
@@ -22945,10 +25121,59 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
22945
25121
  task_status: string;
22946
25122
  }[];
22947
25123
  };
25124
+ logistics_cart_is_full: {
25125
+ Args: {
25126
+ p_cart_id: string;
25127
+ };
25128
+ Returns: boolean;
25129
+ };
22948
25130
  logistics_cart_layout_method: {
22949
25131
  Args: never;
22950
25132
  Returns: import("./types").Json;
22951
25133
  };
25134
+ logistics_cart_order_refs: {
25135
+ Args: {
25136
+ p_cart_id: string;
25137
+ };
25138
+ Returns: string[];
25139
+ };
25140
+ logistics_cart_plan_overview: {
25141
+ Args: {
25142
+ p_days?: number;
25143
+ };
25144
+ Returns: {
25145
+ cart_total: number;
25146
+ delivery_date: string;
25147
+ order_ref: string;
25148
+ plan_ready: boolean;
25149
+ reason: string;
25150
+ released: boolean;
25151
+ }[];
25152
+ };
25153
+ logistics_cart_plan_status: {
25154
+ Args: {
25155
+ p_ref: string;
25156
+ };
25157
+ Returns: import("./types").Json;
25158
+ };
25159
+ logistics_cart_plan_status_core: {
25160
+ Args: {
25161
+ p_ref: string;
25162
+ };
25163
+ Returns: import("./types").Json;
25164
+ };
25165
+ logistics_cart_release_reason: {
25166
+ Args: {
25167
+ p_cart_id: string;
25168
+ };
25169
+ Returns: string;
25170
+ };
25171
+ logistics_cart_released: {
25172
+ Args: {
25173
+ p_cart_id: string;
25174
+ };
25175
+ Returns: boolean;
25176
+ };
22952
25177
  logistics_cart_seq: {
22953
25178
  Args: {
22954
25179
  p_order_uuid?: string;
@@ -22999,6 +25224,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
22999
25224
  unit_ref: string;
23000
25225
  }[];
23001
25226
  };
25227
+ logistics_carts_per_print: {
25228
+ Args: never;
25229
+ Returns: number;
25230
+ };
23002
25231
  logistics_check_order_allowed: {
23003
25232
  Args: {
23004
25233
  p_lines: import("./types").Json;
@@ -23102,6 +25331,16 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23102
25331
  isSetofReturn: false;
23103
25332
  };
23104
25333
  };
25334
+ logistics_cleanup_orphan_print_jobs: {
25335
+ Args: never;
25336
+ Returns: import("./types").Json;
25337
+ };
25338
+ logistics_cleanup_tasks: {
25339
+ Args: {
25340
+ p_limit?: number;
25341
+ };
25342
+ Returns: import("./types").Json;
25343
+ };
23105
25344
  logistics_complete_task: {
23106
25345
  Args: {
23107
25346
  p_result?: import("./types").Json;
@@ -23164,6 +25403,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23164
25403
  station_carts: number;
23165
25404
  }[];
23166
25405
  };
25406
+ logistics_control_complete_cart: {
25407
+ Args: {
25408
+ p_cart_id: string;
25409
+ };
25410
+ Returns: number;
25411
+ };
23167
25412
  logistics_control_scan_approve: {
23168
25413
  Args: {
23169
25414
  p_allow_reprint?: boolean;
@@ -23243,6 +25488,15 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23243
25488
  Args: never;
23244
25489
  Returns: import("./types").Json;
23245
25490
  };
25491
+ logistics_day_windows: {
25492
+ Args: {
25493
+ p_day: string;
25494
+ };
25495
+ Returns: {
25496
+ win_end: string;
25497
+ win_start: string;
25498
+ }[];
25499
+ };
23246
25500
  logistics_delay_customer_email: {
23247
25501
  Args: {
23248
25502
  p_customer: string;
@@ -23310,6 +25564,17 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23310
25564
  };
23311
25565
  Returns: import("./types").Json;
23312
25566
  };
25567
+ logistics_enqueue_shipping_note_with_slip: {
25568
+ Args: {
25569
+ _cart_id: string;
25570
+ _is_herprint: boolean;
25571
+ _printer_id: string;
25572
+ _queue_item_id: string;
25573
+ _session_id: string;
25574
+ _slip_job_id: string;
25575
+ };
25576
+ Returns: string;
25577
+ };
23313
25578
  logistics_enqueue_sticker_with_slip: {
23314
25579
  Args: {
23315
25580
  _cart_id: string;
@@ -23327,6 +25592,20 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23327
25592
  };
23328
25593
  Returns: string;
23329
25594
  };
25595
+ logistics_ensure_pick_data: {
25596
+ Args: {
25597
+ p_event_id?: string;
25598
+ p_missing?: import("./types").Json;
25599
+ p_ref: string;
25600
+ };
25601
+ Returns: import("./types").Json;
25602
+ };
25603
+ logistics_ensure_shipping_notes: {
25604
+ Args: {
25605
+ p_limit?: number;
25606
+ };
25607
+ Returns: import("./types").Json;
25608
+ };
23330
25609
  logistics_fail_task: {
23331
25610
  Args: {
23332
25611
  p_error: string;
@@ -23372,6 +25651,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23372
25651
  isSetofReturn: false;
23373
25652
  };
23374
25653
  };
25654
+ logistics_fix_wrong_shipping_notes: {
25655
+ Args: never;
25656
+ Returns: import("./types").Json;
25657
+ };
23375
25658
  logistics_floriday_cart_plan: {
23376
25659
  Args: {
23377
25660
  p_order_id: string;
@@ -23399,6 +25682,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23399
25682
  revision: number;
23400
25683
  }[];
23401
25684
  };
25685
+ logistics_floriday_delivery_note_create_enabled: {
25686
+ Args: never;
25687
+ Returns: boolean;
25688
+ };
23402
25689
  logistics_floriday_finish_push: {
23403
25690
  Args: {
23404
25691
  _error?: string;
@@ -23448,6 +25735,38 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23448
25735
  };
23449
25736
  Returns: string;
23450
25737
  };
25738
+ logistics_floriday_gate_status: {
25739
+ Args: never;
25740
+ Returns: import("./types").Json;
25741
+ };
25742
+ logistics_floriday_log_refusal: {
25743
+ Args: {
25744
+ _action?: string;
25745
+ _module?: string;
25746
+ _order_ref: string;
25747
+ _reason: string;
25748
+ _shell?: string;
25749
+ };
25750
+ Returns: undefined;
25751
+ };
25752
+ logistics_floriday_log_send: {
25753
+ Args: {
25754
+ _action: string;
25755
+ _detail?: string;
25756
+ _http_status?: number;
25757
+ _module?: string;
25758
+ _ok: boolean;
25759
+ _order_ref: string;
25760
+ _shell?: string;
25761
+ };
25762
+ Returns: undefined;
25763
+ };
25764
+ logistics_floriday_order_approved: {
25765
+ Args: {
25766
+ _order_ref: string;
25767
+ };
25768
+ Returns: boolean;
25769
+ };
23451
25770
  logistics_floriday_prune_pushes: {
23452
25771
  Args: {
23453
25772
  _days?: number;
@@ -23462,6 +25781,20 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23462
25781
  };
23463
25782
  Returns: string;
23464
25783
  };
25784
+ logistics_floriday_status_updates_enabled: {
25785
+ Args: never;
25786
+ Returns: boolean;
25787
+ };
25788
+ logistics_floriday_stock_updates_enabled: {
25789
+ Args: never;
25790
+ Returns: boolean;
25791
+ };
25792
+ logistics_floriday_write_allowed: {
25793
+ Args: {
25794
+ _action: string;
25795
+ };
25796
+ Returns: boolean;
25797
+ };
23465
25798
  logistics_fulfill_barcode_requests: {
23466
25799
  Args: {
23467
25800
  p_limit?: number;
@@ -23482,18 +25815,44 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23482
25815
  };
23483
25816
  Returns: boolean;
23484
25817
  };
23485
- logistics_live_carriers: {
25818
+ logistics_layout_method_status: {
25819
+ Args: never;
25820
+ Returns: import("./types").Json;
25821
+ };
25822
+ logistics_link_order_items: {
23486
25823
  Args: {
23487
- p_order_ref: string;
25824
+ p_order?: string;
23488
25825
  };
23489
25826
  Returns: import("./types").Json;
23490
25827
  };
23491
- logistics_live_cart_count: {
25828
+ logistics_live_carriers: {
25829
+ Args: {
25830
+ p_order_ref: string;
25831
+ };
25832
+ Returns: import("./types").Json;
25833
+ };
25834
+ logistics_live_cart_count: {
23492
25835
  Args: {
23493
25836
  p_order_ref: string;
23494
25837
  };
23495
25838
  Returns: number;
23496
25839
  };
25840
+ logistics_merge_floriday_lines: {
25841
+ Args: {
25842
+ p_order_id: string;
25843
+ };
25844
+ Returns: string;
25845
+ };
25846
+ logistics_merge_lines_enabled: {
25847
+ Args: never;
25848
+ Returns: boolean;
25849
+ };
25850
+ logistics_merge_partial_carts: {
25851
+ Args: {
25852
+ p_limit?: number;
25853
+ };
25854
+ Returns: import("./types").Json;
25855
+ };
23497
25856
  logistics_next_workday_date: {
23498
25857
  Args: {
23499
25858
  p_date: string;
@@ -23508,18 +25867,62 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23508
25867
  };
23509
25868
  Returns: string;
23510
25869
  };
25870
+ logistics_normalize_product_label: {
25871
+ Args: {
25872
+ p_label: string;
25873
+ };
25874
+ Returns: string;
25875
+ };
23511
25876
  logistics_not_past: {
23512
25877
  Args: {
23513
25878
  p_ts: string;
23514
25879
  };
23515
25880
  Returns: string;
23516
25881
  };
25882
+ logistics_opening_timezone: {
25883
+ Args: never;
25884
+ Returns: string;
25885
+ };
25886
+ logistics_order_cart_approval: {
25887
+ Args: {
25888
+ _order_ref: string;
25889
+ };
25890
+ Returns: {
25891
+ approved: number;
25892
+ total: number;
25893
+ }[];
25894
+ };
23517
25895
  logistics_order_cart_count: {
23518
25896
  Args: {
23519
25897
  p_order_ref: string;
23520
25898
  };
23521
25899
  Returns: number;
23522
25900
  };
25901
+ logistics_order_changed: {
25902
+ Args: {
25903
+ p_order_id: string;
25904
+ p_reason?: string;
25905
+ };
25906
+ Returns: undefined;
25907
+ };
25908
+ logistics_order_documents_ready: {
25909
+ Args: {
25910
+ p_order_ref: string;
25911
+ };
25912
+ Returns: import("./types").Json;
25913
+ };
25914
+ logistics_order_documents_ready_bool: {
25915
+ Args: {
25916
+ p_order_ref: string;
25917
+ };
25918
+ Returns: boolean;
25919
+ };
25920
+ logistics_order_frozen: {
25921
+ Args: {
25922
+ p_order_id: string;
25923
+ };
25924
+ Returns: boolean;
25925
+ };
23523
25926
  logistics_order_handled: {
23524
25927
  Args: {
23525
25928
  p_order_uuid: string;
@@ -23533,6 +25936,18 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23533
25936
  };
23534
25937
  Returns: boolean;
23535
25938
  };
25939
+ logistics_order_merge_key: {
25940
+ Args: {
25941
+ p_group_key: string;
25942
+ };
25943
+ Returns: string;
25944
+ };
25945
+ logistics_order_mergeable: {
25946
+ Args: {
25947
+ p_order_id: string;
25948
+ };
25949
+ Returns: boolean;
25950
+ };
23536
25951
  logistics_order_overview: {
23537
25952
  Args: {
23538
25953
  p_from?: string;
@@ -23570,6 +25985,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23570
25985
  };
23571
25986
  Returns: string;
23572
25987
  };
25988
+ logistics_payload_is_floriday: {
25989
+ Args: {
25990
+ _payload: import("./types").Json;
25991
+ };
25992
+ Returns: boolean;
25993
+ };
23573
25994
  logistics_pick_agenda: {
23574
25995
  Args: {
23575
25996
  p_from?: string;
@@ -23598,6 +26019,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23598
26019
  Args: never;
23599
26020
  Returns: import("./types").Json;
23600
26021
  };
26022
+ logistics_pick_partial_mode: {
26023
+ Args: never;
26024
+ Returns: string;
26025
+ };
23601
26026
  logistics_pick_start_estimate: {
23602
26027
  Args: {
23603
26028
  p_order: import("./types").Json;
@@ -23647,6 +26072,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23647
26072
  order_id: string;
23648
26073
  }[];
23649
26074
  };
26075
+ logistics_plan_defer: {
26076
+ Args: {
26077
+ p_id: string;
26078
+ };
26079
+ Returns: undefined;
26080
+ };
23650
26081
  logistics_plan_enqueue: {
23651
26082
  Args: {
23652
26083
  p_order_id: string;
@@ -23660,6 +26091,18 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23660
26091
  };
23661
26092
  Returns: boolean;
23662
26093
  };
26094
+ logistics_plan_error_class: {
26095
+ Args: {
26096
+ p_error: string;
26097
+ };
26098
+ Returns: string;
26099
+ };
26100
+ logistics_plan_error_text: {
26101
+ Args: {
26102
+ p_error: string;
26103
+ };
26104
+ Returns: string;
26105
+ };
23663
26106
  logistics_plan_finish: {
23664
26107
  Args: {
23665
26108
  p_error?: string;
@@ -23688,14 +26131,86 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23688
26131
  Args: never;
23689
26132
  Returns: undefined;
23690
26133
  };
26134
+ logistics_plan_lock_acquire: {
26135
+ Args: {
26136
+ _key: string;
26137
+ _owner?: string;
26138
+ _ttl_seconds?: number;
26139
+ };
26140
+ Returns: boolean;
26141
+ };
26142
+ logistics_plan_lock_release: {
26143
+ Args: {
26144
+ _key: string;
26145
+ _owner?: string;
26146
+ };
26147
+ Returns: undefined;
26148
+ };
26149
+ logistics_plan_progress: {
26150
+ Args: {
26151
+ p_refs: string[];
26152
+ };
26153
+ Returns: {
26154
+ cart_plan_ready: boolean;
26155
+ cart_plan_reason: string;
26156
+ cart_plan_released: boolean;
26157
+ plan_progress: number;
26158
+ plan_state: string;
26159
+ plan_state_since: string;
26160
+ unit_ref: string;
26161
+ }[];
26162
+ };
26163
+ logistics_plan_progress_pct: {
26164
+ Args: {
26165
+ p_order_id: string;
26166
+ };
26167
+ Returns: number;
26168
+ };
23691
26169
  logistics_plan_prune: {
23692
26170
  Args: never;
23693
26171
  Returns: number;
23694
26172
  };
26173
+ logistics_plan_queue_list: {
26174
+ Args: {
26175
+ p_limit?: number;
26176
+ };
26177
+ Returns: {
26178
+ attempts: number;
26179
+ claimed_at: string;
26180
+ customer_name: string;
26181
+ enqueued_at: string;
26182
+ error_class: string;
26183
+ error_raw: string;
26184
+ error_text: string;
26185
+ id: string;
26186
+ max_attempts: number;
26187
+ next_attempt_at: string;
26188
+ order_created_at: string;
26189
+ order_id: string;
26190
+ order_number: string;
26191
+ progress_pct: number;
26192
+ reason: string;
26193
+ stand: string;
26194
+ status: string;
26195
+ updated_at: string;
26196
+ }[];
26197
+ };
23695
26198
  logistics_plan_release_stale: {
23696
26199
  Args: never;
23697
26200
  Returns: number;
23698
26201
  };
26202
+ logistics_plan_reset_queue: {
26203
+ Args: {
26204
+ p_scope?: string;
26205
+ };
26206
+ Returns: number;
26207
+ };
26208
+ logistics_plan_retry: {
26209
+ Args: {
26210
+ p_order_ids: string[];
26211
+ };
26212
+ Returns: number;
26213
+ };
23699
26214
  logistics_plan_setting: {
23700
26215
  Args: {
23701
26216
  p_default: number;
@@ -23703,6 +26218,22 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23703
26218
  };
23704
26219
  Returns: number;
23705
26220
  };
26221
+ logistics_plan_state_for: {
26222
+ Args: {
26223
+ p_ref: string;
26224
+ };
26225
+ Returns: import("./types").Json;
26226
+ };
26227
+ logistics_plan_timeout_running: {
26228
+ Args: never;
26229
+ Returns: number;
26230
+ };
26231
+ logistics_prepare_pick_documents: {
26232
+ Args: {
26233
+ p_limit?: number;
26234
+ };
26235
+ Returns: import("./types").Json;
26236
+ };
23706
26237
  logistics_prune_buffer_member_queue: {
23707
26238
  Args: never;
23708
26239
  Returns: number;
@@ -23743,12 +26274,42 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23743
26274
  Args: never;
23744
26275
  Returns: import("./types").Json;
23745
26276
  };
26277
+ logistics_refresh_pick_queue_status: {
26278
+ Args: {
26279
+ p_ref: string;
26280
+ };
26281
+ Returns: number;
26282
+ };
23746
26283
  logistics_refresh_pickup_moments: {
23747
26284
  Args: {
23748
26285
  p_weeks?: number;
23749
26286
  };
23750
26287
  Returns: import("./types").Json;
23751
26288
  };
26289
+ logistics_refresh_plan_state: {
26290
+ Args: {
26291
+ p_limit?: number;
26292
+ };
26293
+ Returns: import("./types").Json;
26294
+ };
26295
+ logistics_replan_all: {
26296
+ Args: {
26297
+ p_reason?: string;
26298
+ };
26299
+ Returns: import("./types").Json;
26300
+ };
26301
+ logistics_replan_all_force: {
26302
+ Args: {
26303
+ p_reason?: string;
26304
+ };
26305
+ Returns: import("./types").Json;
26306
+ };
26307
+ logistics_replan_order_journey: {
26308
+ Args: {
26309
+ p_order_ref: string;
26310
+ };
26311
+ Returns: import("./types").Json;
26312
+ };
23752
26313
  logistics_report_delay: {
23753
26314
  Args: {
23754
26315
  p_expected_date?: string;
@@ -23802,6 +26363,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23802
26363
  };
23803
26364
  Returns: import("./types").Json;
23804
26365
  };
26366
+ logistics_resolve_product_id: {
26367
+ Args: {
26368
+ p_label: string;
26369
+ };
26370
+ Returns: string;
26371
+ };
23805
26372
  logistics_resolve_settings: {
23806
26373
  Args: {
23807
26374
  p_config_id: string;
@@ -23849,87 +26416,357 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23849
26416
  Args: never;
23850
26417
  Returns: number;
23851
26418
  };
23852
- logistics_scan_order_stock: {
26419
+ logistics_scan_order_stock: {
26420
+ Args: {
26421
+ p_order_id: string;
26422
+ };
26423
+ Returns: string;
26424
+ };
26425
+ logistics_scan_resolve: {
26426
+ Args: {
26427
+ p_code: string;
26428
+ };
26429
+ Returns: import("./types").Json;
26430
+ };
26431
+ logistics_schedule_tasks: {
26432
+ Args: never;
26433
+ Returns: number;
26434
+ } | {
26435
+ Args: {
26436
+ p_order_ref?: string;
26437
+ };
26438
+ Returns: number;
26439
+ };
26440
+ logistics_set_order_priority: {
26441
+ Args: {
26442
+ p_order_ref: string;
26443
+ p_priority: number;
26444
+ p_user_id?: string;
26445
+ };
26446
+ Returns: number;
26447
+ };
26448
+ logistics_set_pick_day: {
26449
+ Args: {
26450
+ p_order_ref: string;
26451
+ p_pick_day: string;
26452
+ };
26453
+ Returns: import("./types").Json;
26454
+ };
26455
+ logistics_shift_to_workday: {
26456
+ Args: {
26457
+ p_days: string[];
26458
+ p_ts: string;
26459
+ };
26460
+ Returns: string;
26461
+ };
26462
+ logistics_shipping_note_diagnose: {
26463
+ Args: {
26464
+ p_order_number: string;
26465
+ };
26466
+ Returns: import("./types").Json;
26467
+ };
26468
+ logistics_shipping_note_follows_slip: {
26469
+ Args: never;
26470
+ Returns: boolean;
26471
+ };
26472
+ logistics_shipping_note_from_barcode: {
26473
+ Args: {
26474
+ p_allow_reprint?: boolean;
26475
+ p_barcode: string;
26476
+ p_station_id?: string;
26477
+ };
26478
+ Returns: import("./types").Json;
26479
+ };
26480
+ logistics_shipping_note_job_for_slip: {
26481
+ Args: {
26482
+ _slip_job_id: string;
26483
+ };
26484
+ Returns: string;
26485
+ };
26486
+ logistics_shipping_notes_wake_all: {
26487
+ Args: never;
26488
+ Returns: import("./types").Json;
26489
+ };
26490
+ logistics_slip_is_floriday: {
26491
+ Args: {
26492
+ _slip_job_id: string;
26493
+ };
26494
+ Returns: boolean;
26495
+ };
26496
+ logistics_slip_note_claim: {
26497
+ Args: {
26498
+ _lease_seconds?: number;
26499
+ _limit?: number;
26500
+ };
26501
+ Returns: {
26502
+ attempts: number;
26503
+ batch_key: string | null;
26504
+ cart_id: string | null;
26505
+ created_at: string;
26506
+ error: string | null;
26507
+ error_code: string | null;
26508
+ fulfillment_order_id: string | null;
26509
+ id: string;
26510
+ locked_until: string | null;
26511
+ next_attempt_at: string | null;
26512
+ order_id: string | null;
26513
+ order_number: string | null;
26514
+ print_job_id: string | null;
26515
+ printer_id: string | null;
26516
+ retry_class: string | null;
26517
+ slip_job_id: string;
26518
+ status: string;
26519
+ updated_at: string;
26520
+ }[];
26521
+ SetofOptions: {
26522
+ from: "*";
26523
+ to: "logistics_slip_shipping_note";
26524
+ isOneToOne: false;
26525
+ isSetofReturn: true;
26526
+ };
26527
+ };
26528
+ logistics_slip_note_finish: {
26529
+ Args: {
26530
+ _error?: string;
26531
+ _error_code?: string;
26532
+ _fulfillment_order_id?: string;
26533
+ _id: string;
26534
+ _ok: boolean;
26535
+ _print_job_id?: string;
26536
+ _status?: string;
26537
+ };
26538
+ Returns: undefined;
26539
+ };
26540
+ logistics_slip_note_keep_waiting: {
26541
+ Args: {
26542
+ _class?: string;
26543
+ _id: string;
26544
+ _reason: string;
26545
+ };
26546
+ Returns: undefined;
26547
+ };
26548
+ logistics_sticker_follows_slip: {
26549
+ Args: never;
26550
+ Returns: boolean;
26551
+ };
26552
+ logistics_subtract_working_minutes: {
26553
+ Args: {
26554
+ p_deadline: string;
26555
+ p_max_workdays?: number;
26556
+ p_minutes: number;
26557
+ };
26558
+ Returns: import("./types").Json;
26559
+ };
26560
+ logistics_supersede_stale_tasks: {
26561
+ Args: {
26562
+ p_keep: string[];
26563
+ p_order_ref: string;
26564
+ p_run_id: string;
26565
+ p_user_id: string;
26566
+ };
26567
+ Returns: number;
26568
+ };
26569
+ logistics_sync_pick_queue: {
26570
+ Args: never;
26571
+ Returns: import("./types").Json;
26572
+ };
26573
+ logistics_sync_task_carriers: {
26574
+ Args: {
26575
+ p_order_ref?: string;
26576
+ };
26577
+ Returns: number;
26578
+ };
26579
+ logistics_task_owner: {
26580
+ Args: {
26581
+ p_task_type: string;
26582
+ };
26583
+ Returns: string;
26584
+ };
26585
+ logistics_task_pick_minutes: {
26586
+ Args: {
26587
+ p_payload: import("./types").Json;
26588
+ p_settings: import("./types").Json;
26589
+ };
26590
+ Returns: number;
26591
+ };
26592
+ logistics_task_retention_days: {
26593
+ Args: never;
26594
+ Returns: number;
26595
+ };
26596
+ logistics_tick_ping: {
26597
+ Args: never;
26598
+ Returns: string;
26599
+ };
26600
+ logistics_timezone_options: {
26601
+ Args: never;
26602
+ Returns: {
26603
+ name: string;
26604
+ }[];
26605
+ };
26606
+ logistics_trace: {
26607
+ Args: {
26608
+ p: import("./types").Json;
26609
+ };
26610
+ Returns: string;
26611
+ };
26612
+ logistics_trace_all_orders: {
26613
+ Args: {
26614
+ p_limit?: number;
26615
+ p_search?: string;
26616
+ };
26617
+ Returns: import("./types").Json;
26618
+ };
26619
+ logistics_trace_archive_order: {
26620
+ Args: {
26621
+ p_order_ref: string;
26622
+ p_reason: string;
26623
+ };
26624
+ Returns: number;
26625
+ };
26626
+ logistics_trace_batch: {
26627
+ Args: {
26628
+ p: import("./types").Json;
26629
+ };
26630
+ Returns: number;
26631
+ };
26632
+ logistics_trace_derive: {
26633
+ Args: {
26634
+ p: import("./types").Json;
26635
+ };
26636
+ Returns: number;
26637
+ };
26638
+ logistics_trace_node: {
26639
+ Args: {
26640
+ p_op?: string;
26641
+ p_status?: string;
26642
+ p_table: string;
26643
+ };
26644
+ Returns: string;
26645
+ };
26646
+ logistics_trace_order_journey_start: {
26647
+ Args: {
26648
+ p_order_id: string;
26649
+ p_reason?: string;
26650
+ };
26651
+ Returns: string;
26652
+ };
26653
+ logistics_trace_order_origin: {
26654
+ Args: {
26655
+ p_order_id: string;
26656
+ };
26657
+ Returns: undefined;
26658
+ };
26659
+ logistics_trace_order_overview: {
26660
+ Args: {
26661
+ p_error_class?: string;
26662
+ p_limit?: number;
26663
+ p_search?: string;
26664
+ p_since?: string;
26665
+ p_source?: string;
26666
+ p_state?: string;
26667
+ p_step?: string;
26668
+ };
26669
+ Returns: import("./types").Json;
26670
+ };
26671
+ logistics_trace_order_state: {
26672
+ Args: {
26673
+ p_order_ref: string;
26674
+ };
26675
+ Returns: import("./types").Json;
26676
+ };
26677
+ logistics_trace_order_step: {
26678
+ Args: {
26679
+ p_class?: string;
26680
+ p_decision?: string;
26681
+ p_error?: string;
26682
+ p_next_step?: string;
26683
+ p_node: string;
26684
+ p_order_id: string;
26685
+ p_reason?: string;
26686
+ p_status: string;
26687
+ p_step: string;
26688
+ };
26689
+ Returns: undefined;
26690
+ };
26691
+ logistics_trace_orders: {
26692
+ Args: {
26693
+ p_limit?: number;
26694
+ p_search?: string;
26695
+ p_since?: string;
26696
+ p_status?: string;
26697
+ };
26698
+ Returns: import("./types").Json;
26699
+ };
26700
+ logistics_trace_pick_state: {
23853
26701
  Args: {
23854
- p_order_id: string;
26702
+ p_order_number: string;
23855
26703
  };
23856
- Returns: string;
26704
+ Returns: undefined;
23857
26705
  };
23858
- logistics_scan_resolve: {
26706
+ logistics_trace_progress: {
23859
26707
  Args: {
23860
- p_code: string;
26708
+ p_limit?: number;
23861
26709
  };
23862
26710
  Returns: import("./types").Json;
23863
26711
  };
23864
- logistics_schedule_tasks: {
23865
- Args: never;
23866
- Returns: number;
23867
- };
23868
- logistics_set_order_priority: {
26712
+ logistics_trace_progress_order: {
23869
26713
  Args: {
23870
26714
  p_order_ref: string;
23871
- p_priority: number;
23872
- p_user_id?: string;
23873
26715
  };
23874
- Returns: number;
26716
+ Returns: import("./types").Json;
23875
26717
  };
23876
- logistics_set_pick_day: {
26718
+ logistics_trace_redact: {
23877
26719
  Args: {
23878
- p_order_ref: string;
23879
- p_pick_day: string;
26720
+ p: import("./types").Json;
23880
26721
  };
23881
26722
  Returns: import("./types").Json;
23882
26723
  };
23883
- logistics_shift_to_workday: {
26724
+ logistics_trace_source_node: {
23884
26725
  Args: {
23885
- p_days: string[];
23886
- p_ts: string;
26726
+ p_source: string;
23887
26727
  };
23888
26728
  Returns: string;
23889
26729
  };
23890
- logistics_shipping_note_from_barcode: {
26730
+ logistics_trace_step_once: {
23891
26731
  Args: {
23892
- p_allow_reprint?: boolean;
23893
- p_barcode: string;
23894
- p_station_id?: string;
26732
+ p_decision: string;
26733
+ p_next_step?: string;
26734
+ p_node: string;
26735
+ p_order_id: string;
26736
+ p_reason: string;
26737
+ p_status: string;
26738
+ p_step: string;
23895
26739
  };
23896
- Returns: import("./types").Json;
23897
- };
23898
- logistics_sticker_follows_slip: {
23899
- Args: never;
23900
- Returns: boolean;
26740
+ Returns: undefined;
23901
26741
  };
23902
- logistics_supersede_stale_tasks: {
26742
+ logistics_trace_stock_check: {
23903
26743
  Args: {
23904
- p_keep: string[];
23905
- p_order_ref: string;
23906
- p_run_id: string;
23907
- p_user_id: string;
26744
+ p_order_id: string;
23908
26745
  };
23909
- Returns: number;
23910
- };
23911
- logistics_sync_pick_queue: {
23912
- Args: never;
23913
- Returns: import("./types").Json;
26746
+ Returns: undefined;
23914
26747
  };
23915
- logistics_sync_task_carriers: {
26748
+ logistics_trace_timeline: {
23916
26749
  Args: {
23917
- p_order_ref?: string;
26750
+ p_limit?: number;
26751
+ p_order_ref: string;
23918
26752
  };
23919
- Returns: number;
26753
+ Returns: import("./types").Json;
23920
26754
  };
23921
- logistics_task_owner: {
26755
+ logistics_trace_version_events: {
23922
26756
  Args: {
23923
- p_task_type: string;
26757
+ p_from?: string;
26758
+ p_limit?: number;
26759
+ p_order_ref: string;
26760
+ p_to?: string;
26761
+ p_version_id: string;
23924
26762
  };
23925
- Returns: string;
26763
+ Returns: import("./types").Json;
23926
26764
  };
23927
- logistics_task_pick_minutes: {
26765
+ logistics_trace_versions: {
23928
26766
  Args: {
23929
- p_payload: import("./types").Json;
23930
- p_settings: import("./types").Json;
26767
+ p_order_ref: string;
23931
26768
  };
23932
- Returns: number;
26769
+ Returns: import("./types").Json;
23933
26770
  };
23934
26771
  logistics_upsert_task: {
23935
26772
  Args: {
@@ -23950,6 +26787,16 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23950
26787
  };
23951
26788
  Returns: string;
23952
26789
  };
26790
+ logistics_valid_timezone: {
26791
+ Args: {
26792
+ _tz: string;
26793
+ };
26794
+ Returns: boolean;
26795
+ };
26796
+ logistics_working_hours_status: {
26797
+ Args: never;
26798
+ Returns: import("./types").Json;
26799
+ };
23953
26800
  logistics_write_buffer_layer_positions: {
23954
26801
  Args: {
23955
26802
  p_buffer_id: string;
@@ -24011,6 +26858,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
24011
26858
  permission: string;
24012
26859
  }[];
24013
26860
  };
26861
+ next_cart_day_seq: {
26862
+ Args: {
26863
+ p_date: string;
26864
+ };
26865
+ Returns: number;
26866
+ };
24014
26867
  next_manufacture_partij: {
24015
26868
  Args: {
24016
26869
  _tenant_id: string;
@@ -24115,6 +26968,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
24115
26968
  online: boolean;
24116
26969
  }[];
24117
26970
  };
26971
+ pick_apply_buffer_events: {
26972
+ Args: never;
26973
+ Returns: import("./types").Json;
26974
+ };
24118
26975
  pick_available_pick_days: {
24119
26976
  Args: {
24120
26977
  _max_days?: number;
@@ -24498,6 +27355,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
24498
27355
  };
24499
27356
  Returns: undefined;
24500
27357
  };
27358
+ pick_report_missing_cart_plan: {
27359
+ Args: never;
27360
+ Returns: import("./types").Json;
27361
+ };
24501
27362
  pick_reprint_cart: {
24502
27363
  Args: {
24503
27364
  _cart_id: string;
@@ -24954,6 +27815,18 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
24954
27815
  };
24955
27816
  Returns: undefined;
24956
27817
  };
27818
+ prune_floriday_api_log: {
27819
+ Args: never;
27820
+ Returns: number;
27821
+ };
27822
+ quote_ack_work_order: {
27823
+ Args: {
27824
+ _queue_id: string;
27825
+ _werkbon_id: string;
27826
+ _werkbon_nummer?: string;
27827
+ };
27828
+ Returns: boolean;
27829
+ };
24957
27830
  quote_create_from_source: {
24958
27831
  Args: {
24959
27832
  _payload?: import("./types").Json;
@@ -24962,6 +27835,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
24962
27835
  };
24963
27836
  Returns: string;
24964
27837
  };
27838
+ quote_fail_work_order: {
27839
+ Args: {
27840
+ _foutmelding: string;
27841
+ _queue_id: string;
27842
+ };
27843
+ Returns: boolean;
27844
+ };
24965
27845
  quote_get_billable_lines: {
24966
27846
  Args: {
24967
27847
  _quotation_id: string;
@@ -24978,6 +27858,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
24978
27858
  Args: never;
24979
27859
  Returns: import("./types").Json;
24980
27860
  };
27861
+ quote_list_pending_work_orders: {
27862
+ Args: {
27863
+ _limit?: number;
27864
+ };
27865
+ Returns: import("./types").Json;
27866
+ };
24981
27867
  quote_list_sources: {
24982
27868
  Args: {
24983
27869
  _limit?: number;
@@ -24985,6 +27871,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
24985
27871
  };
24986
27872
  Returns: import("./types").Json;
24987
27873
  };
27874
+ quote_queue_follow_up: {
27875
+ Args: {
27876
+ _offerte_id: string;
27877
+ };
27878
+ Returns: string;
27879
+ };
24988
27880
  recompute_all_reserved_stock: {
24989
27881
  Args: never;
24990
27882
  Returns: undefined;
@@ -25038,6 +27930,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
25038
27930
  };
25039
27931
  Returns: boolean;
25040
27932
  };
27933
+ release_job_lock: {
27934
+ Args: {
27935
+ _key: string;
27936
+ };
27937
+ Returns: undefined;
27938
+ };
25041
27939
  release_local_pdf_job: {
25042
27940
  Args: {
25043
27941
  _job_id: string;
@@ -25381,6 +28279,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
25381
28279
  };
25382
28280
  Returns: number;
25383
28281
  };
28282
+ schedule_floriday_catalog_prices_sync: {
28283
+ Args: {
28284
+ p_apikey: string;
28285
+ p_url: string;
28286
+ };
28287
+ Returns: number;
28288
+ };
25384
28289
  schedule_floriday_clock_presales_sync: {
25385
28290
  Args: {
25386
28291
  p_apikey: string;
@@ -25653,6 +28558,52 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
25653
28558
  p_end_time: string;
25654
28559
  };
25655
28560
  Returns: import("./types").Json;
28561
+ } | {
28562
+ Args: {
28563
+ p_end_lat?: number;
28564
+ p_end_lng?: number;
28565
+ p_log_id: string;
28566
+ };
28567
+ Returns: {
28568
+ auto_stop_reason: string | null;
28569
+ auto_stopped: boolean;
28570
+ created_at: string;
28571
+ current_latitude: number | null;
28572
+ current_longitude: number | null;
28573
+ current_position_updated_at: string | null;
28574
+ employee_id: string;
28575
+ end_latitude: number | null;
28576
+ end_longitude: number | null;
28577
+ end_time: string | null;
28578
+ eta_distance_km: number | null;
28579
+ eta_minutes: number | null;
28580
+ eta_updated_at: string | null;
28581
+ hour_category: string | null;
28582
+ id: string;
28583
+ last_reminder_at: string | null;
28584
+ notes: string | null;
28585
+ overtime_hours: number;
28586
+ overtime_type: string | null;
28587
+ regular_hours: number;
28588
+ reminder_count: number;
28589
+ requires_review: boolean;
28590
+ start_latitude: number | null;
28591
+ start_longitude: number | null;
28592
+ start_time: string;
28593
+ travel_cost: number | null;
28594
+ travel_distance_km: number | null;
28595
+ travel_duration_min: number | null;
28596
+ travel_time_minutes: number | null;
28597
+ type: string;
28598
+ updated_at: string;
28599
+ work_order_id: string | null;
28600
+ };
28601
+ SetofOptions: {
28602
+ from: "*";
28603
+ to: "time_logs";
28604
+ isOneToOne: true;
28605
+ isSetofReturn: false;
28606
+ };
25656
28607
  };
25657
28608
  swap_cart_layer_positions: {
25658
28609
  Args: {
@@ -25681,6 +28632,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
25681
28632
  };
25682
28633
  Returns: undefined;
25683
28634
  };
28635
+ sync_floriday_prices_into_price_groups: {
28636
+ Args: never;
28637
+ Returns: number;
28638
+ };
25684
28639
  sync_layer_stock: {
25685
28640
  Args: {
25686
28641
  p_product_id: string;
@@ -25726,6 +28681,14 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
25726
28681
  row_count: number;
25727
28682
  }[];
25728
28683
  };
28684
+ try_acquire_job_lock: {
28685
+ Args: {
28686
+ _key: string;
28687
+ _owner?: string;
28688
+ _seconds?: number;
28689
+ };
28690
+ Returns: boolean;
28691
+ };
25729
28692
  try_debtor_lock: {
25730
28693
  Args: {
25731
28694
  _group_key: string;
@@ -25797,14 +28760,99 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
25797
28760
  };
25798
28761
  Returns: undefined;
25799
28762
  };
28763
+ uren_employee_day_hours: {
28764
+ Args: {
28765
+ _day: string;
28766
+ _employee_id: string;
28767
+ };
28768
+ Returns: number;
28769
+ };
25800
28770
  uren_is_beheerder: {
25801
28771
  Args: never;
25802
28772
  Returns: boolean;
25803
28773
  };
28774
+ uren_list_medewerkers: {
28775
+ Args: never;
28776
+ Returns: {
28777
+ avatar_url: string;
28778
+ color: string;
28779
+ display_name: string;
28780
+ email: string;
28781
+ hours_fri: number;
28782
+ hours_mon: number;
28783
+ hours_thu: number;
28784
+ hours_tue: number;
28785
+ hours_wed: number;
28786
+ id: string;
28787
+ is_active: boolean;
28788
+ leave_balance_hours: number;
28789
+ persnr: string;
28790
+ phone: string;
28791
+ roles: string[];
28792
+ }[];
28793
+ };
25804
28794
  uren_my_monteur_id: {
25805
28795
  Args: never;
25806
28796
  Returns: string;
25807
28797
  };
28798
+ uren_planning_dagagenda: {
28799
+ Args: {
28800
+ _tot: string;
28801
+ _van: string;
28802
+ };
28803
+ Returns: {
28804
+ end_at: string;
28805
+ id: string;
28806
+ is_tweede_man: boolean;
28807
+ notes: string;
28808
+ start_at: string;
28809
+ status: Database["public"]["Enums"]["planning_item_status"];
28810
+ werkbon_id: string;
28811
+ }[];
28812
+ };
28813
+ uren_set_planning_item_status: {
28814
+ Args: {
28815
+ _id: string;
28816
+ _status: Database["public"]["Enums"]["planning_item_status"];
28817
+ };
28818
+ Returns: undefined;
28819
+ };
28820
+ uren_set_planning_status: {
28821
+ Args: {
28822
+ p_status: Database["public"]["Enums"]["planning_item_status"];
28823
+ p_werkbon_id: string;
28824
+ };
28825
+ Returns: number;
28826
+ };
28827
+ uren_stop_time_log: {
28828
+ Args: {
28829
+ p_employee_id: string;
28830
+ p_end_lat?: number;
28831
+ p_end_lng?: number;
28832
+ p_end_time: string;
28833
+ };
28834
+ Returns: import("./types").Json;
28835
+ };
28836
+ uren_switch_time_log: {
28837
+ Args: {
28838
+ p_employee_id: string;
28839
+ p_start_lat?: number;
28840
+ p_start_lng?: number;
28841
+ p_type: string;
28842
+ p_work_order_id?: string;
28843
+ };
28844
+ Returns: import("./types").Json;
28845
+ };
28846
+ uren_sync_sick_time_off: {
28847
+ Args: {
28848
+ _period_id: string;
28849
+ };
28850
+ Returns: number;
28851
+ };
28852
+ voorraad_cleanup_old_rows: {
28853
+ Args: never;
28854
+ Returns: import("./types").Json;
28855
+ };
25808
28856
  wake_print_queue: {
25809
28857
  Args: {
25810
28858
  _min_interval_ms?: number;
@@ -25843,6 +28891,25 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
25843
28891
  };
25844
28892
  Returns: import("./types").Json;
25845
28893
  };
28894
+ wo_list_offerte_requests: {
28895
+ Args: {
28896
+ _status?: string;
28897
+ };
28898
+ Returns: import("./types").Json;
28899
+ };
28900
+ wo_process_offerte_request: {
28901
+ Args: {
28902
+ _queue_id: string;
28903
+ };
28904
+ Returns: import("./types").Json;
28905
+ };
28906
+ wo_reject_offerte_request: {
28907
+ Args: {
28908
+ _queue_id: string;
28909
+ _reden?: string;
28910
+ };
28911
+ Returns: import("./types").Json;
28912
+ };
25846
28913
  wo_set_status: {
25847
28914
  Args: {
25848
28915
  _reason?: string;