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